d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59 for libhmac 1.00. |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
8 | # This configure script is free software; the Free Software Foundation |
9 | # gives unlimited permission to copy, distribute and modify it. |
10 | ## --------------------- ## |
11 | ## M4sh Initialization. ## |
12 | ## --------------------- ## |
13 | |
14 | # Be Bourne compatible |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh |
17 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
22 | set -o posix |
23 | fi |
24 | DUALCASE=1; export DUALCASE # for MKS sh |
25 | |
26 | # Support unset when possible. |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
28 | as_unset=unset |
29 | else |
30 | as_unset=false |
31 | fi |
32 | |
33 | |
34 | # Work around bugs in pre-3.0 UWIN ksh. |
35 | $as_unset ENV MAIL MAILPATH |
36 | PS1='$ ' |
37 | PS2='> ' |
38 | PS4='+ ' |
39 | |
40 | # NLS nuisances. |
41 | for as_var in \ |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 | LC_TELEPHONE LC_TIME |
45 | do |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 | eval $as_var=C; export $as_var |
48 | else |
49 | $as_unset $as_var |
50 | fi |
51 | done |
52 | |
53 | # Required to use basename. |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
55 | as_expr=expr |
56 | else |
57 | as_expr=false |
58 | fi |
59 | |
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 | as_basename=basename |
62 | else |
63 | as_basename=false |
64 | fi |
65 | |
66 | |
67 | # Name of the executable. |
68 | as_me=`$as_basename "$0" || |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 | X"$0" : 'X\(//\)$' \| \ |
71 | X"$0" : 'X\(/\)$' \| \ |
72 | . : '\(.\)' 2>/dev/null || |
73 | echo X/"$0" | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
77 | s/.*/./; q'` |
78 | |
79 | |
80 | # PATH needs CR, and LINENO needs CR and PATH. |
81 | # Avoid depending upon Character Ranges. |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 | as_cr_digits='0123456789' |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 | |
88 | # The user is always right. |
89 | if test "${PATH_SEPARATOR+set}" != set; then |
90 | echo "#! /bin/sh" >conf$$.sh |
91 | echo "exit 0" >>conf$$.sh |
92 | chmod +x conf$$.sh |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 | PATH_SEPARATOR=';' |
95 | else |
96 | PATH_SEPARATOR=: |
97 | fi |
98 | rm -f conf$$.sh |
99 | fi |
100 | |
101 | |
102 | as_lineno_1=$LINENO |
103 | as_lineno_2=$LINENO |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 | # Find who we are. Look in the path if we contain no path at all |
108 | # relative or not. |
109 | case $0 in |
110 | *[\\/]* ) as_myself=$0 ;; |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 | for as_dir in $PATH |
113 | do |
114 | IFS=$as_save_IFS |
115 | test -z "$as_dir" && as_dir=. |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 | done |
118 | |
119 | ;; |
120 | esac |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
122 | # in which case we are not to be found in the path. |
123 | if test "x$as_myself" = x; then |
124 | as_myself=$0 |
125 | fi |
126 | if test ! -f "$as_myself"; then |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 | { (exit 1); exit 1; }; } |
129 | fi |
130 | case $CONFIG_SHELL in |
131 | '') |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 | do |
135 | IFS=$as_save_IFS |
136 | test -z "$as_dir" && as_dir=. |
137 | for as_base in sh bash ksh sh5; do |
138 | case $as_dir in |
139 | /*) |
140 | if ("$as_dir/$as_base" -c ' |
141 | as_lineno_1=$LINENO |
142 | as_lineno_2=$LINENO |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 | CONFIG_SHELL=$as_dir/$as_base |
149 | export CONFIG_SHELL |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 | fi;; |
152 | esac |
153 | done |
154 | done |
155 | ;; |
156 | esac |
157 | |
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
160 | # line-number line before each line; the second 'sed' does the real |
161 | # work. The second script uses 'N' to pair each line-number line |
162 | # with the numbered line, and appends trailing '-' during |
163 | # substitution so that $LINENO is not a special case at line end. |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 | sed '=' <$as_myself | |
167 | sed ' |
168 | N |
169 | s,$,-, |
170 | : loop |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 | t loop |
173 | s,-$,, |
174 | s,^['$as_cr_digits']*\n,, |
175 | ' >$as_me.lineno && |
176 | chmod +x $as_me.lineno || |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 | { (exit 1); exit 1; }; } |
179 | |
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
181 | # (the dirname of $[0] is not the place where we might find the |
182 | # original and so on. Autoconf is especially sensible to this). |
183 | . ./$as_me.lineno |
184 | # Exit status is that of the last command. |
185 | exit |
186 | } |
187 | |
188 | |
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 | *c*,-n*) ECHO_N= ECHO_C=' |
191 | ' ECHO_T=' ' ;; |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 | esac |
195 | |
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
197 | as_expr=expr |
198 | else |
199 | as_expr=false |
200 | fi |
201 | |
202 | rm -f conf$$ conf$$.exe conf$$.file |
203 | echo >conf$$.file |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
207 | if test -f conf$$.exe; then |
208 | # Don't use ln at all; we don't have any links |
209 | as_ln_s='cp -p' |
210 | else |
211 | as_ln_s='ln -s' |
212 | fi |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
214 | as_ln_s=ln |
215 | else |
216 | as_ln_s='cp -p' |
217 | fi |
218 | rm -f conf$$ conf$$.exe conf$$.file |
219 | |
220 | if mkdir -p . 2>/dev/null; then |
221 | as_mkdir_p=: |
222 | else |
223 | test -d ./-p && rmdir ./-p |
224 | as_mkdir_p=false |
225 | fi |
226 | |
227 | as_executable_p="test -f" |
228 | |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
231 | |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
234 | |
235 | |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. |
238 | as_nl=' |
239 | ' |
240 | IFS=" $as_nl" |
241 | |
242 | # CDPATH. |
243 | $as_unset CDPATH |
244 | |
245 | |
246 | |
247 | # Check that we are running under the correct shell. |
248 | SHELL=${CONFIG_SHELL-/bin/sh} |
249 | |
250 | case X$ECHO in |
251 | X*--fallback-echo) |
252 | # Remove one level of quotation (which was required for Make). |
253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
254 | ;; |
255 | esac |
256 | |
257 | echo=${ECHO-echo} |
258 | if test "X$1" = X--no-reexec; then |
259 | # Discard the --no-reexec flag, and continue. |
260 | shift |
261 | elif test "X$1" = X--fallback-echo; then |
262 | # Avoid inline document here, it may be left over |
263 | : |
264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
265 | # Yippee, $echo works! |
266 | : |
267 | else |
268 | # Restart under the correct shell. |
269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
270 | fi |
271 | |
272 | if test "X$1" = X--fallback-echo; then |
273 | # used as fallback echo |
274 | shift |
275 | cat <<EOF |
276 | $* |
277 | EOF |
278 | exit 0 |
279 | fi |
280 | |
281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
282 | # if CDPATH is set. |
283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
284 | |
285 | if test -z "$ECHO"; then |
286 | if test "X${echo_test_string+set}" != Xset; then |
287 | # find a string as large as possible, as long as the shell can cope with it |
288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
290 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
291 | echo_test_string=`eval $cmd` && |
292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
293 | then |
294 | break |
295 | fi |
296 | done |
297 | fi |
298 | |
299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
302 | : |
303 | else |
304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
305 | # backslashes. This makes it impossible to quote backslashes using |
306 | # echo "$something" | sed 's/\\/\\\\/g' |
307 | # |
308 | # So, first we look for a working echo in the user's PATH. |
309 | |
310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
311 | for dir in $PATH /usr/ucb; do |
312 | IFS="$lt_save_ifs" |
313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
317 | echo="$dir/echo" |
318 | break |
319 | fi |
320 | done |
321 | IFS="$lt_save_ifs" |
322 | |
323 | if test "X$echo" = Xecho; then |
324 | # We didn't find a better echo, so look for alternatives. |
325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
328 | # This shell has a builtin print -r that does the trick. |
329 | echo='print -r' |
330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
332 | # If we have ksh, try running configure again with it. |
333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
334 | export ORIGINAL_CONFIG_SHELL |
335 | CONFIG_SHELL=/bin/ksh |
336 | export CONFIG_SHELL |
337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
338 | else |
339 | # Try using printf. |
340 | echo='printf %s\n' |
341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
344 | # Cool, printf works |
345 | : |
346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
347 | test "X$echo_testing_string" = 'X\t' && |
348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
351 | export CONFIG_SHELL |
352 | SHELL="$CONFIG_SHELL" |
353 | export SHELL |
354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
356 | test "X$echo_testing_string" = 'X\t' && |
357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
360 | else |
361 | # maybe with a smaller string... |
362 | prev=: |
363 | |
364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
366 | then |
367 | break |
368 | fi |
369 | prev="$cmd" |
370 | done |
371 | |
372 | if test "$prev" != 'sed 50q "$0"'; then |
373 | echo_test_string=`eval $prev` |
374 | export echo_test_string |
375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
376 | else |
377 | # Oops. We lost completely, so just stick with echo. |
378 | echo=echo |
379 | fi |
380 | fi |
381 | fi |
382 | fi |
383 | fi |
384 | fi |
385 | |
386 | # Copy echo and quote the copy suitably for passing to libtool from |
387 | # the Makefile, instead of quoting the original, which is used later. |
388 | ECHO=$echo |
389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
391 | fi |
392 | |
393 | |
394 | |
395 | |
396 | tagnames=${tagnames+${tagnames},}CXX |
397 | |
398 | tagnames=${tagnames+${tagnames},}F77 |
399 | |
400 | # Name of the host. |
401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
402 | # so uname gets run too. |
403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
404 | |
405 | exec 6>&1 |
406 | |
407 | # |
408 | # Initializations. |
409 | # |
410 | ac_default_prefix=/usr/local |
411 | ac_config_libobj_dir=. |
412 | cross_compiling=no |
413 | subdirs= |
414 | MFLAGS= |
415 | MAKEFLAGS= |
416 | SHELL=${CONFIG_SHELL-/bin/sh} |
417 | |
418 | # Maximum number of lines to put in a shell here document. |
419 | # This variable seems obsolete. It should probably be removed, and |
420 | # only ac_max_sed_lines should be used. |
421 | : ${ac_max_here_lines=38} |
422 | |
423 | # Identity of this package. |
424 | PACKAGE_NAME='libhmac' |
425 | PACKAGE_TARNAME='libhmac' |
426 | PACKAGE_VERSION='1.00' |
427 | PACKAGE_STRING='libhmac 1.00' |
428 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
429 | |
430 | ac_unique_file="hmac.h" |
431 | # Factoring default headers for most tests. |
432 | ac_includes_default="\ |
433 | #include <stdio.h> |
434 | #if HAVE_SYS_TYPES_H |
435 | # include <sys/types.h> |
436 | #endif |
437 | #if HAVE_SYS_STAT_H |
438 | # include <sys/stat.h> |
439 | #endif |
440 | #if STDC_HEADERS |
441 | # include <stdlib.h> |
442 | # include <stddef.h> |
443 | #else |
444 | # if HAVE_STDLIB_H |
445 | # include <stdlib.h> |
446 | # endif |
447 | #endif |
448 | #if HAVE_STRING_H |
449 | # if !STDC_HEADERS && HAVE_MEMORY_H |
450 | # include <memory.h> |
451 | # endif |
452 | # include <string.h> |
453 | #endif |
454 | #if HAVE_STRINGS_H |
455 | # include <strings.h> |
456 | #endif |
457 | #if HAVE_INTTYPES_H |
458 | # include <inttypes.h> |
459 | #else |
460 | # if HAVE_STDINT_H |
461 | # include <stdint.h> |
462 | # endif |
463 | #endif |
464 | #if HAVE_UNISTD_H |
465 | # include <unistd.h> |
466 | #endif" |
467 | |
468 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar LN_S 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL hashlibs TESTPROGS LIBOBJS LTLIBOBJS' |
469 | ac_subst_files='' |
470 | |
471 | # Initialize some variables set by options. |
472 | ac_init_help= |
473 | ac_init_version=false |
474 | # The variables have the same names as the options, with |
475 | # dashes changed to underlines. |
476 | cache_file=/dev/null |
477 | exec_prefix=NONE |
478 | no_create= |
479 | no_recursion= |
480 | prefix=NONE |
481 | program_prefix=NONE |
482 | program_suffix=NONE |
483 | program_transform_name=s,x,x, |
484 | silent= |
485 | site= |
486 | srcdir= |
487 | verbose= |
488 | x_includes=NONE |
489 | x_libraries=NONE |
490 | |
491 | # Installation directory options. |
492 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
493 | # and all the variables that are supposed to be based on exec_prefix |
494 | # by default will actually change. |
495 | # Use braces instead of parens because sh, perl, etc. also accept them. |
496 | bindir='${exec_prefix}/bin' |
497 | sbindir='${exec_prefix}/sbin' |
498 | libexecdir='${exec_prefix}/libexec' |
499 | datadir='${prefix}/share' |
500 | sysconfdir='${prefix}/etc' |
501 | sharedstatedir='${prefix}/com' |
502 | localstatedir='${prefix}/var' |
503 | libdir='${exec_prefix}/lib' |
504 | includedir='${prefix}/include' |
505 | oldincludedir='/usr/include' |
506 | infodir='${prefix}/info' |
507 | mandir='${prefix}/man' |
508 | |
509 | ac_prev= |
510 | for ac_option |
511 | do |
512 | # If the previous option needs an argument, assign it. |
513 | if test -n "$ac_prev"; then |
514 | eval "$ac_prev=\$ac_option" |
515 | ac_prev= |
516 | continue |
517 | fi |
518 | |
519 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
520 | |
521 | # Accept the important Cygnus configure options, so we can diagnose typos. |
522 | |
523 | case $ac_option in |
524 | |
525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
526 | ac_prev=bindir ;; |
527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
528 | bindir=$ac_optarg ;; |
529 | |
530 | -build | --build | --buil | --bui | --bu) |
531 | ac_prev=build_alias ;; |
532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
533 | build_alias=$ac_optarg ;; |
534 | |
535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
537 | ac_prev=cache_file ;; |
538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
540 | cache_file=$ac_optarg ;; |
541 | |
542 | --config-cache | -C) |
543 | cache_file=config.cache ;; |
544 | |
545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
546 | ac_prev=datadir ;; |
547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
548 | | --da=*) |
549 | datadir=$ac_optarg ;; |
550 | |
551 | -disable-* | --disable-*) |
552 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
553 | # Reject names that are not valid shell variable names. |
554 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
555 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
556 | { (exit 1); exit 1; }; } |
557 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
558 | eval "enable_$ac_feature=no" ;; |
559 | |
560 | -enable-* | --enable-*) |
561 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
562 | # Reject names that are not valid shell variable names. |
563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
565 | { (exit 1); exit 1; }; } |
566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
567 | case $ac_option in |
568 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
569 | *) ac_optarg=yes ;; |
570 | esac |
571 | eval "enable_$ac_feature='$ac_optarg'" ;; |
572 | |
573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
575 | | --exec | --exe | --ex) |
576 | ac_prev=exec_prefix ;; |
577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
579 | | --exec=* | --exe=* | --ex=*) |
580 | exec_prefix=$ac_optarg ;; |
581 | |
582 | -gas | --gas | --ga | --g) |
583 | # Obsolete; use --with-gas. |
584 | with_gas=yes ;; |
585 | |
586 | -help | --help | --hel | --he | -h) |
587 | ac_init_help=long ;; |
588 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
589 | ac_init_help=recursive ;; |
590 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
591 | ac_init_help=short ;; |
592 | |
593 | -host | --host | --hos | --ho) |
594 | ac_prev=host_alias ;; |
595 | -host=* | --host=* | --hos=* | --ho=*) |
596 | host_alias=$ac_optarg ;; |
597 | |
598 | -includedir | --includedir | --includedi | --included | --include \ |
599 | | --includ | --inclu | --incl | --inc) |
600 | ac_prev=includedir ;; |
601 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
602 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
603 | includedir=$ac_optarg ;; |
604 | |
605 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
606 | ac_prev=infodir ;; |
607 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
608 | infodir=$ac_optarg ;; |
609 | |
610 | -libdir | --libdir | --libdi | --libd) |
611 | ac_prev=libdir ;; |
612 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
613 | libdir=$ac_optarg ;; |
614 | |
615 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
616 | | --libexe | --libex | --libe) |
617 | ac_prev=libexecdir ;; |
618 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
619 | | --libexe=* | --libex=* | --libe=*) |
620 | libexecdir=$ac_optarg ;; |
621 | |
622 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
623 | | --localstate | --localstat | --localsta | --localst \ |
624 | | --locals | --local | --loca | --loc | --lo) |
625 | ac_prev=localstatedir ;; |
626 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
627 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
628 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
629 | localstatedir=$ac_optarg ;; |
630 | |
631 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
632 | ac_prev=mandir ;; |
633 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
634 | mandir=$ac_optarg ;; |
635 | |
636 | -nfp | --nfp | --nf) |
637 | # Obsolete; use --without-fp. |
638 | with_fp=no ;; |
639 | |
640 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
641 | | --no-cr | --no-c | -n) |
642 | no_create=yes ;; |
643 | |
644 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
645 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
646 | no_recursion=yes ;; |
647 | |
648 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
649 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
650 | | --oldin | --oldi | --old | --ol | --o) |
651 | ac_prev=oldincludedir ;; |
652 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
653 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
654 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
655 | oldincludedir=$ac_optarg ;; |
656 | |
657 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
658 | ac_prev=prefix ;; |
659 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
660 | prefix=$ac_optarg ;; |
661 | |
662 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
663 | | --program-pre | --program-pr | --program-p) |
664 | ac_prev=program_prefix ;; |
665 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
666 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
667 | program_prefix=$ac_optarg ;; |
668 | |
669 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
670 | | --program-suf | --program-su | --program-s) |
671 | ac_prev=program_suffix ;; |
672 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
673 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
674 | program_suffix=$ac_optarg ;; |
675 | |
676 | -program-transform-name | --program-transform-name \ |
677 | | --program-transform-nam | --program-transform-na \ |
678 | | --program-transform-n | --program-transform- \ |
679 | | --program-transform | --program-transfor \ |
680 | | --program-transfo | --program-transf \ |
681 | | --program-trans | --program-tran \ |
682 | | --progr-tra | --program-tr | --program-t) |
683 | ac_prev=program_transform_name ;; |
684 | -program-transform-name=* | --program-transform-name=* \ |
685 | | --program-transform-nam=* | --program-transform-na=* \ |
686 | | --program-transform-n=* | --program-transform-=* \ |
687 | | --program-transform=* | --program-transfor=* \ |
688 | | --program-transfo=* | --program-transf=* \ |
689 | | --program-trans=* | --program-tran=* \ |
690 | | --progr-tra=* | --program-tr=* | --program-t=*) |
691 | program_transform_name=$ac_optarg ;; |
692 | |
693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
694 | | -silent | --silent | --silen | --sile | --sil) |
695 | silent=yes ;; |
696 | |
697 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
698 | ac_prev=sbindir ;; |
699 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
700 | | --sbi=* | --sb=*) |
701 | sbindir=$ac_optarg ;; |
702 | |
703 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
704 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
705 | | --sharedst | --shareds | --shared | --share | --shar \ |
706 | | --sha | --sh) |
707 | ac_prev=sharedstatedir ;; |
708 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
709 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
710 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
711 | | --sha=* | --sh=*) |
712 | sharedstatedir=$ac_optarg ;; |
713 | |
714 | -site | --site | --sit) |
715 | ac_prev=site ;; |
716 | -site=* | --site=* | --sit=*) |
717 | site=$ac_optarg ;; |
718 | |
719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
720 | ac_prev=srcdir ;; |
721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
722 | srcdir=$ac_optarg ;; |
723 | |
724 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
725 | | --syscon | --sysco | --sysc | --sys | --sy) |
726 | ac_prev=sysconfdir ;; |
727 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
728 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
729 | sysconfdir=$ac_optarg ;; |
730 | |
731 | -target | --target | --targe | --targ | --tar | --ta | --t) |
732 | ac_prev=target_alias ;; |
733 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
734 | target_alias=$ac_optarg ;; |
735 | |
736 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
737 | verbose=yes ;; |
738 | |
739 | -version | --version | --versio | --versi | --vers | -V) |
740 | ac_init_version=: ;; |
741 | |
742 | -with-* | --with-*) |
743 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
744 | # Reject names that are not valid shell variable names. |
745 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
746 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
747 | { (exit 1); exit 1; }; } |
748 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
749 | case $ac_option in |
750 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
751 | *) ac_optarg=yes ;; |
752 | esac |
753 | eval "with_$ac_package='$ac_optarg'" ;; |
754 | |
755 | -without-* | --without-*) |
756 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
757 | # Reject names that are not valid shell variable names. |
758 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
759 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
760 | { (exit 1); exit 1; }; } |
761 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
762 | eval "with_$ac_package=no" ;; |
763 | |
764 | --x) |
765 | # Obsolete; use --with-x. |
766 | with_x=yes ;; |
767 | |
768 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
769 | | --x-incl | --x-inc | --x-in | --x-i) |
770 | ac_prev=x_includes ;; |
771 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
772 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
773 | x_includes=$ac_optarg ;; |
774 | |
775 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
776 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
777 | ac_prev=x_libraries ;; |
778 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
779 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
780 | x_libraries=$ac_optarg ;; |
781 | |
782 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
783 | Try \`$0 --help' for more information." >&2 |
784 | { (exit 1); exit 1; }; } |
785 | ;; |
786 | |
787 | *=*) |
788 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
789 | # Reject names that are not valid shell variable names. |
790 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
791 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
792 | { (exit 1); exit 1; }; } |
793 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
794 | eval "$ac_envvar='$ac_optarg'" |
795 | export $ac_envvar ;; |
796 | |
797 | *) |
798 | # FIXME: should be removed in autoconf 3.0. |
799 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
800 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
801 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
802 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
803 | ;; |
804 | |
805 | esac |
806 | done |
807 | |
808 | if test -n "$ac_prev"; then |
809 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
810 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
811 | { (exit 1); exit 1; }; } |
812 | fi |
813 | |
814 | # Be sure to have absolute paths. |
815 | for ac_var in exec_prefix prefix |
816 | do |
817 | eval ac_val=$`echo $ac_var` |
818 | case $ac_val in |
819 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
820 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
821 | { (exit 1); exit 1; }; };; |
822 | esac |
823 | done |
824 | |
825 | # Be sure to have absolute paths. |
826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
827 | localstatedir libdir includedir oldincludedir infodir mandir |
828 | do |
829 | eval ac_val=$`echo $ac_var` |
830 | case $ac_val in |
831 | [\\/$]* | ?:[\\/]* ) ;; |
832 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
833 | { (exit 1); exit 1; }; };; |
834 | esac |
835 | done |
836 | |
837 | # There might be people who depend on the old broken behavior: `$host' |
838 | # used to hold the argument of --host etc. |
839 | # FIXME: To remove some day. |
840 | build=$build_alias |
841 | host=$host_alias |
842 | target=$target_alias |
843 | |
844 | # FIXME: To remove some day. |
845 | if test "x$host_alias" != x; then |
846 | if test "x$build_alias" = x; then |
847 | cross_compiling=maybe |
848 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
849 | If a cross compiler is detected then cross compile mode will be used." >&2 |
850 | elif test "x$build_alias" != "x$host_alias"; then |
851 | cross_compiling=yes |
852 | fi |
853 | fi |
854 | |
855 | ac_tool_prefix= |
856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
857 | |
858 | test "$silent" = yes && exec 6>/dev/null |
859 | |
860 | |
861 | # Find the source files, if location was not specified. |
862 | if test -z "$srcdir"; then |
863 | ac_srcdir_defaulted=yes |
864 | # Try the directory containing this script, then its parent. |
865 | ac_confdir=`(dirname "$0") 2>/dev/null || |
866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
867 | X"$0" : 'X\(//\)[^/]' \| \ |
868 | X"$0" : 'X\(//\)$' \| \ |
869 | X"$0" : 'X\(/\)' \| \ |
870 | . : '\(.\)' 2>/dev/null || |
871 | echo X"$0" | |
872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
874 | /^X\(\/\/\)$/{ s//\1/; q; } |
875 | /^X\(\/\).*/{ s//\1/; q; } |
876 | s/.*/./; q'` |
877 | srcdir=$ac_confdir |
878 | if test ! -r $srcdir/$ac_unique_file; then |
879 | srcdir=.. |
880 | fi |
881 | else |
882 | ac_srcdir_defaulted=no |
883 | fi |
884 | if test ! -r $srcdir/$ac_unique_file; then |
885 | if test "$ac_srcdir_defaulted" = yes; then |
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
887 | { (exit 1); exit 1; }; } |
888 | else |
889 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
890 | { (exit 1); exit 1; }; } |
891 | fi |
892 | fi |
893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
894 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
895 | { (exit 1); exit 1; }; } |
896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
897 | ac_env_build_alias_set=${build_alias+set} |
898 | ac_env_build_alias_value=$build_alias |
899 | ac_cv_env_build_alias_set=${build_alias+set} |
900 | ac_cv_env_build_alias_value=$build_alias |
901 | ac_env_host_alias_set=${host_alias+set} |
902 | ac_env_host_alias_value=$host_alias |
903 | ac_cv_env_host_alias_set=${host_alias+set} |
904 | ac_cv_env_host_alias_value=$host_alias |
905 | ac_env_target_alias_set=${target_alias+set} |
906 | ac_env_target_alias_value=$target_alias |
907 | ac_cv_env_target_alias_set=${target_alias+set} |
908 | ac_cv_env_target_alias_value=$target_alias |
909 | ac_env_CC_set=${CC+set} |
910 | ac_env_CC_value=$CC |
911 | ac_cv_env_CC_set=${CC+set} |
912 | ac_cv_env_CC_value=$CC |
913 | ac_env_CFLAGS_set=${CFLAGS+set} |
914 | ac_env_CFLAGS_value=$CFLAGS |
915 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
916 | ac_cv_env_CFLAGS_value=$CFLAGS |
917 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
918 | ac_env_LDFLAGS_value=$LDFLAGS |
919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
920 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
922 | ac_env_CPPFLAGS_value=$CPPFLAGS |
923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
925 | ac_env_CPP_set=${CPP+set} |
926 | ac_env_CPP_value=$CPP |
927 | ac_cv_env_CPP_set=${CPP+set} |
928 | ac_cv_env_CPP_value=$CPP |
929 | ac_env_CXX_set=${CXX+set} |
930 | ac_env_CXX_value=$CXX |
931 | ac_cv_env_CXX_set=${CXX+set} |
932 | ac_cv_env_CXX_value=$CXX |
933 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
934 | ac_env_CXXFLAGS_value=$CXXFLAGS |
935 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
936 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
937 | ac_env_CXXCPP_set=${CXXCPP+set} |
938 | ac_env_CXXCPP_value=$CXXCPP |
939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
940 | ac_cv_env_CXXCPP_value=$CXXCPP |
941 | ac_env_F77_set=${F77+set} |
942 | ac_env_F77_value=$F77 |
943 | ac_cv_env_F77_set=${F77+set} |
944 | ac_cv_env_F77_value=$F77 |
945 | ac_env_FFLAGS_set=${FFLAGS+set} |
946 | ac_env_FFLAGS_value=$FFLAGS |
947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
948 | ac_cv_env_FFLAGS_value=$FFLAGS |
949 | |
950 | # |
951 | # Report the --help message. |
952 | # |
953 | if test "$ac_init_help" = "long"; then |
954 | # Omit some internal or obsolete options to make the list less imposing. |
955 | # This message is too long to be a string in the A/UX 3.1 sh. |
956 | cat <<_ACEOF |
957 | \`configure' configures libhmac 1.00 to adapt to many kinds of systems. |
958 | |
959 | Usage: $0 [OPTION]... [VAR=VALUE]... |
960 | |
961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
962 | VAR=VALUE. See below for descriptions of some of the useful variables. |
963 | |
964 | Defaults for the options are specified in brackets. |
965 | |
966 | Configuration: |
967 | -h, --help display this help and exit |
968 | --help=short display options specific to this package |
969 | --help=recursive display the short help of all the included packages |
970 | -V, --version display version information and exit |
971 | -q, --quiet, --silent do not print \`checking...' messages |
972 | --cache-file=FILE cache test results in FILE [disabled] |
973 | -C, --config-cache alias for \`--cache-file=config.cache' |
974 | -n, --no-create do not create output files |
975 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
976 | |
977 | _ACEOF |
978 | |
979 | cat <<_ACEOF |
980 | Installation directories: |
981 | --prefix=PREFIX install architecture-independent files in PREFIX |
982 | [$ac_default_prefix] |
983 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
984 | [PREFIX] |
985 | |
986 | By default, \`make install' will install all the files in |
987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
989 | for instance \`--prefix=\$HOME'. |
990 | |
991 | For better control, use the options below. |
992 | |
993 | Fine tuning of the installation directories: |
994 | --bindir=DIR user executables [EPREFIX/bin] |
995 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
996 | --libexecdir=DIR program executables [EPREFIX/libexec] |
997 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
998 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
999 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1000 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1001 | --libdir=DIR object code libraries [EPREFIX/lib] |
1002 | --includedir=DIR C header files [PREFIX/include] |
1003 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1004 | --infodir=DIR info documentation [PREFIX/info] |
1005 | --mandir=DIR man documentation [PREFIX/man] |
1006 | _ACEOF |
1007 | |
1008 | cat <<\_ACEOF |
1009 | |
1010 | Program names: |
1011 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1012 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1013 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1014 | |
1015 | System types: |
1016 | --build=BUILD configure for building on BUILD [guessed] |
1017 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1018 | _ACEOF |
1019 | fi |
1020 | |
1021 | if test -n "$ac_init_help"; then |
1022 | case $ac_init_help in |
1023 | short | recursive ) echo "Configuration of libhmac 1.00:";; |
1024 | esac |
1025 | cat <<\_ACEOF |
1026 | |
1027 | Optional Features: |
1028 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1029 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1030 | --disable-dependency-tracking speeds up one-time build |
1031 | --enable-dependency-tracking do not reject slow dependency extractors |
1032 | --enable-shared[=PKGS] |
1033 | build shared libraries [default=yes] |
1034 | --enable-static[=PKGS] |
1035 | build static libraries [default=yes] |
1036 | --enable-fast-install[=PKGS] |
1037 | optimize for fast installation [default=yes] |
1038 | --disable-libtool-lock avoid locking (might break parallel builds) |
1039 | |
1040 | Optional Packages: |
1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1043 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1044 | --with-pic try to use only PIC/non-PIC objects [default=use |
1045 | both] |
1046 | --with-tags[=TAGS] |
1047 | include additional configurations [automatic] |
1048 | |
1049 | Some influential environment variables: |
1050 | CC C compiler command |
1051 | CFLAGS C compiler flags |
1052 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1053 | nonstandard directory <lib dir> |
1054 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1055 | headers in a nonstandard directory <include dir> |
1056 | CPP C preprocessor |
1057 | CXX C++ compiler command |
1058 | CXXFLAGS C++ compiler flags |
1059 | CXXCPP C++ preprocessor |
1060 | F77 Fortran 77 compiler command |
1061 | FFLAGS Fortran 77 compiler flags |
1062 | |
1063 | Use these variables to override the choices made by `configure' or to help |
1064 | it to find libraries and programs with nonstandard names/locations. |
1065 | |
1066 | Report bugs to <courier-users@lists.sourceforge.net>. |
1067 | _ACEOF |
1068 | fi |
1069 | |
1070 | if test "$ac_init_help" = "recursive"; then |
1071 | # If there are subdirs, report their specific --help. |
1072 | ac_popdir=`pwd` |
1073 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1074 | test -d $ac_dir || continue |
1075 | ac_builddir=. |
1076 | |
1077 | if test "$ac_dir" != .; then |
1078 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1079 | # A "../" for each directory in $ac_dir_suffix. |
1080 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
1081 | else |
1082 | ac_dir_suffix= ac_top_builddir= |
1083 | fi |
1084 | |
1085 | case $srcdir in |
1086 | .) # No --srcdir option. We are building in place. |
1087 | ac_srcdir=. |
1088 | if test -z "$ac_top_builddir"; then |
1089 | ac_top_srcdir=. |
1090 | else |
1091 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
1092 | fi ;; |
1093 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1094 | ac_srcdir=$srcdir$ac_dir_suffix; |
1095 | ac_top_srcdir=$srcdir ;; |
1096 | *) # Relative path. |
1097 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
1098 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
1099 | esac |
1100 | |
1101 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1102 | # the directories may not exist. |
1103 | case `pwd` in |
1104 | .) ac_abs_builddir="$ac_dir";; |
1105 | *) |
1106 | case "$ac_dir" in |
1107 | .) ac_abs_builddir=`pwd`;; |
1108 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
1109 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
1110 | esac;; |
1111 | esac |
1112 | case $ac_abs_builddir in |
1113 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
1114 | *) |
1115 | case ${ac_top_builddir}. in |
1116 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
1117 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
1118 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
1119 | esac;; |
1120 | esac |
1121 | case $ac_abs_builddir in |
1122 | .) ac_abs_srcdir=$ac_srcdir;; |
1123 | *) |
1124 | case $ac_srcdir in |
1125 | .) ac_abs_srcdir=$ac_abs_builddir;; |
1126 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
1127 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
1128 | esac;; |
1129 | esac |
1130 | case $ac_abs_builddir in |
1131 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
1132 | *) |
1133 | case $ac_top_srcdir in |
1134 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
1135 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
1136 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
1137 | esac;; |
1138 | esac |
1139 | |
1140 | cd $ac_dir |
1141 | # Check for guested configure; otherwise get Cygnus style configure. |
1142 | if test -f $ac_srcdir/configure.gnu; then |
1143 | echo |
1144 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1145 | elif test -f $ac_srcdir/configure; then |
1146 | echo |
1147 | $SHELL $ac_srcdir/configure --help=recursive |
1148 | elif test -f $ac_srcdir/configure.ac || |
1149 | test -f $ac_srcdir/configure.in; then |
1150 | echo |
1151 | $ac_configure --help |
1152 | else |
1153 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1154 | fi |
1155 | cd $ac_popdir |
1156 | done |
1157 | fi |
1158 | |
1159 | test -n "$ac_init_help" && exit 0 |
1160 | if $ac_init_version; then |
1161 | cat <<\_ACEOF |
1162 | libhmac configure 1.00 |
1163 | generated by GNU Autoconf 2.59 |
1164 | |
1165 | Copyright (C) 2003 Free Software Foundation, Inc. |
1166 | This configure script is free software; the Free Software Foundation |
1167 | gives unlimited permission to copy, distribute and modify it. |
1168 | _ACEOF |
1169 | exit 0 |
1170 | fi |
1171 | exec 5>config.log |
1172 | cat >&5 <<_ACEOF |
1173 | This file contains any messages produced by compilers while |
1174 | running configure, to aid debugging if configure makes a mistake. |
1175 | |
1176 | It was created by libhmac $as_me 1.00, which was |
1177 | generated by GNU Autoconf 2.59. Invocation command line was |
1178 | |
1179 | $ $0 $@ |
1180 | |
1181 | _ACEOF |
1182 | { |
1183 | cat <<_ASUNAME |
1184 | ## --------- ## |
1185 | ## Platform. ## |
1186 | ## --------- ## |
1187 | |
1188 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1189 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1190 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1191 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1192 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1193 | |
1194 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1195 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1196 | |
1197 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1198 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1199 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1200 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
1201 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1202 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1203 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1204 | |
1205 | _ASUNAME |
1206 | |
1207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1208 | for as_dir in $PATH |
1209 | do |
1210 | IFS=$as_save_IFS |
1211 | test -z "$as_dir" && as_dir=. |
1212 | echo "PATH: $as_dir" |
1213 | done |
1214 | |
1215 | } >&5 |
1216 | |
1217 | cat >&5 <<_ACEOF |
1218 | |
1219 | |
1220 | ## ----------- ## |
1221 | ## Core tests. ## |
1222 | ## ----------- ## |
1223 | |
1224 | _ACEOF |
1225 | |
1226 | |
1227 | # Keep a trace of the command line. |
1228 | # Strip out --no-create and --no-recursion so they do not pile up. |
1229 | # Strip out --silent because we don't want to record it for future runs. |
1230 | # Also quote any args containing shell meta-characters. |
1231 | # Make two passes to allow for proper duplicate-argument suppression. |
1232 | ac_configure_args= |
1233 | ac_configure_args0= |
1234 | ac_configure_args1= |
1235 | ac_sep= |
1236 | ac_must_keep_next=false |
1237 | for ac_pass in 1 2 |
1238 | do |
1239 | for ac_arg |
1240 | do |
1241 | case $ac_arg in |
1242 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1244 | | -silent | --silent | --silen | --sile | --sil) |
1245 | continue ;; |
1246 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1247 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1248 | esac |
1249 | case $ac_pass in |
1250 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1251 | 2) |
1252 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1253 | if test $ac_must_keep_next = true; then |
1254 | ac_must_keep_next=false # Got value, back to normal. |
1255 | else |
1256 | case $ac_arg in |
1257 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1258 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1259 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1260 | | -with-* | --with-* | -without-* | --without-* | --x) |
1261 | case "$ac_configure_args0 " in |
1262 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1263 | esac |
1264 | ;; |
1265 | -* ) ac_must_keep_next=true ;; |
1266 | esac |
1267 | fi |
1268 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1269 | # Get rid of the leading space. |
1270 | ac_sep=" " |
1271 | ;; |
1272 | esac |
1273 | done |
1274 | done |
1275 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1276 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1277 | |
1278 | # When interrupted or exit'd, cleanup temporary files, and complete |
1279 | # config.log. We remove comments because anyway the quotes in there |
1280 | # would cause problems or look ugly. |
1281 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1282 | # such as our DU 5.0 friend, will then `close' the trap. |
1283 | trap 'exit_status=$? |
1284 | # Save into config.log some information that might help in debugging. |
1285 | { |
1286 | echo |
1287 | |
1288 | cat <<\_ASBOX |
1289 | ## ---------------- ## |
1290 | ## Cache variables. ## |
1291 | ## ---------------- ## |
1292 | _ASBOX |
1293 | echo |
1294 | # The following way of writing the cache mishandles newlines in values, |
1295 | { |
1296 | (set) 2>&1 | |
1297 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1298 | *ac_space=\ *) |
1299 | sed -n \ |
1300 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1301 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1302 | ;; |
1303 | *) |
1304 | sed -n \ |
1305 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1306 | ;; |
1307 | esac; |
1308 | } |
1309 | echo |
1310 | |
1311 | cat <<\_ASBOX |
1312 | ## ----------------- ## |
1313 | ## Output variables. ## |
1314 | ## ----------------- ## |
1315 | _ASBOX |
1316 | echo |
1317 | for ac_var in $ac_subst_vars |
1318 | do |
1319 | eval ac_val=$`echo $ac_var` |
1320 | echo "$ac_var='"'"'$ac_val'"'"'" |
1321 | done | sort |
1322 | echo |
1323 | |
1324 | if test -n "$ac_subst_files"; then |
1325 | cat <<\_ASBOX |
1326 | ## ------------- ## |
1327 | ## Output files. ## |
1328 | ## ------------- ## |
1329 | _ASBOX |
1330 | echo |
1331 | for ac_var in $ac_subst_files |
1332 | do |
1333 | eval ac_val=$`echo $ac_var` |
1334 | echo "$ac_var='"'"'$ac_val'"'"'" |
1335 | done | sort |
1336 | echo |
1337 | fi |
1338 | |
1339 | if test -s confdefs.h; then |
1340 | cat <<\_ASBOX |
1341 | ## ----------- ## |
1342 | ## confdefs.h. ## |
1343 | ## ----------- ## |
1344 | _ASBOX |
1345 | echo |
1346 | sed "/^$/d" confdefs.h | sort |
1347 | echo |
1348 | fi |
1349 | test "$ac_signal" != 0 && |
1350 | echo "$as_me: caught signal $ac_signal" |
1351 | echo "$as_me: exit $exit_status" |
1352 | } >&5 |
1353 | rm -f core *.core && |
1354 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1355 | exit $exit_status |
1356 | ' 0 |
1357 | for ac_signal in 1 2 13 15; do |
1358 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1359 | done |
1360 | ac_signal=0 |
1361 | |
1362 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1363 | rm -rf conftest* confdefs.h |
1364 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1365 | echo >confdefs.h |
1366 | |
1367 | # Predefined preprocessor variables. |
1368 | |
1369 | cat >>confdefs.h <<_ACEOF |
1370 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1371 | _ACEOF |
1372 | |
1373 | |
1374 | cat >>confdefs.h <<_ACEOF |
1375 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1376 | _ACEOF |
1377 | |
1378 | |
1379 | cat >>confdefs.h <<_ACEOF |
1380 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1381 | _ACEOF |
1382 | |
1383 | |
1384 | cat >>confdefs.h <<_ACEOF |
1385 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1386 | _ACEOF |
1387 | |
1388 | |
1389 | cat >>confdefs.h <<_ACEOF |
1390 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1391 | _ACEOF |
1392 | |
1393 | |
1394 | # Let the site file select an alternate cache file if it wants to. |
1395 | # Prefer explicitly selected file to automatically selected ones. |
1396 | if test -z "$CONFIG_SITE"; then |
1397 | if test "x$prefix" != xNONE; then |
1398 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1399 | else |
1400 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1401 | fi |
1402 | fi |
1403 | for ac_site_file in $CONFIG_SITE; do |
1404 | if test -r "$ac_site_file"; then |
1405 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1406 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1407 | sed 's/^/| /' "$ac_site_file" >&5 |
1408 | . "$ac_site_file" |
1409 | fi |
1410 | done |
1411 | |
1412 | if test -r "$cache_file"; then |
1413 | # Some versions of bash will fail to source /dev/null (special |
1414 | # files actually), so we avoid doing that. |
1415 | if test -f "$cache_file"; then |
1416 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1417 | echo "$as_me: loading cache $cache_file" >&6;} |
1418 | case $cache_file in |
1419 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
1420 | *) . ./$cache_file;; |
1421 | esac |
1422 | fi |
1423 | else |
1424 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1425 | echo "$as_me: creating cache $cache_file" >&6;} |
1426 | >$cache_file |
1427 | fi |
1428 | |
1429 | # Check that the precious variables saved in the cache have kept the same |
1430 | # value. |
1431 | ac_cache_corrupted=false |
1432 | for ac_var in `(set) 2>&1 | |
1433 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1434 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1435 | eval ac_new_set=\$ac_env_${ac_var}_set |
1436 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1437 | eval ac_new_val="\$ac_env_${ac_var}_value" |
1438 | case $ac_old_set,$ac_new_set in |
1439 | set,) |
1440 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1441 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1442 | ac_cache_corrupted=: ;; |
1443 | ,set) |
1444 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1445 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1446 | ac_cache_corrupted=: ;; |
1447 | ,);; |
1448 | *) |
1449 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1450 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1451 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1452 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1453 | echo "$as_me: former value: $ac_old_val" >&2;} |
1454 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1455 | echo "$as_me: current value: $ac_new_val" >&2;} |
1456 | ac_cache_corrupted=: |
1457 | fi;; |
1458 | esac |
1459 | # Pass precious variables to config.status. |
1460 | if test "$ac_new_set" = set; then |
1461 | case $ac_new_val in |
1462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1463 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1464 | *) ac_arg=$ac_var=$ac_new_val ;; |
1465 | esac |
1466 | case " $ac_configure_args " in |
1467 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1468 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1469 | esac |
1470 | fi |
1471 | done |
1472 | if $ac_cache_corrupted; then |
1473 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1474 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1475 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1476 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1477 | { (exit 1); exit 1; }; } |
1478 | fi |
1479 | |
1480 | ac_ext=c |
1481 | ac_cpp='$CPP $CPPFLAGS' |
1482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1485 | |
1486 | |
1487 | |
1488 | |
1489 | |
1490 | |
1491 | |
1492 | |
1493 | |
1494 | |
1495 | |
1496 | |
1497 | |
1498 | |
1499 | |
1500 | |
1501 | |
1502 | |
1503 | |
1504 | |
1505 | |
1506 | |
1507 | |
1508 | |
1509 | |
1510 | |
1511 | |
1512 | |
1513 | >confdefs.h # Kill PACKAGE_ macros |
1514 | |
1515 | |
1516 | am__api_version="1.9" |
1517 | ac_aux_dir= |
1518 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1519 | if test -f $ac_dir/install-sh; then |
1520 | ac_aux_dir=$ac_dir |
1521 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1522 | break |
1523 | elif test -f $ac_dir/install.sh; then |
1524 | ac_aux_dir=$ac_dir |
1525 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1526 | break |
1527 | elif test -f $ac_dir/shtool; then |
1528 | ac_aux_dir=$ac_dir |
1529 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1530 | break |
1531 | fi |
1532 | done |
1533 | if test -z "$ac_aux_dir"; then |
1534 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1535 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1536 | { (exit 1); exit 1; }; } |
1537 | fi |
1538 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1539 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1540 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1541 | |
1542 | # Find a good install program. We prefer a C program (faster), |
1543 | # so one script is as good as another. But avoid the broken or |
1544 | # incompatible versions: |
1545 | # SysV /etc/install, /usr/sbin/install |
1546 | # SunOS /usr/etc/install |
1547 | # IRIX /sbin/install |
1548 | # AIX /bin/install |
1549 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1550 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1551 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1552 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1553 | # OS/2's system install, which has a completely different semantic |
1554 | # ./install, which can be erroneously created by make from ./install.sh. |
1555 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1556 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1557 | if test -z "$INSTALL"; then |
1558 | if test "${ac_cv_path_install+set}" = set; then |
1559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1560 | else |
1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1562 | for as_dir in $PATH |
1563 | do |
1564 | IFS=$as_save_IFS |
1565 | test -z "$as_dir" && as_dir=. |
1566 | # Account for people who put trailing slashes in PATH elements. |
1567 | case $as_dir/ in |
1568 | ./ | .// | /cC/* | \ |
1569 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1570 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1571 | /usr/ucb/* ) ;; |
1572 | *) |
1573 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1574 | # Don't use installbsd from OSF since it installs stuff as root |
1575 | # by default. |
1576 | for ac_prog in ginstall scoinst install; do |
1577 | for ac_exec_ext in '' $ac_executable_extensions; do |
1578 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1579 | if test $ac_prog = install && |
1580 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1581 | # AIX install. It has an incompatible calling convention. |
1582 | : |
1583 | elif test $ac_prog = install && |
1584 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1585 | # program-specific install script used by HP pwplus--don't use. |
1586 | : |
1587 | else |
1588 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1589 | break 3 |
1590 | fi |
1591 | fi |
1592 | done |
1593 | done |
1594 | ;; |
1595 | esac |
1596 | done |
1597 | |
1598 | |
1599 | fi |
1600 | if test "${ac_cv_path_install+set}" = set; then |
1601 | INSTALL=$ac_cv_path_install |
1602 | else |
1603 | # As a last resort, use the slow shell script. We don't cache a |
1604 | # path for INSTALL within a source directory, because that will |
1605 | # break other packages using the cache if that directory is |
1606 | # removed, or if the path is relative. |
1607 | INSTALL=$ac_install_sh |
1608 | fi |
1609 | fi |
1610 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1611 | echo "${ECHO_T}$INSTALL" >&6 |
1612 | |
1613 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1614 | # It thinks the first close brace ends the variable substitution. |
1615 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1616 | |
1617 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1618 | |
1619 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1620 | |
1621 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1622 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1623 | # Just in case |
1624 | sleep 1 |
1625 | echo timestamp > conftest.file |
1626 | # Do `set' in a subshell so we don't clobber the current shell's |
1627 | # arguments. Must try -L first in case configure is actually a |
1628 | # symlink; some systems play weird games with the mod time of symlinks |
1629 | # (eg FreeBSD returns the mod time of the symlink's containing |
1630 | # directory). |
1631 | if ( |
1632 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1633 | if test "$*" = "X"; then |
1634 | # -L didn't work. |
1635 | set X `ls -t $srcdir/configure conftest.file` |
1636 | fi |
1637 | rm -f conftest.file |
1638 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1639 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1640 | |
1641 | # If neither matched, then we have a broken ls. This can happen |
1642 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1643 | # broken ls alias from the environment. This has actually |
1644 | # happened. Such a system could not be considered "sane". |
1645 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1646 | alias in your environment" >&5 |
1647 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1648 | alias in your environment" >&2;} |
1649 | { (exit 1); exit 1; }; } |
1650 | fi |
1651 | |
1652 | test "$2" = conftest.file |
1653 | ) |
1654 | then |
1655 | # Ok. |
1656 | : |
1657 | else |
1658 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1659 | Check your system clock" >&5 |
1660 | echo "$as_me: error: newly created file is older than distributed files! |
1661 | Check your system clock" >&2;} |
1662 | { (exit 1); exit 1; }; } |
1663 | fi |
1664 | echo "$as_me:$LINENO: result: yes" >&5 |
1665 | echo "${ECHO_T}yes" >&6 |
1666 | test "$program_prefix" != NONE && |
1667 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1668 | # Use a double $ so make ignores it. |
1669 | test "$program_suffix" != NONE && |
1670 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1671 | # Double any \ or $. echo might interpret backslashes. |
1672 | # By default was `s,x,x', remove it if useless. |
1673 | cat <<\_ACEOF >conftest.sed |
1674 | s/[\\$]/&&/g;s/;s,x,x,$// |
1675 | _ACEOF |
1676 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1677 | rm conftest.sed |
1678 | |
1679 | # expand $ac_aux_dir to an absolute path |
1680 | am_aux_dir=`cd $ac_aux_dir && pwd` |
1681 | |
1682 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1683 | # Use eval to expand $SHELL |
1684 | if eval "$MISSING --run true"; then |
1685 | am_missing_run="$MISSING --run " |
1686 | else |
1687 | am_missing_run= |
1688 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1689 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1690 | fi |
1691 | |
1692 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1693 | # We used to keeping the `.' as first argument, in order to |
1694 | # allow $(mkdir_p) to be used without argument. As in |
1695 | # $(mkdir_p) $(somedir) |
1696 | # where $(somedir) is conditionally defined. However this is wrong |
1697 | # for two reasons: |
1698 | # 1. if the package is installed by a user who cannot write `.' |
1699 | # make install will fail, |
1700 | # 2. the above comment should most certainly read |
1701 | # $(mkdir_p) $(DESTDIR)$(somedir) |
1702 | # so it does not work when $(somedir) is undefined and |
1703 | # $(DESTDIR) is not. |
1704 | # To support the latter case, we have to write |
1705 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1706 | # so the `.' trick is pointless. |
1707 | mkdir_p='mkdir -p --' |
1708 | else |
1709 | # On NextStep and OpenStep, the `mkdir' command does not |
1710 | # recognize any option. It will interpret all options as |
1711 | # directories to create, and then abort because `.' already |
1712 | # exists. |
1713 | for d in ./-p ./--version; |
1714 | do |
1715 | test -d $d && rmdir $d |
1716 | done |
1717 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1718 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
1719 | mkdir_p='$(mkinstalldirs)' |
1720 | else |
1721 | mkdir_p='$(install_sh) -d' |
1722 | fi |
1723 | fi |
1724 | |
1725 | for ac_prog in gawk mawk nawk awk |
1726 | do |
1727 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1728 | set dummy $ac_prog; ac_word=$2 |
1729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1731 | if test "${ac_cv_prog_AWK+set}" = set; then |
1732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1733 | else |
1734 | if test -n "$AWK"; then |
1735 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1736 | else |
1737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1738 | for as_dir in $PATH |
1739 | do |
1740 | IFS=$as_save_IFS |
1741 | test -z "$as_dir" && as_dir=. |
1742 | for ac_exec_ext in '' $ac_executable_extensions; do |
1743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1744 | ac_cv_prog_AWK="$ac_prog" |
1745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1746 | break 2 |
1747 | fi |
1748 | done |
1749 | done |
1750 | |
1751 | fi |
1752 | fi |
1753 | AWK=$ac_cv_prog_AWK |
1754 | if test -n "$AWK"; then |
1755 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1756 | echo "${ECHO_T}$AWK" >&6 |
1757 | else |
1758 | echo "$as_me:$LINENO: result: no" >&5 |
1759 | echo "${ECHO_T}no" >&6 |
1760 | fi |
1761 | |
1762 | test -n "$AWK" && break |
1763 | done |
1764 | |
1765 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1766 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1767 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1768 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1770 | else |
1771 | cat >conftest.make <<\_ACEOF |
1772 | all: |
1773 | @echo 'ac_maketemp="$(MAKE)"' |
1774 | _ACEOF |
1775 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1776 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1777 | if test -n "$ac_maketemp"; then |
1778 | eval ac_cv_prog_make_${ac_make}_set=yes |
1779 | else |
1780 | eval ac_cv_prog_make_${ac_make}_set=no |
1781 | fi |
1782 | rm -f conftest.make |
1783 | fi |
1784 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1785 | echo "$as_me:$LINENO: result: yes" >&5 |
1786 | echo "${ECHO_T}yes" >&6 |
1787 | SET_MAKE= |
1788 | else |
1789 | echo "$as_me:$LINENO: result: no" >&5 |
1790 | echo "${ECHO_T}no" >&6 |
1791 | SET_MAKE="MAKE=${MAKE-make}" |
1792 | fi |
1793 | |
1794 | rm -rf .tst 2>/dev/null |
1795 | mkdir .tst 2>/dev/null |
1796 | if test -d .tst; then |
1797 | am__leading_dot=. |
1798 | else |
1799 | am__leading_dot=_ |
1800 | fi |
1801 | rmdir .tst 2>/dev/null |
1802 | |
1803 | # test to see if srcdir already configured |
1804 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1805 | test -f $srcdir/config.status; then |
1806 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1807 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1808 | { (exit 1); exit 1; }; } |
1809 | fi |
1810 | |
1811 | # test whether we have cygpath |
1812 | if test -z "$CYGPATH_W"; then |
1813 | if (cygpath --version) >/dev/null 2>/dev/null; then |
1814 | CYGPATH_W='cygpath -w' |
1815 | else |
1816 | CYGPATH_W=echo |
1817 | fi |
1818 | fi |
1819 | |
1820 | |
1821 | # Define the identity of the package. |
1822 | PACKAGE='libhmac' |
1823 | VERSION='1.00' |
1824 | |
1825 | |
1826 | # Some tools Automake needs. |
1827 | |
1828 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1829 | |
1830 | |
1831 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1832 | |
1833 | |
1834 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1835 | |
1836 | |
1837 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1838 | |
1839 | |
1840 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1841 | |
1842 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1843 | |
1844 | # Installed binaries are usually stripped using `strip' when the user |
1845 | # run `make install-strip'. However `strip' might not be the right |
1846 | # tool to use in cross-compilation environments, therefore Automake |
1847 | # will honor the `STRIP' environment variable to overrule this program. |
1848 | if test "$cross_compiling" != no; then |
1849 | if test -n "$ac_tool_prefix"; then |
1850 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1851 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1854 | if test "${ac_cv_prog_STRIP+set}" = set; then |
1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1856 | else |
1857 | if test -n "$STRIP"; then |
1858 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1859 | else |
1860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1861 | for as_dir in $PATH |
1862 | do |
1863 | IFS=$as_save_IFS |
1864 | test -z "$as_dir" && as_dir=. |
1865 | for ac_exec_ext in '' $ac_executable_extensions; do |
1866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1867 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1869 | break 2 |
1870 | fi |
1871 | done |
1872 | done |
1873 | |
1874 | fi |
1875 | fi |
1876 | STRIP=$ac_cv_prog_STRIP |
1877 | if test -n "$STRIP"; then |
1878 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
1879 | echo "${ECHO_T}$STRIP" >&6 |
1880 | else |
1881 | echo "$as_me:$LINENO: result: no" >&5 |
1882 | echo "${ECHO_T}no" >&6 |
1883 | fi |
1884 | |
1885 | fi |
1886 | if test -z "$ac_cv_prog_STRIP"; then |
1887 | ac_ct_STRIP=$STRIP |
1888 | # Extract the first word of "strip", so it can be a program name with args. |
1889 | set dummy strip; ac_word=$2 |
1890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1892 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1894 | else |
1895 | if test -n "$ac_ct_STRIP"; then |
1896 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1897 | else |
1898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1899 | for as_dir in $PATH |
1900 | do |
1901 | IFS=$as_save_IFS |
1902 | test -z "$as_dir" && as_dir=. |
1903 | for ac_exec_ext in '' $ac_executable_extensions; do |
1904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1905 | ac_cv_prog_ac_ct_STRIP="strip" |
1906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1907 | break 2 |
1908 | fi |
1909 | done |
1910 | done |
1911 | |
1912 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1913 | fi |
1914 | fi |
1915 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1916 | if test -n "$ac_ct_STRIP"; then |
1917 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1918 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1919 | else |
1920 | echo "$as_me:$LINENO: result: no" >&5 |
1921 | echo "${ECHO_T}no" >&6 |
1922 | fi |
1923 | |
1924 | STRIP=$ac_ct_STRIP |
1925 | else |
1926 | STRIP="$ac_cv_prog_STRIP" |
1927 | fi |
1928 | |
1929 | fi |
1930 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1931 | |
1932 | # We need awk for the "check" target. The system "awk" is bad on |
1933 | # some platforms. |
1934 | # Always define AMTAR for backward compatibility. |
1935 | |
1936 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1937 | |
1938 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1939 | |
1940 | |
1941 | |
1942 | |
1943 | |
1944 | |
1945 | |
1946 | ac_config_headers="$ac_config_headers config.h" |
1947 | |
1948 | |
1949 | for ac_prog in gawk mawk nawk awk |
1950 | do |
1951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1952 | set dummy $ac_prog; ac_word=$2 |
1953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1955 | if test "${ac_cv_prog_AWK+set}" = set; then |
1956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1957 | else |
1958 | if test -n "$AWK"; then |
1959 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1960 | else |
1961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1962 | for as_dir in $PATH |
1963 | do |
1964 | IFS=$as_save_IFS |
1965 | test -z "$as_dir" && as_dir=. |
1966 | for ac_exec_ext in '' $ac_executable_extensions; do |
1967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1968 | ac_cv_prog_AWK="$ac_prog" |
1969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1970 | break 2 |
1971 | fi |
1972 | done |
1973 | done |
1974 | |
1975 | fi |
1976 | fi |
1977 | AWK=$ac_cv_prog_AWK |
1978 | if test -n "$AWK"; then |
1979 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1980 | echo "${ECHO_T}$AWK" >&6 |
1981 | else |
1982 | echo "$as_me:$LINENO: result: no" >&5 |
1983 | echo "${ECHO_T}no" >&6 |
1984 | fi |
1985 | |
1986 | test -n "$AWK" && break |
1987 | done |
1988 | |
1989 | # Find a good install program. We prefer a C program (faster), |
1990 | # so one script is as good as another. But avoid the broken or |
1991 | # incompatible versions: |
1992 | # SysV /etc/install, /usr/sbin/install |
1993 | # SunOS /usr/etc/install |
1994 | # IRIX /sbin/install |
1995 | # AIX /bin/install |
1996 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1997 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1998 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1999 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2000 | # OS/2's system install, which has a completely different semantic |
2001 | # ./install, which can be erroneously created by make from ./install.sh. |
2002 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2003 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
2004 | if test -z "$INSTALL"; then |
2005 | if test "${ac_cv_path_install+set}" = set; then |
2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2007 | else |
2008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2009 | for as_dir in $PATH |
2010 | do |
2011 | IFS=$as_save_IFS |
2012 | test -z "$as_dir" && as_dir=. |
2013 | # Account for people who put trailing slashes in PATH elements. |
2014 | case $as_dir/ in |
2015 | ./ | .// | /cC/* | \ |
2016 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2017 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2018 | /usr/ucb/* ) ;; |
2019 | *) |
2020 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2021 | # Don't use installbsd from OSF since it installs stuff as root |
2022 | # by default. |
2023 | for ac_prog in ginstall scoinst install; do |
2024 | for ac_exec_ext in '' $ac_executable_extensions; do |
2025 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2026 | if test $ac_prog = install && |
2027 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2028 | # AIX install. It has an incompatible calling convention. |
2029 | : |
2030 | elif test $ac_prog = install && |
2031 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2032 | # program-specific install script used by HP pwplus--don't use. |
2033 | : |
2034 | else |
2035 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2036 | break 3 |
2037 | fi |
2038 | fi |
2039 | done |
2040 | done |
2041 | ;; |
2042 | esac |
2043 | done |
2044 | |
2045 | |
2046 | fi |
2047 | if test "${ac_cv_path_install+set}" = set; then |
2048 | INSTALL=$ac_cv_path_install |
2049 | else |
2050 | # As a last resort, use the slow shell script. We don't cache a |
2051 | # path for INSTALL within a source directory, because that will |
2052 | # break other packages using the cache if that directory is |
2053 | # removed, or if the path is relative. |
2054 | INSTALL=$ac_install_sh |
2055 | fi |
2056 | fi |
2057 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2058 | echo "${ECHO_T}$INSTALL" >&6 |
2059 | |
2060 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2061 | # It thinks the first close brace ends the variable substitution. |
2062 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2063 | |
2064 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2065 | |
2066 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2067 | |
2068 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2069 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
2070 | LN_S=$as_ln_s |
2071 | if test "$LN_S" = "ln -s"; then |
2072 | echo "$as_me:$LINENO: result: yes" >&5 |
2073 | echo "${ECHO_T}yes" >&6 |
2074 | else |
2075 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2076 | echo "${ECHO_T}no, using $LN_S" >&6 |
2077 | fi |
2078 | |
2079 | ac_ext=c |
2080 | ac_cpp='$CPP $CPPFLAGS' |
2081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2084 | if test -n "$ac_tool_prefix"; then |
2085 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2086 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2089 | if test "${ac_cv_prog_CC+set}" = set; then |
2090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2091 | else |
2092 | if test -n "$CC"; then |
2093 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2094 | else |
2095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2096 | for as_dir in $PATH |
2097 | do |
2098 | IFS=$as_save_IFS |
2099 | test -z "$as_dir" && as_dir=. |
2100 | for ac_exec_ext in '' $ac_executable_extensions; do |
2101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2102 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2104 | break 2 |
2105 | fi |
2106 | done |
2107 | done |
2108 | |
2109 | fi |
2110 | fi |
2111 | CC=$ac_cv_prog_CC |
2112 | if test -n "$CC"; then |
2113 | echo "$as_me:$LINENO: result: $CC" >&5 |
2114 | echo "${ECHO_T}$CC" >&6 |
2115 | else |
2116 | echo "$as_me:$LINENO: result: no" >&5 |
2117 | echo "${ECHO_T}no" >&6 |
2118 | fi |
2119 | |
2120 | fi |
2121 | if test -z "$ac_cv_prog_CC"; then |
2122 | ac_ct_CC=$CC |
2123 | # Extract the first word of "gcc", so it can be a program name with args. |
2124 | set dummy gcc; ac_word=$2 |
2125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2127 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2129 | else |
2130 | if test -n "$ac_ct_CC"; then |
2131 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2132 | else |
2133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2134 | for as_dir in $PATH |
2135 | do |
2136 | IFS=$as_save_IFS |
2137 | test -z "$as_dir" && as_dir=. |
2138 | for ac_exec_ext in '' $ac_executable_extensions; do |
2139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2140 | ac_cv_prog_ac_ct_CC="gcc" |
2141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2142 | break 2 |
2143 | fi |
2144 | done |
2145 | done |
2146 | |
2147 | fi |
2148 | fi |
2149 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2150 | if test -n "$ac_ct_CC"; then |
2151 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2152 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2153 | else |
2154 | echo "$as_me:$LINENO: result: no" >&5 |
2155 | echo "${ECHO_T}no" >&6 |
2156 | fi |
2157 | |
2158 | CC=$ac_ct_CC |
2159 | else |
2160 | CC="$ac_cv_prog_CC" |
2161 | fi |
2162 | |
2163 | if test -z "$CC"; then |
2164 | if test -n "$ac_tool_prefix"; then |
2165 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2166 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2169 | if test "${ac_cv_prog_CC+set}" = set; then |
2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2171 | else |
2172 | if test -n "$CC"; then |
2173 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2174 | else |
2175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2176 | for as_dir in $PATH |
2177 | do |
2178 | IFS=$as_save_IFS |
2179 | test -z "$as_dir" && as_dir=. |
2180 | for ac_exec_ext in '' $ac_executable_extensions; do |
2181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2182 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2184 | break 2 |
2185 | fi |
2186 | done |
2187 | done |
2188 | |
2189 | fi |
2190 | fi |
2191 | CC=$ac_cv_prog_CC |
2192 | if test -n "$CC"; then |
2193 | echo "$as_me:$LINENO: result: $CC" >&5 |
2194 | echo "${ECHO_T}$CC" >&6 |
2195 | else |
2196 | echo "$as_me:$LINENO: result: no" >&5 |
2197 | echo "${ECHO_T}no" >&6 |
2198 | fi |
2199 | |
2200 | fi |
2201 | if test -z "$ac_cv_prog_CC"; then |
2202 | ac_ct_CC=$CC |
2203 | # Extract the first word of "cc", so it can be a program name with args. |
2204 | set dummy cc; ac_word=$2 |
2205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2207 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2209 | else |
2210 | if test -n "$ac_ct_CC"; then |
2211 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2212 | else |
2213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2214 | for as_dir in $PATH |
2215 | do |
2216 | IFS=$as_save_IFS |
2217 | test -z "$as_dir" && as_dir=. |
2218 | for ac_exec_ext in '' $ac_executable_extensions; do |
2219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2220 | ac_cv_prog_ac_ct_CC="cc" |
2221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2222 | break 2 |
2223 | fi |
2224 | done |
2225 | done |
2226 | |
2227 | fi |
2228 | fi |
2229 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2230 | if test -n "$ac_ct_CC"; then |
2231 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2232 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2233 | else |
2234 | echo "$as_me:$LINENO: result: no" >&5 |
2235 | echo "${ECHO_T}no" >&6 |
2236 | fi |
2237 | |
2238 | CC=$ac_ct_CC |
2239 | else |
2240 | CC="$ac_cv_prog_CC" |
2241 | fi |
2242 | |
2243 | fi |
2244 | if test -z "$CC"; then |
2245 | # Extract the first word of "cc", so it can be a program name with args. |
2246 | set dummy cc; ac_word=$2 |
2247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2249 | if test "${ac_cv_prog_CC+set}" = set; then |
2250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2251 | else |
2252 | if test -n "$CC"; then |
2253 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2254 | else |
2255 | ac_prog_rejected=no |
2256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2257 | for as_dir in $PATH |
2258 | do |
2259 | IFS=$as_save_IFS |
2260 | test -z "$as_dir" && as_dir=. |
2261 | for ac_exec_ext in '' $ac_executable_extensions; do |
2262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2263 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2264 | ac_prog_rejected=yes |
2265 | continue |
2266 | fi |
2267 | ac_cv_prog_CC="cc" |
2268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2269 | break 2 |
2270 | fi |
2271 | done |
2272 | done |
2273 | |
2274 | if test $ac_prog_rejected = yes; then |
2275 | # We found a bogon in the path, so make sure we never use it. |
2276 | set dummy $ac_cv_prog_CC |
2277 | shift |
2278 | if test $# != 0; then |
2279 | # We chose a different compiler from the bogus one. |
2280 | # However, it has the same basename, so the bogon will be chosen |
2281 | # first if we set CC to just the basename; use the full file name. |
2282 | shift |
2283 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2284 | fi |
2285 | fi |
2286 | fi |
2287 | fi |
2288 | CC=$ac_cv_prog_CC |
2289 | if test -n "$CC"; then |
2290 | echo "$as_me:$LINENO: result: $CC" >&5 |
2291 | echo "${ECHO_T}$CC" >&6 |
2292 | else |
2293 | echo "$as_me:$LINENO: result: no" >&5 |
2294 | echo "${ECHO_T}no" >&6 |
2295 | fi |
2296 | |
2297 | fi |
2298 | if test -z "$CC"; then |
2299 | if test -n "$ac_tool_prefix"; then |
2300 | for ac_prog in cl |
2301 | do |
2302 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2303 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2306 | if test "${ac_cv_prog_CC+set}" = set; then |
2307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2308 | else |
2309 | if test -n "$CC"; then |
2310 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2311 | else |
2312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2313 | for as_dir in $PATH |
2314 | do |
2315 | IFS=$as_save_IFS |
2316 | test -z "$as_dir" && as_dir=. |
2317 | for ac_exec_ext in '' $ac_executable_extensions; do |
2318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2319 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2321 | break 2 |
2322 | fi |
2323 | done |
2324 | done |
2325 | |
2326 | fi |
2327 | fi |
2328 | CC=$ac_cv_prog_CC |
2329 | if test -n "$CC"; then |
2330 | echo "$as_me:$LINENO: result: $CC" >&5 |
2331 | echo "${ECHO_T}$CC" >&6 |
2332 | else |
2333 | echo "$as_me:$LINENO: result: no" >&5 |
2334 | echo "${ECHO_T}no" >&6 |
2335 | fi |
2336 | |
2337 | test -n "$CC" && break |
2338 | done |
2339 | fi |
2340 | if test -z "$CC"; then |
2341 | ac_ct_CC=$CC |
2342 | for ac_prog in cl |
2343 | do |
2344 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2345 | set dummy $ac_prog; ac_word=$2 |
2346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2348 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2350 | else |
2351 | if test -n "$ac_ct_CC"; then |
2352 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2353 | else |
2354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2355 | for as_dir in $PATH |
2356 | do |
2357 | IFS=$as_save_IFS |
2358 | test -z "$as_dir" && as_dir=. |
2359 | for ac_exec_ext in '' $ac_executable_extensions; do |
2360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2361 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2363 | break 2 |
2364 | fi |
2365 | done |
2366 | done |
2367 | |
2368 | fi |
2369 | fi |
2370 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2371 | if test -n "$ac_ct_CC"; then |
2372 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2373 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2374 | else |
2375 | echo "$as_me:$LINENO: result: no" >&5 |
2376 | echo "${ECHO_T}no" >&6 |
2377 | fi |
2378 | |
2379 | test -n "$ac_ct_CC" && break |
2380 | done |
2381 | |
2382 | CC=$ac_ct_CC |
2383 | fi |
2384 | |
2385 | fi |
2386 | |
2387 | |
2388 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2389 | See \`config.log' for more details." >&5 |
2390 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2391 | See \`config.log' for more details." >&2;} |
2392 | { (exit 1); exit 1; }; } |
2393 | |
2394 | # Provide some information about the compiler. |
2395 | echo "$as_me:$LINENO:" \ |
2396 | "checking for C compiler version" >&5 |
2397 | ac_compiler=`set X $ac_compile; echo $2` |
2398 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2399 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2400 | ac_status=$? |
2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2402 | (exit $ac_status); } |
2403 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2404 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2405 | ac_status=$? |
2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2407 | (exit $ac_status); } |
2408 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2409 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2410 | ac_status=$? |
2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2412 | (exit $ac_status); } |
2413 | |
2414 | cat >conftest.$ac_ext <<_ACEOF |
2415 | /* confdefs.h. */ |
2416 | _ACEOF |
2417 | cat confdefs.h >>conftest.$ac_ext |
2418 | cat >>conftest.$ac_ext <<_ACEOF |
2419 | /* end confdefs.h. */ |
2420 | |
2421 | int |
2422 | main () |
2423 | { |
2424 | |
2425 | ; |
2426 | return 0; |
2427 | } |
2428 | _ACEOF |
2429 | ac_clean_files_save=$ac_clean_files |
2430 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2431 | # Try to create an executable without -o first, disregard a.out. |
2432 | # It will help us diagnose broken compilers, and finding out an intuition |
2433 | # of exeext. |
2434 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2435 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
2436 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2437 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2438 | (eval $ac_link_default) 2>&5 |
2439 | ac_status=$? |
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2441 | (exit $ac_status); }; then |
2442 | # Find the output, starting from the most likely. This scheme is |
2443 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2444 | # resort. |
2445 | |
2446 | # Be careful to initialize this variable, since it used to be cached. |
2447 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2448 | ac_cv_exeext= |
2449 | # b.out is created by i960 compilers. |
2450 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2451 | do |
2452 | test -f "$ac_file" || continue |
2453 | case $ac_file in |
2454 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2455 | ;; |
2456 | conftest.$ac_ext ) |
2457 | # This is the source file. |
2458 | ;; |
2459 | [ab].out ) |
2460 | # We found the default executable, but exeext='' is most |
2461 | # certainly right. |
2462 | break;; |
2463 | *.* ) |
2464 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2465 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
2466 | # but it would be cool to find out if it's true. Does anybody |
2467 | # maintain Libtool? --akim. |
2468 | export ac_cv_exeext |
2469 | break;; |
2470 | * ) |
2471 | break;; |
2472 | esac |
2473 | done |
2474 | else |
2475 | echo "$as_me: failed program was:" >&5 |
2476 | sed 's/^/| /' conftest.$ac_ext >&5 |
2477 | |
2478 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2479 | See \`config.log' for more details." >&5 |
2480 | echo "$as_me: error: C compiler cannot create executables |
2481 | See \`config.log' for more details." >&2;} |
2482 | { (exit 77); exit 77; }; } |
2483 | fi |
2484 | |
2485 | ac_exeext=$ac_cv_exeext |
2486 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
2487 | echo "${ECHO_T}$ac_file" >&6 |
2488 | |
2489 | # Check the compiler produces executables we can run. If not, either |
2490 | # the compiler is broken, or we cross compile. |
2491 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2492 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2493 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2494 | # If not cross compiling, check that we can run a simple program. |
2495 | if test "$cross_compiling" != yes; then |
2496 | if { ac_try='./$ac_file' |
2497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2498 | (eval $ac_try) 2>&5 |
2499 | ac_status=$? |
2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2501 | (exit $ac_status); }; }; then |
2502 | cross_compiling=no |
2503 | else |
2504 | if test "$cross_compiling" = maybe; then |
2505 | cross_compiling=yes |
2506 | else |
2507 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2508 | If you meant to cross compile, use \`--host'. |
2509 | See \`config.log' for more details." >&5 |
2510 | echo "$as_me: error: cannot run C compiled programs. |
2511 | If you meant to cross compile, use \`--host'. |
2512 | See \`config.log' for more details." >&2;} |
2513 | { (exit 1); exit 1; }; } |
2514 | fi |
2515 | fi |
2516 | fi |
2517 | echo "$as_me:$LINENO: result: yes" >&5 |
2518 | echo "${ECHO_T}yes" >&6 |
2519 | |
2520 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2521 | ac_clean_files=$ac_clean_files_save |
2522 | # Check the compiler produces executables we can run. If not, either |
2523 | # the compiler is broken, or we cross compile. |
2524 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2525 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2526 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2527 | echo "${ECHO_T}$cross_compiling" >&6 |
2528 | |
2529 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2530 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2532 | (eval $ac_link) 2>&5 |
2533 | ac_status=$? |
2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2535 | (exit $ac_status); }; then |
2536 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2537 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2538 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2539 | # `rm'. |
2540 | for ac_file in conftest.exe conftest conftest.*; do |
2541 | test -f "$ac_file" || continue |
2542 | case $ac_file in |
2543 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2544 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2545 | export ac_cv_exeext |
2546 | break;; |
2547 | * ) break;; |
2548 | esac |
2549 | done |
2550 | else |
2551 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2552 | See \`config.log' for more details." >&5 |
2553 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2554 | See \`config.log' for more details." >&2;} |
2555 | { (exit 1); exit 1; }; } |
2556 | fi |
2557 | |
2558 | rm -f conftest$ac_cv_exeext |
2559 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2560 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2561 | |
2562 | rm -f conftest.$ac_ext |
2563 | EXEEXT=$ac_cv_exeext |
2564 | ac_exeext=$EXEEXT |
2565 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2566 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2567 | if test "${ac_cv_objext+set}" = set; then |
2568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2569 | else |
2570 | cat >conftest.$ac_ext <<_ACEOF |
2571 | /* confdefs.h. */ |
2572 | _ACEOF |
2573 | cat confdefs.h >>conftest.$ac_ext |
2574 | cat >>conftest.$ac_ext <<_ACEOF |
2575 | /* end confdefs.h. */ |
2576 | |
2577 | int |
2578 | main () |
2579 | { |
2580 | |
2581 | ; |
2582 | return 0; |
2583 | } |
2584 | _ACEOF |
2585 | rm -f conftest.o conftest.obj |
2586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2587 | (eval $ac_compile) 2>&5 |
2588 | ac_status=$? |
2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2590 | (exit $ac_status); }; then |
2591 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2592 | case $ac_file in |
2593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2594 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2595 | break;; |
2596 | esac |
2597 | done |
2598 | else |
2599 | echo "$as_me: failed program was:" >&5 |
2600 | sed 's/^/| /' conftest.$ac_ext >&5 |
2601 | |
2602 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2603 | See \`config.log' for more details." >&5 |
2604 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2605 | See \`config.log' for more details." >&2;} |
2606 | { (exit 1); exit 1; }; } |
2607 | fi |
2608 | |
2609 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2610 | fi |
2611 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2612 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2613 | OBJEXT=$ac_cv_objext |
2614 | ac_objext=$OBJEXT |
2615 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2616 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2617 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2619 | else |
2620 | cat >conftest.$ac_ext <<_ACEOF |
2621 | /* confdefs.h. */ |
2622 | _ACEOF |
2623 | cat confdefs.h >>conftest.$ac_ext |
2624 | cat >>conftest.$ac_ext <<_ACEOF |
2625 | /* end confdefs.h. */ |
2626 | |
2627 | int |
2628 | main () |
2629 | { |
2630 | #ifndef __GNUC__ |
2631 | choke me |
2632 | #endif |
2633 | |
2634 | ; |
2635 | return 0; |
2636 | } |
2637 | _ACEOF |
2638 | rm -f conftest.$ac_objext |
2639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2640 | (eval $ac_compile) 2>conftest.er1 |
2641 | ac_status=$? |
2642 | grep -v '^ *+' conftest.er1 >conftest.err |
2643 | rm -f conftest.er1 |
2644 | cat conftest.err >&5 |
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2646 | (exit $ac_status); } && |
2647 | { ac_try='test -z "$ac_c_werror_flag" |
2648 | || test ! -s conftest.err' |
2649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2650 | (eval $ac_try) 2>&5 |
2651 | ac_status=$? |
2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2653 | (exit $ac_status); }; } && |
2654 | { ac_try='test -s conftest.$ac_objext' |
2655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2656 | (eval $ac_try) 2>&5 |
2657 | ac_status=$? |
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2659 | (exit $ac_status); }; }; then |
2660 | ac_compiler_gnu=yes |
2661 | else |
2662 | echo "$as_me: failed program was:" >&5 |
2663 | sed 's/^/| /' conftest.$ac_ext >&5 |
2664 | |
2665 | ac_compiler_gnu=no |
2666 | fi |
2667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2668 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2669 | |
2670 | fi |
2671 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2672 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2673 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2674 | ac_test_CFLAGS=${CFLAGS+set} |
2675 | ac_save_CFLAGS=$CFLAGS |
2676 | CFLAGS="-g" |
2677 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2678 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2679 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2681 | else |
2682 | cat >conftest.$ac_ext <<_ACEOF |
2683 | /* confdefs.h. */ |
2684 | _ACEOF |
2685 | cat confdefs.h >>conftest.$ac_ext |
2686 | cat >>conftest.$ac_ext <<_ACEOF |
2687 | /* end confdefs.h. */ |
2688 | |
2689 | int |
2690 | main () |
2691 | { |
2692 | |
2693 | ; |
2694 | return 0; |
2695 | } |
2696 | _ACEOF |
2697 | rm -f conftest.$ac_objext |
2698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2699 | (eval $ac_compile) 2>conftest.er1 |
2700 | ac_status=$? |
2701 | grep -v '^ *+' conftest.er1 >conftest.err |
2702 | rm -f conftest.er1 |
2703 | cat conftest.err >&5 |
2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2705 | (exit $ac_status); } && |
2706 | { ac_try='test -z "$ac_c_werror_flag" |
2707 | || test ! -s conftest.err' |
2708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2709 | (eval $ac_try) 2>&5 |
2710 | ac_status=$? |
2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2712 | (exit $ac_status); }; } && |
2713 | { ac_try='test -s conftest.$ac_objext' |
2714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2715 | (eval $ac_try) 2>&5 |
2716 | ac_status=$? |
2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2718 | (exit $ac_status); }; }; then |
2719 | ac_cv_prog_cc_g=yes |
2720 | else |
2721 | echo "$as_me: failed program was:" >&5 |
2722 | sed 's/^/| /' conftest.$ac_ext >&5 |
2723 | |
2724 | ac_cv_prog_cc_g=no |
2725 | fi |
2726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2727 | fi |
2728 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2729 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2730 | if test "$ac_test_CFLAGS" = set; then |
2731 | CFLAGS=$ac_save_CFLAGS |
2732 | elif test $ac_cv_prog_cc_g = yes; then |
2733 | if test "$GCC" = yes; then |
2734 | CFLAGS="-g -O2" |
2735 | else |
2736 | CFLAGS="-g" |
2737 | fi |
2738 | else |
2739 | if test "$GCC" = yes; then |
2740 | CFLAGS="-O2" |
2741 | else |
2742 | CFLAGS= |
2743 | fi |
2744 | fi |
2745 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2746 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2747 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2749 | else |
2750 | ac_cv_prog_cc_stdc=no |
2751 | ac_save_CC=$CC |
2752 | cat >conftest.$ac_ext <<_ACEOF |
2753 | /* confdefs.h. */ |
2754 | _ACEOF |
2755 | cat confdefs.h >>conftest.$ac_ext |
2756 | cat >>conftest.$ac_ext <<_ACEOF |
2757 | /* end confdefs.h. */ |
2758 | #include <stdarg.h> |
2759 | #include <stdio.h> |
2760 | #include <sys/types.h> |
2761 | #include <sys/stat.h> |
2762 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2763 | struct buf { int x; }; |
2764 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2765 | static char *e (p, i) |
2766 | char **p; |
2767 | int i; |
2768 | { |
2769 | return p[i]; |
2770 | } |
2771 | static char *f (char * (*g) (char **, int), char **p, ...) |
2772 | { |
2773 | char *s; |
2774 | va_list v; |
2775 | va_start (v,p); |
2776 | s = g (p, va_arg (v,int)); |
2777 | va_end (v); |
2778 | return s; |
2779 | } |
2780 | |
2781 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2782 | function prototypes and stuff, but not '\xHH' hex character constants. |
2783 | These don't provoke an error unfortunately, instead are silently treated |
2784 | as 'x'. The following induces an error, until -std1 is added to get |
2785 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2786 | array size at least. It's necessary to write '\x00'==0 to get something |
2787 | that's true only with -std1. */ |
2788 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2789 | |
2790 | int test (int i, double x); |
2791 | struct s1 {int (*f) (int a);}; |
2792 | struct s2 {int (*f) (double a);}; |
2793 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2794 | int argc; |
2795 | char **argv; |
2796 | int |
2797 | main () |
2798 | { |
2799 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2800 | ; |
2801 | return 0; |
2802 | } |
2803 | _ACEOF |
2804 | # Don't try gcc -ansi; that turns off useful extensions and |
2805 | # breaks some systems' header files. |
2806 | # AIX -qlanglvl=ansi |
2807 | # Ultrix and OSF/1 -std1 |
2808 | # HP-UX 10.20 and later -Ae |
2809 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
2810 | # SVR4 -Xc -D__EXTENSIONS__ |
2811 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2812 | do |
2813 | CC="$ac_save_CC $ac_arg" |
2814 | rm -f conftest.$ac_objext |
2815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2816 | (eval $ac_compile) 2>conftest.er1 |
2817 | ac_status=$? |
2818 | grep -v '^ *+' conftest.er1 >conftest.err |
2819 | rm -f conftest.er1 |
2820 | cat conftest.err >&5 |
2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2822 | (exit $ac_status); } && |
2823 | { ac_try='test -z "$ac_c_werror_flag" |
2824 | || test ! -s conftest.err' |
2825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2826 | (eval $ac_try) 2>&5 |
2827 | ac_status=$? |
2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2829 | (exit $ac_status); }; } && |
2830 | { ac_try='test -s conftest.$ac_objext' |
2831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2832 | (eval $ac_try) 2>&5 |
2833 | ac_status=$? |
2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2835 | (exit $ac_status); }; }; then |
2836 | ac_cv_prog_cc_stdc=$ac_arg |
2837 | break |
2838 | else |
2839 | echo "$as_me: failed program was:" >&5 |
2840 | sed 's/^/| /' conftest.$ac_ext >&5 |
2841 | |
2842 | fi |
2843 | rm -f conftest.err conftest.$ac_objext |
2844 | done |
2845 | rm -f conftest.$ac_ext conftest.$ac_objext |
2846 | CC=$ac_save_CC |
2847 | |
2848 | fi |
2849 | |
2850 | case "x$ac_cv_prog_cc_stdc" in |
2851 | x|xno) |
2852 | echo "$as_me:$LINENO: result: none needed" >&5 |
2853 | echo "${ECHO_T}none needed" >&6 ;; |
2854 | *) |
2855 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2856 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2857 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
2858 | esac |
2859 | |
2860 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2861 | # in C++ we need to declare it. In case someone uses the same compiler |
2862 | # for both compiling C and C++ we need to have the C++ compiler decide |
2863 | # the declaration of exit, since it's the most demanding environment. |
2864 | cat >conftest.$ac_ext <<_ACEOF |
2865 | #ifndef __cplusplus |
2866 | choke me |
2867 | #endif |
2868 | _ACEOF |
2869 | rm -f conftest.$ac_objext |
2870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2871 | (eval $ac_compile) 2>conftest.er1 |
2872 | ac_status=$? |
2873 | grep -v '^ *+' conftest.er1 >conftest.err |
2874 | rm -f conftest.er1 |
2875 | cat conftest.err >&5 |
2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2877 | (exit $ac_status); } && |
2878 | { ac_try='test -z "$ac_c_werror_flag" |
2879 | || test ! -s conftest.err' |
2880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2881 | (eval $ac_try) 2>&5 |
2882 | ac_status=$? |
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2884 | (exit $ac_status); }; } && |
2885 | { ac_try='test -s conftest.$ac_objext' |
2886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2887 | (eval $ac_try) 2>&5 |
2888 | ac_status=$? |
2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2890 | (exit $ac_status); }; }; then |
2891 | for ac_declaration in \ |
2892 | '' \ |
2893 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2894 | 'extern "C" void std::exit (int); using std::exit;' \ |
2895 | 'extern "C" void exit (int) throw ();' \ |
2896 | 'extern "C" void exit (int);' \ |
2897 | 'void exit (int);' |
2898 | do |
2899 | cat >conftest.$ac_ext <<_ACEOF |
2900 | /* confdefs.h. */ |
2901 | _ACEOF |
2902 | cat confdefs.h >>conftest.$ac_ext |
2903 | cat >>conftest.$ac_ext <<_ACEOF |
2904 | /* end confdefs.h. */ |
2905 | $ac_declaration |
2906 | #include <stdlib.h> |
2907 | int |
2908 | main () |
2909 | { |
2910 | exit (42); |
2911 | ; |
2912 | return 0; |
2913 | } |
2914 | _ACEOF |
2915 | rm -f conftest.$ac_objext |
2916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2917 | (eval $ac_compile) 2>conftest.er1 |
2918 | ac_status=$? |
2919 | grep -v '^ *+' conftest.er1 >conftest.err |
2920 | rm -f conftest.er1 |
2921 | cat conftest.err >&5 |
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2923 | (exit $ac_status); } && |
2924 | { ac_try='test -z "$ac_c_werror_flag" |
2925 | || test ! -s conftest.err' |
2926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2927 | (eval $ac_try) 2>&5 |
2928 | ac_status=$? |
2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2930 | (exit $ac_status); }; } && |
2931 | { ac_try='test -s conftest.$ac_objext' |
2932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2933 | (eval $ac_try) 2>&5 |
2934 | ac_status=$? |
2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2936 | (exit $ac_status); }; }; then |
2937 | : |
2938 | else |
2939 | echo "$as_me: failed program was:" >&5 |
2940 | sed 's/^/| /' conftest.$ac_ext >&5 |
2941 | |
2942 | continue |
2943 | fi |
2944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2945 | cat >conftest.$ac_ext <<_ACEOF |
2946 | /* confdefs.h. */ |
2947 | _ACEOF |
2948 | cat confdefs.h >>conftest.$ac_ext |
2949 | cat >>conftest.$ac_ext <<_ACEOF |
2950 | /* end confdefs.h. */ |
2951 | $ac_declaration |
2952 | int |
2953 | main () |
2954 | { |
2955 | exit (42); |
2956 | ; |
2957 | return 0; |
2958 | } |
2959 | _ACEOF |
2960 | rm -f conftest.$ac_objext |
2961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2962 | (eval $ac_compile) 2>conftest.er1 |
2963 | ac_status=$? |
2964 | grep -v '^ *+' conftest.er1 >conftest.err |
2965 | rm -f conftest.er1 |
2966 | cat conftest.err >&5 |
2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2968 | (exit $ac_status); } && |
2969 | { ac_try='test -z "$ac_c_werror_flag" |
2970 | || test ! -s conftest.err' |
2971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2972 | (eval $ac_try) 2>&5 |
2973 | ac_status=$? |
2974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2975 | (exit $ac_status); }; } && |
2976 | { ac_try='test -s conftest.$ac_objext' |
2977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2978 | (eval $ac_try) 2>&5 |
2979 | ac_status=$? |
2980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2981 | (exit $ac_status); }; }; then |
2982 | break |
2983 | else |
2984 | echo "$as_me: failed program was:" >&5 |
2985 | sed 's/^/| /' conftest.$ac_ext >&5 |
2986 | |
2987 | fi |
2988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2989 | done |
2990 | rm -f conftest* |
2991 | if test -n "$ac_declaration"; then |
2992 | echo '#ifdef __cplusplus' >>confdefs.h |
2993 | echo $ac_declaration >>confdefs.h |
2994 | echo '#endif' >>confdefs.h |
2995 | fi |
2996 | |
2997 | else |
2998 | echo "$as_me: failed program was:" >&5 |
2999 | sed 's/^/| /' conftest.$ac_ext >&5 |
3000 | |
3001 | fi |
3002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3003 | ac_ext=c |
3004 | ac_cpp='$CPP $CPPFLAGS' |
3005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3008 | DEPDIR="${am__leading_dot}deps" |
3009 | |
3010 | ac_config_commands="$ac_config_commands depfiles" |
3011 | |
3012 | |
3013 | am_make=${MAKE-make} |
3014 | cat > confinc << 'END' |
3015 | am__doit: |
3016 | @echo done |
3017 | .PHONY: am__doit |
3018 | END |
3019 | # If we don't find an include directive, just comment out the code. |
3020 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3021 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
3022 | am__include="#" |
3023 | am__quote= |
3024 | _am_result=none |
3025 | # First try GNU make style include. |
3026 | echo "include confinc" > confmf |
3027 | # We grep out `Entering directory' and `Leaving directory' |
3028 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3029 | # In particular we don't look at `^make:' because GNU make might |
3030 | # be invoked under some other name (usually "gmake"), in which |
3031 | # case it prints its new name instead of `make'. |
3032 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3033 | am__include=include |
3034 | am__quote= |
3035 | _am_result=GNU |
3036 | fi |
3037 | # Now try BSD make style include. |
3038 | if test "$am__include" = "#"; then |
3039 | echo '.include "confinc"' > confmf |
3040 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3041 | am__include=.include |
3042 | am__quote="\"" |
3043 | _am_result=BSD |
3044 | fi |
3045 | fi |
3046 | |
3047 | |
3048 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
3049 | echo "${ECHO_T}$_am_result" >&6 |
3050 | rm -f confinc confmf |
3051 | |
3052 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
3053 | if test "${enable_dependency_tracking+set}" = set; then |
3054 | enableval="$enable_dependency_tracking" |
3055 | |
3056 | fi; |
3057 | if test "x$enable_dependency_tracking" != xno; then |
3058 | am_depcomp="$ac_aux_dir/depcomp" |
3059 | AMDEPBACKSLASH='\' |
3060 | fi |
3061 | |
3062 | |
3063 | if test "x$enable_dependency_tracking" != xno; then |
3064 | AMDEP_TRUE= |
3065 | AMDEP_FALSE='#' |
3066 | else |
3067 | AMDEP_TRUE='#' |
3068 | AMDEP_FALSE= |
3069 | fi |
3070 | |
3071 | |
3072 | |
3073 | |
3074 | depcc="$CC" am_compiler_list= |
3075 | |
3076 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3077 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
3078 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3080 | else |
3081 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3082 | # We make a subdir and do the tests there. Otherwise we can end up |
3083 | # making bogus files that we don't know about and never remove. For |
3084 | # instance it was reported that on HP-UX the gcc test will end up |
3085 | # making a dummy file named `D' -- because `-MD' means `put the output |
3086 | # in D'. |
3087 | mkdir conftest.dir |
3088 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3089 | # using a relative directory. |
3090 | cp "$am_depcomp" conftest.dir |
3091 | cd conftest.dir |
3092 | # We will build objects and dependencies in a subdirectory because |
3093 | # it helps to detect inapplicable dependency modes. For instance |
3094 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3095 | # side effect of compilation, but ICC will put the dependencies in |
3096 | # the current directory while Tru64 will put them in the object |
3097 | # directory. |
3098 | mkdir sub |
3099 | |
3100 | am_cv_CC_dependencies_compiler_type=none |
3101 | if test "$am_compiler_list" = ""; then |
3102 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3103 | fi |
3104 | for depmode in $am_compiler_list; do |
3105 | # Setup a source with many dependencies, because some compilers |
3106 | # like to wrap large dependency lists on column 80 (with \), and |
3107 | # we should not choose a depcomp mode which is confused by this. |
3108 | # |
3109 | # We need to recreate these files for each test, as the compiler may |
3110 | # overwrite some of them when testing with obscure command lines. |
3111 | # This happens at least with the AIX C compiler. |
3112 | : > sub/conftest.c |
3113 | for i in 1 2 3 4 5 6; do |
3114 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3115 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3116 | # Solaris 8's {/usr,}/bin/sh. |
3117 | touch sub/conftst$i.h |
3118 | done |
3119 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3120 | |
3121 | case $depmode in |
3122 | nosideeffect) |
3123 | # after this tag, mechanisms are not by side-effect, so they'll |
3124 | # only be used when explicitly requested |
3125 | if test "x$enable_dependency_tracking" = xyes; then |
3126 | continue |
3127 | else |
3128 | break |
3129 | fi |
3130 | ;; |
3131 | none) break ;; |
3132 | esac |
3133 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3134 | # mode. It turns out that the SunPro C++ compiler does not properly |
3135 | # handle `-M -o', and we need to detect this. |
3136 | if depmode=$depmode \ |
3137 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3138 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3139 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3140 | >/dev/null 2>conftest.err && |
3141 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3142 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3143 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3144 | # icc doesn't choke on unknown options, it will just issue warnings |
3145 | # or remarks (even with -Werror). So we grep stderr for any message |
3146 | # that says an option was ignored or not supported. |
3147 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3148 | # icc: Command line warning: ignoring option '-M'; no argument required |
3149 | # The diagnosis changed in icc 8.0: |
3150 | # icc: Command line remark: option '-MP' not supported |
3151 | if (grep 'ignoring option' conftest.err || |
3152 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3153 | am_cv_CC_dependencies_compiler_type=$depmode |
3154 | break |
3155 | fi |
3156 | fi |
3157 | done |
3158 | |
3159 | cd .. |
3160 | rm -rf conftest.dir |
3161 | else |
3162 | am_cv_CC_dependencies_compiler_type=none |
3163 | fi |
3164 | |
3165 | fi |
3166 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3167 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3168 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3169 | |
3170 | |
3171 | |
3172 | if |
3173 | test "x$enable_dependency_tracking" != xno \ |
3174 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3175 | am__fastdepCC_TRUE= |
3176 | am__fastdepCC_FALSE='#' |
3177 | else |
3178 | am__fastdepCC_TRUE='#' |
3179 | am__fastdepCC_FALSE= |
3180 | fi |
3181 | |
3182 | |
3183 | # Check whether --enable-shared or --disable-shared was given. |
3184 | if test "${enable_shared+set}" = set; then |
3185 | enableval="$enable_shared" |
3186 | p=${PACKAGE-default} |
3187 | case $enableval in |
3188 | yes) enable_shared=yes ;; |
3189 | no) enable_shared=no ;; |
3190 | *) |
3191 | enable_shared=no |
3192 | # Look at the argument we got. We use all the common list separators. |
3193 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3194 | for pkg in $enableval; do |
3195 | IFS="$lt_save_ifs" |
3196 | if test "X$pkg" = "X$p"; then |
3197 | enable_shared=yes |
3198 | fi |
3199 | done |
3200 | IFS="$lt_save_ifs" |
3201 | ;; |
3202 | esac |
3203 | else |
3204 | enable_shared=yes |
3205 | fi; |
3206 | |
3207 | # Check whether --enable-static or --disable-static was given. |
3208 | if test "${enable_static+set}" = set; then |
3209 | enableval="$enable_static" |
3210 | p=${PACKAGE-default} |
3211 | case $enableval in |
3212 | yes) enable_static=yes ;; |
3213 | no) enable_static=no ;; |
3214 | *) |
3215 | enable_static=no |
3216 | # Look at the argument we got. We use all the common list separators. |
3217 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3218 | for pkg in $enableval; do |
3219 | IFS="$lt_save_ifs" |
3220 | if test "X$pkg" = "X$p"; then |
3221 | enable_static=yes |
3222 | fi |
3223 | done |
3224 | IFS="$lt_save_ifs" |
3225 | ;; |
3226 | esac |
3227 | else |
3228 | enable_static=yes |
3229 | fi; |
3230 | |
3231 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3232 | if test "${enable_fast_install+set}" = set; then |
3233 | enableval="$enable_fast_install" |
3234 | p=${PACKAGE-default} |
3235 | case $enableval in |
3236 | yes) enable_fast_install=yes ;; |
3237 | no) enable_fast_install=no ;; |
3238 | *) |
3239 | enable_fast_install=no |
3240 | # Look at the argument we got. We use all the common list separators. |
3241 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3242 | for pkg in $enableval; do |
3243 | IFS="$lt_save_ifs" |
3244 | if test "X$pkg" = "X$p"; then |
3245 | enable_fast_install=yes |
3246 | fi |
3247 | done |
3248 | IFS="$lt_save_ifs" |
3249 | ;; |
3250 | esac |
3251 | else |
3252 | enable_fast_install=yes |
3253 | fi; |
3254 | |
3255 | # Make sure we can run config.sub. |
3256 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3257 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
3258 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
3259 | { (exit 1); exit 1; }; } |
3260 | |
3261 | echo "$as_me:$LINENO: checking build system type" >&5 |
3262 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
3263 | if test "${ac_cv_build+set}" = set; then |
3264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3265 | else |
3266 | ac_cv_build_alias=$build_alias |
3267 | test -z "$ac_cv_build_alias" && |
3268 | ac_cv_build_alias=`$ac_config_guess` |
3269 | test -z "$ac_cv_build_alias" && |
3270 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3271 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3272 | { (exit 1); exit 1; }; } |
3273 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
3274 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
3275 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
3276 | { (exit 1); exit 1; }; } |
3277 | |
3278 | fi |
3279 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3280 | echo "${ECHO_T}$ac_cv_build" >&6 |
3281 | build=$ac_cv_build |
3282 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3283 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3284 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3285 | |
3286 | |
3287 | echo "$as_me:$LINENO: checking host system type" >&5 |
3288 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
3289 | if test "${ac_cv_host+set}" = set; then |
3290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3291 | else |
3292 | ac_cv_host_alias=$host_alias |
3293 | test -z "$ac_cv_host_alias" && |
3294 | ac_cv_host_alias=$ac_cv_build_alias |
3295 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
3296 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
3297 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
3298 | { (exit 1); exit 1; }; } |
3299 | |
3300 | fi |
3301 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3302 | echo "${ECHO_T}$ac_cv_host" >&6 |
3303 | host=$ac_cv_host |
3304 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
3305 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
3306 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
3307 | |
3308 | |
3309 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3310 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3311 | if test "${lt_cv_path_SED+set}" = set; then |
3312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3313 | else |
3314 | # Loop through the user's path and test for sed and gsed. |
3315 | # Then use that list of sed's as ones to test for truncation. |
3316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3317 | for as_dir in $PATH |
3318 | do |
3319 | IFS=$as_save_IFS |
3320 | test -z "$as_dir" && as_dir=. |
3321 | for lt_ac_prog in sed gsed; do |
3322 | for ac_exec_ext in '' $ac_executable_extensions; do |
3323 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3324 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3325 | fi |
3326 | done |
3327 | done |
3328 | done |
3329 | IFS=$as_save_IFS |
3330 | lt_ac_max=0 |
3331 | lt_ac_count=0 |
3332 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3333 | # along with /bin/sed that truncates output. |
3334 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3335 | test ! -f $lt_ac_sed && continue |
3336 | cat /dev/null > conftest.in |
3337 | lt_ac_count=0 |
3338 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3339 | # Check for GNU sed and select it if it is found. |
3340 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3341 | lt_cv_path_SED=$lt_ac_sed |
3342 | break |
3343 | fi |
3344 | while true; do |
3345 | cat conftest.in conftest.in >conftest.tmp |
3346 | mv conftest.tmp conftest.in |
3347 | cp conftest.in conftest.nl |
3348 | echo >>conftest.nl |
3349 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3350 | cmp -s conftest.out conftest.nl || break |
3351 | # 10000 chars as input seems more than enough |
3352 | test $lt_ac_count -gt 10 && break |
3353 | lt_ac_count=`expr $lt_ac_count + 1` |
3354 | if test $lt_ac_count -gt $lt_ac_max; then |
3355 | lt_ac_max=$lt_ac_count |
3356 | lt_cv_path_SED=$lt_ac_sed |
3357 | fi |
3358 | done |
3359 | done |
3360 | |
3361 | fi |
3362 | |
3363 | SED=$lt_cv_path_SED |
3364 | |
3365 | echo "$as_me:$LINENO: result: $SED" >&5 |
3366 | echo "${ECHO_T}$SED" >&6 |
3367 | |
3368 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3369 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3370 | if test "${ac_cv_prog_egrep+set}" = set; then |
3371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3372 | else |
3373 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3374 | then ac_cv_prog_egrep='grep -E' |
3375 | else ac_cv_prog_egrep='egrep' |
3376 | fi |
3377 | fi |
3378 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3379 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3380 | EGREP=$ac_cv_prog_egrep |
3381 | |
3382 | |
3383 | |
3384 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3385 | if test "${with_gnu_ld+set}" = set; then |
3386 | withval="$with_gnu_ld" |
3387 | test "$withval" = no || with_gnu_ld=yes |
3388 | else |
3389 | with_gnu_ld=no |
3390 | fi; |
3391 | ac_prog=ld |
3392 | if test "$GCC" = yes; then |
3393 | # Check if gcc -print-prog-name=ld gives a path. |
3394 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3395 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
3396 | case $host in |
3397 | *-*-mingw*) |
3398 | # gcc leaves a trailing carriage return which upsets mingw |
3399 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3400 | *) |
3401 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3402 | esac |
3403 | case $ac_prog in |
3404 | # Accept absolute paths. |
3405 | [\\/]* | ?:[\\/]*) |
3406 | re_direlt='/[^/][^/]*/\.\./' |
3407 | # Canonicalize the pathname of ld |
3408 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3409 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3410 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3411 | done |
3412 | test -z "$LD" && LD="$ac_prog" |
3413 | ;; |
3414 | "") |
3415 | # If it fails, then pretend we aren't using GCC. |
3416 | ac_prog=ld |
3417 | ;; |
3418 | *) |
3419 | # If it is relative, then search for the first ld in PATH. |
3420 | with_gnu_ld=unknown |
3421 | ;; |
3422 | esac |
3423 | elif test "$with_gnu_ld" = yes; then |
3424 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3425 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3426 | else |
3427 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3428 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3429 | fi |
3430 | if test "${lt_cv_path_LD+set}" = set; then |
3431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3432 | else |
3433 | if test -z "$LD"; then |
3434 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3435 | for ac_dir in $PATH; do |
3436 | IFS="$lt_save_ifs" |
3437 | test -z "$ac_dir" && ac_dir=. |
3438 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3439 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3440 | # Check to see if the program is GNU ld. I'd rather use --version, |
3441 | # but apparently some variants of GNU ld only accept -v. |
3442 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3443 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3444 | *GNU* | *'with BFD'*) |
3445 | test "$with_gnu_ld" != no && break |
3446 | ;; |
3447 | *) |
3448 | test "$with_gnu_ld" != yes && break |
3449 | ;; |
3450 | esac |
3451 | fi |
3452 | done |
3453 | IFS="$lt_save_ifs" |
3454 | else |
3455 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3456 | fi |
3457 | fi |
3458 | |
3459 | LD="$lt_cv_path_LD" |
3460 | if test -n "$LD"; then |
3461 | echo "$as_me:$LINENO: result: $LD" >&5 |
3462 | echo "${ECHO_T}$LD" >&6 |
3463 | else |
3464 | echo "$as_me:$LINENO: result: no" >&5 |
3465 | echo "${ECHO_T}no" >&6 |
3466 | fi |
3467 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3468 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3469 | { (exit 1); exit 1; }; } |
3470 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
3471 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3472 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
3473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3474 | else |
3475 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
3476 | case `$LD -v 2>&1 </dev/null` in |
3477 | *GNU* | *'with BFD'*) |
3478 | lt_cv_prog_gnu_ld=yes |
3479 | ;; |
3480 | *) |
3481 | lt_cv_prog_gnu_ld=no |
3482 | ;; |
3483 | esac |
3484 | fi |
3485 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3486 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3487 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3488 | |
3489 | |
3490 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3491 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3492 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3494 | else |
3495 | lt_cv_ld_reload_flag='-r' |
3496 | fi |
3497 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3498 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3499 | reload_flag=$lt_cv_ld_reload_flag |
3500 | case $reload_flag in |
3501 | "" | " "*) ;; |
3502 | *) reload_flag=" $reload_flag" ;; |
3503 | esac |
3504 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3505 | case $host_os in |
3506 | darwin*) |
3507 | if test "$GCC" = yes; then |
3508 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3509 | else |
3510 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3511 | fi |
3512 | ;; |
3513 | esac |
3514 | |
3515 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3516 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3517 | if test "${lt_cv_path_NM+set}" = set; then |
3518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3519 | else |
3520 | if test -n "$NM"; then |
3521 | # Let the user override the test. |
3522 | lt_cv_path_NM="$NM" |
3523 | else |
3524 | lt_nm_to_check="${ac_tool_prefix}nm" |
3525 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3526 | lt_nm_to_check="$lt_nm_to_check nm" |
3527 | fi |
3528 | for lt_tmp_nm in $lt_nm_to_check; do |
3529 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3530 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3531 | IFS="$lt_save_ifs" |
3532 | test -z "$ac_dir" && ac_dir=. |
3533 | tmp_nm="$ac_dir/$lt_tmp_nm" |
3534 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3535 | # Check to see if the nm accepts a BSD-compat flag. |
3536 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3537 | # nm: unknown option "B" ignored |
3538 | # Tru64's nm complains that /dev/null is an invalid object file |
3539 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3540 | */dev/null* | *'Invalid file or object type'*) |
3541 | lt_cv_path_NM="$tmp_nm -B" |
3542 | break |
3543 | ;; |
3544 | *) |
3545 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3546 | */dev/null*) |
3547 | lt_cv_path_NM="$tmp_nm -p" |
3548 | break |
3549 | ;; |
3550 | *) |
3551 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3552 | continue # so that we can try to find one that supports BSD flags |
3553 | ;; |
3554 | esac |
3555 | ;; |
3556 | esac |
3557 | fi |
3558 | done |
3559 | IFS="$lt_save_ifs" |
3560 | done |
3561 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3562 | fi |
3563 | fi |
3564 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3565 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3566 | NM="$lt_cv_path_NM" |
3567 | |
3568 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3569 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3570 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3572 | else |
3573 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3574 | lt_cv_file_magic_test_file= |
3575 | lt_cv_deplibs_check_method='unknown' |
3576 | # Need to set the preceding variable on all platforms that support |
3577 | # interlibrary dependencies. |
3578 | # 'none' -- dependencies not supported. |
3579 | # `unknown' -- same as none, but documents that we really don't know. |
3580 | # 'pass_all' -- all dependencies passed with no checks. |
3581 | # 'test_compile' -- check by making test program. |
3582 | # 'file_magic [[regex]]' -- check by looking for files in library path |
3583 | # which responds to the $file_magic_cmd with a given extended regex. |
3584 | # If you have `file' or equivalent on your system and you're not sure |
3585 | # whether `pass_all' will *always* work, you probably want this one. |
3586 | |
3587 | case $host_os in |
3588 | aix4* | aix5*) |
3589 | lt_cv_deplibs_check_method=pass_all |
3590 | ;; |
3591 | |
3592 | beos*) |
3593 | lt_cv_deplibs_check_method=pass_all |
3594 | ;; |
3595 | |
3596 | bsdi[45]*) |
3597 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3598 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3599 | lt_cv_file_magic_test_file=/shlib/libc.so |
3600 | ;; |
3601 | |
3602 | cygwin*) |
3603 | # func_win32_libid is a shell function defined in ltmain.sh |
3604 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3605 | lt_cv_file_magic_cmd='func_win32_libid' |
3606 | ;; |
3607 | |
3608 | mingw* | pw32*) |
3609 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3610 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3611 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3612 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3613 | ;; |
3614 | |
3615 | darwin* | rhapsody*) |
3616 | lt_cv_deplibs_check_method=pass_all |
3617 | ;; |
3618 | |
3619 | freebsd* | kfreebsd*-gnu | dragonfly*) |
3620 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3621 | case $host_cpu in |
3622 | i*86 ) |
3623 | # Not sure whether the presence of OpenBSD here was a mistake. |
3624 | # Let's accept both of them until this is cleared up. |
3625 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
3626 | lt_cv_file_magic_cmd=/usr/bin/file |
3627 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3628 | ;; |
3629 | esac |
3630 | else |
3631 | lt_cv_deplibs_check_method=pass_all |
3632 | fi |
3633 | ;; |
3634 | |
3635 | gnu*) |
3636 | lt_cv_deplibs_check_method=pass_all |
3637 | ;; |
3638 | |
3639 | hpux10.20* | hpux11*) |
3640 | lt_cv_file_magic_cmd=/usr/bin/file |
3641 | case $host_cpu in |
3642 | ia64*) |
3643 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
3644 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3645 | ;; |
3646 | hppa*64*) |
3647 | 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]' |
3648 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3649 | ;; |
3650 | *) |
3651 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
3652 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3653 | ;; |
3654 | esac |
3655 | ;; |
3656 | |
3657 | interix3*) |
3658 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3659 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
3660 | ;; |
3661 | |
3662 | irix5* | irix6* | nonstopux*) |
3663 | case $LD in |
3664 | *-32|*"-32 ") libmagic=32-bit;; |
3665 | *-n32|*"-n32 ") libmagic=N32;; |
3666 | *-64|*"-64 ") libmagic=64-bit;; |
3667 | *) libmagic=never-match;; |
3668 | esac |
3669 | lt_cv_deplibs_check_method=pass_all |
3670 | ;; |
3671 | |
3672 | # This must be Linux ELF. |
3673 | linux*) |
3674 | lt_cv_deplibs_check_method=pass_all |
3675 | ;; |
3676 | |
3677 | netbsd*) |
3678 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3679 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3680 | else |
3681 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3682 | fi |
3683 | ;; |
3684 | |
3685 | newos6*) |
3686 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
3687 | lt_cv_file_magic_cmd=/usr/bin/file |
3688 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3689 | ;; |
3690 | |
3691 | nto-qnx*) |
3692 | lt_cv_deplibs_check_method=unknown |
3693 | ;; |
3694 | |
3695 | openbsd*) |
3696 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3697 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
3698 | else |
3699 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3700 | fi |
3701 | ;; |
3702 | |
3703 | osf3* | osf4* | osf5*) |
3704 | lt_cv_deplibs_check_method=pass_all |
3705 | ;; |
3706 | |
3707 | solaris*) |
3708 | lt_cv_deplibs_check_method=pass_all |
3709 | ;; |
3710 | |
3711 | sysv4 | sysv4.3*) |
3712 | case $host_vendor in |
3713 | motorola) |
3714 | 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]' |
3715 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3716 | ;; |
3717 | ncr) |
3718 | lt_cv_deplibs_check_method=pass_all |
3719 | ;; |
3720 | sequent) |
3721 | lt_cv_file_magic_cmd='/bin/file' |
3722 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
3723 | ;; |
3724 | sni) |
3725 | lt_cv_file_magic_cmd='/bin/file' |
3726 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
3727 | lt_cv_file_magic_test_file=/lib/libc.so |
3728 | ;; |
3729 | siemens) |
3730 | lt_cv_deplibs_check_method=pass_all |
3731 | ;; |
3732 | pc) |
3733 | lt_cv_deplibs_check_method=pass_all |
3734 | ;; |
3735 | esac |
3736 | ;; |
3737 | |
3738 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3739 | lt_cv_deplibs_check_method=pass_all |
3740 | ;; |
3741 | esac |
3742 | |
3743 | fi |
3744 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3745 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
3746 | file_magic_cmd=$lt_cv_file_magic_cmd |
3747 | deplibs_check_method=$lt_cv_deplibs_check_method |
3748 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3749 | |
3750 | |
3751 | |
3752 | |
3753 | # If no C compiler was specified, use CC. |
3754 | LTCC=${LTCC-"$CC"} |
3755 | |
3756 | # If no C compiler flags were specified, use CFLAGS. |
3757 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
3758 | |
3759 | # Allow CC to be a program name with arguments. |
3760 | compiler=$CC |
3761 | |
3762 | |
3763 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3764 | if test "${enable_libtool_lock+set}" = set; then |
3765 | enableval="$enable_libtool_lock" |
3766 | |
3767 | fi; |
3768 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
3769 | |
3770 | # Some flags need to be propagated to the compiler or linker for good |
3771 | # libtool support. |
3772 | case $host in |
3773 | ia64-*-hpux*) |
3774 | # Find out which ABI we are using. |
3775 | echo 'int i;' > conftest.$ac_ext |
3776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3777 | (eval $ac_compile) 2>&5 |
3778 | ac_status=$? |
3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3780 | (exit $ac_status); }; then |
3781 | case `/usr/bin/file conftest.$ac_objext` in |
3782 | *ELF-32*) |
3783 | HPUX_IA64_MODE="32" |
3784 | ;; |
3785 | *ELF-64*) |
3786 | HPUX_IA64_MODE="64" |
3787 | ;; |
3788 | esac |
3789 | fi |
3790 | rm -rf conftest* |
3791 | ;; |
3792 | *-*-irix6*) |
3793 | # Find out which ABI we are using. |
3794 | echo '#line 3794 "configure"' > conftest.$ac_ext |
3795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3796 | (eval $ac_compile) 2>&5 |
3797 | ac_status=$? |
3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3799 | (exit $ac_status); }; then |
3800 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3801 | case `/usr/bin/file conftest.$ac_objext` in |
3802 | *32-bit*) |
3803 | LD="${LD-ld} -melf32bsmip" |
3804 | ;; |
3805 | *N32*) |
3806 | LD="${LD-ld} -melf32bmipn32" |
3807 | ;; |
3808 | *64-bit*) |
3809 | LD="${LD-ld} -melf64bmip" |
3810 | ;; |
3811 | esac |
3812 | else |
3813 | case `/usr/bin/file conftest.$ac_objext` in |
3814 | *32-bit*) |
3815 | LD="${LD-ld} -32" |
3816 | ;; |
3817 | *N32*) |
3818 | LD="${LD-ld} -n32" |
3819 | ;; |
3820 | *64-bit*) |
3821 | LD="${LD-ld} -64" |
3822 | ;; |
3823 | esac |
3824 | fi |
3825 | fi |
3826 | rm -rf conftest* |
3827 | ;; |
3828 | |
3829 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3830 | # Find out which ABI we are using. |
3831 | echo 'int i;' > conftest.$ac_ext |
3832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3833 | (eval $ac_compile) 2>&5 |
3834 | ac_status=$? |
3835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3836 | (exit $ac_status); }; then |
3837 | case `/usr/bin/file conftest.o` in |
3838 | *32-bit*) |
3839 | case $host in |
3840 | x86_64-*linux*) |
3841 | LD="${LD-ld} -m elf_i386" |
3842 | ;; |
3843 | ppc64-*linux*|powerpc64-*linux*) |
3844 | LD="${LD-ld} -m elf32ppclinux" |
3845 | ;; |
3846 | s390x-*linux*) |
3847 | LD="${LD-ld} -m elf_s390" |
3848 | ;; |
3849 | sparc64-*linux*) |
3850 | LD="${LD-ld} -m elf32_sparc" |
3851 | ;; |
3852 | esac |
3853 | ;; |
3854 | *64-bit*) |
3855 | case $host in |
3856 | x86_64-*linux*) |
3857 | LD="${LD-ld} -m elf_x86_64" |
3858 | ;; |
3859 | ppc*-*linux*|powerpc*-*linux*) |
3860 | LD="${LD-ld} -m elf64ppc" |
3861 | ;; |
3862 | s390*-*linux*) |
3863 | LD="${LD-ld} -m elf64_s390" |
3864 | ;; |
3865 | sparc*-*linux*) |
3866 | LD="${LD-ld} -m elf64_sparc" |
3867 | ;; |
3868 | esac |
3869 | ;; |
3870 | esac |
3871 | fi |
3872 | rm -rf conftest* |
3873 | ;; |
3874 | |
3875 | *-*-sco3.2v5*) |
3876 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3877 | SAVE_CFLAGS="$CFLAGS" |
3878 | CFLAGS="$CFLAGS -belf" |
3879 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3880 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
3881 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3883 | else |
3884 | ac_ext=c |
3885 | ac_cpp='$CPP $CPPFLAGS' |
3886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3889 | |
3890 | cat >conftest.$ac_ext <<_ACEOF |
3891 | /* confdefs.h. */ |
3892 | _ACEOF |
3893 | cat confdefs.h >>conftest.$ac_ext |
3894 | cat >>conftest.$ac_ext <<_ACEOF |
3895 | /* end confdefs.h. */ |
3896 | |
3897 | int |
3898 | main () |
3899 | { |
3900 | |
3901 | ; |
3902 | return 0; |
3903 | } |
3904 | _ACEOF |
3905 | rm -f conftest.$ac_objext conftest$ac_exeext |
3906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3907 | (eval $ac_link) 2>conftest.er1 |
3908 | ac_status=$? |
3909 | grep -v '^ *+' conftest.er1 >conftest.err |
3910 | rm -f conftest.er1 |
3911 | cat conftest.err >&5 |
3912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3913 | (exit $ac_status); } && |
3914 | { ac_try='test -z "$ac_c_werror_flag" |
3915 | || test ! -s conftest.err' |
3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3917 | (eval $ac_try) 2>&5 |
3918 | ac_status=$? |
3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3920 | (exit $ac_status); }; } && |
3921 | { ac_try='test -s conftest$ac_exeext' |
3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3923 | (eval $ac_try) 2>&5 |
3924 | ac_status=$? |
3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3926 | (exit $ac_status); }; }; then |
3927 | lt_cv_cc_needs_belf=yes |
3928 | else |
3929 | echo "$as_me: failed program was:" >&5 |
3930 | sed 's/^/| /' conftest.$ac_ext >&5 |
3931 | |
3932 | lt_cv_cc_needs_belf=no |
3933 | fi |
3934 | rm -f conftest.err conftest.$ac_objext \ |
3935 | conftest$ac_exeext conftest.$ac_ext |
3936 | ac_ext=c |
3937 | ac_cpp='$CPP $CPPFLAGS' |
3938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3941 | |
3942 | fi |
3943 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3944 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
3945 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3946 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3947 | CFLAGS="$SAVE_CFLAGS" |
3948 | fi |
3949 | ;; |
3950 | sparc*-*solaris*) |
3951 | # Find out which ABI we are using. |
3952 | echo 'int i;' > conftest.$ac_ext |
3953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3954 | (eval $ac_compile) 2>&5 |
3955 | ac_status=$? |
3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3957 | (exit $ac_status); }; then |
3958 | case `/usr/bin/file conftest.o` in |
3959 | *64-bit*) |
3960 | case $lt_cv_prog_gnu_ld in |
3961 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
3962 | *) LD="${LD-ld} -64" ;; |
3963 | esac |
3964 | ;; |
3965 | esac |
3966 | fi |
3967 | rm -rf conftest* |
3968 | ;; |
3969 | |
3970 | |
3971 | esac |
3972 | |
3973 | need_locks="$enable_libtool_lock" |
3974 | |
3975 | |
3976 | ac_ext=c |
3977 | ac_cpp='$CPP $CPPFLAGS' |
3978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3981 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3982 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3983 | # On Suns, sometimes $CPP names a directory. |
3984 | if test -n "$CPP" && test -d "$CPP"; then |
3985 | CPP= |
3986 | fi |
3987 | if test -z "$CPP"; then |
3988 | if test "${ac_cv_prog_CPP+set}" = set; then |
3989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3990 | else |
3991 | # Double quotes because CPP needs to be expanded |
3992 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3993 | do |
3994 | ac_preproc_ok=false |
3995 | for ac_c_preproc_warn_flag in '' yes |
3996 | do |
3997 | # Use a header file that comes with gcc, so configuring glibc |
3998 | # with a fresh cross-compiler works. |
3999 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4000 | # <limits.h> exists even on freestanding compilers. |
4001 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4002 | # not just through cpp. "Syntax error" is here to catch this case. |
4003 | cat >conftest.$ac_ext <<_ACEOF |
4004 | /* confdefs.h. */ |
4005 | _ACEOF |
4006 | cat confdefs.h >>conftest.$ac_ext |
4007 | cat >>conftest.$ac_ext <<_ACEOF |
4008 | /* end confdefs.h. */ |
4009 | #ifdef __STDC__ |
4010 | # include <limits.h> |
4011 | #else |
4012 | # include <assert.h> |
4013 | #endif |
4014 | Syntax error |
4015 | _ACEOF |
4016 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4017 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4018 | ac_status=$? |
4019 | grep -v '^ *+' conftest.er1 >conftest.err |
4020 | rm -f conftest.er1 |
4021 | cat conftest.err >&5 |
4022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4023 | (exit $ac_status); } >/dev/null; then |
4024 | if test -s conftest.err; then |
4025 | ac_cpp_err=$ac_c_preproc_warn_flag |
4026 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4027 | else |
4028 | ac_cpp_err= |
4029 | fi |
4030 | else |
4031 | ac_cpp_err=yes |
4032 | fi |
4033 | if test -z "$ac_cpp_err"; then |
4034 | : |
4035 | else |
4036 | echo "$as_me: failed program was:" >&5 |
4037 | sed 's/^/| /' conftest.$ac_ext >&5 |
4038 | |
4039 | # Broken: fails on valid input. |
4040 | continue |
4041 | fi |
4042 | rm -f conftest.err conftest.$ac_ext |
4043 | |
4044 | # OK, works on sane cases. Now check whether non-existent headers |
4045 | # can be detected and how. |
4046 | cat >conftest.$ac_ext <<_ACEOF |
4047 | /* confdefs.h. */ |
4048 | _ACEOF |
4049 | cat confdefs.h >>conftest.$ac_ext |
4050 | cat >>conftest.$ac_ext <<_ACEOF |
4051 | /* end confdefs.h. */ |
4052 | #include <ac_nonexistent.h> |
4053 | _ACEOF |
4054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4056 | ac_status=$? |
4057 | grep -v '^ *+' conftest.er1 >conftest.err |
4058 | rm -f conftest.er1 |
4059 | cat conftest.err >&5 |
4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4061 | (exit $ac_status); } >/dev/null; then |
4062 | if test -s conftest.err; then |
4063 | ac_cpp_err=$ac_c_preproc_warn_flag |
4064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4065 | else |
4066 | ac_cpp_err= |
4067 | fi |
4068 | else |
4069 | ac_cpp_err=yes |
4070 | fi |
4071 | if test -z "$ac_cpp_err"; then |
4072 | # Broken: success on invalid input. |
4073 | continue |
4074 | else |
4075 | echo "$as_me: failed program was:" >&5 |
4076 | sed 's/^/| /' conftest.$ac_ext >&5 |
4077 | |
4078 | # Passes both tests. |
4079 | ac_preproc_ok=: |
4080 | break |
4081 | fi |
4082 | rm -f conftest.err conftest.$ac_ext |
4083 | |
4084 | done |
4085 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4086 | rm -f conftest.err conftest.$ac_ext |
4087 | if $ac_preproc_ok; then |
4088 | break |
4089 | fi |
4090 | |
4091 | done |
4092 | ac_cv_prog_CPP=$CPP |
4093 | |
4094 | fi |
4095 | CPP=$ac_cv_prog_CPP |
4096 | else |
4097 | ac_cv_prog_CPP=$CPP |
4098 | fi |
4099 | echo "$as_me:$LINENO: result: $CPP" >&5 |
4100 | echo "${ECHO_T}$CPP" >&6 |
4101 | ac_preproc_ok=false |
4102 | for ac_c_preproc_warn_flag in '' yes |
4103 | do |
4104 | # Use a header file that comes with gcc, so configuring glibc |
4105 | # with a fresh cross-compiler works. |
4106 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4107 | # <limits.h> exists even on freestanding compilers. |
4108 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4109 | # not just through cpp. "Syntax error" is here to catch this case. |
4110 | cat >conftest.$ac_ext <<_ACEOF |
4111 | /* confdefs.h. */ |
4112 | _ACEOF |
4113 | cat confdefs.h >>conftest.$ac_ext |
4114 | cat >>conftest.$ac_ext <<_ACEOF |
4115 | /* end confdefs.h. */ |
4116 | #ifdef __STDC__ |
4117 | # include <limits.h> |
4118 | #else |
4119 | # include <assert.h> |
4120 | #endif |
4121 | Syntax error |
4122 | _ACEOF |
4123 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4124 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4125 | ac_status=$? |
4126 | grep -v '^ *+' conftest.er1 >conftest.err |
4127 | rm -f conftest.er1 |
4128 | cat conftest.err >&5 |
4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4130 | (exit $ac_status); } >/dev/null; then |
4131 | if test -s conftest.err; then |
4132 | ac_cpp_err=$ac_c_preproc_warn_flag |
4133 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4134 | else |
4135 | ac_cpp_err= |
4136 | fi |
4137 | else |
4138 | ac_cpp_err=yes |
4139 | fi |
4140 | if test -z "$ac_cpp_err"; then |
4141 | : |
4142 | else |
4143 | echo "$as_me: failed program was:" >&5 |
4144 | sed 's/^/| /' conftest.$ac_ext >&5 |
4145 | |
4146 | # Broken: fails on valid input. |
4147 | continue |
4148 | fi |
4149 | rm -f conftest.err conftest.$ac_ext |
4150 | |
4151 | # OK, works on sane cases. Now check whether non-existent headers |
4152 | # can be detected and how. |
4153 | cat >conftest.$ac_ext <<_ACEOF |
4154 | /* confdefs.h. */ |
4155 | _ACEOF |
4156 | cat confdefs.h >>conftest.$ac_ext |
4157 | cat >>conftest.$ac_ext <<_ACEOF |
4158 | /* end confdefs.h. */ |
4159 | #include <ac_nonexistent.h> |
4160 | _ACEOF |
4161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4163 | ac_status=$? |
4164 | grep -v '^ *+' conftest.er1 >conftest.err |
4165 | rm -f conftest.er1 |
4166 | cat conftest.err >&5 |
4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4168 | (exit $ac_status); } >/dev/null; then |
4169 | if test -s conftest.err; then |
4170 | ac_cpp_err=$ac_c_preproc_warn_flag |
4171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4172 | else |
4173 | ac_cpp_err= |
4174 | fi |
4175 | else |
4176 | ac_cpp_err=yes |
4177 | fi |
4178 | if test -z "$ac_cpp_err"; then |
4179 | # Broken: success on invalid input. |
4180 | continue |
4181 | else |
4182 | echo "$as_me: failed program was:" >&5 |
4183 | sed 's/^/| /' conftest.$ac_ext >&5 |
4184 | |
4185 | # Passes both tests. |
4186 | ac_preproc_ok=: |
4187 | break |
4188 | fi |
4189 | rm -f conftest.err conftest.$ac_ext |
4190 | |
4191 | done |
4192 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4193 | rm -f conftest.err conftest.$ac_ext |
4194 | if $ac_preproc_ok; then |
4195 | : |
4196 | else |
4197 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4198 | See \`config.log' for more details." >&5 |
4199 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4200 | See \`config.log' for more details." >&2;} |
4201 | { (exit 1); exit 1; }; } |
4202 | fi |
4203 | |
4204 | ac_ext=c |
4205 | ac_cpp='$CPP $CPPFLAGS' |
4206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4209 | |
4210 | |
4211 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4212 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4213 | if test "${ac_cv_header_stdc+set}" = set; then |
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4215 | else |
4216 | cat >conftest.$ac_ext <<_ACEOF |
4217 | /* confdefs.h. */ |
4218 | _ACEOF |
4219 | cat confdefs.h >>conftest.$ac_ext |
4220 | cat >>conftest.$ac_ext <<_ACEOF |
4221 | /* end confdefs.h. */ |
4222 | #include <stdlib.h> |
4223 | #include <stdarg.h> |
4224 | #include <string.h> |
4225 | #include <float.h> |
4226 | |
4227 | int |
4228 | main () |
4229 | { |
4230 | |
4231 | ; |
4232 | return 0; |
4233 | } |
4234 | _ACEOF |
4235 | rm -f conftest.$ac_objext |
4236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4237 | (eval $ac_compile) 2>conftest.er1 |
4238 | ac_status=$? |
4239 | grep -v '^ *+' conftest.er1 >conftest.err |
4240 | rm -f conftest.er1 |
4241 | cat conftest.err >&5 |
4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4243 | (exit $ac_status); } && |
4244 | { ac_try='test -z "$ac_c_werror_flag" |
4245 | || test ! -s conftest.err' |
4246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4247 | (eval $ac_try) 2>&5 |
4248 | ac_status=$? |
4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4250 | (exit $ac_status); }; } && |
4251 | { ac_try='test -s conftest.$ac_objext' |
4252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4253 | (eval $ac_try) 2>&5 |
4254 | ac_status=$? |
4255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4256 | (exit $ac_status); }; }; then |
4257 | ac_cv_header_stdc=yes |
4258 | else |
4259 | echo "$as_me: failed program was:" >&5 |
4260 | sed 's/^/| /' conftest.$ac_ext >&5 |
4261 | |
4262 | ac_cv_header_stdc=no |
4263 | fi |
4264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4265 | |
4266 | if test $ac_cv_header_stdc = yes; then |
4267 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4268 | cat >conftest.$ac_ext <<_ACEOF |
4269 | /* confdefs.h. */ |
4270 | _ACEOF |
4271 | cat confdefs.h >>conftest.$ac_ext |
4272 | cat >>conftest.$ac_ext <<_ACEOF |
4273 | /* end confdefs.h. */ |
4274 | #include <string.h> |
4275 | |
4276 | _ACEOF |
4277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4278 | $EGREP "memchr" >/dev/null 2>&1; then |
4279 | : |
4280 | else |
4281 | ac_cv_header_stdc=no |
4282 | fi |
4283 | rm -f conftest* |
4284 | |
4285 | fi |
4286 | |
4287 | if test $ac_cv_header_stdc = yes; then |
4288 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4289 | cat >conftest.$ac_ext <<_ACEOF |
4290 | /* confdefs.h. */ |
4291 | _ACEOF |
4292 | cat confdefs.h >>conftest.$ac_ext |
4293 | cat >>conftest.$ac_ext <<_ACEOF |
4294 | /* end confdefs.h. */ |
4295 | #include <stdlib.h> |
4296 | |
4297 | _ACEOF |
4298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4299 | $EGREP "free" >/dev/null 2>&1; then |
4300 | : |
4301 | else |
4302 | ac_cv_header_stdc=no |
4303 | fi |
4304 | rm -f conftest* |
4305 | |
4306 | fi |
4307 | |
4308 | if test $ac_cv_header_stdc = yes; then |
4309 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4310 | if test "$cross_compiling" = yes; then |
4311 | : |
4312 | else |
4313 | cat >conftest.$ac_ext <<_ACEOF |
4314 | /* confdefs.h. */ |
4315 | _ACEOF |
4316 | cat confdefs.h >>conftest.$ac_ext |
4317 | cat >>conftest.$ac_ext <<_ACEOF |
4318 | /* end confdefs.h. */ |
4319 | #include <ctype.h> |
4320 | #if ((' ' & 0x0FF) == 0x020) |
4321 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4322 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4323 | #else |
4324 | # define ISLOWER(c) \ |
4325 | (('a' <= (c) && (c) <= 'i') \ |
4326 | || ('j' <= (c) && (c) <= 'r') \ |
4327 | || ('s' <= (c) && (c) <= 'z')) |
4328 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4329 | #endif |
4330 | |
4331 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4332 | int |
4333 | main () |
4334 | { |
4335 | int i; |
4336 | for (i = 0; i < 256; i++) |
4337 | if (XOR (islower (i), ISLOWER (i)) |
4338 | || toupper (i) != TOUPPER (i)) |
4339 | exit(2); |
4340 | exit (0); |
4341 | } |
4342 | _ACEOF |
4343 | rm -f conftest$ac_exeext |
4344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4345 | (eval $ac_link) 2>&5 |
4346 | ac_status=$? |
4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4350 | (eval $ac_try) 2>&5 |
4351 | ac_status=$? |
4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4353 | (exit $ac_status); }; }; then |
4354 | : |
4355 | else |
4356 | echo "$as_me: program exited with status $ac_status" >&5 |
4357 | echo "$as_me: failed program was:" >&5 |
4358 | sed 's/^/| /' conftest.$ac_ext >&5 |
4359 | |
4360 | ( exit $ac_status ) |
4361 | ac_cv_header_stdc=no |
4362 | fi |
4363 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4364 | fi |
4365 | fi |
4366 | fi |
4367 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4368 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
4369 | if test $ac_cv_header_stdc = yes; then |
4370 | |
4371 | cat >>confdefs.h <<\_ACEOF |
4372 | #define STDC_HEADERS 1 |
4373 | _ACEOF |
4374 | |
4375 | fi |
4376 | |
4377 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4378 | |
4379 | |
4380 | |
4381 | |
4382 | |
4383 | |
4384 | |
4385 | |
4386 | |
4387 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4388 | inttypes.h stdint.h unistd.h |
4389 | do |
4390 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4395 | else |
4396 | cat >conftest.$ac_ext <<_ACEOF |
4397 | /* confdefs.h. */ |
4398 | _ACEOF |
4399 | cat confdefs.h >>conftest.$ac_ext |
4400 | cat >>conftest.$ac_ext <<_ACEOF |
4401 | /* end confdefs.h. */ |
4402 | $ac_includes_default |
4403 | |
4404 | #include <$ac_header> |
4405 | _ACEOF |
4406 | rm -f conftest.$ac_objext |
4407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4408 | (eval $ac_compile) 2>conftest.er1 |
4409 | ac_status=$? |
4410 | grep -v '^ *+' conftest.er1 >conftest.err |
4411 | rm -f conftest.er1 |
4412 | cat conftest.err >&5 |
4413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4414 | (exit $ac_status); } && |
4415 | { ac_try='test -z "$ac_c_werror_flag" |
4416 | || test ! -s conftest.err' |
4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4418 | (eval $ac_try) 2>&5 |
4419 | ac_status=$? |
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4421 | (exit $ac_status); }; } && |
4422 | { ac_try='test -s conftest.$ac_objext' |
4423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4424 | (eval $ac_try) 2>&5 |
4425 | ac_status=$? |
4426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4427 | (exit $ac_status); }; }; then |
4428 | eval "$as_ac_Header=yes" |
4429 | else |
4430 | echo "$as_me: failed program was:" >&5 |
4431 | sed 's/^/| /' conftest.$ac_ext >&5 |
4432 | |
4433 | eval "$as_ac_Header=no" |
4434 | fi |
4435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4436 | fi |
4437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4439 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4440 | cat >>confdefs.h <<_ACEOF |
4441 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4442 | _ACEOF |
4443 | |
4444 | fi |
4445 | |
4446 | done |
4447 | |
4448 | |
4449 | |
4450 | for ac_header in dlfcn.h |
4451 | do |
4452 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4458 | fi |
4459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4461 | else |
4462 | # Is the header compilable? |
4463 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4464 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4465 | cat >conftest.$ac_ext <<_ACEOF |
4466 | /* confdefs.h. */ |
4467 | _ACEOF |
4468 | cat confdefs.h >>conftest.$ac_ext |
4469 | cat >>conftest.$ac_ext <<_ACEOF |
4470 | /* end confdefs.h. */ |
4471 | $ac_includes_default |
4472 | #include <$ac_header> |
4473 | _ACEOF |
4474 | rm -f conftest.$ac_objext |
4475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4476 | (eval $ac_compile) 2>conftest.er1 |
4477 | ac_status=$? |
4478 | grep -v '^ *+' conftest.er1 >conftest.err |
4479 | rm -f conftest.er1 |
4480 | cat conftest.err >&5 |
4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4482 | (exit $ac_status); } && |
4483 | { ac_try='test -z "$ac_c_werror_flag" |
4484 | || test ! -s conftest.err' |
4485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4486 | (eval $ac_try) 2>&5 |
4487 | ac_status=$? |
4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4489 | (exit $ac_status); }; } && |
4490 | { ac_try='test -s conftest.$ac_objext' |
4491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4492 | (eval $ac_try) 2>&5 |
4493 | ac_status=$? |
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4495 | (exit $ac_status); }; }; then |
4496 | ac_header_compiler=yes |
4497 | else |
4498 | echo "$as_me: failed program was:" >&5 |
4499 | sed 's/^/| /' conftest.$ac_ext >&5 |
4500 | |
4501 | ac_header_compiler=no |
4502 | fi |
4503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4504 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4505 | echo "${ECHO_T}$ac_header_compiler" >&6 |
4506 | |
4507 | # Is the header present? |
4508 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4509 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4510 | cat >conftest.$ac_ext <<_ACEOF |
4511 | /* confdefs.h. */ |
4512 | _ACEOF |
4513 | cat confdefs.h >>conftest.$ac_ext |
4514 | cat >>conftest.$ac_ext <<_ACEOF |
4515 | /* end confdefs.h. */ |
4516 | #include <$ac_header> |
4517 | _ACEOF |
4518 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4519 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4520 | ac_status=$? |
4521 | grep -v '^ *+' conftest.er1 >conftest.err |
4522 | rm -f conftest.er1 |
4523 | cat conftest.err >&5 |
4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4525 | (exit $ac_status); } >/dev/null; then |
4526 | if test -s conftest.err; then |
4527 | ac_cpp_err=$ac_c_preproc_warn_flag |
4528 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4529 | else |
4530 | ac_cpp_err= |
4531 | fi |
4532 | else |
4533 | ac_cpp_err=yes |
4534 | fi |
4535 | if test -z "$ac_cpp_err"; then |
4536 | ac_header_preproc=yes |
4537 | else |
4538 | echo "$as_me: failed program was:" >&5 |
4539 | sed 's/^/| /' conftest.$ac_ext >&5 |
4540 | |
4541 | ac_header_preproc=no |
4542 | fi |
4543 | rm -f conftest.err conftest.$ac_ext |
4544 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4545 | echo "${ECHO_T}$ac_header_preproc" >&6 |
4546 | |
4547 | # So? What about this header? |
4548 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4549 | yes:no: ) |
4550 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4551 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4552 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4553 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4554 | ac_header_preproc=yes |
4555 | ;; |
4556 | no:yes:* ) |
4557 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4558 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4559 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4560 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4561 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4562 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4563 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4564 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4567 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4568 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4569 | ( |
4570 | cat <<\_ASBOX |
4571 | ## -------------------------------------------------- ## |
4572 | ## Report this to courier-users@lists.sourceforge.net ## |
4573 | ## -------------------------------------------------- ## |
4574 | _ASBOX |
4575 | ) | |
4576 | sed "s/^/$as_me: WARNING: /" >&2 |
4577 | ;; |
4578 | esac |
4579 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4580 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4581 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4583 | else |
4584 | eval "$as_ac_Header=\$ac_header_preproc" |
4585 | fi |
4586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4588 | |
4589 | fi |
4590 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4591 | cat >>confdefs.h <<_ACEOF |
4592 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4593 | _ACEOF |
4594 | |
4595 | fi |
4596 | |
4597 | done |
4598 | |
4599 | ac_ext=cc |
4600 | ac_cpp='$CXXCPP $CPPFLAGS' |
4601 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4602 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4603 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4604 | if test -n "$ac_tool_prefix"; then |
4605 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4606 | do |
4607 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4608 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4611 | if test "${ac_cv_prog_CXX+set}" = set; then |
4612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4613 | else |
4614 | if test -n "$CXX"; then |
4615 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4616 | else |
4617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4618 | for as_dir in $PATH |
4619 | do |
4620 | IFS=$as_save_IFS |
4621 | test -z "$as_dir" && as_dir=. |
4622 | for ac_exec_ext in '' $ac_executable_extensions; do |
4623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4624 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4626 | break 2 |
4627 | fi |
4628 | done |
4629 | done |
4630 | |
4631 | fi |
4632 | fi |
4633 | CXX=$ac_cv_prog_CXX |
4634 | if test -n "$CXX"; then |
4635 | echo "$as_me:$LINENO: result: $CXX" >&5 |
4636 | echo "${ECHO_T}$CXX" >&6 |
4637 | else |
4638 | echo "$as_me:$LINENO: result: no" >&5 |
4639 | echo "${ECHO_T}no" >&6 |
4640 | fi |
4641 | |
4642 | test -n "$CXX" && break |
4643 | done |
4644 | fi |
4645 | if test -z "$CXX"; then |
4646 | ac_ct_CXX=$CXX |
4647 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
4648 | do |
4649 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4650 | set dummy $ac_prog; ac_word=$2 |
4651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4653 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4655 | else |
4656 | if test -n "$ac_ct_CXX"; then |
4657 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4658 | else |
4659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4660 | for as_dir in $PATH |
4661 | do |
4662 | IFS=$as_save_IFS |
4663 | test -z "$as_dir" && as_dir=. |
4664 | for ac_exec_ext in '' $ac_executable_extensions; do |
4665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4666 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4668 | break 2 |
4669 | fi |
4670 | done |
4671 | done |
4672 | |
4673 | fi |
4674 | fi |
4675 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4676 | if test -n "$ac_ct_CXX"; then |
4677 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4678 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
4679 | else |
4680 | echo "$as_me:$LINENO: result: no" >&5 |
4681 | echo "${ECHO_T}no" >&6 |
4682 | fi |
4683 | |
4684 | test -n "$ac_ct_CXX" && break |
4685 | done |
4686 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4687 | |
4688 | CXX=$ac_ct_CXX |
4689 | fi |
4690 | |
4691 | |
4692 | # Provide some information about the compiler. |
4693 | echo "$as_me:$LINENO:" \ |
4694 | "checking for C++ compiler version" >&5 |
4695 | ac_compiler=`set X $ac_compile; echo $2` |
4696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
4697 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
4698 | ac_status=$? |
4699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4700 | (exit $ac_status); } |
4701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
4702 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
4703 | ac_status=$? |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4705 | (exit $ac_status); } |
4706 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
4707 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
4708 | ac_status=$? |
4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4710 | (exit $ac_status); } |
4711 | |
4712 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4713 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
4714 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4716 | else |
4717 | cat >conftest.$ac_ext <<_ACEOF |
4718 | /* confdefs.h. */ |
4719 | _ACEOF |
4720 | cat confdefs.h >>conftest.$ac_ext |
4721 | cat >>conftest.$ac_ext <<_ACEOF |
4722 | /* end confdefs.h. */ |
4723 | |
4724 | int |
4725 | main () |
4726 | { |
4727 | #ifndef __GNUC__ |
4728 | choke me |
4729 | #endif |
4730 | |
4731 | ; |
4732 | return 0; |
4733 | } |
4734 | _ACEOF |
4735 | rm -f conftest.$ac_objext |
4736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4737 | (eval $ac_compile) 2>conftest.er1 |
4738 | ac_status=$? |
4739 | grep -v '^ *+' conftest.er1 >conftest.err |
4740 | rm -f conftest.er1 |
4741 | cat conftest.err >&5 |
4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4743 | (exit $ac_status); } && |
4744 | { ac_try='test -z "$ac_cxx_werror_flag" |
4745 | || test ! -s conftest.err' |
4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4747 | (eval $ac_try) 2>&5 |
4748 | ac_status=$? |
4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4750 | (exit $ac_status); }; } && |
4751 | { ac_try='test -s conftest.$ac_objext' |
4752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4753 | (eval $ac_try) 2>&5 |
4754 | ac_status=$? |
4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4756 | (exit $ac_status); }; }; then |
4757 | ac_compiler_gnu=yes |
4758 | else |
4759 | echo "$as_me: failed program was:" >&5 |
4760 | sed 's/^/| /' conftest.$ac_ext >&5 |
4761 | |
4762 | ac_compiler_gnu=no |
4763 | fi |
4764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4765 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4766 | |
4767 | fi |
4768 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4769 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4770 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
4771 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4772 | ac_save_CXXFLAGS=$CXXFLAGS |
4773 | CXXFLAGS="-g" |
4774 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4775 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
4776 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4778 | else |
4779 | cat >conftest.$ac_ext <<_ACEOF |
4780 | /* confdefs.h. */ |
4781 | _ACEOF |
4782 | cat confdefs.h >>conftest.$ac_ext |
4783 | cat >>conftest.$ac_ext <<_ACEOF |
4784 | /* end confdefs.h. */ |
4785 | |
4786 | int |
4787 | main () |
4788 | { |
4789 | |
4790 | ; |
4791 | return 0; |
4792 | } |
4793 | _ACEOF |
4794 | rm -f conftest.$ac_objext |
4795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4796 | (eval $ac_compile) 2>conftest.er1 |
4797 | ac_status=$? |
4798 | grep -v '^ *+' conftest.er1 >conftest.err |
4799 | rm -f conftest.er1 |
4800 | cat conftest.err >&5 |
4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4802 | (exit $ac_status); } && |
4803 | { ac_try='test -z "$ac_cxx_werror_flag" |
4804 | || test ! -s conftest.err' |
4805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4806 | (eval $ac_try) 2>&5 |
4807 | ac_status=$? |
4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4809 | (exit $ac_status); }; } && |
4810 | { ac_try='test -s conftest.$ac_objext' |
4811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4812 | (eval $ac_try) 2>&5 |
4813 | ac_status=$? |
4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4815 | (exit $ac_status); }; }; then |
4816 | ac_cv_prog_cxx_g=yes |
4817 | else |
4818 | echo "$as_me: failed program was:" >&5 |
4819 | sed 's/^/| /' conftest.$ac_ext >&5 |
4820 | |
4821 | ac_cv_prog_cxx_g=no |
4822 | fi |
4823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4824 | fi |
4825 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4826 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
4827 | if test "$ac_test_CXXFLAGS" = set; then |
4828 | CXXFLAGS=$ac_save_CXXFLAGS |
4829 | elif test $ac_cv_prog_cxx_g = yes; then |
4830 | if test "$GXX" = yes; then |
4831 | CXXFLAGS="-g -O2" |
4832 | else |
4833 | CXXFLAGS="-g" |
4834 | fi |
4835 | else |
4836 | if test "$GXX" = yes; then |
4837 | CXXFLAGS="-O2" |
4838 | else |
4839 | CXXFLAGS= |
4840 | fi |
4841 | fi |
4842 | for ac_declaration in \ |
4843 | '' \ |
4844 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
4845 | 'extern "C" void std::exit (int); using std::exit;' \ |
4846 | 'extern "C" void exit (int) throw ();' \ |
4847 | 'extern "C" void exit (int);' \ |
4848 | 'void exit (int);' |
4849 | do |
4850 | cat >conftest.$ac_ext <<_ACEOF |
4851 | /* confdefs.h. */ |
4852 | _ACEOF |
4853 | cat confdefs.h >>conftest.$ac_ext |
4854 | cat >>conftest.$ac_ext <<_ACEOF |
4855 | /* end confdefs.h. */ |
4856 | $ac_declaration |
4857 | #include <stdlib.h> |
4858 | int |
4859 | main () |
4860 | { |
4861 | exit (42); |
4862 | ; |
4863 | return 0; |
4864 | } |
4865 | _ACEOF |
4866 | rm -f conftest.$ac_objext |
4867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4868 | (eval $ac_compile) 2>conftest.er1 |
4869 | ac_status=$? |
4870 | grep -v '^ *+' conftest.er1 >conftest.err |
4871 | rm -f conftest.er1 |
4872 | cat conftest.err >&5 |
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4874 | (exit $ac_status); } && |
4875 | { ac_try='test -z "$ac_cxx_werror_flag" |
4876 | || test ! -s conftest.err' |
4877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4878 | (eval $ac_try) 2>&5 |
4879 | ac_status=$? |
4880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4881 | (exit $ac_status); }; } && |
4882 | { ac_try='test -s conftest.$ac_objext' |
4883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4884 | (eval $ac_try) 2>&5 |
4885 | ac_status=$? |
4886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4887 | (exit $ac_status); }; }; then |
4888 | : |
4889 | else |
4890 | echo "$as_me: failed program was:" >&5 |
4891 | sed 's/^/| /' conftest.$ac_ext >&5 |
4892 | |
4893 | continue |
4894 | fi |
4895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4896 | cat >conftest.$ac_ext <<_ACEOF |
4897 | /* confdefs.h. */ |
4898 | _ACEOF |
4899 | cat confdefs.h >>conftest.$ac_ext |
4900 | cat >>conftest.$ac_ext <<_ACEOF |
4901 | /* end confdefs.h. */ |
4902 | $ac_declaration |
4903 | int |
4904 | main () |
4905 | { |
4906 | exit (42); |
4907 | ; |
4908 | return 0; |
4909 | } |
4910 | _ACEOF |
4911 | rm -f conftest.$ac_objext |
4912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4913 | (eval $ac_compile) 2>conftest.er1 |
4914 | ac_status=$? |
4915 | grep -v '^ *+' conftest.er1 >conftest.err |
4916 | rm -f conftest.er1 |
4917 | cat conftest.err >&5 |
4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4919 | (exit $ac_status); } && |
4920 | { ac_try='test -z "$ac_cxx_werror_flag" |
4921 | || test ! -s conftest.err' |
4922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4923 | (eval $ac_try) 2>&5 |
4924 | ac_status=$? |
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4926 | (exit $ac_status); }; } && |
4927 | { ac_try='test -s conftest.$ac_objext' |
4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4929 | (eval $ac_try) 2>&5 |
4930 | ac_status=$? |
4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4932 | (exit $ac_status); }; }; then |
4933 | break |
4934 | else |
4935 | echo "$as_me: failed program was:" >&5 |
4936 | sed 's/^/| /' conftest.$ac_ext >&5 |
4937 | |
4938 | fi |
4939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4940 | done |
4941 | rm -f conftest* |
4942 | if test -n "$ac_declaration"; then |
4943 | echo '#ifdef __cplusplus' >>confdefs.h |
4944 | echo $ac_declaration >>confdefs.h |
4945 | echo '#endif' >>confdefs.h |
4946 | fi |
4947 | |
4948 | ac_ext=cc |
4949 | ac_cpp='$CXXCPP $CPPFLAGS' |
4950 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4951 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4952 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4953 | |
4954 | depcc="$CXX" am_compiler_list= |
4955 | |
4956 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4957 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
4958 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
4959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4960 | else |
4961 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4962 | # We make a subdir and do the tests there. Otherwise we can end up |
4963 | # making bogus files that we don't know about and never remove. For |
4964 | # instance it was reported that on HP-UX the gcc test will end up |
4965 | # making a dummy file named `D' -- because `-MD' means `put the output |
4966 | # in D'. |
4967 | mkdir conftest.dir |
4968 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4969 | # using a relative directory. |
4970 | cp "$am_depcomp" conftest.dir |
4971 | cd conftest.dir |
4972 | # We will build objects and dependencies in a subdirectory because |
4973 | # it helps to detect inapplicable dependency modes. For instance |
4974 | # both Tru64's cc and ICC support -MD to output dependencies as a |
4975 | # side effect of compilation, but ICC will put the dependencies in |
4976 | # the current directory while Tru64 will put them in the object |
4977 | # directory. |
4978 | mkdir sub |
4979 | |
4980 | am_cv_CXX_dependencies_compiler_type=none |
4981 | if test "$am_compiler_list" = ""; then |
4982 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4983 | fi |
4984 | for depmode in $am_compiler_list; do |
4985 | # Setup a source with many dependencies, because some compilers |
4986 | # like to wrap large dependency lists on column 80 (with \), and |
4987 | # we should not choose a depcomp mode which is confused by this. |
4988 | # |
4989 | # We need to recreate these files for each test, as the compiler may |
4990 | # overwrite some of them when testing with obscure command lines. |
4991 | # This happens at least with the AIX C compiler. |
4992 | : > sub/conftest.c |
4993 | for i in 1 2 3 4 5 6; do |
4994 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4995 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4996 | # Solaris 8's {/usr,}/bin/sh. |
4997 | touch sub/conftst$i.h |
4998 | done |
4999 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5000 | |
5001 | case $depmode in |
5002 | nosideeffect) |
5003 | # after this tag, mechanisms are not by side-effect, so they'll |
5004 | # only be used when explicitly requested |
5005 | if test "x$enable_dependency_tracking" = xyes; then |
5006 | continue |
5007 | else |
5008 | break |
5009 | fi |
5010 | ;; |
5011 | none) break ;; |
5012 | esac |
5013 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5014 | # mode. It turns out that the SunPro C++ compiler does not properly |
5015 | # handle `-M -o', and we need to detect this. |
5016 | if depmode=$depmode \ |
5017 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5018 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5019 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5020 | >/dev/null 2>conftest.err && |
5021 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5022 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5023 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5024 | # icc doesn't choke on unknown options, it will just issue warnings |
5025 | # or remarks (even with -Werror). So we grep stderr for any message |
5026 | # that says an option was ignored or not supported. |
5027 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5028 | # icc: Command line warning: ignoring option '-M'; no argument required |
5029 | # The diagnosis changed in icc 8.0: |
5030 | # icc: Command line remark: option '-MP' not supported |
5031 | if (grep 'ignoring option' conftest.err || |
5032 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5033 | am_cv_CXX_dependencies_compiler_type=$depmode |
5034 | break |
5035 | fi |
5036 | fi |
5037 | done |
5038 | |
5039 | cd .. |
5040 | rm -rf conftest.dir |
5041 | else |
5042 | am_cv_CXX_dependencies_compiler_type=none |
5043 | fi |
5044 | |
5045 | fi |
5046 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5047 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
5048 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5049 | |
5050 | |
5051 | |
5052 | if |
5053 | test "x$enable_dependency_tracking" != xno \ |
5054 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5055 | am__fastdepCXX_TRUE= |
5056 | am__fastdepCXX_FALSE='#' |
5057 | else |
5058 | am__fastdepCXX_TRUE='#' |
5059 | am__fastdepCXX_FALSE= |
5060 | fi |
5061 | |
5062 | |
5063 | |
5064 | |
5065 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5066 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5067 | (test "X$CXX" != "Xg++"))) ; then |
5068 | ac_ext=cc |
5069 | ac_cpp='$CXXCPP $CPPFLAGS' |
5070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5073 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5074 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5075 | if test -z "$CXXCPP"; then |
5076 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5078 | else |
5079 | # Double quotes because CXXCPP needs to be expanded |
5080 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5081 | do |
5082 | ac_preproc_ok=false |
5083 | for ac_cxx_preproc_warn_flag in '' yes |
5084 | do |
5085 | # Use a header file that comes with gcc, so configuring glibc |
5086 | # with a fresh cross-compiler works. |
5087 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5088 | # <limits.h> exists even on freestanding compilers. |
5089 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5090 | # not just through cpp. "Syntax error" is here to catch this case. |
5091 | cat >conftest.$ac_ext <<_ACEOF |
5092 | /* confdefs.h. */ |
5093 | _ACEOF |
5094 | cat confdefs.h >>conftest.$ac_ext |
5095 | cat >>conftest.$ac_ext <<_ACEOF |
5096 | /* end confdefs.h. */ |
5097 | #ifdef __STDC__ |
5098 | # include <limits.h> |
5099 | #else |
5100 | # include <assert.h> |
5101 | #endif |
5102 | Syntax error |
5103 | _ACEOF |
5104 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5106 | ac_status=$? |
5107 | grep -v '^ *+' conftest.er1 >conftest.err |
5108 | rm -f conftest.er1 |
5109 | cat conftest.err >&5 |
5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5111 | (exit $ac_status); } >/dev/null; then |
5112 | if test -s conftest.err; then |
5113 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5114 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5115 | else |
5116 | ac_cpp_err= |
5117 | fi |
5118 | else |
5119 | ac_cpp_err=yes |
5120 | fi |
5121 | if test -z "$ac_cpp_err"; then |
5122 | : |
5123 | else |
5124 | echo "$as_me: failed program was:" >&5 |
5125 | sed 's/^/| /' conftest.$ac_ext >&5 |
5126 | |
5127 | # Broken: fails on valid input. |
5128 | continue |
5129 | fi |
5130 | rm -f conftest.err conftest.$ac_ext |
5131 | |
5132 | # OK, works on sane cases. Now check whether non-existent headers |
5133 | # can be detected and how. |
5134 | cat >conftest.$ac_ext <<_ACEOF |
5135 | /* confdefs.h. */ |
5136 | _ACEOF |
5137 | cat confdefs.h >>conftest.$ac_ext |
5138 | cat >>conftest.$ac_ext <<_ACEOF |
5139 | /* end confdefs.h. */ |
5140 | #include <ac_nonexistent.h> |
5141 | _ACEOF |
5142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5144 | ac_status=$? |
5145 | grep -v '^ *+' conftest.er1 >conftest.err |
5146 | rm -f conftest.er1 |
5147 | cat conftest.err >&5 |
5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5149 | (exit $ac_status); } >/dev/null; then |
5150 | if test -s conftest.err; then |
5151 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5152 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5153 | else |
5154 | ac_cpp_err= |
5155 | fi |
5156 | else |
5157 | ac_cpp_err=yes |
5158 | fi |
5159 | if test -z "$ac_cpp_err"; then |
5160 | # Broken: success on invalid input. |
5161 | continue |
5162 | else |
5163 | echo "$as_me: failed program was:" >&5 |
5164 | sed 's/^/| /' conftest.$ac_ext >&5 |
5165 | |
5166 | # Passes both tests. |
5167 | ac_preproc_ok=: |
5168 | break |
5169 | fi |
5170 | rm -f conftest.err conftest.$ac_ext |
5171 | |
5172 | done |
5173 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5174 | rm -f conftest.err conftest.$ac_ext |
5175 | if $ac_preproc_ok; then |
5176 | break |
5177 | fi |
5178 | |
5179 | done |
5180 | ac_cv_prog_CXXCPP=$CXXCPP |
5181 | |
5182 | fi |
5183 | CXXCPP=$ac_cv_prog_CXXCPP |
5184 | else |
5185 | ac_cv_prog_CXXCPP=$CXXCPP |
5186 | fi |
5187 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5188 | echo "${ECHO_T}$CXXCPP" >&6 |
5189 | ac_preproc_ok=false |
5190 | for ac_cxx_preproc_warn_flag in '' yes |
5191 | do |
5192 | # Use a header file that comes with gcc, so configuring glibc |
5193 | # with a fresh cross-compiler works. |
5194 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5195 | # <limits.h> exists even on freestanding compilers. |
5196 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5197 | # not just through cpp. "Syntax error" is here to catch this case. |
5198 | cat >conftest.$ac_ext <<_ACEOF |
5199 | /* confdefs.h. */ |
5200 | _ACEOF |
5201 | cat confdefs.h >>conftest.$ac_ext |
5202 | cat >>conftest.$ac_ext <<_ACEOF |
5203 | /* end confdefs.h. */ |
5204 | #ifdef __STDC__ |
5205 | # include <limits.h> |
5206 | #else |
5207 | # include <assert.h> |
5208 | #endif |
5209 | Syntax error |
5210 | _ACEOF |
5211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5213 | ac_status=$? |
5214 | grep -v '^ *+' conftest.er1 >conftest.err |
5215 | rm -f conftest.er1 |
5216 | cat conftest.err >&5 |
5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5218 | (exit $ac_status); } >/dev/null; then |
5219 | if test -s conftest.err; then |
5220 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5221 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5222 | else |
5223 | ac_cpp_err= |
5224 | fi |
5225 | else |
5226 | ac_cpp_err=yes |
5227 | fi |
5228 | if test -z "$ac_cpp_err"; then |
5229 | : |
5230 | else |
5231 | echo "$as_me: failed program was:" >&5 |
5232 | sed 's/^/| /' conftest.$ac_ext >&5 |
5233 | |
5234 | # Broken: fails on valid input. |
5235 | continue |
5236 | fi |
5237 | rm -f conftest.err conftest.$ac_ext |
5238 | |
5239 | # OK, works on sane cases. Now check whether non-existent headers |
5240 | # can be detected and how. |
5241 | cat >conftest.$ac_ext <<_ACEOF |
5242 | /* confdefs.h. */ |
5243 | _ACEOF |
5244 | cat confdefs.h >>conftest.$ac_ext |
5245 | cat >>conftest.$ac_ext <<_ACEOF |
5246 | /* end confdefs.h. */ |
5247 | #include <ac_nonexistent.h> |
5248 | _ACEOF |
5249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5251 | ac_status=$? |
5252 | grep -v '^ *+' conftest.er1 >conftest.err |
5253 | rm -f conftest.er1 |
5254 | cat conftest.err >&5 |
5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5256 | (exit $ac_status); } >/dev/null; then |
5257 | if test -s conftest.err; then |
5258 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5259 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5260 | else |
5261 | ac_cpp_err= |
5262 | fi |
5263 | else |
5264 | ac_cpp_err=yes |
5265 | fi |
5266 | if test -z "$ac_cpp_err"; then |
5267 | # Broken: success on invalid input. |
5268 | continue |
5269 | else |
5270 | echo "$as_me: failed program was:" >&5 |
5271 | sed 's/^/| /' conftest.$ac_ext >&5 |
5272 | |
5273 | # Passes both tests. |
5274 | ac_preproc_ok=: |
5275 | break |
5276 | fi |
5277 | rm -f conftest.err conftest.$ac_ext |
5278 | |
5279 | done |
5280 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5281 | rm -f conftest.err conftest.$ac_ext |
5282 | if $ac_preproc_ok; then |
5283 | : |
5284 | else |
5285 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5286 | See \`config.log' for more details." >&5 |
5287 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5288 | See \`config.log' for more details." >&2;} |
5289 | { (exit 1); exit 1; }; } |
5290 | fi |
5291 | |
5292 | ac_ext=cc |
5293 | ac_cpp='$CXXCPP $CPPFLAGS' |
5294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5297 | |
5298 | fi |
5299 | |
5300 | |
5301 | ac_ext=f |
5302 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5303 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5304 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5305 | if test -n "$ac_tool_prefix"; then |
5306 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5307 | do |
5308 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5309 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5312 | if test "${ac_cv_prog_F77+set}" = set; then |
5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5314 | else |
5315 | if test -n "$F77"; then |
5316 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5317 | else |
5318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5319 | for as_dir in $PATH |
5320 | do |
5321 | IFS=$as_save_IFS |
5322 | test -z "$as_dir" && as_dir=. |
5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
5324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5325 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5327 | break 2 |
5328 | fi |
5329 | done |
5330 | done |
5331 | |
5332 | fi |
5333 | fi |
5334 | F77=$ac_cv_prog_F77 |
5335 | if test -n "$F77"; then |
5336 | echo "$as_me:$LINENO: result: $F77" >&5 |
5337 | echo "${ECHO_T}$F77" >&6 |
5338 | else |
5339 | echo "$as_me:$LINENO: result: no" >&5 |
5340 | echo "${ECHO_T}no" >&6 |
5341 | fi |
5342 | |
5343 | test -n "$F77" && break |
5344 | done |
5345 | fi |
5346 | if test -z "$F77"; then |
5347 | ac_ct_F77=$F77 |
5348 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
5349 | do |
5350 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5351 | set dummy $ac_prog; ac_word=$2 |
5352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5354 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5356 | else |
5357 | if test -n "$ac_ct_F77"; then |
5358 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5359 | else |
5360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5361 | for as_dir in $PATH |
5362 | do |
5363 | IFS=$as_save_IFS |
5364 | test -z "$as_dir" && as_dir=. |
5365 | for ac_exec_ext in '' $ac_executable_extensions; do |
5366 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5367 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5369 | break 2 |
5370 | fi |
5371 | done |
5372 | done |
5373 | |
5374 | fi |
5375 | fi |
5376 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
5377 | if test -n "$ac_ct_F77"; then |
5378 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
5379 | echo "${ECHO_T}$ac_ct_F77" >&6 |
5380 | else |
5381 | echo "$as_me:$LINENO: result: no" >&5 |
5382 | echo "${ECHO_T}no" >&6 |
5383 | fi |
5384 | |
5385 | test -n "$ac_ct_F77" && break |
5386 | done |
5387 | |
5388 | F77=$ac_ct_F77 |
5389 | fi |
5390 | |
5391 | |
5392 | # Provide some information about the compiler. |
5393 | echo "$as_me:5393:" \ |
5394 | "checking for Fortran 77 compiler version" >&5 |
5395 | ac_compiler=`set X $ac_compile; echo $2` |
5396 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
5397 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
5398 | ac_status=$? |
5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5400 | (exit $ac_status); } |
5401 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
5402 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
5403 | ac_status=$? |
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5405 | (exit $ac_status); } |
5406 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
5407 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
5408 | ac_status=$? |
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5410 | (exit $ac_status); } |
5411 | rm -f a.out |
5412 | |
5413 | # If we don't use `.F' as extension, the preprocessor is not run on the |
5414 | # input file. (Note that this only needs to work for GNU compilers.) |
5415 | ac_save_ext=$ac_ext |
5416 | ac_ext=F |
5417 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
5418 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
5419 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
5420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5421 | else |
5422 | cat >conftest.$ac_ext <<_ACEOF |
5423 | program main |
5424 | #ifndef __GNUC__ |
5425 | choke me |
5426 | #endif |
5427 | |
5428 | end |
5429 | _ACEOF |
5430 | rm -f conftest.$ac_objext |
5431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5432 | (eval $ac_compile) 2>conftest.er1 |
5433 | ac_status=$? |
5434 | grep -v '^ *+' conftest.er1 >conftest.err |
5435 | rm -f conftest.er1 |
5436 | cat conftest.err >&5 |
5437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5438 | (exit $ac_status); } && |
5439 | { ac_try='test -z "$ac_f77_werror_flag" |
5440 | || test ! -s conftest.err' |
5441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5442 | (eval $ac_try) 2>&5 |
5443 | ac_status=$? |
5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5445 | (exit $ac_status); }; } && |
5446 | { ac_try='test -s conftest.$ac_objext' |
5447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5448 | (eval $ac_try) 2>&5 |
5449 | ac_status=$? |
5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5451 | (exit $ac_status); }; }; then |
5452 | ac_compiler_gnu=yes |
5453 | else |
5454 | echo "$as_me: failed program was:" >&5 |
5455 | sed 's/^/| /' conftest.$ac_ext >&5 |
5456 | |
5457 | ac_compiler_gnu=no |
5458 | fi |
5459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5460 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5461 | |
5462 | fi |
5463 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
5464 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
5465 | ac_ext=$ac_save_ext |
5466 | ac_test_FFLAGS=${FFLAGS+set} |
5467 | ac_save_FFLAGS=$FFLAGS |
5468 | FFLAGS= |
5469 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
5470 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
5471 | if test "${ac_cv_prog_f77_g+set}" = set; then |
5472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5473 | else |
5474 | FFLAGS=-g |
5475 | cat >conftest.$ac_ext <<_ACEOF |
5476 | program main |
5477 | |
5478 | end |
5479 | _ACEOF |
5480 | rm -f conftest.$ac_objext |
5481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5482 | (eval $ac_compile) 2>conftest.er1 |
5483 | ac_status=$? |
5484 | grep -v '^ *+' conftest.er1 >conftest.err |
5485 | rm -f conftest.er1 |
5486 | cat conftest.err >&5 |
5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5488 | (exit $ac_status); } && |
5489 | { ac_try='test -z "$ac_f77_werror_flag" |
5490 | || test ! -s conftest.err' |
5491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5492 | (eval $ac_try) 2>&5 |
5493 | ac_status=$? |
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5495 | (exit $ac_status); }; } && |
5496 | { ac_try='test -s conftest.$ac_objext' |
5497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5498 | (eval $ac_try) 2>&5 |
5499 | ac_status=$? |
5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5501 | (exit $ac_status); }; }; then |
5502 | ac_cv_prog_f77_g=yes |
5503 | else |
5504 | echo "$as_me: failed program was:" >&5 |
5505 | sed 's/^/| /' conftest.$ac_ext >&5 |
5506 | |
5507 | ac_cv_prog_f77_g=no |
5508 | fi |
5509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5510 | |
5511 | fi |
5512 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
5513 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
5514 | if test "$ac_test_FFLAGS" = set; then |
5515 | FFLAGS=$ac_save_FFLAGS |
5516 | elif test $ac_cv_prog_f77_g = yes; then |
5517 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5518 | FFLAGS="-g -O2" |
5519 | else |
5520 | FFLAGS="-g" |
5521 | fi |
5522 | else |
5523 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
5524 | FFLAGS="-O2" |
5525 | else |
5526 | FFLAGS= |
5527 | fi |
5528 | fi |
5529 | |
5530 | G77=`test $ac_compiler_gnu = yes && echo yes` |
5531 | ac_ext=c |
5532 | ac_cpp='$CPP $CPPFLAGS' |
5533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5536 | |
5537 | |
5538 | |
5539 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5540 | |
5541 | # find the maximum length of command line arguments |
5542 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5543 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5544 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5546 | else |
5547 | i=0 |
5548 | teststring="ABCD" |
5549 | |
5550 | case $build_os in |
5551 | msdosdjgpp*) |
5552 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5553 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5554 | # during glob expansion). Even if it were fixed, the result of this |
5555 | # check would be larger than it should be. |
5556 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5557 | ;; |
5558 | |
5559 | gnu*) |
5560 | # Under GNU Hurd, this test is not required because there is |
5561 | # no limit to the length of command line arguments. |
5562 | # Libtool will interpret -1 as no limit whatsoever |
5563 | lt_cv_sys_max_cmd_len=-1; |
5564 | ;; |
5565 | |
5566 | cygwin* | mingw*) |
5567 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5568 | # about 5 minutes as the teststring grows exponentially. |
5569 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5570 | # you end up with a "frozen" computer, even though with patience |
5571 | # the test eventually succeeds (with a max line length of 256k). |
5572 | # Instead, let's just punt: use the minimum linelength reported by |
5573 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5574 | lt_cv_sys_max_cmd_len=8192; |
5575 | ;; |
5576 | |
5577 | amigaos*) |
5578 | # On AmigaOS with pdksh, this test takes hours, literally. |
5579 | # So we just punt and use a minimum line length of 8192. |
5580 | lt_cv_sys_max_cmd_len=8192; |
5581 | ;; |
5582 | |
5583 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5584 | # This has been around since 386BSD, at least. Likely further. |
5585 | if test -x /sbin/sysctl; then |
5586 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5587 | elif test -x /usr/sbin/sysctl; then |
5588 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5589 | else |
5590 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5591 | fi |
5592 | # And add a safety zone |
5593 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5594 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5595 | ;; |
5596 | |
5597 | interix*) |
5598 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5599 | lt_cv_sys_max_cmd_len=196608 |
5600 | ;; |
5601 | |
5602 | osf*) |
5603 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5604 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5605 | # nice to cause kernel panics so lets avoid the loop below. |
5606 | # First set a reasonable default. |
5607 | lt_cv_sys_max_cmd_len=16384 |
5608 | # |
5609 | if test -x /sbin/sysconfig; then |
5610 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5611 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5612 | esac |
5613 | fi |
5614 | ;; |
5615 | sco3.2v5*) |
5616 | lt_cv_sys_max_cmd_len=102400 |
5617 | ;; |
5618 | sysv5* | sco5v6* | sysv4.2uw2*) |
5619 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5620 | if test -n "$kargmax"; then |
5621 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5622 | else |
5623 | lt_cv_sys_max_cmd_len=32768 |
5624 | fi |
5625 | ;; |
5626 | *) |
5627 | # If test is not a shell built-in, we'll probably end up computing a |
5628 | # maximum length that is only half of the actual maximum length, but |
5629 | # we can't tell. |
5630 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5631 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5632 | = "XX$teststring") >/dev/null 2>&1 && |
5633 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
5634 | lt_cv_sys_max_cmd_len=$new_result && |
5635 | test $i != 17 # 1/2 MB should be enough |
5636 | do |
5637 | i=`expr $i + 1` |
5638 | teststring=$teststring$teststring |
5639 | done |
5640 | teststring= |
5641 | # Add a significant safety factor because C++ compilers can tack on massive |
5642 | # amounts of additional arguments before passing them to the linker. |
5643 | # It appears as though 1/2 is a usable value. |
5644 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5645 | ;; |
5646 | esac |
5647 | |
5648 | fi |
5649 | |
5650 | if test -n $lt_cv_sys_max_cmd_len ; then |
5651 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5652 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5653 | else |
5654 | echo "$as_me:$LINENO: result: none" >&5 |
5655 | echo "${ECHO_T}none" >&6 |
5656 | fi |
5657 | |
5658 | |
5659 | |
5660 | |
5661 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5662 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5663 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5664 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5666 | else |
5667 | |
5668 | # These are sane defaults that work on at least a few old systems. |
5669 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5670 | |
5671 | # Character class describing NM global symbol codes. |
5672 | symcode='[BCDEGRST]' |
5673 | |
5674 | # Regexp to match symbols that can be accessed directly from C. |
5675 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
5676 | |
5677 | # Transform an extracted symbol line into a proper C declaration |
5678 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5679 | |
5680 | # Transform an extracted symbol line into symbol name and symbol address |
5681 | 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'" |
5682 | |
5683 | # Define system-specific variables. |
5684 | case $host_os in |
5685 | aix*) |
5686 | symcode='[BCDT]' |
5687 | ;; |
5688 | cygwin* | mingw* | pw32*) |
5689 | symcode='[ABCDGISTW]' |
5690 | ;; |
5691 | hpux*) # Its linker distinguishes data from code symbols |
5692 | if test "$host_cpu" = ia64; then |
5693 | symcode='[ABCDEGRST]' |
5694 | fi |
5695 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5696 | 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'" |
5697 | ;; |
5698 | linux*) |
5699 | if test "$host_cpu" = ia64; then |
5700 | symcode='[ABCDGIRSTW]' |
5701 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5702 | 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'" |
5703 | fi |
5704 | ;; |
5705 | irix* | nonstopux*) |
5706 | symcode='[BCDEGRST]' |
5707 | ;; |
5708 | osf*) |
5709 | symcode='[BCDEGQRST]' |
5710 | ;; |
5711 | solaris*) |
5712 | symcode='[BDRT]' |
5713 | ;; |
5714 | sco3.2v5*) |
5715 | symcode='[DT]' |
5716 | ;; |
5717 | sysv4.2uw2*) |
5718 | symcode='[DT]' |
5719 | ;; |
5720 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
5721 | symcode='[ABDT]' |
5722 | ;; |
5723 | sysv4) |
5724 | symcode='[DFNSTU]' |
5725 | ;; |
5726 | esac |
5727 | |
5728 | # Handle CRLF in mingw tool chain |
5729 | opt_cr= |
5730 | case $build_os in |
5731 | mingw*) |
5732 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5733 | ;; |
5734 | esac |
5735 | |
5736 | # If we're using GNU nm, then use its standard symbol codes. |
5737 | case `$NM -V 2>&1` in |
5738 | *GNU* | *'with BFD'*) |
5739 | symcode='[ABCDGIRSTW]' ;; |
5740 | esac |
5741 | |
5742 | # Try without a prefix undercore, then with it. |
5743 | for ac_symprfx in "" "_"; do |
5744 | |
5745 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5746 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
5747 | |
5748 | # Write the raw and C identifiers. |
5749 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5750 | |
5751 | # Check to see that the pipe works correctly. |
5752 | pipe_works=no |
5753 | |
5754 | rm -f conftest* |
5755 | cat > conftest.$ac_ext <<EOF |
5756 | #ifdef __cplusplus |
5757 | extern "C" { |
5758 | #endif |
5759 | char nm_test_var; |
5760 | void nm_test_func(){} |
5761 | #ifdef __cplusplus |
5762 | } |
5763 | #endif |
5764 | int main(){nm_test_var='a';nm_test_func();return(0);} |
5765 | EOF |
5766 | |
5767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5768 | (eval $ac_compile) 2>&5 |
5769 | ac_status=$? |
5770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5771 | (exit $ac_status); }; then |
5772 | # Now try to grab the symbols. |
5773 | nlist=conftest.nm |
5774 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5775 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5776 | ac_status=$? |
5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5778 | (exit $ac_status); } && test -s "$nlist"; then |
5779 | # Try sorting and uniquifying the output. |
5780 | if sort "$nlist" | uniq > "$nlist"T; then |
5781 | mv -f "$nlist"T "$nlist" |
5782 | else |
5783 | rm -f "$nlist"T |
5784 | fi |
5785 | |
5786 | # Make sure that we snagged all the symbols we need. |
5787 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5788 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5789 | cat <<EOF > conftest.$ac_ext |
5790 | #ifdef __cplusplus |
5791 | extern "C" { |
5792 | #endif |
5793 | |
5794 | EOF |
5795 | # Now generate the symbol file. |
5796 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5797 | |
5798 | cat <<EOF >> conftest.$ac_ext |
5799 | #if defined (__STDC__) && __STDC__ |
5800 | # define lt_ptr_t void * |
5801 | #else |
5802 | # define lt_ptr_t char * |
5803 | # define const |
5804 | #endif |
5805 | |
5806 | /* The mapping between symbol names and symbols. */ |
5807 | const struct { |
5808 | const char *name; |
5809 | lt_ptr_t address; |
5810 | } |
5811 | lt_preloaded_symbols[] = |
5812 | { |
5813 | EOF |
5814 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5815 | cat <<\EOF >> conftest.$ac_ext |
5816 | {0, (lt_ptr_t) 0} |
5817 | }; |
5818 | |
5819 | #ifdef __cplusplus |
5820 | } |
5821 | #endif |
5822 | EOF |
5823 | # Now try linking the two files. |
5824 | mv conftest.$ac_objext conftstm.$ac_objext |
5825 | lt_save_LIBS="$LIBS" |
5826 | lt_save_CFLAGS="$CFLAGS" |
5827 | LIBS="conftstm.$ac_objext" |
5828 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5830 | (eval $ac_link) 2>&5 |
5831 | ac_status=$? |
5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5833 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5834 | pipe_works=yes |
5835 | fi |
5836 | LIBS="$lt_save_LIBS" |
5837 | CFLAGS="$lt_save_CFLAGS" |
5838 | else |
5839 | echo "cannot find nm_test_func in $nlist" >&5 |
5840 | fi |
5841 | else |
5842 | echo "cannot find nm_test_var in $nlist" >&5 |
5843 | fi |
5844 | else |
5845 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5846 | fi |
5847 | else |
5848 | echo "$progname: failed program was:" >&5 |
5849 | cat conftest.$ac_ext >&5 |
5850 | fi |
5851 | rm -f conftest* conftst* |
5852 | |
5853 | # Do not use the global_symbol_pipe unless it works. |
5854 | if test "$pipe_works" = yes; then |
5855 | break |
5856 | else |
5857 | lt_cv_sys_global_symbol_pipe= |
5858 | fi |
5859 | done |
5860 | |
5861 | fi |
5862 | |
5863 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5864 | lt_cv_sys_global_symbol_to_cdecl= |
5865 | fi |
5866 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5867 | echo "$as_me:$LINENO: result: failed" >&5 |
5868 | echo "${ECHO_T}failed" >&6 |
5869 | else |
5870 | echo "$as_me:$LINENO: result: ok" >&5 |
5871 | echo "${ECHO_T}ok" >&6 |
5872 | fi |
5873 | |
5874 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5875 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5876 | if test "${lt_cv_objdir+set}" = set; then |
5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5878 | else |
5879 | rm -f .libs 2>/dev/null |
5880 | mkdir .libs 2>/dev/null |
5881 | if test -d .libs; then |
5882 | lt_cv_objdir=.libs |
5883 | else |
5884 | # MS-DOS does not allow filenames that begin with a dot. |
5885 | lt_cv_objdir=_libs |
5886 | fi |
5887 | rmdir .libs 2>/dev/null |
5888 | fi |
5889 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5890 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5891 | objdir=$lt_cv_objdir |
5892 | |
5893 | |
5894 | |
5895 | |
5896 | |
5897 | case $host_os in |
5898 | aix3*) |
5899 | # AIX sometimes has problems with the GCC collect2 program. For some |
5900 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
5901 | # vanish in a puff of smoke. |
5902 | if test "X${COLLECT_NAMES+set}" != Xset; then |
5903 | COLLECT_NAMES= |
5904 | export COLLECT_NAMES |
5905 | fi |
5906 | ;; |
5907 | esac |
5908 | |
5909 | # Sed substitution that helps us do robust quoting. It backslashifies |
5910 | # metacharacters that are still active within double-quoted strings. |
5911 | Xsed='sed -e 1s/^X//' |
5912 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5913 | |
5914 | # Same as above, but do not quote variable references. |
5915 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
5916 | |
5917 | # Sed substitution to delay expansion of an escaped shell variable in a |
5918 | # double_quote_subst'ed string. |
5919 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5920 | |
5921 | # Sed substitution to avoid accidental globbing in evaled expressions |
5922 | no_glob_subst='s/\*/\\\*/g' |
5923 | |
5924 | # Constants: |
5925 | rm="rm -f" |
5926 | |
5927 | # Global variables: |
5928 | default_ofile=libtool |
5929 | can_build_shared=yes |
5930 | |
5931 | # All known linkers require a `.a' archive for static linking (except MSVC, |
5932 | # which needs '.lib'). |
5933 | libext=a |
5934 | ltmain="$ac_aux_dir/ltmain.sh" |
5935 | ofile="$default_ofile" |
5936 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
5937 | |
5938 | if test -n "$ac_tool_prefix"; then |
5939 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5940 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5943 | if test "${ac_cv_prog_AR+set}" = set; then |
5944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5945 | else |
5946 | if test -n "$AR"; then |
5947 | ac_cv_prog_AR="$AR" # Let the user override the test. |
5948 | else |
5949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5950 | for as_dir in $PATH |
5951 | do |
5952 | IFS=$as_save_IFS |
5953 | test -z "$as_dir" && as_dir=. |
5954 | for ac_exec_ext in '' $ac_executable_extensions; do |
5955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5956 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5958 | break 2 |
5959 | fi |
5960 | done |
5961 | done |
5962 | |
5963 | fi |
5964 | fi |
5965 | AR=$ac_cv_prog_AR |
5966 | if test -n "$AR"; then |
5967 | echo "$as_me:$LINENO: result: $AR" >&5 |
5968 | echo "${ECHO_T}$AR" >&6 |
5969 | else |
5970 | echo "$as_me:$LINENO: result: no" >&5 |
5971 | echo "${ECHO_T}no" >&6 |
5972 | fi |
5973 | |
5974 | fi |
5975 | if test -z "$ac_cv_prog_AR"; then |
5976 | ac_ct_AR=$AR |
5977 | # Extract the first word of "ar", so it can be a program name with args. |
5978 | set dummy ar; ac_word=$2 |
5979 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5981 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5983 | else |
5984 | if test -n "$ac_ct_AR"; then |
5985 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5986 | else |
5987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5988 | for as_dir in $PATH |
5989 | do |
5990 | IFS=$as_save_IFS |
5991 | test -z "$as_dir" && as_dir=. |
5992 | for ac_exec_ext in '' $ac_executable_extensions; do |
5993 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5994 | ac_cv_prog_ac_ct_AR="ar" |
5995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5996 | break 2 |
5997 | fi |
5998 | done |
5999 | done |
6000 | |
6001 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6002 | fi |
6003 | fi |
6004 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6005 | if test -n "$ac_ct_AR"; then |
6006 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6007 | echo "${ECHO_T}$ac_ct_AR" >&6 |
6008 | else |
6009 | echo "$as_me:$LINENO: result: no" >&5 |
6010 | echo "${ECHO_T}no" >&6 |
6011 | fi |
6012 | |
6013 | AR=$ac_ct_AR |
6014 | else |
6015 | AR="$ac_cv_prog_AR" |
6016 | fi |
6017 | |
6018 | if test -n "$ac_tool_prefix"; then |
6019 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6020 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6021 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6023 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6025 | else |
6026 | if test -n "$RANLIB"; then |
6027 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6028 | else |
6029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6030 | for as_dir in $PATH |
6031 | do |
6032 | IFS=$as_save_IFS |
6033 | test -z "$as_dir" && as_dir=. |
6034 | for ac_exec_ext in '' $ac_executable_extensions; do |
6035 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6036 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6038 | break 2 |
6039 | fi |
6040 | done |
6041 | done |
6042 | |
6043 | fi |
6044 | fi |
6045 | RANLIB=$ac_cv_prog_RANLIB |
6046 | if test -n "$RANLIB"; then |
6047 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6048 | echo "${ECHO_T}$RANLIB" >&6 |
6049 | else |
6050 | echo "$as_me:$LINENO: result: no" >&5 |
6051 | echo "${ECHO_T}no" >&6 |
6052 | fi |
6053 | |
6054 | fi |
6055 | if test -z "$ac_cv_prog_RANLIB"; then |
6056 | ac_ct_RANLIB=$RANLIB |
6057 | # Extract the first word of "ranlib", so it can be a program name with args. |
6058 | set dummy ranlib; ac_word=$2 |
6059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6061 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6063 | else |
6064 | if test -n "$ac_ct_RANLIB"; then |
6065 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6066 | else |
6067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6068 | for as_dir in $PATH |
6069 | do |
6070 | IFS=$as_save_IFS |
6071 | test -z "$as_dir" && as_dir=. |
6072 | for ac_exec_ext in '' $ac_executable_extensions; do |
6073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6074 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6076 | break 2 |
6077 | fi |
6078 | done |
6079 | done |
6080 | |
6081 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6082 | fi |
6083 | fi |
6084 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6085 | if test -n "$ac_ct_RANLIB"; then |
6086 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6087 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6088 | else |
6089 | echo "$as_me:$LINENO: result: no" >&5 |
6090 | echo "${ECHO_T}no" >&6 |
6091 | fi |
6092 | |
6093 | RANLIB=$ac_ct_RANLIB |
6094 | else |
6095 | RANLIB="$ac_cv_prog_RANLIB" |
6096 | fi |
6097 | |
6098 | if test -n "$ac_tool_prefix"; then |
6099 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6100 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6101 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6103 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6105 | else |
6106 | if test -n "$STRIP"; then |
6107 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6108 | else |
6109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6110 | for as_dir in $PATH |
6111 | do |
6112 | IFS=$as_save_IFS |
6113 | test -z "$as_dir" && as_dir=. |
6114 | for ac_exec_ext in '' $ac_executable_extensions; do |
6115 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6116 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6118 | break 2 |
6119 | fi |
6120 | done |
6121 | done |
6122 | |
6123 | fi |
6124 | fi |
6125 | STRIP=$ac_cv_prog_STRIP |
6126 | if test -n "$STRIP"; then |
6127 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
6128 | echo "${ECHO_T}$STRIP" >&6 |
6129 | else |
6130 | echo "$as_me:$LINENO: result: no" >&5 |
6131 | echo "${ECHO_T}no" >&6 |
6132 | fi |
6133 | |
6134 | fi |
6135 | if test -z "$ac_cv_prog_STRIP"; then |
6136 | ac_ct_STRIP=$STRIP |
6137 | # Extract the first word of "strip", so it can be a program name with args. |
6138 | set dummy strip; ac_word=$2 |
6139 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6141 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6143 | else |
6144 | if test -n "$ac_ct_STRIP"; then |
6145 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6146 | else |
6147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6148 | for as_dir in $PATH |
6149 | do |
6150 | IFS=$as_save_IFS |
6151 | test -z "$as_dir" && as_dir=. |
6152 | for ac_exec_ext in '' $ac_executable_extensions; do |
6153 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6154 | ac_cv_prog_ac_ct_STRIP="strip" |
6155 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6156 | break 2 |
6157 | fi |
6158 | done |
6159 | done |
6160 | |
6161 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6162 | fi |
6163 | fi |
6164 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6165 | if test -n "$ac_ct_STRIP"; then |
6166 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6167 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6168 | else |
6169 | echo "$as_me:$LINENO: result: no" >&5 |
6170 | echo "${ECHO_T}no" >&6 |
6171 | fi |
6172 | |
6173 | STRIP=$ac_ct_STRIP |
6174 | else |
6175 | STRIP="$ac_cv_prog_STRIP" |
6176 | fi |
6177 | |
6178 | |
6179 | old_CC="$CC" |
6180 | old_CFLAGS="$CFLAGS" |
6181 | |
6182 | # Set sane defaults for various variables |
6183 | test -z "$AR" && AR=ar |
6184 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6185 | test -z "$AS" && AS=as |
6186 | test -z "$CC" && CC=cc |
6187 | test -z "$LTCC" && LTCC=$CC |
6188 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6189 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6190 | test -z "$LD" && LD=ld |
6191 | test -z "$LN_S" && LN_S="ln -s" |
6192 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6193 | test -z "$NM" && NM=nm |
6194 | test -z "$SED" && SED=sed |
6195 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6196 | test -z "$RANLIB" && RANLIB=: |
6197 | test -z "$STRIP" && STRIP=: |
6198 | test -z "$ac_objext" && ac_objext=o |
6199 | |
6200 | # Determine commands to create old-style static archives. |
6201 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6202 | old_postinstall_cmds='chmod 644 $oldlib' |
6203 | old_postuninstall_cmds= |
6204 | |
6205 | if test -n "$RANLIB"; then |
6206 | case $host_os in |
6207 | openbsd*) |
6208 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6209 | ;; |
6210 | *) |
6211 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6212 | ;; |
6213 | esac |
6214 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6215 | fi |
6216 | |
6217 | for cc_temp in $compiler""; do |
6218 | case $cc_temp in |
6219 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6220 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6221 | \-*) ;; |
6222 | *) break;; |
6223 | esac |
6224 | done |
6225 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6226 | |
6227 | |
6228 | # Only perform the check for file, if the check method requires it |
6229 | case $deplibs_check_method in |
6230 | file_magic*) |
6231 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6232 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6233 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6234 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6236 | else |
6237 | case $MAGIC_CMD in |
6238 | [\\/*] | ?:[\\/]*) |
6239 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6240 | ;; |
6241 | *) |
6242 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6243 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6244 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6245 | for ac_dir in $ac_dummy; do |
6246 | IFS="$lt_save_ifs" |
6247 | test -z "$ac_dir" && ac_dir=. |
6248 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6249 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6250 | if test -n "$file_magic_test_file"; then |
6251 | case $deplibs_check_method in |
6252 | "file_magic "*) |
6253 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6254 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6255 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6256 | $EGREP "$file_magic_regex" > /dev/null; then |
6257 | : |
6258 | else |
6259 | cat <<EOF 1>&2 |
6260 | |
6261 | *** Warning: the command libtool uses to detect shared libraries, |
6262 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6263 | *** The result is that libtool may fail to recognize shared libraries |
6264 | *** as such. This will affect the creation of libtool libraries that |
6265 | *** depend on shared libraries, but programs linked with such libtool |
6266 | *** libraries will work regardless of this problem. Nevertheless, you |
6267 | *** may want to report the problem to your system manager and/or to |
6268 | *** bug-libtool@gnu.org |
6269 | |
6270 | EOF |
6271 | fi ;; |
6272 | esac |
6273 | fi |
6274 | break |
6275 | fi |
6276 | done |
6277 | IFS="$lt_save_ifs" |
6278 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6279 | ;; |
6280 | esac |
6281 | fi |
6282 | |
6283 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6284 | if test -n "$MAGIC_CMD"; then |
6285 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6286 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6287 | else |
6288 | echo "$as_me:$LINENO: result: no" >&5 |
6289 | echo "${ECHO_T}no" >&6 |
6290 | fi |
6291 | |
6292 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6293 | if test -n "$ac_tool_prefix"; then |
6294 | echo "$as_me:$LINENO: checking for file" >&5 |
6295 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6296 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6298 | else |
6299 | case $MAGIC_CMD in |
6300 | [\\/*] | ?:[\\/]*) |
6301 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6302 | ;; |
6303 | *) |
6304 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6305 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6306 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6307 | for ac_dir in $ac_dummy; do |
6308 | IFS="$lt_save_ifs" |
6309 | test -z "$ac_dir" && ac_dir=. |
6310 | if test -f $ac_dir/file; then |
6311 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6312 | if test -n "$file_magic_test_file"; then |
6313 | case $deplibs_check_method in |
6314 | "file_magic "*) |
6315 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6316 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6317 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6318 | $EGREP "$file_magic_regex" > /dev/null; then |
6319 | : |
6320 | else |
6321 | cat <<EOF 1>&2 |
6322 | |
6323 | *** Warning: the command libtool uses to detect shared libraries, |
6324 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6325 | *** The result is that libtool may fail to recognize shared libraries |
6326 | *** as such. This will affect the creation of libtool libraries that |
6327 | *** depend on shared libraries, but programs linked with such libtool |
6328 | *** libraries will work regardless of this problem. Nevertheless, you |
6329 | *** may want to report the problem to your system manager and/or to |
6330 | *** bug-libtool@gnu.org |
6331 | |
6332 | EOF |
6333 | fi ;; |
6334 | esac |
6335 | fi |
6336 | break |
6337 | fi |
6338 | done |
6339 | IFS="$lt_save_ifs" |
6340 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6341 | ;; |
6342 | esac |
6343 | fi |
6344 | |
6345 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6346 | if test -n "$MAGIC_CMD"; then |
6347 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6348 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
6349 | else |
6350 | echo "$as_me:$LINENO: result: no" >&5 |
6351 | echo "${ECHO_T}no" >&6 |
6352 | fi |
6353 | |
6354 | else |
6355 | MAGIC_CMD=: |
6356 | fi |
6357 | fi |
6358 | |
6359 | fi |
6360 | ;; |
6361 | esac |
6362 | |
6363 | enable_dlopen=no |
6364 | enable_win32_dll=no |
6365 | |
6366 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6367 | if test "${enable_libtool_lock+set}" = set; then |
6368 | enableval="$enable_libtool_lock" |
6369 | |
6370 | fi; |
6371 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6372 | |
6373 | |
6374 | # Check whether --with-pic or --without-pic was given. |
6375 | if test "${with_pic+set}" = set; then |
6376 | withval="$with_pic" |
6377 | pic_mode="$withval" |
6378 | else |
6379 | pic_mode=default |
6380 | fi; |
6381 | test -z "$pic_mode" && pic_mode=default |
6382 | |
6383 | # Use C for the default configuration in the libtool script |
6384 | tagname= |
6385 | lt_save_CC="$CC" |
6386 | ac_ext=c |
6387 | ac_cpp='$CPP $CPPFLAGS' |
6388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6391 | |
6392 | |
6393 | # Source file extension for C test sources. |
6394 | ac_ext=c |
6395 | |
6396 | # Object file extension for compiled C test sources. |
6397 | objext=o |
6398 | objext=$objext |
6399 | |
6400 | # Code to be used in simple compile tests |
6401 | lt_simple_compile_test_code="int some_variable = 0;\n" |
6402 | |
6403 | # Code to be used in simple link tests |
6404 | lt_simple_link_test_code='int main(){return(0);}\n' |
6405 | |
6406 | |
6407 | # If no C compiler was specified, use CC. |
6408 | LTCC=${LTCC-"$CC"} |
6409 | |
6410 | # If no C compiler flags were specified, use CFLAGS. |
6411 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6412 | |
6413 | # Allow CC to be a program name with arguments. |
6414 | compiler=$CC |
6415 | |
6416 | |
6417 | # save warnings/boilerplate of simple test code |
6418 | ac_outfile=conftest.$ac_objext |
6419 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6420 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6421 | _lt_compiler_boilerplate=`cat conftest.err` |
6422 | $rm conftest* |
6423 | |
6424 | ac_outfile=conftest.$ac_objext |
6425 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6426 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6427 | _lt_linker_boilerplate=`cat conftest.err` |
6428 | $rm conftest* |
6429 | |
6430 | |
6431 | |
6432 | lt_prog_compiler_no_builtin_flag= |
6433 | |
6434 | if test "$GCC" = yes; then |
6435 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
6436 | |
6437 | |
6438 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6439 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6440 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6442 | else |
6443 | lt_cv_prog_compiler_rtti_exceptions=no |
6444 | ac_outfile=conftest.$ac_objext |
6445 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6446 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
6447 | # Insert the option either (1) after the last *FLAGS variable, or |
6448 | # (2) before a word containing "conftest.", or (3) at the end. |
6449 | # Note that $ac_compile itself does not contain backslashes and begins |
6450 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6451 | # The option is referenced via a variable to avoid confusing sed. |
6452 | lt_compile=`echo "$ac_compile" | $SED \ |
6453 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6454 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6455 | -e 's:$: $lt_compiler_flag:'` |
6456 | (eval echo "\"\$as_me:6456: $lt_compile\"" >&5) |
6457 | (eval "$lt_compile" 2>conftest.err) |
6458 | ac_status=$? |
6459 | cat conftest.err >&5 |
6460 | echo "$as_me:6460: \$? = $ac_status" >&5 |
6461 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6462 | # The compiler can only warn and ignore the option if not recognized |
6463 | # So say no if there are warnings other than the usual output. |
6464 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6465 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6466 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6467 | lt_cv_prog_compiler_rtti_exceptions=yes |
6468 | fi |
6469 | fi |
6470 | $rm conftest* |
6471 | |
6472 | fi |
6473 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6474 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6475 | |
6476 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6477 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6478 | else |
6479 | : |
6480 | fi |
6481 | |
6482 | fi |
6483 | |
6484 | lt_prog_compiler_wl= |
6485 | lt_prog_compiler_pic= |
6486 | lt_prog_compiler_static= |
6487 | |
6488 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6489 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6490 | |
6491 | if test "$GCC" = yes; then |
6492 | lt_prog_compiler_wl='-Wl,' |
6493 | lt_prog_compiler_static='-static' |
6494 | |
6495 | case $host_os in |
6496 | aix*) |
6497 | # All AIX code is PIC. |
6498 | if test "$host_cpu" = ia64; then |
6499 | # AIX 5 now supports IA64 processor |
6500 | lt_prog_compiler_static='-Bstatic' |
6501 | fi |
6502 | ;; |
6503 | |
6504 | amigaos*) |
6505 | # FIXME: we need at least 68020 code to build shared libraries, but |
6506 | # adding the `-m68020' flag to GCC prevents building anything better, |
6507 | # like `-m68040'. |
6508 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6509 | ;; |
6510 | |
6511 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6512 | # PIC is the default for these OSes. |
6513 | ;; |
6514 | |
6515 | mingw* | pw32* | os2*) |
6516 | # This hack is so that the source file can tell whether it is being |
6517 | # built for inclusion in a dll (and should export symbols for example). |
6518 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6519 | ;; |
6520 | |
6521 | darwin* | rhapsody*) |
6522 | # PIC is the default on this platform |
6523 | # Common symbols not allowed in MH_DYLIB files |
6524 | lt_prog_compiler_pic='-fno-common' |
6525 | ;; |
6526 | |
6527 | interix3*) |
6528 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
6529 | # Instead, we relocate shared libraries at runtime. |
6530 | ;; |
6531 | |
6532 | msdosdjgpp*) |
6533 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6534 | # on systems that don't support them. |
6535 | lt_prog_compiler_can_build_shared=no |
6536 | enable_shared=no |
6537 | ;; |
6538 | |
6539 | sysv4*MP*) |
6540 | if test -d /usr/nec; then |
6541 | lt_prog_compiler_pic=-Kconform_pic |
6542 | fi |
6543 | ;; |
6544 | |
6545 | hpux*) |
6546 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6547 | # not for PA HP-UX. |
6548 | case $host_cpu in |
6549 | hppa*64*|ia64*) |
6550 | # +Z the default |
6551 | ;; |
6552 | *) |
6553 | lt_prog_compiler_pic='-fPIC' |
6554 | ;; |
6555 | esac |
6556 | ;; |
6557 | |
6558 | *) |
6559 | lt_prog_compiler_pic='-fPIC' |
6560 | ;; |
6561 | esac |
6562 | else |
6563 | # PORTME Check for flag to pass linker flags through the system compiler. |
6564 | case $host_os in |
6565 | aix*) |
6566 | lt_prog_compiler_wl='-Wl,' |
6567 | if test "$host_cpu" = ia64; then |
6568 | # AIX 5 now supports IA64 processor |
6569 | lt_prog_compiler_static='-Bstatic' |
6570 | else |
6571 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6572 | fi |
6573 | ;; |
6574 | darwin*) |
6575 | # PIC is the default on this platform |
6576 | # Common symbols not allowed in MH_DYLIB files |
6577 | case $cc_basename in |
6578 | xlc*) |
6579 | lt_prog_compiler_pic='-qnocommon' |
6580 | lt_prog_compiler_wl='-Wl,' |
6581 | ;; |
6582 | esac |
6583 | ;; |
6584 | |
6585 | mingw* | pw32* | os2*) |
6586 | # This hack is so that the source file can tell whether it is being |
6587 | # built for inclusion in a dll (and should export symbols for example). |
6588 | lt_prog_compiler_pic='-DDLL_EXPORT' |
6589 | ;; |
6590 | |
6591 | hpux9* | hpux10* | hpux11*) |
6592 | lt_prog_compiler_wl='-Wl,' |
6593 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6594 | # not for PA HP-UX. |
6595 | case $host_cpu in |
6596 | hppa*64*|ia64*) |
6597 | # +Z the default |
6598 | ;; |
6599 | *) |
6600 | lt_prog_compiler_pic='+Z' |
6601 | ;; |
6602 | esac |
6603 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
6604 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
6605 | ;; |
6606 | |
6607 | irix5* | irix6* | nonstopux*) |
6608 | lt_prog_compiler_wl='-Wl,' |
6609 | # PIC (with -KPIC) is the default. |
6610 | lt_prog_compiler_static='-non_shared' |
6611 | ;; |
6612 | |
6613 | newsos6) |
6614 | lt_prog_compiler_pic='-KPIC' |
6615 | lt_prog_compiler_static='-Bstatic' |
6616 | ;; |
6617 | |
6618 | linux*) |
6619 | case $cc_basename in |
6620 | icc* | ecc*) |
6621 | lt_prog_compiler_wl='-Wl,' |
6622 | lt_prog_compiler_pic='-KPIC' |
6623 | lt_prog_compiler_static='-static' |
6624 | ;; |
6625 | pgcc* | pgf77* | pgf90* | pgf95*) |
6626 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6627 | # which looks to be a dead project) |
6628 | lt_prog_compiler_wl='-Wl,' |
6629 | lt_prog_compiler_pic='-fpic' |
6630 | lt_prog_compiler_static='-Bstatic' |
6631 | ;; |
6632 | ccc*) |
6633 | lt_prog_compiler_wl='-Wl,' |
6634 | # All Alpha code is PIC. |
6635 | lt_prog_compiler_static='-non_shared' |
6636 | ;; |
6637 | esac |
6638 | ;; |
6639 | |
6640 | osf3* | osf4* | osf5*) |
6641 | lt_prog_compiler_wl='-Wl,' |
6642 | # All OSF/1 code is PIC. |
6643 | lt_prog_compiler_static='-non_shared' |
6644 | ;; |
6645 | |
6646 | solaris*) |
6647 | lt_prog_compiler_pic='-KPIC' |
6648 | lt_prog_compiler_static='-Bstatic' |
6649 | case $cc_basename in |
6650 | f77* | f90* | f95*) |
6651 | lt_prog_compiler_wl='-Qoption ld ';; |
6652 | *) |
6653 | lt_prog_compiler_wl='-Wl,';; |
6654 | esac |
6655 | ;; |
6656 | |
6657 | sunos4*) |
6658 | lt_prog_compiler_wl='-Qoption ld ' |
6659 | lt_prog_compiler_pic='-PIC' |
6660 | lt_prog_compiler_static='-Bstatic' |
6661 | ;; |
6662 | |
6663 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6664 | lt_prog_compiler_wl='-Wl,' |
6665 | lt_prog_compiler_pic='-KPIC' |
6666 | lt_prog_compiler_static='-Bstatic' |
6667 | ;; |
6668 | |
6669 | sysv4*MP*) |
6670 | if test -d /usr/nec ;then |
6671 | lt_prog_compiler_pic='-Kconform_pic' |
6672 | lt_prog_compiler_static='-Bstatic' |
6673 | fi |
6674 | ;; |
6675 | |
6676 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
6677 | lt_prog_compiler_wl='-Wl,' |
6678 | lt_prog_compiler_pic='-KPIC' |
6679 | lt_prog_compiler_static='-Bstatic' |
6680 | ;; |
6681 | |
6682 | unicos*) |
6683 | lt_prog_compiler_wl='-Wl,' |
6684 | lt_prog_compiler_can_build_shared=no |
6685 | ;; |
6686 | |
6687 | uts4*) |
6688 | lt_prog_compiler_pic='-pic' |
6689 | lt_prog_compiler_static='-Bstatic' |
6690 | ;; |
6691 | |
6692 | *) |
6693 | lt_prog_compiler_can_build_shared=no |
6694 | ;; |
6695 | esac |
6696 | fi |
6697 | |
6698 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6699 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6700 | |
6701 | # |
6702 | # Check to make sure the PIC flag actually works. |
6703 | # |
6704 | if test -n "$lt_prog_compiler_pic"; then |
6705 | |
6706 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6707 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6708 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6710 | else |
6711 | lt_prog_compiler_pic_works=no |
6712 | ac_outfile=conftest.$ac_objext |
6713 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6714 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6715 | # Insert the option either (1) after the last *FLAGS variable, or |
6716 | # (2) before a word containing "conftest.", or (3) at the end. |
6717 | # Note that $ac_compile itself does not contain backslashes and begins |
6718 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6719 | # The option is referenced via a variable to avoid confusing sed. |
6720 | lt_compile=`echo "$ac_compile" | $SED \ |
6721 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6722 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6723 | -e 's:$: $lt_compiler_flag:'` |
6724 | (eval echo "\"\$as_me:6724: $lt_compile\"" >&5) |
6725 | (eval "$lt_compile" 2>conftest.err) |
6726 | ac_status=$? |
6727 | cat conftest.err >&5 |
6728 | echo "$as_me:6728: \$? = $ac_status" >&5 |
6729 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6730 | # The compiler can only warn and ignore the option if not recognized |
6731 | # So say no if there are warnings other than the usual output. |
6732 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6733 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6734 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6735 | lt_prog_compiler_pic_works=yes |
6736 | fi |
6737 | fi |
6738 | $rm conftest* |
6739 | |
6740 | fi |
6741 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6742 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6743 | |
6744 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
6745 | case $lt_prog_compiler_pic in |
6746 | "" | " "*) ;; |
6747 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6748 | esac |
6749 | else |
6750 | lt_prog_compiler_pic= |
6751 | lt_prog_compiler_can_build_shared=no |
6752 | fi |
6753 | |
6754 | fi |
6755 | case $host_os in |
6756 | # For platforms which do not support PIC, -DPIC is meaningless: |
6757 | *djgpp*) |
6758 | lt_prog_compiler_pic= |
6759 | ;; |
6760 | *) |
6761 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6762 | ;; |
6763 | esac |
6764 | |
6765 | # |
6766 | # Check to make sure the static flag actually works. |
6767 | # |
6768 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
6769 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
6770 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
6771 | if test "${lt_prog_compiler_static_works+set}" = set; then |
6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6773 | else |
6774 | lt_prog_compiler_static_works=no |
6775 | save_LDFLAGS="$LDFLAGS" |
6776 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
6777 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6778 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6779 | # The linker can only warn and ignore the option if not recognized |
6780 | # So say no if there are warnings |
6781 | if test -s conftest.err; then |
6782 | # Append any errors to the config.log. |
6783 | cat conftest.err 1>&5 |
6784 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
6785 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6786 | if diff conftest.exp conftest.er2 >/dev/null; then |
6787 | lt_prog_compiler_static_works=yes |
6788 | fi |
6789 | else |
6790 | lt_prog_compiler_static_works=yes |
6791 | fi |
6792 | fi |
6793 | $rm conftest* |
6794 | LDFLAGS="$save_LDFLAGS" |
6795 | |
6796 | fi |
6797 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6798 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
6799 | |
6800 | if test x"$lt_prog_compiler_static_works" = xyes; then |
6801 | : |
6802 | else |
6803 | lt_prog_compiler_static= |
6804 | fi |
6805 | |
6806 | |
6807 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6808 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6809 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6811 | else |
6812 | lt_cv_prog_compiler_c_o=no |
6813 | $rm -r conftest 2>/dev/null |
6814 | mkdir conftest |
6815 | cd conftest |
6816 | mkdir out |
6817 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6818 | |
6819 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
6820 | # Insert the option either (1) after the last *FLAGS variable, or |
6821 | # (2) before a word containing "conftest.", or (3) at the end. |
6822 | # Note that $ac_compile itself does not contain backslashes and begins |
6823 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6824 | lt_compile=`echo "$ac_compile" | $SED \ |
6825 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6826 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6827 | -e 's:$: $lt_compiler_flag:'` |
6828 | (eval echo "\"\$as_me:6828: $lt_compile\"" >&5) |
6829 | (eval "$lt_compile" 2>out/conftest.err) |
6830 | ac_status=$? |
6831 | cat out/conftest.err >&5 |
6832 | echo "$as_me:6832: \$? = $ac_status" >&5 |
6833 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6834 | then |
6835 | # The compiler can only warn and ignore the option if not recognized |
6836 | # So say no if there are warnings |
6837 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
6838 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
6839 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
6840 | lt_cv_prog_compiler_c_o=yes |
6841 | fi |
6842 | fi |
6843 | chmod u+w . 2>&5 |
6844 | $rm conftest* |
6845 | # SGI C++ compiler will create directory out/ii_files/ for |
6846 | # template instantiation |
6847 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6848 | $rm out/* && rmdir out |
6849 | cd .. |
6850 | rmdir conftest |
6851 | $rm conftest* |
6852 | |
6853 | fi |
6854 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6855 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6856 | |
6857 | |
6858 | hard_links="nottested" |
6859 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6860 | # do not overwrite the value of need_locks provided by the user |
6861 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6862 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6863 | hard_links=yes |
6864 | $rm conftest* |
6865 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6866 | touch conftest.a |
6867 | ln conftest.a conftest.b 2>&5 || hard_links=no |
6868 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6869 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
6870 | echo "${ECHO_T}$hard_links" >&6 |
6871 | if test "$hard_links" = no; then |
6872 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6873 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6874 | need_locks=warn |
6875 | fi |
6876 | else |
6877 | need_locks=no |
6878 | fi |
6879 | |
6880 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6881 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6882 | |
6883 | runpath_var= |
6884 | allow_undefined_flag= |
6885 | enable_shared_with_static_runtimes=no |
6886 | archive_cmds= |
6887 | archive_expsym_cmds= |
6888 | old_archive_From_new_cmds= |
6889 | old_archive_from_expsyms_cmds= |
6890 | export_dynamic_flag_spec= |
6891 | whole_archive_flag_spec= |
6892 | thread_safe_flag_spec= |
6893 | hardcode_libdir_flag_spec= |
6894 | hardcode_libdir_flag_spec_ld= |
6895 | hardcode_libdir_separator= |
6896 | hardcode_direct=no |
6897 | hardcode_minus_L=no |
6898 | hardcode_shlibpath_var=unsupported |
6899 | link_all_deplibs=unknown |
6900 | hardcode_automatic=no |
6901 | module_cmds= |
6902 | module_expsym_cmds= |
6903 | always_export_symbols=no |
6904 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6905 | # include_expsyms should be a list of space-separated symbols to be *always* |
6906 | # included in the symbol list |
6907 | include_expsyms= |
6908 | # exclude_expsyms can be an extended regexp of symbols to exclude |
6909 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6910 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6911 | # as well as any symbol that contains `d'. |
6912 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6913 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6914 | # platforms (ab)use it in PIC code, but their linkers get confused if |
6915 | # the symbol is explicitly referenced. Since portable code cannot |
6916 | # rely on this symbol name, it's probably fine to never include it in |
6917 | # preloaded symbol tables. |
6918 | extract_expsyms_cmds= |
6919 | # Just being paranoid about ensuring that cc_basename is set. |
6920 | for cc_temp in $compiler""; do |
6921 | case $cc_temp in |
6922 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6923 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6924 | \-*) ;; |
6925 | *) break;; |
6926 | esac |
6927 | done |
6928 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6929 | |
6930 | case $host_os in |
6931 | cygwin* | mingw* | pw32*) |
6932 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
6933 | # When not using gcc, we currently assume that we are using |
6934 | # Microsoft Visual C++. |
6935 | if test "$GCC" != yes; then |
6936 | with_gnu_ld=no |
6937 | fi |
6938 | ;; |
6939 | interix*) |
6940 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
6941 | with_gnu_ld=yes |
6942 | ;; |
6943 | openbsd*) |
6944 | with_gnu_ld=no |
6945 | ;; |
6946 | esac |
6947 | |
6948 | ld_shlibs=yes |
6949 | if test "$with_gnu_ld" = yes; then |
6950 | # If archive_cmds runs LD, not CC, wlarc should be empty |
6951 | wlarc='${wl}' |
6952 | |
6953 | # Set some defaults for GNU ld with shared library support. These |
6954 | # are reset later if shared libraries are not supported. Putting them |
6955 | # here allows them to be overridden if necessary. |
6956 | runpath_var=LD_RUN_PATH |
6957 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6958 | export_dynamic_flag_spec='${wl}--export-dynamic' |
6959 | # ancient GNU ld didn't support --whole-archive et. al. |
6960 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
6961 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6962 | else |
6963 | whole_archive_flag_spec= |
6964 | fi |
6965 | supports_anon_versioning=no |
6966 | case `$LD -v 2>/dev/null` in |
6967 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
6968 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
6969 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
6970 | *\ 2.11.*) ;; # other 2.11 versions |
6971 | *) supports_anon_versioning=yes ;; |
6972 | esac |
6973 | |
6974 | # See if GNU ld supports shared libraries. |
6975 | case $host_os in |
6976 | aix3* | aix4* | aix5*) |
6977 | # On AIX/PPC, the GNU linker is very broken |
6978 | if test "$host_cpu" != ia64; then |
6979 | ld_shlibs=no |
6980 | cat <<EOF 1>&2 |
6981 | |
6982 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6983 | *** to be unable to reliably create shared libraries on AIX. |
6984 | *** Therefore, libtool is disabling shared libraries support. If you |
6985 | *** really care for shared libraries, you may want to modify your PATH |
6986 | *** so that a non-GNU linker is found, and then restart. |
6987 | |
6988 | EOF |
6989 | fi |
6990 | ;; |
6991 | |
6992 | amigaos*) |
6993 | 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)' |
6994 | hardcode_libdir_flag_spec='-L$libdir' |
6995 | hardcode_minus_L=yes |
6996 | |
6997 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6998 | # that the semantics of dynamic libraries on AmigaOS, at least up |
6999 | # to version 4, is to share data among multiple programs linked |
7000 | # with the same dynamic library. Since this doesn't match the |
7001 | # behavior of shared libraries on other platforms, we can't use |
7002 | # them. |
7003 | ld_shlibs=no |
7004 | ;; |
7005 | |
7006 | beos*) |
7007 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7008 | allow_undefined_flag=unsupported |
7009 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7010 | # support --undefined. This deserves some investigation. FIXME |
7011 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7012 | else |
7013 | ld_shlibs=no |
7014 | fi |
7015 | ;; |
7016 | |
7017 | cygwin* | mingw* | pw32*) |
7018 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7019 | # as there is no search path for DLLs. |
7020 | hardcode_libdir_flag_spec='-L$libdir' |
7021 | allow_undefined_flag=unsupported |
7022 | always_export_symbols=no |
7023 | enable_shared_with_static_runtimes=yes |
7024 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7025 | |
7026 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7027 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7028 | # If the export-symbols file already is a .def file (1st line |
7029 | # is EXPORTS), use it as is; otherwise, prepend... |
7030 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7031 | cp $export_symbols $output_objdir/$soname.def; |
7032 | else |
7033 | echo EXPORTS > $output_objdir/$soname.def; |
7034 | cat $export_symbols >> $output_objdir/$soname.def; |
7035 | fi~ |
7036 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7037 | else |
7038 | ld_shlibs=no |
7039 | fi |
7040 | ;; |
7041 | |
7042 | interix3*) |
7043 | hardcode_direct=no |
7044 | hardcode_shlibpath_var=no |
7045 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7046 | export_dynamic_flag_spec='${wl}-E' |
7047 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7048 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7049 | # default) and relocated if they conflict, which is a slow very memory |
7050 | # consuming and fragmenting process. To avoid this, we pick a random, |
7051 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7052 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7053 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7054 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7055 | ;; |
7056 | |
7057 | linux*) |
7058 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7059 | tmp_addflag= |
7060 | case $cc_basename,$host_cpu in |
7061 | pgcc*) # Portland Group C compiler |
7062 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7063 | tmp_addflag=' $pic_flag' |
7064 | ;; |
7065 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7066 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7067 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7068 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7069 | tmp_addflag=' -i_dynamic' ;; |
7070 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7071 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7072 | ifc* | ifort*) # Intel Fortran compiler |
7073 | tmp_addflag=' -nofor_main' ;; |
7074 | esac |
7075 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7076 | |
7077 | if test $supports_anon_versioning = yes; then |
7078 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7079 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7080 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7081 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7082 | fi |
7083 | else |
7084 | ld_shlibs=no |
7085 | fi |
7086 | ;; |
7087 | |
7088 | netbsd*) |
7089 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7090 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7091 | wlarc= |
7092 | else |
7093 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7094 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7095 | fi |
7096 | ;; |
7097 | |
7098 | solaris*) |
7099 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7100 | ld_shlibs=no |
7101 | cat <<EOF 1>&2 |
7102 | |
7103 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7104 | *** create shared libraries on Solaris systems. Therefore, libtool |
7105 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7106 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7107 | *** your PATH or compiler configuration so that the native linker is |
7108 | *** used, and then restart. |
7109 | |
7110 | EOF |
7111 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7112 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7113 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7114 | else |
7115 | ld_shlibs=no |
7116 | fi |
7117 | ;; |
7118 | |
7119 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7120 | case `$LD -v 2>&1` in |
7121 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7122 | ld_shlibs=no |
7123 | cat <<_LT_EOF 1>&2 |
7124 | |
7125 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7126 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7127 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7128 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7129 | *** your PATH or compiler configuration so that the native linker is |
7130 | *** used, and then restart. |
7131 | |
7132 | _LT_EOF |
7133 | ;; |
7134 | *) |
7135 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7136 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7137 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7138 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7139 | else |
7140 | ld_shlibs=no |
7141 | fi |
7142 | ;; |
7143 | esac |
7144 | ;; |
7145 | |
7146 | sunos4*) |
7147 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7148 | wlarc= |
7149 | hardcode_direct=yes |
7150 | hardcode_shlibpath_var=no |
7151 | ;; |
7152 | |
7153 | *) |
7154 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7155 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7156 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7157 | else |
7158 | ld_shlibs=no |
7159 | fi |
7160 | ;; |
7161 | esac |
7162 | |
7163 | if test "$ld_shlibs" = no; then |
7164 | runpath_var= |
7165 | hardcode_libdir_flag_spec= |
7166 | export_dynamic_flag_spec= |
7167 | whole_archive_flag_spec= |
7168 | fi |
7169 | else |
7170 | # PORTME fill in a description of your system's linker (not GNU ld) |
7171 | case $host_os in |
7172 | aix3*) |
7173 | allow_undefined_flag=unsupported |
7174 | always_export_symbols=yes |
7175 | 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' |
7176 | # Note: this linker hardcodes the directories in LIBPATH if there |
7177 | # are no directories specified by -L. |
7178 | hardcode_minus_L=yes |
7179 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7180 | # Neither direct hardcoding nor static linking is supported with a |
7181 | # broken collect2. |
7182 | hardcode_direct=unsupported |
7183 | fi |
7184 | ;; |
7185 | |
7186 | aix4* | aix5*) |
7187 | if test "$host_cpu" = ia64; then |
7188 | # On IA64, the linker does run time linking by default, so we don't |
7189 | # have to do anything special. |
7190 | aix_use_runtimelinking=no |
7191 | exp_sym_flag='-Bexport' |
7192 | no_entry_flag="" |
7193 | else |
7194 | # If we're using GNU nm, then we don't want the "-C" option. |
7195 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7196 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7197 | 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' |
7198 | else |
7199 | 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' |
7200 | fi |
7201 | aix_use_runtimelinking=no |
7202 | |
7203 | # Test if we are trying to use run time linking or normal |
7204 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7205 | # need to do runtime linking. |
7206 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7207 | for ld_flag in $LDFLAGS; do |
7208 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7209 | aix_use_runtimelinking=yes |
7210 | break |
7211 | fi |
7212 | done |
7213 | ;; |
7214 | esac |
7215 | |
7216 | exp_sym_flag='-bexport' |
7217 | no_entry_flag='-bnoentry' |
7218 | fi |
7219 | |
7220 | # When large executables or shared objects are built, AIX ld can |
7221 | # have problems creating the table of contents. If linking a library |
7222 | # or program results in "error TOC overflow" add -mminimal-toc to |
7223 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7224 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7225 | |
7226 | archive_cmds='' |
7227 | hardcode_direct=yes |
7228 | hardcode_libdir_separator=':' |
7229 | link_all_deplibs=yes |
7230 | |
7231 | if test "$GCC" = yes; then |
7232 | case $host_os in aix4.[012]|aix4.[012].*) |
7233 | # We only want to do this on AIX 4.2 and lower, the check |
7234 | # below for broken collect2 doesn't work under 4.3+ |
7235 | collect2name=`${CC} -print-prog-name=collect2` |
7236 | if test -f "$collect2name" && \ |
7237 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7238 | then |
7239 | # We have reworked collect2 |
7240 | hardcode_direct=yes |
7241 | else |
7242 | # We have old collect2 |
7243 | hardcode_direct=unsupported |
7244 | # It fails to find uninstalled libraries when the uninstalled |
7245 | # path is not listed in the libpath. Setting hardcode_minus_L |
7246 | # to unsupported forces relinking |
7247 | hardcode_minus_L=yes |
7248 | hardcode_libdir_flag_spec='-L$libdir' |
7249 | hardcode_libdir_separator= |
7250 | fi |
7251 | ;; |
7252 | esac |
7253 | shared_flag='-shared' |
7254 | if test "$aix_use_runtimelinking" = yes; then |
7255 | shared_flag="$shared_flag "'${wl}-G' |
7256 | fi |
7257 | else |
7258 | # not using gcc |
7259 | if test "$host_cpu" = ia64; then |
7260 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7261 | # chokes on -Wl,-G. The following line is correct: |
7262 | shared_flag='-G' |
7263 | else |
7264 | if test "$aix_use_runtimelinking" = yes; then |
7265 | shared_flag='${wl}-G' |
7266 | else |
7267 | shared_flag='${wl}-bM:SRE' |
7268 | fi |
7269 | fi |
7270 | fi |
7271 | |
7272 | # It seems that -bexpall does not export symbols beginning with |
7273 | # underscore (_), so it is better to generate a list of symbols to export. |
7274 | always_export_symbols=yes |
7275 | if test "$aix_use_runtimelinking" = yes; then |
7276 | # Warning - without using the other runtime loading flags (-brtl), |
7277 | # -berok will link without error, but may produce a broken library. |
7278 | allow_undefined_flag='-berok' |
7279 | # Determine the default libpath from the value encoded in an empty executable. |
7280 | cat >conftest.$ac_ext <<_ACEOF |
7281 | /* confdefs.h. */ |
7282 | _ACEOF |
7283 | cat confdefs.h >>conftest.$ac_ext |
7284 | cat >>conftest.$ac_ext <<_ACEOF |
7285 | /* end confdefs.h. */ |
7286 | |
7287 | int |
7288 | main () |
7289 | { |
7290 | |
7291 | ; |
7292 | return 0; |
7293 | } |
7294 | _ACEOF |
7295 | rm -f conftest.$ac_objext conftest$ac_exeext |
7296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7297 | (eval $ac_link) 2>conftest.er1 |
7298 | ac_status=$? |
7299 | grep -v '^ *+' conftest.er1 >conftest.err |
7300 | rm -f conftest.er1 |
7301 | cat conftest.err >&5 |
7302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7303 | (exit $ac_status); } && |
7304 | { ac_try='test -z "$ac_c_werror_flag" |
7305 | || test ! -s conftest.err' |
7306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7307 | (eval $ac_try) 2>&5 |
7308 | ac_status=$? |
7309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7310 | (exit $ac_status); }; } && |
7311 | { ac_try='test -s conftest$ac_exeext' |
7312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7313 | (eval $ac_try) 2>&5 |
7314 | ac_status=$? |
7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7316 | (exit $ac_status); }; }; then |
7317 | |
7318 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7319 | }'` |
7320 | # Check for a 64-bit object if we didn't find anything. |
7321 | 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; } |
7322 | }'`; fi |
7323 | else |
7324 | echo "$as_me: failed program was:" >&5 |
7325 | sed 's/^/| /' conftest.$ac_ext >&5 |
7326 | |
7327 | fi |
7328 | rm -f conftest.err conftest.$ac_objext \ |
7329 | conftest$ac_exeext conftest.$ac_ext |
7330 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7331 | |
7332 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7333 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7334 | else |
7335 | if test "$host_cpu" = ia64; then |
7336 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7337 | allow_undefined_flag="-z nodefs" |
7338 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
7339 | else |
7340 | # Determine the default libpath from the value encoded in an empty executable. |
7341 | cat >conftest.$ac_ext <<_ACEOF |
7342 | /* confdefs.h. */ |
7343 | _ACEOF |
7344 | cat confdefs.h >>conftest.$ac_ext |
7345 | cat >>conftest.$ac_ext <<_ACEOF |
7346 | /* end confdefs.h. */ |
7347 | |
7348 | int |
7349 | main () |
7350 | { |
7351 | |
7352 | ; |
7353 | return 0; |
7354 | } |
7355 | _ACEOF |
7356 | rm -f conftest.$ac_objext conftest$ac_exeext |
7357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7358 | (eval $ac_link) 2>conftest.er1 |
7359 | ac_status=$? |
7360 | grep -v '^ *+' conftest.er1 >conftest.err |
7361 | rm -f conftest.er1 |
7362 | cat conftest.err >&5 |
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7364 | (exit $ac_status); } && |
7365 | { ac_try='test -z "$ac_c_werror_flag" |
7366 | || test ! -s conftest.err' |
7367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7368 | (eval $ac_try) 2>&5 |
7369 | ac_status=$? |
7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7371 | (exit $ac_status); }; } && |
7372 | { ac_try='test -s conftest$ac_exeext' |
7373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7374 | (eval $ac_try) 2>&5 |
7375 | ac_status=$? |
7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7377 | (exit $ac_status); }; }; then |
7378 | |
7379 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7380 | }'` |
7381 | # Check for a 64-bit object if we didn't find anything. |
7382 | 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; } |
7383 | }'`; fi |
7384 | else |
7385 | echo "$as_me: failed program was:" >&5 |
7386 | sed 's/^/| /' conftest.$ac_ext >&5 |
7387 | |
7388 | fi |
7389 | rm -f conftest.err conftest.$ac_objext \ |
7390 | conftest$ac_exeext conftest.$ac_ext |
7391 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7392 | |
7393 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7394 | # Warning - without using the other run time loading flags, |
7395 | # -berok will link without error, but may produce a broken library. |
7396 | no_undefined_flag=' ${wl}-bernotok' |
7397 | allow_undefined_flag=' ${wl}-berok' |
7398 | # Exported symbols can be pulled into shared objects from archives |
7399 | whole_archive_flag_spec='$convenience' |
7400 | archive_cmds_need_lc=yes |
7401 | # This is similar to how AIX traditionally builds its shared libraries. |
7402 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
7403 | fi |
7404 | fi |
7405 | ;; |
7406 | |
7407 | amigaos*) |
7408 | 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)' |
7409 | hardcode_libdir_flag_spec='-L$libdir' |
7410 | hardcode_minus_L=yes |
7411 | # see comment about different semantics on the GNU ld section |
7412 | ld_shlibs=no |
7413 | ;; |
7414 | |
7415 | bsdi[45]*) |
7416 | export_dynamic_flag_spec=-rdynamic |
7417 | ;; |
7418 | |
7419 | cygwin* | mingw* | pw32*) |
7420 | # When not using gcc, we currently assume that we are using |
7421 | # Microsoft Visual C++. |
7422 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
7423 | # no search path for DLLs. |
7424 | hardcode_libdir_flag_spec=' ' |
7425 | allow_undefined_flag=unsupported |
7426 | # Tell ltmain to make .lib files, not .a files. |
7427 | libext=lib |
7428 | # Tell ltmain to make .dll files, not .so files. |
7429 | shrext_cmds=".dll" |
7430 | # FIXME: Setting linknames here is a bad hack. |
7431 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7432 | # The linker will automatically build a .lib file if we build a DLL. |
7433 | old_archive_From_new_cmds='true' |
7434 | # FIXME: Should let the user specify the lib program. |
7435 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7436 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
7437 | enable_shared_with_static_runtimes=yes |
7438 | ;; |
7439 | |
7440 | darwin* | rhapsody*) |
7441 | case $host_os in |
7442 | rhapsody* | darwin1.[012]) |
7443 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7444 | ;; |
7445 | *) # Darwin 1.3 on |
7446 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7447 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7448 | else |
7449 | case ${MACOSX_DEPLOYMENT_TARGET} in |
7450 | 10.[012]) |
7451 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7452 | ;; |
7453 | 10.*) |
7454 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7455 | ;; |
7456 | esac |
7457 | fi |
7458 | ;; |
7459 | esac |
7460 | archive_cmds_need_lc=no |
7461 | hardcode_direct=no |
7462 | hardcode_automatic=yes |
7463 | hardcode_shlibpath_var=unsupported |
7464 | whole_archive_flag_spec='' |
7465 | link_all_deplibs=yes |
7466 | if test "$GCC" = yes ; then |
7467 | output_verbose_link_cmd='echo' |
7468 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7469 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7470 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7471 | 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}' |
7472 | 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}' |
7473 | else |
7474 | case $cc_basename in |
7475 | xlc*) |
7476 | output_verbose_link_cmd='echo' |
7477 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7478 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7479 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
7480 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7481 | 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}' |
7482 | ;; |
7483 | *) |
7484 | ld_shlibs=no |
7485 | ;; |
7486 | esac |
7487 | fi |
7488 | ;; |
7489 | |
7490 | dgux*) |
7491 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7492 | hardcode_libdir_flag_spec='-L$libdir' |
7493 | hardcode_shlibpath_var=no |
7494 | ;; |
7495 | |
7496 | freebsd1*) |
7497 | ld_shlibs=no |
7498 | ;; |
7499 | |
7500 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7501 | # support. Future versions do this automatically, but an explicit c++rt0.o |
7502 | # does not break anything, and helps significantly (at the cost of a little |
7503 | # extra space). |
7504 | freebsd2.2*) |
7505 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7506 | hardcode_libdir_flag_spec='-R$libdir' |
7507 | hardcode_direct=yes |
7508 | hardcode_shlibpath_var=no |
7509 | ;; |
7510 | |
7511 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7512 | freebsd2*) |
7513 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7514 | hardcode_direct=yes |
7515 | hardcode_minus_L=yes |
7516 | hardcode_shlibpath_var=no |
7517 | ;; |
7518 | |
7519 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7520 | freebsd* | kfreebsd*-gnu | dragonfly*) |
7521 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7522 | hardcode_libdir_flag_spec='-R$libdir' |
7523 | hardcode_direct=yes |
7524 | hardcode_shlibpath_var=no |
7525 | ;; |
7526 | |
7527 | hpux9*) |
7528 | if test "$GCC" = yes; then |
7529 | 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' |
7530 | else |
7531 | 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' |
7532 | fi |
7533 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7534 | hardcode_libdir_separator=: |
7535 | hardcode_direct=yes |
7536 | |
7537 | # hardcode_minus_L: Not really in the search PATH, |
7538 | # but as the default location of the library. |
7539 | hardcode_minus_L=yes |
7540 | export_dynamic_flag_spec='${wl}-E' |
7541 | ;; |
7542 | |
7543 | hpux10*) |
7544 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7545 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7546 | else |
7547 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7548 | fi |
7549 | if test "$with_gnu_ld" = no; then |
7550 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7551 | hardcode_libdir_separator=: |
7552 | |
7553 | hardcode_direct=yes |
7554 | export_dynamic_flag_spec='${wl}-E' |
7555 | |
7556 | # hardcode_minus_L: Not really in the search PATH, |
7557 | # but as the default location of the library. |
7558 | hardcode_minus_L=yes |
7559 | fi |
7560 | ;; |
7561 | |
7562 | hpux11*) |
7563 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7564 | case $host_cpu in |
7565 | hppa*64*) |
7566 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7567 | ;; |
7568 | ia64*) |
7569 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7570 | ;; |
7571 | *) |
7572 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7573 | ;; |
7574 | esac |
7575 | else |
7576 | case $host_cpu in |
7577 | hppa*64*) |
7578 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7579 | ;; |
7580 | ia64*) |
7581 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
7582 | ;; |
7583 | *) |
7584 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7585 | ;; |
7586 | esac |
7587 | fi |
7588 | if test "$with_gnu_ld" = no; then |
7589 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7590 | hardcode_libdir_separator=: |
7591 | |
7592 | case $host_cpu in |
7593 | hppa*64*|ia64*) |
7594 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7595 | hardcode_direct=no |
7596 | hardcode_shlibpath_var=no |
7597 | ;; |
7598 | *) |
7599 | hardcode_direct=yes |
7600 | export_dynamic_flag_spec='${wl}-E' |
7601 | |
7602 | # hardcode_minus_L: Not really in the search PATH, |
7603 | # but as the default location of the library. |
7604 | hardcode_minus_L=yes |
7605 | ;; |
7606 | esac |
7607 | fi |
7608 | ;; |
7609 | |
7610 | irix5* | irix6* | nonstopux*) |
7611 | if test "$GCC" = yes; then |
7612 | 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' |
7613 | else |
7614 | 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' |
7615 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7616 | fi |
7617 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7618 | hardcode_libdir_separator=: |
7619 | link_all_deplibs=yes |
7620 | ;; |
7621 | |
7622 | netbsd*) |
7623 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7624 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7625 | else |
7626 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7627 | fi |
7628 | hardcode_libdir_flag_spec='-R$libdir' |
7629 | hardcode_direct=yes |
7630 | hardcode_shlibpath_var=no |
7631 | ;; |
7632 | |
7633 | newsos6) |
7634 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7635 | hardcode_direct=yes |
7636 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7637 | hardcode_libdir_separator=: |
7638 | hardcode_shlibpath_var=no |
7639 | ;; |
7640 | |
7641 | openbsd*) |
7642 | hardcode_direct=yes |
7643 | hardcode_shlibpath_var=no |
7644 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7645 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7646 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7647 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7648 | export_dynamic_flag_spec='${wl}-E' |
7649 | else |
7650 | case $host_os in |
7651 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7652 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7653 | hardcode_libdir_flag_spec='-R$libdir' |
7654 | ;; |
7655 | *) |
7656 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7657 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7658 | ;; |
7659 | esac |
7660 | fi |
7661 | ;; |
7662 | |
7663 | os2*) |
7664 | hardcode_libdir_flag_spec='-L$libdir' |
7665 | hardcode_minus_L=yes |
7666 | allow_undefined_flag=unsupported |
7667 | 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' |
7668 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7669 | ;; |
7670 | |
7671 | osf3*) |
7672 | if test "$GCC" = yes; then |
7673 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7674 | 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' |
7675 | else |
7676 | allow_undefined_flag=' -expect_unresolved \*' |
7677 | 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' |
7678 | fi |
7679 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7680 | hardcode_libdir_separator=: |
7681 | ;; |
7682 | |
7683 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
7684 | if test "$GCC" = yes; then |
7685 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7686 | 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' |
7687 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7688 | else |
7689 | allow_undefined_flag=' -expect_unresolved \*' |
7690 | 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' |
7691 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7692 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
7693 | |
7694 | # Both c and cxx compiler support -rpath directly |
7695 | hardcode_libdir_flag_spec='-rpath $libdir' |
7696 | fi |
7697 | hardcode_libdir_separator=: |
7698 | ;; |
7699 | |
7700 | solaris*) |
7701 | no_undefined_flag=' -z text' |
7702 | if test "$GCC" = yes; then |
7703 | wlarc='${wl}' |
7704 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7705 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7706 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7707 | else |
7708 | wlarc='' |
7709 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7710 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7711 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7712 | fi |
7713 | hardcode_libdir_flag_spec='-R$libdir' |
7714 | hardcode_shlibpath_var=no |
7715 | case $host_os in |
7716 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
7717 | *) |
7718 | # The compiler driver will combine linker options so we |
7719 | # cannot just pass the convience library names through |
7720 | # without $wl, iff we do not link with $LD. |
7721 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
7722 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
7723 | case $wlarc in |
7724 | '') |
7725 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7726 | *) |
7727 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
7728 | esac ;; |
7729 | esac |
7730 | link_all_deplibs=yes |
7731 | ;; |
7732 | |
7733 | sunos4*) |
7734 | if test "x$host_vendor" = xsequent; then |
7735 | # Use $CC to link under sequent, because it throws in some extra .o |
7736 | # files that make .init and .fini sections work. |
7737 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7738 | else |
7739 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7740 | fi |
7741 | hardcode_libdir_flag_spec='-L$libdir' |
7742 | hardcode_direct=yes |
7743 | hardcode_minus_L=yes |
7744 | hardcode_shlibpath_var=no |
7745 | ;; |
7746 | |
7747 | sysv4) |
7748 | case $host_vendor in |
7749 | sni) |
7750 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7751 | hardcode_direct=yes # is this really true??? |
7752 | ;; |
7753 | siemens) |
7754 | ## LD is ld it makes a PLAMLIB |
7755 | ## CC just makes a GrossModule. |
7756 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7757 | reload_cmds='$CC -r -o $output$reload_objs' |
7758 | hardcode_direct=no |
7759 | ;; |
7760 | motorola) |
7761 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7762 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7763 | ;; |
7764 | esac |
7765 | runpath_var='LD_RUN_PATH' |
7766 | hardcode_shlibpath_var=no |
7767 | ;; |
7768 | |
7769 | sysv4.3*) |
7770 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7771 | hardcode_shlibpath_var=no |
7772 | export_dynamic_flag_spec='-Bexport' |
7773 | ;; |
7774 | |
7775 | sysv4*MP*) |
7776 | if test -d /usr/nec; then |
7777 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7778 | hardcode_shlibpath_var=no |
7779 | runpath_var=LD_RUN_PATH |
7780 | hardcode_runpath_var=yes |
7781 | ld_shlibs=yes |
7782 | fi |
7783 | ;; |
7784 | |
7785 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
7786 | no_undefined_flag='${wl}-z,text' |
7787 | archive_cmds_need_lc=no |
7788 | hardcode_shlibpath_var=no |
7789 | runpath_var='LD_RUN_PATH' |
7790 | |
7791 | if test "$GCC" = yes; then |
7792 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7793 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7794 | else |
7795 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7796 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7797 | fi |
7798 | ;; |
7799 | |
7800 | sysv5* | sco3.2v5* | sco5v6*) |
7801 | # Note: We can NOT use -z defs as we might desire, because we do not |
7802 | # link with -lc, and that would cause any symbols used from libc to |
7803 | # always be unresolved, which means just about no library would |
7804 | # ever link correctly. If we're not using GNU ld we use -z text |
7805 | # though, which does catch some bad symbols but isn't as heavy-handed |
7806 | # as -z defs. |
7807 | no_undefined_flag='${wl}-z,text' |
7808 | allow_undefined_flag='${wl}-z,nodefs' |
7809 | archive_cmds_need_lc=no |
7810 | hardcode_shlibpath_var=no |
7811 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
7812 | hardcode_libdir_separator=':' |
7813 | link_all_deplibs=yes |
7814 | export_dynamic_flag_spec='${wl}-Bexport' |
7815 | runpath_var='LD_RUN_PATH' |
7816 | |
7817 | if test "$GCC" = yes; then |
7818 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7819 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7820 | else |
7821 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7822 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7823 | fi |
7824 | ;; |
7825 | |
7826 | uts4*) |
7827 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7828 | hardcode_libdir_flag_spec='-L$libdir' |
7829 | hardcode_shlibpath_var=no |
7830 | ;; |
7831 | |
7832 | *) |
7833 | ld_shlibs=no |
7834 | ;; |
7835 | esac |
7836 | fi |
7837 | |
7838 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7839 | echo "${ECHO_T}$ld_shlibs" >&6 |
7840 | test "$ld_shlibs" = no && can_build_shared=no |
7841 | |
7842 | # |
7843 | # Do we need to explicitly link libc? |
7844 | # |
7845 | case "x$archive_cmds_need_lc" in |
7846 | x|xyes) |
7847 | # Assume -lc should be added |
7848 | archive_cmds_need_lc=yes |
7849 | |
7850 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
7851 | case $archive_cmds in |
7852 | *'~'*) |
7853 | # FIXME: we may have to deal with multi-command sequences. |
7854 | ;; |
7855 | '$CC '*) |
7856 | # Test whether the compiler implicitly links with -lc since on some |
7857 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
7858 | # to ld, don't add -lc before -lgcc. |
7859 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7860 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7861 | $rm conftest* |
7862 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7863 | |
7864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7865 | (eval $ac_compile) 2>&5 |
7866 | ac_status=$? |
7867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7868 | (exit $ac_status); } 2>conftest.err; then |
7869 | soname=conftest |
7870 | lib=conftest |
7871 | libobjs=conftest.$ac_objext |
7872 | deplibs= |
7873 | wl=$lt_prog_compiler_wl |
7874 | pic_flag=$lt_prog_compiler_pic |
7875 | compiler_flags=-v |
7876 | linker_flags=-v |
7877 | verstring= |
7878 | output_objdir=. |
7879 | libname=conftest |
7880 | lt_save_allow_undefined_flag=$allow_undefined_flag |
7881 | allow_undefined_flag= |
7882 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7883 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7884 | ac_status=$? |
7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7886 | (exit $ac_status); } |
7887 | then |
7888 | archive_cmds_need_lc=no |
7889 | else |
7890 | archive_cmds_need_lc=yes |
7891 | fi |
7892 | allow_undefined_flag=$lt_save_allow_undefined_flag |
7893 | else |
7894 | cat conftest.err 1>&5 |
7895 | fi |
7896 | $rm conftest* |
7897 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7898 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7899 | ;; |
7900 | esac |
7901 | fi |
7902 | ;; |
7903 | esac |
7904 | |
7905 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7906 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7907 | library_names_spec= |
7908 | libname_spec='lib$name' |
7909 | soname_spec= |
7910 | shrext_cmds=".so" |
7911 | postinstall_cmds= |
7912 | postuninstall_cmds= |
7913 | finish_cmds= |
7914 | finish_eval= |
7915 | shlibpath_var= |
7916 | shlibpath_overrides_runpath=unknown |
7917 | version_type=none |
7918 | dynamic_linker="$host_os ld.so" |
7919 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7920 | if test "$GCC" = yes; then |
7921 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7922 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7923 | # if the path contains ";" then we assume it to be the separator |
7924 | # otherwise default to the standard path separator (i.e. ":") - it is |
7925 | # assumed that no part of a normal pathname contains ";" but that should |
7926 | # okay in the real world where ";" in dirpaths is itself problematic. |
7927 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7928 | else |
7929 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7930 | fi |
7931 | else |
7932 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7933 | fi |
7934 | need_lib_prefix=unknown |
7935 | hardcode_into_libs=no |
7936 | |
7937 | # when you set need_version to no, make sure it does not cause -set_version |
7938 | # flags to be left without arguments |
7939 | need_version=unknown |
7940 | |
7941 | case $host_os in |
7942 | aix3*) |
7943 | version_type=linux |
7944 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7945 | shlibpath_var=LIBPATH |
7946 | |
7947 | # AIX 3 has no versioning support, so we append a major version to the name. |
7948 | soname_spec='${libname}${release}${shared_ext}$major' |
7949 | ;; |
7950 | |
7951 | aix4* | aix5*) |
7952 | version_type=linux |
7953 | need_lib_prefix=no |
7954 | need_version=no |
7955 | hardcode_into_libs=yes |
7956 | if test "$host_cpu" = ia64; then |
7957 | # AIX 5 supports IA64 |
7958 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
7959 | shlibpath_var=LD_LIBRARY_PATH |
7960 | else |
7961 | # With GCC up to 2.95.x, collect2 would create an import file |
7962 | # for dependence libraries. The import file would start with |
7963 | # the line `#! .'. This would cause the generated library to |
7964 | # depend on `.', always an invalid library. This was fixed in |
7965 | # development snapshots of GCC prior to 3.0. |
7966 | case $host_os in |
7967 | aix4 | aix4.[01] | aix4.[01].*) |
7968 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7969 | echo ' yes ' |
7970 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7971 | : |
7972 | else |
7973 | can_build_shared=no |
7974 | fi |
7975 | ;; |
7976 | esac |
7977 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
7978 | # soname into executable. Probably we can add versioning support to |
7979 | # collect2, so additional links can be useful in future. |
7980 | if test "$aix_use_runtimelinking" = yes; then |
7981 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
7982 | # instead of lib<name>.a to let people know that these are not |
7983 | # typical AIX shared libraries. |
7984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7985 | else |
7986 | # We preserve .a as extension for shared libraries through AIX4.2 |
7987 | # and later when we are not doing run time linking. |
7988 | library_names_spec='${libname}${release}.a $libname.a' |
7989 | soname_spec='${libname}${release}${shared_ext}$major' |
7990 | fi |
7991 | shlibpath_var=LIBPATH |
7992 | fi |
7993 | ;; |
7994 | |
7995 | amigaos*) |
7996 | library_names_spec='$libname.ixlibrary $libname.a' |
7997 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
7998 | 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' |
7999 | ;; |
8000 | |
8001 | beos*) |
8002 | library_names_spec='${libname}${shared_ext}' |
8003 | dynamic_linker="$host_os ld.so" |
8004 | shlibpath_var=LIBRARY_PATH |
8005 | ;; |
8006 | |
8007 | bsdi[45]*) |
8008 | version_type=linux |
8009 | need_version=no |
8010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8011 | soname_spec='${libname}${release}${shared_ext}$major' |
8012 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8013 | shlibpath_var=LD_LIBRARY_PATH |
8014 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8015 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8016 | # the default ld.so.conf also contains /usr/contrib/lib and |
8017 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8018 | # libtool to hard-code these into programs |
8019 | ;; |
8020 | |
8021 | cygwin* | mingw* | pw32*) |
8022 | version_type=windows |
8023 | shrext_cmds=".dll" |
8024 | need_version=no |
8025 | need_lib_prefix=no |
8026 | |
8027 | case $GCC,$host_os in |
8028 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8029 | library_names_spec='$libname.dll.a' |
8030 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8031 | postinstall_cmds='base_file=`basename \${file}`~ |
8032 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8033 | dldir=$destdir/`dirname \$dlpath`~ |
8034 | test -d \$dldir || mkdir -p \$dldir~ |
8035 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8036 | chmod a+x \$dldir/$dlname' |
8037 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8038 | dlpath=$dir/\$dldll~ |
8039 | $rm \$dlpath' |
8040 | shlibpath_overrides_runpath=yes |
8041 | |
8042 | case $host_os in |
8043 | cygwin*) |
8044 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8045 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8046 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8047 | ;; |
8048 | mingw*) |
8049 | # MinGW DLLs use traditional 'lib' prefix |
8050 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8051 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8052 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8053 | # It is most probably a Windows format PATH printed by |
8054 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8055 | # path with ; separators, and with drive letters. We can handle the |
8056 | # drive letters (cygwin fileutils understands them), so leave them, |
8057 | # especially as we might pass files found there to a mingw objdump, |
8058 | # which wouldn't understand a cygwinified path. Ahh. |
8059 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8060 | else |
8061 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8062 | fi |
8063 | ;; |
8064 | pw32*) |
8065 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8066 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8067 | ;; |
8068 | esac |
8069 | ;; |
8070 | |
8071 | *) |
8072 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8073 | ;; |
8074 | esac |
8075 | dynamic_linker='Win32 ld.exe' |
8076 | # FIXME: first we should search . and the directory the executable is in |
8077 | shlibpath_var=PATH |
8078 | ;; |
8079 | |
8080 | darwin* | rhapsody*) |
8081 | dynamic_linker="$host_os dyld" |
8082 | version_type=darwin |
8083 | need_lib_prefix=no |
8084 | need_version=no |
8085 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8086 | soname_spec='${libname}${release}${major}$shared_ext' |
8087 | shlibpath_overrides_runpath=yes |
8088 | shlibpath_var=DYLD_LIBRARY_PATH |
8089 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8090 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8091 | if test "$GCC" = yes; then |
8092 | 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"` |
8093 | else |
8094 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8095 | fi |
8096 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8097 | ;; |
8098 | |
8099 | dgux*) |
8100 | version_type=linux |
8101 | need_lib_prefix=no |
8102 | need_version=no |
8103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8104 | soname_spec='${libname}${release}${shared_ext}$major' |
8105 | shlibpath_var=LD_LIBRARY_PATH |
8106 | ;; |
8107 | |
8108 | freebsd1*) |
8109 | dynamic_linker=no |
8110 | ;; |
8111 | |
8112 | kfreebsd*-gnu) |
8113 | version_type=linux |
8114 | need_lib_prefix=no |
8115 | need_version=no |
8116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8117 | soname_spec='${libname}${release}${shared_ext}$major' |
8118 | shlibpath_var=LD_LIBRARY_PATH |
8119 | shlibpath_overrides_runpath=no |
8120 | hardcode_into_libs=yes |
8121 | dynamic_linker='GNU ld.so' |
8122 | ;; |
8123 | |
8124 | freebsd* | dragonfly*) |
8125 | # DragonFly does not have aout. When/if they implement a new |
8126 | # versioning mechanism, adjust this. |
8127 | if test -x /usr/bin/objformat; then |
8128 | objformat=`/usr/bin/objformat` |
8129 | else |
8130 | case $host_os in |
8131 | freebsd[123]*) objformat=aout ;; |
8132 | *) objformat=elf ;; |
8133 | esac |
8134 | fi |
8135 | version_type=freebsd-$objformat |
8136 | case $version_type in |
8137 | freebsd-elf*) |
8138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8139 | need_version=no |
8140 | need_lib_prefix=no |
8141 | ;; |
8142 | freebsd-*) |
8143 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8144 | need_version=yes |
8145 | ;; |
8146 | esac |
8147 | shlibpath_var=LD_LIBRARY_PATH |
8148 | case $host_os in |
8149 | freebsd2*) |
8150 | shlibpath_overrides_runpath=yes |
8151 | ;; |
8152 | freebsd3.[01]* | freebsdelf3.[01]*) |
8153 | shlibpath_overrides_runpath=yes |
8154 | hardcode_into_libs=yes |
8155 | ;; |
8156 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8157 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8158 | shlibpath_overrides_runpath=no |
8159 | hardcode_into_libs=yes |
8160 | ;; |
8161 | freebsd*) # from 4.6 on |
8162 | shlibpath_overrides_runpath=yes |
8163 | hardcode_into_libs=yes |
8164 | ;; |
8165 | esac |
8166 | ;; |
8167 | |
8168 | gnu*) |
8169 | version_type=linux |
8170 | need_lib_prefix=no |
8171 | need_version=no |
8172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8173 | soname_spec='${libname}${release}${shared_ext}$major' |
8174 | shlibpath_var=LD_LIBRARY_PATH |
8175 | hardcode_into_libs=yes |
8176 | ;; |
8177 | |
8178 | hpux9* | hpux10* | hpux11*) |
8179 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8180 | # link against other versions. |
8181 | version_type=sunos |
8182 | need_lib_prefix=no |
8183 | need_version=no |
8184 | case $host_cpu in |
8185 | ia64*) |
8186 | shrext_cmds='.so' |
8187 | hardcode_into_libs=yes |
8188 | dynamic_linker="$host_os dld.so" |
8189 | shlibpath_var=LD_LIBRARY_PATH |
8190 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8192 | soname_spec='${libname}${release}${shared_ext}$major' |
8193 | if test "X$HPUX_IA64_MODE" = X32; then |
8194 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8195 | else |
8196 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8197 | fi |
8198 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8199 | ;; |
8200 | hppa*64*) |
8201 | shrext_cmds='.sl' |
8202 | hardcode_into_libs=yes |
8203 | dynamic_linker="$host_os dld.sl" |
8204 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8205 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8207 | soname_spec='${libname}${release}${shared_ext}$major' |
8208 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8209 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8210 | ;; |
8211 | *) |
8212 | shrext_cmds='.sl' |
8213 | dynamic_linker="$host_os dld.sl" |
8214 | shlibpath_var=SHLIB_PATH |
8215 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8217 | soname_spec='${libname}${release}${shared_ext}$major' |
8218 | ;; |
8219 | esac |
8220 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8221 | postinstall_cmds='chmod 555 $lib' |
8222 | ;; |
8223 | |
8224 | interix3*) |
8225 | version_type=linux |
8226 | need_lib_prefix=no |
8227 | need_version=no |
8228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8229 | soname_spec='${libname}${release}${shared_ext}$major' |
8230 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8231 | shlibpath_var=LD_LIBRARY_PATH |
8232 | shlibpath_overrides_runpath=no |
8233 | hardcode_into_libs=yes |
8234 | ;; |
8235 | |
8236 | irix5* | irix6* | nonstopux*) |
8237 | case $host_os in |
8238 | nonstopux*) version_type=nonstopux ;; |
8239 | *) |
8240 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8241 | version_type=linux |
8242 | else |
8243 | version_type=irix |
8244 | fi ;; |
8245 | esac |
8246 | need_lib_prefix=no |
8247 | need_version=no |
8248 | soname_spec='${libname}${release}${shared_ext}$major' |
8249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8250 | case $host_os in |
8251 | irix5* | nonstopux*) |
8252 | libsuff= shlibsuff= |
8253 | ;; |
8254 | *) |
8255 | case $LD in # libtool.m4 will add one of these switches to LD |
8256 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8257 | libsuff= shlibsuff= libmagic=32-bit;; |
8258 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8259 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8260 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8261 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8262 | *) libsuff= shlibsuff= libmagic=never-match;; |
8263 | esac |
8264 | ;; |
8265 | esac |
8266 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8267 | shlibpath_overrides_runpath=no |
8268 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8269 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8270 | hardcode_into_libs=yes |
8271 | ;; |
8272 | |
8273 | # No shared lib support for Linux oldld, aout, or coff. |
8274 | linux*oldld* | linux*aout* | linux*coff*) |
8275 | dynamic_linker=no |
8276 | ;; |
8277 | |
8278 | # This must be Linux ELF. |
8279 | linux*) |
8280 | version_type=linux |
8281 | need_lib_prefix=no |
8282 | need_version=no |
8283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8284 | soname_spec='${libname}${release}${shared_ext}$major' |
8285 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8286 | shlibpath_var=LD_LIBRARY_PATH |
8287 | shlibpath_overrides_runpath=no |
8288 | # This implies no fast_install, which is unacceptable. |
8289 | # Some rework will be needed to allow for fast_install |
8290 | # before this can be enabled. |
8291 | hardcode_into_libs=yes |
8292 | |
8293 | # find out which ABI we are using |
8294 | libsuff= |
8295 | case "$host_cpu" in |
8296 | x86_64*|s390x*|powerpc64*) |
8297 | echo '#line 8297 "configure"' > conftest.$ac_ext |
8298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8299 | (eval $ac_compile) 2>&5 |
8300 | ac_status=$? |
8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8302 | (exit $ac_status); }; then |
8303 | case `/usr/bin/file conftest.$ac_objext` in |
8304 | *64-bit*) |
8305 | libsuff=64 |
8306 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8307 | ;; |
8308 | esac |
8309 | fi |
8310 | rm -rf conftest* |
8311 | ;; |
8312 | esac |
8313 | |
8314 | # Append ld.so.conf contents to the search path |
8315 | if test -f /etc/ld.so.conf; then |
8316 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
8317 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8318 | fi |
8319 | |
8320 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
8321 | # powerpc, because MkLinux only supported shared libraries with the |
8322 | # GNU dynamic linker. Since this was broken with cross compilers, |
8323 | # most powerpc-linux boxes support dynamic linking these days and |
8324 | # people can always --disable-shared, the test was removed, and we |
8325 | # assume the GNU/Linux dynamic linker is in use. |
8326 | dynamic_linker='GNU/Linux ld.so' |
8327 | ;; |
8328 | |
8329 | knetbsd*-gnu) |
8330 | version_type=linux |
8331 | need_lib_prefix=no |
8332 | need_version=no |
8333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8334 | soname_spec='${libname}${release}${shared_ext}$major' |
8335 | shlibpath_var=LD_LIBRARY_PATH |
8336 | shlibpath_overrides_runpath=no |
8337 | hardcode_into_libs=yes |
8338 | dynamic_linker='GNU ld.so' |
8339 | ;; |
8340 | |
8341 | netbsd*) |
8342 | version_type=sunos |
8343 | need_lib_prefix=no |
8344 | need_version=no |
8345 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8347 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8348 | dynamic_linker='NetBSD (a.out) ld.so' |
8349 | else |
8350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8351 | soname_spec='${libname}${release}${shared_ext}$major' |
8352 | dynamic_linker='NetBSD ld.elf_so' |
8353 | fi |
8354 | shlibpath_var=LD_LIBRARY_PATH |
8355 | shlibpath_overrides_runpath=yes |
8356 | hardcode_into_libs=yes |
8357 | ;; |
8358 | |
8359 | newsos6) |
8360 | version_type=linux |
8361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8362 | shlibpath_var=LD_LIBRARY_PATH |
8363 | shlibpath_overrides_runpath=yes |
8364 | ;; |
8365 | |
8366 | nto-qnx*) |
8367 | version_type=linux |
8368 | need_lib_prefix=no |
8369 | need_version=no |
8370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8371 | soname_spec='${libname}${release}${shared_ext}$major' |
8372 | shlibpath_var=LD_LIBRARY_PATH |
8373 | shlibpath_overrides_runpath=yes |
8374 | ;; |
8375 | |
8376 | openbsd*) |
8377 | version_type=sunos |
8378 | sys_lib_dlsearch_path_spec="/usr/lib" |
8379 | need_lib_prefix=no |
8380 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8381 | case $host_os in |
8382 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8383 | *) need_version=no ;; |
8384 | esac |
8385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8386 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8387 | shlibpath_var=LD_LIBRARY_PATH |
8388 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8389 | case $host_os in |
8390 | openbsd2.[89] | openbsd2.[89].*) |
8391 | shlibpath_overrides_runpath=no |
8392 | ;; |
8393 | *) |
8394 | shlibpath_overrides_runpath=yes |
8395 | ;; |
8396 | esac |
8397 | else |
8398 | shlibpath_overrides_runpath=yes |
8399 | fi |
8400 | ;; |
8401 | |
8402 | os2*) |
8403 | libname_spec='$name' |
8404 | shrext_cmds=".dll" |
8405 | need_lib_prefix=no |
8406 | library_names_spec='$libname${shared_ext} $libname.a' |
8407 | dynamic_linker='OS/2 ld.exe' |
8408 | shlibpath_var=LIBPATH |
8409 | ;; |
8410 | |
8411 | osf3* | osf4* | osf5*) |
8412 | version_type=osf |
8413 | need_lib_prefix=no |
8414 | need_version=no |
8415 | soname_spec='${libname}${release}${shared_ext}$major' |
8416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8417 | shlibpath_var=LD_LIBRARY_PATH |
8418 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8419 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8420 | ;; |
8421 | |
8422 | solaris*) |
8423 | version_type=linux |
8424 | need_lib_prefix=no |
8425 | need_version=no |
8426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8427 | soname_spec='${libname}${release}${shared_ext}$major' |
8428 | shlibpath_var=LD_LIBRARY_PATH |
8429 | shlibpath_overrides_runpath=yes |
8430 | hardcode_into_libs=yes |
8431 | # ldd complains unless libraries are executable |
8432 | postinstall_cmds='chmod +x $lib' |
8433 | ;; |
8434 | |
8435 | sunos4*) |
8436 | version_type=sunos |
8437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8438 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8439 | shlibpath_var=LD_LIBRARY_PATH |
8440 | shlibpath_overrides_runpath=yes |
8441 | if test "$with_gnu_ld" = yes; then |
8442 | need_lib_prefix=no |
8443 | fi |
8444 | need_version=yes |
8445 | ;; |
8446 | |
8447 | sysv4 | sysv4.3*) |
8448 | version_type=linux |
8449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8450 | soname_spec='${libname}${release}${shared_ext}$major' |
8451 | shlibpath_var=LD_LIBRARY_PATH |
8452 | case $host_vendor in |
8453 | sni) |
8454 | shlibpath_overrides_runpath=no |
8455 | need_lib_prefix=no |
8456 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
8457 | runpath_var=LD_RUN_PATH |
8458 | ;; |
8459 | siemens) |
8460 | need_lib_prefix=no |
8461 | ;; |
8462 | motorola) |
8463 | need_lib_prefix=no |
8464 | need_version=no |
8465 | shlibpath_overrides_runpath=no |
8466 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8467 | ;; |
8468 | esac |
8469 | ;; |
8470 | |
8471 | sysv4*MP*) |
8472 | if test -d /usr/nec ;then |
8473 | version_type=linux |
8474 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8475 | soname_spec='$libname${shared_ext}.$major' |
8476 | shlibpath_var=LD_LIBRARY_PATH |
8477 | fi |
8478 | ;; |
8479 | |
8480 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8481 | version_type=freebsd-elf |
8482 | need_lib_prefix=no |
8483 | need_version=no |
8484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8485 | soname_spec='${libname}${release}${shared_ext}$major' |
8486 | shlibpath_var=LD_LIBRARY_PATH |
8487 | hardcode_into_libs=yes |
8488 | if test "$with_gnu_ld" = yes; then |
8489 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
8490 | shlibpath_overrides_runpath=no |
8491 | else |
8492 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
8493 | shlibpath_overrides_runpath=yes |
8494 | case $host_os in |
8495 | sco3.2v5*) |
8496 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
8497 | ;; |
8498 | esac |
8499 | fi |
8500 | sys_lib_dlsearch_path_spec='/usr/lib' |
8501 | ;; |
8502 | |
8503 | uts4*) |
8504 | version_type=linux |
8505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8506 | soname_spec='${libname}${release}${shared_ext}$major' |
8507 | shlibpath_var=LD_LIBRARY_PATH |
8508 | ;; |
8509 | |
8510 | *) |
8511 | dynamic_linker=no |
8512 | ;; |
8513 | esac |
8514 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8515 | echo "${ECHO_T}$dynamic_linker" >&6 |
8516 | test "$dynamic_linker" = no && can_build_shared=no |
8517 | |
8518 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8519 | if test "$GCC" = yes; then |
8520 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8521 | fi |
8522 | |
8523 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8524 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8525 | hardcode_action= |
8526 | if test -n "$hardcode_libdir_flag_spec" || \ |
8527 | test -n "$runpath_var" || \ |
8528 | test "X$hardcode_automatic" = "Xyes" ; then |
8529 | |
8530 | # We can hardcode non-existant directories. |
8531 | if test "$hardcode_direct" != no && |
8532 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
8533 | # have to relink, otherwise we might link with an installed library |
8534 | # when we should be linking with a yet-to-be-installed one |
8535 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8536 | test "$hardcode_minus_L" != no; then |
8537 | # Linking always hardcodes the temporary library directory. |
8538 | hardcode_action=relink |
8539 | else |
8540 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
8541 | hardcode_action=immediate |
8542 | fi |
8543 | else |
8544 | # We cannot hardcode anything, or else we can only hardcode existing |
8545 | # directories. |
8546 | hardcode_action=unsupported |
8547 | fi |
8548 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8549 | echo "${ECHO_T}$hardcode_action" >&6 |
8550 | |
8551 | if test "$hardcode_action" = relink; then |
8552 | # Fast installation is not supported |
8553 | enable_fast_install=no |
8554 | elif test "$shlibpath_overrides_runpath" = yes || |
8555 | test "$enable_shared" = no; then |
8556 | # Fast installation is not necessary |
8557 | enable_fast_install=needless |
8558 | fi |
8559 | |
8560 | striplib= |
8561 | old_striplib= |
8562 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8563 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8564 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8565 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8566 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8567 | echo "$as_me:$LINENO: result: yes" >&5 |
8568 | echo "${ECHO_T}yes" >&6 |
8569 | else |
8570 | # FIXME - insert some real tests, host_os isn't really good enough |
8571 | case $host_os in |
8572 | darwin*) |
8573 | if test -n "$STRIP" ; then |
8574 | striplib="$STRIP -x" |
8575 | echo "$as_me:$LINENO: result: yes" >&5 |
8576 | echo "${ECHO_T}yes" >&6 |
8577 | else |
8578 | echo "$as_me:$LINENO: result: no" >&5 |
8579 | echo "${ECHO_T}no" >&6 |
8580 | fi |
8581 | ;; |
8582 | *) |
8583 | echo "$as_me:$LINENO: result: no" >&5 |
8584 | echo "${ECHO_T}no" >&6 |
8585 | ;; |
8586 | esac |
8587 | fi |
8588 | |
8589 | if test "x$enable_dlopen" != xyes; then |
8590 | enable_dlopen=unknown |
8591 | enable_dlopen_self=unknown |
8592 | enable_dlopen_self_static=unknown |
8593 | else |
8594 | lt_cv_dlopen=no |
8595 | lt_cv_dlopen_libs= |
8596 | |
8597 | case $host_os in |
8598 | beos*) |
8599 | lt_cv_dlopen="load_add_on" |
8600 | lt_cv_dlopen_libs= |
8601 | lt_cv_dlopen_self=yes |
8602 | ;; |
8603 | |
8604 | mingw* | pw32*) |
8605 | lt_cv_dlopen="LoadLibrary" |
8606 | lt_cv_dlopen_libs= |
8607 | ;; |
8608 | |
8609 | cygwin*) |
8610 | lt_cv_dlopen="dlopen" |
8611 | lt_cv_dlopen_libs= |
8612 | ;; |
8613 | |
8614 | darwin*) |
8615 | # if libdl is installed we need to link against it |
8616 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8617 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8618 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8620 | else |
8621 | ac_check_lib_save_LIBS=$LIBS |
8622 | LIBS="-ldl $LIBS" |
8623 | cat >conftest.$ac_ext <<_ACEOF |
8624 | /* confdefs.h. */ |
8625 | _ACEOF |
8626 | cat confdefs.h >>conftest.$ac_ext |
8627 | cat >>conftest.$ac_ext <<_ACEOF |
8628 | /* end confdefs.h. */ |
8629 | |
8630 | /* Override any gcc2 internal prototype to avoid an error. */ |
8631 | #ifdef __cplusplus |
8632 | extern "C" |
8633 | #endif |
8634 | /* We use char because int might match the return type of a gcc2 |
8635 | builtin and then its argument prototype would still apply. */ |
8636 | char dlopen (); |
8637 | int |
8638 | main () |
8639 | { |
8640 | dlopen (); |
8641 | ; |
8642 | return 0; |
8643 | } |
8644 | _ACEOF |
8645 | rm -f conftest.$ac_objext conftest$ac_exeext |
8646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8647 | (eval $ac_link) 2>conftest.er1 |
8648 | ac_status=$? |
8649 | grep -v '^ *+' conftest.er1 >conftest.err |
8650 | rm -f conftest.er1 |
8651 | cat conftest.err >&5 |
8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8653 | (exit $ac_status); } && |
8654 | { ac_try='test -z "$ac_c_werror_flag" |
8655 | || test ! -s conftest.err' |
8656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8657 | (eval $ac_try) 2>&5 |
8658 | ac_status=$? |
8659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8660 | (exit $ac_status); }; } && |
8661 | { ac_try='test -s conftest$ac_exeext' |
8662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8663 | (eval $ac_try) 2>&5 |
8664 | ac_status=$? |
8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8666 | (exit $ac_status); }; }; then |
8667 | ac_cv_lib_dl_dlopen=yes |
8668 | else |
8669 | echo "$as_me: failed program was:" >&5 |
8670 | sed 's/^/| /' conftest.$ac_ext >&5 |
8671 | |
8672 | ac_cv_lib_dl_dlopen=no |
8673 | fi |
8674 | rm -f conftest.err conftest.$ac_objext \ |
8675 | conftest$ac_exeext conftest.$ac_ext |
8676 | LIBS=$ac_check_lib_save_LIBS |
8677 | fi |
8678 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8679 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8680 | if test $ac_cv_lib_dl_dlopen = yes; then |
8681 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8682 | else |
8683 | |
8684 | lt_cv_dlopen="dyld" |
8685 | lt_cv_dlopen_libs= |
8686 | lt_cv_dlopen_self=yes |
8687 | |
8688 | fi |
8689 | |
8690 | ;; |
8691 | |
8692 | *) |
8693 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
8694 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8695 | if test "${ac_cv_func_shl_load+set}" = set; then |
8696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8697 | else |
8698 | cat >conftest.$ac_ext <<_ACEOF |
8699 | /* confdefs.h. */ |
8700 | _ACEOF |
8701 | cat confdefs.h >>conftest.$ac_ext |
8702 | cat >>conftest.$ac_ext <<_ACEOF |
8703 | /* end confdefs.h. */ |
8704 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8706 | #define shl_load innocuous_shl_load |
8707 | |
8708 | /* System header to define __stub macros and hopefully few prototypes, |
8709 | which can conflict with char shl_load (); below. |
8710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8711 | <limits.h> exists even on freestanding compilers. */ |
8712 | |
8713 | #ifdef __STDC__ |
8714 | # include <limits.h> |
8715 | #else |
8716 | # include <assert.h> |
8717 | #endif |
8718 | |
8719 | #undef shl_load |
8720 | |
8721 | /* Override any gcc2 internal prototype to avoid an error. */ |
8722 | #ifdef __cplusplus |
8723 | extern "C" |
8724 | { |
8725 | #endif |
8726 | /* We use char because int might match the return type of a gcc2 |
8727 | builtin and then its argument prototype would still apply. */ |
8728 | char shl_load (); |
8729 | /* The GNU C library defines this for functions which it implements |
8730 | to always fail with ENOSYS. Some functions are actually named |
8731 | something starting with __ and the normal name is an alias. */ |
8732 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
8733 | choke me |
8734 | #else |
8735 | char (*f) () = shl_load; |
8736 | #endif |
8737 | #ifdef __cplusplus |
8738 | } |
8739 | #endif |
8740 | |
8741 | int |
8742 | main () |
8743 | { |
8744 | return f != shl_load; |
8745 | ; |
8746 | return 0; |
8747 | } |
8748 | _ACEOF |
8749 | rm -f conftest.$ac_objext conftest$ac_exeext |
8750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8751 | (eval $ac_link) 2>conftest.er1 |
8752 | ac_status=$? |
8753 | grep -v '^ *+' conftest.er1 >conftest.err |
8754 | rm -f conftest.er1 |
8755 | cat conftest.err >&5 |
8756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8757 | (exit $ac_status); } && |
8758 | { ac_try='test -z "$ac_c_werror_flag" |
8759 | || test ! -s conftest.err' |
8760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8761 | (eval $ac_try) 2>&5 |
8762 | ac_status=$? |
8763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8764 | (exit $ac_status); }; } && |
8765 | { ac_try='test -s conftest$ac_exeext' |
8766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8767 | (eval $ac_try) 2>&5 |
8768 | ac_status=$? |
8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8770 | (exit $ac_status); }; }; then |
8771 | ac_cv_func_shl_load=yes |
8772 | else |
8773 | echo "$as_me: failed program was:" >&5 |
8774 | sed 's/^/| /' conftest.$ac_ext >&5 |
8775 | |
8776 | ac_cv_func_shl_load=no |
8777 | fi |
8778 | rm -f conftest.err conftest.$ac_objext \ |
8779 | conftest$ac_exeext conftest.$ac_ext |
8780 | fi |
8781 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8782 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8783 | if test $ac_cv_func_shl_load = yes; then |
8784 | lt_cv_dlopen="shl_load" |
8785 | else |
8786 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8787 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8788 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8790 | else |
8791 | ac_check_lib_save_LIBS=$LIBS |
8792 | LIBS="-ldld $LIBS" |
8793 | cat >conftest.$ac_ext <<_ACEOF |
8794 | /* confdefs.h. */ |
8795 | _ACEOF |
8796 | cat confdefs.h >>conftest.$ac_ext |
8797 | cat >>conftest.$ac_ext <<_ACEOF |
8798 | /* end confdefs.h. */ |
8799 | |
8800 | /* Override any gcc2 internal prototype to avoid an error. */ |
8801 | #ifdef __cplusplus |
8802 | extern "C" |
8803 | #endif |
8804 | /* We use char because int might match the return type of a gcc2 |
8805 | builtin and then its argument prototype would still apply. */ |
8806 | char shl_load (); |
8807 | int |
8808 | main () |
8809 | { |
8810 | shl_load (); |
8811 | ; |
8812 | return 0; |
8813 | } |
8814 | _ACEOF |
8815 | rm -f conftest.$ac_objext conftest$ac_exeext |
8816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8817 | (eval $ac_link) 2>conftest.er1 |
8818 | ac_status=$? |
8819 | grep -v '^ *+' conftest.er1 >conftest.err |
8820 | rm -f conftest.er1 |
8821 | cat conftest.err >&5 |
8822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8823 | (exit $ac_status); } && |
8824 | { ac_try='test -z "$ac_c_werror_flag" |
8825 | || test ! -s conftest.err' |
8826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8827 | (eval $ac_try) 2>&5 |
8828 | ac_status=$? |
8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8830 | (exit $ac_status); }; } && |
8831 | { ac_try='test -s conftest$ac_exeext' |
8832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8833 | (eval $ac_try) 2>&5 |
8834 | ac_status=$? |
8835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8836 | (exit $ac_status); }; }; then |
8837 | ac_cv_lib_dld_shl_load=yes |
8838 | else |
8839 | echo "$as_me: failed program was:" >&5 |
8840 | sed 's/^/| /' conftest.$ac_ext >&5 |
8841 | |
8842 | ac_cv_lib_dld_shl_load=no |
8843 | fi |
8844 | rm -f conftest.err conftest.$ac_objext \ |
8845 | conftest$ac_exeext conftest.$ac_ext |
8846 | LIBS=$ac_check_lib_save_LIBS |
8847 | fi |
8848 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8849 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8850 | if test $ac_cv_lib_dld_shl_load = yes; then |
8851 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8852 | else |
8853 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
8854 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8855 | if test "${ac_cv_func_dlopen+set}" = set; then |
8856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8857 | else |
8858 | cat >conftest.$ac_ext <<_ACEOF |
8859 | /* confdefs.h. */ |
8860 | _ACEOF |
8861 | cat confdefs.h >>conftest.$ac_ext |
8862 | cat >>conftest.$ac_ext <<_ACEOF |
8863 | /* end confdefs.h. */ |
8864 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8866 | #define dlopen innocuous_dlopen |
8867 | |
8868 | /* System header to define __stub macros and hopefully few prototypes, |
8869 | which can conflict with char dlopen (); below. |
8870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8871 | <limits.h> exists even on freestanding compilers. */ |
8872 | |
8873 | #ifdef __STDC__ |
8874 | # include <limits.h> |
8875 | #else |
8876 | # include <assert.h> |
8877 | #endif |
8878 | |
8879 | #undef dlopen |
8880 | |
8881 | /* Override any gcc2 internal prototype to avoid an error. */ |
8882 | #ifdef __cplusplus |
8883 | extern "C" |
8884 | { |
8885 | #endif |
8886 | /* We use char because int might match the return type of a gcc2 |
8887 | builtin and then its argument prototype would still apply. */ |
8888 | char dlopen (); |
8889 | /* The GNU C library defines this for functions which it implements |
8890 | to always fail with ENOSYS. Some functions are actually named |
8891 | something starting with __ and the normal name is an alias. */ |
8892 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
8893 | choke me |
8894 | #else |
8895 | char (*f) () = dlopen; |
8896 | #endif |
8897 | #ifdef __cplusplus |
8898 | } |
8899 | #endif |
8900 | |
8901 | int |
8902 | main () |
8903 | { |
8904 | return f != dlopen; |
8905 | ; |
8906 | return 0; |
8907 | } |
8908 | _ACEOF |
8909 | rm -f conftest.$ac_objext conftest$ac_exeext |
8910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8911 | (eval $ac_link) 2>conftest.er1 |
8912 | ac_status=$? |
8913 | grep -v '^ *+' conftest.er1 >conftest.err |
8914 | rm -f conftest.er1 |
8915 | cat conftest.err >&5 |
8916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8917 | (exit $ac_status); } && |
8918 | { ac_try='test -z "$ac_c_werror_flag" |
8919 | || test ! -s conftest.err' |
8920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8921 | (eval $ac_try) 2>&5 |
8922 | ac_status=$? |
8923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8924 | (exit $ac_status); }; } && |
8925 | { ac_try='test -s conftest$ac_exeext' |
8926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8927 | (eval $ac_try) 2>&5 |
8928 | ac_status=$? |
8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8930 | (exit $ac_status); }; }; then |
8931 | ac_cv_func_dlopen=yes |
8932 | else |
8933 | echo "$as_me: failed program was:" >&5 |
8934 | sed 's/^/| /' conftest.$ac_ext >&5 |
8935 | |
8936 | ac_cv_func_dlopen=no |
8937 | fi |
8938 | rm -f conftest.err conftest.$ac_objext \ |
8939 | conftest$ac_exeext conftest.$ac_ext |
8940 | fi |
8941 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8942 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8943 | if test $ac_cv_func_dlopen = yes; then |
8944 | lt_cv_dlopen="dlopen" |
8945 | else |
8946 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8947 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8948 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8950 | else |
8951 | ac_check_lib_save_LIBS=$LIBS |
8952 | LIBS="-ldl $LIBS" |
8953 | cat >conftest.$ac_ext <<_ACEOF |
8954 | /* confdefs.h. */ |
8955 | _ACEOF |
8956 | cat confdefs.h >>conftest.$ac_ext |
8957 | cat >>conftest.$ac_ext <<_ACEOF |
8958 | /* end confdefs.h. */ |
8959 | |
8960 | /* Override any gcc2 internal prototype to avoid an error. */ |
8961 | #ifdef __cplusplus |
8962 | extern "C" |
8963 | #endif |
8964 | /* We use char because int might match the return type of a gcc2 |
8965 | builtin and then its argument prototype would still apply. */ |
8966 | char dlopen (); |
8967 | int |
8968 | main () |
8969 | { |
8970 | dlopen (); |
8971 | ; |
8972 | return 0; |
8973 | } |
8974 | _ACEOF |
8975 | rm -f conftest.$ac_objext conftest$ac_exeext |
8976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8977 | (eval $ac_link) 2>conftest.er1 |
8978 | ac_status=$? |
8979 | grep -v '^ *+' conftest.er1 >conftest.err |
8980 | rm -f conftest.er1 |
8981 | cat conftest.err >&5 |
8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8983 | (exit $ac_status); } && |
8984 | { ac_try='test -z "$ac_c_werror_flag" |
8985 | || test ! -s conftest.err' |
8986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8987 | (eval $ac_try) 2>&5 |
8988 | ac_status=$? |
8989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8990 | (exit $ac_status); }; } && |
8991 | { ac_try='test -s conftest$ac_exeext' |
8992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8993 | (eval $ac_try) 2>&5 |
8994 | ac_status=$? |
8995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8996 | (exit $ac_status); }; }; then |
8997 | ac_cv_lib_dl_dlopen=yes |
8998 | else |
8999 | echo "$as_me: failed program was:" >&5 |
9000 | sed 's/^/| /' conftest.$ac_ext >&5 |
9001 | |
9002 | ac_cv_lib_dl_dlopen=no |
9003 | fi |
9004 | rm -f conftest.err conftest.$ac_objext \ |
9005 | conftest$ac_exeext conftest.$ac_ext |
9006 | LIBS=$ac_check_lib_save_LIBS |
9007 | fi |
9008 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9009 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
9010 | if test $ac_cv_lib_dl_dlopen = yes; then |
9011 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9012 | else |
9013 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9014 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
9015 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9017 | else |
9018 | ac_check_lib_save_LIBS=$LIBS |
9019 | LIBS="-lsvld $LIBS" |
9020 | cat >conftest.$ac_ext <<_ACEOF |
9021 | /* confdefs.h. */ |
9022 | _ACEOF |
9023 | cat confdefs.h >>conftest.$ac_ext |
9024 | cat >>conftest.$ac_ext <<_ACEOF |
9025 | /* end confdefs.h. */ |
9026 | |
9027 | /* Override any gcc2 internal prototype to avoid an error. */ |
9028 | #ifdef __cplusplus |
9029 | extern "C" |
9030 | #endif |
9031 | /* We use char because int might match the return type of a gcc2 |
9032 | builtin and then its argument prototype would still apply. */ |
9033 | char dlopen (); |
9034 | int |
9035 | main () |
9036 | { |
9037 | dlopen (); |
9038 | ; |
9039 | return 0; |
9040 | } |
9041 | _ACEOF |
9042 | rm -f conftest.$ac_objext conftest$ac_exeext |
9043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9044 | (eval $ac_link) 2>conftest.er1 |
9045 | ac_status=$? |
9046 | grep -v '^ *+' conftest.er1 >conftest.err |
9047 | rm -f conftest.er1 |
9048 | cat conftest.err >&5 |
9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9050 | (exit $ac_status); } && |
9051 | { ac_try='test -z "$ac_c_werror_flag" |
9052 | || test ! -s conftest.err' |
9053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9054 | (eval $ac_try) 2>&5 |
9055 | ac_status=$? |
9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9057 | (exit $ac_status); }; } && |
9058 | { ac_try='test -s conftest$ac_exeext' |
9059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9060 | (eval $ac_try) 2>&5 |
9061 | ac_status=$? |
9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9063 | (exit $ac_status); }; }; then |
9064 | ac_cv_lib_svld_dlopen=yes |
9065 | else |
9066 | echo "$as_me: failed program was:" >&5 |
9067 | sed 's/^/| /' conftest.$ac_ext >&5 |
9068 | |
9069 | ac_cv_lib_svld_dlopen=no |
9070 | fi |
9071 | rm -f conftest.err conftest.$ac_objext \ |
9072 | conftest$ac_exeext conftest.$ac_ext |
9073 | LIBS=$ac_check_lib_save_LIBS |
9074 | fi |
9075 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9076 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9077 | if test $ac_cv_lib_svld_dlopen = yes; then |
9078 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9079 | else |
9080 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9081 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9082 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9084 | else |
9085 | ac_check_lib_save_LIBS=$LIBS |
9086 | LIBS="-ldld $LIBS" |
9087 | cat >conftest.$ac_ext <<_ACEOF |
9088 | /* confdefs.h. */ |
9089 | _ACEOF |
9090 | cat confdefs.h >>conftest.$ac_ext |
9091 | cat >>conftest.$ac_ext <<_ACEOF |
9092 | /* end confdefs.h. */ |
9093 | |
9094 | /* Override any gcc2 internal prototype to avoid an error. */ |
9095 | #ifdef __cplusplus |
9096 | extern "C" |
9097 | #endif |
9098 | /* We use char because int might match the return type of a gcc2 |
9099 | builtin and then its argument prototype would still apply. */ |
9100 | char dld_link (); |
9101 | int |
9102 | main () |
9103 | { |
9104 | dld_link (); |
9105 | ; |
9106 | return 0; |
9107 | } |
9108 | _ACEOF |
9109 | rm -f conftest.$ac_objext conftest$ac_exeext |
9110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9111 | (eval $ac_link) 2>conftest.er1 |
9112 | ac_status=$? |
9113 | grep -v '^ *+' conftest.er1 >conftest.err |
9114 | rm -f conftest.er1 |
9115 | cat conftest.err >&5 |
9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9117 | (exit $ac_status); } && |
9118 | { ac_try='test -z "$ac_c_werror_flag" |
9119 | || test ! -s conftest.err' |
9120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9121 | (eval $ac_try) 2>&5 |
9122 | ac_status=$? |
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9124 | (exit $ac_status); }; } && |
9125 | { ac_try='test -s conftest$ac_exeext' |
9126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9127 | (eval $ac_try) 2>&5 |
9128 | ac_status=$? |
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9130 | (exit $ac_status); }; }; then |
9131 | ac_cv_lib_dld_dld_link=yes |
9132 | else |
9133 | echo "$as_me: failed program was:" >&5 |
9134 | sed 's/^/| /' conftest.$ac_ext >&5 |
9135 | |
9136 | ac_cv_lib_dld_dld_link=no |
9137 | fi |
9138 | rm -f conftest.err conftest.$ac_objext \ |
9139 | conftest$ac_exeext conftest.$ac_ext |
9140 | LIBS=$ac_check_lib_save_LIBS |
9141 | fi |
9142 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9143 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9144 | if test $ac_cv_lib_dld_dld_link = yes; then |
9145 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9146 | fi |
9147 | |
9148 | |
9149 | fi |
9150 | |
9151 | |
9152 | fi |
9153 | |
9154 | |
9155 | fi |
9156 | |
9157 | |
9158 | fi |
9159 | |
9160 | |
9161 | fi |
9162 | |
9163 | ;; |
9164 | esac |
9165 | |
9166 | if test "x$lt_cv_dlopen" != xno; then |
9167 | enable_dlopen=yes |
9168 | else |
9169 | enable_dlopen=no |
9170 | fi |
9171 | |
9172 | case $lt_cv_dlopen in |
9173 | dlopen) |
9174 | save_CPPFLAGS="$CPPFLAGS" |
9175 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9176 | |
9177 | save_LDFLAGS="$LDFLAGS" |
9178 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9179 | |
9180 | save_LIBS="$LIBS" |
9181 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9182 | |
9183 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9184 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9185 | if test "${lt_cv_dlopen_self+set}" = set; then |
9186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9187 | else |
9188 | if test "$cross_compiling" = yes; then : |
9189 | lt_cv_dlopen_self=cross |
9190 | else |
9191 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9192 | lt_status=$lt_dlunknown |
9193 | cat > conftest.$ac_ext <<EOF |
9194 | #line 9194 "configure" |
9195 | #include "confdefs.h" |
9196 | |
9197 | #if HAVE_DLFCN_H |
9198 | #include <dlfcn.h> |
9199 | #endif |
9200 | |
9201 | #include <stdio.h> |
9202 | |
9203 | #ifdef RTLD_GLOBAL |
9204 | # define LT_DLGLOBAL RTLD_GLOBAL |
9205 | #else |
9206 | # ifdef DL_GLOBAL |
9207 | # define LT_DLGLOBAL DL_GLOBAL |
9208 | # else |
9209 | # define LT_DLGLOBAL 0 |
9210 | # endif |
9211 | #endif |
9212 | |
9213 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9214 | find out it does not work in some platform. */ |
9215 | #ifndef LT_DLLAZY_OR_NOW |
9216 | # ifdef RTLD_LAZY |
9217 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9218 | # else |
9219 | # ifdef DL_LAZY |
9220 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9221 | # else |
9222 | # ifdef RTLD_NOW |
9223 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9224 | # else |
9225 | # ifdef DL_NOW |
9226 | # define LT_DLLAZY_OR_NOW DL_NOW |
9227 | # else |
9228 | # define LT_DLLAZY_OR_NOW 0 |
9229 | # endif |
9230 | # endif |
9231 | # endif |
9232 | # endif |
9233 | #endif |
9234 | |
9235 | #ifdef __cplusplus |
9236 | extern "C" void exit (int); |
9237 | #endif |
9238 | |
9239 | void fnord() { int i=42;} |
9240 | int main () |
9241 | { |
9242 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9243 | int status = $lt_dlunknown; |
9244 | |
9245 | if (self) |
9246 | { |
9247 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9248 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9249 | /* dlclose (self); */ |
9250 | } |
9251 | else |
9252 | puts (dlerror ()); |
9253 | |
9254 | exit (status); |
9255 | } |
9256 | EOF |
9257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9258 | (eval $ac_link) 2>&5 |
9259 | ac_status=$? |
9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9261 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9262 | (./conftest; exit; ) >&5 2>/dev/null |
9263 | lt_status=$? |
9264 | case x$lt_status in |
9265 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9266 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9267 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9268 | esac |
9269 | else : |
9270 | # compilation failed |
9271 | lt_cv_dlopen_self=no |
9272 | fi |
9273 | fi |
9274 | rm -fr conftest* |
9275 | |
9276 | |
9277 | fi |
9278 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9279 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9280 | |
9281 | if test "x$lt_cv_dlopen_self" = xyes; then |
9282 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9283 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9284 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9285 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9287 | else |
9288 | if test "$cross_compiling" = yes; then : |
9289 | lt_cv_dlopen_self_static=cross |
9290 | else |
9291 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9292 | lt_status=$lt_dlunknown |
9293 | cat > conftest.$ac_ext <<EOF |
9294 | #line 9294 "configure" |
9295 | #include "confdefs.h" |
9296 | |
9297 | #if HAVE_DLFCN_H |
9298 | #include <dlfcn.h> |
9299 | #endif |
9300 | |
9301 | #include <stdio.h> |
9302 | |
9303 | #ifdef RTLD_GLOBAL |
9304 | # define LT_DLGLOBAL RTLD_GLOBAL |
9305 | #else |
9306 | # ifdef DL_GLOBAL |
9307 | # define LT_DLGLOBAL DL_GLOBAL |
9308 | # else |
9309 | # define LT_DLGLOBAL 0 |
9310 | # endif |
9311 | #endif |
9312 | |
9313 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9314 | find out it does not work in some platform. */ |
9315 | #ifndef LT_DLLAZY_OR_NOW |
9316 | # ifdef RTLD_LAZY |
9317 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9318 | # else |
9319 | # ifdef DL_LAZY |
9320 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9321 | # else |
9322 | # ifdef RTLD_NOW |
9323 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9324 | # else |
9325 | # ifdef DL_NOW |
9326 | # define LT_DLLAZY_OR_NOW DL_NOW |
9327 | # else |
9328 | # define LT_DLLAZY_OR_NOW 0 |
9329 | # endif |
9330 | # endif |
9331 | # endif |
9332 | # endif |
9333 | #endif |
9334 | |
9335 | #ifdef __cplusplus |
9336 | extern "C" void exit (int); |
9337 | #endif |
9338 | |
9339 | void fnord() { int i=42;} |
9340 | int main () |
9341 | { |
9342 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9343 | int status = $lt_dlunknown; |
9344 | |
9345 | if (self) |
9346 | { |
9347 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9348 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9349 | /* dlclose (self); */ |
9350 | } |
9351 | else |
9352 | puts (dlerror ()); |
9353 | |
9354 | exit (status); |
9355 | } |
9356 | EOF |
9357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9358 | (eval $ac_link) 2>&5 |
9359 | ac_status=$? |
9360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9361 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9362 | (./conftest; exit; ) >&5 2>/dev/null |
9363 | lt_status=$? |
9364 | case x$lt_status in |
9365 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9366 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9367 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9368 | esac |
9369 | else : |
9370 | # compilation failed |
9371 | lt_cv_dlopen_self_static=no |
9372 | fi |
9373 | fi |
9374 | rm -fr conftest* |
9375 | |
9376 | |
9377 | fi |
9378 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9379 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9380 | fi |
9381 | |
9382 | CPPFLAGS="$save_CPPFLAGS" |
9383 | LDFLAGS="$save_LDFLAGS" |
9384 | LIBS="$save_LIBS" |
9385 | ;; |
9386 | esac |
9387 | |
9388 | case $lt_cv_dlopen_self in |
9389 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9390 | *) enable_dlopen_self=unknown ;; |
9391 | esac |
9392 | |
9393 | case $lt_cv_dlopen_self_static in |
9394 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9395 | *) enable_dlopen_self_static=unknown ;; |
9396 | esac |
9397 | fi |
9398 | |
9399 | |
9400 | # Report which library types will actually be built |
9401 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9402 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9403 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9404 | echo "${ECHO_T}$can_build_shared" >&6 |
9405 | |
9406 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9407 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9408 | test "$can_build_shared" = "no" && enable_shared=no |
9409 | |
9410 | # On AIX, shared libraries and static libraries use the same namespace, and |
9411 | # are all built from PIC. |
9412 | case $host_os in |
9413 | aix3*) |
9414 | test "$enable_shared" = yes && enable_static=no |
9415 | if test -n "$RANLIB"; then |
9416 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9417 | postinstall_cmds='$RANLIB $lib' |
9418 | fi |
9419 | ;; |
9420 | |
9421 | aix4* | aix5*) |
9422 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9423 | test "$enable_shared" = yes && enable_static=no |
9424 | fi |
9425 | ;; |
9426 | esac |
9427 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9428 | echo "${ECHO_T}$enable_shared" >&6 |
9429 | |
9430 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9431 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9432 | # Make sure either enable_shared or enable_static is yes. |
9433 | test "$enable_shared" = yes || enable_static=yes |
9434 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
9435 | echo "${ECHO_T}$enable_static" >&6 |
9436 | |
9437 | # The else clause should only fire when bootstrapping the |
9438 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
9439 | # with your package, and you will get complaints that there are |
9440 | # no rules to generate ltmain.sh. |
9441 | if test -f "$ltmain"; then |
9442 | # See if we are running on zsh, and set the options which allow our commands through |
9443 | # without removal of \ escapes. |
9444 | if test -n "${ZSH_VERSION+set}" ; then |
9445 | setopt NO_GLOB_SUBST |
9446 | fi |
9447 | # Now quote all the things that may contain metacharacters while being |
9448 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9449 | # variables and quote the copies for generation of the libtool script. |
9450 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9451 | SED SHELL STRIP \ |
9452 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9453 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9454 | deplibs_check_method reload_flag reload_cmds need_locks \ |
9455 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9456 | lt_cv_sys_global_symbol_to_c_name_address \ |
9457 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9458 | old_postinstall_cmds old_postuninstall_cmds \ |
9459 | compiler \ |
9460 | CC \ |
9461 | LD \ |
9462 | lt_prog_compiler_wl \ |
9463 | lt_prog_compiler_pic \ |
9464 | lt_prog_compiler_static \ |
9465 | lt_prog_compiler_no_builtin_flag \ |
9466 | export_dynamic_flag_spec \ |
9467 | thread_safe_flag_spec \ |
9468 | whole_archive_flag_spec \ |
9469 | enable_shared_with_static_runtimes \ |
9470 | old_archive_cmds \ |
9471 | old_archive_from_new_cmds \ |
9472 | predep_objects \ |
9473 | postdep_objects \ |
9474 | predeps \ |
9475 | postdeps \ |
9476 | compiler_lib_search_path \ |
9477 | archive_cmds \ |
9478 | archive_expsym_cmds \ |
9479 | postinstall_cmds \ |
9480 | postuninstall_cmds \ |
9481 | old_archive_from_expsyms_cmds \ |
9482 | allow_undefined_flag \ |
9483 | no_undefined_flag \ |
9484 | export_symbols_cmds \ |
9485 | hardcode_libdir_flag_spec \ |
9486 | hardcode_libdir_flag_spec_ld \ |
9487 | hardcode_libdir_separator \ |
9488 | hardcode_automatic \ |
9489 | module_cmds \ |
9490 | module_expsym_cmds \ |
9491 | lt_cv_prog_compiler_c_o \ |
9492 | exclude_expsyms \ |
9493 | include_expsyms; do |
9494 | |
9495 | case $var in |
9496 | old_archive_cmds | \ |
9497 | old_archive_from_new_cmds | \ |
9498 | archive_cmds | \ |
9499 | archive_expsym_cmds | \ |
9500 | module_cmds | \ |
9501 | module_expsym_cmds | \ |
9502 | old_archive_from_expsyms_cmds | \ |
9503 | export_symbols_cmds | \ |
9504 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9505 | postinstall_cmds | postuninstall_cmds | \ |
9506 | old_postinstall_cmds | old_postuninstall_cmds | \ |
9507 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9508 | # Double-quote double-evaled strings. |
9509 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9510 | ;; |
9511 | *) |
9512 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9513 | ;; |
9514 | esac |
9515 | done |
9516 | |
9517 | case $lt_echo in |
9518 | *'\$0 --fallback-echo"') |
9519 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9520 | ;; |
9521 | esac |
9522 | |
9523 | cfgfile="${ofile}T" |
9524 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9525 | $rm -f "$cfgfile" |
9526 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
9527 | echo "$as_me: creating $ofile" >&6;} |
9528 | |
9529 | cat <<__EOF__ >> "$cfgfile" |
9530 | #! $SHELL |
9531 | |
9532 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9533 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9534 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9535 | # |
9536 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9537 | # Free Software Foundation, Inc. |
9538 | # |
9539 | # This file is part of GNU Libtool: |
9540 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9541 | # |
9542 | # This program is free software; you can redistribute it and/or modify |
9543 | # it under the terms of the GNU General Public License as published by |
9544 | # the Free Software Foundation; either version 2 of the License, or |
9545 | # (at your option) any later version. |
9546 | # |
9547 | # This program is distributed in the hope that it will be useful, but |
9548 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
9549 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9550 | # General Public License for more details. |
9551 | # |
9552 | # You should have received a copy of the GNU General Public License |
9553 | # along with this program; if not, write to the Free Software |
9554 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9555 | # |
9556 | # As a special exception to the GNU General Public License, if you |
9557 | # distribute this file as part of a program that contains a |
9558 | # configuration script generated by Autoconf, you may include it under |
9559 | # the same distribution terms that you use for the rest of that program. |
9560 | |
9561 | # A sed program that does not truncate output. |
9562 | SED=$lt_SED |
9563 | |
9564 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9565 | Xsed="$SED -e 1s/^X//" |
9566 | |
9567 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
9568 | # if CDPATH is set. |
9569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9570 | |
9571 | # The names of the tagged configurations supported by this script. |
9572 | available_tags= |
9573 | |
9574 | # ### BEGIN LIBTOOL CONFIG |
9575 | |
9576 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9577 | |
9578 | # Shell to use when invoking shell scripts. |
9579 | SHELL=$lt_SHELL |
9580 | |
9581 | # Whether or not to build shared libraries. |
9582 | build_libtool_libs=$enable_shared |
9583 | |
9584 | # Whether or not to build static libraries. |
9585 | build_old_libs=$enable_static |
9586 | |
9587 | # Whether or not to add -lc for building shared libraries. |
9588 | build_libtool_need_lc=$archive_cmds_need_lc |
9589 | |
9590 | # Whether or not to disallow shared libs when runtime libs are static |
9591 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9592 | |
9593 | # Whether or not to optimize for fast installation. |
9594 | fast_install=$enable_fast_install |
9595 | |
9596 | # The host system. |
9597 | host_alias=$host_alias |
9598 | host=$host |
9599 | host_os=$host_os |
9600 | |
9601 | # The build system. |
9602 | build_alias=$build_alias |
9603 | build=$build |
9604 | build_os=$build_os |
9605 | |
9606 | # An echo program that does not interpret backslashes. |
9607 | echo=$lt_echo |
9608 | |
9609 | # The archiver. |
9610 | AR=$lt_AR |
9611 | AR_FLAGS=$lt_AR_FLAGS |
9612 | |
9613 | # A C compiler. |
9614 | LTCC=$lt_LTCC |
9615 | |
9616 | # LTCC compiler flags. |
9617 | LTCFLAGS=$lt_LTCFLAGS |
9618 | |
9619 | # A language-specific compiler. |
9620 | CC=$lt_compiler |
9621 | |
9622 | # Is the compiler the GNU C compiler? |
9623 | with_gcc=$GCC |
9624 | |
9625 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
9626 | gcc_ver=\`gcc -dumpversion\` |
9627 | |
9628 | # An ERE matcher. |
9629 | EGREP=$lt_EGREP |
9630 | |
9631 | # The linker used to build libraries. |
9632 | LD=$lt_LD |
9633 | |
9634 | # Whether we need hard or soft links. |
9635 | LN_S=$lt_LN_S |
9636 | |
9637 | # A BSD-compatible nm program. |
9638 | NM=$lt_NM |
9639 | |
9640 | # A symbol stripping program |
9641 | STRIP=$lt_STRIP |
9642 | |
9643 | # Used to examine libraries when file_magic_cmd begins "file" |
9644 | MAGIC_CMD=$MAGIC_CMD |
9645 | |
9646 | # Used on cygwin: DLL creation program. |
9647 | DLLTOOL="$DLLTOOL" |
9648 | |
9649 | # Used on cygwin: object dumper. |
9650 | OBJDUMP="$OBJDUMP" |
9651 | |
9652 | # Used on cygwin: assembler. |
9653 | AS="$AS" |
9654 | |
9655 | # The name of the directory that contains temporary libtool files. |
9656 | objdir=$objdir |
9657 | |
9658 | # How to create reloadable object files. |
9659 | reload_flag=$lt_reload_flag |
9660 | reload_cmds=$lt_reload_cmds |
9661 | |
9662 | # How to pass a linker flag through the compiler. |
9663 | wl=$lt_lt_prog_compiler_wl |
9664 | |
9665 | # Object file suffix (normally "o"). |
9666 | objext="$ac_objext" |
9667 | |
9668 | # Old archive suffix (normally "a"). |
9669 | libext="$libext" |
9670 | |
9671 | # Shared library suffix (normally ".so"). |
9672 | shrext_cmds='$shrext_cmds' |
9673 | |
9674 | # Executable file suffix (normally ""). |
9675 | exeext="$exeext" |
9676 | |
9677 | # Additional compiler flags for building library objects. |
9678 | pic_flag=$lt_lt_prog_compiler_pic |
9679 | pic_mode=$pic_mode |
9680 | |
9681 | # What is the maximum length of a command? |
9682 | max_cmd_len=$lt_cv_sys_max_cmd_len |
9683 | |
9684 | # Does compiler simultaneously support -c and -o options? |
9685 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9686 | |
9687 | # Must we lock files when doing compilation? |
9688 | need_locks=$lt_need_locks |
9689 | |
9690 | # Do we need the lib prefix for modules? |
9691 | need_lib_prefix=$need_lib_prefix |
9692 | |
9693 | # Do we need a version for libraries? |
9694 | need_version=$need_version |
9695 | |
9696 | # Whether dlopen is supported. |
9697 | dlopen_support=$enable_dlopen |
9698 | |
9699 | # Whether dlopen of programs is supported. |
9700 | dlopen_self=$enable_dlopen_self |
9701 | |
9702 | # Whether dlopen of statically linked programs is supported. |
9703 | dlopen_self_static=$enable_dlopen_self_static |
9704 | |
9705 | # Compiler flag to prevent dynamic linking. |
9706 | link_static_flag=$lt_lt_prog_compiler_static |
9707 | |
9708 | # Compiler flag to turn off builtin functions. |
9709 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9710 | |
9711 | # Compiler flag to allow reflexive dlopens. |
9712 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9713 | |
9714 | # Compiler flag to generate shared objects directly from archives. |
9715 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9716 | |
9717 | # Compiler flag to generate thread-safe objects. |
9718 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9719 | |
9720 | # Library versioning type. |
9721 | version_type=$version_type |
9722 | |
9723 | # Format of library name prefix. |
9724 | libname_spec=$lt_libname_spec |
9725 | |
9726 | # List of archive names. First name is the real one, the rest are links. |
9727 | # The last name is the one that the linker finds with -lNAME. |
9728 | library_names_spec=$lt_library_names_spec |
9729 | |
9730 | # The coded name of the library, if different from the real name. |
9731 | soname_spec=$lt_soname_spec |
9732 | |
9733 | # Commands used to build and install an old-style archive. |
9734 | RANLIB=$lt_RANLIB |
9735 | old_archive_cmds=$lt_old_archive_cmds |
9736 | old_postinstall_cmds=$lt_old_postinstall_cmds |
9737 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9738 | |
9739 | # Create an old-style archive from a shared archive. |
9740 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9741 | |
9742 | # Create a temporary old-style archive to link instead of a shared archive. |
9743 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9744 | |
9745 | # Commands used to build and install a shared archive. |
9746 | archive_cmds=$lt_archive_cmds |
9747 | archive_expsym_cmds=$lt_archive_expsym_cmds |
9748 | postinstall_cmds=$lt_postinstall_cmds |
9749 | postuninstall_cmds=$lt_postuninstall_cmds |
9750 | |
9751 | # Commands used to build a loadable module (assumed same as above if empty) |
9752 | module_cmds=$lt_module_cmds |
9753 | module_expsym_cmds=$lt_module_expsym_cmds |
9754 | |
9755 | # Commands to strip libraries. |
9756 | old_striplib=$lt_old_striplib |
9757 | striplib=$lt_striplib |
9758 | |
9759 | # Dependencies to place before the objects being linked to create a |
9760 | # shared library. |
9761 | predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9762 | |
9763 | # Dependencies to place after the objects being linked to create a |
9764 | # shared library. |
9765 | postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9766 | |
9767 | # Dependencies to place before the objects being linked to create a |
9768 | # shared library. |
9769 | predeps=$lt_predeps |
9770 | |
9771 | # Dependencies to place after the objects being linked to create a |
9772 | # shared library. |
9773 | postdeps=$lt_postdeps |
9774 | |
9775 | # The library search path used internally by the compiler when linking |
9776 | # a shared library. |
9777 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9778 | |
9779 | # Method to check whether dependent libraries are shared objects. |
9780 | deplibs_check_method=$lt_deplibs_check_method |
9781 | |
9782 | # Command to use when deplibs_check_method == file_magic. |
9783 | file_magic_cmd=$lt_file_magic_cmd |
9784 | |
9785 | # Flag that allows shared libraries with undefined symbols to be built. |
9786 | allow_undefined_flag=$lt_allow_undefined_flag |
9787 | |
9788 | # Flag that forces no undefined symbols. |
9789 | no_undefined_flag=$lt_no_undefined_flag |
9790 | |
9791 | # Commands used to finish a libtool library installation in a directory. |
9792 | finish_cmds=$lt_finish_cmds |
9793 | |
9794 | # Same as above, but a single script fragment to be evaled but not shown. |
9795 | finish_eval=$lt_finish_eval |
9796 | |
9797 | # Take the output of nm and produce a listing of raw symbols and C names. |
9798 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9799 | |
9800 | # Transform the output of nm in a proper C declaration |
9801 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9802 | |
9803 | # Transform the output of nm in a C name address pair |
9804 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9805 | |
9806 | # This is the shared library runtime path variable. |
9807 | runpath_var=$runpath_var |
9808 | |
9809 | # This is the shared library path variable. |
9810 | shlibpath_var=$shlibpath_var |
9811 | |
9812 | # Is shlibpath searched before the hard-coded library search path? |
9813 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9814 | |
9815 | # How to hardcode a shared library path into an executable. |
9816 | hardcode_action=$hardcode_action |
9817 | |
9818 | # Whether we should hardcode library paths into libraries. |
9819 | hardcode_into_libs=$hardcode_into_libs |
9820 | |
9821 | # Flag to hardcode \$libdir into a binary during linking. |
9822 | # This must work even if \$libdir does not exist. |
9823 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9824 | |
9825 | # If ld is used when linking, flag to hardcode \$libdir into |
9826 | # a binary during linking. This must work even if \$libdir does |
9827 | # not exist. |
9828 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9829 | |
9830 | # Whether we need a single -rpath flag with a separated argument. |
9831 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9832 | |
9833 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9834 | # resulting binary. |
9835 | hardcode_direct=$hardcode_direct |
9836 | |
9837 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9838 | # resulting binary. |
9839 | hardcode_minus_L=$hardcode_minus_L |
9840 | |
9841 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9842 | # the resulting binary. |
9843 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
9844 | |
9845 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
9846 | # and all subsequent libraries and executables linked against it. |
9847 | hardcode_automatic=$hardcode_automatic |
9848 | |
9849 | # Variables whose values should be saved in libtool wrapper scripts and |
9850 | # restored at relink time. |
9851 | variables_saved_for_relink="$variables_saved_for_relink" |
9852 | |
9853 | # Whether libtool must link a program against all its dependency libraries. |
9854 | link_all_deplibs=$link_all_deplibs |
9855 | |
9856 | # Compile-time system search path for libraries |
9857 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
9858 | |
9859 | # Run-time system search path for libraries |
9860 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9861 | |
9862 | # Fix the shell variable \$srcfile for the compiler. |
9863 | fix_srcfile_path="$fix_srcfile_path" |
9864 | |
9865 | # Set to yes if exported symbols are required. |
9866 | always_export_symbols=$always_export_symbols |
9867 | |
9868 | # The commands to list exported symbols. |
9869 | export_symbols_cmds=$lt_export_symbols_cmds |
9870 | |
9871 | # The commands to extract the exported symbol list from a shared archive. |
9872 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9873 | |
9874 | # Symbols that should not be listed in the preloaded symbols. |
9875 | exclude_expsyms=$lt_exclude_expsyms |
9876 | |
9877 | # Symbols that must always be exported. |
9878 | include_expsyms=$lt_include_expsyms |
9879 | |
9880 | # ### END LIBTOOL CONFIG |
9881 | |
9882 | __EOF__ |
9883 | |
9884 | |
9885 | case $host_os in |
9886 | aix3*) |
9887 | cat <<\EOF >> "$cfgfile" |
9888 | |
9889 | # AIX sometimes has problems with the GCC collect2 program. For some |
9890 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
9891 | # vanish in a puff of smoke. |
9892 | if test "X${COLLECT_NAMES+set}" != Xset; then |
9893 | COLLECT_NAMES= |
9894 | export COLLECT_NAMES |
9895 | fi |
9896 | EOF |
9897 | ;; |
9898 | esac |
9899 | |
9900 | # We use sed instead of cat because bash on DJGPP gets confused if |
9901 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
9902 | # text mode, it properly converts lines to CR/LF. This bash problem |
9903 | # is reportedly fixed, but why not run on old versions too? |
9904 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9905 | |
9906 | mv -f "$cfgfile" "$ofile" || \ |
9907 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9908 | chmod +x "$ofile" |
9909 | |
9910 | else |
9911 | # If there is no Makefile yet, we rely on a make rule to execute |
9912 | # `config.status --recheck' to rerun these tests and create the |
9913 | # libtool script then. |
9914 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9915 | if test -f "$ltmain_in"; then |
9916 | test -f Makefile && make "$ltmain" |
9917 | fi |
9918 | fi |
9919 | |
9920 | |
9921 | ac_ext=c |
9922 | ac_cpp='$CPP $CPPFLAGS' |
9923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9926 | |
9927 | CC="$lt_save_CC" |
9928 | |
9929 | |
9930 | # Check whether --with-tags or --without-tags was given. |
9931 | if test "${with_tags+set}" = set; then |
9932 | withval="$with_tags" |
9933 | tagnames="$withval" |
9934 | fi; |
9935 | |
9936 | if test -f "$ltmain" && test -n "$tagnames"; then |
9937 | if test ! -f "${ofile}"; then |
9938 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9939 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9940 | fi |
9941 | |
9942 | if test -z "$LTCC"; then |
9943 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9944 | if test -z "$LTCC"; then |
9945 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
9946 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
9947 | else |
9948 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
9949 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
9950 | fi |
9951 | fi |
9952 | if test -z "$LTCFLAGS"; then |
9953 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
9954 | fi |
9955 | |
9956 | # Extract list of available tagged configurations in $ofile. |
9957 | # Note that this assumes the entire list is on one line. |
9958 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
9959 | |
9960 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
9961 | for tagname in $tagnames; do |
9962 | IFS="$lt_save_ifs" |
9963 | # Check whether tagname contains only valid characters |
9964 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
9965 | "") ;; |
9966 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
9967 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
9968 | { (exit 1); exit 1; }; } |
9969 | ;; |
9970 | esac |
9971 | |
9972 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
9973 | then |
9974 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
9975 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
9976 | { (exit 1); exit 1; }; } |
9977 | fi |
9978 | |
9979 | # Update the list of available tags. |
9980 | if test -n "$tagname"; then |
9981 | echo appending configuration tag \"$tagname\" to $ofile |
9982 | |
9983 | case $tagname in |
9984 | CXX) |
9985 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
9986 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
9987 | (test "X$CXX" != "Xg++"))) ; then |
9988 | ac_ext=cc |
9989 | ac_cpp='$CXXCPP $CPPFLAGS' |
9990 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9991 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9992 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9993 | |
9994 | |
9995 | |
9996 | |
9997 | archive_cmds_need_lc_CXX=no |
9998 | allow_undefined_flag_CXX= |
9999 | always_export_symbols_CXX=no |
10000 | archive_expsym_cmds_CXX= |
10001 | export_dynamic_flag_spec_CXX= |
10002 | hardcode_direct_CXX=no |
10003 | hardcode_libdir_flag_spec_CXX= |
10004 | hardcode_libdir_flag_spec_ld_CXX= |
10005 | hardcode_libdir_separator_CXX= |
10006 | hardcode_minus_L_CXX=no |
10007 | hardcode_shlibpath_var_CXX=unsupported |
10008 | hardcode_automatic_CXX=no |
10009 | module_cmds_CXX= |
10010 | module_expsym_cmds_CXX= |
10011 | link_all_deplibs_CXX=unknown |
10012 | old_archive_cmds_CXX=$old_archive_cmds |
10013 | no_undefined_flag_CXX= |
10014 | whole_archive_flag_spec_CXX= |
10015 | enable_shared_with_static_runtimes_CXX=no |
10016 | |
10017 | # Dependencies to place before and after the object being linked: |
10018 | predep_objects_CXX= |
10019 | postdep_objects_CXX= |
10020 | predeps_CXX= |
10021 | postdeps_CXX= |
10022 | compiler_lib_search_path_CXX= |
10023 | |
10024 | # Source file extension for C++ test sources. |
10025 | ac_ext=cpp |
10026 | |
10027 | # Object file extension for compiled C++ test sources. |
10028 | objext=o |
10029 | objext_CXX=$objext |
10030 | |
10031 | # Code to be used in simple compile tests |
10032 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10033 | |
10034 | # Code to be used in simple link tests |
10035 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10036 | |
10037 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10038 | |
10039 | # If no C compiler was specified, use CC. |
10040 | LTCC=${LTCC-"$CC"} |
10041 | |
10042 | # If no C compiler flags were specified, use CFLAGS. |
10043 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10044 | |
10045 | # Allow CC to be a program name with arguments. |
10046 | compiler=$CC |
10047 | |
10048 | |
10049 | # save warnings/boilerplate of simple test code |
10050 | ac_outfile=conftest.$ac_objext |
10051 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10052 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10053 | _lt_compiler_boilerplate=`cat conftest.err` |
10054 | $rm conftest* |
10055 | |
10056 | ac_outfile=conftest.$ac_objext |
10057 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10058 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10059 | _lt_linker_boilerplate=`cat conftest.err` |
10060 | $rm conftest* |
10061 | |
10062 | |
10063 | # Allow CC to be a program name with arguments. |
10064 | lt_save_CC=$CC |
10065 | lt_save_LD=$LD |
10066 | lt_save_GCC=$GCC |
10067 | GCC=$GXX |
10068 | lt_save_with_gnu_ld=$with_gnu_ld |
10069 | lt_save_path_LD=$lt_cv_path_LD |
10070 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10071 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10072 | else |
10073 | $as_unset lt_cv_prog_gnu_ld |
10074 | fi |
10075 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10076 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10077 | else |
10078 | $as_unset lt_cv_path_LD |
10079 | fi |
10080 | test -z "${LDCXX+set}" || LD=$LDCXX |
10081 | CC=${CXX-"c++"} |
10082 | compiler=$CC |
10083 | compiler_CXX=$CC |
10084 | for cc_temp in $compiler""; do |
10085 | case $cc_temp in |
10086 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10087 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10088 | \-*) ;; |
10089 | *) break;; |
10090 | esac |
10091 | done |
10092 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10093 | |
10094 | |
10095 | # We don't want -fno-exception wen compiling C++ code, so set the |
10096 | # no_builtin_flag separately |
10097 | if test "$GXX" = yes; then |
10098 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10099 | else |
10100 | lt_prog_compiler_no_builtin_flag_CXX= |
10101 | fi |
10102 | |
10103 | if test "$GXX" = yes; then |
10104 | # Set up default GNU C++ configuration |
10105 | |
10106 | |
10107 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
10108 | if test "${with_gnu_ld+set}" = set; then |
10109 | withval="$with_gnu_ld" |
10110 | test "$withval" = no || with_gnu_ld=yes |
10111 | else |
10112 | with_gnu_ld=no |
10113 | fi; |
10114 | ac_prog=ld |
10115 | if test "$GCC" = yes; then |
10116 | # Check if gcc -print-prog-name=ld gives a path. |
10117 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10118 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10119 | case $host in |
10120 | *-*-mingw*) |
10121 | # gcc leaves a trailing carriage return which upsets mingw |
10122 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10123 | *) |
10124 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10125 | esac |
10126 | case $ac_prog in |
10127 | # Accept absolute paths. |
10128 | [\\/]* | ?:[\\/]*) |
10129 | re_direlt='/[^/][^/]*/\.\./' |
10130 | # Canonicalize the pathname of ld |
10131 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10132 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10133 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10134 | done |
10135 | test -z "$LD" && LD="$ac_prog" |
10136 | ;; |
10137 | "") |
10138 | # If it fails, then pretend we aren't using GCC. |
10139 | ac_prog=ld |
10140 | ;; |
10141 | *) |
10142 | # If it is relative, then search for the first ld in PATH. |
10143 | with_gnu_ld=unknown |
10144 | ;; |
10145 | esac |
10146 | elif test "$with_gnu_ld" = yes; then |
10147 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10148 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10149 | else |
10150 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10151 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10152 | fi |
10153 | if test "${lt_cv_path_LD+set}" = set; then |
10154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10155 | else |
10156 | if test -z "$LD"; then |
10157 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10158 | for ac_dir in $PATH; do |
10159 | IFS="$lt_save_ifs" |
10160 | test -z "$ac_dir" && ac_dir=. |
10161 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10162 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10163 | # Check to see if the program is GNU ld. I'd rather use --version, |
10164 | # but apparently some variants of GNU ld only accept -v. |
10165 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10166 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10167 | *GNU* | *'with BFD'*) |
10168 | test "$with_gnu_ld" != no && break |
10169 | ;; |
10170 | *) |
10171 | test "$with_gnu_ld" != yes && break |
10172 | ;; |
10173 | esac |
10174 | fi |
10175 | done |
10176 | IFS="$lt_save_ifs" |
10177 | else |
10178 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10179 | fi |
10180 | fi |
10181 | |
10182 | LD="$lt_cv_path_LD" |
10183 | if test -n "$LD"; then |
10184 | echo "$as_me:$LINENO: result: $LD" >&5 |
10185 | echo "${ECHO_T}$LD" >&6 |
10186 | else |
10187 | echo "$as_me:$LINENO: result: no" >&5 |
10188 | echo "${ECHO_T}no" >&6 |
10189 | fi |
10190 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10191 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10192 | { (exit 1); exit 1; }; } |
10193 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10194 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10195 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10197 | else |
10198 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10199 | case `$LD -v 2>&1 </dev/null` in |
10200 | *GNU* | *'with BFD'*) |
10201 | lt_cv_prog_gnu_ld=yes |
10202 | ;; |
10203 | *) |
10204 | lt_cv_prog_gnu_ld=no |
10205 | ;; |
10206 | esac |
10207 | fi |
10208 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10209 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10210 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10211 | |
10212 | |
10213 | |
10214 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10215 | # archiving commands below assume that GNU ld is being used. |
10216 | if test "$with_gnu_ld" = yes; then |
10217 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10218 | 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' |
10219 | |
10220 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10221 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10222 | |
10223 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10224 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10225 | # investigate it a little bit more. (MM) |
10226 | wlarc='${wl}' |
10227 | |
10228 | # ancient GNU ld didn't support --whole-archive et. al. |
10229 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10230 | grep 'no-whole-archive' > /dev/null; then |
10231 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10232 | else |
10233 | whole_archive_flag_spec_CXX= |
10234 | fi |
10235 | else |
10236 | with_gnu_ld=no |
10237 | wlarc= |
10238 | |
10239 | # A generic and very simple default shared library creation |
10240 | # command for GNU C++ for the case where it uses the native |
10241 | # linker, instead of GNU ld. If possible, this setting should |
10242 | # overridden to take advantage of the native linker features on |
10243 | # the platform it is being used on. |
10244 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10245 | fi |
10246 | |
10247 | # Commands to make compiler produce verbose output that lists |
10248 | # what "hidden" libraries, object files and flags are used when |
10249 | # linking a shared library. |
10250 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10251 | |
10252 | else |
10253 | GXX=no |
10254 | with_gnu_ld=no |
10255 | wlarc= |
10256 | fi |
10257 | |
10258 | # PORTME: fill in a description of your system's C++ link characteristics |
10259 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10260 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10261 | ld_shlibs_CXX=yes |
10262 | case $host_os in |
10263 | aix3*) |
10264 | # FIXME: insert proper C++ library support |
10265 | ld_shlibs_CXX=no |
10266 | ;; |
10267 | aix4* | aix5*) |
10268 | if test "$host_cpu" = ia64; then |
10269 | # On IA64, the linker does run time linking by default, so we don't |
10270 | # have to do anything special. |
10271 | aix_use_runtimelinking=no |
10272 | exp_sym_flag='-Bexport' |
10273 | no_entry_flag="" |
10274 | else |
10275 | aix_use_runtimelinking=no |
10276 | |
10277 | # Test if we are trying to use run time linking or normal |
10278 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10279 | # need to do runtime linking. |
10280 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10281 | for ld_flag in $LDFLAGS; do |
10282 | case $ld_flag in |
10283 | *-brtl*) |
10284 | aix_use_runtimelinking=yes |
10285 | break |
10286 | ;; |
10287 | esac |
10288 | done |
10289 | ;; |
10290 | esac |
10291 | |
10292 | exp_sym_flag='-bexport' |
10293 | no_entry_flag='-bnoentry' |
10294 | fi |
10295 | |
10296 | # When large executables or shared objects are built, AIX ld can |
10297 | # have problems creating the table of contents. If linking a library |
10298 | # or program results in "error TOC overflow" add -mminimal-toc to |
10299 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10300 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10301 | |
10302 | archive_cmds_CXX='' |
10303 | hardcode_direct_CXX=yes |
10304 | hardcode_libdir_separator_CXX=':' |
10305 | link_all_deplibs_CXX=yes |
10306 | |
10307 | if test "$GXX" = yes; then |
10308 | case $host_os in aix4.[012]|aix4.[012].*) |
10309 | # We only want to do this on AIX 4.2 and lower, the check |
10310 | # below for broken collect2 doesn't work under 4.3+ |
10311 | collect2name=`${CC} -print-prog-name=collect2` |
10312 | if test -f "$collect2name" && \ |
10313 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10314 | then |
10315 | # We have reworked collect2 |
10316 | hardcode_direct_CXX=yes |
10317 | else |
10318 | # We have old collect2 |
10319 | hardcode_direct_CXX=unsupported |
10320 | # It fails to find uninstalled libraries when the uninstalled |
10321 | # path is not listed in the libpath. Setting hardcode_minus_L |
10322 | # to unsupported forces relinking |
10323 | hardcode_minus_L_CXX=yes |
10324 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10325 | hardcode_libdir_separator_CXX= |
10326 | fi |
10327 | ;; |
10328 | esac |
10329 | shared_flag='-shared' |
10330 | if test "$aix_use_runtimelinking" = yes; then |
10331 | shared_flag="$shared_flag "'${wl}-G' |
10332 | fi |
10333 | else |
10334 | # not using gcc |
10335 | if test "$host_cpu" = ia64; then |
10336 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10337 | # chokes on -Wl,-G. The following line is correct: |
10338 | shared_flag='-G' |
10339 | else |
10340 | if test "$aix_use_runtimelinking" = yes; then |
10341 | shared_flag='${wl}-G' |
10342 | else |
10343 | shared_flag='${wl}-bM:SRE' |
10344 | fi |
10345 | fi |
10346 | fi |
10347 | |
10348 | # It seems that -bexpall does not export symbols beginning with |
10349 | # underscore (_), so it is better to generate a list of symbols to export. |
10350 | always_export_symbols_CXX=yes |
10351 | if test "$aix_use_runtimelinking" = yes; then |
10352 | # Warning - without using the other runtime loading flags (-brtl), |
10353 | # -berok will link without error, but may produce a broken library. |
10354 | allow_undefined_flag_CXX='-berok' |
10355 | # Determine the default libpath from the value encoded in an empty executable. |
10356 | cat >conftest.$ac_ext <<_ACEOF |
10357 | /* confdefs.h. */ |
10358 | _ACEOF |
10359 | cat confdefs.h >>conftest.$ac_ext |
10360 | cat >>conftest.$ac_ext <<_ACEOF |
10361 | /* end confdefs.h. */ |
10362 | |
10363 | int |
10364 | main () |
10365 | { |
10366 | |
10367 | ; |
10368 | return 0; |
10369 | } |
10370 | _ACEOF |
10371 | rm -f conftest.$ac_objext conftest$ac_exeext |
10372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10373 | (eval $ac_link) 2>conftest.er1 |
10374 | ac_status=$? |
10375 | grep -v '^ *+' conftest.er1 >conftest.err |
10376 | rm -f conftest.er1 |
10377 | cat conftest.err >&5 |
10378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10379 | (exit $ac_status); } && |
10380 | { ac_try='test -z "$ac_cxx_werror_flag" |
10381 | || test ! -s conftest.err' |
10382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10383 | (eval $ac_try) 2>&5 |
10384 | ac_status=$? |
10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10386 | (exit $ac_status); }; } && |
10387 | { ac_try='test -s conftest$ac_exeext' |
10388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10389 | (eval $ac_try) 2>&5 |
10390 | ac_status=$? |
10391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10392 | (exit $ac_status); }; }; then |
10393 | |
10394 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10395 | }'` |
10396 | # Check for a 64-bit object if we didn't find anything. |
10397 | 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; } |
10398 | }'`; fi |
10399 | else |
10400 | echo "$as_me: failed program was:" >&5 |
10401 | sed 's/^/| /' conftest.$ac_ext >&5 |
10402 | |
10403 | fi |
10404 | rm -f conftest.err conftest.$ac_objext \ |
10405 | conftest$ac_exeext conftest.$ac_ext |
10406 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10407 | |
10408 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10409 | |
10410 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
10411 | else |
10412 | if test "$host_cpu" = ia64; then |
10413 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10414 | allow_undefined_flag_CXX="-z nodefs" |
10415 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
10416 | else |
10417 | # Determine the default libpath from the value encoded in an empty executable. |
10418 | cat >conftest.$ac_ext <<_ACEOF |
10419 | /* confdefs.h. */ |
10420 | _ACEOF |
10421 | cat confdefs.h >>conftest.$ac_ext |
10422 | cat >>conftest.$ac_ext <<_ACEOF |
10423 | /* end confdefs.h. */ |
10424 | |
10425 | int |
10426 | main () |
10427 | { |
10428 | |
10429 | ; |
10430 | return 0; |
10431 | } |
10432 | _ACEOF |
10433 | rm -f conftest.$ac_objext conftest$ac_exeext |
10434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10435 | (eval $ac_link) 2>conftest.er1 |
10436 | ac_status=$? |
10437 | grep -v '^ *+' conftest.er1 >conftest.err |
10438 | rm -f conftest.er1 |
10439 | cat conftest.err >&5 |
10440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10441 | (exit $ac_status); } && |
10442 | { ac_try='test -z "$ac_cxx_werror_flag" |
10443 | || test ! -s conftest.err' |
10444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10445 | (eval $ac_try) 2>&5 |
10446 | ac_status=$? |
10447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10448 | (exit $ac_status); }; } && |
10449 | { ac_try='test -s conftest$ac_exeext' |
10450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10451 | (eval $ac_try) 2>&5 |
10452 | ac_status=$? |
10453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10454 | (exit $ac_status); }; }; then |
10455 | |
10456 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10457 | }'` |
10458 | # Check for a 64-bit object if we didn't find anything. |
10459 | 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; } |
10460 | }'`; fi |
10461 | else |
10462 | echo "$as_me: failed program was:" >&5 |
10463 | sed 's/^/| /' conftest.$ac_ext >&5 |
10464 | |
10465 | fi |
10466 | rm -f conftest.err conftest.$ac_objext \ |
10467 | conftest$ac_exeext conftest.$ac_ext |
10468 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10469 | |
10470 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10471 | # Warning - without using the other run time loading flags, |
10472 | # -berok will link without error, but may produce a broken library. |
10473 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10474 | allow_undefined_flag_CXX=' ${wl}-berok' |
10475 | # Exported symbols can be pulled into shared objects from archives |
10476 | whole_archive_flag_spec_CXX='$convenience' |
10477 | archive_cmds_need_lc_CXX=yes |
10478 | # This is similar to how AIX traditionally builds its shared libraries. |
10479 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
10480 | fi |
10481 | fi |
10482 | ;; |
10483 | |
10484 | beos*) |
10485 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
10486 | allow_undefined_flag_CXX=unsupported |
10487 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
10488 | # support --undefined. This deserves some investigation. FIXME |
10489 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10490 | else |
10491 | ld_shlibs_CXX=no |
10492 | fi |
10493 | ;; |
10494 | |
10495 | chorus*) |
10496 | case $cc_basename in |
10497 | *) |
10498 | # FIXME: insert proper C++ library support |
10499 | ld_shlibs_CXX=no |
10500 | ;; |
10501 | esac |
10502 | ;; |
10503 | |
10504 | cygwin* | mingw* | pw32*) |
10505 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10506 | # as there is no search path for DLLs. |
10507 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10508 | allow_undefined_flag_CXX=unsupported |
10509 | always_export_symbols_CXX=no |
10510 | enable_shared_with_static_runtimes_CXX=yes |
10511 | |
10512 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10513 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10514 | # If the export-symbols file already is a .def file (1st line |
10515 | # is EXPORTS), use it as is; otherwise, prepend... |
10516 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10517 | cp $export_symbols $output_objdir/$soname.def; |
10518 | else |
10519 | echo EXPORTS > $output_objdir/$soname.def; |
10520 | cat $export_symbols >> $output_objdir/$soname.def; |
10521 | fi~ |
10522 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10523 | else |
10524 | ld_shlibs_CXX=no |
10525 | fi |
10526 | ;; |
10527 | darwin* | rhapsody*) |
10528 | case $host_os in |
10529 | rhapsody* | darwin1.[012]) |
10530 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10531 | ;; |
10532 | *) # Darwin 1.3 on |
10533 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10534 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10535 | else |
10536 | case ${MACOSX_DEPLOYMENT_TARGET} in |
10537 | 10.[012]) |
10538 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10539 | ;; |
10540 | 10.*) |
10541 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10542 | ;; |
10543 | esac |
10544 | fi |
10545 | ;; |
10546 | esac |
10547 | archive_cmds_need_lc_CXX=no |
10548 | hardcode_direct_CXX=no |
10549 | hardcode_automatic_CXX=yes |
10550 | hardcode_shlibpath_var_CXX=unsupported |
10551 | whole_archive_flag_spec_CXX='' |
10552 | link_all_deplibs_CXX=yes |
10553 | |
10554 | if test "$GXX" = yes ; then |
10555 | lt_int_apple_cc_single_mod=no |
10556 | output_verbose_link_cmd='echo' |
10557 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10558 | lt_int_apple_cc_single_mod=yes |
10559 | fi |
10560 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10561 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10562 | else |
10563 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10564 | fi |
10565 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10566 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10567 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10568 | 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}' |
10569 | else |
10570 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10571 | fi |
10572 | 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}' |
10573 | else |
10574 | case $cc_basename in |
10575 | xlc*) |
10576 | output_verbose_link_cmd='echo' |
10577 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
10578 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10579 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
10580 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10581 | 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}' |
10582 | ;; |
10583 | *) |
10584 | ld_shlibs_CXX=no |
10585 | ;; |
10586 | esac |
10587 | fi |
10588 | ;; |
10589 | |
10590 | dgux*) |
10591 | case $cc_basename in |
10592 | ec++*) |
10593 | # FIXME: insert proper C++ library support |
10594 | ld_shlibs_CXX=no |
10595 | ;; |
10596 | ghcx*) |
10597 | # Green Hills C++ Compiler |
10598 | # FIXME: insert proper C++ library support |
10599 | ld_shlibs_CXX=no |
10600 | ;; |
10601 | *) |
10602 | # FIXME: insert proper C++ library support |
10603 | ld_shlibs_CXX=no |
10604 | ;; |
10605 | esac |
10606 | ;; |
10607 | freebsd[12]*) |
10608 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10609 | ld_shlibs_CXX=no |
10610 | ;; |
10611 | freebsd-elf*) |
10612 | archive_cmds_need_lc_CXX=no |
10613 | ;; |
10614 | freebsd* | kfreebsd*-gnu | dragonfly*) |
10615 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10616 | # conventions |
10617 | ld_shlibs_CXX=yes |
10618 | ;; |
10619 | gnu*) |
10620 | ;; |
10621 | hpux9*) |
10622 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10623 | hardcode_libdir_separator_CXX=: |
10624 | export_dynamic_flag_spec_CXX='${wl}-E' |
10625 | hardcode_direct_CXX=yes |
10626 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10627 | # but as the default |
10628 | # location of the library. |
10629 | |
10630 | case $cc_basename in |
10631 | CC*) |
10632 | # FIXME: insert proper C++ library support |
10633 | ld_shlibs_CXX=no |
10634 | ;; |
10635 | aCC*) |
10636 | 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' |
10637 | # Commands to make compiler produce verbose output that lists |
10638 | # what "hidden" libraries, object files and flags are used when |
10639 | # linking a shared library. |
10640 | # |
10641 | # There doesn't appear to be a way to prevent this compiler from |
10642 | # explicitly linking system object files so we need to strip them |
10643 | # from the output so that they don't get included in the library |
10644 | # dependencies. |
10645 | 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' |
10646 | ;; |
10647 | *) |
10648 | if test "$GXX" = yes; then |
10649 | 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' |
10650 | else |
10651 | # FIXME: insert proper C++ library support |
10652 | ld_shlibs_CXX=no |
10653 | fi |
10654 | ;; |
10655 | esac |
10656 | ;; |
10657 | hpux10*|hpux11*) |
10658 | if test $with_gnu_ld = no; then |
10659 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10660 | hardcode_libdir_separator_CXX=: |
10661 | |
10662 | case $host_cpu in |
10663 | hppa*64*|ia64*) |
10664 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10665 | ;; |
10666 | *) |
10667 | export_dynamic_flag_spec_CXX='${wl}-E' |
10668 | ;; |
10669 | esac |
10670 | fi |
10671 | case $host_cpu in |
10672 | hppa*64*|ia64*) |
10673 | hardcode_direct_CXX=no |
10674 | hardcode_shlibpath_var_CXX=no |
10675 | ;; |
10676 | *) |
10677 | hardcode_direct_CXX=yes |
10678 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
10679 | # but as the default |
10680 | # location of the library. |
10681 | ;; |
10682 | esac |
10683 | |
10684 | case $cc_basename in |
10685 | CC*) |
10686 | # FIXME: insert proper C++ library support |
10687 | ld_shlibs_CXX=no |
10688 | ;; |
10689 | aCC*) |
10690 | case $host_cpu in |
10691 | hppa*64*) |
10692 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10693 | ;; |
10694 | ia64*) |
10695 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10696 | ;; |
10697 | *) |
10698 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10699 | ;; |
10700 | esac |
10701 | # Commands to make compiler produce verbose output that lists |
10702 | # what "hidden" libraries, object files and flags are used when |
10703 | # linking a shared library. |
10704 | # |
10705 | # There doesn't appear to be a way to prevent this compiler from |
10706 | # explicitly linking system object files so we need to strip them |
10707 | # from the output so that they don't get included in the library |
10708 | # dependencies. |
10709 | 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' |
10710 | ;; |
10711 | *) |
10712 | if test "$GXX" = yes; then |
10713 | if test $with_gnu_ld = no; then |
10714 | case $host_cpu in |
10715 | hppa*64*) |
10716 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10717 | ;; |
10718 | ia64*) |
10719 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10720 | ;; |
10721 | *) |
10722 | 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' |
10723 | ;; |
10724 | esac |
10725 | fi |
10726 | else |
10727 | # FIXME: insert proper C++ library support |
10728 | ld_shlibs_CXX=no |
10729 | fi |
10730 | ;; |
10731 | esac |
10732 | ;; |
10733 | interix3*) |
10734 | hardcode_direct_CXX=no |
10735 | hardcode_shlibpath_var_CXX=no |
10736 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10737 | export_dynamic_flag_spec_CXX='${wl}-E' |
10738 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
10739 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
10740 | # default) and relocated if they conflict, which is a slow very memory |
10741 | # consuming and fragmenting process. To avoid this, we pick a random, |
10742 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
10743 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
10744 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10745 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
10746 | ;; |
10747 | irix5* | irix6*) |
10748 | case $cc_basename in |
10749 | CC*) |
10750 | # SGI C++ |
10751 | 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 ${output_objdir}/so_locations -o $lib' |
10752 | |
10753 | # Archives containing C++ object files must be created using |
10754 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10755 | # necessary to make sure instantiated templates are included |
10756 | # in the archive. |
10757 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10758 | ;; |
10759 | *) |
10760 | if test "$GXX" = yes; then |
10761 | if test "$with_gnu_ld" = no; then |
10762 | 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}${output_objdir}/so_locations -o $lib' |
10763 | else |
10764 | 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' |
10765 | fi |
10766 | fi |
10767 | link_all_deplibs_CXX=yes |
10768 | ;; |
10769 | esac |
10770 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10771 | hardcode_libdir_separator_CXX=: |
10772 | ;; |
10773 | linux*) |
10774 | case $cc_basename in |
10775 | KCC*) |
10776 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10777 | |
10778 | # KCC will only create a shared library if the output file |
10779 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10780 | # to its proper name (with version) after linking. |
10781 | 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' |
10782 | 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' |
10783 | # Commands to make compiler produce verbose output that lists |
10784 | # what "hidden" libraries, object files and flags are used when |
10785 | # linking a shared library. |
10786 | # |
10787 | # There doesn't appear to be a way to prevent this compiler from |
10788 | # explicitly linking system object files so we need to strip them |
10789 | # from the output so that they don't get included in the library |
10790 | # dependencies. |
10791 | 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' |
10792 | |
10793 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10794 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10795 | |
10796 | # Archives containing C++ object files must be created using |
10797 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10798 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10799 | ;; |
10800 | icpc*) |
10801 | # Intel C++ |
10802 | with_gnu_ld=yes |
10803 | # version 8.0 and above of icpc choke on multiply defined symbols |
10804 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
10805 | # earlier do not add the objects themselves. |
10806 | case `$CC -V 2>&1` in |
10807 | *"Version 7."*) |
10808 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10809 | 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' |
10810 | ;; |
10811 | *) # Version 8.0 or newer |
10812 | tmp_idyn= |
10813 | case $host_cpu in |
10814 | ia64*) tmp_idyn=' -i_dynamic';; |
10815 | esac |
10816 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10817 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10818 | ;; |
10819 | esac |
10820 | archive_cmds_need_lc_CXX=no |
10821 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10822 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10823 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10824 | ;; |
10825 | pgCC*) |
10826 | # Portland Group C++ compiler |
10827 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
10828 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
10829 | |
10830 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10831 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10832 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
10833 | ;; |
10834 | cxx*) |
10835 | # Compaq C++ |
10836 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10837 | 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' |
10838 | |
10839 | runpath_var=LD_RUN_PATH |
10840 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10841 | hardcode_libdir_separator_CXX=: |
10842 | |
10843 | # Commands to make compiler produce verbose output that lists |
10844 | # what "hidden" libraries, object files and flags are used when |
10845 | # linking a shared library. |
10846 | # |
10847 | # There doesn't appear to be a way to prevent this compiler from |
10848 | # explicitly linking system object files so we need to strip them |
10849 | # from the output so that they don't get included in the library |
10850 | # dependencies. |
10851 | 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' |
10852 | ;; |
10853 | esac |
10854 | ;; |
10855 | lynxos*) |
10856 | # FIXME: insert proper C++ library support |
10857 | ld_shlibs_CXX=no |
10858 | ;; |
10859 | m88k*) |
10860 | # FIXME: insert proper C++ library support |
10861 | ld_shlibs_CXX=no |
10862 | ;; |
10863 | mvs*) |
10864 | case $cc_basename in |
10865 | cxx*) |
10866 | # FIXME: insert proper C++ library support |
10867 | ld_shlibs_CXX=no |
10868 | ;; |
10869 | *) |
10870 | # FIXME: insert proper C++ library support |
10871 | ld_shlibs_CXX=no |
10872 | ;; |
10873 | esac |
10874 | ;; |
10875 | netbsd*) |
10876 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10877 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10878 | wlarc= |
10879 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
10880 | hardcode_direct_CXX=yes |
10881 | hardcode_shlibpath_var_CXX=no |
10882 | fi |
10883 | # Workaround some broken pre-1.5 toolchains |
10884 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10885 | ;; |
10886 | openbsd2*) |
10887 | # C++ shared libraries are fairly broken |
10888 | ld_shlibs_CXX=no |
10889 | ;; |
10890 | openbsd*) |
10891 | hardcode_direct_CXX=yes |
10892 | hardcode_shlibpath_var_CXX=no |
10893 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10894 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10895 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10896 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
10897 | export_dynamic_flag_spec_CXX='${wl}-E' |
10898 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10899 | fi |
10900 | output_verbose_link_cmd='echo' |
10901 | ;; |
10902 | osf3*) |
10903 | case $cc_basename in |
10904 | KCC*) |
10905 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10906 | |
10907 | # KCC will only create a shared library if the output file |
10908 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10909 | # to its proper name (with version) after linking. |
10910 | 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' |
10911 | |
10912 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10913 | hardcode_libdir_separator_CXX=: |
10914 | |
10915 | # Archives containing C++ object files must be created using |
10916 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10917 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10918 | |
10919 | ;; |
10920 | RCC*) |
10921 | # Rational C++ 2.4.1 |
10922 | # FIXME: insert proper C++ library support |
10923 | ld_shlibs_CXX=no |
10924 | ;; |
10925 | cxx*) |
10926 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10927 | 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 ${output_objdir}/so_locations -o $lib' |
10928 | |
10929 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10930 | hardcode_libdir_separator_CXX=: |
10931 | |
10932 | # Commands to make compiler produce verbose output that lists |
10933 | # what "hidden" libraries, object files and flags are used when |
10934 | # linking a shared library. |
10935 | # |
10936 | # There doesn't appear to be a way to prevent this compiler from |
10937 | # explicitly linking system object files so we need to strip them |
10938 | # from the output so that they don't get included in the library |
10939 | # dependencies. |
10940 | 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' |
10941 | ;; |
10942 | *) |
10943 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10944 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10945 | 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}${output_objdir}/so_locations -o $lib' |
10946 | |
10947 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10948 | hardcode_libdir_separator_CXX=: |
10949 | |
10950 | # Commands to make compiler produce verbose output that lists |
10951 | # what "hidden" libraries, object files and flags are used when |
10952 | # linking a shared library. |
10953 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10954 | |
10955 | else |
10956 | # FIXME: insert proper C++ library support |
10957 | ld_shlibs_CXX=no |
10958 | fi |
10959 | ;; |
10960 | esac |
10961 | ;; |
10962 | osf4* | osf5*) |
10963 | case $cc_basename in |
10964 | KCC*) |
10965 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
10966 | |
10967 | # KCC will only create a shared library if the output file |
10968 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
10969 | # to its proper name (with version) after linking. |
10970 | 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' |
10971 | |
10972 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10973 | hardcode_libdir_separator_CXX=: |
10974 | |
10975 | # Archives containing C++ object files must be created using |
10976 | # the KAI C++ compiler. |
10977 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
10978 | ;; |
10979 | RCC*) |
10980 | # Rational C++ 2.4.1 |
10981 | # FIXME: insert proper C++ library support |
10982 | ld_shlibs_CXX=no |
10983 | ;; |
10984 | cxx*) |
10985 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
10986 | 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 ${output_objdir}/so_locations -o $lib' |
10987 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
10988 | echo "-hidden">> $lib.exp~ |
10989 | $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 ${output_objdir}/so_locations -o $lib~ |
10990 | $rm $lib.exp' |
10991 | |
10992 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10993 | hardcode_libdir_separator_CXX=: |
10994 | |
10995 | # Commands to make compiler produce verbose output that lists |
10996 | # what "hidden" libraries, object files and flags are used when |
10997 | # linking a shared library. |
10998 | # |
10999 | # There doesn't appear to be a way to prevent this compiler from |
11000 | # explicitly linking system object files so we need to strip them |
11001 | # from the output so that they don't get included in the library |
11002 | # dependencies. |
11003 | 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' |
11004 | ;; |
11005 | *) |
11006 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11007 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11008 | 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}${output_objdir}/so_locations -o $lib' |
11009 | |
11010 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11011 | hardcode_libdir_separator_CXX=: |
11012 | |
11013 | # Commands to make compiler produce verbose output that lists |
11014 | # what "hidden" libraries, object files and flags are used when |
11015 | # linking a shared library. |
11016 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11017 | |
11018 | else |
11019 | # FIXME: insert proper C++ library support |
11020 | ld_shlibs_CXX=no |
11021 | fi |
11022 | ;; |
11023 | esac |
11024 | ;; |
11025 | psos*) |
11026 | # FIXME: insert proper C++ library support |
11027 | ld_shlibs_CXX=no |
11028 | ;; |
11029 | sunos4*) |
11030 | case $cc_basename in |
11031 | CC*) |
11032 | # Sun C++ 4.x |
11033 | # FIXME: insert proper C++ library support |
11034 | ld_shlibs_CXX=no |
11035 | ;; |
11036 | lcc*) |
11037 | # Lucid |
11038 | # FIXME: insert proper C++ library support |
11039 | ld_shlibs_CXX=no |
11040 | ;; |
11041 | *) |
11042 | # FIXME: insert proper C++ library support |
11043 | ld_shlibs_CXX=no |
11044 | ;; |
11045 | esac |
11046 | ;; |
11047 | solaris*) |
11048 | case $cc_basename in |
11049 | CC*) |
11050 | # Sun C++ 4.2, 5.x and Centerline C++ |
11051 | archive_cmds_need_lc_CXX=yes |
11052 | no_undefined_flag_CXX=' -zdefs' |
11053 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11054 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11055 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11056 | |
11057 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11058 | hardcode_shlibpath_var_CXX=no |
11059 | case $host_os in |
11060 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11061 | *) |
11062 | # The C++ compiler is used as linker so we must use $wl |
11063 | # flag to pass the commands to the underlying system |
11064 | # linker. We must also pass each convience library through |
11065 | # to the system linker between allextract/defaultextract. |
11066 | # The C++ compiler will combine linker options so we |
11067 | # cannot just pass the convience library names through |
11068 | # without $wl. |
11069 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11070 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
11071 | ;; |
11072 | esac |
11073 | link_all_deplibs_CXX=yes |
11074 | |
11075 | output_verbose_link_cmd='echo' |
11076 | |
11077 | # Archives containing C++ object files must be created using |
11078 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11079 | # necessary to make sure instantiated templates are included |
11080 | # in the archive. |
11081 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11082 | ;; |
11083 | gcx*) |
11084 | # Green Hills C++ Compiler |
11085 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11086 | |
11087 | # The C++ compiler must be used to create the archive. |
11088 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11089 | ;; |
11090 | *) |
11091 | # GNU C++ compiler with Solaris linker |
11092 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11093 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11094 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11095 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11096 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11097 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11098 | |
11099 | # Commands to make compiler produce verbose output that lists |
11100 | # what "hidden" libraries, object files and flags are used when |
11101 | # linking a shared library. |
11102 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11103 | else |
11104 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11105 | # platform. |
11106 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11107 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11108 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11109 | |
11110 | # Commands to make compiler produce verbose output that lists |
11111 | # what "hidden" libraries, object files and flags are used when |
11112 | # linking a shared library. |
11113 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11114 | fi |
11115 | |
11116 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11117 | fi |
11118 | ;; |
11119 | esac |
11120 | ;; |
11121 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11122 | no_undefined_flag_CXX='${wl}-z,text' |
11123 | archive_cmds_need_lc_CXX=no |
11124 | hardcode_shlibpath_var_CXX=no |
11125 | runpath_var='LD_RUN_PATH' |
11126 | |
11127 | case $cc_basename in |
11128 | CC*) |
11129 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11130 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11131 | ;; |
11132 | *) |
11133 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11134 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11135 | ;; |
11136 | esac |
11137 | ;; |
11138 | sysv5* | sco3.2v5* | sco5v6*) |
11139 | # Note: We can NOT use -z defs as we might desire, because we do not |
11140 | # link with -lc, and that would cause any symbols used from libc to |
11141 | # always be unresolved, which means just about no library would |
11142 | # ever link correctly. If we're not using GNU ld we use -z text |
11143 | # though, which does catch some bad symbols but isn't as heavy-handed |
11144 | # as -z defs. |
11145 | # For security reasons, it is highly recommended that you always |
11146 | # use absolute paths for naming shared libraries, and exclude the |
11147 | # DT_RUNPATH tag from executables and libraries. But doing so |
11148 | # requires that you compile everything twice, which is a pain. |
11149 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11150 | # non-empty value in the environment. Most likely only useful for |
11151 | # creating official distributions of packages. |
11152 | # This is a hack until libtool officially supports absolute path |
11153 | # names for shared libraries. |
11154 | no_undefined_flag_CXX='${wl}-z,text' |
11155 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11156 | archive_cmds_need_lc_CXX=no |
11157 | hardcode_shlibpath_var_CXX=no |
11158 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11159 | hardcode_libdir_separator_CXX=':' |
11160 | link_all_deplibs_CXX=yes |
11161 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11162 | runpath_var='LD_RUN_PATH' |
11163 | |
11164 | case $cc_basename in |
11165 | CC*) |
11166 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11167 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11168 | ;; |
11169 | *) |
11170 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11171 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11172 | ;; |
11173 | esac |
11174 | ;; |
11175 | tandem*) |
11176 | case $cc_basename in |
11177 | NCC*) |
11178 | # NonStop-UX NCC 3.20 |
11179 | # FIXME: insert proper C++ library support |
11180 | ld_shlibs_CXX=no |
11181 | ;; |
11182 | *) |
11183 | # FIXME: insert proper C++ library support |
11184 | ld_shlibs_CXX=no |
11185 | ;; |
11186 | esac |
11187 | ;; |
11188 | vxworks*) |
11189 | # FIXME: insert proper C++ library support |
11190 | ld_shlibs_CXX=no |
11191 | ;; |
11192 | *) |
11193 | # FIXME: insert proper C++ library support |
11194 | ld_shlibs_CXX=no |
11195 | ;; |
11196 | esac |
11197 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11198 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11199 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11200 | |
11201 | GCC_CXX="$GXX" |
11202 | LD_CXX="$LD" |
11203 | |
11204 | |
11205 | cat > conftest.$ac_ext <<EOF |
11206 | class Foo |
11207 | { |
11208 | public: |
11209 | Foo (void) { a = 0; } |
11210 | private: |
11211 | int a; |
11212 | }; |
11213 | EOF |
11214 | |
11215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11216 | (eval $ac_compile) 2>&5 |
11217 | ac_status=$? |
11218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11219 | (exit $ac_status); }; then |
11220 | # Parse the compiler output and extract the necessary |
11221 | # objects, libraries and library flags. |
11222 | |
11223 | # Sentinel used to keep track of whether or not we are before |
11224 | # the conftest object file. |
11225 | pre_test_object_deps_done=no |
11226 | |
11227 | # The `*' in the case matches for architectures that use `case' in |
11228 | # $output_verbose_cmd can trigger glob expansion during the loop |
11229 | # eval without this substitution. |
11230 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11231 | |
11232 | for p in `eval $output_verbose_link_cmd`; do |
11233 | case $p in |
11234 | |
11235 | -L* | -R* | -l*) |
11236 | # Some compilers place space between "-{L,R}" and the path. |
11237 | # Remove the space. |
11238 | if test $p = "-L" \ |
11239 | || test $p = "-R"; then |
11240 | prev=$p |
11241 | continue |
11242 | else |
11243 | prev= |
11244 | fi |
11245 | |
11246 | if test "$pre_test_object_deps_done" = no; then |
11247 | case $p in |
11248 | -L* | -R*) |
11249 | # Internal compiler library paths should come after those |
11250 | # provided the user. The postdeps already come after the |
11251 | # user supplied libs so there is no need to process them. |
11252 | if test -z "$compiler_lib_search_path_CXX"; then |
11253 | compiler_lib_search_path_CXX="${prev}${p}" |
11254 | else |
11255 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11256 | fi |
11257 | ;; |
11258 | # The "-l" case would never come before the object being |
11259 | # linked, so don't bother handling this case. |
11260 | esac |
11261 | else |
11262 | if test -z "$postdeps_CXX"; then |
11263 | postdeps_CXX="${prev}${p}" |
11264 | else |
11265 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11266 | fi |
11267 | fi |
11268 | ;; |
11269 | |
11270 | *.$objext) |
11271 | # This assumes that the test object file only shows up |
11272 | # once in the compiler output. |
11273 | if test "$p" = "conftest.$objext"; then |
11274 | pre_test_object_deps_done=yes |
11275 | continue |
11276 | fi |
11277 | |
11278 | if test "$pre_test_object_deps_done" = no; then |
11279 | if test -z "$predep_objects_CXX"; then |
11280 | predep_objects_CXX="$p" |
11281 | else |
11282 | predep_objects_CXX="$predep_objects_CXX $p" |
11283 | fi |
11284 | else |
11285 | if test -z "$postdep_objects_CXX"; then |
11286 | postdep_objects_CXX="$p" |
11287 | else |
11288 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11289 | fi |
11290 | fi |
11291 | ;; |
11292 | |
11293 | *) ;; # Ignore the rest. |
11294 | |
11295 | esac |
11296 | done |
11297 | |
11298 | # Clean up. |
11299 | rm -f a.out a.exe |
11300 | else |
11301 | echo "libtool.m4: error: problem compiling CXX test program" |
11302 | fi |
11303 | |
11304 | $rm -f confest.$objext |
11305 | |
11306 | # PORTME: override above test on systems where it is broken |
11307 | case $host_os in |
11308 | interix3*) |
11309 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11310 | # hack all around it, let's just trust "g++" to DTRT. |
11311 | predep_objects_CXX= |
11312 | postdep_objects_CXX= |
11313 | postdeps_CXX= |
11314 | ;; |
11315 | |
11316 | solaris*) |
11317 | case $cc_basename in |
11318 | CC*) |
11319 | # Adding this requires a known-good setup of shared libraries for |
11320 | # Sun compiler versions before 5.6, else PIC objects from an old |
11321 | # archive will be linked into the output, leading to subtle bugs. |
11322 | postdeps_CXX='-lCstd -lCrun' |
11323 | ;; |
11324 | esac |
11325 | ;; |
11326 | esac |
11327 | |
11328 | |
11329 | case " $postdeps_CXX " in |
11330 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11331 | esac |
11332 | |
11333 | lt_prog_compiler_wl_CXX= |
11334 | lt_prog_compiler_pic_CXX= |
11335 | lt_prog_compiler_static_CXX= |
11336 | |
11337 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11338 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11339 | |
11340 | # C++ specific cases for pic, static, wl, etc. |
11341 | if test "$GXX" = yes; then |
11342 | lt_prog_compiler_wl_CXX='-Wl,' |
11343 | lt_prog_compiler_static_CXX='-static' |
11344 | |
11345 | case $host_os in |
11346 | aix*) |
11347 | # All AIX code is PIC. |
11348 | if test "$host_cpu" = ia64; then |
11349 | # AIX 5 now supports IA64 processor |
11350 | lt_prog_compiler_static_CXX='-Bstatic' |
11351 | fi |
11352 | ;; |
11353 | amigaos*) |
11354 | # FIXME: we need at least 68020 code to build shared libraries, but |
11355 | # adding the `-m68020' flag to GCC prevents building anything better, |
11356 | # like `-m68040'. |
11357 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11358 | ;; |
11359 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11360 | # PIC is the default for these OSes. |
11361 | ;; |
11362 | mingw* | os2* | pw32*) |
11363 | # This hack is so that the source file can tell whether it is being |
11364 | # built for inclusion in a dll (and should export symbols for example). |
11365 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11366 | ;; |
11367 | darwin* | rhapsody*) |
11368 | # PIC is the default on this platform |
11369 | # Common symbols not allowed in MH_DYLIB files |
11370 | lt_prog_compiler_pic_CXX='-fno-common' |
11371 | ;; |
11372 | *djgpp*) |
11373 | # DJGPP does not support shared libraries at all |
11374 | lt_prog_compiler_pic_CXX= |
11375 | ;; |
11376 | interix3*) |
11377 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
11378 | # Instead, we relocate shared libraries at runtime. |
11379 | ;; |
11380 | sysv4*MP*) |
11381 | if test -d /usr/nec; then |
11382 | lt_prog_compiler_pic_CXX=-Kconform_pic |
11383 | fi |
11384 | ;; |
11385 | hpux*) |
11386 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11387 | # not for PA HP-UX. |
11388 | case $host_cpu in |
11389 | hppa*64*|ia64*) |
11390 | ;; |
11391 | *) |
11392 | lt_prog_compiler_pic_CXX='-fPIC' |
11393 | ;; |
11394 | esac |
11395 | ;; |
11396 | *) |
11397 | lt_prog_compiler_pic_CXX='-fPIC' |
11398 | ;; |
11399 | esac |
11400 | else |
11401 | case $host_os in |
11402 | aix4* | aix5*) |
11403 | # All AIX code is PIC. |
11404 | if test "$host_cpu" = ia64; then |
11405 | # AIX 5 now supports IA64 processor |
11406 | lt_prog_compiler_static_CXX='-Bstatic' |
11407 | else |
11408 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11409 | fi |
11410 | ;; |
11411 | chorus*) |
11412 | case $cc_basename in |
11413 | cxch68*) |
11414 | # Green Hills C++ Compiler |
11415 | # _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" |
11416 | ;; |
11417 | esac |
11418 | ;; |
11419 | darwin*) |
11420 | # PIC is the default on this platform |
11421 | # Common symbols not allowed in MH_DYLIB files |
11422 | case $cc_basename in |
11423 | xlc*) |
11424 | lt_prog_compiler_pic_CXX='-qnocommon' |
11425 | lt_prog_compiler_wl_CXX='-Wl,' |
11426 | ;; |
11427 | esac |
11428 | ;; |
11429 | dgux*) |
11430 | case $cc_basename in |
11431 | ec++*) |
11432 | lt_prog_compiler_pic_CXX='-KPIC' |
11433 | ;; |
11434 | ghcx*) |
11435 | # Green Hills C++ Compiler |
11436 | lt_prog_compiler_pic_CXX='-pic' |
11437 | ;; |
11438 | *) |
11439 | ;; |
11440 | esac |
11441 | ;; |
11442 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11443 | # FreeBSD uses GNU C++ |
11444 | ;; |
11445 | hpux9* | hpux10* | hpux11*) |
11446 | case $cc_basename in |
11447 | CC*) |
11448 | lt_prog_compiler_wl_CXX='-Wl,' |
11449 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11450 | if test "$host_cpu" != ia64; then |
11451 | lt_prog_compiler_pic_CXX='+Z' |
11452 | fi |
11453 | ;; |
11454 | aCC*) |
11455 | lt_prog_compiler_wl_CXX='-Wl,' |
11456 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11457 | case $host_cpu in |
11458 | hppa*64*|ia64*) |
11459 | # +Z the default |
11460 | ;; |
11461 | *) |
11462 | lt_prog_compiler_pic_CXX='+Z' |
11463 | ;; |
11464 | esac |
11465 | ;; |
11466 | *) |
11467 | ;; |
11468 | esac |
11469 | ;; |
11470 | interix*) |
11471 | # This is c89, which is MS Visual C++ (no shared libs) |
11472 | # Anyone wants to do a port? |
11473 | ;; |
11474 | irix5* | irix6* | nonstopux*) |
11475 | case $cc_basename in |
11476 | CC*) |
11477 | lt_prog_compiler_wl_CXX='-Wl,' |
11478 | lt_prog_compiler_static_CXX='-non_shared' |
11479 | # CC pic flag -KPIC is the default. |
11480 | ;; |
11481 | *) |
11482 | ;; |
11483 | esac |
11484 | ;; |
11485 | linux*) |
11486 | case $cc_basename in |
11487 | KCC*) |
11488 | # KAI C++ Compiler |
11489 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11490 | lt_prog_compiler_pic_CXX='-fPIC' |
11491 | ;; |
11492 | icpc* | ecpc*) |
11493 | # Intel C++ |
11494 | lt_prog_compiler_wl_CXX='-Wl,' |
11495 | lt_prog_compiler_pic_CXX='-KPIC' |
11496 | lt_prog_compiler_static_CXX='-static' |
11497 | ;; |
11498 | pgCC*) |
11499 | # Portland Group C++ compiler. |
11500 | lt_prog_compiler_wl_CXX='-Wl,' |
11501 | lt_prog_compiler_pic_CXX='-fpic' |
11502 | lt_prog_compiler_static_CXX='-Bstatic' |
11503 | ;; |
11504 | cxx*) |
11505 | # Compaq C++ |
11506 | # Make sure the PIC flag is empty. It appears that all Alpha |
11507 | # Linux and Compaq Tru64 Unix objects are PIC. |
11508 | lt_prog_compiler_pic_CXX= |
11509 | lt_prog_compiler_static_CXX='-non_shared' |
11510 | ;; |
11511 | *) |
11512 | ;; |
11513 | esac |
11514 | ;; |
11515 | lynxos*) |
11516 | ;; |
11517 | m88k*) |
11518 | ;; |
11519 | mvs*) |
11520 | case $cc_basename in |
11521 | cxx*) |
11522 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11523 | ;; |
11524 | *) |
11525 | ;; |
11526 | esac |
11527 | ;; |
11528 | netbsd*) |
11529 | ;; |
11530 | osf3* | osf4* | osf5*) |
11531 | case $cc_basename in |
11532 | KCC*) |
11533 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11534 | ;; |
11535 | RCC*) |
11536 | # Rational C++ 2.4.1 |
11537 | lt_prog_compiler_pic_CXX='-pic' |
11538 | ;; |
11539 | cxx*) |
11540 | # Digital/Compaq C++ |
11541 | lt_prog_compiler_wl_CXX='-Wl,' |
11542 | # Make sure the PIC flag is empty. It appears that all Alpha |
11543 | # Linux and Compaq Tru64 Unix objects are PIC. |
11544 | lt_prog_compiler_pic_CXX= |
11545 | lt_prog_compiler_static_CXX='-non_shared' |
11546 | ;; |
11547 | *) |
11548 | ;; |
11549 | esac |
11550 | ;; |
11551 | psos*) |
11552 | ;; |
11553 | solaris*) |
11554 | case $cc_basename in |
11555 | CC*) |
11556 | # Sun C++ 4.2, 5.x and Centerline C++ |
11557 | lt_prog_compiler_pic_CXX='-KPIC' |
11558 | lt_prog_compiler_static_CXX='-Bstatic' |
11559 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
11560 | ;; |
11561 | gcx*) |
11562 | # Green Hills C++ Compiler |
11563 | lt_prog_compiler_pic_CXX='-PIC' |
11564 | ;; |
11565 | *) |
11566 | ;; |
11567 | esac |
11568 | ;; |
11569 | sunos4*) |
11570 | case $cc_basename in |
11571 | CC*) |
11572 | # Sun C++ 4.x |
11573 | lt_prog_compiler_pic_CXX='-pic' |
11574 | lt_prog_compiler_static_CXX='-Bstatic' |
11575 | ;; |
11576 | lcc*) |
11577 | # Lucid |
11578 | lt_prog_compiler_pic_CXX='-pic' |
11579 | ;; |
11580 | *) |
11581 | ;; |
11582 | esac |
11583 | ;; |
11584 | tandem*) |
11585 | case $cc_basename in |
11586 | NCC*) |
11587 | # NonStop-UX NCC 3.20 |
11588 | lt_prog_compiler_pic_CXX='-KPIC' |
11589 | ;; |
11590 | *) |
11591 | ;; |
11592 | esac |
11593 | ;; |
11594 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11595 | case $cc_basename in |
11596 | CC*) |
11597 | lt_prog_compiler_wl_CXX='-Wl,' |
11598 | lt_prog_compiler_pic_CXX='-KPIC' |
11599 | lt_prog_compiler_static_CXX='-Bstatic' |
11600 | ;; |
11601 | esac |
11602 | ;; |
11603 | vxworks*) |
11604 | ;; |
11605 | *) |
11606 | lt_prog_compiler_can_build_shared_CXX=no |
11607 | ;; |
11608 | esac |
11609 | fi |
11610 | |
11611 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11612 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11613 | |
11614 | # |
11615 | # Check to make sure the PIC flag actually works. |
11616 | # |
11617 | if test -n "$lt_prog_compiler_pic_CXX"; then |
11618 | |
11619 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11620 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11621 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11623 | else |
11624 | lt_prog_compiler_pic_works_CXX=no |
11625 | ac_outfile=conftest.$ac_objext |
11626 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11627 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11628 | # Insert the option either (1) after the last *FLAGS variable, or |
11629 | # (2) before a word containing "conftest.", or (3) at the end. |
11630 | # Note that $ac_compile itself does not contain backslashes and begins |
11631 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11632 | # The option is referenced via a variable to avoid confusing sed. |
11633 | lt_compile=`echo "$ac_compile" | $SED \ |
11634 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11635 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11636 | -e 's:$: $lt_compiler_flag:'` |
11637 | (eval echo "\"\$as_me:11637: $lt_compile\"" >&5) |
11638 | (eval "$lt_compile" 2>conftest.err) |
11639 | ac_status=$? |
11640 | cat conftest.err >&5 |
11641 | echo "$as_me:11641: \$? = $ac_status" >&5 |
11642 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11643 | # The compiler can only warn and ignore the option if not recognized |
11644 | # So say no if there are warnings other than the usual output. |
11645 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11646 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11647 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11648 | lt_prog_compiler_pic_works_CXX=yes |
11649 | fi |
11650 | fi |
11651 | $rm conftest* |
11652 | |
11653 | fi |
11654 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11655 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11656 | |
11657 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11658 | case $lt_prog_compiler_pic_CXX in |
11659 | "" | " "*) ;; |
11660 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11661 | esac |
11662 | else |
11663 | lt_prog_compiler_pic_CXX= |
11664 | lt_prog_compiler_can_build_shared_CXX=no |
11665 | fi |
11666 | |
11667 | fi |
11668 | case $host_os in |
11669 | # For platforms which do not support PIC, -DPIC is meaningless: |
11670 | *djgpp*) |
11671 | lt_prog_compiler_pic_CXX= |
11672 | ;; |
11673 | *) |
11674 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11675 | ;; |
11676 | esac |
11677 | |
11678 | # |
11679 | # Check to make sure the static flag actually works. |
11680 | # |
11681 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
11682 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
11683 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
11684 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
11685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11686 | else |
11687 | lt_prog_compiler_static_works_CXX=no |
11688 | save_LDFLAGS="$LDFLAGS" |
11689 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
11690 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
11691 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
11692 | # The linker can only warn and ignore the option if not recognized |
11693 | # So say no if there are warnings |
11694 | if test -s conftest.err; then |
11695 | # Append any errors to the config.log. |
11696 | cat conftest.err 1>&5 |
11697 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
11698 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11699 | if diff conftest.exp conftest.er2 >/dev/null; then |
11700 | lt_prog_compiler_static_works_CXX=yes |
11701 | fi |
11702 | else |
11703 | lt_prog_compiler_static_works_CXX=yes |
11704 | fi |
11705 | fi |
11706 | $rm conftest* |
11707 | LDFLAGS="$save_LDFLAGS" |
11708 | |
11709 | fi |
11710 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
11711 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
11712 | |
11713 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
11714 | : |
11715 | else |
11716 | lt_prog_compiler_static_CXX= |
11717 | fi |
11718 | |
11719 | |
11720 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11721 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11722 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11724 | else |
11725 | lt_cv_prog_compiler_c_o_CXX=no |
11726 | $rm -r conftest 2>/dev/null |
11727 | mkdir conftest |
11728 | cd conftest |
11729 | mkdir out |
11730 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11731 | |
11732 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
11733 | # Insert the option either (1) after the last *FLAGS variable, or |
11734 | # (2) before a word containing "conftest.", or (3) at the end. |
11735 | # Note that $ac_compile itself does not contain backslashes and begins |
11736 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
11737 | lt_compile=`echo "$ac_compile" | $SED \ |
11738 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11739 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11740 | -e 's:$: $lt_compiler_flag:'` |
11741 | (eval echo "\"\$as_me:11741: $lt_compile\"" >&5) |
11742 | (eval "$lt_compile" 2>out/conftest.err) |
11743 | ac_status=$? |
11744 | cat out/conftest.err >&5 |
11745 | echo "$as_me:11745: \$? = $ac_status" >&5 |
11746 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11747 | then |
11748 | # The compiler can only warn and ignore the option if not recognized |
11749 | # So say no if there are warnings |
11750 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11751 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11752 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11753 | lt_cv_prog_compiler_c_o_CXX=yes |
11754 | fi |
11755 | fi |
11756 | chmod u+w . 2>&5 |
11757 | $rm conftest* |
11758 | # SGI C++ compiler will create directory out/ii_files/ for |
11759 | # template instantiation |
11760 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11761 | $rm out/* && rmdir out |
11762 | cd .. |
11763 | rmdir conftest |
11764 | $rm conftest* |
11765 | |
11766 | fi |
11767 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11768 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11769 | |
11770 | |
11771 | hard_links="nottested" |
11772 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11773 | # do not overwrite the value of need_locks provided by the user |
11774 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11775 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11776 | hard_links=yes |
11777 | $rm conftest* |
11778 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11779 | touch conftest.a |
11780 | ln conftest.a conftest.b 2>&5 || hard_links=no |
11781 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11782 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
11783 | echo "${ECHO_T}$hard_links" >&6 |
11784 | if test "$hard_links" = no; then |
11785 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11786 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11787 | need_locks=warn |
11788 | fi |
11789 | else |
11790 | need_locks=no |
11791 | fi |
11792 | |
11793 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11794 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11795 | |
11796 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11797 | case $host_os in |
11798 | aix4* | aix5*) |
11799 | # If we're using GNU nm, then we don't want the "-C" option. |
11800 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
11801 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11802 | 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' |
11803 | else |
11804 | 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' |
11805 | fi |
11806 | ;; |
11807 | pw32*) |
11808 | export_symbols_cmds_CXX="$ltdll_cmds" |
11809 | ;; |
11810 | cygwin* | mingw*) |
11811 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
11812 | ;; |
11813 | *) |
11814 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11815 | ;; |
11816 | esac |
11817 | |
11818 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11819 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11820 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11821 | |
11822 | # |
11823 | # Do we need to explicitly link libc? |
11824 | # |
11825 | case "x$archive_cmds_need_lc_CXX" in |
11826 | x|xyes) |
11827 | # Assume -lc should be added |
11828 | archive_cmds_need_lc_CXX=yes |
11829 | |
11830 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
11831 | case $archive_cmds_CXX in |
11832 | *'~'*) |
11833 | # FIXME: we may have to deal with multi-command sequences. |
11834 | ;; |
11835 | '$CC '*) |
11836 | # Test whether the compiler implicitly links with -lc since on some |
11837 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
11838 | # to ld, don't add -lc before -lgcc. |
11839 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11840 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11841 | $rm conftest* |
11842 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11843 | |
11844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11845 | (eval $ac_compile) 2>&5 |
11846 | ac_status=$? |
11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11848 | (exit $ac_status); } 2>conftest.err; then |
11849 | soname=conftest |
11850 | lib=conftest |
11851 | libobjs=conftest.$ac_objext |
11852 | deplibs= |
11853 | wl=$lt_prog_compiler_wl_CXX |
11854 | pic_flag=$lt_prog_compiler_pic_CXX |
11855 | compiler_flags=-v |
11856 | linker_flags=-v |
11857 | verstring= |
11858 | output_objdir=. |
11859 | libname=conftest |
11860 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11861 | allow_undefined_flag_CXX= |
11862 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11863 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11864 | ac_status=$? |
11865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11866 | (exit $ac_status); } |
11867 | then |
11868 | archive_cmds_need_lc_CXX=no |
11869 | else |
11870 | archive_cmds_need_lc_CXX=yes |
11871 | fi |
11872 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11873 | else |
11874 | cat conftest.err 1>&5 |
11875 | fi |
11876 | $rm conftest* |
11877 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11878 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11879 | ;; |
11880 | esac |
11881 | fi |
11882 | ;; |
11883 | esac |
11884 | |
11885 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11886 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11887 | library_names_spec= |
11888 | libname_spec='lib$name' |
11889 | soname_spec= |
11890 | shrext_cmds=".so" |
11891 | postinstall_cmds= |
11892 | postuninstall_cmds= |
11893 | finish_cmds= |
11894 | finish_eval= |
11895 | shlibpath_var= |
11896 | shlibpath_overrides_runpath=unknown |
11897 | version_type=none |
11898 | dynamic_linker="$host_os ld.so" |
11899 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11900 | if test "$GCC" = yes; then |
11901 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11902 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11903 | # if the path contains ";" then we assume it to be the separator |
11904 | # otherwise default to the standard path separator (i.e. ":") - it is |
11905 | # assumed that no part of a normal pathname contains ";" but that should |
11906 | # okay in the real world where ";" in dirpaths is itself problematic. |
11907 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11908 | else |
11909 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11910 | fi |
11911 | else |
11912 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11913 | fi |
11914 | need_lib_prefix=unknown |
11915 | hardcode_into_libs=no |
11916 | |
11917 | # when you set need_version to no, make sure it does not cause -set_version |
11918 | # flags to be left without arguments |
11919 | need_version=unknown |
11920 | |
11921 | case $host_os in |
11922 | aix3*) |
11923 | version_type=linux |
11924 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11925 | shlibpath_var=LIBPATH |
11926 | |
11927 | # AIX 3 has no versioning support, so we append a major version to the name. |
11928 | soname_spec='${libname}${release}${shared_ext}$major' |
11929 | ;; |
11930 | |
11931 | aix4* | aix5*) |
11932 | version_type=linux |
11933 | need_lib_prefix=no |
11934 | need_version=no |
11935 | hardcode_into_libs=yes |
11936 | if test "$host_cpu" = ia64; then |
11937 | # AIX 5 supports IA64 |
11938 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11939 | shlibpath_var=LD_LIBRARY_PATH |
11940 | else |
11941 | # With GCC up to 2.95.x, collect2 would create an import file |
11942 | # for dependence libraries. The import file would start with |
11943 | # the line `#! .'. This would cause the generated library to |
11944 | # depend on `.', always an invalid library. This was fixed in |
11945 | # development snapshots of GCC prior to 3.0. |
11946 | case $host_os in |
11947 | aix4 | aix4.[01] | aix4.[01].*) |
11948 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11949 | echo ' yes ' |
11950 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
11951 | : |
11952 | else |
11953 | can_build_shared=no |
11954 | fi |
11955 | ;; |
11956 | esac |
11957 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11958 | # soname into executable. Probably we can add versioning support to |
11959 | # collect2, so additional links can be useful in future. |
11960 | if test "$aix_use_runtimelinking" = yes; then |
11961 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11962 | # instead of lib<name>.a to let people know that these are not |
11963 | # typical AIX shared libraries. |
11964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11965 | else |
11966 | # We preserve .a as extension for shared libraries through AIX4.2 |
11967 | # and later when we are not doing run time linking. |
11968 | library_names_spec='${libname}${release}.a $libname.a' |
11969 | soname_spec='${libname}${release}${shared_ext}$major' |
11970 | fi |
11971 | shlibpath_var=LIBPATH |
11972 | fi |
11973 | ;; |
11974 | |
11975 | amigaos*) |
11976 | library_names_spec='$libname.ixlibrary $libname.a' |
11977 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
11978 | 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' |
11979 | ;; |
11980 | |
11981 | beos*) |
11982 | library_names_spec='${libname}${shared_ext}' |
11983 | dynamic_linker="$host_os ld.so" |
11984 | shlibpath_var=LIBRARY_PATH |
11985 | ;; |
11986 | |
11987 | bsdi[45]*) |
11988 | version_type=linux |
11989 | need_version=no |
11990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11991 | soname_spec='${libname}${release}${shared_ext}$major' |
11992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11993 | shlibpath_var=LD_LIBRARY_PATH |
11994 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11995 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
11996 | # the default ld.so.conf also contains /usr/contrib/lib and |
11997 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
11998 | # libtool to hard-code these into programs |
11999 | ;; |
12000 | |
12001 | cygwin* | mingw* | pw32*) |
12002 | version_type=windows |
12003 | shrext_cmds=".dll" |
12004 | need_version=no |
12005 | need_lib_prefix=no |
12006 | |
12007 | case $GCC,$host_os in |
12008 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12009 | library_names_spec='$libname.dll.a' |
12010 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12011 | postinstall_cmds='base_file=`basename \${file}`~ |
12012 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12013 | dldir=$destdir/`dirname \$dlpath`~ |
12014 | test -d \$dldir || mkdir -p \$dldir~ |
12015 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12016 | chmod a+x \$dldir/$dlname' |
12017 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12018 | dlpath=$dir/\$dldll~ |
12019 | $rm \$dlpath' |
12020 | shlibpath_overrides_runpath=yes |
12021 | |
12022 | case $host_os in |
12023 | cygwin*) |
12024 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12025 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12026 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12027 | ;; |
12028 | mingw*) |
12029 | # MinGW DLLs use traditional 'lib' prefix |
12030 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12031 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12032 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12033 | # It is most probably a Windows format PATH printed by |
12034 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12035 | # path with ; separators, and with drive letters. We can handle the |
12036 | # drive letters (cygwin fileutils understands them), so leave them, |
12037 | # especially as we might pass files found there to a mingw objdump, |
12038 | # which wouldn't understand a cygwinified path. Ahh. |
12039 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12040 | else |
12041 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12042 | fi |
12043 | ;; |
12044 | pw32*) |
12045 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12046 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12047 | ;; |
12048 | esac |
12049 | ;; |
12050 | |
12051 | *) |
12052 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12053 | ;; |
12054 | esac |
12055 | dynamic_linker='Win32 ld.exe' |
12056 | # FIXME: first we should search . and the directory the executable is in |
12057 | shlibpath_var=PATH |
12058 | ;; |
12059 | |
12060 | darwin* | rhapsody*) |
12061 | dynamic_linker="$host_os dyld" |
12062 | version_type=darwin |
12063 | need_lib_prefix=no |
12064 | need_version=no |
12065 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12066 | soname_spec='${libname}${release}${major}$shared_ext' |
12067 | shlibpath_overrides_runpath=yes |
12068 | shlibpath_var=DYLD_LIBRARY_PATH |
12069 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12070 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12071 | if test "$GCC" = yes; then |
12072 | 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"` |
12073 | else |
12074 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12075 | fi |
12076 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12077 | ;; |
12078 | |
12079 | dgux*) |
12080 | version_type=linux |
12081 | need_lib_prefix=no |
12082 | need_version=no |
12083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12084 | soname_spec='${libname}${release}${shared_ext}$major' |
12085 | shlibpath_var=LD_LIBRARY_PATH |
12086 | ;; |
12087 | |
12088 | freebsd1*) |
12089 | dynamic_linker=no |
12090 | ;; |
12091 | |
12092 | kfreebsd*-gnu) |
12093 | version_type=linux |
12094 | need_lib_prefix=no |
12095 | need_version=no |
12096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12097 | soname_spec='${libname}${release}${shared_ext}$major' |
12098 | shlibpath_var=LD_LIBRARY_PATH |
12099 | shlibpath_overrides_runpath=no |
12100 | hardcode_into_libs=yes |
12101 | dynamic_linker='GNU ld.so' |
12102 | ;; |
12103 | |
12104 | freebsd* | dragonfly*) |
12105 | # DragonFly does not have aout. When/if they implement a new |
12106 | # versioning mechanism, adjust this. |
12107 | if test -x /usr/bin/objformat; then |
12108 | objformat=`/usr/bin/objformat` |
12109 | else |
12110 | case $host_os in |
12111 | freebsd[123]*) objformat=aout ;; |
12112 | *) objformat=elf ;; |
12113 | esac |
12114 | fi |
12115 | version_type=freebsd-$objformat |
12116 | case $version_type in |
12117 | freebsd-elf*) |
12118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12119 | need_version=no |
12120 | need_lib_prefix=no |
12121 | ;; |
12122 | freebsd-*) |
12123 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12124 | need_version=yes |
12125 | ;; |
12126 | esac |
12127 | shlibpath_var=LD_LIBRARY_PATH |
12128 | case $host_os in |
12129 | freebsd2*) |
12130 | shlibpath_overrides_runpath=yes |
12131 | ;; |
12132 | freebsd3.[01]* | freebsdelf3.[01]*) |
12133 | shlibpath_overrides_runpath=yes |
12134 | hardcode_into_libs=yes |
12135 | ;; |
12136 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12137 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12138 | shlibpath_overrides_runpath=no |
12139 | hardcode_into_libs=yes |
12140 | ;; |
12141 | freebsd*) # from 4.6 on |
12142 | shlibpath_overrides_runpath=yes |
12143 | hardcode_into_libs=yes |
12144 | ;; |
12145 | esac |
12146 | ;; |
12147 | |
12148 | gnu*) |
12149 | version_type=linux |
12150 | need_lib_prefix=no |
12151 | need_version=no |
12152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12153 | soname_spec='${libname}${release}${shared_ext}$major' |
12154 | shlibpath_var=LD_LIBRARY_PATH |
12155 | hardcode_into_libs=yes |
12156 | ;; |
12157 | |
12158 | hpux9* | hpux10* | hpux11*) |
12159 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12160 | # link against other versions. |
12161 | version_type=sunos |
12162 | need_lib_prefix=no |
12163 | need_version=no |
12164 | case $host_cpu in |
12165 | ia64*) |
12166 | shrext_cmds='.so' |
12167 | hardcode_into_libs=yes |
12168 | dynamic_linker="$host_os dld.so" |
12169 | shlibpath_var=LD_LIBRARY_PATH |
12170 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12172 | soname_spec='${libname}${release}${shared_ext}$major' |
12173 | if test "X$HPUX_IA64_MODE" = X32; then |
12174 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12175 | else |
12176 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12177 | fi |
12178 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12179 | ;; |
12180 | hppa*64*) |
12181 | shrext_cmds='.sl' |
12182 | hardcode_into_libs=yes |
12183 | dynamic_linker="$host_os dld.sl" |
12184 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12185 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12187 | soname_spec='${libname}${release}${shared_ext}$major' |
12188 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12189 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12190 | ;; |
12191 | *) |
12192 | shrext_cmds='.sl' |
12193 | dynamic_linker="$host_os dld.sl" |
12194 | shlibpath_var=SHLIB_PATH |
12195 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12197 | soname_spec='${libname}${release}${shared_ext}$major' |
12198 | ;; |
12199 | esac |
12200 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12201 | postinstall_cmds='chmod 555 $lib' |
12202 | ;; |
12203 | |
12204 | interix3*) |
12205 | version_type=linux |
12206 | need_lib_prefix=no |
12207 | need_version=no |
12208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12209 | soname_spec='${libname}${release}${shared_ext}$major' |
12210 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12211 | shlibpath_var=LD_LIBRARY_PATH |
12212 | shlibpath_overrides_runpath=no |
12213 | hardcode_into_libs=yes |
12214 | ;; |
12215 | |
12216 | irix5* | irix6* | nonstopux*) |
12217 | case $host_os in |
12218 | nonstopux*) version_type=nonstopux ;; |
12219 | *) |
12220 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12221 | version_type=linux |
12222 | else |
12223 | version_type=irix |
12224 | fi ;; |
12225 | esac |
12226 | need_lib_prefix=no |
12227 | need_version=no |
12228 | soname_spec='${libname}${release}${shared_ext}$major' |
12229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12230 | case $host_os in |
12231 | irix5* | nonstopux*) |
12232 | libsuff= shlibsuff= |
12233 | ;; |
12234 | *) |
12235 | case $LD in # libtool.m4 will add one of these switches to LD |
12236 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12237 | libsuff= shlibsuff= libmagic=32-bit;; |
12238 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12239 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12240 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12241 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12242 | *) libsuff= shlibsuff= libmagic=never-match;; |
12243 | esac |
12244 | ;; |
12245 | esac |
12246 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12247 | shlibpath_overrides_runpath=no |
12248 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12249 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12250 | hardcode_into_libs=yes |
12251 | ;; |
12252 | |
12253 | # No shared lib support for Linux oldld, aout, or coff. |
12254 | linux*oldld* | linux*aout* | linux*coff*) |
12255 | dynamic_linker=no |
12256 | ;; |
12257 | |
12258 | # This must be Linux ELF. |
12259 | linux*) |
12260 | version_type=linux |
12261 | need_lib_prefix=no |
12262 | need_version=no |
12263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12264 | soname_spec='${libname}${release}${shared_ext}$major' |
12265 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12266 | shlibpath_var=LD_LIBRARY_PATH |
12267 | shlibpath_overrides_runpath=no |
12268 | # This implies no fast_install, which is unacceptable. |
12269 | # Some rework will be needed to allow for fast_install |
12270 | # before this can be enabled. |
12271 | hardcode_into_libs=yes |
12272 | |
12273 | # find out which ABI we are using |
12274 | libsuff= |
12275 | case "$host_cpu" in |
12276 | x86_64*|s390x*|powerpc64*) |
12277 | echo '#line 12277 "configure"' > conftest.$ac_ext |
12278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12279 | (eval $ac_compile) 2>&5 |
12280 | ac_status=$? |
12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12282 | (exit $ac_status); }; then |
12283 | case `/usr/bin/file conftest.$ac_objext` in |
12284 | *64-bit*) |
12285 | libsuff=64 |
12286 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12287 | ;; |
12288 | esac |
12289 | fi |
12290 | rm -rf conftest* |
12291 | ;; |
12292 | esac |
12293 | |
12294 | # Append ld.so.conf contents to the search path |
12295 | if test -f /etc/ld.so.conf; then |
12296 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
12297 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12298 | fi |
12299 | |
12300 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12301 | # powerpc, because MkLinux only supported shared libraries with the |
12302 | # GNU dynamic linker. Since this was broken with cross compilers, |
12303 | # most powerpc-linux boxes support dynamic linking these days and |
12304 | # people can always --disable-shared, the test was removed, and we |
12305 | # assume the GNU/Linux dynamic linker is in use. |
12306 | dynamic_linker='GNU/Linux ld.so' |
12307 | ;; |
12308 | |
12309 | knetbsd*-gnu) |
12310 | version_type=linux |
12311 | need_lib_prefix=no |
12312 | need_version=no |
12313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12314 | soname_spec='${libname}${release}${shared_ext}$major' |
12315 | shlibpath_var=LD_LIBRARY_PATH |
12316 | shlibpath_overrides_runpath=no |
12317 | hardcode_into_libs=yes |
12318 | dynamic_linker='GNU ld.so' |
12319 | ;; |
12320 | |
12321 | netbsd*) |
12322 | version_type=sunos |
12323 | need_lib_prefix=no |
12324 | need_version=no |
12325 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12327 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12328 | dynamic_linker='NetBSD (a.out) ld.so' |
12329 | else |
12330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12331 | soname_spec='${libname}${release}${shared_ext}$major' |
12332 | dynamic_linker='NetBSD ld.elf_so' |
12333 | fi |
12334 | shlibpath_var=LD_LIBRARY_PATH |
12335 | shlibpath_overrides_runpath=yes |
12336 | hardcode_into_libs=yes |
12337 | ;; |
12338 | |
12339 | newsos6) |
12340 | version_type=linux |
12341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12342 | shlibpath_var=LD_LIBRARY_PATH |
12343 | shlibpath_overrides_runpath=yes |
12344 | ;; |
12345 | |
12346 | nto-qnx*) |
12347 | version_type=linux |
12348 | need_lib_prefix=no |
12349 | need_version=no |
12350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12351 | soname_spec='${libname}${release}${shared_ext}$major' |
12352 | shlibpath_var=LD_LIBRARY_PATH |
12353 | shlibpath_overrides_runpath=yes |
12354 | ;; |
12355 | |
12356 | openbsd*) |
12357 | version_type=sunos |
12358 | sys_lib_dlsearch_path_spec="/usr/lib" |
12359 | need_lib_prefix=no |
12360 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12361 | case $host_os in |
12362 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12363 | *) need_version=no ;; |
12364 | esac |
12365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12366 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12367 | shlibpath_var=LD_LIBRARY_PATH |
12368 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12369 | case $host_os in |
12370 | openbsd2.[89] | openbsd2.[89].*) |
12371 | shlibpath_overrides_runpath=no |
12372 | ;; |
12373 | *) |
12374 | shlibpath_overrides_runpath=yes |
12375 | ;; |
12376 | esac |
12377 | else |
12378 | shlibpath_overrides_runpath=yes |
12379 | fi |
12380 | ;; |
12381 | |
12382 | os2*) |
12383 | libname_spec='$name' |
12384 | shrext_cmds=".dll" |
12385 | need_lib_prefix=no |
12386 | library_names_spec='$libname${shared_ext} $libname.a' |
12387 | dynamic_linker='OS/2 ld.exe' |
12388 | shlibpath_var=LIBPATH |
12389 | ;; |
12390 | |
12391 | osf3* | osf4* | osf5*) |
12392 | version_type=osf |
12393 | need_lib_prefix=no |
12394 | need_version=no |
12395 | soname_spec='${libname}${release}${shared_ext}$major' |
12396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12397 | shlibpath_var=LD_LIBRARY_PATH |
12398 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12399 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12400 | ;; |
12401 | |
12402 | solaris*) |
12403 | version_type=linux |
12404 | need_lib_prefix=no |
12405 | need_version=no |
12406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12407 | soname_spec='${libname}${release}${shared_ext}$major' |
12408 | shlibpath_var=LD_LIBRARY_PATH |
12409 | shlibpath_overrides_runpath=yes |
12410 | hardcode_into_libs=yes |
12411 | # ldd complains unless libraries are executable |
12412 | postinstall_cmds='chmod +x $lib' |
12413 | ;; |
12414 | |
12415 | sunos4*) |
12416 | version_type=sunos |
12417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12418 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12419 | shlibpath_var=LD_LIBRARY_PATH |
12420 | shlibpath_overrides_runpath=yes |
12421 | if test "$with_gnu_ld" = yes; then |
12422 | need_lib_prefix=no |
12423 | fi |
12424 | need_version=yes |
12425 | ;; |
12426 | |
12427 | sysv4 | sysv4.3*) |
12428 | version_type=linux |
12429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12430 | soname_spec='${libname}${release}${shared_ext}$major' |
12431 | shlibpath_var=LD_LIBRARY_PATH |
12432 | case $host_vendor in |
12433 | sni) |
12434 | shlibpath_overrides_runpath=no |
12435 | need_lib_prefix=no |
12436 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
12437 | runpath_var=LD_RUN_PATH |
12438 | ;; |
12439 | siemens) |
12440 | need_lib_prefix=no |
12441 | ;; |
12442 | motorola) |
12443 | need_lib_prefix=no |
12444 | need_version=no |
12445 | shlibpath_overrides_runpath=no |
12446 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12447 | ;; |
12448 | esac |
12449 | ;; |
12450 | |
12451 | sysv4*MP*) |
12452 | if test -d /usr/nec ;then |
12453 | version_type=linux |
12454 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12455 | soname_spec='$libname${shared_ext}.$major' |
12456 | shlibpath_var=LD_LIBRARY_PATH |
12457 | fi |
12458 | ;; |
12459 | |
12460 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12461 | version_type=freebsd-elf |
12462 | need_lib_prefix=no |
12463 | need_version=no |
12464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12465 | soname_spec='${libname}${release}${shared_ext}$major' |
12466 | shlibpath_var=LD_LIBRARY_PATH |
12467 | hardcode_into_libs=yes |
12468 | if test "$with_gnu_ld" = yes; then |
12469 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
12470 | shlibpath_overrides_runpath=no |
12471 | else |
12472 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
12473 | shlibpath_overrides_runpath=yes |
12474 | case $host_os in |
12475 | sco3.2v5*) |
12476 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
12477 | ;; |
12478 | esac |
12479 | fi |
12480 | sys_lib_dlsearch_path_spec='/usr/lib' |
12481 | ;; |
12482 | |
12483 | uts4*) |
12484 | version_type=linux |
12485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12486 | soname_spec='${libname}${release}${shared_ext}$major' |
12487 | shlibpath_var=LD_LIBRARY_PATH |
12488 | ;; |
12489 | |
12490 | *) |
12491 | dynamic_linker=no |
12492 | ;; |
12493 | esac |
12494 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12495 | echo "${ECHO_T}$dynamic_linker" >&6 |
12496 | test "$dynamic_linker" = no && can_build_shared=no |
12497 | |
12498 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12499 | if test "$GCC" = yes; then |
12500 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12501 | fi |
12502 | |
12503 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12504 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12505 | hardcode_action_CXX= |
12506 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12507 | test -n "$runpath_var_CXX" || \ |
12508 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12509 | |
12510 | # We can hardcode non-existant directories. |
12511 | if test "$hardcode_direct_CXX" != no && |
12512 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
12513 | # have to relink, otherwise we might link with an installed library |
12514 | # when we should be linking with a yet-to-be-installed one |
12515 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12516 | test "$hardcode_minus_L_CXX" != no; then |
12517 | # Linking always hardcodes the temporary library directory. |
12518 | hardcode_action_CXX=relink |
12519 | else |
12520 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
12521 | hardcode_action_CXX=immediate |
12522 | fi |
12523 | else |
12524 | # We cannot hardcode anything, or else we can only hardcode existing |
12525 | # directories. |
12526 | hardcode_action_CXX=unsupported |
12527 | fi |
12528 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12529 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12530 | |
12531 | if test "$hardcode_action_CXX" = relink; then |
12532 | # Fast installation is not supported |
12533 | enable_fast_install=no |
12534 | elif test "$shlibpath_overrides_runpath" = yes || |
12535 | test "$enable_shared" = no; then |
12536 | # Fast installation is not necessary |
12537 | enable_fast_install=needless |
12538 | fi |
12539 | |
12540 | |
12541 | # The else clause should only fire when bootstrapping the |
12542 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
12543 | # with your package, and you will get complaints that there are |
12544 | # no rules to generate ltmain.sh. |
12545 | if test -f "$ltmain"; then |
12546 | # See if we are running on zsh, and set the options which allow our commands through |
12547 | # without removal of \ escapes. |
12548 | if test -n "${ZSH_VERSION+set}" ; then |
12549 | setopt NO_GLOB_SUBST |
12550 | fi |
12551 | # Now quote all the things that may contain metacharacters while being |
12552 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
12553 | # variables and quote the copies for generation of the libtool script. |
12554 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
12555 | SED SHELL STRIP \ |
12556 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12557 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12558 | deplibs_check_method reload_flag reload_cmds need_locks \ |
12559 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12560 | lt_cv_sys_global_symbol_to_c_name_address \ |
12561 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12562 | old_postinstall_cmds old_postuninstall_cmds \ |
12563 | compiler_CXX \ |
12564 | CC_CXX \ |
12565 | LD_CXX \ |
12566 | lt_prog_compiler_wl_CXX \ |
12567 | lt_prog_compiler_pic_CXX \ |
12568 | lt_prog_compiler_static_CXX \ |
12569 | lt_prog_compiler_no_builtin_flag_CXX \ |
12570 | export_dynamic_flag_spec_CXX \ |
12571 | thread_safe_flag_spec_CXX \ |
12572 | whole_archive_flag_spec_CXX \ |
12573 | enable_shared_with_static_runtimes_CXX \ |
12574 | old_archive_cmds_CXX \ |
12575 | old_archive_from_new_cmds_CXX \ |
12576 | predep_objects_CXX \ |
12577 | postdep_objects_CXX \ |
12578 | predeps_CXX \ |
12579 | postdeps_CXX \ |
12580 | compiler_lib_search_path_CXX \ |
12581 | archive_cmds_CXX \ |
12582 | archive_expsym_cmds_CXX \ |
12583 | postinstall_cmds_CXX \ |
12584 | postuninstall_cmds_CXX \ |
12585 | old_archive_from_expsyms_cmds_CXX \ |
12586 | allow_undefined_flag_CXX \ |
12587 | no_undefined_flag_CXX \ |
12588 | export_symbols_cmds_CXX \ |
12589 | hardcode_libdir_flag_spec_CXX \ |
12590 | hardcode_libdir_flag_spec_ld_CXX \ |
12591 | hardcode_libdir_separator_CXX \ |
12592 | hardcode_automatic_CXX \ |
12593 | module_cmds_CXX \ |
12594 | module_expsym_cmds_CXX \ |
12595 | lt_cv_prog_compiler_c_o_CXX \ |
12596 | exclude_expsyms_CXX \ |
12597 | include_expsyms_CXX; do |
12598 | |
12599 | case $var in |
12600 | old_archive_cmds_CXX | \ |
12601 | old_archive_from_new_cmds_CXX | \ |
12602 | archive_cmds_CXX | \ |
12603 | archive_expsym_cmds_CXX | \ |
12604 | module_cmds_CXX | \ |
12605 | module_expsym_cmds_CXX | \ |
12606 | old_archive_from_expsyms_cmds_CXX | \ |
12607 | export_symbols_cmds_CXX | \ |
12608 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12609 | postinstall_cmds | postuninstall_cmds | \ |
12610 | old_postinstall_cmds | old_postuninstall_cmds | \ |
12611 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12612 | # Double-quote double-evaled strings. |
12613 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12614 | ;; |
12615 | *) |
12616 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12617 | ;; |
12618 | esac |
12619 | done |
12620 | |
12621 | case $lt_echo in |
12622 | *'\$0 --fallback-echo"') |
12623 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12624 | ;; |
12625 | esac |
12626 | |
12627 | cfgfile="$ofile" |
12628 | |
12629 | cat <<__EOF__ >> "$cfgfile" |
12630 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
12631 | |
12632 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
12633 | |
12634 | # Shell to use when invoking shell scripts. |
12635 | SHELL=$lt_SHELL |
12636 | |
12637 | # Whether or not to build shared libraries. |
12638 | build_libtool_libs=$enable_shared |
12639 | |
12640 | # Whether or not to build static libraries. |
12641 | build_old_libs=$enable_static |
12642 | |
12643 | # Whether or not to add -lc for building shared libraries. |
12644 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
12645 | |
12646 | # Whether or not to disallow shared libs when runtime libs are static |
12647 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
12648 | |
12649 | # Whether or not to optimize for fast installation. |
12650 | fast_install=$enable_fast_install |
12651 | |
12652 | # The host system. |
12653 | host_alias=$host_alias |
12654 | host=$host |
12655 | host_os=$host_os |
12656 | |
12657 | # The build system. |
12658 | build_alias=$build_alias |
12659 | build=$build |
12660 | build_os=$build_os |
12661 | |
12662 | # An echo program that does not interpret backslashes. |
12663 | echo=$lt_echo |
12664 | |
12665 | # The archiver. |
12666 | AR=$lt_AR |
12667 | AR_FLAGS=$lt_AR_FLAGS |
12668 | |
12669 | # A C compiler. |
12670 | LTCC=$lt_LTCC |
12671 | |
12672 | # LTCC compiler flags. |
12673 | LTCFLAGS=$lt_LTCFLAGS |
12674 | |
12675 | # A language-specific compiler. |
12676 | CC=$lt_compiler_CXX |
12677 | |
12678 | # Is the compiler the GNU C compiler? |
12679 | with_gcc=$GCC_CXX |
12680 | |
12681 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
12682 | gcc_ver=\`gcc -dumpversion\` |
12683 | |
12684 | # An ERE matcher. |
12685 | EGREP=$lt_EGREP |
12686 | |
12687 | # The linker used to build libraries. |
12688 | LD=$lt_LD_CXX |
12689 | |
12690 | # Whether we need hard or soft links. |
12691 | LN_S=$lt_LN_S |
12692 | |
12693 | # A BSD-compatible nm program. |
12694 | NM=$lt_NM |
12695 | |
12696 | # A symbol stripping program |
12697 | STRIP=$lt_STRIP |
12698 | |
12699 | # Used to examine libraries when file_magic_cmd begins "file" |
12700 | MAGIC_CMD=$MAGIC_CMD |
12701 | |
12702 | # Used on cygwin: DLL creation program. |
12703 | DLLTOOL="$DLLTOOL" |
12704 | |
12705 | # Used on cygwin: object dumper. |
12706 | OBJDUMP="$OBJDUMP" |
12707 | |
12708 | # Used on cygwin: assembler. |
12709 | AS="$AS" |
12710 | |
12711 | # The name of the directory that contains temporary libtool files. |
12712 | objdir=$objdir |
12713 | |
12714 | # How to create reloadable object files. |
12715 | reload_flag=$lt_reload_flag |
12716 | reload_cmds=$lt_reload_cmds |
12717 | |
12718 | # How to pass a linker flag through the compiler. |
12719 | wl=$lt_lt_prog_compiler_wl_CXX |
12720 | |
12721 | # Object file suffix (normally "o"). |
12722 | objext="$ac_objext" |
12723 | |
12724 | # Old archive suffix (normally "a"). |
12725 | libext="$libext" |
12726 | |
12727 | # Shared library suffix (normally ".so"). |
12728 | shrext_cmds='$shrext_cmds' |
12729 | |
12730 | # Executable file suffix (normally ""). |
12731 | exeext="$exeext" |
12732 | |
12733 | # Additional compiler flags for building library objects. |
12734 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
12735 | pic_mode=$pic_mode |
12736 | |
12737 | # What is the maximum length of a command? |
12738 | max_cmd_len=$lt_cv_sys_max_cmd_len |
12739 | |
12740 | # Does compiler simultaneously support -c and -o options? |
12741 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
12742 | |
12743 | # Must we lock files when doing compilation? |
12744 | need_locks=$lt_need_locks |
12745 | |
12746 | # Do we need the lib prefix for modules? |
12747 | need_lib_prefix=$need_lib_prefix |
12748 | |
12749 | # Do we need a version for libraries? |
12750 | need_version=$need_version |
12751 | |
12752 | # Whether dlopen is supported. |
12753 | dlopen_support=$enable_dlopen |
12754 | |
12755 | # Whether dlopen of programs is supported. |
12756 | dlopen_self=$enable_dlopen_self |
12757 | |
12758 | # Whether dlopen of statically linked programs is supported. |
12759 | dlopen_self_static=$enable_dlopen_self_static |
12760 | |
12761 | # Compiler flag to prevent dynamic linking. |
12762 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
12763 | |
12764 | # Compiler flag to turn off builtin functions. |
12765 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
12766 | |
12767 | # Compiler flag to allow reflexive dlopens. |
12768 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
12769 | |
12770 | # Compiler flag to generate shared objects directly from archives. |
12771 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
12772 | |
12773 | # Compiler flag to generate thread-safe objects. |
12774 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
12775 | |
12776 | # Library versioning type. |
12777 | version_type=$version_type |
12778 | |
12779 | # Format of library name prefix. |
12780 | libname_spec=$lt_libname_spec |
12781 | |
12782 | # List of archive names. First name is the real one, the rest are links. |
12783 | # The last name is the one that the linker finds with -lNAME. |
12784 | library_names_spec=$lt_library_names_spec |
12785 | |
12786 | # The coded name of the library, if different from the real name. |
12787 | soname_spec=$lt_soname_spec |
12788 | |
12789 | # Commands used to build and install an old-style archive. |
12790 | RANLIB=$lt_RANLIB |
12791 | old_archive_cmds=$lt_old_archive_cmds_CXX |
12792 | old_postinstall_cmds=$lt_old_postinstall_cmds |
12793 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
12794 | |
12795 | # Create an old-style archive from a shared archive. |
12796 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
12797 | |
12798 | # Create a temporary old-style archive to link instead of a shared archive. |
12799 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
12800 | |
12801 | # Commands used to build and install a shared archive. |
12802 | archive_cmds=$lt_archive_cmds_CXX |
12803 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
12804 | postinstall_cmds=$lt_postinstall_cmds |
12805 | postuninstall_cmds=$lt_postuninstall_cmds |
12806 | |
12807 | # Commands used to build a loadable module (assumed same as above if empty) |
12808 | module_cmds=$lt_module_cmds_CXX |
12809 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
12810 | |
12811 | # Commands to strip libraries. |
12812 | old_striplib=$lt_old_striplib |
12813 | striplib=$lt_striplib |
12814 | |
12815 | # Dependencies to place before the objects being linked to create a |
12816 | # shared library. |
12817 | predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12818 | |
12819 | # Dependencies to place after the objects being linked to create a |
12820 | # shared library. |
12821 | postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12822 | |
12823 | # Dependencies to place before the objects being linked to create a |
12824 | # shared library. |
12825 | predeps=$lt_predeps_CXX |
12826 | |
12827 | # Dependencies to place after the objects being linked to create a |
12828 | # shared library. |
12829 | postdeps=$lt_postdeps_CXX |
12830 | |
12831 | # The library search path used internally by the compiler when linking |
12832 | # a shared library. |
12833 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12834 | |
12835 | # Method to check whether dependent libraries are shared objects. |
12836 | deplibs_check_method=$lt_deplibs_check_method |
12837 | |
12838 | # Command to use when deplibs_check_method == file_magic. |
12839 | file_magic_cmd=$lt_file_magic_cmd |
12840 | |
12841 | # Flag that allows shared libraries with undefined symbols to be built. |
12842 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
12843 | |
12844 | # Flag that forces no undefined symbols. |
12845 | no_undefined_flag=$lt_no_undefined_flag_CXX |
12846 | |
12847 | # Commands used to finish a libtool library installation in a directory. |
12848 | finish_cmds=$lt_finish_cmds |
12849 | |
12850 | # Same as above, but a single script fragment to be evaled but not shown. |
12851 | finish_eval=$lt_finish_eval |
12852 | |
12853 | # Take the output of nm and produce a listing of raw symbols and C names. |
12854 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
12855 | |
12856 | # Transform the output of nm in a proper C declaration |
12857 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
12858 | |
12859 | # Transform the output of nm in a C name address pair |
12860 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
12861 | |
12862 | # This is the shared library runtime path variable. |
12863 | runpath_var=$runpath_var |
12864 | |
12865 | # This is the shared library path variable. |
12866 | shlibpath_var=$shlibpath_var |
12867 | |
12868 | # Is shlibpath searched before the hard-coded library search path? |
12869 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
12870 | |
12871 | # How to hardcode a shared library path into an executable. |
12872 | hardcode_action=$hardcode_action_CXX |
12873 | |
12874 | # Whether we should hardcode library paths into libraries. |
12875 | hardcode_into_libs=$hardcode_into_libs |
12876 | |
12877 | # Flag to hardcode \$libdir into a binary during linking. |
12878 | # This must work even if \$libdir does not exist. |
12879 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
12880 | |
12881 | # If ld is used when linking, flag to hardcode \$libdir into |
12882 | # a binary during linking. This must work even if \$libdir does |
12883 | # not exist. |
12884 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
12885 | |
12886 | # Whether we need a single -rpath flag with a separated argument. |
12887 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
12888 | |
12889 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
12890 | # resulting binary. |
12891 | hardcode_direct=$hardcode_direct_CXX |
12892 | |
12893 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
12894 | # resulting binary. |
12895 | hardcode_minus_L=$hardcode_minus_L_CXX |
12896 | |
12897 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
12898 | # the resulting binary. |
12899 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
12900 | |
12901 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
12902 | # and all subsequent libraries and executables linked against it. |
12903 | hardcode_automatic=$hardcode_automatic_CXX |
12904 | |
12905 | # Variables whose values should be saved in libtool wrapper scripts and |
12906 | # restored at relink time. |
12907 | variables_saved_for_relink="$variables_saved_for_relink" |
12908 | |
12909 | # Whether libtool must link a program against all its dependency libraries. |
12910 | link_all_deplibs=$link_all_deplibs_CXX |
12911 | |
12912 | # Compile-time system search path for libraries |
12913 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
12914 | |
12915 | # Run-time system search path for libraries |
12916 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
12917 | |
12918 | # Fix the shell variable \$srcfile for the compiler. |
12919 | fix_srcfile_path="$fix_srcfile_path_CXX" |
12920 | |
12921 | # Set to yes if exported symbols are required. |
12922 | always_export_symbols=$always_export_symbols_CXX |
12923 | |
12924 | # The commands to list exported symbols. |
12925 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
12926 | |
12927 | # The commands to extract the exported symbol list from a shared archive. |
12928 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
12929 | |
12930 | # Symbols that should not be listed in the preloaded symbols. |
12931 | exclude_expsyms=$lt_exclude_expsyms_CXX |
12932 | |
12933 | # Symbols that must always be exported. |
12934 | include_expsyms=$lt_include_expsyms_CXX |
12935 | |
12936 | # ### END LIBTOOL TAG CONFIG: $tagname |
12937 | |
12938 | __EOF__ |
12939 | |
12940 | |
12941 | else |
12942 | # If there is no Makefile yet, we rely on a make rule to execute |
12943 | # `config.status --recheck' to rerun these tests and create the |
12944 | # libtool script then. |
12945 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
12946 | if test -f "$ltmain_in"; then |
12947 | test -f Makefile && make "$ltmain" |
12948 | fi |
12949 | fi |
12950 | |
12951 | |
12952 | ac_ext=c |
12953 | ac_cpp='$CPP $CPPFLAGS' |
12954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12957 | |
12958 | CC=$lt_save_CC |
12959 | LDCXX=$LD |
12960 | LD=$lt_save_LD |
12961 | GCC=$lt_save_GCC |
12962 | with_gnu_ldcxx=$with_gnu_ld |
12963 | with_gnu_ld=$lt_save_with_gnu_ld |
12964 | lt_cv_path_LDCXX=$lt_cv_path_LD |
12965 | lt_cv_path_LD=$lt_save_path_LD |
12966 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
12967 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
12968 | |
12969 | else |
12970 | tagname="" |
12971 | fi |
12972 | ;; |
12973 | |
12974 | F77) |
12975 | if test -n "$F77" && test "X$F77" != "Xno"; then |
12976 | |
12977 | ac_ext=f |
12978 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
12979 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12980 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
12981 | |
12982 | |
12983 | archive_cmds_need_lc_F77=no |
12984 | allow_undefined_flag_F77= |
12985 | always_export_symbols_F77=no |
12986 | archive_expsym_cmds_F77= |
12987 | export_dynamic_flag_spec_F77= |
12988 | hardcode_direct_F77=no |
12989 | hardcode_libdir_flag_spec_F77= |
12990 | hardcode_libdir_flag_spec_ld_F77= |
12991 | hardcode_libdir_separator_F77= |
12992 | hardcode_minus_L_F77=no |
12993 | hardcode_automatic_F77=no |
12994 | module_cmds_F77= |
12995 | module_expsym_cmds_F77= |
12996 | link_all_deplibs_F77=unknown |
12997 | old_archive_cmds_F77=$old_archive_cmds |
12998 | no_undefined_flag_F77= |
12999 | whole_archive_flag_spec_F77= |
13000 | enable_shared_with_static_runtimes_F77=no |
13001 | |
13002 | # Source file extension for f77 test sources. |
13003 | ac_ext=f |
13004 | |
13005 | # Object file extension for compiled f77 test sources. |
13006 | objext=o |
13007 | objext_F77=$objext |
13008 | |
13009 | # Code to be used in simple compile tests |
13010 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13011 | |
13012 | # Code to be used in simple link tests |
13013 | lt_simple_link_test_code=" program t\n end\n" |
13014 | |
13015 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13016 | |
13017 | # If no C compiler was specified, use CC. |
13018 | LTCC=${LTCC-"$CC"} |
13019 | |
13020 | # If no C compiler flags were specified, use CFLAGS. |
13021 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13022 | |
13023 | # Allow CC to be a program name with arguments. |
13024 | compiler=$CC |
13025 | |
13026 | |
13027 | # save warnings/boilerplate of simple test code |
13028 | ac_outfile=conftest.$ac_objext |
13029 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13030 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13031 | _lt_compiler_boilerplate=`cat conftest.err` |
13032 | $rm conftest* |
13033 | |
13034 | ac_outfile=conftest.$ac_objext |
13035 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13036 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13037 | _lt_linker_boilerplate=`cat conftest.err` |
13038 | $rm conftest* |
13039 | |
13040 | |
13041 | # Allow CC to be a program name with arguments. |
13042 | lt_save_CC="$CC" |
13043 | CC=${F77-"f77"} |
13044 | compiler=$CC |
13045 | compiler_F77=$CC |
13046 | for cc_temp in $compiler""; do |
13047 | case $cc_temp in |
13048 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13049 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13050 | \-*) ;; |
13051 | *) break;; |
13052 | esac |
13053 | done |
13054 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13055 | |
13056 | |
13057 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13058 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13059 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13060 | echo "${ECHO_T}$can_build_shared" >&6 |
13061 | |
13062 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13063 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13064 | test "$can_build_shared" = "no" && enable_shared=no |
13065 | |
13066 | # On AIX, shared libraries and static libraries use the same namespace, and |
13067 | # are all built from PIC. |
13068 | case $host_os in |
13069 | aix3*) |
13070 | test "$enable_shared" = yes && enable_static=no |
13071 | if test -n "$RANLIB"; then |
13072 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13073 | postinstall_cmds='$RANLIB $lib' |
13074 | fi |
13075 | ;; |
13076 | aix4* | aix5*) |
13077 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13078 | test "$enable_shared" = yes && enable_static=no |
13079 | fi |
13080 | ;; |
13081 | esac |
13082 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13083 | echo "${ECHO_T}$enable_shared" >&6 |
13084 | |
13085 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13086 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13087 | # Make sure either enable_shared or enable_static is yes. |
13088 | test "$enable_shared" = yes || enable_static=yes |
13089 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13090 | echo "${ECHO_T}$enable_static" >&6 |
13091 | |
13092 | GCC_F77="$G77" |
13093 | LD_F77="$LD" |
13094 | |
13095 | lt_prog_compiler_wl_F77= |
13096 | lt_prog_compiler_pic_F77= |
13097 | lt_prog_compiler_static_F77= |
13098 | |
13099 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13100 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13101 | |
13102 | if test "$GCC" = yes; then |
13103 | lt_prog_compiler_wl_F77='-Wl,' |
13104 | lt_prog_compiler_static_F77='-static' |
13105 | |
13106 | case $host_os in |
13107 | aix*) |
13108 | # All AIX code is PIC. |
13109 | if test "$host_cpu" = ia64; then |
13110 | # AIX 5 now supports IA64 processor |
13111 | lt_prog_compiler_static_F77='-Bstatic' |
13112 | fi |
13113 | ;; |
13114 | |
13115 | amigaos*) |
13116 | # FIXME: we need at least 68020 code to build shared libraries, but |
13117 | # adding the `-m68020' flag to GCC prevents building anything better, |
13118 | # like `-m68040'. |
13119 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13120 | ;; |
13121 | |
13122 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13123 | # PIC is the default for these OSes. |
13124 | ;; |
13125 | |
13126 | mingw* | pw32* | os2*) |
13127 | # This hack is so that the source file can tell whether it is being |
13128 | # built for inclusion in a dll (and should export symbols for example). |
13129 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13130 | ;; |
13131 | |
13132 | darwin* | rhapsody*) |
13133 | # PIC is the default on this platform |
13134 | # Common symbols not allowed in MH_DYLIB files |
13135 | lt_prog_compiler_pic_F77='-fno-common' |
13136 | ;; |
13137 | |
13138 | interix3*) |
13139 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13140 | # Instead, we relocate shared libraries at runtime. |
13141 | ;; |
13142 | |
13143 | msdosdjgpp*) |
13144 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13145 | # on systems that don't support them. |
13146 | lt_prog_compiler_can_build_shared_F77=no |
13147 | enable_shared=no |
13148 | ;; |
13149 | |
13150 | sysv4*MP*) |
13151 | if test -d /usr/nec; then |
13152 | lt_prog_compiler_pic_F77=-Kconform_pic |
13153 | fi |
13154 | ;; |
13155 | |
13156 | hpux*) |
13157 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13158 | # not for PA HP-UX. |
13159 | case $host_cpu in |
13160 | hppa*64*|ia64*) |
13161 | # +Z the default |
13162 | ;; |
13163 | *) |
13164 | lt_prog_compiler_pic_F77='-fPIC' |
13165 | ;; |
13166 | esac |
13167 | ;; |
13168 | |
13169 | *) |
13170 | lt_prog_compiler_pic_F77='-fPIC' |
13171 | ;; |
13172 | esac |
13173 | else |
13174 | # PORTME Check for flag to pass linker flags through the system compiler. |
13175 | case $host_os in |
13176 | aix*) |
13177 | lt_prog_compiler_wl_F77='-Wl,' |
13178 | if test "$host_cpu" = ia64; then |
13179 | # AIX 5 now supports IA64 processor |
13180 | lt_prog_compiler_static_F77='-Bstatic' |
13181 | else |
13182 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13183 | fi |
13184 | ;; |
13185 | darwin*) |
13186 | # PIC is the default on this platform |
13187 | # Common symbols not allowed in MH_DYLIB files |
13188 | case $cc_basename in |
13189 | xlc*) |
13190 | lt_prog_compiler_pic_F77='-qnocommon' |
13191 | lt_prog_compiler_wl_F77='-Wl,' |
13192 | ;; |
13193 | esac |
13194 | ;; |
13195 | |
13196 | mingw* | pw32* | os2*) |
13197 | # This hack is so that the source file can tell whether it is being |
13198 | # built for inclusion in a dll (and should export symbols for example). |
13199 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13200 | ;; |
13201 | |
13202 | hpux9* | hpux10* | hpux11*) |
13203 | lt_prog_compiler_wl_F77='-Wl,' |
13204 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13205 | # not for PA HP-UX. |
13206 | case $host_cpu in |
13207 | hppa*64*|ia64*) |
13208 | # +Z the default |
13209 | ;; |
13210 | *) |
13211 | lt_prog_compiler_pic_F77='+Z' |
13212 | ;; |
13213 | esac |
13214 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13215 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13216 | ;; |
13217 | |
13218 | irix5* | irix6* | nonstopux*) |
13219 | lt_prog_compiler_wl_F77='-Wl,' |
13220 | # PIC (with -KPIC) is the default. |
13221 | lt_prog_compiler_static_F77='-non_shared' |
13222 | ;; |
13223 | |
13224 | newsos6) |
13225 | lt_prog_compiler_pic_F77='-KPIC' |
13226 | lt_prog_compiler_static_F77='-Bstatic' |
13227 | ;; |
13228 | |
13229 | linux*) |
13230 | case $cc_basename in |
13231 | icc* | ecc*) |
13232 | lt_prog_compiler_wl_F77='-Wl,' |
13233 | lt_prog_compiler_pic_F77='-KPIC' |
13234 | lt_prog_compiler_static_F77='-static' |
13235 | ;; |
13236 | pgcc* | pgf77* | pgf90* | pgf95*) |
13237 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13238 | # which looks to be a dead project) |
13239 | lt_prog_compiler_wl_F77='-Wl,' |
13240 | lt_prog_compiler_pic_F77='-fpic' |
13241 | lt_prog_compiler_static_F77='-Bstatic' |
13242 | ;; |
13243 | ccc*) |
13244 | lt_prog_compiler_wl_F77='-Wl,' |
13245 | # All Alpha code is PIC. |
13246 | lt_prog_compiler_static_F77='-non_shared' |
13247 | ;; |
13248 | esac |
13249 | ;; |
13250 | |
13251 | osf3* | osf4* | osf5*) |
13252 | lt_prog_compiler_wl_F77='-Wl,' |
13253 | # All OSF/1 code is PIC. |
13254 | lt_prog_compiler_static_F77='-non_shared' |
13255 | ;; |
13256 | |
13257 | solaris*) |
13258 | lt_prog_compiler_pic_F77='-KPIC' |
13259 | lt_prog_compiler_static_F77='-Bstatic' |
13260 | case $cc_basename in |
13261 | f77* | f90* | f95*) |
13262 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13263 | *) |
13264 | lt_prog_compiler_wl_F77='-Wl,';; |
13265 | esac |
13266 | ;; |
13267 | |
13268 | sunos4*) |
13269 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13270 | lt_prog_compiler_pic_F77='-PIC' |
13271 | lt_prog_compiler_static_F77='-Bstatic' |
13272 | ;; |
13273 | |
13274 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13275 | lt_prog_compiler_wl_F77='-Wl,' |
13276 | lt_prog_compiler_pic_F77='-KPIC' |
13277 | lt_prog_compiler_static_F77='-Bstatic' |
13278 | ;; |
13279 | |
13280 | sysv4*MP*) |
13281 | if test -d /usr/nec ;then |
13282 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13283 | lt_prog_compiler_static_F77='-Bstatic' |
13284 | fi |
13285 | ;; |
13286 | |
13287 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13288 | lt_prog_compiler_wl_F77='-Wl,' |
13289 | lt_prog_compiler_pic_F77='-KPIC' |
13290 | lt_prog_compiler_static_F77='-Bstatic' |
13291 | ;; |
13292 | |
13293 | unicos*) |
13294 | lt_prog_compiler_wl_F77='-Wl,' |
13295 | lt_prog_compiler_can_build_shared_F77=no |
13296 | ;; |
13297 | |
13298 | uts4*) |
13299 | lt_prog_compiler_pic_F77='-pic' |
13300 | lt_prog_compiler_static_F77='-Bstatic' |
13301 | ;; |
13302 | |
13303 | *) |
13304 | lt_prog_compiler_can_build_shared_F77=no |
13305 | ;; |
13306 | esac |
13307 | fi |
13308 | |
13309 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13310 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13311 | |
13312 | # |
13313 | # Check to make sure the PIC flag actually works. |
13314 | # |
13315 | if test -n "$lt_prog_compiler_pic_F77"; then |
13316 | |
13317 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13318 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13319 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13321 | else |
13322 | lt_prog_compiler_pic_works_F77=no |
13323 | ac_outfile=conftest.$ac_objext |
13324 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13325 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13326 | # Insert the option either (1) after the last *FLAGS variable, or |
13327 | # (2) before a word containing "conftest.", or (3) at the end. |
13328 | # Note that $ac_compile itself does not contain backslashes and begins |
13329 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13330 | # The option is referenced via a variable to avoid confusing sed. |
13331 | lt_compile=`echo "$ac_compile" | $SED \ |
13332 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13333 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13334 | -e 's:$: $lt_compiler_flag:'` |
13335 | (eval echo "\"\$as_me:13335: $lt_compile\"" >&5) |
13336 | (eval "$lt_compile" 2>conftest.err) |
13337 | ac_status=$? |
13338 | cat conftest.err >&5 |
13339 | echo "$as_me:13339: \$? = $ac_status" >&5 |
13340 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13341 | # The compiler can only warn and ignore the option if not recognized |
13342 | # So say no if there are warnings other than the usual output. |
13343 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13344 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13345 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13346 | lt_prog_compiler_pic_works_F77=yes |
13347 | fi |
13348 | fi |
13349 | $rm conftest* |
13350 | |
13351 | fi |
13352 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13353 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13354 | |
13355 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13356 | case $lt_prog_compiler_pic_F77 in |
13357 | "" | " "*) ;; |
13358 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13359 | esac |
13360 | else |
13361 | lt_prog_compiler_pic_F77= |
13362 | lt_prog_compiler_can_build_shared_F77=no |
13363 | fi |
13364 | |
13365 | fi |
13366 | case $host_os in |
13367 | # For platforms which do not support PIC, -DPIC is meaningless: |
13368 | *djgpp*) |
13369 | lt_prog_compiler_pic_F77= |
13370 | ;; |
13371 | *) |
13372 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13373 | ;; |
13374 | esac |
13375 | |
13376 | # |
13377 | # Check to make sure the static flag actually works. |
13378 | # |
13379 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
13380 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13381 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
13382 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
13383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13384 | else |
13385 | lt_prog_compiler_static_works_F77=no |
13386 | save_LDFLAGS="$LDFLAGS" |
13387 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
13388 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
13389 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
13390 | # The linker can only warn and ignore the option if not recognized |
13391 | # So say no if there are warnings |
13392 | if test -s conftest.err; then |
13393 | # Append any errors to the config.log. |
13394 | cat conftest.err 1>&5 |
13395 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
13396 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13397 | if diff conftest.exp conftest.er2 >/dev/null; then |
13398 | lt_prog_compiler_static_works_F77=yes |
13399 | fi |
13400 | else |
13401 | lt_prog_compiler_static_works_F77=yes |
13402 | fi |
13403 | fi |
13404 | $rm conftest* |
13405 | LDFLAGS="$save_LDFLAGS" |
13406 | |
13407 | fi |
13408 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
13409 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
13410 | |
13411 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
13412 | : |
13413 | else |
13414 | lt_prog_compiler_static_F77= |
13415 | fi |
13416 | |
13417 | |
13418 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13419 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13420 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13422 | else |
13423 | lt_cv_prog_compiler_c_o_F77=no |
13424 | $rm -r conftest 2>/dev/null |
13425 | mkdir conftest |
13426 | cd conftest |
13427 | mkdir out |
13428 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13429 | |
13430 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
13431 | # Insert the option either (1) after the last *FLAGS variable, or |
13432 | # (2) before a word containing "conftest.", or (3) at the end. |
13433 | # Note that $ac_compile itself does not contain backslashes and begins |
13434 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13435 | lt_compile=`echo "$ac_compile" | $SED \ |
13436 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13437 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13438 | -e 's:$: $lt_compiler_flag:'` |
13439 | (eval echo "\"\$as_me:13439: $lt_compile\"" >&5) |
13440 | (eval "$lt_compile" 2>out/conftest.err) |
13441 | ac_status=$? |
13442 | cat out/conftest.err >&5 |
13443 | echo "$as_me:13443: \$? = $ac_status" >&5 |
13444 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13445 | then |
13446 | # The compiler can only warn and ignore the option if not recognized |
13447 | # So say no if there are warnings |
13448 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13449 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13450 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
13451 | lt_cv_prog_compiler_c_o_F77=yes |
13452 | fi |
13453 | fi |
13454 | chmod u+w . 2>&5 |
13455 | $rm conftest* |
13456 | # SGI C++ compiler will create directory out/ii_files/ for |
13457 | # template instantiation |
13458 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13459 | $rm out/* && rmdir out |
13460 | cd .. |
13461 | rmdir conftest |
13462 | $rm conftest* |
13463 | |
13464 | fi |
13465 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13466 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13467 | |
13468 | |
13469 | hard_links="nottested" |
13470 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13471 | # do not overwrite the value of need_locks provided by the user |
13472 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13473 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13474 | hard_links=yes |
13475 | $rm conftest* |
13476 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13477 | touch conftest.a |
13478 | ln conftest.a conftest.b 2>&5 || hard_links=no |
13479 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13480 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
13481 | echo "${ECHO_T}$hard_links" >&6 |
13482 | if test "$hard_links" = no; then |
13483 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13484 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13485 | need_locks=warn |
13486 | fi |
13487 | else |
13488 | need_locks=no |
13489 | fi |
13490 | |
13491 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13492 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13493 | |
13494 | runpath_var= |
13495 | allow_undefined_flag_F77= |
13496 | enable_shared_with_static_runtimes_F77=no |
13497 | archive_cmds_F77= |
13498 | archive_expsym_cmds_F77= |
13499 | old_archive_From_new_cmds_F77= |
13500 | old_archive_from_expsyms_cmds_F77= |
13501 | export_dynamic_flag_spec_F77= |
13502 | whole_archive_flag_spec_F77= |
13503 | thread_safe_flag_spec_F77= |
13504 | hardcode_libdir_flag_spec_F77= |
13505 | hardcode_libdir_flag_spec_ld_F77= |
13506 | hardcode_libdir_separator_F77= |
13507 | hardcode_direct_F77=no |
13508 | hardcode_minus_L_F77=no |
13509 | hardcode_shlibpath_var_F77=unsupported |
13510 | link_all_deplibs_F77=unknown |
13511 | hardcode_automatic_F77=no |
13512 | module_cmds_F77= |
13513 | module_expsym_cmds_F77= |
13514 | always_export_symbols_F77=no |
13515 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13516 | # include_expsyms should be a list of space-separated symbols to be *always* |
13517 | # included in the symbol list |
13518 | include_expsyms_F77= |
13519 | # exclude_expsyms can be an extended regexp of symbols to exclude |
13520 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
13521 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13522 | # as well as any symbol that contains `d'. |
13523 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13524 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13525 | # platforms (ab)use it in PIC code, but their linkers get confused if |
13526 | # the symbol is explicitly referenced. Since portable code cannot |
13527 | # rely on this symbol name, it's probably fine to never include it in |
13528 | # preloaded symbol tables. |
13529 | extract_expsyms_cmds= |
13530 | # Just being paranoid about ensuring that cc_basename is set. |
13531 | for cc_temp in $compiler""; do |
13532 | case $cc_temp in |
13533 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13534 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13535 | \-*) ;; |
13536 | *) break;; |
13537 | esac |
13538 | done |
13539 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13540 | |
13541 | case $host_os in |
13542 | cygwin* | mingw* | pw32*) |
13543 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13544 | # When not using gcc, we currently assume that we are using |
13545 | # Microsoft Visual C++. |
13546 | if test "$GCC" != yes; then |
13547 | with_gnu_ld=no |
13548 | fi |
13549 | ;; |
13550 | interix*) |
13551 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
13552 | with_gnu_ld=yes |
13553 | ;; |
13554 | openbsd*) |
13555 | with_gnu_ld=no |
13556 | ;; |
13557 | esac |
13558 | |
13559 | ld_shlibs_F77=yes |
13560 | if test "$with_gnu_ld" = yes; then |
13561 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13562 | wlarc='${wl}' |
13563 | |
13564 | # Set some defaults for GNU ld with shared library support. These |
13565 | # are reset later if shared libraries are not supported. Putting them |
13566 | # here allows them to be overridden if necessary. |
13567 | runpath_var=LD_RUN_PATH |
13568 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13569 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13570 | # ancient GNU ld didn't support --whole-archive et. al. |
13571 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13572 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13573 | else |
13574 | whole_archive_flag_spec_F77= |
13575 | fi |
13576 | supports_anon_versioning=no |
13577 | case `$LD -v 2>/dev/null` in |
13578 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13579 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13580 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13581 | *\ 2.11.*) ;; # other 2.11 versions |
13582 | *) supports_anon_versioning=yes ;; |
13583 | esac |
13584 | |
13585 | # See if GNU ld supports shared libraries. |
13586 | case $host_os in |
13587 | aix3* | aix4* | aix5*) |
13588 | # On AIX/PPC, the GNU linker is very broken |
13589 | if test "$host_cpu" != ia64; then |
13590 | ld_shlibs_F77=no |
13591 | cat <<EOF 1>&2 |
13592 | |
13593 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13594 | *** to be unable to reliably create shared libraries on AIX. |
13595 | *** Therefore, libtool is disabling shared libraries support. If you |
13596 | *** really care for shared libraries, you may want to modify your PATH |
13597 | *** so that a non-GNU linker is found, and then restart. |
13598 | |
13599 | EOF |
13600 | fi |
13601 | ;; |
13602 | |
13603 | amigaos*) |
13604 | 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)' |
13605 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13606 | hardcode_minus_L_F77=yes |
13607 | |
13608 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13609 | # that the semantics of dynamic libraries on AmigaOS, at least up |
13610 | # to version 4, is to share data among multiple programs linked |
13611 | # with the same dynamic library. Since this doesn't match the |
13612 | # behavior of shared libraries on other platforms, we can't use |
13613 | # them. |
13614 | ld_shlibs_F77=no |
13615 | ;; |
13616 | |
13617 | beos*) |
13618 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13619 | allow_undefined_flag_F77=unsupported |
13620 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13621 | # support --undefined. This deserves some investigation. FIXME |
13622 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13623 | else |
13624 | ld_shlibs_F77=no |
13625 | fi |
13626 | ;; |
13627 | |
13628 | cygwin* | mingw* | pw32*) |
13629 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13630 | # as there is no search path for DLLs. |
13631 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13632 | allow_undefined_flag_F77=unsupported |
13633 | always_export_symbols_F77=no |
13634 | enable_shared_with_static_runtimes_F77=yes |
13635 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13636 | |
13637 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13638 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13639 | # If the export-symbols file already is a .def file (1st line |
13640 | # is EXPORTS), use it as is; otherwise, prepend... |
13641 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13642 | cp $export_symbols $output_objdir/$soname.def; |
13643 | else |
13644 | echo EXPORTS > $output_objdir/$soname.def; |
13645 | cat $export_symbols >> $output_objdir/$soname.def; |
13646 | fi~ |
13647 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
13648 | else |
13649 | ld_shlibs_F77=no |
13650 | fi |
13651 | ;; |
13652 | |
13653 | interix3*) |
13654 | hardcode_direct_F77=no |
13655 | hardcode_shlibpath_var_F77=no |
13656 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
13657 | export_dynamic_flag_spec_F77='${wl}-E' |
13658 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
13659 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
13660 | # default) and relocated if they conflict, which is a slow very memory |
13661 | # consuming and fragmenting process. To avoid this, we pick a random, |
13662 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
13663 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
13664 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
13665 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
13666 | ;; |
13667 | |
13668 | linux*) |
13669 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13670 | tmp_addflag= |
13671 | case $cc_basename,$host_cpu in |
13672 | pgcc*) # Portland Group C compiler |
13673 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
13674 | tmp_addflag=' $pic_flag' |
13675 | ;; |
13676 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13677 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
13678 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13679 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
13680 | tmp_addflag=' -i_dynamic' ;; |
13681 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
13682 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
13683 | ifc* | ifort*) # Intel Fortran compiler |
13684 | tmp_addflag=' -nofor_main' ;; |
13685 | esac |
13686 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13687 | |
13688 | if test $supports_anon_versioning = yes; then |
13689 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13690 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13691 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
13692 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13693 | fi |
13694 | else |
13695 | ld_shlibs_F77=no |
13696 | fi |
13697 | ;; |
13698 | |
13699 | netbsd*) |
13700 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13701 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13702 | wlarc= |
13703 | else |
13704 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13705 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13706 | fi |
13707 | ;; |
13708 | |
13709 | solaris*) |
13710 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13711 | ld_shlibs_F77=no |
13712 | cat <<EOF 1>&2 |
13713 | |
13714 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13715 | *** create shared libraries on Solaris systems. Therefore, libtool |
13716 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13717 | *** binutils to release 2.9.1 or newer. Another option is to modify |
13718 | *** your PATH or compiler configuration so that the native linker is |
13719 | *** used, and then restart. |
13720 | |
13721 | EOF |
13722 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13723 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13724 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13725 | else |
13726 | ld_shlibs_F77=no |
13727 | fi |
13728 | ;; |
13729 | |
13730 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
13731 | case `$LD -v 2>&1` in |
13732 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
13733 | ld_shlibs_F77=no |
13734 | cat <<_LT_EOF 1>&2 |
13735 | |
13736 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
13737 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
13738 | *** is disabling shared libraries support. We urge you to upgrade GNU |
13739 | *** binutils to release 2.16.91.0.3 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 | _LT_EOF |
13744 | ;; |
13745 | *) |
13746 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13747 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
13748 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
13749 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
13750 | else |
13751 | ld_shlibs_F77=no |
13752 | fi |
13753 | ;; |
13754 | esac |
13755 | ;; |
13756 | |
13757 | sunos4*) |
13758 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13759 | wlarc= |
13760 | hardcode_direct_F77=yes |
13761 | hardcode_shlibpath_var_F77=no |
13762 | ;; |
13763 | |
13764 | *) |
13765 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13766 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13767 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13768 | else |
13769 | ld_shlibs_F77=no |
13770 | fi |
13771 | ;; |
13772 | esac |
13773 | |
13774 | if test "$ld_shlibs_F77" = no; then |
13775 | runpath_var= |
13776 | hardcode_libdir_flag_spec_F77= |
13777 | export_dynamic_flag_spec_F77= |
13778 | whole_archive_flag_spec_F77= |
13779 | fi |
13780 | else |
13781 | # PORTME fill in a description of your system's linker (not GNU ld) |
13782 | case $host_os in |
13783 | aix3*) |
13784 | allow_undefined_flag_F77=unsupported |
13785 | always_export_symbols_F77=yes |
13786 | 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' |
13787 | # Note: this linker hardcodes the directories in LIBPATH if there |
13788 | # are no directories specified by -L. |
13789 | hardcode_minus_L_F77=yes |
13790 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
13791 | # Neither direct hardcoding nor static linking is supported with a |
13792 | # broken collect2. |
13793 | hardcode_direct_F77=unsupported |
13794 | fi |
13795 | ;; |
13796 | |
13797 | aix4* | aix5*) |
13798 | if test "$host_cpu" = ia64; then |
13799 | # On IA64, the linker does run time linking by default, so we don't |
13800 | # have to do anything special. |
13801 | aix_use_runtimelinking=no |
13802 | exp_sym_flag='-Bexport' |
13803 | no_entry_flag="" |
13804 | else |
13805 | # If we're using GNU nm, then we don't want the "-C" option. |
13806 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13807 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13808 | 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' |
13809 | else |
13810 | 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' |
13811 | fi |
13812 | aix_use_runtimelinking=no |
13813 | |
13814 | # Test if we are trying to use run time linking or normal |
13815 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
13816 | # need to do runtime linking. |
13817 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
13818 | for ld_flag in $LDFLAGS; do |
13819 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
13820 | aix_use_runtimelinking=yes |
13821 | break |
13822 | fi |
13823 | done |
13824 | ;; |
13825 | esac |
13826 | |
13827 | exp_sym_flag='-bexport' |
13828 | no_entry_flag='-bnoentry' |
13829 | fi |
13830 | |
13831 | # When large executables or shared objects are built, AIX ld can |
13832 | # have problems creating the table of contents. If linking a library |
13833 | # or program results in "error TOC overflow" add -mminimal-toc to |
13834 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
13835 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
13836 | |
13837 | archive_cmds_F77='' |
13838 | hardcode_direct_F77=yes |
13839 | hardcode_libdir_separator_F77=':' |
13840 | link_all_deplibs_F77=yes |
13841 | |
13842 | if test "$GCC" = yes; then |
13843 | case $host_os in aix4.[012]|aix4.[012].*) |
13844 | # We only want to do this on AIX 4.2 and lower, the check |
13845 | # below for broken collect2 doesn't work under 4.3+ |
13846 | collect2name=`${CC} -print-prog-name=collect2` |
13847 | if test -f "$collect2name" && \ |
13848 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
13849 | then |
13850 | # We have reworked collect2 |
13851 | hardcode_direct_F77=yes |
13852 | else |
13853 | # We have old collect2 |
13854 | hardcode_direct_F77=unsupported |
13855 | # It fails to find uninstalled libraries when the uninstalled |
13856 | # path is not listed in the libpath. Setting hardcode_minus_L |
13857 | # to unsupported forces relinking |
13858 | hardcode_minus_L_F77=yes |
13859 | hardcode_libdir_flag_spec_F77='-L$libdir' |
13860 | hardcode_libdir_separator_F77= |
13861 | fi |
13862 | ;; |
13863 | esac |
13864 | shared_flag='-shared' |
13865 | if test "$aix_use_runtimelinking" = yes; then |
13866 | shared_flag="$shared_flag "'${wl}-G' |
13867 | fi |
13868 | else |
13869 | # not using gcc |
13870 | if test "$host_cpu" = ia64; then |
13871 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
13872 | # chokes on -Wl,-G. The following line is correct: |
13873 | shared_flag='-G' |
13874 | else |
13875 | if test "$aix_use_runtimelinking" = yes; then |
13876 | shared_flag='${wl}-G' |
13877 | else |
13878 | shared_flag='${wl}-bM:SRE' |
13879 | fi |
13880 | fi |
13881 | fi |
13882 | |
13883 | # It seems that -bexpall does not export symbols beginning with |
13884 | # underscore (_), so it is better to generate a list of symbols to export. |
13885 | always_export_symbols_F77=yes |
13886 | if test "$aix_use_runtimelinking" = yes; then |
13887 | # Warning - without using the other runtime loading flags (-brtl), |
13888 | # -berok will link without error, but may produce a broken library. |
13889 | allow_undefined_flag_F77='-berok' |
13890 | # Determine the default libpath from the value encoded in an empty executable. |
13891 | cat >conftest.$ac_ext <<_ACEOF |
13892 | program main |
13893 | |
13894 | end |
13895 | _ACEOF |
13896 | rm -f conftest.$ac_objext conftest$ac_exeext |
13897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13898 | (eval $ac_link) 2>conftest.er1 |
13899 | ac_status=$? |
13900 | grep -v '^ *+' conftest.er1 >conftest.err |
13901 | rm -f conftest.er1 |
13902 | cat conftest.err >&5 |
13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13904 | (exit $ac_status); } && |
13905 | { ac_try='test -z "$ac_f77_werror_flag" |
13906 | || test ! -s conftest.err' |
13907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13908 | (eval $ac_try) 2>&5 |
13909 | ac_status=$? |
13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13911 | (exit $ac_status); }; } && |
13912 | { ac_try='test -s conftest$ac_exeext' |
13913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13914 | (eval $ac_try) 2>&5 |
13915 | ac_status=$? |
13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13917 | (exit $ac_status); }; }; then |
13918 | |
13919 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13920 | }'` |
13921 | # Check for a 64-bit object if we didn't find anything. |
13922 | 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; } |
13923 | }'`; fi |
13924 | else |
13925 | echo "$as_me: failed program was:" >&5 |
13926 | sed 's/^/| /' conftest.$ac_ext >&5 |
13927 | |
13928 | fi |
13929 | rm -f conftest.err conftest.$ac_objext \ |
13930 | conftest$ac_exeext conftest.$ac_ext |
13931 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13932 | |
13933 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13934 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
13935 | else |
13936 | if test "$host_cpu" = ia64; then |
13937 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
13938 | allow_undefined_flag_F77="-z nodefs" |
13939 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
13940 | else |
13941 | # Determine the default libpath from the value encoded in an empty executable. |
13942 | cat >conftest.$ac_ext <<_ACEOF |
13943 | program main |
13944 | |
13945 | end |
13946 | _ACEOF |
13947 | rm -f conftest.$ac_objext conftest$ac_exeext |
13948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13949 | (eval $ac_link) 2>conftest.er1 |
13950 | ac_status=$? |
13951 | grep -v '^ *+' conftest.er1 >conftest.err |
13952 | rm -f conftest.er1 |
13953 | cat conftest.err >&5 |
13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13955 | (exit $ac_status); } && |
13956 | { ac_try='test -z "$ac_f77_werror_flag" |
13957 | || test ! -s conftest.err' |
13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13959 | (eval $ac_try) 2>&5 |
13960 | ac_status=$? |
13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13962 | (exit $ac_status); }; } && |
13963 | { ac_try='test -s conftest$ac_exeext' |
13964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13965 | (eval $ac_try) 2>&5 |
13966 | ac_status=$? |
13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13968 | (exit $ac_status); }; }; then |
13969 | |
13970 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
13971 | }'` |
13972 | # Check for a 64-bit object if we didn't find anything. |
13973 | 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; } |
13974 | }'`; fi |
13975 | else |
13976 | echo "$as_me: failed program was:" >&5 |
13977 | sed 's/^/| /' conftest.$ac_ext >&5 |
13978 | |
13979 | fi |
13980 | rm -f conftest.err conftest.$ac_objext \ |
13981 | conftest$ac_exeext conftest.$ac_ext |
13982 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13983 | |
13984 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
13985 | # Warning - without using the other run time loading flags, |
13986 | # -berok will link without error, but may produce a broken library. |
13987 | no_undefined_flag_F77=' ${wl}-bernotok' |
13988 | allow_undefined_flag_F77=' ${wl}-berok' |
13989 | # Exported symbols can be pulled into shared objects from archives |
13990 | whole_archive_flag_spec_F77='$convenience' |
13991 | archive_cmds_need_lc_F77=yes |
13992 | # This is similar to how AIX traditionally builds its shared libraries. |
13993 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
13994 | fi |
13995 | fi |
13996 | ;; |
13997 | |
13998 | amigaos*) |
13999 | 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)' |
14000 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14001 | hardcode_minus_L_F77=yes |
14002 | # see comment about different semantics on the GNU ld section |
14003 | ld_shlibs_F77=no |
14004 | ;; |
14005 | |
14006 | bsdi[45]*) |
14007 | export_dynamic_flag_spec_F77=-rdynamic |
14008 | ;; |
14009 | |
14010 | cygwin* | mingw* | pw32*) |
14011 | # When not using gcc, we currently assume that we are using |
14012 | # Microsoft Visual C++. |
14013 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14014 | # no search path for DLLs. |
14015 | hardcode_libdir_flag_spec_F77=' ' |
14016 | allow_undefined_flag_F77=unsupported |
14017 | # Tell ltmain to make .lib files, not .a files. |
14018 | libext=lib |
14019 | # Tell ltmain to make .dll files, not .so files. |
14020 | shrext_cmds=".dll" |
14021 | # FIXME: Setting linknames here is a bad hack. |
14022 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14023 | # The linker will automatically build a .lib file if we build a DLL. |
14024 | old_archive_From_new_cmds_F77='true' |
14025 | # FIXME: Should let the user specify the lib program. |
14026 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14027 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14028 | enable_shared_with_static_runtimes_F77=yes |
14029 | ;; |
14030 | |
14031 | darwin* | rhapsody*) |
14032 | case $host_os in |
14033 | rhapsody* | darwin1.[012]) |
14034 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14035 | ;; |
14036 | *) # Darwin 1.3 on |
14037 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14038 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14039 | else |
14040 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14041 | 10.[012]) |
14042 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14043 | ;; |
14044 | 10.*) |
14045 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14046 | ;; |
14047 | esac |
14048 | fi |
14049 | ;; |
14050 | esac |
14051 | archive_cmds_need_lc_F77=no |
14052 | hardcode_direct_F77=no |
14053 | hardcode_automatic_F77=yes |
14054 | hardcode_shlibpath_var_F77=unsupported |
14055 | whole_archive_flag_spec_F77='' |
14056 | link_all_deplibs_F77=yes |
14057 | if test "$GCC" = yes ; then |
14058 | output_verbose_link_cmd='echo' |
14059 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14060 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14061 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14062 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14063 | 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}' |
14064 | else |
14065 | case $cc_basename in |
14066 | xlc*) |
14067 | output_verbose_link_cmd='echo' |
14068 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14069 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14070 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14071 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14072 | 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}' |
14073 | ;; |
14074 | *) |
14075 | ld_shlibs_F77=no |
14076 | ;; |
14077 | esac |
14078 | fi |
14079 | ;; |
14080 | |
14081 | dgux*) |
14082 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14083 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14084 | hardcode_shlibpath_var_F77=no |
14085 | ;; |
14086 | |
14087 | freebsd1*) |
14088 | ld_shlibs_F77=no |
14089 | ;; |
14090 | |
14091 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14092 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14093 | # does not break anything, and helps significantly (at the cost of a little |
14094 | # extra space). |
14095 | freebsd2.2*) |
14096 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14097 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14098 | hardcode_direct_F77=yes |
14099 | hardcode_shlibpath_var_F77=no |
14100 | ;; |
14101 | |
14102 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14103 | freebsd2*) |
14104 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14105 | hardcode_direct_F77=yes |
14106 | hardcode_minus_L_F77=yes |
14107 | hardcode_shlibpath_var_F77=no |
14108 | ;; |
14109 | |
14110 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14111 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14112 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14113 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14114 | hardcode_direct_F77=yes |
14115 | hardcode_shlibpath_var_F77=no |
14116 | ;; |
14117 | |
14118 | hpux9*) |
14119 | if test "$GCC" = yes; then |
14120 | 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' |
14121 | else |
14122 | 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' |
14123 | fi |
14124 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14125 | hardcode_libdir_separator_F77=: |
14126 | hardcode_direct_F77=yes |
14127 | |
14128 | # hardcode_minus_L: Not really in the search PATH, |
14129 | # but as the default location of the library. |
14130 | hardcode_minus_L_F77=yes |
14131 | export_dynamic_flag_spec_F77='${wl}-E' |
14132 | ;; |
14133 | |
14134 | hpux10*) |
14135 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14136 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14137 | else |
14138 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14139 | fi |
14140 | if test "$with_gnu_ld" = no; then |
14141 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14142 | hardcode_libdir_separator_F77=: |
14143 | |
14144 | hardcode_direct_F77=yes |
14145 | export_dynamic_flag_spec_F77='${wl}-E' |
14146 | |
14147 | # hardcode_minus_L: Not really in the search PATH, |
14148 | # but as the default location of the library. |
14149 | hardcode_minus_L_F77=yes |
14150 | fi |
14151 | ;; |
14152 | |
14153 | hpux11*) |
14154 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14155 | case $host_cpu in |
14156 | hppa*64*) |
14157 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14158 | ;; |
14159 | ia64*) |
14160 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14161 | ;; |
14162 | *) |
14163 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14164 | ;; |
14165 | esac |
14166 | else |
14167 | case $host_cpu in |
14168 | hppa*64*) |
14169 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14170 | ;; |
14171 | ia64*) |
14172 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14173 | ;; |
14174 | *) |
14175 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14176 | ;; |
14177 | esac |
14178 | fi |
14179 | if test "$with_gnu_ld" = no; then |
14180 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14181 | hardcode_libdir_separator_F77=: |
14182 | |
14183 | case $host_cpu in |
14184 | hppa*64*|ia64*) |
14185 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14186 | hardcode_direct_F77=no |
14187 | hardcode_shlibpath_var_F77=no |
14188 | ;; |
14189 | *) |
14190 | hardcode_direct_F77=yes |
14191 | export_dynamic_flag_spec_F77='${wl}-E' |
14192 | |
14193 | # hardcode_minus_L: Not really in the search PATH, |
14194 | # but as the default location of the library. |
14195 | hardcode_minus_L_F77=yes |
14196 | ;; |
14197 | esac |
14198 | fi |
14199 | ;; |
14200 | |
14201 | irix5* | irix6* | nonstopux*) |
14202 | if test "$GCC" = yes; then |
14203 | 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' |
14204 | else |
14205 | 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' |
14206 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14207 | fi |
14208 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14209 | hardcode_libdir_separator_F77=: |
14210 | link_all_deplibs_F77=yes |
14211 | ;; |
14212 | |
14213 | netbsd*) |
14214 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14215 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14216 | else |
14217 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14218 | fi |
14219 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14220 | hardcode_direct_F77=yes |
14221 | hardcode_shlibpath_var_F77=no |
14222 | ;; |
14223 | |
14224 | newsos6) |
14225 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14226 | hardcode_direct_F77=yes |
14227 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14228 | hardcode_libdir_separator_F77=: |
14229 | hardcode_shlibpath_var_F77=no |
14230 | ;; |
14231 | |
14232 | openbsd*) |
14233 | hardcode_direct_F77=yes |
14234 | hardcode_shlibpath_var_F77=no |
14235 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14236 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14237 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14238 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14239 | export_dynamic_flag_spec_F77='${wl}-E' |
14240 | else |
14241 | case $host_os in |
14242 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14243 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14244 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14245 | ;; |
14246 | *) |
14247 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14248 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14249 | ;; |
14250 | esac |
14251 | fi |
14252 | ;; |
14253 | |
14254 | os2*) |
14255 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14256 | hardcode_minus_L_F77=yes |
14257 | allow_undefined_flag_F77=unsupported |
14258 | 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' |
14259 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14260 | ;; |
14261 | |
14262 | osf3*) |
14263 | if test "$GCC" = yes; then |
14264 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14265 | 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' |
14266 | else |
14267 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14268 | 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' |
14269 | fi |
14270 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14271 | hardcode_libdir_separator_F77=: |
14272 | ;; |
14273 | |
14274 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14275 | if test "$GCC" = yes; then |
14276 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14277 | 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' |
14278 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14279 | else |
14280 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14281 | 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' |
14282 | 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~ |
14283 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
14284 | |
14285 | # Both c and cxx compiler support -rpath directly |
14286 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14287 | fi |
14288 | hardcode_libdir_separator_F77=: |
14289 | ;; |
14290 | |
14291 | solaris*) |
14292 | no_undefined_flag_F77=' -z text' |
14293 | if test "$GCC" = yes; then |
14294 | wlarc='${wl}' |
14295 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14296 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14297 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14298 | else |
14299 | wlarc='' |
14300 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14301 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14302 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14303 | fi |
14304 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14305 | hardcode_shlibpath_var_F77=no |
14306 | case $host_os in |
14307 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14308 | *) |
14309 | # The compiler driver will combine linker options so we |
14310 | # cannot just pass the convience library names through |
14311 | # without $wl, iff we do not link with $LD. |
14312 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14313 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14314 | case $wlarc in |
14315 | '') |
14316 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14317 | *) |
14318 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
14319 | esac ;; |
14320 | esac |
14321 | link_all_deplibs_F77=yes |
14322 | ;; |
14323 | |
14324 | sunos4*) |
14325 | if test "x$host_vendor" = xsequent; then |
14326 | # Use $CC to link under sequent, because it throws in some extra .o |
14327 | # files that make .init and .fini sections work. |
14328 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14329 | else |
14330 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14331 | fi |
14332 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14333 | hardcode_direct_F77=yes |
14334 | hardcode_minus_L_F77=yes |
14335 | hardcode_shlibpath_var_F77=no |
14336 | ;; |
14337 | |
14338 | sysv4) |
14339 | case $host_vendor in |
14340 | sni) |
14341 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14342 | hardcode_direct_F77=yes # is this really true??? |
14343 | ;; |
14344 | siemens) |
14345 | ## LD is ld it makes a PLAMLIB |
14346 | ## CC just makes a GrossModule. |
14347 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14348 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14349 | hardcode_direct_F77=no |
14350 | ;; |
14351 | motorola) |
14352 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14353 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14354 | ;; |
14355 | esac |
14356 | runpath_var='LD_RUN_PATH' |
14357 | hardcode_shlibpath_var_F77=no |
14358 | ;; |
14359 | |
14360 | sysv4.3*) |
14361 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14362 | hardcode_shlibpath_var_F77=no |
14363 | export_dynamic_flag_spec_F77='-Bexport' |
14364 | ;; |
14365 | |
14366 | sysv4*MP*) |
14367 | if test -d /usr/nec; then |
14368 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14369 | hardcode_shlibpath_var_F77=no |
14370 | runpath_var=LD_RUN_PATH |
14371 | hardcode_runpath_var=yes |
14372 | ld_shlibs_F77=yes |
14373 | fi |
14374 | ;; |
14375 | |
14376 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14377 | no_undefined_flag_F77='${wl}-z,text' |
14378 | archive_cmds_need_lc_F77=no |
14379 | hardcode_shlibpath_var_F77=no |
14380 | runpath_var='LD_RUN_PATH' |
14381 | |
14382 | if test "$GCC" = yes; then |
14383 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14384 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14385 | else |
14386 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14387 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14388 | fi |
14389 | ;; |
14390 | |
14391 | sysv5* | sco3.2v5* | sco5v6*) |
14392 | # Note: We can NOT use -z defs as we might desire, because we do not |
14393 | # link with -lc, and that would cause any symbols used from libc to |
14394 | # always be unresolved, which means just about no library would |
14395 | # ever link correctly. If we're not using GNU ld we use -z text |
14396 | # though, which does catch some bad symbols but isn't as heavy-handed |
14397 | # as -z defs. |
14398 | no_undefined_flag_F77='${wl}-z,text' |
14399 | allow_undefined_flag_F77='${wl}-z,nodefs' |
14400 | archive_cmds_need_lc_F77=no |
14401 | hardcode_shlibpath_var_F77=no |
14402 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14403 | hardcode_libdir_separator_F77=':' |
14404 | link_all_deplibs_F77=yes |
14405 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
14406 | runpath_var='LD_RUN_PATH' |
14407 | |
14408 | if test "$GCC" = yes; then |
14409 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14410 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14411 | else |
14412 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14413 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14414 | fi |
14415 | ;; |
14416 | |
14417 | uts4*) |
14418 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14419 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14420 | hardcode_shlibpath_var_F77=no |
14421 | ;; |
14422 | |
14423 | *) |
14424 | ld_shlibs_F77=no |
14425 | ;; |
14426 | esac |
14427 | fi |
14428 | |
14429 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14430 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14431 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14432 | |
14433 | # |
14434 | # Do we need to explicitly link libc? |
14435 | # |
14436 | case "x$archive_cmds_need_lc_F77" in |
14437 | x|xyes) |
14438 | # Assume -lc should be added |
14439 | archive_cmds_need_lc_F77=yes |
14440 | |
14441 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
14442 | case $archive_cmds_F77 in |
14443 | *'~'*) |
14444 | # FIXME: we may have to deal with multi-command sequences. |
14445 | ;; |
14446 | '$CC '*) |
14447 | # Test whether the compiler implicitly links with -lc since on some |
14448 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
14449 | # to ld, don't add -lc before -lgcc. |
14450 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14451 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14452 | $rm conftest* |
14453 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14454 | |
14455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14456 | (eval $ac_compile) 2>&5 |
14457 | ac_status=$? |
14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14459 | (exit $ac_status); } 2>conftest.err; then |
14460 | soname=conftest |
14461 | lib=conftest |
14462 | libobjs=conftest.$ac_objext |
14463 | deplibs= |
14464 | wl=$lt_prog_compiler_wl_F77 |
14465 | pic_flag=$lt_prog_compiler_pic_F77 |
14466 | compiler_flags=-v |
14467 | linker_flags=-v |
14468 | verstring= |
14469 | output_objdir=. |
14470 | libname=conftest |
14471 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14472 | allow_undefined_flag_F77= |
14473 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14474 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14475 | ac_status=$? |
14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14477 | (exit $ac_status); } |
14478 | then |
14479 | archive_cmds_need_lc_F77=no |
14480 | else |
14481 | archive_cmds_need_lc_F77=yes |
14482 | fi |
14483 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14484 | else |
14485 | cat conftest.err 1>&5 |
14486 | fi |
14487 | $rm conftest* |
14488 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14489 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14490 | ;; |
14491 | esac |
14492 | fi |
14493 | ;; |
14494 | esac |
14495 | |
14496 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14497 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14498 | library_names_spec= |
14499 | libname_spec='lib$name' |
14500 | soname_spec= |
14501 | shrext_cmds=".so" |
14502 | postinstall_cmds= |
14503 | postuninstall_cmds= |
14504 | finish_cmds= |
14505 | finish_eval= |
14506 | shlibpath_var= |
14507 | shlibpath_overrides_runpath=unknown |
14508 | version_type=none |
14509 | dynamic_linker="$host_os ld.so" |
14510 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14511 | if test "$GCC" = yes; then |
14512 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14513 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14514 | # if the path contains ";" then we assume it to be the separator |
14515 | # otherwise default to the standard path separator (i.e. ":") - it is |
14516 | # assumed that no part of a normal pathname contains ";" but that should |
14517 | # okay in the real world where ";" in dirpaths is itself problematic. |
14518 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14519 | else |
14520 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14521 | fi |
14522 | else |
14523 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14524 | fi |
14525 | need_lib_prefix=unknown |
14526 | hardcode_into_libs=no |
14527 | |
14528 | # when you set need_version to no, make sure it does not cause -set_version |
14529 | # flags to be left without arguments |
14530 | need_version=unknown |
14531 | |
14532 | case $host_os in |
14533 | aix3*) |
14534 | version_type=linux |
14535 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14536 | shlibpath_var=LIBPATH |
14537 | |
14538 | # AIX 3 has no versioning support, so we append a major version to the name. |
14539 | soname_spec='${libname}${release}${shared_ext}$major' |
14540 | ;; |
14541 | |
14542 | aix4* | aix5*) |
14543 | version_type=linux |
14544 | need_lib_prefix=no |
14545 | need_version=no |
14546 | hardcode_into_libs=yes |
14547 | if test "$host_cpu" = ia64; then |
14548 | # AIX 5 supports IA64 |
14549 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14550 | shlibpath_var=LD_LIBRARY_PATH |
14551 | else |
14552 | # With GCC up to 2.95.x, collect2 would create an import file |
14553 | # for dependence libraries. The import file would start with |
14554 | # the line `#! .'. This would cause the generated library to |
14555 | # depend on `.', always an invalid library. This was fixed in |
14556 | # development snapshots of GCC prior to 3.0. |
14557 | case $host_os in |
14558 | aix4 | aix4.[01] | aix4.[01].*) |
14559 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14560 | echo ' yes ' |
14561 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14562 | : |
14563 | else |
14564 | can_build_shared=no |
14565 | fi |
14566 | ;; |
14567 | esac |
14568 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14569 | # soname into executable. Probably we can add versioning support to |
14570 | # collect2, so additional links can be useful in future. |
14571 | if test "$aix_use_runtimelinking" = yes; then |
14572 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14573 | # instead of lib<name>.a to let people know that these are not |
14574 | # typical AIX shared libraries. |
14575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14576 | else |
14577 | # We preserve .a as extension for shared libraries through AIX4.2 |
14578 | # and later when we are not doing run time linking. |
14579 | library_names_spec='${libname}${release}.a $libname.a' |
14580 | soname_spec='${libname}${release}${shared_ext}$major' |
14581 | fi |
14582 | shlibpath_var=LIBPATH |
14583 | fi |
14584 | ;; |
14585 | |
14586 | amigaos*) |
14587 | library_names_spec='$libname.ixlibrary $libname.a' |
14588 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14589 | 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' |
14590 | ;; |
14591 | |
14592 | beos*) |
14593 | library_names_spec='${libname}${shared_ext}' |
14594 | dynamic_linker="$host_os ld.so" |
14595 | shlibpath_var=LIBRARY_PATH |
14596 | ;; |
14597 | |
14598 | bsdi[45]*) |
14599 | version_type=linux |
14600 | need_version=no |
14601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14602 | soname_spec='${libname}${release}${shared_ext}$major' |
14603 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14604 | shlibpath_var=LD_LIBRARY_PATH |
14605 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14606 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14607 | # the default ld.so.conf also contains /usr/contrib/lib and |
14608 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14609 | # libtool to hard-code these into programs |
14610 | ;; |
14611 | |
14612 | cygwin* | mingw* | pw32*) |
14613 | version_type=windows |
14614 | shrext_cmds=".dll" |
14615 | need_version=no |
14616 | need_lib_prefix=no |
14617 | |
14618 | case $GCC,$host_os in |
14619 | yes,cygwin* | yes,mingw* | yes,pw32*) |
14620 | library_names_spec='$libname.dll.a' |
14621 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
14622 | postinstall_cmds='base_file=`basename \${file}`~ |
14623 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14624 | dldir=$destdir/`dirname \$dlpath`~ |
14625 | test -d \$dldir || mkdir -p \$dldir~ |
14626 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14627 | chmod a+x \$dldir/$dlname' |
14628 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14629 | dlpath=$dir/\$dldll~ |
14630 | $rm \$dlpath' |
14631 | shlibpath_overrides_runpath=yes |
14632 | |
14633 | case $host_os in |
14634 | cygwin*) |
14635 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14636 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14637 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14638 | ;; |
14639 | mingw*) |
14640 | # MinGW DLLs use traditional 'lib' prefix |
14641 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14642 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14643 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14644 | # It is most probably a Windows format PATH printed by |
14645 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
14646 | # path with ; separators, and with drive letters. We can handle the |
14647 | # drive letters (cygwin fileutils understands them), so leave them, |
14648 | # especially as we might pass files found there to a mingw objdump, |
14649 | # which wouldn't understand a cygwinified path. Ahh. |
14650 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14651 | else |
14652 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14653 | fi |
14654 | ;; |
14655 | pw32*) |
14656 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14657 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14658 | ;; |
14659 | esac |
14660 | ;; |
14661 | |
14662 | *) |
14663 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14664 | ;; |
14665 | esac |
14666 | dynamic_linker='Win32 ld.exe' |
14667 | # FIXME: first we should search . and the directory the executable is in |
14668 | shlibpath_var=PATH |
14669 | ;; |
14670 | |
14671 | darwin* | rhapsody*) |
14672 | dynamic_linker="$host_os dyld" |
14673 | version_type=darwin |
14674 | need_lib_prefix=no |
14675 | need_version=no |
14676 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14677 | soname_spec='${libname}${release}${major}$shared_ext' |
14678 | shlibpath_overrides_runpath=yes |
14679 | shlibpath_var=DYLD_LIBRARY_PATH |
14680 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
14681 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14682 | if test "$GCC" = yes; then |
14683 | 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"` |
14684 | else |
14685 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14686 | fi |
14687 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14688 | ;; |
14689 | |
14690 | dgux*) |
14691 | version_type=linux |
14692 | need_lib_prefix=no |
14693 | need_version=no |
14694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14695 | soname_spec='${libname}${release}${shared_ext}$major' |
14696 | shlibpath_var=LD_LIBRARY_PATH |
14697 | ;; |
14698 | |
14699 | freebsd1*) |
14700 | dynamic_linker=no |
14701 | ;; |
14702 | |
14703 | kfreebsd*-gnu) |
14704 | version_type=linux |
14705 | need_lib_prefix=no |
14706 | need_version=no |
14707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14708 | soname_spec='${libname}${release}${shared_ext}$major' |
14709 | shlibpath_var=LD_LIBRARY_PATH |
14710 | shlibpath_overrides_runpath=no |
14711 | hardcode_into_libs=yes |
14712 | dynamic_linker='GNU ld.so' |
14713 | ;; |
14714 | |
14715 | freebsd* | dragonfly*) |
14716 | # DragonFly does not have aout. When/if they implement a new |
14717 | # versioning mechanism, adjust this. |
14718 | if test -x /usr/bin/objformat; then |
14719 | objformat=`/usr/bin/objformat` |
14720 | else |
14721 | case $host_os in |
14722 | freebsd[123]*) objformat=aout ;; |
14723 | *) objformat=elf ;; |
14724 | esac |
14725 | fi |
14726 | version_type=freebsd-$objformat |
14727 | case $version_type in |
14728 | freebsd-elf*) |
14729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14730 | need_version=no |
14731 | need_lib_prefix=no |
14732 | ;; |
14733 | freebsd-*) |
14734 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14735 | need_version=yes |
14736 | ;; |
14737 | esac |
14738 | shlibpath_var=LD_LIBRARY_PATH |
14739 | case $host_os in |
14740 | freebsd2*) |
14741 | shlibpath_overrides_runpath=yes |
14742 | ;; |
14743 | freebsd3.[01]* | freebsdelf3.[01]*) |
14744 | shlibpath_overrides_runpath=yes |
14745 | hardcode_into_libs=yes |
14746 | ;; |
14747 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
14748 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
14749 | shlibpath_overrides_runpath=no |
14750 | hardcode_into_libs=yes |
14751 | ;; |
14752 | freebsd*) # from 4.6 on |
14753 | shlibpath_overrides_runpath=yes |
14754 | hardcode_into_libs=yes |
14755 | ;; |
14756 | esac |
14757 | ;; |
14758 | |
14759 | gnu*) |
14760 | version_type=linux |
14761 | need_lib_prefix=no |
14762 | need_version=no |
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 | shlibpath_var=LD_LIBRARY_PATH |
14766 | hardcode_into_libs=yes |
14767 | ;; |
14768 | |
14769 | hpux9* | hpux10* | hpux11*) |
14770 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14771 | # link against other versions. |
14772 | version_type=sunos |
14773 | need_lib_prefix=no |
14774 | need_version=no |
14775 | case $host_cpu in |
14776 | ia64*) |
14777 | shrext_cmds='.so' |
14778 | hardcode_into_libs=yes |
14779 | dynamic_linker="$host_os dld.so" |
14780 | shlibpath_var=LD_LIBRARY_PATH |
14781 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14783 | soname_spec='${libname}${release}${shared_ext}$major' |
14784 | if test "X$HPUX_IA64_MODE" = X32; then |
14785 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14786 | else |
14787 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14788 | fi |
14789 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14790 | ;; |
14791 | hppa*64*) |
14792 | shrext_cmds='.sl' |
14793 | hardcode_into_libs=yes |
14794 | dynamic_linker="$host_os dld.sl" |
14795 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14796 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14798 | soname_spec='${libname}${release}${shared_ext}$major' |
14799 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14800 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14801 | ;; |
14802 | *) |
14803 | shrext_cmds='.sl' |
14804 | dynamic_linker="$host_os dld.sl" |
14805 | shlibpath_var=SHLIB_PATH |
14806 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14807 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14808 | soname_spec='${libname}${release}${shared_ext}$major' |
14809 | ;; |
14810 | esac |
14811 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
14812 | postinstall_cmds='chmod 555 $lib' |
14813 | ;; |
14814 | |
14815 | interix3*) |
14816 | version_type=linux |
14817 | need_lib_prefix=no |
14818 | need_version=no |
14819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14820 | soname_spec='${libname}${release}${shared_ext}$major' |
14821 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
14822 | shlibpath_var=LD_LIBRARY_PATH |
14823 | shlibpath_overrides_runpath=no |
14824 | hardcode_into_libs=yes |
14825 | ;; |
14826 | |
14827 | irix5* | irix6* | nonstopux*) |
14828 | case $host_os in |
14829 | nonstopux*) version_type=nonstopux ;; |
14830 | *) |
14831 | if test "$lt_cv_prog_gnu_ld" = yes; then |
14832 | version_type=linux |
14833 | else |
14834 | version_type=irix |
14835 | fi ;; |
14836 | esac |
14837 | need_lib_prefix=no |
14838 | need_version=no |
14839 | soname_spec='${libname}${release}${shared_ext}$major' |
14840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
14841 | case $host_os in |
14842 | irix5* | nonstopux*) |
14843 | libsuff= shlibsuff= |
14844 | ;; |
14845 | *) |
14846 | case $LD in # libtool.m4 will add one of these switches to LD |
14847 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
14848 | libsuff= shlibsuff= libmagic=32-bit;; |
14849 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
14850 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
14851 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
14852 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
14853 | *) libsuff= shlibsuff= libmagic=never-match;; |
14854 | esac |
14855 | ;; |
14856 | esac |
14857 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
14858 | shlibpath_overrides_runpath=no |
14859 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
14860 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
14861 | hardcode_into_libs=yes |
14862 | ;; |
14863 | |
14864 | # No shared lib support for Linux oldld, aout, or coff. |
14865 | linux*oldld* | linux*aout* | linux*coff*) |
14866 | dynamic_linker=no |
14867 | ;; |
14868 | |
14869 | # This must be Linux ELF. |
14870 | linux*) |
14871 | version_type=linux |
14872 | need_lib_prefix=no |
14873 | need_version=no |
14874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14875 | soname_spec='${libname}${release}${shared_ext}$major' |
14876 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
14877 | shlibpath_var=LD_LIBRARY_PATH |
14878 | shlibpath_overrides_runpath=no |
14879 | # This implies no fast_install, which is unacceptable. |
14880 | # Some rework will be needed to allow for fast_install |
14881 | # before this can be enabled. |
14882 | hardcode_into_libs=yes |
14883 | |
14884 | # find out which ABI we are using |
14885 | libsuff= |
14886 | case "$host_cpu" in |
14887 | x86_64*|s390x*|powerpc64*) |
14888 | echo '#line 14888 "configure"' > conftest.$ac_ext |
14889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14890 | (eval $ac_compile) 2>&5 |
14891 | ac_status=$? |
14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14893 | (exit $ac_status); }; then |
14894 | case `/usr/bin/file conftest.$ac_objext` in |
14895 | *64-bit*) |
14896 | libsuff=64 |
14897 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
14898 | ;; |
14899 | esac |
14900 | fi |
14901 | rm -rf conftest* |
14902 | ;; |
14903 | esac |
14904 | |
14905 | # Append ld.so.conf contents to the search path |
14906 | if test -f /etc/ld.so.conf; then |
14907 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
14908 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
14909 | fi |
14910 | |
14911 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14912 | # powerpc, because MkLinux only supported shared libraries with the |
14913 | # GNU dynamic linker. Since this was broken with cross compilers, |
14914 | # most powerpc-linux boxes support dynamic linking these days and |
14915 | # people can always --disable-shared, the test was removed, and we |
14916 | # assume the GNU/Linux dynamic linker is in use. |
14917 | dynamic_linker='GNU/Linux ld.so' |
14918 | ;; |
14919 | |
14920 | knetbsd*-gnu) |
14921 | version_type=linux |
14922 | need_lib_prefix=no |
14923 | need_version=no |
14924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14925 | soname_spec='${libname}${release}${shared_ext}$major' |
14926 | shlibpath_var=LD_LIBRARY_PATH |
14927 | shlibpath_overrides_runpath=no |
14928 | hardcode_into_libs=yes |
14929 | dynamic_linker='GNU ld.so' |
14930 | ;; |
14931 | |
14932 | netbsd*) |
14933 | version_type=sunos |
14934 | need_lib_prefix=no |
14935 | need_version=no |
14936 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14938 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14939 | dynamic_linker='NetBSD (a.out) ld.so' |
14940 | else |
14941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14942 | soname_spec='${libname}${release}${shared_ext}$major' |
14943 | dynamic_linker='NetBSD ld.elf_so' |
14944 | fi |
14945 | shlibpath_var=LD_LIBRARY_PATH |
14946 | shlibpath_overrides_runpath=yes |
14947 | hardcode_into_libs=yes |
14948 | ;; |
14949 | |
14950 | newsos6) |
14951 | version_type=linux |
14952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14953 | shlibpath_var=LD_LIBRARY_PATH |
14954 | shlibpath_overrides_runpath=yes |
14955 | ;; |
14956 | |
14957 | nto-qnx*) |
14958 | version_type=linux |
14959 | need_lib_prefix=no |
14960 | need_version=no |
14961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14962 | soname_spec='${libname}${release}${shared_ext}$major' |
14963 | shlibpath_var=LD_LIBRARY_PATH |
14964 | shlibpath_overrides_runpath=yes |
14965 | ;; |
14966 | |
14967 | openbsd*) |
14968 | version_type=sunos |
14969 | sys_lib_dlsearch_path_spec="/usr/lib" |
14970 | need_lib_prefix=no |
14971 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
14972 | case $host_os in |
14973 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
14974 | *) need_version=no ;; |
14975 | esac |
14976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
14977 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
14978 | shlibpath_var=LD_LIBRARY_PATH |
14979 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14980 | case $host_os in |
14981 | openbsd2.[89] | openbsd2.[89].*) |
14982 | shlibpath_overrides_runpath=no |
14983 | ;; |
14984 | *) |
14985 | shlibpath_overrides_runpath=yes |
14986 | ;; |
14987 | esac |
14988 | else |
14989 | shlibpath_overrides_runpath=yes |
14990 | fi |
14991 | ;; |
14992 | |
14993 | os2*) |
14994 | libname_spec='$name' |
14995 | shrext_cmds=".dll" |
14996 | need_lib_prefix=no |
14997 | library_names_spec='$libname${shared_ext} $libname.a' |
14998 | dynamic_linker='OS/2 ld.exe' |
14999 | shlibpath_var=LIBPATH |
15000 | ;; |
15001 | |
15002 | osf3* | osf4* | osf5*) |
15003 | version_type=osf |
15004 | need_lib_prefix=no |
15005 | need_version=no |
15006 | soname_spec='${libname}${release}${shared_ext}$major' |
15007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15008 | shlibpath_var=LD_LIBRARY_PATH |
15009 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15010 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15011 | ;; |
15012 | |
15013 | solaris*) |
15014 | version_type=linux |
15015 | need_lib_prefix=no |
15016 | need_version=no |
15017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15018 | soname_spec='${libname}${release}${shared_ext}$major' |
15019 | shlibpath_var=LD_LIBRARY_PATH |
15020 | shlibpath_overrides_runpath=yes |
15021 | hardcode_into_libs=yes |
15022 | # ldd complains unless libraries are executable |
15023 | postinstall_cmds='chmod +x $lib' |
15024 | ;; |
15025 | |
15026 | sunos4*) |
15027 | version_type=sunos |
15028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15029 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15030 | shlibpath_var=LD_LIBRARY_PATH |
15031 | shlibpath_overrides_runpath=yes |
15032 | if test "$with_gnu_ld" = yes; then |
15033 | need_lib_prefix=no |
15034 | fi |
15035 | need_version=yes |
15036 | ;; |
15037 | |
15038 | sysv4 | sysv4.3*) |
15039 | version_type=linux |
15040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15041 | soname_spec='${libname}${release}${shared_ext}$major' |
15042 | shlibpath_var=LD_LIBRARY_PATH |
15043 | case $host_vendor in |
15044 | sni) |
15045 | shlibpath_overrides_runpath=no |
15046 | need_lib_prefix=no |
15047 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15048 | runpath_var=LD_RUN_PATH |
15049 | ;; |
15050 | siemens) |
15051 | need_lib_prefix=no |
15052 | ;; |
15053 | motorola) |
15054 | need_lib_prefix=no |
15055 | need_version=no |
15056 | shlibpath_overrides_runpath=no |
15057 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15058 | ;; |
15059 | esac |
15060 | ;; |
15061 | |
15062 | sysv4*MP*) |
15063 | if test -d /usr/nec ;then |
15064 | version_type=linux |
15065 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15066 | soname_spec='$libname${shared_ext}.$major' |
15067 | shlibpath_var=LD_LIBRARY_PATH |
15068 | fi |
15069 | ;; |
15070 | |
15071 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15072 | version_type=freebsd-elf |
15073 | need_lib_prefix=no |
15074 | need_version=no |
15075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15076 | soname_spec='${libname}${release}${shared_ext}$major' |
15077 | shlibpath_var=LD_LIBRARY_PATH |
15078 | hardcode_into_libs=yes |
15079 | if test "$with_gnu_ld" = yes; then |
15080 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15081 | shlibpath_overrides_runpath=no |
15082 | else |
15083 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15084 | shlibpath_overrides_runpath=yes |
15085 | case $host_os in |
15086 | sco3.2v5*) |
15087 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15088 | ;; |
15089 | esac |
15090 | fi |
15091 | sys_lib_dlsearch_path_spec='/usr/lib' |
15092 | ;; |
15093 | |
15094 | uts4*) |
15095 | version_type=linux |
15096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15097 | soname_spec='${libname}${release}${shared_ext}$major' |
15098 | shlibpath_var=LD_LIBRARY_PATH |
15099 | ;; |
15100 | |
15101 | *) |
15102 | dynamic_linker=no |
15103 | ;; |
15104 | esac |
15105 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15106 | echo "${ECHO_T}$dynamic_linker" >&6 |
15107 | test "$dynamic_linker" = no && can_build_shared=no |
15108 | |
15109 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15110 | if test "$GCC" = yes; then |
15111 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15112 | fi |
15113 | |
15114 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15115 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15116 | hardcode_action_F77= |
15117 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15118 | test -n "$runpath_var_F77" || \ |
15119 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15120 | |
15121 | # We can hardcode non-existant directories. |
15122 | if test "$hardcode_direct_F77" != no && |
15123 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15124 | # have to relink, otherwise we might link with an installed library |
15125 | # when we should be linking with a yet-to-be-installed one |
15126 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15127 | test "$hardcode_minus_L_F77" != no; then |
15128 | # Linking always hardcodes the temporary library directory. |
15129 | hardcode_action_F77=relink |
15130 | else |
15131 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15132 | hardcode_action_F77=immediate |
15133 | fi |
15134 | else |
15135 | # We cannot hardcode anything, or else we can only hardcode existing |
15136 | # directories. |
15137 | hardcode_action_F77=unsupported |
15138 | fi |
15139 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15140 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
15141 | |
15142 | if test "$hardcode_action_F77" = relink; then |
15143 | # Fast installation is not supported |
15144 | enable_fast_install=no |
15145 | elif test "$shlibpath_overrides_runpath" = yes || |
15146 | test "$enable_shared" = no; then |
15147 | # Fast installation is not necessary |
15148 | enable_fast_install=needless |
15149 | fi |
15150 | |
15151 | |
15152 | # The else clause should only fire when bootstrapping the |
15153 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15154 | # with your package, and you will get complaints that there are |
15155 | # no rules to generate ltmain.sh. |
15156 | if test -f "$ltmain"; then |
15157 | # See if we are running on zsh, and set the options which allow our commands through |
15158 | # without removal of \ escapes. |
15159 | if test -n "${ZSH_VERSION+set}" ; then |
15160 | setopt NO_GLOB_SUBST |
15161 | fi |
15162 | # Now quote all the things that may contain metacharacters while being |
15163 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15164 | # variables and quote the copies for generation of the libtool script. |
15165 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15166 | SED SHELL STRIP \ |
15167 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15168 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15169 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15170 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15171 | lt_cv_sys_global_symbol_to_c_name_address \ |
15172 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15173 | old_postinstall_cmds old_postuninstall_cmds \ |
15174 | compiler_F77 \ |
15175 | CC_F77 \ |
15176 | LD_F77 \ |
15177 | lt_prog_compiler_wl_F77 \ |
15178 | lt_prog_compiler_pic_F77 \ |
15179 | lt_prog_compiler_static_F77 \ |
15180 | lt_prog_compiler_no_builtin_flag_F77 \ |
15181 | export_dynamic_flag_spec_F77 \ |
15182 | thread_safe_flag_spec_F77 \ |
15183 | whole_archive_flag_spec_F77 \ |
15184 | enable_shared_with_static_runtimes_F77 \ |
15185 | old_archive_cmds_F77 \ |
15186 | old_archive_from_new_cmds_F77 \ |
15187 | predep_objects_F77 \ |
15188 | postdep_objects_F77 \ |
15189 | predeps_F77 \ |
15190 | postdeps_F77 \ |
15191 | compiler_lib_search_path_F77 \ |
15192 | archive_cmds_F77 \ |
15193 | archive_expsym_cmds_F77 \ |
15194 | postinstall_cmds_F77 \ |
15195 | postuninstall_cmds_F77 \ |
15196 | old_archive_from_expsyms_cmds_F77 \ |
15197 | allow_undefined_flag_F77 \ |
15198 | no_undefined_flag_F77 \ |
15199 | export_symbols_cmds_F77 \ |
15200 | hardcode_libdir_flag_spec_F77 \ |
15201 | hardcode_libdir_flag_spec_ld_F77 \ |
15202 | hardcode_libdir_separator_F77 \ |
15203 | hardcode_automatic_F77 \ |
15204 | module_cmds_F77 \ |
15205 | module_expsym_cmds_F77 \ |
15206 | lt_cv_prog_compiler_c_o_F77 \ |
15207 | exclude_expsyms_F77 \ |
15208 | include_expsyms_F77; do |
15209 | |
15210 | case $var in |
15211 | old_archive_cmds_F77 | \ |
15212 | old_archive_from_new_cmds_F77 | \ |
15213 | archive_cmds_F77 | \ |
15214 | archive_expsym_cmds_F77 | \ |
15215 | module_cmds_F77 | \ |
15216 | module_expsym_cmds_F77 | \ |
15217 | old_archive_from_expsyms_cmds_F77 | \ |
15218 | export_symbols_cmds_F77 | \ |
15219 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15220 | postinstall_cmds | postuninstall_cmds | \ |
15221 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15222 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15223 | # Double-quote double-evaled strings. |
15224 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15225 | ;; |
15226 | *) |
15227 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15228 | ;; |
15229 | esac |
15230 | done |
15231 | |
15232 | case $lt_echo in |
15233 | *'\$0 --fallback-echo"') |
15234 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15235 | ;; |
15236 | esac |
15237 | |
15238 | cfgfile="$ofile" |
15239 | |
15240 | cat <<__EOF__ >> "$cfgfile" |
15241 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15242 | |
15243 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15244 | |
15245 | # Shell to use when invoking shell scripts. |
15246 | SHELL=$lt_SHELL |
15247 | |
15248 | # Whether or not to build shared libraries. |
15249 | build_libtool_libs=$enable_shared |
15250 | |
15251 | # Whether or not to build static libraries. |
15252 | build_old_libs=$enable_static |
15253 | |
15254 | # Whether or not to add -lc for building shared libraries. |
15255 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15256 | |
15257 | # Whether or not to disallow shared libs when runtime libs are static |
15258 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15259 | |
15260 | # Whether or not to optimize for fast installation. |
15261 | fast_install=$enable_fast_install |
15262 | |
15263 | # The host system. |
15264 | host_alias=$host_alias |
15265 | host=$host |
15266 | host_os=$host_os |
15267 | |
15268 | # The build system. |
15269 | build_alias=$build_alias |
15270 | build=$build |
15271 | build_os=$build_os |
15272 | |
15273 | # An echo program that does not interpret backslashes. |
15274 | echo=$lt_echo |
15275 | |
15276 | # The archiver. |
15277 | AR=$lt_AR |
15278 | AR_FLAGS=$lt_AR_FLAGS |
15279 | |
15280 | # A C compiler. |
15281 | LTCC=$lt_LTCC |
15282 | |
15283 | # LTCC compiler flags. |
15284 | LTCFLAGS=$lt_LTCFLAGS |
15285 | |
15286 | # A language-specific compiler. |
15287 | CC=$lt_compiler_F77 |
15288 | |
15289 | # Is the compiler the GNU C compiler? |
15290 | with_gcc=$GCC_F77 |
15291 | |
15292 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
15293 | gcc_ver=\`gcc -dumpversion\` |
15294 | |
15295 | # An ERE matcher. |
15296 | EGREP=$lt_EGREP |
15297 | |
15298 | # The linker used to build libraries. |
15299 | LD=$lt_LD_F77 |
15300 | |
15301 | # Whether we need hard or soft links. |
15302 | LN_S=$lt_LN_S |
15303 | |
15304 | # A BSD-compatible nm program. |
15305 | NM=$lt_NM |
15306 | |
15307 | # A symbol stripping program |
15308 | STRIP=$lt_STRIP |
15309 | |
15310 | # Used to examine libraries when file_magic_cmd begins "file" |
15311 | MAGIC_CMD=$MAGIC_CMD |
15312 | |
15313 | # Used on cygwin: DLL creation program. |
15314 | DLLTOOL="$DLLTOOL" |
15315 | |
15316 | # Used on cygwin: object dumper. |
15317 | OBJDUMP="$OBJDUMP" |
15318 | |
15319 | # Used on cygwin: assembler. |
15320 | AS="$AS" |
15321 | |
15322 | # The name of the directory that contains temporary libtool files. |
15323 | objdir=$objdir |
15324 | |
15325 | # How to create reloadable object files. |
15326 | reload_flag=$lt_reload_flag |
15327 | reload_cmds=$lt_reload_cmds |
15328 | |
15329 | # How to pass a linker flag through the compiler. |
15330 | wl=$lt_lt_prog_compiler_wl_F77 |
15331 | |
15332 | # Object file suffix (normally "o"). |
15333 | objext="$ac_objext" |
15334 | |
15335 | # Old archive suffix (normally "a"). |
15336 | libext="$libext" |
15337 | |
15338 | # Shared library suffix (normally ".so"). |
15339 | shrext_cmds='$shrext_cmds' |
15340 | |
15341 | # Executable file suffix (normally ""). |
15342 | exeext="$exeext" |
15343 | |
15344 | # Additional compiler flags for building library objects. |
15345 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15346 | pic_mode=$pic_mode |
15347 | |
15348 | # What is the maximum length of a command? |
15349 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15350 | |
15351 | # Does compiler simultaneously support -c and -o options? |
15352 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15353 | |
15354 | # Must we lock files when doing compilation? |
15355 | need_locks=$lt_need_locks |
15356 | |
15357 | # Do we need the lib prefix for modules? |
15358 | need_lib_prefix=$need_lib_prefix |
15359 | |
15360 | # Do we need a version for libraries? |
15361 | need_version=$need_version |
15362 | |
15363 | # Whether dlopen is supported. |
15364 | dlopen_support=$enable_dlopen |
15365 | |
15366 | # Whether dlopen of programs is supported. |
15367 | dlopen_self=$enable_dlopen_self |
15368 | |
15369 | # Whether dlopen of statically linked programs is supported. |
15370 | dlopen_self_static=$enable_dlopen_self_static |
15371 | |
15372 | # Compiler flag to prevent dynamic linking. |
15373 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
15374 | |
15375 | # Compiler flag to turn off builtin functions. |
15376 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15377 | |
15378 | # Compiler flag to allow reflexive dlopens. |
15379 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15380 | |
15381 | # Compiler flag to generate shared objects directly from archives. |
15382 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15383 | |
15384 | # Compiler flag to generate thread-safe objects. |
15385 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15386 | |
15387 | # Library versioning type. |
15388 | version_type=$version_type |
15389 | |
15390 | # Format of library name prefix. |
15391 | libname_spec=$lt_libname_spec |
15392 | |
15393 | # List of archive names. First name is the real one, the rest are links. |
15394 | # The last name is the one that the linker finds with -lNAME. |
15395 | library_names_spec=$lt_library_names_spec |
15396 | |
15397 | # The coded name of the library, if different from the real name. |
15398 | soname_spec=$lt_soname_spec |
15399 | |
15400 | # Commands used to build and install an old-style archive. |
15401 | RANLIB=$lt_RANLIB |
15402 | old_archive_cmds=$lt_old_archive_cmds_F77 |
15403 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15404 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15405 | |
15406 | # Create an old-style archive from a shared archive. |
15407 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15408 | |
15409 | # Create a temporary old-style archive to link instead of a shared archive. |
15410 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15411 | |
15412 | # Commands used to build and install a shared archive. |
15413 | archive_cmds=$lt_archive_cmds_F77 |
15414 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15415 | postinstall_cmds=$lt_postinstall_cmds |
15416 | postuninstall_cmds=$lt_postuninstall_cmds |
15417 | |
15418 | # Commands used to build a loadable module (assumed same as above if empty) |
15419 | module_cmds=$lt_module_cmds_F77 |
15420 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15421 | |
15422 | # Commands to strip libraries. |
15423 | old_striplib=$lt_old_striplib |
15424 | striplib=$lt_striplib |
15425 | |
15426 | # Dependencies to place before the objects being linked to create a |
15427 | # shared library. |
15428 | predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15429 | |
15430 | # Dependencies to place after the objects being linked to create a |
15431 | # shared library. |
15432 | postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15433 | |
15434 | # Dependencies to place before the objects being linked to create a |
15435 | # shared library. |
15436 | predeps=$lt_predeps_F77 |
15437 | |
15438 | # Dependencies to place after the objects being linked to create a |
15439 | # shared library. |
15440 | postdeps=$lt_postdeps_F77 |
15441 | |
15442 | # The library search path used internally by the compiler when linking |
15443 | # a shared library. |
15444 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15445 | |
15446 | # Method to check whether dependent libraries are shared objects. |
15447 | deplibs_check_method=$lt_deplibs_check_method |
15448 | |
15449 | # Command to use when deplibs_check_method == file_magic. |
15450 | file_magic_cmd=$lt_file_magic_cmd |
15451 | |
15452 | # Flag that allows shared libraries with undefined symbols to be built. |
15453 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15454 | |
15455 | # Flag that forces no undefined symbols. |
15456 | no_undefined_flag=$lt_no_undefined_flag_F77 |
15457 | |
15458 | # Commands used to finish a libtool library installation in a directory. |
15459 | finish_cmds=$lt_finish_cmds |
15460 | |
15461 | # Same as above, but a single script fragment to be evaled but not shown. |
15462 | finish_eval=$lt_finish_eval |
15463 | |
15464 | # Take the output of nm and produce a listing of raw symbols and C names. |
15465 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15466 | |
15467 | # Transform the output of nm in a proper C declaration |
15468 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15469 | |
15470 | # Transform the output of nm in a C name address pair |
15471 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15472 | |
15473 | # This is the shared library runtime path variable. |
15474 | runpath_var=$runpath_var |
15475 | |
15476 | # This is the shared library path variable. |
15477 | shlibpath_var=$shlibpath_var |
15478 | |
15479 | # Is shlibpath searched before the hard-coded library search path? |
15480 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15481 | |
15482 | # How to hardcode a shared library path into an executable. |
15483 | hardcode_action=$hardcode_action_F77 |
15484 | |
15485 | # Whether we should hardcode library paths into libraries. |
15486 | hardcode_into_libs=$hardcode_into_libs |
15487 | |
15488 | # Flag to hardcode \$libdir into a binary during linking. |
15489 | # This must work even if \$libdir does not exist. |
15490 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15491 | |
15492 | # If ld is used when linking, flag to hardcode \$libdir into |
15493 | # a binary during linking. This must work even if \$libdir does |
15494 | # not exist. |
15495 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15496 | |
15497 | # Whether we need a single -rpath flag with a separated argument. |
15498 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15499 | |
15500 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15501 | # resulting binary. |
15502 | hardcode_direct=$hardcode_direct_F77 |
15503 | |
15504 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15505 | # resulting binary. |
15506 | hardcode_minus_L=$hardcode_minus_L_F77 |
15507 | |
15508 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15509 | # the resulting binary. |
15510 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15511 | |
15512 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
15513 | # and all subsequent libraries and executables linked against it. |
15514 | hardcode_automatic=$hardcode_automatic_F77 |
15515 | |
15516 | # Variables whose values should be saved in libtool wrapper scripts and |
15517 | # restored at relink time. |
15518 | variables_saved_for_relink="$variables_saved_for_relink" |
15519 | |
15520 | # Whether libtool must link a program against all its dependency libraries. |
15521 | link_all_deplibs=$link_all_deplibs_F77 |
15522 | |
15523 | # Compile-time system search path for libraries |
15524 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
15525 | |
15526 | # Run-time system search path for libraries |
15527 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15528 | |
15529 | # Fix the shell variable \$srcfile for the compiler. |
15530 | fix_srcfile_path="$fix_srcfile_path_F77" |
15531 | |
15532 | # Set to yes if exported symbols are required. |
15533 | always_export_symbols=$always_export_symbols_F77 |
15534 | |
15535 | # The commands to list exported symbols. |
15536 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15537 | |
15538 | # The commands to extract the exported symbol list from a shared archive. |
15539 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15540 | |
15541 | # Symbols that should not be listed in the preloaded symbols. |
15542 | exclude_expsyms=$lt_exclude_expsyms_F77 |
15543 | |
15544 | # Symbols that must always be exported. |
15545 | include_expsyms=$lt_include_expsyms_F77 |
15546 | |
15547 | # ### END LIBTOOL TAG CONFIG: $tagname |
15548 | |
15549 | __EOF__ |
15550 | |
15551 | |
15552 | else |
15553 | # If there is no Makefile yet, we rely on a make rule to execute |
15554 | # `config.status --recheck' to rerun these tests and create the |
15555 | # libtool script then. |
15556 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15557 | if test -f "$ltmain_in"; then |
15558 | test -f Makefile && make "$ltmain" |
15559 | fi |
15560 | fi |
15561 | |
15562 | |
15563 | ac_ext=c |
15564 | ac_cpp='$CPP $CPPFLAGS' |
15565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15568 | |
15569 | CC="$lt_save_CC" |
15570 | |
15571 | else |
15572 | tagname="" |
15573 | fi |
15574 | ;; |
15575 | |
15576 | GCJ) |
15577 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15578 | |
15579 | |
15580 | |
15581 | # Source file extension for Java test sources. |
15582 | ac_ext=java |
15583 | |
15584 | # Object file extension for compiled Java test sources. |
15585 | objext=o |
15586 | objext_GCJ=$objext |
15587 | |
15588 | # Code to be used in simple compile tests |
15589 | lt_simple_compile_test_code="class foo {}\n" |
15590 | |
15591 | # Code to be used in simple link tests |
15592 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
15593 | |
15594 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15595 | |
15596 | # If no C compiler was specified, use CC. |
15597 | LTCC=${LTCC-"$CC"} |
15598 | |
15599 | # If no C compiler flags were specified, use CFLAGS. |
15600 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
15601 | |
15602 | # Allow CC to be a program name with arguments. |
15603 | compiler=$CC |
15604 | |
15605 | |
15606 | # save warnings/boilerplate of simple test code |
15607 | ac_outfile=conftest.$ac_objext |
15608 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
15609 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15610 | _lt_compiler_boilerplate=`cat conftest.err` |
15611 | $rm conftest* |
15612 | |
15613 | ac_outfile=conftest.$ac_objext |
15614 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
15615 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
15616 | _lt_linker_boilerplate=`cat conftest.err` |
15617 | $rm conftest* |
15618 | |
15619 | |
15620 | # Allow CC to be a program name with arguments. |
15621 | lt_save_CC="$CC" |
15622 | CC=${GCJ-"gcj"} |
15623 | compiler=$CC |
15624 | compiler_GCJ=$CC |
15625 | for cc_temp in $compiler""; do |
15626 | case $cc_temp in |
15627 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15628 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15629 | \-*) ;; |
15630 | *) break;; |
15631 | esac |
15632 | done |
15633 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15634 | |
15635 | |
15636 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
15637 | archive_cmds_need_lc_GCJ=no |
15638 | |
15639 | old_archive_cmds_GCJ=$old_archive_cmds |
15640 | |
15641 | |
15642 | lt_prog_compiler_no_builtin_flag_GCJ= |
15643 | |
15644 | if test "$GCC" = yes; then |
15645 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15646 | |
15647 | |
15648 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15649 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15650 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15652 | else |
15653 | lt_cv_prog_compiler_rtti_exceptions=no |
15654 | ac_outfile=conftest.$ac_objext |
15655 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15656 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
15657 | # Insert the option either (1) after the last *FLAGS variable, or |
15658 | # (2) before a word containing "conftest.", or (3) at the end. |
15659 | # Note that $ac_compile itself does not contain backslashes and begins |
15660 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15661 | # The option is referenced via a variable to avoid confusing sed. |
15662 | lt_compile=`echo "$ac_compile" | $SED \ |
15663 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15664 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15665 | -e 's:$: $lt_compiler_flag:'` |
15666 | (eval echo "\"\$as_me:15666: $lt_compile\"" >&5) |
15667 | (eval "$lt_compile" 2>conftest.err) |
15668 | ac_status=$? |
15669 | cat conftest.err >&5 |
15670 | echo "$as_me:15670: \$? = $ac_status" >&5 |
15671 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15672 | # The compiler can only warn and ignore the option if not recognized |
15673 | # So say no if there are warnings other than the usual output. |
15674 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15675 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15676 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15677 | lt_cv_prog_compiler_rtti_exceptions=yes |
15678 | fi |
15679 | fi |
15680 | $rm conftest* |
15681 | |
15682 | fi |
15683 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15684 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15685 | |
15686 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15687 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15688 | else |
15689 | : |
15690 | fi |
15691 | |
15692 | fi |
15693 | |
15694 | lt_prog_compiler_wl_GCJ= |
15695 | lt_prog_compiler_pic_GCJ= |
15696 | lt_prog_compiler_static_GCJ= |
15697 | |
15698 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15699 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15700 | |
15701 | if test "$GCC" = yes; then |
15702 | lt_prog_compiler_wl_GCJ='-Wl,' |
15703 | lt_prog_compiler_static_GCJ='-static' |
15704 | |
15705 | case $host_os in |
15706 | aix*) |
15707 | # All AIX code is PIC. |
15708 | if test "$host_cpu" = ia64; then |
15709 | # AIX 5 now supports IA64 processor |
15710 | lt_prog_compiler_static_GCJ='-Bstatic' |
15711 | fi |
15712 | ;; |
15713 | |
15714 | amigaos*) |
15715 | # FIXME: we need at least 68020 code to build shared libraries, but |
15716 | # adding the `-m68020' flag to GCC prevents building anything better, |
15717 | # like `-m68040'. |
15718 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15719 | ;; |
15720 | |
15721 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15722 | # PIC is the default for these OSes. |
15723 | ;; |
15724 | |
15725 | mingw* | pw32* | os2*) |
15726 | # This hack is so that the source file can tell whether it is being |
15727 | # built for inclusion in a dll (and should export symbols for example). |
15728 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15729 | ;; |
15730 | |
15731 | darwin* | rhapsody*) |
15732 | # PIC is the default on this platform |
15733 | # Common symbols not allowed in MH_DYLIB files |
15734 | lt_prog_compiler_pic_GCJ='-fno-common' |
15735 | ;; |
15736 | |
15737 | interix3*) |
15738 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
15739 | # Instead, we relocate shared libraries at runtime. |
15740 | ;; |
15741 | |
15742 | msdosdjgpp*) |
15743 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
15744 | # on systems that don't support them. |
15745 | lt_prog_compiler_can_build_shared_GCJ=no |
15746 | enable_shared=no |
15747 | ;; |
15748 | |
15749 | sysv4*MP*) |
15750 | if test -d /usr/nec; then |
15751 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
15752 | fi |
15753 | ;; |
15754 | |
15755 | hpux*) |
15756 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15757 | # not for PA HP-UX. |
15758 | case $host_cpu in |
15759 | hppa*64*|ia64*) |
15760 | # +Z the default |
15761 | ;; |
15762 | *) |
15763 | lt_prog_compiler_pic_GCJ='-fPIC' |
15764 | ;; |
15765 | esac |
15766 | ;; |
15767 | |
15768 | *) |
15769 | lt_prog_compiler_pic_GCJ='-fPIC' |
15770 | ;; |
15771 | esac |
15772 | else |
15773 | # PORTME Check for flag to pass linker flags through the system compiler. |
15774 | case $host_os in |
15775 | aix*) |
15776 | lt_prog_compiler_wl_GCJ='-Wl,' |
15777 | if test "$host_cpu" = ia64; then |
15778 | # AIX 5 now supports IA64 processor |
15779 | lt_prog_compiler_static_GCJ='-Bstatic' |
15780 | else |
15781 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15782 | fi |
15783 | ;; |
15784 | darwin*) |
15785 | # PIC is the default on this platform |
15786 | # Common symbols not allowed in MH_DYLIB files |
15787 | case $cc_basename in |
15788 | xlc*) |
15789 | lt_prog_compiler_pic_GCJ='-qnocommon' |
15790 | lt_prog_compiler_wl_GCJ='-Wl,' |
15791 | ;; |
15792 | esac |
15793 | ;; |
15794 | |
15795 | mingw* | pw32* | os2*) |
15796 | # This hack is so that the source file can tell whether it is being |
15797 | # built for inclusion in a dll (and should export symbols for example). |
15798 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15799 | ;; |
15800 | |
15801 | hpux9* | hpux10* | hpux11*) |
15802 | lt_prog_compiler_wl_GCJ='-Wl,' |
15803 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15804 | # not for PA HP-UX. |
15805 | case $host_cpu in |
15806 | hppa*64*|ia64*) |
15807 | # +Z the default |
15808 | ;; |
15809 | *) |
15810 | lt_prog_compiler_pic_GCJ='+Z' |
15811 | ;; |
15812 | esac |
15813 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
15814 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15815 | ;; |
15816 | |
15817 | irix5* | irix6* | nonstopux*) |
15818 | lt_prog_compiler_wl_GCJ='-Wl,' |
15819 | # PIC (with -KPIC) is the default. |
15820 | lt_prog_compiler_static_GCJ='-non_shared' |
15821 | ;; |
15822 | |
15823 | newsos6) |
15824 | lt_prog_compiler_pic_GCJ='-KPIC' |
15825 | lt_prog_compiler_static_GCJ='-Bstatic' |
15826 | ;; |
15827 | |
15828 | linux*) |
15829 | case $cc_basename in |
15830 | icc* | ecc*) |
15831 | lt_prog_compiler_wl_GCJ='-Wl,' |
15832 | lt_prog_compiler_pic_GCJ='-KPIC' |
15833 | lt_prog_compiler_static_GCJ='-static' |
15834 | ;; |
15835 | pgcc* | pgf77* | pgf90* | pgf95*) |
15836 | # Portland Group compilers (*not* the Pentium gcc compiler, |
15837 | # which looks to be a dead project) |
15838 | lt_prog_compiler_wl_GCJ='-Wl,' |
15839 | lt_prog_compiler_pic_GCJ='-fpic' |
15840 | lt_prog_compiler_static_GCJ='-Bstatic' |
15841 | ;; |
15842 | ccc*) |
15843 | lt_prog_compiler_wl_GCJ='-Wl,' |
15844 | # All Alpha code is PIC. |
15845 | lt_prog_compiler_static_GCJ='-non_shared' |
15846 | ;; |
15847 | esac |
15848 | ;; |
15849 | |
15850 | osf3* | osf4* | osf5*) |
15851 | lt_prog_compiler_wl_GCJ='-Wl,' |
15852 | # All OSF/1 code is PIC. |
15853 | lt_prog_compiler_static_GCJ='-non_shared' |
15854 | ;; |
15855 | |
15856 | solaris*) |
15857 | lt_prog_compiler_pic_GCJ='-KPIC' |
15858 | lt_prog_compiler_static_GCJ='-Bstatic' |
15859 | case $cc_basename in |
15860 | f77* | f90* | f95*) |
15861 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
15862 | *) |
15863 | lt_prog_compiler_wl_GCJ='-Wl,';; |
15864 | esac |
15865 | ;; |
15866 | |
15867 | sunos4*) |
15868 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
15869 | lt_prog_compiler_pic_GCJ='-PIC' |
15870 | lt_prog_compiler_static_GCJ='-Bstatic' |
15871 | ;; |
15872 | |
15873 | sysv4 | sysv4.2uw2* | sysv4.3*) |
15874 | lt_prog_compiler_wl_GCJ='-Wl,' |
15875 | lt_prog_compiler_pic_GCJ='-KPIC' |
15876 | lt_prog_compiler_static_GCJ='-Bstatic' |
15877 | ;; |
15878 | |
15879 | sysv4*MP*) |
15880 | if test -d /usr/nec ;then |
15881 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
15882 | lt_prog_compiler_static_GCJ='-Bstatic' |
15883 | fi |
15884 | ;; |
15885 | |
15886 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
15887 | lt_prog_compiler_wl_GCJ='-Wl,' |
15888 | lt_prog_compiler_pic_GCJ='-KPIC' |
15889 | lt_prog_compiler_static_GCJ='-Bstatic' |
15890 | ;; |
15891 | |
15892 | unicos*) |
15893 | lt_prog_compiler_wl_GCJ='-Wl,' |
15894 | lt_prog_compiler_can_build_shared_GCJ=no |
15895 | ;; |
15896 | |
15897 | uts4*) |
15898 | lt_prog_compiler_pic_GCJ='-pic' |
15899 | lt_prog_compiler_static_GCJ='-Bstatic' |
15900 | ;; |
15901 | |
15902 | *) |
15903 | lt_prog_compiler_can_build_shared_GCJ=no |
15904 | ;; |
15905 | esac |
15906 | fi |
15907 | |
15908 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
15909 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
15910 | |
15911 | # |
15912 | # Check to make sure the PIC flag actually works. |
15913 | # |
15914 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
15915 | |
15916 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
15917 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
15918 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
15919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15920 | else |
15921 | lt_prog_compiler_pic_works_GCJ=no |
15922 | ac_outfile=conftest.$ac_objext |
15923 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15924 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
15925 | # Insert the option either (1) after the last *FLAGS variable, or |
15926 | # (2) before a word containing "conftest.", or (3) at the end. |
15927 | # Note that $ac_compile itself does not contain backslashes and begins |
15928 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15929 | # The option is referenced via a variable to avoid confusing sed. |
15930 | lt_compile=`echo "$ac_compile" | $SED \ |
15931 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15932 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15933 | -e 's:$: $lt_compiler_flag:'` |
15934 | (eval echo "\"\$as_me:15934: $lt_compile\"" >&5) |
15935 | (eval "$lt_compile" 2>conftest.err) |
15936 | ac_status=$? |
15937 | cat conftest.err >&5 |
15938 | echo "$as_me:15938: \$? = $ac_status" >&5 |
15939 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15940 | # The compiler can only warn and ignore the option if not recognized |
15941 | # So say no if there are warnings other than the usual output. |
15942 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15943 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15944 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
15945 | lt_prog_compiler_pic_works_GCJ=yes |
15946 | fi |
15947 | fi |
15948 | $rm conftest* |
15949 | |
15950 | fi |
15951 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
15952 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
15953 | |
15954 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
15955 | case $lt_prog_compiler_pic_GCJ in |
15956 | "" | " "*) ;; |
15957 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
15958 | esac |
15959 | else |
15960 | lt_prog_compiler_pic_GCJ= |
15961 | lt_prog_compiler_can_build_shared_GCJ=no |
15962 | fi |
15963 | |
15964 | fi |
15965 | case $host_os in |
15966 | # For platforms which do not support PIC, -DPIC is meaningless: |
15967 | *djgpp*) |
15968 | lt_prog_compiler_pic_GCJ= |
15969 | ;; |
15970 | *) |
15971 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
15972 | ;; |
15973 | esac |
15974 | |
15975 | # |
15976 | # Check to make sure the static flag actually works. |
15977 | # |
15978 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
15979 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
15980 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
15981 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
15982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15983 | else |
15984 | lt_prog_compiler_static_works_GCJ=no |
15985 | save_LDFLAGS="$LDFLAGS" |
15986 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
15987 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
15988 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
15989 | # The linker can only warn and ignore the option if not recognized |
15990 | # So say no if there are warnings |
15991 | if test -s conftest.err; then |
15992 | # Append any errors to the config.log. |
15993 | cat conftest.err 1>&5 |
15994 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
15995 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15996 | if diff conftest.exp conftest.er2 >/dev/null; then |
15997 | lt_prog_compiler_static_works_GCJ=yes |
15998 | fi |
15999 | else |
16000 | lt_prog_compiler_static_works_GCJ=yes |
16001 | fi |
16002 | fi |
16003 | $rm conftest* |
16004 | LDFLAGS="$save_LDFLAGS" |
16005 | |
16006 | fi |
16007 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16008 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
16009 | |
16010 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16011 | : |
16012 | else |
16013 | lt_prog_compiler_static_GCJ= |
16014 | fi |
16015 | |
16016 | |
16017 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16018 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16019 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16021 | else |
16022 | lt_cv_prog_compiler_c_o_GCJ=no |
16023 | $rm -r conftest 2>/dev/null |
16024 | mkdir conftest |
16025 | cd conftest |
16026 | mkdir out |
16027 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16028 | |
16029 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16030 | # Insert the option either (1) after the last *FLAGS variable, or |
16031 | # (2) before a word containing "conftest.", or (3) at the end. |
16032 | # Note that $ac_compile itself does not contain backslashes and begins |
16033 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16034 | lt_compile=`echo "$ac_compile" | $SED \ |
16035 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16036 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16037 | -e 's:$: $lt_compiler_flag:'` |
16038 | (eval echo "\"\$as_me:16038: $lt_compile\"" >&5) |
16039 | (eval "$lt_compile" 2>out/conftest.err) |
16040 | ac_status=$? |
16041 | cat out/conftest.err >&5 |
16042 | echo "$as_me:16042: \$? = $ac_status" >&5 |
16043 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16044 | then |
16045 | # The compiler can only warn and ignore the option if not recognized |
16046 | # So say no if there are warnings |
16047 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16048 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16049 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16050 | lt_cv_prog_compiler_c_o_GCJ=yes |
16051 | fi |
16052 | fi |
16053 | chmod u+w . 2>&5 |
16054 | $rm conftest* |
16055 | # SGI C++ compiler will create directory out/ii_files/ for |
16056 | # template instantiation |
16057 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16058 | $rm out/* && rmdir out |
16059 | cd .. |
16060 | rmdir conftest |
16061 | $rm conftest* |
16062 | |
16063 | fi |
16064 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16065 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16066 | |
16067 | |
16068 | hard_links="nottested" |
16069 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16070 | # do not overwrite the value of need_locks provided by the user |
16071 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16072 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16073 | hard_links=yes |
16074 | $rm conftest* |
16075 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16076 | touch conftest.a |
16077 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16078 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16079 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
16080 | echo "${ECHO_T}$hard_links" >&6 |
16081 | if test "$hard_links" = no; then |
16082 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16083 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16084 | need_locks=warn |
16085 | fi |
16086 | else |
16087 | need_locks=no |
16088 | fi |
16089 | |
16090 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16091 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16092 | |
16093 | runpath_var= |
16094 | allow_undefined_flag_GCJ= |
16095 | enable_shared_with_static_runtimes_GCJ=no |
16096 | archive_cmds_GCJ= |
16097 | archive_expsym_cmds_GCJ= |
16098 | old_archive_From_new_cmds_GCJ= |
16099 | old_archive_from_expsyms_cmds_GCJ= |
16100 | export_dynamic_flag_spec_GCJ= |
16101 | whole_archive_flag_spec_GCJ= |
16102 | thread_safe_flag_spec_GCJ= |
16103 | hardcode_libdir_flag_spec_GCJ= |
16104 | hardcode_libdir_flag_spec_ld_GCJ= |
16105 | hardcode_libdir_separator_GCJ= |
16106 | hardcode_direct_GCJ=no |
16107 | hardcode_minus_L_GCJ=no |
16108 | hardcode_shlibpath_var_GCJ=unsupported |
16109 | link_all_deplibs_GCJ=unknown |
16110 | hardcode_automatic_GCJ=no |
16111 | module_cmds_GCJ= |
16112 | module_expsym_cmds_GCJ= |
16113 | always_export_symbols_GCJ=no |
16114 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16115 | # include_expsyms should be a list of space-separated symbols to be *always* |
16116 | # included in the symbol list |
16117 | include_expsyms_GCJ= |
16118 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16119 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16120 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16121 | # as well as any symbol that contains `d'. |
16122 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16123 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16124 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16125 | # the symbol is explicitly referenced. Since portable code cannot |
16126 | # rely on this symbol name, it's probably fine to never include it in |
16127 | # preloaded symbol tables. |
16128 | extract_expsyms_cmds= |
16129 | # Just being paranoid about ensuring that cc_basename is set. |
16130 | for cc_temp in $compiler""; do |
16131 | case $cc_temp in |
16132 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16133 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16134 | \-*) ;; |
16135 | *) break;; |
16136 | esac |
16137 | done |
16138 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16139 | |
16140 | case $host_os in |
16141 | cygwin* | mingw* | pw32*) |
16142 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16143 | # When not using gcc, we currently assume that we are using |
16144 | # Microsoft Visual C++. |
16145 | if test "$GCC" != yes; then |
16146 | with_gnu_ld=no |
16147 | fi |
16148 | ;; |
16149 | interix*) |
16150 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16151 | with_gnu_ld=yes |
16152 | ;; |
16153 | openbsd*) |
16154 | with_gnu_ld=no |
16155 | ;; |
16156 | esac |
16157 | |
16158 | ld_shlibs_GCJ=yes |
16159 | if test "$with_gnu_ld" = yes; then |
16160 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16161 | wlarc='${wl}' |
16162 | |
16163 | # Set some defaults for GNU ld with shared library support. These |
16164 | # are reset later if shared libraries are not supported. Putting them |
16165 | # here allows them to be overridden if necessary. |
16166 | runpath_var=LD_RUN_PATH |
16167 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16168 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16169 | # ancient GNU ld didn't support --whole-archive et. al. |
16170 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16171 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16172 | else |
16173 | whole_archive_flag_spec_GCJ= |
16174 | fi |
16175 | supports_anon_versioning=no |
16176 | case `$LD -v 2>/dev/null` in |
16177 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16178 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16179 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16180 | *\ 2.11.*) ;; # other 2.11 versions |
16181 | *) supports_anon_versioning=yes ;; |
16182 | esac |
16183 | |
16184 | # See if GNU ld supports shared libraries. |
16185 | case $host_os in |
16186 | aix3* | aix4* | aix5*) |
16187 | # On AIX/PPC, the GNU linker is very broken |
16188 | if test "$host_cpu" != ia64; then |
16189 | ld_shlibs_GCJ=no |
16190 | cat <<EOF 1>&2 |
16191 | |
16192 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16193 | *** to be unable to reliably create shared libraries on AIX. |
16194 | *** Therefore, libtool is disabling shared libraries support. If you |
16195 | *** really care for shared libraries, you may want to modify your PATH |
16196 | *** so that a non-GNU linker is found, and then restart. |
16197 | |
16198 | EOF |
16199 | fi |
16200 | ;; |
16201 | |
16202 | amigaos*) |
16203 | 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)' |
16204 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16205 | hardcode_minus_L_GCJ=yes |
16206 | |
16207 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16208 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16209 | # to version 4, is to share data among multiple programs linked |
16210 | # with the same dynamic library. Since this doesn't match the |
16211 | # behavior of shared libraries on other platforms, we can't use |
16212 | # them. |
16213 | ld_shlibs_GCJ=no |
16214 | ;; |
16215 | |
16216 | beos*) |
16217 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16218 | allow_undefined_flag_GCJ=unsupported |
16219 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16220 | # support --undefined. This deserves some investigation. FIXME |
16221 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16222 | else |
16223 | ld_shlibs_GCJ=no |
16224 | fi |
16225 | ;; |
16226 | |
16227 | cygwin* | mingw* | pw32*) |
16228 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16229 | # as there is no search path for DLLs. |
16230 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16231 | allow_undefined_flag_GCJ=unsupported |
16232 | always_export_symbols_GCJ=no |
16233 | enable_shared_with_static_runtimes_GCJ=yes |
16234 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16235 | |
16236 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16237 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16238 | # If the export-symbols file already is a .def file (1st line |
16239 | # is EXPORTS), use it as is; otherwise, prepend... |
16240 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16241 | cp $export_symbols $output_objdir/$soname.def; |
16242 | else |
16243 | echo EXPORTS > $output_objdir/$soname.def; |
16244 | cat $export_symbols >> $output_objdir/$soname.def; |
16245 | fi~ |
16246 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16247 | else |
16248 | ld_shlibs_GCJ=no |
16249 | fi |
16250 | ;; |
16251 | |
16252 | interix3*) |
16253 | hardcode_direct_GCJ=no |
16254 | hardcode_shlibpath_var_GCJ=no |
16255 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16256 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16257 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16258 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16259 | # default) and relocated if they conflict, which is a slow very memory |
16260 | # consuming and fragmenting process. To avoid this, we pick a random, |
16261 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16262 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16263 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
16264 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
16265 | ;; |
16266 | |
16267 | linux*) |
16268 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16269 | tmp_addflag= |
16270 | case $cc_basename,$host_cpu in |
16271 | pgcc*) # Portland Group C compiler |
16272 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16273 | tmp_addflag=' $pic_flag' |
16274 | ;; |
16275 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16276 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16277 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16278 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16279 | tmp_addflag=' -i_dynamic' ;; |
16280 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16281 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16282 | ifc* | ifort*) # Intel Fortran compiler |
16283 | tmp_addflag=' -nofor_main' ;; |
16284 | esac |
16285 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16286 | |
16287 | if test $supports_anon_versioning = yes; then |
16288 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16289 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16290 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16291 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16292 | fi |
16293 | else |
16294 | ld_shlibs_GCJ=no |
16295 | fi |
16296 | ;; |
16297 | |
16298 | netbsd*) |
16299 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16300 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16301 | wlarc= |
16302 | else |
16303 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16304 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16305 | fi |
16306 | ;; |
16307 | |
16308 | solaris*) |
16309 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16310 | ld_shlibs_GCJ=no |
16311 | cat <<EOF 1>&2 |
16312 | |
16313 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16314 | *** create shared libraries on Solaris systems. Therefore, libtool |
16315 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16316 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16317 | *** your PATH or compiler configuration so that the native linker is |
16318 | *** used, and then restart. |
16319 | |
16320 | EOF |
16321 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16322 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16323 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16324 | else |
16325 | ld_shlibs_GCJ=no |
16326 | fi |
16327 | ;; |
16328 | |
16329 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16330 | case `$LD -v 2>&1` in |
16331 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16332 | ld_shlibs_GCJ=no |
16333 | cat <<_LT_EOF 1>&2 |
16334 | |
16335 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16336 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16337 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16338 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16339 | *** your PATH or compiler configuration so that the native linker is |
16340 | *** used, and then restart. |
16341 | |
16342 | _LT_EOF |
16343 | ;; |
16344 | *) |
16345 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16346 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16347 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16348 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16349 | else |
16350 | ld_shlibs_GCJ=no |
16351 | fi |
16352 | ;; |
16353 | esac |
16354 | ;; |
16355 | |
16356 | sunos4*) |
16357 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16358 | wlarc= |
16359 | hardcode_direct_GCJ=yes |
16360 | hardcode_shlibpath_var_GCJ=no |
16361 | ;; |
16362 | |
16363 | *) |
16364 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16365 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16366 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16367 | else |
16368 | ld_shlibs_GCJ=no |
16369 | fi |
16370 | ;; |
16371 | esac |
16372 | |
16373 | if test "$ld_shlibs_GCJ" = no; then |
16374 | runpath_var= |
16375 | hardcode_libdir_flag_spec_GCJ= |
16376 | export_dynamic_flag_spec_GCJ= |
16377 | whole_archive_flag_spec_GCJ= |
16378 | fi |
16379 | else |
16380 | # PORTME fill in a description of your system's linker (not GNU ld) |
16381 | case $host_os in |
16382 | aix3*) |
16383 | allow_undefined_flag_GCJ=unsupported |
16384 | always_export_symbols_GCJ=yes |
16385 | 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' |
16386 | # Note: this linker hardcodes the directories in LIBPATH if there |
16387 | # are no directories specified by -L. |
16388 | hardcode_minus_L_GCJ=yes |
16389 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16390 | # Neither direct hardcoding nor static linking is supported with a |
16391 | # broken collect2. |
16392 | hardcode_direct_GCJ=unsupported |
16393 | fi |
16394 | ;; |
16395 | |
16396 | aix4* | aix5*) |
16397 | if test "$host_cpu" = ia64; then |
16398 | # On IA64, the linker does run time linking by default, so we don't |
16399 | # have to do anything special. |
16400 | aix_use_runtimelinking=no |
16401 | exp_sym_flag='-Bexport' |
16402 | no_entry_flag="" |
16403 | else |
16404 | # If we're using GNU nm, then we don't want the "-C" option. |
16405 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
16406 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16407 | 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' |
16408 | else |
16409 | 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' |
16410 | fi |
16411 | aix_use_runtimelinking=no |
16412 | |
16413 | # Test if we are trying to use run time linking or normal |
16414 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16415 | # need to do runtime linking. |
16416 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16417 | for ld_flag in $LDFLAGS; do |
16418 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16419 | aix_use_runtimelinking=yes |
16420 | break |
16421 | fi |
16422 | done |
16423 | ;; |
16424 | esac |
16425 | |
16426 | exp_sym_flag='-bexport' |
16427 | no_entry_flag='-bnoentry' |
16428 | fi |
16429 | |
16430 | # When large executables or shared objects are built, AIX ld can |
16431 | # have problems creating the table of contents. If linking a library |
16432 | # or program results in "error TOC overflow" add -mminimal-toc to |
16433 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16434 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16435 | |
16436 | archive_cmds_GCJ='' |
16437 | hardcode_direct_GCJ=yes |
16438 | hardcode_libdir_separator_GCJ=':' |
16439 | link_all_deplibs_GCJ=yes |
16440 | |
16441 | if test "$GCC" = yes; then |
16442 | case $host_os in aix4.[012]|aix4.[012].*) |
16443 | # We only want to do this on AIX 4.2 and lower, the check |
16444 | # below for broken collect2 doesn't work under 4.3+ |
16445 | collect2name=`${CC} -print-prog-name=collect2` |
16446 | if test -f "$collect2name" && \ |
16447 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
16448 | then |
16449 | # We have reworked collect2 |
16450 | hardcode_direct_GCJ=yes |
16451 | else |
16452 | # We have old collect2 |
16453 | hardcode_direct_GCJ=unsupported |
16454 | # It fails to find uninstalled libraries when the uninstalled |
16455 | # path is not listed in the libpath. Setting hardcode_minus_L |
16456 | # to unsupported forces relinking |
16457 | hardcode_minus_L_GCJ=yes |
16458 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16459 | hardcode_libdir_separator_GCJ= |
16460 | fi |
16461 | ;; |
16462 | esac |
16463 | shared_flag='-shared' |
16464 | if test "$aix_use_runtimelinking" = yes; then |
16465 | shared_flag="$shared_flag "'${wl}-G' |
16466 | fi |
16467 | else |
16468 | # not using gcc |
16469 | if test "$host_cpu" = ia64; then |
16470 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16471 | # chokes on -Wl,-G. The following line is correct: |
16472 | shared_flag='-G' |
16473 | else |
16474 | if test "$aix_use_runtimelinking" = yes; then |
16475 | shared_flag='${wl}-G' |
16476 | else |
16477 | shared_flag='${wl}-bM:SRE' |
16478 | fi |
16479 | fi |
16480 | fi |
16481 | |
16482 | # It seems that -bexpall does not export symbols beginning with |
16483 | # underscore (_), so it is better to generate a list of symbols to export. |
16484 | always_export_symbols_GCJ=yes |
16485 | if test "$aix_use_runtimelinking" = yes; then |
16486 | # Warning - without using the other runtime loading flags (-brtl), |
16487 | # -berok will link without error, but may produce a broken library. |
16488 | allow_undefined_flag_GCJ='-berok' |
16489 | # Determine the default libpath from the value encoded in an empty executable. |
16490 | cat >conftest.$ac_ext <<_ACEOF |
16491 | /* confdefs.h. */ |
16492 | _ACEOF |
16493 | cat confdefs.h >>conftest.$ac_ext |
16494 | cat >>conftest.$ac_ext <<_ACEOF |
16495 | /* end confdefs.h. */ |
16496 | |
16497 | int |
16498 | main () |
16499 | { |
16500 | |
16501 | ; |
16502 | return 0; |
16503 | } |
16504 | _ACEOF |
16505 | rm -f conftest.$ac_objext conftest$ac_exeext |
16506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16507 | (eval $ac_link) 2>conftest.er1 |
16508 | ac_status=$? |
16509 | grep -v '^ *+' conftest.er1 >conftest.err |
16510 | rm -f conftest.er1 |
16511 | cat conftest.err >&5 |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16513 | (exit $ac_status); } && |
16514 | { ac_try='test -z "$ac_c_werror_flag" |
16515 | || test ! -s conftest.err' |
16516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16517 | (eval $ac_try) 2>&5 |
16518 | ac_status=$? |
16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16520 | (exit $ac_status); }; } && |
16521 | { ac_try='test -s conftest$ac_exeext' |
16522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16523 | (eval $ac_try) 2>&5 |
16524 | ac_status=$? |
16525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16526 | (exit $ac_status); }; }; then |
16527 | |
16528 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16529 | }'` |
16530 | # Check for a 64-bit object if we didn't find anything. |
16531 | 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; } |
16532 | }'`; fi |
16533 | else |
16534 | echo "$as_me: failed program was:" >&5 |
16535 | sed 's/^/| /' conftest.$ac_ext >&5 |
16536 | |
16537 | fi |
16538 | rm -f conftest.err conftest.$ac_objext \ |
16539 | conftest$ac_exeext conftest.$ac_ext |
16540 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16541 | |
16542 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16543 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
16544 | else |
16545 | if test "$host_cpu" = ia64; then |
16546 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16547 | allow_undefined_flag_GCJ="-z nodefs" |
16548 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
16549 | else |
16550 | # Determine the default libpath from the value encoded in an empty executable. |
16551 | cat >conftest.$ac_ext <<_ACEOF |
16552 | /* confdefs.h. */ |
16553 | _ACEOF |
16554 | cat confdefs.h >>conftest.$ac_ext |
16555 | cat >>conftest.$ac_ext <<_ACEOF |
16556 | /* end confdefs.h. */ |
16557 | |
16558 | int |
16559 | main () |
16560 | { |
16561 | |
16562 | ; |
16563 | return 0; |
16564 | } |
16565 | _ACEOF |
16566 | rm -f conftest.$ac_objext conftest$ac_exeext |
16567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16568 | (eval $ac_link) 2>conftest.er1 |
16569 | ac_status=$? |
16570 | grep -v '^ *+' conftest.er1 >conftest.err |
16571 | rm -f conftest.er1 |
16572 | cat conftest.err >&5 |
16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16574 | (exit $ac_status); } && |
16575 | { ac_try='test -z "$ac_c_werror_flag" |
16576 | || test ! -s conftest.err' |
16577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16578 | (eval $ac_try) 2>&5 |
16579 | ac_status=$? |
16580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16581 | (exit $ac_status); }; } && |
16582 | { ac_try='test -s conftest$ac_exeext' |
16583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16584 | (eval $ac_try) 2>&5 |
16585 | ac_status=$? |
16586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16587 | (exit $ac_status); }; }; then |
16588 | |
16589 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16590 | }'` |
16591 | # Check for a 64-bit object if we didn't find anything. |
16592 | 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; } |
16593 | }'`; fi |
16594 | else |
16595 | echo "$as_me: failed program was:" >&5 |
16596 | sed 's/^/| /' conftest.$ac_ext >&5 |
16597 | |
16598 | fi |
16599 | rm -f conftest.err conftest.$ac_objext \ |
16600 | conftest$ac_exeext conftest.$ac_ext |
16601 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16602 | |
16603 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16604 | # Warning - without using the other run time loading flags, |
16605 | # -berok will link without error, but may produce a broken library. |
16606 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
16607 | allow_undefined_flag_GCJ=' ${wl}-berok' |
16608 | # Exported symbols can be pulled into shared objects from archives |
16609 | whole_archive_flag_spec_GCJ='$convenience' |
16610 | archive_cmds_need_lc_GCJ=yes |
16611 | # This is similar to how AIX traditionally builds its shared libraries. |
16612 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
16613 | fi |
16614 | fi |
16615 | ;; |
16616 | |
16617 | amigaos*) |
16618 | 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)' |
16619 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16620 | hardcode_minus_L_GCJ=yes |
16621 | # see comment about different semantics on the GNU ld section |
16622 | ld_shlibs_GCJ=no |
16623 | ;; |
16624 | |
16625 | bsdi[45]*) |
16626 | export_dynamic_flag_spec_GCJ=-rdynamic |
16627 | ;; |
16628 | |
16629 | cygwin* | mingw* | pw32*) |
16630 | # When not using gcc, we currently assume that we are using |
16631 | # Microsoft Visual C++. |
16632 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
16633 | # no search path for DLLs. |
16634 | hardcode_libdir_flag_spec_GCJ=' ' |
16635 | allow_undefined_flag_GCJ=unsupported |
16636 | # Tell ltmain to make .lib files, not .a files. |
16637 | libext=lib |
16638 | # Tell ltmain to make .dll files, not .so files. |
16639 | shrext_cmds=".dll" |
16640 | # FIXME: Setting linknames here is a bad hack. |
16641 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16642 | # The linker will automatically build a .lib file if we build a DLL. |
16643 | old_archive_From_new_cmds_GCJ='true' |
16644 | # FIXME: Should let the user specify the lib program. |
16645 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16646 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
16647 | enable_shared_with_static_runtimes_GCJ=yes |
16648 | ;; |
16649 | |
16650 | darwin* | rhapsody*) |
16651 | case $host_os in |
16652 | rhapsody* | darwin1.[012]) |
16653 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
16654 | ;; |
16655 | *) # Darwin 1.3 on |
16656 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16657 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16658 | else |
16659 | case ${MACOSX_DEPLOYMENT_TARGET} in |
16660 | 10.[012]) |
16661 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
16662 | ;; |
16663 | 10.*) |
16664 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
16665 | ;; |
16666 | esac |
16667 | fi |
16668 | ;; |
16669 | esac |
16670 | archive_cmds_need_lc_GCJ=no |
16671 | hardcode_direct_GCJ=no |
16672 | hardcode_automatic_GCJ=yes |
16673 | hardcode_shlibpath_var_GCJ=unsupported |
16674 | whole_archive_flag_spec_GCJ='' |
16675 | link_all_deplibs_GCJ=yes |
16676 | if test "$GCC" = yes ; then |
16677 | output_verbose_link_cmd='echo' |
16678 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16679 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16680 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16681 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16682 | 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}' |
16683 | else |
16684 | case $cc_basename in |
16685 | xlc*) |
16686 | output_verbose_link_cmd='echo' |
16687 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
16688 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16689 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
16690 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16691 | 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}' |
16692 | ;; |
16693 | *) |
16694 | ld_shlibs_GCJ=no |
16695 | ;; |
16696 | esac |
16697 | fi |
16698 | ;; |
16699 | |
16700 | dgux*) |
16701 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16702 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16703 | hardcode_shlibpath_var_GCJ=no |
16704 | ;; |
16705 | |
16706 | freebsd1*) |
16707 | ld_shlibs_GCJ=no |
16708 | ;; |
16709 | |
16710 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16711 | # support. Future versions do this automatically, but an explicit c++rt0.o |
16712 | # does not break anything, and helps significantly (at the cost of a little |
16713 | # extra space). |
16714 | freebsd2.2*) |
16715 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16716 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16717 | hardcode_direct_GCJ=yes |
16718 | hardcode_shlibpath_var_GCJ=no |
16719 | ;; |
16720 | |
16721 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16722 | freebsd2*) |
16723 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16724 | hardcode_direct_GCJ=yes |
16725 | hardcode_minus_L_GCJ=yes |
16726 | hardcode_shlibpath_var_GCJ=no |
16727 | ;; |
16728 | |
16729 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16730 | freebsd* | kfreebsd*-gnu | dragonfly*) |
16731 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16732 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16733 | hardcode_direct_GCJ=yes |
16734 | hardcode_shlibpath_var_GCJ=no |
16735 | ;; |
16736 | |
16737 | hpux9*) |
16738 | if test "$GCC" = yes; then |
16739 | 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' |
16740 | else |
16741 | 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' |
16742 | fi |
16743 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16744 | hardcode_libdir_separator_GCJ=: |
16745 | hardcode_direct_GCJ=yes |
16746 | |
16747 | # hardcode_minus_L: Not really in the search PATH, |
16748 | # but as the default location of the library. |
16749 | hardcode_minus_L_GCJ=yes |
16750 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16751 | ;; |
16752 | |
16753 | hpux10*) |
16754 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16755 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16756 | else |
16757 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16758 | fi |
16759 | if test "$with_gnu_ld" = no; then |
16760 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16761 | hardcode_libdir_separator_GCJ=: |
16762 | |
16763 | hardcode_direct_GCJ=yes |
16764 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16765 | |
16766 | # hardcode_minus_L: Not really in the search PATH, |
16767 | # but as the default location of the library. |
16768 | hardcode_minus_L_GCJ=yes |
16769 | fi |
16770 | ;; |
16771 | |
16772 | hpux11*) |
16773 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16774 | case $host_cpu in |
16775 | hppa*64*) |
16776 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16777 | ;; |
16778 | ia64*) |
16779 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16780 | ;; |
16781 | *) |
16782 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16783 | ;; |
16784 | esac |
16785 | else |
16786 | case $host_cpu in |
16787 | hppa*64*) |
16788 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16789 | ;; |
16790 | ia64*) |
16791 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
16792 | ;; |
16793 | *) |
16794 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16795 | ;; |
16796 | esac |
16797 | fi |
16798 | if test "$with_gnu_ld" = no; then |
16799 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16800 | hardcode_libdir_separator_GCJ=: |
16801 | |
16802 | case $host_cpu in |
16803 | hppa*64*|ia64*) |
16804 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16805 | hardcode_direct_GCJ=no |
16806 | hardcode_shlibpath_var_GCJ=no |
16807 | ;; |
16808 | *) |
16809 | hardcode_direct_GCJ=yes |
16810 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16811 | |
16812 | # hardcode_minus_L: Not really in the search PATH, |
16813 | # but as the default location of the library. |
16814 | hardcode_minus_L_GCJ=yes |
16815 | ;; |
16816 | esac |
16817 | fi |
16818 | ;; |
16819 | |
16820 | irix5* | irix6* | nonstopux*) |
16821 | if test "$GCC" = yes; then |
16822 | 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' |
16823 | else |
16824 | 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' |
16825 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16826 | fi |
16827 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16828 | hardcode_libdir_separator_GCJ=: |
16829 | link_all_deplibs_GCJ=yes |
16830 | ;; |
16831 | |
16832 | netbsd*) |
16833 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16834 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16835 | else |
16836 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16837 | fi |
16838 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16839 | hardcode_direct_GCJ=yes |
16840 | hardcode_shlibpath_var_GCJ=no |
16841 | ;; |
16842 | |
16843 | newsos6) |
16844 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16845 | hardcode_direct_GCJ=yes |
16846 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16847 | hardcode_libdir_separator_GCJ=: |
16848 | hardcode_shlibpath_var_GCJ=no |
16849 | ;; |
16850 | |
16851 | openbsd*) |
16852 | hardcode_direct_GCJ=yes |
16853 | hardcode_shlibpath_var_GCJ=no |
16854 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16855 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16856 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
16857 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16858 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16859 | else |
16860 | case $host_os in |
16861 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
16862 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16863 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16864 | ;; |
16865 | *) |
16866 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16867 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16868 | ;; |
16869 | esac |
16870 | fi |
16871 | ;; |
16872 | |
16873 | os2*) |
16874 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16875 | hardcode_minus_L_GCJ=yes |
16876 | allow_undefined_flag_GCJ=unsupported |
16877 | 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' |
16878 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
16879 | ;; |
16880 | |
16881 | osf3*) |
16882 | if test "$GCC" = yes; then |
16883 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16884 | 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' |
16885 | else |
16886 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16887 | 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' |
16888 | fi |
16889 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16890 | hardcode_libdir_separator_GCJ=: |
16891 | ;; |
16892 | |
16893 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
16894 | if test "$GCC" = yes; then |
16895 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16896 | 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' |
16897 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16898 | else |
16899 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16900 | 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' |
16901 | 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~ |
16902 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
16903 | |
16904 | # Both c and cxx compiler support -rpath directly |
16905 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
16906 | fi |
16907 | hardcode_libdir_separator_GCJ=: |
16908 | ;; |
16909 | |
16910 | solaris*) |
16911 | no_undefined_flag_GCJ=' -z text' |
16912 | if test "$GCC" = yes; then |
16913 | wlarc='${wl}' |
16914 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16915 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16916 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
16917 | else |
16918 | wlarc='' |
16919 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16920 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16921 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16922 | fi |
16923 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16924 | hardcode_shlibpath_var_GCJ=no |
16925 | case $host_os in |
16926 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
16927 | *) |
16928 | # The compiler driver will combine linker options so we |
16929 | # cannot just pass the convience library names through |
16930 | # without $wl, iff we do not link with $LD. |
16931 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
16932 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
16933 | case $wlarc in |
16934 | '') |
16935 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
16936 | *) |
16937 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
16938 | esac ;; |
16939 | esac |
16940 | link_all_deplibs_GCJ=yes |
16941 | ;; |
16942 | |
16943 | sunos4*) |
16944 | if test "x$host_vendor" = xsequent; then |
16945 | # Use $CC to link under sequent, because it throws in some extra .o |
16946 | # files that make .init and .fini sections work. |
16947 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
16948 | else |
16949 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
16950 | fi |
16951 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16952 | hardcode_direct_GCJ=yes |
16953 | hardcode_minus_L_GCJ=yes |
16954 | hardcode_shlibpath_var_GCJ=no |
16955 | ;; |
16956 | |
16957 | sysv4) |
16958 | case $host_vendor in |
16959 | sni) |
16960 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16961 | hardcode_direct_GCJ=yes # is this really true??? |
16962 | ;; |
16963 | siemens) |
16964 | ## LD is ld it makes a PLAMLIB |
16965 | ## CC just makes a GrossModule. |
16966 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16967 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
16968 | hardcode_direct_GCJ=no |
16969 | ;; |
16970 | motorola) |
16971 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16972 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
16973 | ;; |
16974 | esac |
16975 | runpath_var='LD_RUN_PATH' |
16976 | hardcode_shlibpath_var_GCJ=no |
16977 | ;; |
16978 | |
16979 | sysv4.3*) |
16980 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16981 | hardcode_shlibpath_var_GCJ=no |
16982 | export_dynamic_flag_spec_GCJ='-Bexport' |
16983 | ;; |
16984 | |
16985 | sysv4*MP*) |
16986 | if test -d /usr/nec; then |
16987 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16988 | hardcode_shlibpath_var_GCJ=no |
16989 | runpath_var=LD_RUN_PATH |
16990 | hardcode_runpath_var=yes |
16991 | ld_shlibs_GCJ=yes |
16992 | fi |
16993 | ;; |
16994 | |
16995 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
16996 | no_undefined_flag_GCJ='${wl}-z,text' |
16997 | archive_cmds_need_lc_GCJ=no |
16998 | hardcode_shlibpath_var_GCJ=no |
16999 | runpath_var='LD_RUN_PATH' |
17000 | |
17001 | if test "$GCC" = yes; then |
17002 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17003 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17004 | else |
17005 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17006 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17007 | fi |
17008 | ;; |
17009 | |
17010 | sysv5* | sco3.2v5* | sco5v6*) |
17011 | # Note: We can NOT use -z defs as we might desire, because we do not |
17012 | # link with -lc, and that would cause any symbols used from libc to |
17013 | # always be unresolved, which means just about no library would |
17014 | # ever link correctly. If we're not using GNU ld we use -z text |
17015 | # though, which does catch some bad symbols but isn't as heavy-handed |
17016 | # as -z defs. |
17017 | no_undefined_flag_GCJ='${wl}-z,text' |
17018 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17019 | archive_cmds_need_lc_GCJ=no |
17020 | hardcode_shlibpath_var_GCJ=no |
17021 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17022 | hardcode_libdir_separator_GCJ=':' |
17023 | link_all_deplibs_GCJ=yes |
17024 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17025 | runpath_var='LD_RUN_PATH' |
17026 | |
17027 | if test "$GCC" = yes; then |
17028 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17029 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17030 | else |
17031 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17032 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17033 | fi |
17034 | ;; |
17035 | |
17036 | uts4*) |
17037 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17038 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17039 | hardcode_shlibpath_var_GCJ=no |
17040 | ;; |
17041 | |
17042 | *) |
17043 | ld_shlibs_GCJ=no |
17044 | ;; |
17045 | esac |
17046 | fi |
17047 | |
17048 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17049 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17050 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17051 | |
17052 | # |
17053 | # Do we need to explicitly link libc? |
17054 | # |
17055 | case "x$archive_cmds_need_lc_GCJ" in |
17056 | x|xyes) |
17057 | # Assume -lc should be added |
17058 | archive_cmds_need_lc_GCJ=yes |
17059 | |
17060 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17061 | case $archive_cmds_GCJ in |
17062 | *'~'*) |
17063 | # FIXME: we may have to deal with multi-command sequences. |
17064 | ;; |
17065 | '$CC '*) |
17066 | # Test whether the compiler implicitly links with -lc since on some |
17067 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17068 | # to ld, don't add -lc before -lgcc. |
17069 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17070 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17071 | $rm conftest* |
17072 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17073 | |
17074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17075 | (eval $ac_compile) 2>&5 |
17076 | ac_status=$? |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17078 | (exit $ac_status); } 2>conftest.err; then |
17079 | soname=conftest |
17080 | lib=conftest |
17081 | libobjs=conftest.$ac_objext |
17082 | deplibs= |
17083 | wl=$lt_prog_compiler_wl_GCJ |
17084 | pic_flag=$lt_prog_compiler_pic_GCJ |
17085 | compiler_flags=-v |
17086 | linker_flags=-v |
17087 | verstring= |
17088 | output_objdir=. |
17089 | libname=conftest |
17090 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17091 | allow_undefined_flag_GCJ= |
17092 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17093 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17094 | ac_status=$? |
17095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17096 | (exit $ac_status); } |
17097 | then |
17098 | archive_cmds_need_lc_GCJ=no |
17099 | else |
17100 | archive_cmds_need_lc_GCJ=yes |
17101 | fi |
17102 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17103 | else |
17104 | cat conftest.err 1>&5 |
17105 | fi |
17106 | $rm conftest* |
17107 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17108 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17109 | ;; |
17110 | esac |
17111 | fi |
17112 | ;; |
17113 | esac |
17114 | |
17115 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17116 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17117 | library_names_spec= |
17118 | libname_spec='lib$name' |
17119 | soname_spec= |
17120 | shrext_cmds=".so" |
17121 | postinstall_cmds= |
17122 | postuninstall_cmds= |
17123 | finish_cmds= |
17124 | finish_eval= |
17125 | shlibpath_var= |
17126 | shlibpath_overrides_runpath=unknown |
17127 | version_type=none |
17128 | dynamic_linker="$host_os ld.so" |
17129 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17130 | if test "$GCC" = yes; then |
17131 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17132 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17133 | # if the path contains ";" then we assume it to be the separator |
17134 | # otherwise default to the standard path separator (i.e. ":") - it is |
17135 | # assumed that no part of a normal pathname contains ";" but that should |
17136 | # okay in the real world where ";" in dirpaths is itself problematic. |
17137 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17138 | else |
17139 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17140 | fi |
17141 | else |
17142 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17143 | fi |
17144 | need_lib_prefix=unknown |
17145 | hardcode_into_libs=no |
17146 | |
17147 | # when you set need_version to no, make sure it does not cause -set_version |
17148 | # flags to be left without arguments |
17149 | need_version=unknown |
17150 | |
17151 | case $host_os in |
17152 | aix3*) |
17153 | version_type=linux |
17154 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17155 | shlibpath_var=LIBPATH |
17156 | |
17157 | # AIX 3 has no versioning support, so we append a major version to the name. |
17158 | soname_spec='${libname}${release}${shared_ext}$major' |
17159 | ;; |
17160 | |
17161 | aix4* | aix5*) |
17162 | version_type=linux |
17163 | need_lib_prefix=no |
17164 | need_version=no |
17165 | hardcode_into_libs=yes |
17166 | if test "$host_cpu" = ia64; then |
17167 | # AIX 5 supports IA64 |
17168 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17169 | shlibpath_var=LD_LIBRARY_PATH |
17170 | else |
17171 | # With GCC up to 2.95.x, collect2 would create an import file |
17172 | # for dependence libraries. The import file would start with |
17173 | # the line `#! .'. This would cause the generated library to |
17174 | # depend on `.', always an invalid library. This was fixed in |
17175 | # development snapshots of GCC prior to 3.0. |
17176 | case $host_os in |
17177 | aix4 | aix4.[01] | aix4.[01].*) |
17178 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17179 | echo ' yes ' |
17180 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17181 | : |
17182 | else |
17183 | can_build_shared=no |
17184 | fi |
17185 | ;; |
17186 | esac |
17187 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17188 | # soname into executable. Probably we can add versioning support to |
17189 | # collect2, so additional links can be useful in future. |
17190 | if test "$aix_use_runtimelinking" = yes; then |
17191 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17192 | # instead of lib<name>.a to let people know that these are not |
17193 | # typical AIX shared libraries. |
17194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17195 | else |
17196 | # We preserve .a as extension for shared libraries through AIX4.2 |
17197 | # and later when we are not doing run time linking. |
17198 | library_names_spec='${libname}${release}.a $libname.a' |
17199 | soname_spec='${libname}${release}${shared_ext}$major' |
17200 | fi |
17201 | shlibpath_var=LIBPATH |
17202 | fi |
17203 | ;; |
17204 | |
17205 | amigaos*) |
17206 | library_names_spec='$libname.ixlibrary $libname.a' |
17207 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17208 | 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' |
17209 | ;; |
17210 | |
17211 | beos*) |
17212 | library_names_spec='${libname}${shared_ext}' |
17213 | dynamic_linker="$host_os ld.so" |
17214 | shlibpath_var=LIBRARY_PATH |
17215 | ;; |
17216 | |
17217 | bsdi[45]*) |
17218 | version_type=linux |
17219 | need_version=no |
17220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17221 | soname_spec='${libname}${release}${shared_ext}$major' |
17222 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17223 | shlibpath_var=LD_LIBRARY_PATH |
17224 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17225 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17226 | # the default ld.so.conf also contains /usr/contrib/lib and |
17227 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17228 | # libtool to hard-code these into programs |
17229 | ;; |
17230 | |
17231 | cygwin* | mingw* | pw32*) |
17232 | version_type=windows |
17233 | shrext_cmds=".dll" |
17234 | need_version=no |
17235 | need_lib_prefix=no |
17236 | |
17237 | case $GCC,$host_os in |
17238 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17239 | library_names_spec='$libname.dll.a' |
17240 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17241 | postinstall_cmds='base_file=`basename \${file}`~ |
17242 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17243 | dldir=$destdir/`dirname \$dlpath`~ |
17244 | test -d \$dldir || mkdir -p \$dldir~ |
17245 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17246 | chmod a+x \$dldir/$dlname' |
17247 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17248 | dlpath=$dir/\$dldll~ |
17249 | $rm \$dlpath' |
17250 | shlibpath_overrides_runpath=yes |
17251 | |
17252 | case $host_os in |
17253 | cygwin*) |
17254 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17255 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17256 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17257 | ;; |
17258 | mingw*) |
17259 | # MinGW DLLs use traditional 'lib' prefix |
17260 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17261 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17262 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17263 | # It is most probably a Windows format PATH printed by |
17264 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17265 | # path with ; separators, and with drive letters. We can handle the |
17266 | # drive letters (cygwin fileutils understands them), so leave them, |
17267 | # especially as we might pass files found there to a mingw objdump, |
17268 | # which wouldn't understand a cygwinified path. Ahh. |
17269 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17270 | else |
17271 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17272 | fi |
17273 | ;; |
17274 | pw32*) |
17275 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17276 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17277 | ;; |
17278 | esac |
17279 | ;; |
17280 | |
17281 | *) |
17282 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17283 | ;; |
17284 | esac |
17285 | dynamic_linker='Win32 ld.exe' |
17286 | # FIXME: first we should search . and the directory the executable is in |
17287 | shlibpath_var=PATH |
17288 | ;; |
17289 | |
17290 | darwin* | rhapsody*) |
17291 | dynamic_linker="$host_os dyld" |
17292 | version_type=darwin |
17293 | need_lib_prefix=no |
17294 | need_version=no |
17295 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17296 | soname_spec='${libname}${release}${major}$shared_ext' |
17297 | shlibpath_overrides_runpath=yes |
17298 | shlibpath_var=DYLD_LIBRARY_PATH |
17299 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17300 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17301 | if test "$GCC" = yes; then |
17302 | 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"` |
17303 | else |
17304 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17305 | fi |
17306 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17307 | ;; |
17308 | |
17309 | dgux*) |
17310 | version_type=linux |
17311 | need_lib_prefix=no |
17312 | need_version=no |
17313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17314 | soname_spec='${libname}${release}${shared_ext}$major' |
17315 | shlibpath_var=LD_LIBRARY_PATH |
17316 | ;; |
17317 | |
17318 | freebsd1*) |
17319 | dynamic_linker=no |
17320 | ;; |
17321 | |
17322 | kfreebsd*-gnu) |
17323 | version_type=linux |
17324 | need_lib_prefix=no |
17325 | need_version=no |
17326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17327 | soname_spec='${libname}${release}${shared_ext}$major' |
17328 | shlibpath_var=LD_LIBRARY_PATH |
17329 | shlibpath_overrides_runpath=no |
17330 | hardcode_into_libs=yes |
17331 | dynamic_linker='GNU ld.so' |
17332 | ;; |
17333 | |
17334 | freebsd* | dragonfly*) |
17335 | # DragonFly does not have aout. When/if they implement a new |
17336 | # versioning mechanism, adjust this. |
17337 | if test -x /usr/bin/objformat; then |
17338 | objformat=`/usr/bin/objformat` |
17339 | else |
17340 | case $host_os in |
17341 | freebsd[123]*) objformat=aout ;; |
17342 | *) objformat=elf ;; |
17343 | esac |
17344 | fi |
17345 | version_type=freebsd-$objformat |
17346 | case $version_type in |
17347 | freebsd-elf*) |
17348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17349 | need_version=no |
17350 | need_lib_prefix=no |
17351 | ;; |
17352 | freebsd-*) |
17353 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17354 | need_version=yes |
17355 | ;; |
17356 | esac |
17357 | shlibpath_var=LD_LIBRARY_PATH |
17358 | case $host_os in |
17359 | freebsd2*) |
17360 | shlibpath_overrides_runpath=yes |
17361 | ;; |
17362 | freebsd3.[01]* | freebsdelf3.[01]*) |
17363 | shlibpath_overrides_runpath=yes |
17364 | hardcode_into_libs=yes |
17365 | ;; |
17366 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17367 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
17368 | shlibpath_overrides_runpath=no |
17369 | hardcode_into_libs=yes |
17370 | ;; |
17371 | freebsd*) # from 4.6 on |
17372 | shlibpath_overrides_runpath=yes |
17373 | hardcode_into_libs=yes |
17374 | ;; |
17375 | esac |
17376 | ;; |
17377 | |
17378 | gnu*) |
17379 | version_type=linux |
17380 | need_lib_prefix=no |
17381 | need_version=no |
17382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17383 | soname_spec='${libname}${release}${shared_ext}$major' |
17384 | shlibpath_var=LD_LIBRARY_PATH |
17385 | hardcode_into_libs=yes |
17386 | ;; |
17387 | |
17388 | hpux9* | hpux10* | hpux11*) |
17389 | # Give a soname corresponding to the major version so that dld.sl refuses to |
17390 | # link against other versions. |
17391 | version_type=sunos |
17392 | need_lib_prefix=no |
17393 | need_version=no |
17394 | case $host_cpu in |
17395 | ia64*) |
17396 | shrext_cmds='.so' |
17397 | hardcode_into_libs=yes |
17398 | dynamic_linker="$host_os dld.so" |
17399 | shlibpath_var=LD_LIBRARY_PATH |
17400 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17402 | soname_spec='${libname}${release}${shared_ext}$major' |
17403 | if test "X$HPUX_IA64_MODE" = X32; then |
17404 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17405 | else |
17406 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17407 | fi |
17408 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17409 | ;; |
17410 | hppa*64*) |
17411 | shrext_cmds='.sl' |
17412 | hardcode_into_libs=yes |
17413 | dynamic_linker="$host_os dld.sl" |
17414 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17415 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17417 | soname_spec='${libname}${release}${shared_ext}$major' |
17418 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17419 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17420 | ;; |
17421 | *) |
17422 | shrext_cmds='.sl' |
17423 | dynamic_linker="$host_os dld.sl" |
17424 | shlibpath_var=SHLIB_PATH |
17425 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17427 | soname_spec='${libname}${release}${shared_ext}$major' |
17428 | ;; |
17429 | esac |
17430 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17431 | postinstall_cmds='chmod 555 $lib' |
17432 | ;; |
17433 | |
17434 | interix3*) |
17435 | version_type=linux |
17436 | need_lib_prefix=no |
17437 | need_version=no |
17438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17439 | soname_spec='${libname}${release}${shared_ext}$major' |
17440 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
17441 | shlibpath_var=LD_LIBRARY_PATH |
17442 | shlibpath_overrides_runpath=no |
17443 | hardcode_into_libs=yes |
17444 | ;; |
17445 | |
17446 | irix5* | irix6* | nonstopux*) |
17447 | case $host_os in |
17448 | nonstopux*) version_type=nonstopux ;; |
17449 | *) |
17450 | if test "$lt_cv_prog_gnu_ld" = yes; then |
17451 | version_type=linux |
17452 | else |
17453 | version_type=irix |
17454 | fi ;; |
17455 | esac |
17456 | need_lib_prefix=no |
17457 | need_version=no |
17458 | soname_spec='${libname}${release}${shared_ext}$major' |
17459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17460 | case $host_os in |
17461 | irix5* | nonstopux*) |
17462 | libsuff= shlibsuff= |
17463 | ;; |
17464 | *) |
17465 | case $LD in # libtool.m4 will add one of these switches to LD |
17466 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17467 | libsuff= shlibsuff= libmagic=32-bit;; |
17468 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17469 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
17470 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17471 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17472 | *) libsuff= shlibsuff= libmagic=never-match;; |
17473 | esac |
17474 | ;; |
17475 | esac |
17476 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17477 | shlibpath_overrides_runpath=no |
17478 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17479 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17480 | hardcode_into_libs=yes |
17481 | ;; |
17482 | |
17483 | # No shared lib support for Linux oldld, aout, or coff. |
17484 | linux*oldld* | linux*aout* | linux*coff*) |
17485 | dynamic_linker=no |
17486 | ;; |
17487 | |
17488 | # This must be Linux ELF. |
17489 | linux*) |
17490 | version_type=linux |
17491 | need_lib_prefix=no |
17492 | need_version=no |
17493 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17494 | soname_spec='${libname}${release}${shared_ext}$major' |
17495 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17496 | shlibpath_var=LD_LIBRARY_PATH |
17497 | shlibpath_overrides_runpath=no |
17498 | # This implies no fast_install, which is unacceptable. |
17499 | # Some rework will be needed to allow for fast_install |
17500 | # before this can be enabled. |
17501 | hardcode_into_libs=yes |
17502 | |
17503 | # find out which ABI we are using |
17504 | libsuff= |
17505 | case "$host_cpu" in |
17506 | x86_64*|s390x*|powerpc64*) |
17507 | echo '#line 17507 "configure"' > conftest.$ac_ext |
17508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17509 | (eval $ac_compile) 2>&5 |
17510 | ac_status=$? |
17511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17512 | (exit $ac_status); }; then |
17513 | case `/usr/bin/file conftest.$ac_objext` in |
17514 | *64-bit*) |
17515 | libsuff=64 |
17516 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17517 | ;; |
17518 | esac |
17519 | fi |
17520 | rm -rf conftest* |
17521 | ;; |
17522 | esac |
17523 | |
17524 | # Append ld.so.conf contents to the search path |
17525 | if test -f /etc/ld.so.conf; then |
17526 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
17527 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17528 | fi |
17529 | |
17530 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17531 | # powerpc, because MkLinux only supported shared libraries with the |
17532 | # GNU dynamic linker. Since this was broken with cross compilers, |
17533 | # most powerpc-linux boxes support dynamic linking these days and |
17534 | # people can always --disable-shared, the test was removed, and we |
17535 | # assume the GNU/Linux dynamic linker is in use. |
17536 | dynamic_linker='GNU/Linux ld.so' |
17537 | ;; |
17538 | |
17539 | knetbsd*-gnu) |
17540 | version_type=linux |
17541 | need_lib_prefix=no |
17542 | need_version=no |
17543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17544 | soname_spec='${libname}${release}${shared_ext}$major' |
17545 | shlibpath_var=LD_LIBRARY_PATH |
17546 | shlibpath_overrides_runpath=no |
17547 | hardcode_into_libs=yes |
17548 | dynamic_linker='GNU ld.so' |
17549 | ;; |
17550 | |
17551 | netbsd*) |
17552 | version_type=sunos |
17553 | need_lib_prefix=no |
17554 | need_version=no |
17555 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17557 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17558 | dynamic_linker='NetBSD (a.out) ld.so' |
17559 | else |
17560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17561 | soname_spec='${libname}${release}${shared_ext}$major' |
17562 | dynamic_linker='NetBSD ld.elf_so' |
17563 | fi |
17564 | shlibpath_var=LD_LIBRARY_PATH |
17565 | shlibpath_overrides_runpath=yes |
17566 | hardcode_into_libs=yes |
17567 | ;; |
17568 | |
17569 | newsos6) |
17570 | version_type=linux |
17571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17572 | shlibpath_var=LD_LIBRARY_PATH |
17573 | shlibpath_overrides_runpath=yes |
17574 | ;; |
17575 | |
17576 | nto-qnx*) |
17577 | version_type=linux |
17578 | need_lib_prefix=no |
17579 | need_version=no |
17580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17581 | soname_spec='${libname}${release}${shared_ext}$major' |
17582 | shlibpath_var=LD_LIBRARY_PATH |
17583 | shlibpath_overrides_runpath=yes |
17584 | ;; |
17585 | |
17586 | openbsd*) |
17587 | version_type=sunos |
17588 | sys_lib_dlsearch_path_spec="/usr/lib" |
17589 | need_lib_prefix=no |
17590 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17591 | case $host_os in |
17592 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17593 | *) need_version=no ;; |
17594 | esac |
17595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17596 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17597 | shlibpath_var=LD_LIBRARY_PATH |
17598 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17599 | case $host_os in |
17600 | openbsd2.[89] | openbsd2.[89].*) |
17601 | shlibpath_overrides_runpath=no |
17602 | ;; |
17603 | *) |
17604 | shlibpath_overrides_runpath=yes |
17605 | ;; |
17606 | esac |
17607 | else |
17608 | shlibpath_overrides_runpath=yes |
17609 | fi |
17610 | ;; |
17611 | |
17612 | os2*) |
17613 | libname_spec='$name' |
17614 | shrext_cmds=".dll" |
17615 | need_lib_prefix=no |
17616 | library_names_spec='$libname${shared_ext} $libname.a' |
17617 | dynamic_linker='OS/2 ld.exe' |
17618 | shlibpath_var=LIBPATH |
17619 | ;; |
17620 | |
17621 | osf3* | osf4* | osf5*) |
17622 | version_type=osf |
17623 | need_lib_prefix=no |
17624 | need_version=no |
17625 | soname_spec='${libname}${release}${shared_ext}$major' |
17626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17627 | shlibpath_var=LD_LIBRARY_PATH |
17628 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17629 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17630 | ;; |
17631 | |
17632 | solaris*) |
17633 | version_type=linux |
17634 | need_lib_prefix=no |
17635 | need_version=no |
17636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17637 | soname_spec='${libname}${release}${shared_ext}$major' |
17638 | shlibpath_var=LD_LIBRARY_PATH |
17639 | shlibpath_overrides_runpath=yes |
17640 | hardcode_into_libs=yes |
17641 | # ldd complains unless libraries are executable |
17642 | postinstall_cmds='chmod +x $lib' |
17643 | ;; |
17644 | |
17645 | sunos4*) |
17646 | version_type=sunos |
17647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17648 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17649 | shlibpath_var=LD_LIBRARY_PATH |
17650 | shlibpath_overrides_runpath=yes |
17651 | if test "$with_gnu_ld" = yes; then |
17652 | need_lib_prefix=no |
17653 | fi |
17654 | need_version=yes |
17655 | ;; |
17656 | |
17657 | sysv4 | sysv4.3*) |
17658 | version_type=linux |
17659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17660 | soname_spec='${libname}${release}${shared_ext}$major' |
17661 | shlibpath_var=LD_LIBRARY_PATH |
17662 | case $host_vendor in |
17663 | sni) |
17664 | shlibpath_overrides_runpath=no |
17665 | need_lib_prefix=no |
17666 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
17667 | runpath_var=LD_RUN_PATH |
17668 | ;; |
17669 | siemens) |
17670 | need_lib_prefix=no |
17671 | ;; |
17672 | motorola) |
17673 | need_lib_prefix=no |
17674 | need_version=no |
17675 | shlibpath_overrides_runpath=no |
17676 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17677 | ;; |
17678 | esac |
17679 | ;; |
17680 | |
17681 | sysv4*MP*) |
17682 | if test -d /usr/nec ;then |
17683 | version_type=linux |
17684 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17685 | soname_spec='$libname${shared_ext}.$major' |
17686 | shlibpath_var=LD_LIBRARY_PATH |
17687 | fi |
17688 | ;; |
17689 | |
17690 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
17691 | version_type=freebsd-elf |
17692 | need_lib_prefix=no |
17693 | need_version=no |
17694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17695 | soname_spec='${libname}${release}${shared_ext}$major' |
17696 | shlibpath_var=LD_LIBRARY_PATH |
17697 | hardcode_into_libs=yes |
17698 | if test "$with_gnu_ld" = yes; then |
17699 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
17700 | shlibpath_overrides_runpath=no |
17701 | else |
17702 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
17703 | shlibpath_overrides_runpath=yes |
17704 | case $host_os in |
17705 | sco3.2v5*) |
17706 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
17707 | ;; |
17708 | esac |
17709 | fi |
17710 | sys_lib_dlsearch_path_spec='/usr/lib' |
17711 | ;; |
17712 | |
17713 | uts4*) |
17714 | version_type=linux |
17715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17716 | soname_spec='${libname}${release}${shared_ext}$major' |
17717 | shlibpath_var=LD_LIBRARY_PATH |
17718 | ;; |
17719 | |
17720 | *) |
17721 | dynamic_linker=no |
17722 | ;; |
17723 | esac |
17724 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17725 | echo "${ECHO_T}$dynamic_linker" >&6 |
17726 | test "$dynamic_linker" = no && can_build_shared=no |
17727 | |
17728 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17729 | if test "$GCC" = yes; then |
17730 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17731 | fi |
17732 | |
17733 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17734 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17735 | hardcode_action_GCJ= |
17736 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17737 | test -n "$runpath_var_GCJ" || \ |
17738 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
17739 | |
17740 | # We can hardcode non-existant directories. |
17741 | if test "$hardcode_direct_GCJ" != no && |
17742 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
17743 | # have to relink, otherwise we might link with an installed library |
17744 | # when we should be linking with a yet-to-be-installed one |
17745 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17746 | test "$hardcode_minus_L_GCJ" != no; then |
17747 | # Linking always hardcodes the temporary library directory. |
17748 | hardcode_action_GCJ=relink |
17749 | else |
17750 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
17751 | hardcode_action_GCJ=immediate |
17752 | fi |
17753 | else |
17754 | # We cannot hardcode anything, or else we can only hardcode existing |
17755 | # directories. |
17756 | hardcode_action_GCJ=unsupported |
17757 | fi |
17758 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17759 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17760 | |
17761 | if test "$hardcode_action_GCJ" = relink; then |
17762 | # Fast installation is not supported |
17763 | enable_fast_install=no |
17764 | elif test "$shlibpath_overrides_runpath" = yes || |
17765 | test "$enable_shared" = no; then |
17766 | # Fast installation is not necessary |
17767 | enable_fast_install=needless |
17768 | fi |
17769 | |
17770 | |
17771 | # The else clause should only fire when bootstrapping the |
17772 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
17773 | # with your package, and you will get complaints that there are |
17774 | # no rules to generate ltmain.sh. |
17775 | if test -f "$ltmain"; then |
17776 | # See if we are running on zsh, and set the options which allow our commands through |
17777 | # without removal of \ escapes. |
17778 | if test -n "${ZSH_VERSION+set}" ; then |
17779 | setopt NO_GLOB_SUBST |
17780 | fi |
17781 | # Now quote all the things that may contain metacharacters while being |
17782 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
17783 | # variables and quote the copies for generation of the libtool script. |
17784 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
17785 | SED SHELL STRIP \ |
17786 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
17787 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
17788 | deplibs_check_method reload_flag reload_cmds need_locks \ |
17789 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
17790 | lt_cv_sys_global_symbol_to_c_name_address \ |
17791 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
17792 | old_postinstall_cmds old_postuninstall_cmds \ |
17793 | compiler_GCJ \ |
17794 | CC_GCJ \ |
17795 | LD_GCJ \ |
17796 | lt_prog_compiler_wl_GCJ \ |
17797 | lt_prog_compiler_pic_GCJ \ |
17798 | lt_prog_compiler_static_GCJ \ |
17799 | lt_prog_compiler_no_builtin_flag_GCJ \ |
17800 | export_dynamic_flag_spec_GCJ \ |
17801 | thread_safe_flag_spec_GCJ \ |
17802 | whole_archive_flag_spec_GCJ \ |
17803 | enable_shared_with_static_runtimes_GCJ \ |
17804 | old_archive_cmds_GCJ \ |
17805 | old_archive_from_new_cmds_GCJ \ |
17806 | predep_objects_GCJ \ |
17807 | postdep_objects_GCJ \ |
17808 | predeps_GCJ \ |
17809 | postdeps_GCJ \ |
17810 | compiler_lib_search_path_GCJ \ |
17811 | archive_cmds_GCJ \ |
17812 | archive_expsym_cmds_GCJ \ |
17813 | postinstall_cmds_GCJ \ |
17814 | postuninstall_cmds_GCJ \ |
17815 | old_archive_from_expsyms_cmds_GCJ \ |
17816 | allow_undefined_flag_GCJ \ |
17817 | no_undefined_flag_GCJ \ |
17818 | export_symbols_cmds_GCJ \ |
17819 | hardcode_libdir_flag_spec_GCJ \ |
17820 | hardcode_libdir_flag_spec_ld_GCJ \ |
17821 | hardcode_libdir_separator_GCJ \ |
17822 | hardcode_automatic_GCJ \ |
17823 | module_cmds_GCJ \ |
17824 | module_expsym_cmds_GCJ \ |
17825 | lt_cv_prog_compiler_c_o_GCJ \ |
17826 | exclude_expsyms_GCJ \ |
17827 | include_expsyms_GCJ; do |
17828 | |
17829 | case $var in |
17830 | old_archive_cmds_GCJ | \ |
17831 | old_archive_from_new_cmds_GCJ | \ |
17832 | archive_cmds_GCJ | \ |
17833 | archive_expsym_cmds_GCJ | \ |
17834 | module_cmds_GCJ | \ |
17835 | module_expsym_cmds_GCJ | \ |
17836 | old_archive_from_expsyms_cmds_GCJ | \ |
17837 | export_symbols_cmds_GCJ | \ |
17838 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
17839 | postinstall_cmds | postuninstall_cmds | \ |
17840 | old_postinstall_cmds | old_postuninstall_cmds | \ |
17841 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
17842 | # Double-quote double-evaled strings. |
17843 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
17844 | ;; |
17845 | *) |
17846 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
17847 | ;; |
17848 | esac |
17849 | done |
17850 | |
17851 | case $lt_echo in |
17852 | *'\$0 --fallback-echo"') |
17853 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
17854 | ;; |
17855 | esac |
17856 | |
17857 | cfgfile="$ofile" |
17858 | |
17859 | cat <<__EOF__ >> "$cfgfile" |
17860 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
17861 | |
17862 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
17863 | |
17864 | # Shell to use when invoking shell scripts. |
17865 | SHELL=$lt_SHELL |
17866 | |
17867 | # Whether or not to build shared libraries. |
17868 | build_libtool_libs=$enable_shared |
17869 | |
17870 | # Whether or not to build static libraries. |
17871 | build_old_libs=$enable_static |
17872 | |
17873 | # Whether or not to add -lc for building shared libraries. |
17874 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
17875 | |
17876 | # Whether or not to disallow shared libs when runtime libs are static |
17877 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
17878 | |
17879 | # Whether or not to optimize for fast installation. |
17880 | fast_install=$enable_fast_install |
17881 | |
17882 | # The host system. |
17883 | host_alias=$host_alias |
17884 | host=$host |
17885 | host_os=$host_os |
17886 | |
17887 | # The build system. |
17888 | build_alias=$build_alias |
17889 | build=$build |
17890 | build_os=$build_os |
17891 | |
17892 | # An echo program that does not interpret backslashes. |
17893 | echo=$lt_echo |
17894 | |
17895 | # The archiver. |
17896 | AR=$lt_AR |
17897 | AR_FLAGS=$lt_AR_FLAGS |
17898 | |
17899 | # A C compiler. |
17900 | LTCC=$lt_LTCC |
17901 | |
17902 | # LTCC compiler flags. |
17903 | LTCFLAGS=$lt_LTCFLAGS |
17904 | |
17905 | # A language-specific compiler. |
17906 | CC=$lt_compiler_GCJ |
17907 | |
17908 | # Is the compiler the GNU C compiler? |
17909 | with_gcc=$GCC_GCJ |
17910 | |
17911 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
17912 | gcc_ver=\`gcc -dumpversion\` |
17913 | |
17914 | # An ERE matcher. |
17915 | EGREP=$lt_EGREP |
17916 | |
17917 | # The linker used to build libraries. |
17918 | LD=$lt_LD_GCJ |
17919 | |
17920 | # Whether we need hard or soft links. |
17921 | LN_S=$lt_LN_S |
17922 | |
17923 | # A BSD-compatible nm program. |
17924 | NM=$lt_NM |
17925 | |
17926 | # A symbol stripping program |
17927 | STRIP=$lt_STRIP |
17928 | |
17929 | # Used to examine libraries when file_magic_cmd begins "file" |
17930 | MAGIC_CMD=$MAGIC_CMD |
17931 | |
17932 | # Used on cygwin: DLL creation program. |
17933 | DLLTOOL="$DLLTOOL" |
17934 | |
17935 | # Used on cygwin: object dumper. |
17936 | OBJDUMP="$OBJDUMP" |
17937 | |
17938 | # Used on cygwin: assembler. |
17939 | AS="$AS" |
17940 | |
17941 | # The name of the directory that contains temporary libtool files. |
17942 | objdir=$objdir |
17943 | |
17944 | # How to create reloadable object files. |
17945 | reload_flag=$lt_reload_flag |
17946 | reload_cmds=$lt_reload_cmds |
17947 | |
17948 | # How to pass a linker flag through the compiler. |
17949 | wl=$lt_lt_prog_compiler_wl_GCJ |
17950 | |
17951 | # Object file suffix (normally "o"). |
17952 | objext="$ac_objext" |
17953 | |
17954 | # Old archive suffix (normally "a"). |
17955 | libext="$libext" |
17956 | |
17957 | # Shared library suffix (normally ".so"). |
17958 | shrext_cmds='$shrext_cmds' |
17959 | |
17960 | # Executable file suffix (normally ""). |
17961 | exeext="$exeext" |
17962 | |
17963 | # Additional compiler flags for building library objects. |
17964 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
17965 | pic_mode=$pic_mode |
17966 | |
17967 | # What is the maximum length of a command? |
17968 | max_cmd_len=$lt_cv_sys_max_cmd_len |
17969 | |
17970 | # Does compiler simultaneously support -c and -o options? |
17971 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
17972 | |
17973 | # Must we lock files when doing compilation? |
17974 | need_locks=$lt_need_locks |
17975 | |
17976 | # Do we need the lib prefix for modules? |
17977 | need_lib_prefix=$need_lib_prefix |
17978 | |
17979 | # Do we need a version for libraries? |
17980 | need_version=$need_version |
17981 | |
17982 | # Whether dlopen is supported. |
17983 | dlopen_support=$enable_dlopen |
17984 | |
17985 | # Whether dlopen of programs is supported. |
17986 | dlopen_self=$enable_dlopen_self |
17987 | |
17988 | # Whether dlopen of statically linked programs is supported. |
17989 | dlopen_self_static=$enable_dlopen_self_static |
17990 | |
17991 | # Compiler flag to prevent dynamic linking. |
17992 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
17993 | |
17994 | # Compiler flag to turn off builtin functions. |
17995 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
17996 | |
17997 | # Compiler flag to allow reflexive dlopens. |
17998 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
17999 | |
18000 | # Compiler flag to generate shared objects directly from archives. |
18001 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18002 | |
18003 | # Compiler flag to generate thread-safe objects. |
18004 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18005 | |
18006 | # Library versioning type. |
18007 | version_type=$version_type |
18008 | |
18009 | # Format of library name prefix. |
18010 | libname_spec=$lt_libname_spec |
18011 | |
18012 | # List of archive names. First name is the real one, the rest are links. |
18013 | # The last name is the one that the linker finds with -lNAME. |
18014 | library_names_spec=$lt_library_names_spec |
18015 | |
18016 | # The coded name of the library, if different from the real name. |
18017 | soname_spec=$lt_soname_spec |
18018 | |
18019 | # Commands used to build and install an old-style archive. |
18020 | RANLIB=$lt_RANLIB |
18021 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18022 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18023 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18024 | |
18025 | # Create an old-style archive from a shared archive. |
18026 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18027 | |
18028 | # Create a temporary old-style archive to link instead of a shared archive. |
18029 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18030 | |
18031 | # Commands used to build and install a shared archive. |
18032 | archive_cmds=$lt_archive_cmds_GCJ |
18033 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18034 | postinstall_cmds=$lt_postinstall_cmds |
18035 | postuninstall_cmds=$lt_postuninstall_cmds |
18036 | |
18037 | # Commands used to build a loadable module (assumed same as above if empty) |
18038 | module_cmds=$lt_module_cmds_GCJ |
18039 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18040 | |
18041 | # Commands to strip libraries. |
18042 | old_striplib=$lt_old_striplib |
18043 | striplib=$lt_striplib |
18044 | |
18045 | # Dependencies to place before the objects being linked to create a |
18046 | # shared library. |
18047 | predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18048 | |
18049 | # Dependencies to place after the objects being linked to create a |
18050 | # shared library. |
18051 | postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18052 | |
18053 | # Dependencies to place before the objects being linked to create a |
18054 | # shared library. |
18055 | predeps=$lt_predeps_GCJ |
18056 | |
18057 | # Dependencies to place after the objects being linked to create a |
18058 | # shared library. |
18059 | postdeps=$lt_postdeps_GCJ |
18060 | |
18061 | # The library search path used internally by the compiler when linking |
18062 | # a shared library. |
18063 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18064 | |
18065 | # Method to check whether dependent libraries are shared objects. |
18066 | deplibs_check_method=$lt_deplibs_check_method |
18067 | |
18068 | # Command to use when deplibs_check_method == file_magic. |
18069 | file_magic_cmd=$lt_file_magic_cmd |
18070 | |
18071 | # Flag that allows shared libraries with undefined symbols to be built. |
18072 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18073 | |
18074 | # Flag that forces no undefined symbols. |
18075 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18076 | |
18077 | # Commands used to finish a libtool library installation in a directory. |
18078 | finish_cmds=$lt_finish_cmds |
18079 | |
18080 | # Same as above, but a single script fragment to be evaled but not shown. |
18081 | finish_eval=$lt_finish_eval |
18082 | |
18083 | # Take the output of nm and produce a listing of raw symbols and C names. |
18084 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18085 | |
18086 | # Transform the output of nm in a proper C declaration |
18087 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18088 | |
18089 | # Transform the output of nm in a C name address pair |
18090 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18091 | |
18092 | # This is the shared library runtime path variable. |
18093 | runpath_var=$runpath_var |
18094 | |
18095 | # This is the shared library path variable. |
18096 | shlibpath_var=$shlibpath_var |
18097 | |
18098 | # Is shlibpath searched before the hard-coded library search path? |
18099 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18100 | |
18101 | # How to hardcode a shared library path into an executable. |
18102 | hardcode_action=$hardcode_action_GCJ |
18103 | |
18104 | # Whether we should hardcode library paths into libraries. |
18105 | hardcode_into_libs=$hardcode_into_libs |
18106 | |
18107 | # Flag to hardcode \$libdir into a binary during linking. |
18108 | # This must work even if \$libdir does not exist. |
18109 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18110 | |
18111 | # If ld is used when linking, flag to hardcode \$libdir into |
18112 | # a binary during linking. This must work even if \$libdir does |
18113 | # not exist. |
18114 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18115 | |
18116 | # Whether we need a single -rpath flag with a separated argument. |
18117 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18118 | |
18119 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18120 | # resulting binary. |
18121 | hardcode_direct=$hardcode_direct_GCJ |
18122 | |
18123 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18124 | # resulting binary. |
18125 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18126 | |
18127 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18128 | # the resulting binary. |
18129 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18130 | |
18131 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18132 | # and all subsequent libraries and executables linked against it. |
18133 | hardcode_automatic=$hardcode_automatic_GCJ |
18134 | |
18135 | # Variables whose values should be saved in libtool wrapper scripts and |
18136 | # restored at relink time. |
18137 | variables_saved_for_relink="$variables_saved_for_relink" |
18138 | |
18139 | # Whether libtool must link a program against all its dependency libraries. |
18140 | link_all_deplibs=$link_all_deplibs_GCJ |
18141 | |
18142 | # Compile-time system search path for libraries |
18143 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18144 | |
18145 | # Run-time system search path for libraries |
18146 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18147 | |
18148 | # Fix the shell variable \$srcfile for the compiler. |
18149 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18150 | |
18151 | # Set to yes if exported symbols are required. |
18152 | always_export_symbols=$always_export_symbols_GCJ |
18153 | |
18154 | # The commands to list exported symbols. |
18155 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18156 | |
18157 | # The commands to extract the exported symbol list from a shared archive. |
18158 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18159 | |
18160 | # Symbols that should not be listed in the preloaded symbols. |
18161 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18162 | |
18163 | # Symbols that must always be exported. |
18164 | include_expsyms=$lt_include_expsyms_GCJ |
18165 | |
18166 | # ### END LIBTOOL TAG CONFIG: $tagname |
18167 | |
18168 | __EOF__ |
18169 | |
18170 | |
18171 | else |
18172 | # If there is no Makefile yet, we rely on a make rule to execute |
18173 | # `config.status --recheck' to rerun these tests and create the |
18174 | # libtool script then. |
18175 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18176 | if test -f "$ltmain_in"; then |
18177 | test -f Makefile && make "$ltmain" |
18178 | fi |
18179 | fi |
18180 | |
18181 | |
18182 | ac_ext=c |
18183 | ac_cpp='$CPP $CPPFLAGS' |
18184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18187 | |
18188 | CC="$lt_save_CC" |
18189 | |
18190 | else |
18191 | tagname="" |
18192 | fi |
18193 | ;; |
18194 | |
18195 | RC) |
18196 | |
18197 | |
18198 | |
18199 | # Source file extension for RC test sources. |
18200 | ac_ext=rc |
18201 | |
18202 | # Object file extension for compiled RC test sources. |
18203 | objext=o |
18204 | objext_RC=$objext |
18205 | |
18206 | # Code to be used in simple compile tests |
18207 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18208 | |
18209 | # Code to be used in simple link tests |
18210 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18211 | |
18212 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18213 | |
18214 | # If no C compiler was specified, use CC. |
18215 | LTCC=${LTCC-"$CC"} |
18216 | |
18217 | # If no C compiler flags were specified, use CFLAGS. |
18218 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18219 | |
18220 | # Allow CC to be a program name with arguments. |
18221 | compiler=$CC |
18222 | |
18223 | |
18224 | # save warnings/boilerplate of simple test code |
18225 | ac_outfile=conftest.$ac_objext |
18226 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18227 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18228 | _lt_compiler_boilerplate=`cat conftest.err` |
18229 | $rm conftest* |
18230 | |
18231 | ac_outfile=conftest.$ac_objext |
18232 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18233 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18234 | _lt_linker_boilerplate=`cat conftest.err` |
18235 | $rm conftest* |
18236 | |
18237 | |
18238 | # Allow CC to be a program name with arguments. |
18239 | lt_save_CC="$CC" |
18240 | CC=${RC-"windres"} |
18241 | compiler=$CC |
18242 | compiler_RC=$CC |
18243 | for cc_temp in $compiler""; do |
18244 | case $cc_temp in |
18245 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18246 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18247 | \-*) ;; |
18248 | *) break;; |
18249 | esac |
18250 | done |
18251 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18252 | |
18253 | lt_cv_prog_compiler_c_o_RC=yes |
18254 | |
18255 | # The else clause should only fire when bootstrapping the |
18256 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18257 | # with your package, and you will get complaints that there are |
18258 | # no rules to generate ltmain.sh. |
18259 | if test -f "$ltmain"; then |
18260 | # See if we are running on zsh, and set the options which allow our commands through |
18261 | # without removal of \ escapes. |
18262 | if test -n "${ZSH_VERSION+set}" ; then |
18263 | setopt NO_GLOB_SUBST |
18264 | fi |
18265 | # Now quote all the things that may contain metacharacters while being |
18266 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18267 | # variables and quote the copies for generation of the libtool script. |
18268 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18269 | SED SHELL STRIP \ |
18270 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18271 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18272 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18273 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18274 | lt_cv_sys_global_symbol_to_c_name_address \ |
18275 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18276 | old_postinstall_cmds old_postuninstall_cmds \ |
18277 | compiler_RC \ |
18278 | CC_RC \ |
18279 | LD_RC \ |
18280 | lt_prog_compiler_wl_RC \ |
18281 | lt_prog_compiler_pic_RC \ |
18282 | lt_prog_compiler_static_RC \ |
18283 | lt_prog_compiler_no_builtin_flag_RC \ |
18284 | export_dynamic_flag_spec_RC \ |
18285 | thread_safe_flag_spec_RC \ |
18286 | whole_archive_flag_spec_RC \ |
18287 | enable_shared_with_static_runtimes_RC \ |
18288 | old_archive_cmds_RC \ |
18289 | old_archive_from_new_cmds_RC \ |
18290 | predep_objects_RC \ |
18291 | postdep_objects_RC \ |
18292 | predeps_RC \ |
18293 | postdeps_RC \ |
18294 | compiler_lib_search_path_RC \ |
18295 | archive_cmds_RC \ |
18296 | archive_expsym_cmds_RC \ |
18297 | postinstall_cmds_RC \ |
18298 | postuninstall_cmds_RC \ |
18299 | old_archive_from_expsyms_cmds_RC \ |
18300 | allow_undefined_flag_RC \ |
18301 | no_undefined_flag_RC \ |
18302 | export_symbols_cmds_RC \ |
18303 | hardcode_libdir_flag_spec_RC \ |
18304 | hardcode_libdir_flag_spec_ld_RC \ |
18305 | hardcode_libdir_separator_RC \ |
18306 | hardcode_automatic_RC \ |
18307 | module_cmds_RC \ |
18308 | module_expsym_cmds_RC \ |
18309 | lt_cv_prog_compiler_c_o_RC \ |
18310 | exclude_expsyms_RC \ |
18311 | include_expsyms_RC; do |
18312 | |
18313 | case $var in |
18314 | old_archive_cmds_RC | \ |
18315 | old_archive_from_new_cmds_RC | \ |
18316 | archive_cmds_RC | \ |
18317 | archive_expsym_cmds_RC | \ |
18318 | module_cmds_RC | \ |
18319 | module_expsym_cmds_RC | \ |
18320 | old_archive_from_expsyms_cmds_RC | \ |
18321 | export_symbols_cmds_RC | \ |
18322 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18323 | postinstall_cmds | postuninstall_cmds | \ |
18324 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18325 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18326 | # Double-quote double-evaled strings. |
18327 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18328 | ;; |
18329 | *) |
18330 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18331 | ;; |
18332 | esac |
18333 | done |
18334 | |
18335 | case $lt_echo in |
18336 | *'\$0 --fallback-echo"') |
18337 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18338 | ;; |
18339 | esac |
18340 | |
18341 | cfgfile="$ofile" |
18342 | |
18343 | cat <<__EOF__ >> "$cfgfile" |
18344 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18345 | |
18346 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18347 | |
18348 | # Shell to use when invoking shell scripts. |
18349 | SHELL=$lt_SHELL |
18350 | |
18351 | # Whether or not to build shared libraries. |
18352 | build_libtool_libs=$enable_shared |
18353 | |
18354 | # Whether or not to build static libraries. |
18355 | build_old_libs=$enable_static |
18356 | |
18357 | # Whether or not to add -lc for building shared libraries. |
18358 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18359 | |
18360 | # Whether or not to disallow shared libs when runtime libs are static |
18361 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18362 | |
18363 | # Whether or not to optimize for fast installation. |
18364 | fast_install=$enable_fast_install |
18365 | |
18366 | # The host system. |
18367 | host_alias=$host_alias |
18368 | host=$host |
18369 | host_os=$host_os |
18370 | |
18371 | # The build system. |
18372 | build_alias=$build_alias |
18373 | build=$build |
18374 | build_os=$build_os |
18375 | |
18376 | # An echo program that does not interpret backslashes. |
18377 | echo=$lt_echo |
18378 | |
18379 | # The archiver. |
18380 | AR=$lt_AR |
18381 | AR_FLAGS=$lt_AR_FLAGS |
18382 | |
18383 | # A C compiler. |
18384 | LTCC=$lt_LTCC |
18385 | |
18386 | # LTCC compiler flags. |
18387 | LTCFLAGS=$lt_LTCFLAGS |
18388 | |
18389 | # A language-specific compiler. |
18390 | CC=$lt_compiler_RC |
18391 | |
18392 | # Is the compiler the GNU C compiler? |
18393 | with_gcc=$GCC_RC |
18394 | |
18395 | gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` |
18396 | gcc_ver=\`gcc -dumpversion\` |
18397 | |
18398 | # An ERE matcher. |
18399 | EGREP=$lt_EGREP |
18400 | |
18401 | # The linker used to build libraries. |
18402 | LD=$lt_LD_RC |
18403 | |
18404 | # Whether we need hard or soft links. |
18405 | LN_S=$lt_LN_S |
18406 | |
18407 | # A BSD-compatible nm program. |
18408 | NM=$lt_NM |
18409 | |
18410 | # A symbol stripping program |
18411 | STRIP=$lt_STRIP |
18412 | |
18413 | # Used to examine libraries when file_magic_cmd begins "file" |
18414 | MAGIC_CMD=$MAGIC_CMD |
18415 | |
18416 | # Used on cygwin: DLL creation program. |
18417 | DLLTOOL="$DLLTOOL" |
18418 | |
18419 | # Used on cygwin: object dumper. |
18420 | OBJDUMP="$OBJDUMP" |
18421 | |
18422 | # Used on cygwin: assembler. |
18423 | AS="$AS" |
18424 | |
18425 | # The name of the directory that contains temporary libtool files. |
18426 | objdir=$objdir |
18427 | |
18428 | # How to create reloadable object files. |
18429 | reload_flag=$lt_reload_flag |
18430 | reload_cmds=$lt_reload_cmds |
18431 | |
18432 | # How to pass a linker flag through the compiler. |
18433 | wl=$lt_lt_prog_compiler_wl_RC |
18434 | |
18435 | # Object file suffix (normally "o"). |
18436 | objext="$ac_objext" |
18437 | |
18438 | # Old archive suffix (normally "a"). |
18439 | libext="$libext" |
18440 | |
18441 | # Shared library suffix (normally ".so"). |
18442 | shrext_cmds='$shrext_cmds' |
18443 | |
18444 | # Executable file suffix (normally ""). |
18445 | exeext="$exeext" |
18446 | |
18447 | # Additional compiler flags for building library objects. |
18448 | pic_flag=$lt_lt_prog_compiler_pic_RC |
18449 | pic_mode=$pic_mode |
18450 | |
18451 | # What is the maximum length of a command? |
18452 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18453 | |
18454 | # Does compiler simultaneously support -c and -o options? |
18455 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
18456 | |
18457 | # Must we lock files when doing compilation? |
18458 | need_locks=$lt_need_locks |
18459 | |
18460 | # Do we need the lib prefix for modules? |
18461 | need_lib_prefix=$need_lib_prefix |
18462 | |
18463 | # Do we need a version for libraries? |
18464 | need_version=$need_version |
18465 | |
18466 | # Whether dlopen is supported. |
18467 | dlopen_support=$enable_dlopen |
18468 | |
18469 | # Whether dlopen of programs is supported. |
18470 | dlopen_self=$enable_dlopen_self |
18471 | |
18472 | # Whether dlopen of statically linked programs is supported. |
18473 | dlopen_self_static=$enable_dlopen_self_static |
18474 | |
18475 | # Compiler flag to prevent dynamic linking. |
18476 | link_static_flag=$lt_lt_prog_compiler_static_RC |
18477 | |
18478 | # Compiler flag to turn off builtin functions. |
18479 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
18480 | |
18481 | # Compiler flag to allow reflexive dlopens. |
18482 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
18483 | |
18484 | # Compiler flag to generate shared objects directly from archives. |
18485 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
18486 | |
18487 | # Compiler flag to generate thread-safe objects. |
18488 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
18489 | |
18490 | # Library versioning type. |
18491 | version_type=$version_type |
18492 | |
18493 | # Format of library name prefix. |
18494 | libname_spec=$lt_libname_spec |
18495 | |
18496 | # List of archive names. First name is the real one, the rest are links. |
18497 | # The last name is the one that the linker finds with -lNAME. |
18498 | library_names_spec=$lt_library_names_spec |
18499 | |
18500 | # The coded name of the library, if different from the real name. |
18501 | soname_spec=$lt_soname_spec |
18502 | |
18503 | # Commands used to build and install an old-style archive. |
18504 | RANLIB=$lt_RANLIB |
18505 | old_archive_cmds=$lt_old_archive_cmds_RC |
18506 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18507 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18508 | |
18509 | # Create an old-style archive from a shared archive. |
18510 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
18511 | |
18512 | # Create a temporary old-style archive to link instead of a shared archive. |
18513 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
18514 | |
18515 | # Commands used to build and install a shared archive. |
18516 | archive_cmds=$lt_archive_cmds_RC |
18517 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
18518 | postinstall_cmds=$lt_postinstall_cmds |
18519 | postuninstall_cmds=$lt_postuninstall_cmds |
18520 | |
18521 | # Commands used to build a loadable module (assumed same as above if empty) |
18522 | module_cmds=$lt_module_cmds_RC |
18523 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
18524 | |
18525 | # Commands to strip libraries. |
18526 | old_striplib=$lt_old_striplib |
18527 | striplib=$lt_striplib |
18528 | |
18529 | # Dependencies to place before the objects being linked to create a |
18530 | # shared library. |
18531 | predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18532 | |
18533 | # Dependencies to place after the objects being linked to create a |
18534 | # shared library. |
18535 | postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18536 | |
18537 | # Dependencies to place before the objects being linked to create a |
18538 | # shared library. |
18539 | predeps=$lt_predeps_RC |
18540 | |
18541 | # Dependencies to place after the objects being linked to create a |
18542 | # shared library. |
18543 | postdeps=$lt_postdeps_RC |
18544 | |
18545 | # The library search path used internally by the compiler when linking |
18546 | # a shared library. |
18547 | compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18548 | |
18549 | # Method to check whether dependent libraries are shared objects. |
18550 | deplibs_check_method=$lt_deplibs_check_method |
18551 | |
18552 | # Command to use when deplibs_check_method == file_magic. |
18553 | file_magic_cmd=$lt_file_magic_cmd |
18554 | |
18555 | # Flag that allows shared libraries with undefined symbols to be built. |
18556 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
18557 | |
18558 | # Flag that forces no undefined symbols. |
18559 | no_undefined_flag=$lt_no_undefined_flag_RC |
18560 | |
18561 | # Commands used to finish a libtool library installation in a directory. |
18562 | finish_cmds=$lt_finish_cmds |
18563 | |
18564 | # Same as above, but a single script fragment to be evaled but not shown. |
18565 | finish_eval=$lt_finish_eval |
18566 | |
18567 | # Take the output of nm and produce a listing of raw symbols and C names. |
18568 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18569 | |
18570 | # Transform the output of nm in a proper C declaration |
18571 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18572 | |
18573 | # Transform the output of nm in a C name address pair |
18574 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18575 | |
18576 | # This is the shared library runtime path variable. |
18577 | runpath_var=$runpath_var |
18578 | |
18579 | # This is the shared library path variable. |
18580 | shlibpath_var=$shlibpath_var |
18581 | |
18582 | # Is shlibpath searched before the hard-coded library search path? |
18583 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18584 | |
18585 | # How to hardcode a shared library path into an executable. |
18586 | hardcode_action=$hardcode_action_RC |
18587 | |
18588 | # Whether we should hardcode library paths into libraries. |
18589 | hardcode_into_libs=$hardcode_into_libs |
18590 | |
18591 | # Flag to hardcode \$libdir into a binary during linking. |
18592 | # This must work even if \$libdir does not exist. |
18593 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
18594 | |
18595 | # If ld is used when linking, flag to hardcode \$libdir into |
18596 | # a binary during linking. This must work even if \$libdir does |
18597 | # not exist. |
18598 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
18599 | |
18600 | # Whether we need a single -rpath flag with a separated argument. |
18601 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
18602 | |
18603 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18604 | # resulting binary. |
18605 | hardcode_direct=$hardcode_direct_RC |
18606 | |
18607 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18608 | # resulting binary. |
18609 | hardcode_minus_L=$hardcode_minus_L_RC |
18610 | |
18611 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18612 | # the resulting binary. |
18613 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
18614 | |
18615 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18616 | # and all subsequent libraries and executables linked against it. |
18617 | hardcode_automatic=$hardcode_automatic_RC |
18618 | |
18619 | # Variables whose values should be saved in libtool wrapper scripts and |
18620 | # restored at relink time. |
18621 | variables_saved_for_relink="$variables_saved_for_relink" |
18622 | |
18623 | # Whether libtool must link a program against all its dependency libraries. |
18624 | link_all_deplibs=$link_all_deplibs_RC |
18625 | |
18626 | # Compile-time system search path for libraries |
18627 | sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` |
18628 | |
18629 | # Run-time system search path for libraries |
18630 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18631 | |
18632 | # Fix the shell variable \$srcfile for the compiler. |
18633 | fix_srcfile_path="$fix_srcfile_path_RC" |
18634 | |
18635 | # Set to yes if exported symbols are required. |
18636 | always_export_symbols=$always_export_symbols_RC |
18637 | |
18638 | # The commands to list exported symbols. |
18639 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
18640 | |
18641 | # The commands to extract the exported symbol list from a shared archive. |
18642 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18643 | |
18644 | # Symbols that should not be listed in the preloaded symbols. |
18645 | exclude_expsyms=$lt_exclude_expsyms_RC |
18646 | |
18647 | # Symbols that must always be exported. |
18648 | include_expsyms=$lt_include_expsyms_RC |
18649 | |
18650 | # ### END LIBTOOL TAG CONFIG: $tagname |
18651 | |
18652 | __EOF__ |
18653 | |
18654 | |
18655 | else |
18656 | # If there is no Makefile yet, we rely on a make rule to execute |
18657 | # `config.status --recheck' to rerun these tests and create the |
18658 | # libtool script then. |
18659 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18660 | if test -f "$ltmain_in"; then |
18661 | test -f Makefile && make "$ltmain" |
18662 | fi |
18663 | fi |
18664 | |
18665 | |
18666 | ac_ext=c |
18667 | ac_cpp='$CPP $CPPFLAGS' |
18668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18671 | |
18672 | CC="$lt_save_CC" |
18673 | |
18674 | ;; |
18675 | |
18676 | *) |
18677 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
18678 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
18679 | { (exit 1); exit 1; }; } |
18680 | ;; |
18681 | esac |
18682 | |
18683 | # Append the new tag name to the list of available tags. |
18684 | if test -n "$tagname" ; then |
18685 | available_tags="$available_tags $tagname" |
18686 | fi |
18687 | fi |
18688 | done |
18689 | IFS="$lt_save_ifs" |
18690 | |
18691 | # Now substitute the updated list of available tags. |
18692 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
18693 | mv "${ofile}T" "$ofile" |
18694 | chmod +x "$ofile" |
18695 | else |
18696 | rm -f "${ofile}T" |
18697 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
18698 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
18699 | { (exit 1); exit 1; }; } |
18700 | fi |
18701 | fi |
18702 | |
18703 | |
18704 | |
18705 | # This can be used to rebuild libtool when needed |
18706 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
18707 | |
18708 | # Always use our own libtool. |
18709 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
18710 | |
18711 | # Prevent multiple expansion |
18712 | |
18713 | |
18714 | |
18715 | |
18716 | |
18717 | |
18718 | |
18719 | |
18720 | |
18721 | |
18722 | |
18723 | |
18724 | |
18725 | |
18726 | |
18727 | |
18728 | |
18729 | |
18730 | |
18731 | |
18732 | |
18733 | if test "$GCC" = yes |
18734 | then |
18735 | CFLAGS="-Wall $CFLAGS" |
18736 | fi |
18737 | |
18738 | CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.." |
18739 | |
18740 | |
18741 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
18742 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
18743 | if test "${ac_cv_header_stdc+set}" = set; then |
18744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18745 | else |
18746 | cat >conftest.$ac_ext <<_ACEOF |
18747 | /* confdefs.h. */ |
18748 | _ACEOF |
18749 | cat confdefs.h >>conftest.$ac_ext |
18750 | cat >>conftest.$ac_ext <<_ACEOF |
18751 | /* end confdefs.h. */ |
18752 | #include <stdlib.h> |
18753 | #include <stdarg.h> |
18754 | #include <string.h> |
18755 | #include <float.h> |
18756 | |
18757 | int |
18758 | main () |
18759 | { |
18760 | |
18761 | ; |
18762 | return 0; |
18763 | } |
18764 | _ACEOF |
18765 | rm -f conftest.$ac_objext |
18766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18767 | (eval $ac_compile) 2>conftest.er1 |
18768 | ac_status=$? |
18769 | grep -v '^ *+' conftest.er1 >conftest.err |
18770 | rm -f conftest.er1 |
18771 | cat conftest.err >&5 |
18772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18773 | (exit $ac_status); } && |
18774 | { ac_try='test -z "$ac_c_werror_flag" |
18775 | || test ! -s conftest.err' |
18776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18777 | (eval $ac_try) 2>&5 |
18778 | ac_status=$? |
18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18780 | (exit $ac_status); }; } && |
18781 | { ac_try='test -s conftest.$ac_objext' |
18782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18783 | (eval $ac_try) 2>&5 |
18784 | ac_status=$? |
18785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18786 | (exit $ac_status); }; }; then |
18787 | ac_cv_header_stdc=yes |
18788 | else |
18789 | echo "$as_me: failed program was:" >&5 |
18790 | sed 's/^/| /' conftest.$ac_ext >&5 |
18791 | |
18792 | ac_cv_header_stdc=no |
18793 | fi |
18794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18795 | |
18796 | if test $ac_cv_header_stdc = yes; then |
18797 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
18798 | cat >conftest.$ac_ext <<_ACEOF |
18799 | /* confdefs.h. */ |
18800 | _ACEOF |
18801 | cat confdefs.h >>conftest.$ac_ext |
18802 | cat >>conftest.$ac_ext <<_ACEOF |
18803 | /* end confdefs.h. */ |
18804 | #include <string.h> |
18805 | |
18806 | _ACEOF |
18807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18808 | $EGREP "memchr" >/dev/null 2>&1; then |
18809 | : |
18810 | else |
18811 | ac_cv_header_stdc=no |
18812 | fi |
18813 | rm -f conftest* |
18814 | |
18815 | fi |
18816 | |
18817 | if test $ac_cv_header_stdc = yes; then |
18818 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
18819 | cat >conftest.$ac_ext <<_ACEOF |
18820 | /* confdefs.h. */ |
18821 | _ACEOF |
18822 | cat confdefs.h >>conftest.$ac_ext |
18823 | cat >>conftest.$ac_ext <<_ACEOF |
18824 | /* end confdefs.h. */ |
18825 | #include <stdlib.h> |
18826 | |
18827 | _ACEOF |
18828 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18829 | $EGREP "free" >/dev/null 2>&1; then |
18830 | : |
18831 | else |
18832 | ac_cv_header_stdc=no |
18833 | fi |
18834 | rm -f conftest* |
18835 | |
18836 | fi |
18837 | |
18838 | if test $ac_cv_header_stdc = yes; then |
18839 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
18840 | if test "$cross_compiling" = yes; then |
18841 | : |
18842 | else |
18843 | cat >conftest.$ac_ext <<_ACEOF |
18844 | /* confdefs.h. */ |
18845 | _ACEOF |
18846 | cat confdefs.h >>conftest.$ac_ext |
18847 | cat >>conftest.$ac_ext <<_ACEOF |
18848 | /* end confdefs.h. */ |
18849 | #include <ctype.h> |
18850 | #if ((' ' & 0x0FF) == 0x020) |
18851 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
18852 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
18853 | #else |
18854 | # define ISLOWER(c) \ |
18855 | (('a' <= (c) && (c) <= 'i') \ |
18856 | || ('j' <= (c) && (c) <= 'r') \ |
18857 | || ('s' <= (c) && (c) <= 'z')) |
18858 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
18859 | #endif |
18860 | |
18861 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
18862 | int |
18863 | main () |
18864 | { |
18865 | int i; |
18866 | for (i = 0; i < 256; i++) |
18867 | if (XOR (islower (i), ISLOWER (i)) |
18868 | || toupper (i) != TOUPPER (i)) |
18869 | exit(2); |
18870 | exit (0); |
18871 | } |
18872 | _ACEOF |
18873 | rm -f conftest$ac_exeext |
18874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18875 | (eval $ac_link) 2>&5 |
18876 | ac_status=$? |
18877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18878 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
18879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18880 | (eval $ac_try) 2>&5 |
18881 | ac_status=$? |
18882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18883 | (exit $ac_status); }; }; then |
18884 | : |
18885 | else |
18886 | echo "$as_me: program exited with status $ac_status" >&5 |
18887 | echo "$as_me: failed program was:" >&5 |
18888 | sed 's/^/| /' conftest.$ac_ext >&5 |
18889 | |
18890 | ( exit $ac_status ) |
18891 | ac_cv_header_stdc=no |
18892 | fi |
18893 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
18894 | fi |
18895 | fi |
18896 | fi |
18897 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
18898 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
18899 | if test $ac_cv_header_stdc = yes; then |
18900 | |
18901 | cat >>confdefs.h <<\_ACEOF |
18902 | #define STDC_HEADERS 1 |
18903 | _ACEOF |
18904 | |
18905 | fi |
18906 | |
18907 | |
18908 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
18909 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
18910 | if test "${ac_cv_c_const+set}" = set; then |
18911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18912 | else |
18913 | cat >conftest.$ac_ext <<_ACEOF |
18914 | /* confdefs.h. */ |
18915 | _ACEOF |
18916 | cat confdefs.h >>conftest.$ac_ext |
18917 | cat >>conftest.$ac_ext <<_ACEOF |
18918 | /* end confdefs.h. */ |
18919 | |
18920 | int |
18921 | main () |
18922 | { |
18923 | /* FIXME: Include the comments suggested by Paul. */ |
18924 | #ifndef __cplusplus |
18925 | /* Ultrix mips cc rejects this. */ |
18926 | typedef int charset[2]; |
18927 | const charset x; |
18928 | /* SunOS 4.1.1 cc rejects this. */ |
18929 | char const *const *ccp; |
18930 | char **p; |
18931 | /* NEC SVR4.0.2 mips cc rejects this. */ |
18932 | struct point {int x, y;}; |
18933 | static struct point const zero = {0,0}; |
18934 | /* AIX XL C 1.02.0.0 rejects this. |
18935 | It does not let you subtract one const X* pointer from another in |
18936 | an arm of an if-expression whose if-part is not a constant |
18937 | expression */ |
18938 | const char *g = "string"; |
18939 | ccp = &g + (g ? g-g : 0); |
18940 | /* HPUX 7.0 cc rejects these. */ |
18941 | ++ccp; |
18942 | p = (char**) ccp; |
18943 | ccp = (char const *const *) p; |
18944 | { /* SCO 3.2v4 cc rejects this. */ |
18945 | char *t; |
18946 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
18947 | |
18948 | *t++ = 0; |
18949 | } |
18950 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
18951 | int x[] = {25, 17}; |
18952 | const int *foo = &x[0]; |
18953 | ++foo; |
18954 | } |
18955 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
18956 | typedef const int *iptr; |
18957 | iptr p = 0; |
18958 | ++p; |
18959 | } |
18960 | { /* AIX XL C 1.02.0.0 rejects this saying |
18961 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
18962 | struct s { int j; const int *ap[3]; }; |
18963 | struct s *b; b->j = 5; |
18964 | } |
18965 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
18966 | const int foo = 10; |
18967 | } |
18968 | #endif |
18969 | |
18970 | ; |
18971 | return 0; |
18972 | } |
18973 | _ACEOF |
18974 | rm -f conftest.$ac_objext |
18975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18976 | (eval $ac_compile) 2>conftest.er1 |
18977 | ac_status=$? |
18978 | grep -v '^ *+' conftest.er1 >conftest.err |
18979 | rm -f conftest.er1 |
18980 | cat conftest.err >&5 |
18981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18982 | (exit $ac_status); } && |
18983 | { ac_try='test -z "$ac_c_werror_flag" |
18984 | || test ! -s conftest.err' |
18985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18986 | (eval $ac_try) 2>&5 |
18987 | ac_status=$? |
18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18989 | (exit $ac_status); }; } && |
18990 | { ac_try='test -s conftest.$ac_objext' |
18991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18992 | (eval $ac_try) 2>&5 |
18993 | ac_status=$? |
18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18995 | (exit $ac_status); }; }; then |
18996 | ac_cv_c_const=yes |
18997 | else |
18998 | echo "$as_me: failed program was:" >&5 |
18999 | sed 's/^/| /' conftest.$ac_ext >&5 |
19000 | |
19001 | ac_cv_c_const=no |
19002 | fi |
19003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19004 | fi |
19005 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19006 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
19007 | if test $ac_cv_c_const = no; then |
19008 | |
19009 | cat >>confdefs.h <<\_ACEOF |
19010 | #define const |
19011 | _ACEOF |
19012 | |
19013 | fi |
19014 | |
19015 | echo "$as_me:$LINENO: checking for size_t" >&5 |
19016 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
19017 | if test "${ac_cv_type_size_t+set}" = set; then |
19018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19019 | else |
19020 | cat >conftest.$ac_ext <<_ACEOF |
19021 | /* confdefs.h. */ |
19022 | _ACEOF |
19023 | cat confdefs.h >>conftest.$ac_ext |
19024 | cat >>conftest.$ac_ext <<_ACEOF |
19025 | /* end confdefs.h. */ |
19026 | $ac_includes_default |
19027 | int |
19028 | main () |
19029 | { |
19030 | if ((size_t *) 0) |
19031 | return 0; |
19032 | if (sizeof (size_t)) |
19033 | return 0; |
19034 | ; |
19035 | return 0; |
19036 | } |
19037 | _ACEOF |
19038 | rm -f conftest.$ac_objext |
19039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
19040 | (eval $ac_compile) 2>conftest.er1 |
19041 | ac_status=$? |
19042 | grep -v '^ *+' conftest.er1 >conftest.err |
19043 | rm -f conftest.er1 |
19044 | cat conftest.err >&5 |
19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19046 | (exit $ac_status); } && |
19047 | { ac_try='test -z "$ac_c_werror_flag" |
19048 | || test ! -s conftest.err' |
19049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19050 | (eval $ac_try) 2>&5 |
19051 | ac_status=$? |
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19053 | (exit $ac_status); }; } && |
19054 | { ac_try='test -s conftest.$ac_objext' |
19055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19056 | (eval $ac_try) 2>&5 |
19057 | ac_status=$? |
19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19059 | (exit $ac_status); }; }; then |
19060 | ac_cv_type_size_t=yes |
19061 | else |
19062 | echo "$as_me: failed program was:" >&5 |
19063 | sed 's/^/| /' conftest.$ac_ext >&5 |
19064 | |
19065 | ac_cv_type_size_t=no |
19066 | fi |
19067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19068 | fi |
19069 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
19070 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
19071 | if test $ac_cv_type_size_t = yes; then |
19072 | : |
19073 | else |
19074 | |
19075 | cat >>confdefs.h <<_ACEOF |
19076 | #define size_t unsigned |
19077 | _ACEOF |
19078 | |
19079 | fi |
19080 | |
19081 | |
19082 | |
19083 | |
19084 | TESTPROGS="" |
19085 | |
19086 | hmac_list="" |
19087 | |
19088 | hashlibs="" |
19089 | if test -d ${srcdir}/../md5 |
19090 | then |
19091 | TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}" |
19092 | hmac_list="$hmac_list &hmac_md5," |
19093 | hashlibs="$hashlibs ../md5/libmd5.la" |
19094 | fi |
19095 | |
19096 | if test -d ${srcdir}/../sha1 |
19097 | then |
19098 | TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}" |
19099 | hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, " |
19100 | hashlibs="$hashlibs ../sha1/libsha1.la" |
19101 | fi |
19102 | |
19103 | |
19104 | hmac_list="$hmac_list 0" |
19105 | |
19106 | |
19107 | |
19108 | cat >>confdefs.h <<_ACEOF |
19109 | #define HMAC_LIST $hmac_list |
19110 | _ACEOF |
19111 | |
19112 | |
19113 | ac_config_files="$ac_config_files Makefile" |
19114 | cat >confcache <<\_ACEOF |
19115 | # This file is a shell script that caches the results of configure |
19116 | # tests run on this system so they can be shared between configure |
19117 | # scripts and configure runs, see configure's option --config-cache. |
19118 | # It is not useful on other systems. If it contains results you don't |
19119 | # want to keep, you may remove or edit it. |
19120 | # |
19121 | # config.status only pays attention to the cache file if you give it |
19122 | # the --recheck option to rerun configure. |
19123 | # |
19124 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19125 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19126 | # following values. |
19127 | |
19128 | _ACEOF |
19129 | |
19130 | # The following way of writing the cache mishandles newlines in values, |
19131 | # but we know of no workaround that is simple, portable, and efficient. |
19132 | # So, don't put newlines in cache variables' values. |
19133 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19134 | # and sets the high bit in the cache file unless we assign to the vars. |
19135 | { |
19136 | (set) 2>&1 | |
19137 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
19138 | *ac_space=\ *) |
19139 | # `set' does not quote correctly, so add quotes (double-quote |
19140 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19141 | sed -n \ |
19142 | "s/'/'\\\\''/g; |
19143 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
19144 | ;; |
19145 | *) |
19146 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
19147 | sed -n \ |
19148 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
19149 | ;; |
19150 | esac; |
19151 | } | |
19152 | sed ' |
19153 | t clear |
19154 | : clear |
19155 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19156 | t end |
19157 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19158 | : end' >>confcache |
19159 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
19160 | if test -w $cache_file; then |
19161 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19162 | cat confcache >$cache_file |
19163 | else |
19164 | echo "not updating unwritable cache $cache_file" |
19165 | fi |
19166 | fi |
19167 | rm -f confcache |
19168 | |
19169 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19170 | # Let make expand exec_prefix. |
19171 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19172 | |
19173 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19174 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
19175 | # trailing colons and then remove the whole line if VPATH becomes empty |
19176 | # (actually we leave an empty line to preserve line numbers). |
19177 | if test "x$srcdir" = x.; then |
19178 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
19179 | s/:*\$(srcdir):*/:/; |
19180 | s/:*\${srcdir}:*/:/; |
19181 | s/:*@srcdir@:*/:/; |
19182 | s/^\([^=]*=[ ]*\):*/\1/; |
19183 | s/:*$//; |
19184 | s/^[^=]*=[ ]*$//; |
19185 | }' |
19186 | fi |
19187 | |
19188 | DEFS=-DHAVE_CONFIG_H |
19189 | |
19190 | ac_libobjs= |
19191 | ac_ltlibobjs= |
19192 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19193 | # 1. Remove the extension, and $U if already installed. |
19194 | ac_i=`echo "$ac_i" | |
19195 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
19196 | # 2. Add them. |
19197 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
19198 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
19199 | done |
19200 | LIBOBJS=$ac_libobjs |
19201 | |
19202 | LTLIBOBJS=$ac_ltlibobjs |
19203 | |
19204 | |
19205 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19206 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19207 | Usually this means the macro was only invoked conditionally." >&5 |
19208 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19209 | Usually this means the macro was only invoked conditionally." >&2;} |
19210 | { (exit 1); exit 1; }; } |
19211 | fi |
19212 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19213 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19214 | Usually this means the macro was only invoked conditionally." >&5 |
19215 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19216 | Usually this means the macro was only invoked conditionally." >&2;} |
19217 | { (exit 1); exit 1; }; } |
19218 | fi |
19219 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19220 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19221 | Usually this means the macro was only invoked conditionally." >&5 |
19222 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19223 | Usually this means the macro was only invoked conditionally." >&2;} |
19224 | { (exit 1); exit 1; }; } |
19225 | fi |
19226 | |
19227 | : ${CONFIG_STATUS=./config.status} |
19228 | ac_clean_files_save=$ac_clean_files |
19229 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19230 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19231 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19232 | cat >$CONFIG_STATUS <<_ACEOF |
19233 | #! $SHELL |
19234 | # Generated by $as_me. |
19235 | # Run this file to recreate the current configuration. |
19236 | # Compiler output produced by configure, useful for debugging |
19237 | # configure, is in config.log if it exists. |
19238 | |
19239 | debug=false |
19240 | ac_cs_recheck=false |
19241 | ac_cs_silent=false |
19242 | SHELL=\${CONFIG_SHELL-$SHELL} |
19243 | _ACEOF |
19244 | |
19245 | cat >>$CONFIG_STATUS <<\_ACEOF |
19246 | ## --------------------- ## |
19247 | ## M4sh Initialization. ## |
19248 | ## --------------------- ## |
19249 | |
19250 | # Be Bourne compatible |
19251 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19252 | emulate sh |
19253 | NULLCMD=: |
19254 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19255 | # is contrary to our usage. Disable this feature. |
19256 | alias -g '${1+"$@"}'='"$@"' |
19257 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
19258 | set -o posix |
19259 | fi |
19260 | DUALCASE=1; export DUALCASE # for MKS sh |
19261 | |
19262 | # Support unset when possible. |
19263 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
19264 | as_unset=unset |
19265 | else |
19266 | as_unset=false |
19267 | fi |
19268 | |
19269 | |
19270 | # Work around bugs in pre-3.0 UWIN ksh. |
19271 | $as_unset ENV MAIL MAILPATH |
19272 | PS1='$ ' |
19273 | PS2='> ' |
19274 | PS4='+ ' |
19275 | |
19276 | # NLS nuisances. |
19277 | for as_var in \ |
19278 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
19279 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
19280 | LC_TELEPHONE LC_TIME |
19281 | do |
19282 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
19283 | eval $as_var=C; export $as_var |
19284 | else |
19285 | $as_unset $as_var |
19286 | fi |
19287 | done |
19288 | |
19289 | # Required to use basename. |
19290 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19291 | as_expr=expr |
19292 | else |
19293 | as_expr=false |
19294 | fi |
19295 | |
19296 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
19297 | as_basename=basename |
19298 | else |
19299 | as_basename=false |
19300 | fi |
19301 | |
19302 | |
19303 | # Name of the executable. |
19304 | as_me=`$as_basename "$0" || |
19305 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19306 | X"$0" : 'X\(//\)$' \| \ |
19307 | X"$0" : 'X\(/\)$' \| \ |
19308 | . : '\(.\)' 2>/dev/null || |
19309 | echo X/"$0" | |
19310 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
19311 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
19312 | /^X\/\(\/\).*/{ s//\1/; q; } |
19313 | s/.*/./; q'` |
19314 | |
19315 | |
19316 | # PATH needs CR, and LINENO needs CR and PATH. |
19317 | # Avoid depending upon Character Ranges. |
19318 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
19319 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
19320 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
19321 | as_cr_digits='0123456789' |
19322 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
19323 | |
19324 | # The user is always right. |
19325 | if test "${PATH_SEPARATOR+set}" != set; then |
19326 | echo "#! /bin/sh" >conf$$.sh |
19327 | echo "exit 0" >>conf$$.sh |
19328 | chmod +x conf$$.sh |
19329 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
19330 | PATH_SEPARATOR=';' |
19331 | else |
19332 | PATH_SEPARATOR=: |
19333 | fi |
19334 | rm -f conf$$.sh |
19335 | fi |
19336 | |
19337 | |
19338 | as_lineno_1=$LINENO |
19339 | as_lineno_2=$LINENO |
19340 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19341 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19342 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
19343 | # Find who we are. Look in the path if we contain no path at all |
19344 | # relative or not. |
19345 | case $0 in |
19346 | *[\\/]* ) as_myself=$0 ;; |
19347 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19348 | for as_dir in $PATH |
19349 | do |
19350 | IFS=$as_save_IFS |
19351 | test -z "$as_dir" && as_dir=. |
19352 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
19353 | done |
19354 | |
19355 | ;; |
19356 | esac |
19357 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
19358 | # in which case we are not to be found in the path. |
19359 | if test "x$as_myself" = x; then |
19360 | as_myself=$0 |
19361 | fi |
19362 | if test ! -f "$as_myself"; then |
19363 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
19364 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
19365 | { (exit 1); exit 1; }; } |
19366 | fi |
19367 | case $CONFIG_SHELL in |
19368 | '') |
19369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19370 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
19371 | do |
19372 | IFS=$as_save_IFS |
19373 | test -z "$as_dir" && as_dir=. |
19374 | for as_base in sh bash ksh sh5; do |
19375 | case $as_dir in |
19376 | /*) |
19377 | if ("$as_dir/$as_base" -c ' |
19378 | as_lineno_1=$LINENO |
19379 | as_lineno_2=$LINENO |
19380 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
19381 | test "x$as_lineno_1" != "x$as_lineno_2" && |
19382 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
19383 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
19384 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
19385 | CONFIG_SHELL=$as_dir/$as_base |
19386 | export CONFIG_SHELL |
19387 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
19388 | fi;; |
19389 | esac |
19390 | done |
19391 | done |
19392 | ;; |
19393 | esac |
19394 | |
19395 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
19396 | # uniformly replaced by the line number. The first 'sed' inserts a |
19397 | # line-number line before each line; the second 'sed' does the real |
19398 | # work. The second script uses 'N' to pair each line-number line |
19399 | # with the numbered line, and appends trailing '-' during |
19400 | # substitution so that $LINENO is not a special case at line end. |
19401 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
19402 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
19403 | sed '=' <$as_myself | |
19404 | sed ' |
19405 | N |
19406 | s,$,-, |
19407 | : loop |
19408 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
19409 | t loop |
19410 | s,-$,, |
19411 | s,^['$as_cr_digits']*\n,, |
19412 | ' >$as_me.lineno && |
19413 | chmod +x $as_me.lineno || |
19414 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
19415 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
19416 | { (exit 1); exit 1; }; } |
19417 | |
19418 | # Don't try to exec as it changes $[0], causing all sort of problems |
19419 | # (the dirname of $[0] is not the place where we might find the |
19420 | # original and so on. Autoconf is especially sensible to this). |
19421 | . ./$as_me.lineno |
19422 | # Exit status is that of the last command. |
19423 | exit |
19424 | } |
19425 | |
19426 | |
19427 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
19428 | *c*,-n*) ECHO_N= ECHO_C=' |
19429 | ' ECHO_T=' ' ;; |
19430 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
19431 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
19432 | esac |
19433 | |
19434 | if expr a : '\(a\)' >/dev/null 2>&1; then |
19435 | as_expr=expr |
19436 | else |
19437 | as_expr=false |
19438 | fi |
19439 | |
19440 | rm -f conf$$ conf$$.exe conf$$.file |
19441 | echo >conf$$.file |
19442 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
19443 | # We could just check for DJGPP; but this test a) works b) is more generic |
19444 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
19445 | if test -f conf$$.exe; then |
19446 | # Don't use ln at all; we don't have any links |
19447 | as_ln_s='cp -p' |
19448 | else |
19449 | as_ln_s='ln -s' |
19450 | fi |
19451 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19452 | as_ln_s=ln |
19453 | else |
19454 | as_ln_s='cp -p' |
19455 | fi |
19456 | rm -f conf$$ conf$$.exe conf$$.file |
19457 | |
19458 | if mkdir -p . 2>/dev/null; then |
19459 | as_mkdir_p=: |
19460 | else |
19461 | test -d ./-p && rmdir ./-p |
19462 | as_mkdir_p=false |
19463 | fi |
19464 | |
19465 | as_executable_p="test -f" |
19466 | |
19467 | # Sed expression to map a string onto a valid CPP name. |
19468 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
19469 | |
19470 | # Sed expression to map a string onto a valid variable name. |
19471 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
19472 | |
19473 | |
19474 | # IFS |
19475 | # We need space, tab and new line, in precisely that order. |
19476 | as_nl=' |
19477 | ' |
19478 | IFS=" $as_nl" |
19479 | |
19480 | # CDPATH. |
19481 | $as_unset CDPATH |
19482 | |
19483 | exec 6>&1 |
19484 | |
19485 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
19486 | # report actual input values of CONFIG_FILES etc. instead of their |
19487 | # values after options handling. Logging --version etc. is OK. |
19488 | exec 5>>config.log |
19489 | { |
19490 | echo |
19491 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
19492 | ## Running $as_me. ## |
19493 | _ASBOX |
19494 | } >&5 |
19495 | cat >&5 <<_CSEOF |
19496 | |
19497 | This file was extended by libhmac $as_me 1.00, which was |
19498 | generated by GNU Autoconf 2.59. Invocation command line was |
19499 | |
19500 | CONFIG_FILES = $CONFIG_FILES |
19501 | CONFIG_HEADERS = $CONFIG_HEADERS |
19502 | CONFIG_LINKS = $CONFIG_LINKS |
19503 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
19504 | $ $0 $@ |
19505 | |
19506 | _CSEOF |
19507 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
19508 | echo >&5 |
19509 | _ACEOF |
19510 | |
19511 | # Files that config.status was made for. |
19512 | if test -n "$ac_config_files"; then |
19513 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
19514 | fi |
19515 | |
19516 | if test -n "$ac_config_headers"; then |
19517 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
19518 | fi |
19519 | |
19520 | if test -n "$ac_config_links"; then |
19521 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
19522 | fi |
19523 | |
19524 | if test -n "$ac_config_commands"; then |
19525 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
19526 | fi |
19527 | |
19528 | cat >>$CONFIG_STATUS <<\_ACEOF |
19529 | |
19530 | ac_cs_usage="\ |
19531 | \`$as_me' instantiates files from templates according to the |
19532 | current configuration. |
19533 | |
19534 | Usage: $0 [OPTIONS] [FILE]... |
19535 | |
19536 | -h, --help print this help, then exit |
19537 | -V, --version print version number, then exit |
19538 | -q, --quiet do not print progress messages |
19539 | -d, --debug don't remove temporary files |
19540 | --recheck update $as_me by reconfiguring in the same conditions |
19541 | --file=FILE[:TEMPLATE] |
19542 | instantiate the configuration file FILE |
19543 | --header=FILE[:TEMPLATE] |
19544 | instantiate the configuration header FILE |
19545 | |
19546 | Configuration files: |
19547 | $config_files |
19548 | |
19549 | Configuration headers: |
19550 | $config_headers |
19551 | |
19552 | Configuration commands: |
19553 | $config_commands |
19554 | |
19555 | Report bugs to <bug-autoconf@gnu.org>." |
19556 | _ACEOF |
19557 | |
19558 | cat >>$CONFIG_STATUS <<_ACEOF |
19559 | ac_cs_version="\\ |
19560 | libhmac config.status 1.00 |
19561 | configured by $0, generated by GNU Autoconf 2.59, |
19562 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
19563 | |
19564 | Copyright (C) 2003 Free Software Foundation, Inc. |
19565 | This config.status script is free software; the Free Software Foundation |
19566 | gives unlimited permission to copy, distribute and modify it." |
19567 | srcdir=$srcdir |
19568 | INSTALL="$INSTALL" |
19569 | _ACEOF |
19570 | |
19571 | cat >>$CONFIG_STATUS <<\_ACEOF |
19572 | # If no file are specified by the user, then we need to provide default |
19573 | # value. By we need to know if files were specified by the user. |
19574 | ac_need_defaults=: |
19575 | while test $# != 0 |
19576 | do |
19577 | case $1 in |
19578 | --*=*) |
19579 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
19580 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
19581 | ac_shift=: |
19582 | ;; |
19583 | -*) |
19584 | ac_option=$1 |
19585 | ac_optarg=$2 |
19586 | ac_shift=shift |
19587 | ;; |
19588 | *) # This is not an option, so the user has probably given explicit |
19589 | # arguments. |
19590 | ac_option=$1 |
19591 | ac_need_defaults=false;; |
19592 | esac |
19593 | |
19594 | case $ac_option in |
19595 | # Handling of the options. |
19596 | _ACEOF |
19597 | cat >>$CONFIG_STATUS <<\_ACEOF |
19598 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
19599 | ac_cs_recheck=: ;; |
19600 | --version | --vers* | -V ) |
19601 | echo "$ac_cs_version"; exit 0 ;; |
19602 | --he | --h) |
19603 | # Conflict between --help and --header |
19604 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
19605 | Try \`$0 --help' for more information." >&5 |
19606 | echo "$as_me: error: ambiguous option: $1 |
19607 | Try \`$0 --help' for more information." >&2;} |
19608 | { (exit 1); exit 1; }; };; |
19609 | --help | --hel | -h ) |
19610 | echo "$ac_cs_usage"; exit 0 ;; |
19611 | --debug | --d* | -d ) |
19612 | debug=: ;; |
19613 | --file | --fil | --fi | --f ) |
19614 | $ac_shift |
19615 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
19616 | ac_need_defaults=false;; |
19617 | --header | --heade | --head | --hea ) |
19618 | $ac_shift |
19619 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
19620 | ac_need_defaults=false;; |
19621 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19622 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
19623 | ac_cs_silent=: ;; |
19624 | |
19625 | # This is an error. |
19626 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
19627 | Try \`$0 --help' for more information." >&5 |
19628 | echo "$as_me: error: unrecognized option: $1 |
19629 | Try \`$0 --help' for more information." >&2;} |
19630 | { (exit 1); exit 1; }; } ;; |
19631 | |
19632 | *) ac_config_targets="$ac_config_targets $1" ;; |
19633 | |
19634 | esac |
19635 | shift |
19636 | done |
19637 | |
19638 | ac_configure_extra_args= |
19639 | |
19640 | if $ac_cs_silent; then |
19641 | exec 6>/dev/null |
19642 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
19643 | fi |
19644 | |
19645 | _ACEOF |
19646 | cat >>$CONFIG_STATUS <<_ACEOF |
19647 | if \$ac_cs_recheck; then |
19648 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
19649 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
19650 | fi |
19651 | |
19652 | _ACEOF |
19653 | |
19654 | cat >>$CONFIG_STATUS <<_ACEOF |
19655 | # |
19656 | # INIT-COMMANDS section. |
19657 | # |
19658 | |
19659 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
19660 | |
19661 | _ACEOF |
19662 | |
19663 | |
19664 | |
19665 | cat >>$CONFIG_STATUS <<\_ACEOF |
19666 | for ac_config_target in $ac_config_targets |
19667 | do |
19668 | case "$ac_config_target" in |
19669 | # Handling of arguments. |
19670 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
19671 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
19672 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
19673 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
19674 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
19675 | { (exit 1); exit 1; }; };; |
19676 | esac |
19677 | done |
19678 | |
19679 | # If the user did not use the arguments to specify the items to instantiate, |
19680 | # then the envvar interface is used. Set only those that are not. |
19681 | # We use the long form for the default assignment because of an extremely |
19682 | # bizarre bug on SunOS 4.1.3. |
19683 | if $ac_need_defaults; then |
19684 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
19685 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
19686 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
19687 | fi |
19688 | |
19689 | # Have a temporary directory for convenience. Make it in the build tree |
19690 | # simply because there is no reason to put it here, and in addition, |
19691 | # creating and moving files from /tmp can sometimes cause problems. |
19692 | # Create a temporary directory, and hook for its removal unless debugging. |
19693 | $debug || |
19694 | { |
19695 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
19696 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
19697 | } |
19698 | |
19699 | # Create a (secure) tmp directory for tmp files. |
19700 | |
19701 | { |
19702 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
19703 | test -n "$tmp" && test -d "$tmp" |
19704 | } || |
19705 | { |
19706 | tmp=./confstat$$-$RANDOM |
19707 | (umask 077 && mkdir $tmp) |
19708 | } || |
19709 | { |
19710 | echo "$me: cannot create a temporary directory in ." >&2 |
19711 | { (exit 1); exit 1; } |
19712 | } |
19713 | |
19714 | _ACEOF |
19715 | |
19716 | cat >>$CONFIG_STATUS <<_ACEOF |
19717 | |
19718 | # |
19719 | # CONFIG_FILES section. |
19720 | # |
19721 | |
19722 | # No need to generate the scripts if there are no CONFIG_FILES. |
19723 | # This happens for instance when ./config.status config.h |
19724 | if test -n "\$CONFIG_FILES"; then |
19725 | # Protect against being on the right side of a sed subst in config.status. |
19726 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
19727 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
19728 | s,@SHELL@,$SHELL,;t t |
19729 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
19730 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
19731 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
19732 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
19733 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
19734 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
19735 | s,@exec_prefix@,$exec_prefix,;t t |
19736 | s,@prefix@,$prefix,;t t |
19737 | s,@program_transform_name@,$program_transform_name,;t t |
19738 | s,@bindir@,$bindir,;t t |
19739 | s,@sbindir@,$sbindir,;t t |
19740 | s,@libexecdir@,$libexecdir,;t t |
19741 | s,@datadir@,$datadir,;t t |
19742 | s,@sysconfdir@,$sysconfdir,;t t |
19743 | s,@sharedstatedir@,$sharedstatedir,;t t |
19744 | s,@localstatedir@,$localstatedir,;t t |
19745 | s,@libdir@,$libdir,;t t |
19746 | s,@includedir@,$includedir,;t t |
19747 | s,@oldincludedir@,$oldincludedir,;t t |
19748 | s,@infodir@,$infodir,;t t |
19749 | s,@mandir@,$mandir,;t t |
19750 | s,@build_alias@,$build_alias,;t t |
19751 | s,@host_alias@,$host_alias,;t t |
19752 | s,@target_alias@,$target_alias,;t t |
19753 | s,@DEFS@,$DEFS,;t t |
19754 | s,@ECHO_C@,$ECHO_C,;t t |
19755 | s,@ECHO_N@,$ECHO_N,;t t |
19756 | s,@ECHO_T@,$ECHO_T,;t t |
19757 | s,@LIBS@,$LIBS,;t t |
19758 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
19759 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
19760 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
19761 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
19762 | s,@PACKAGE@,$PACKAGE,;t t |
19763 | s,@VERSION@,$VERSION,;t t |
19764 | s,@ACLOCAL@,$ACLOCAL,;t t |
19765 | s,@AUTOCONF@,$AUTOCONF,;t t |
19766 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
19767 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
19768 | s,@MAKEINFO@,$MAKEINFO,;t t |
19769 | s,@install_sh@,$install_sh,;t t |
19770 | s,@STRIP@,$STRIP,;t t |
19771 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
19772 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
19773 | s,@mkdir_p@,$mkdir_p,;t t |
19774 | s,@AWK@,$AWK,;t t |
19775 | s,@SET_MAKE@,$SET_MAKE,;t t |
19776 | s,@am__leading_dot@,$am__leading_dot,;t t |
19777 | s,@AMTAR@,$AMTAR,;t t |
19778 | s,@am__tar@,$am__tar,;t t |
19779 | s,@am__untar@,$am__untar,;t t |
19780 | s,@LN_S@,$LN_S,;t t |
19781 | s,@CC@,$CC,;t t |
19782 | s,@CFLAGS@,$CFLAGS,;t t |
19783 | s,@LDFLAGS@,$LDFLAGS,;t t |
19784 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
19785 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
19786 | s,@EXEEXT@,$EXEEXT,;t t |
19787 | s,@OBJEXT@,$OBJEXT,;t t |
19788 | s,@DEPDIR@,$DEPDIR,;t t |
19789 | s,@am__include@,$am__include,;t t |
19790 | s,@am__quote@,$am__quote,;t t |
19791 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
19792 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
19793 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
19794 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
19795 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
19796 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
19797 | s,@build@,$build,;t t |
19798 | s,@build_cpu@,$build_cpu,;t t |
19799 | s,@build_vendor@,$build_vendor,;t t |
19800 | s,@build_os@,$build_os,;t t |
19801 | s,@host@,$host,;t t |
19802 | s,@host_cpu@,$host_cpu,;t t |
19803 | s,@host_vendor@,$host_vendor,;t t |
19804 | s,@host_os@,$host_os,;t t |
19805 | s,@SED@,$SED,;t t |
19806 | s,@EGREP@,$EGREP,;t t |
19807 | s,@ECHO@,$ECHO,;t t |
19808 | s,@AR@,$AR,;t t |
19809 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
19810 | s,@RANLIB@,$RANLIB,;t t |
19811 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
19812 | s,@CPP@,$CPP,;t t |
19813 | s,@CXX@,$CXX,;t t |
19814 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
19815 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
19816 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
19817 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
19818 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
19819 | s,@CXXCPP@,$CXXCPP,;t t |
19820 | s,@F77@,$F77,;t t |
19821 | s,@FFLAGS@,$FFLAGS,;t t |
19822 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
19823 | s,@LIBTOOL@,$LIBTOOL,;t t |
19824 | s,@hashlibs@,$hashlibs,;t t |
19825 | s,@TESTPROGS@,$TESTPROGS,;t t |
19826 | s,@LIBOBJS@,$LIBOBJS,;t t |
19827 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
19828 | CEOF |
19829 | |
19830 | _ACEOF |
19831 | |
19832 | cat >>$CONFIG_STATUS <<\_ACEOF |
19833 | # Split the substitutions into bite-sized pieces for seds with |
19834 | # small command number limits, like on Digital OSF/1 and HP-UX. |
19835 | ac_max_sed_lines=48 |
19836 | ac_sed_frag=1 # Number of current file. |
19837 | ac_beg=1 # First line for current file. |
19838 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
19839 | ac_more_lines=: |
19840 | ac_sed_cmds= |
19841 | while $ac_more_lines; do |
19842 | if test $ac_beg -gt 1; then |
19843 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
19844 | else |
19845 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
19846 | fi |
19847 | if test ! -s $tmp/subs.frag; then |
19848 | ac_more_lines=false |
19849 | else |
19850 | # The purpose of the label and of the branching condition is to |
19851 | # speed up the sed processing (if there are no `@' at all, there |
19852 | # is no need to browse any of the substitutions). |
19853 | # These are the two extra sed commands mentioned above. |
19854 | (echo ':t |
19855 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
19856 | if test -z "$ac_sed_cmds"; then |
19857 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
19858 | else |
19859 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
19860 | fi |
19861 | ac_sed_frag=`expr $ac_sed_frag + 1` |
19862 | ac_beg=$ac_end |
19863 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
19864 | fi |
19865 | done |
19866 | if test -z "$ac_sed_cmds"; then |
19867 | ac_sed_cmds=cat |
19868 | fi |
19869 | fi # test -n "$CONFIG_FILES" |
19870 | |
19871 | _ACEOF |
19872 | cat >>$CONFIG_STATUS <<\_ACEOF |
19873 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
19874 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
19875 | case $ac_file in |
19876 | - | *:- | *:-:* ) # input from stdin |
19877 | cat >$tmp/stdin |
19878 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
19879 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
19880 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
19881 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
19882 | * ) ac_file_in=$ac_file.in ;; |
19883 | esac |
19884 | |
19885 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
19886 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
19887 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19888 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19889 | X"$ac_file" : 'X\(//\)$' \| \ |
19890 | X"$ac_file" : 'X\(/\)' \| \ |
19891 | . : '\(.\)' 2>/dev/null || |
19892 | echo X"$ac_file" | |
19893 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
19894 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
19895 | /^X\(\/\/\)$/{ s//\1/; q; } |
19896 | /^X\(\/\).*/{ s//\1/; q; } |
19897 | s/.*/./; q'` |
19898 | { if $as_mkdir_p; then |
19899 | mkdir -p "$ac_dir" |
19900 | else |
19901 | as_dir="$ac_dir" |
19902 | as_dirs= |
19903 | while test ! -d "$as_dir"; do |
19904 | as_dirs="$as_dir $as_dirs" |
19905 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
19906 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19907 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19908 | X"$as_dir" : 'X\(//\)$' \| \ |
19909 | X"$as_dir" : 'X\(/\)' \| \ |
19910 | . : '\(.\)' 2>/dev/null || |
19911 | echo X"$as_dir" | |
19912 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
19913 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
19914 | /^X\(\/\/\)$/{ s//\1/; q; } |
19915 | /^X\(\/\).*/{ s//\1/; q; } |
19916 | s/.*/./; q'` |
19917 | done |
19918 | test ! -n "$as_dirs" || mkdir $as_dirs |
19919 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
19920 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
19921 | { (exit 1); exit 1; }; }; } |
19922 | |
19923 | ac_builddir=. |
19924 | |
19925 | if test "$ac_dir" != .; then |
19926 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
19927 | # A "../" for each directory in $ac_dir_suffix. |
19928 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
19929 | else |
19930 | ac_dir_suffix= ac_top_builddir= |
19931 | fi |
19932 | |
19933 | case $srcdir in |
19934 | .) # No --srcdir option. We are building in place. |
19935 | ac_srcdir=. |
19936 | if test -z "$ac_top_builddir"; then |
19937 | ac_top_srcdir=. |
19938 | else |
19939 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
19940 | fi ;; |
19941 | [\\/]* | ?:[\\/]* ) # Absolute path. |
19942 | ac_srcdir=$srcdir$ac_dir_suffix; |
19943 | ac_top_srcdir=$srcdir ;; |
19944 | *) # Relative path. |
19945 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
19946 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
19947 | esac |
19948 | |
19949 | # Do not use `cd foo && pwd` to compute absolute paths, because |
19950 | # the directories may not exist. |
19951 | case `pwd` in |
19952 | .) ac_abs_builddir="$ac_dir";; |
19953 | *) |
19954 | case "$ac_dir" in |
19955 | .) ac_abs_builddir=`pwd`;; |
19956 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
19957 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
19958 | esac;; |
19959 | esac |
19960 | case $ac_abs_builddir in |
19961 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
19962 | *) |
19963 | case ${ac_top_builddir}. in |
19964 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
19965 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
19966 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
19967 | esac;; |
19968 | esac |
19969 | case $ac_abs_builddir in |
19970 | .) ac_abs_srcdir=$ac_srcdir;; |
19971 | *) |
19972 | case $ac_srcdir in |
19973 | .) ac_abs_srcdir=$ac_abs_builddir;; |
19974 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
19975 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
19976 | esac;; |
19977 | esac |
19978 | case $ac_abs_builddir in |
19979 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
19980 | *) |
19981 | case $ac_top_srcdir in |
19982 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
19983 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
19984 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
19985 | esac;; |
19986 | esac |
19987 | |
19988 | |
19989 | case $INSTALL in |
19990 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
19991 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
19992 | esac |
19993 | |
19994 | if test x"$ac_file" != x-; then |
19995 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
19996 | echo "$as_me: creating $ac_file" >&6;} |
19997 | rm -f "$ac_file" |
19998 | fi |
19999 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20000 | # use $as_me), people would be surprised to read: |
20001 | # /* config.h. Generated by config.status. */ |
20002 | if test x"$ac_file" = x-; then |
20003 | configure_input= |
20004 | else |
20005 | configure_input="$ac_file. " |
20006 | fi |
20007 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
20008 | sed 's,.*/,,'` by configure." |
20009 | |
20010 | # First look for the input files in the build tree, otherwise in the |
20011 | # src tree. |
20012 | ac_file_inputs=`IFS=: |
20013 | for f in $ac_file_in; do |
20014 | case $f in |
20015 | -) echo $tmp/stdin ;; |
20016 | [\\/$]*) |
20017 | # Absolute (can't be DOS-style, as IFS=:) |
20018 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20019 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20020 | { (exit 1); exit 1; }; } |
20021 | echo "$f";; |
20022 | *) # Relative |
20023 | if test -f "$f"; then |
20024 | # Build tree |
20025 | echo "$f" |
20026 | elif test -f "$srcdir/$f"; then |
20027 | # Source tree |
20028 | echo "$srcdir/$f" |
20029 | else |
20030 | # /dev/null tree |
20031 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20032 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20033 | { (exit 1); exit 1; }; } |
20034 | fi;; |
20035 | esac |
20036 | done` || { (exit 1); exit 1; } |
20037 | _ACEOF |
20038 | cat >>$CONFIG_STATUS <<_ACEOF |
20039 | sed "$ac_vpsub |
20040 | $extrasub |
20041 | _ACEOF |
20042 | cat >>$CONFIG_STATUS <<\_ACEOF |
20043 | :t |
20044 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20045 | s,@configure_input@,$configure_input,;t t |
20046 | s,@srcdir@,$ac_srcdir,;t t |
20047 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
20048 | s,@top_srcdir@,$ac_top_srcdir,;t t |
20049 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
20050 | s,@builddir@,$ac_builddir,;t t |
20051 | s,@abs_builddir@,$ac_abs_builddir,;t t |
20052 | s,@top_builddir@,$ac_top_builddir,;t t |
20053 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
20054 | s,@INSTALL@,$ac_INSTALL,;t t |
20055 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
20056 | rm -f $tmp/stdin |
20057 | if test x"$ac_file" != x-; then |
20058 | mv $tmp/out $ac_file |
20059 | else |
20060 | cat $tmp/out |
20061 | rm -f $tmp/out |
20062 | fi |
20063 | |
20064 | done |
20065 | _ACEOF |
20066 | cat >>$CONFIG_STATUS <<\_ACEOF |
20067 | |
20068 | # |
20069 | # CONFIG_HEADER section. |
20070 | # |
20071 | |
20072 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
20073 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
20074 | # |
20075 | # ac_d sets the value in "#define NAME VALUE" lines. |
20076 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20077 | ac_dB='[ ].*$,\1#\2' |
20078 | ac_dC=' ' |
20079 | ac_dD=',;t' |
20080 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
20081 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
20082 | ac_uB='$,\1#\2define\3' |
20083 | ac_uC=' ' |
20084 | ac_uD=',;t' |
20085 | |
20086 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
20087 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
20088 | case $ac_file in |
20089 | - | *:- | *:-:* ) # input from stdin |
20090 | cat >$tmp/stdin |
20091 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20092 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20093 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20094 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
20095 | * ) ac_file_in=$ac_file.in ;; |
20096 | esac |
20097 | |
20098 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20099 | echo "$as_me: creating $ac_file" >&6;} |
20100 | |
20101 | # First look for the input files in the build tree, otherwise in the |
20102 | # src tree. |
20103 | ac_file_inputs=`IFS=: |
20104 | for f in $ac_file_in; do |
20105 | case $f in |
20106 | -) echo $tmp/stdin ;; |
20107 | [\\/$]*) |
20108 | # Absolute (can't be DOS-style, as IFS=:) |
20109 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20110 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20111 | { (exit 1); exit 1; }; } |
20112 | # Do quote $f, to prevent DOS paths from being IFS'd. |
20113 | echo "$f";; |
20114 | *) # Relative |
20115 | if test -f "$f"; then |
20116 | # Build tree |
20117 | echo "$f" |
20118 | elif test -f "$srcdir/$f"; then |
20119 | # Source tree |
20120 | echo "$srcdir/$f" |
20121 | else |
20122 | # /dev/null tree |
20123 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
20124 | echo "$as_me: error: cannot find input file: $f" >&2;} |
20125 | { (exit 1); exit 1; }; } |
20126 | fi;; |
20127 | esac |
20128 | done` || { (exit 1); exit 1; } |
20129 | # Remove the trailing spaces. |
20130 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
20131 | |
20132 | _ACEOF |
20133 | |
20134 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
20135 | # `conftest.undefs', that substitutes the proper values into |
20136 | # config.h.in to produce config.h. The first handles `#define' |
20137 | # templates, and the second `#undef' templates. |
20138 | # And first: Protect against being on the right side of a sed subst in |
20139 | # config.status. Protect against being in an unquoted here document |
20140 | # in config.status. |
20141 | rm -f conftest.defines conftest.undefs |
20142 | # Using a here document instead of a string reduces the quoting nightmare. |
20143 | # Putting comments in sed scripts is not portable. |
20144 | # |
20145 | # `end' is used to avoid that the second main sed command (meant for |
20146 | # 0-ary CPP macros) applies to n-ary macro definitions. |
20147 | # See the Autoconf documentation for `clear'. |
20148 | cat >confdef2sed.sed <<\_ACEOF |
20149 | s/[\\&,]/\\&/g |
20150 | s,[\\$`],\\&,g |
20151 | t clear |
20152 | : clear |
20153 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
20154 | t end |
20155 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
20156 | : end |
20157 | _ACEOF |
20158 | # If some macros were called several times there might be several times |
20159 | # the same #defines, which is useless. Nevertheless, we may not want to |
20160 | # sort them, since we want the *last* AC-DEFINE to be honored. |
20161 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
20162 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
20163 | rm -f confdef2sed.sed |
20164 | |
20165 | # This sed command replaces #undef with comments. This is necessary, for |
20166 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20167 | # on some systems where configure will not decide to define it. |
20168 | cat >>conftest.undefs <<\_ACEOF |
20169 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
20170 | _ACEOF |
20171 | |
20172 | # Break up conftest.defines because some shells have a limit on the size |
20173 | # of here documents, and old seds have small limits too (100 cmds). |
20174 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
20175 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
20176 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
20177 | echo ' :' >>$CONFIG_STATUS |
20178 | rm -f conftest.tail |
20179 | while grep . conftest.defines >/dev/null |
20180 | do |
20181 | # Write a limited-size here document to $tmp/defines.sed. |
20182 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
20183 | # Speed up: don't consider the non `#define' lines. |
20184 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
20185 | # Work around the forget-to-reset-the-flag bug. |
20186 | echo 't clr' >>$CONFIG_STATUS |
20187 | echo ': clr' >>$CONFIG_STATUS |
20188 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
20189 | echo 'CEOF |
20190 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
20191 | rm -f $tmp/in |
20192 | mv $tmp/out $tmp/in |
20193 | ' >>$CONFIG_STATUS |
20194 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
20195 | rm -f conftest.defines |
20196 | mv conftest.tail conftest.defines |
20197 | done |
20198 | rm -f conftest.defines |
20199 | echo ' fi # grep' >>$CONFIG_STATUS |
20200 | echo >>$CONFIG_STATUS |
20201 | |
20202 | # Break up conftest.undefs because some shells have a limit on the size |
20203 | # of here documents, and old seds have small limits too (100 cmds). |
20204 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
20205 | rm -f conftest.tail |
20206 | while grep . conftest.undefs >/dev/null |
20207 | do |
20208 | # Write a limited-size here document to $tmp/undefs.sed. |
20209 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
20210 | # Speed up: don't consider the non `#undef' |
20211 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
20212 | # Work around the forget-to-reset-the-flag bug. |
20213 | echo 't clr' >>$CONFIG_STATUS |
20214 | echo ': clr' >>$CONFIG_STATUS |
20215 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
20216 | echo 'CEOF |
20217 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
20218 | rm -f $tmp/in |
20219 | mv $tmp/out $tmp/in |
20220 | ' >>$CONFIG_STATUS |
20221 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
20222 | rm -f conftest.undefs |
20223 | mv conftest.tail conftest.undefs |
20224 | done |
20225 | rm -f conftest.undefs |
20226 | |
20227 | cat >>$CONFIG_STATUS <<\_ACEOF |
20228 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20229 | # use $as_me), people would be surprised to read: |
20230 | # /* config.h. Generated by config.status. */ |
20231 | if test x"$ac_file" = x-; then |
20232 | echo "/* Generated by configure. */" >$tmp/config.h |
20233 | else |
20234 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
20235 | fi |
20236 | cat $tmp/in >>$tmp/config.h |
20237 | rm -f $tmp/in |
20238 | if test x"$ac_file" != x-; then |
20239 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
20240 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20241 | echo "$as_me: $ac_file is unchanged" >&6;} |
20242 | else |
20243 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
20244 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20245 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20246 | X"$ac_file" : 'X\(//\)$' \| \ |
20247 | X"$ac_file" : 'X\(/\)' \| \ |
20248 | . : '\(.\)' 2>/dev/null || |
20249 | echo X"$ac_file" | |
20250 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20251 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20252 | /^X\(\/\/\)$/{ s//\1/; q; } |
20253 | /^X\(\/\).*/{ s//\1/; q; } |
20254 | s/.*/./; q'` |
20255 | { if $as_mkdir_p; then |
20256 | mkdir -p "$ac_dir" |
20257 | else |
20258 | as_dir="$ac_dir" |
20259 | as_dirs= |
20260 | while test ! -d "$as_dir"; do |
20261 | as_dirs="$as_dir $as_dirs" |
20262 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20263 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20264 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20265 | X"$as_dir" : 'X\(//\)$' \| \ |
20266 | X"$as_dir" : 'X\(/\)' \| \ |
20267 | . : '\(.\)' 2>/dev/null || |
20268 | echo X"$as_dir" | |
20269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20270 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20271 | /^X\(\/\/\)$/{ s//\1/; q; } |
20272 | /^X\(\/\).*/{ s//\1/; q; } |
20273 | s/.*/./; q'` |
20274 | done |
20275 | test ! -n "$as_dirs" || mkdir $as_dirs |
20276 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20277 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20278 | { (exit 1); exit 1; }; }; } |
20279 | |
20280 | rm -f $ac_file |
20281 | mv $tmp/config.h $ac_file |
20282 | fi |
20283 | else |
20284 | cat $tmp/config.h |
20285 | rm -f $tmp/config.h |
20286 | fi |
20287 | # Compute $ac_file's index in $config_headers. |
20288 | _am_stamp_count=1 |
20289 | for _am_header in $config_headers :; do |
20290 | case $_am_header in |
20291 | $ac_file | $ac_file:* ) |
20292 | break ;; |
20293 | * ) |
20294 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
20295 | esac |
20296 | done |
20297 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
20298 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20299 | X$ac_file : 'X\(//\)[^/]' \| \ |
20300 | X$ac_file : 'X\(//\)$' \| \ |
20301 | X$ac_file : 'X\(/\)' \| \ |
20302 | . : '\(.\)' 2>/dev/null || |
20303 | echo X$ac_file | |
20304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20305 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20306 | /^X\(\/\/\)$/{ s//\1/; q; } |
20307 | /^X\(\/\).*/{ s//\1/; q; } |
20308 | s/.*/./; q'`/stamp-h$_am_stamp_count |
20309 | done |
20310 | _ACEOF |
20311 | cat >>$CONFIG_STATUS <<\_ACEOF |
20312 | |
20313 | # |
20314 | # CONFIG_COMMANDS section. |
20315 | # |
20316 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
20317 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
20318 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
20319 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
20320 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20321 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
20322 | X"$ac_dest" : 'X\(//\)$' \| \ |
20323 | X"$ac_dest" : 'X\(/\)' \| \ |
20324 | . : '\(.\)' 2>/dev/null || |
20325 | echo X"$ac_dest" | |
20326 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20327 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20328 | /^X\(\/\/\)$/{ s//\1/; q; } |
20329 | /^X\(\/\).*/{ s//\1/; q; } |
20330 | s/.*/./; q'` |
20331 | { if $as_mkdir_p; then |
20332 | mkdir -p "$ac_dir" |
20333 | else |
20334 | as_dir="$ac_dir" |
20335 | as_dirs= |
20336 | while test ! -d "$as_dir"; do |
20337 | as_dirs="$as_dir $as_dirs" |
20338 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20340 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20341 | X"$as_dir" : 'X\(//\)$' \| \ |
20342 | X"$as_dir" : 'X\(/\)' \| \ |
20343 | . : '\(.\)' 2>/dev/null || |
20344 | echo X"$as_dir" | |
20345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20346 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20347 | /^X\(\/\/\)$/{ s//\1/; q; } |
20348 | /^X\(\/\).*/{ s//\1/; q; } |
20349 | s/.*/./; q'` |
20350 | done |
20351 | test ! -n "$as_dirs" || mkdir $as_dirs |
20352 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
20353 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
20354 | { (exit 1); exit 1; }; }; } |
20355 | |
20356 | ac_builddir=. |
20357 | |
20358 | if test "$ac_dir" != .; then |
20359 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
20360 | # A "../" for each directory in $ac_dir_suffix. |
20361 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
20362 | else |
20363 | ac_dir_suffix= ac_top_builddir= |
20364 | fi |
20365 | |
20366 | case $srcdir in |
20367 | .) # No --srcdir option. We are building in place. |
20368 | ac_srcdir=. |
20369 | if test -z "$ac_top_builddir"; then |
20370 | ac_top_srcdir=. |
20371 | else |
20372 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
20373 | fi ;; |
20374 | [\\/]* | ?:[\\/]* ) # Absolute path. |
20375 | ac_srcdir=$srcdir$ac_dir_suffix; |
20376 | ac_top_srcdir=$srcdir ;; |
20377 | *) # Relative path. |
20378 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
20379 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
20380 | esac |
20381 | |
20382 | # Do not use `cd foo && pwd` to compute absolute paths, because |
20383 | # the directories may not exist. |
20384 | case `pwd` in |
20385 | .) ac_abs_builddir="$ac_dir";; |
20386 | *) |
20387 | case "$ac_dir" in |
20388 | .) ac_abs_builddir=`pwd`;; |
20389 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
20390 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
20391 | esac;; |
20392 | esac |
20393 | case $ac_abs_builddir in |
20394 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
20395 | *) |
20396 | case ${ac_top_builddir}. in |
20397 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
20398 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
20399 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
20400 | esac;; |
20401 | esac |
20402 | case $ac_abs_builddir in |
20403 | .) ac_abs_srcdir=$ac_srcdir;; |
20404 | *) |
20405 | case $ac_srcdir in |
20406 | .) ac_abs_srcdir=$ac_abs_builddir;; |
20407 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
20408 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
20409 | esac;; |
20410 | esac |
20411 | case $ac_abs_builddir in |
20412 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
20413 | *) |
20414 | case $ac_top_srcdir in |
20415 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
20416 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
20417 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
20418 | esac;; |
20419 | esac |
20420 | |
20421 | |
20422 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
20423 | echo "$as_me: executing $ac_dest commands" >&6;} |
20424 | case $ac_dest in |
20425 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
20426 | # Strip MF so we end up with the name of the file. |
20427 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
20428 | # Check whether this is an Automake generated Makefile or not. |
20429 | # We used to match only the files named `Makefile.in', but |
20430 | # some people rename them; so instead we look at the file content. |
20431 | # Grep'ing the first line is not enough: some people post-process |
20432 | # each Makefile.in and add a new line on top of each file to say so. |
20433 | # So let's grep whole file. |
20434 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
20435 | dirpart=`(dirname "$mf") 2>/dev/null || |
20436 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20437 | X"$mf" : 'X\(//\)[^/]' \| \ |
20438 | X"$mf" : 'X\(//\)$' \| \ |
20439 | X"$mf" : 'X\(/\)' \| \ |
20440 | . : '\(.\)' 2>/dev/null || |
20441 | echo X"$mf" | |
20442 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20443 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20444 | /^X\(\/\/\)$/{ s//\1/; q; } |
20445 | /^X\(\/\).*/{ s//\1/; q; } |
20446 | s/.*/./; q'` |
20447 | else |
20448 | continue |
20449 | fi |
20450 | # Extract the definition of DEPDIR, am__include, and am__quote |
20451 | # from the Makefile without running `make'. |
20452 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
20453 | test -z "$DEPDIR" && continue |
20454 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
20455 | test -z "am__include" && continue |
20456 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
20457 | # When using ansi2knr, U may be empty or an underscore; expand it |
20458 | U=`sed -n 's/^U = //p' < "$mf"` |
20459 | # Find all dependency output files, they are included files with |
20460 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
20461 | # simplest approach to changing $(DEPDIR) to its actual value in the |
20462 | # expansion. |
20463 | for file in `sed -n " |
20464 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
20465 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
20466 | # Make sure the directory exists. |
20467 | test -f "$dirpart/$file" && continue |
20468 | fdir=`(dirname "$file") 2>/dev/null || |
20469 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20470 | X"$file" : 'X\(//\)[^/]' \| \ |
20471 | X"$file" : 'X\(//\)$' \| \ |
20472 | X"$file" : 'X\(/\)' \| \ |
20473 | . : '\(.\)' 2>/dev/null || |
20474 | echo X"$file" | |
20475 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20476 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20477 | /^X\(\/\/\)$/{ s//\1/; q; } |
20478 | /^X\(\/\).*/{ s//\1/; q; } |
20479 | s/.*/./; q'` |
20480 | { if $as_mkdir_p; then |
20481 | mkdir -p $dirpart/$fdir |
20482 | else |
20483 | as_dir=$dirpart/$fdir |
20484 | as_dirs= |
20485 | while test ! -d "$as_dir"; do |
20486 | as_dirs="$as_dir $as_dirs" |
20487 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
20488 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20489 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20490 | X"$as_dir" : 'X\(//\)$' \| \ |
20491 | X"$as_dir" : 'X\(/\)' \| \ |
20492 | . : '\(.\)' 2>/dev/null || |
20493 | echo X"$as_dir" | |
20494 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
20495 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
20496 | /^X\(\/\/\)$/{ s//\1/; q; } |
20497 | /^X\(\/\).*/{ s//\1/; q; } |
20498 | s/.*/./; q'` |
20499 | done |
20500 | test ! -n "$as_dirs" || mkdir $as_dirs |
20501 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
20502 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
20503 | { (exit 1); exit 1; }; }; } |
20504 | |
20505 | # echo "creating $dirpart/$file" |
20506 | echo '# dummy' > "$dirpart/$file" |
20507 | done |
20508 | done |
20509 | ;; |
20510 | esac |
20511 | done |
20512 | _ACEOF |
20513 | |
20514 | cat >>$CONFIG_STATUS <<\_ACEOF |
20515 | |
20516 | { (exit 0); exit 0; } |
20517 | _ACEOF |
20518 | chmod +x $CONFIG_STATUS |
20519 | ac_clean_files=$ac_clean_files_save |
20520 | |
20521 | |
20522 | # configure is writing to config.log, and then calls config.status. |
20523 | # config.status does its own redirection, appending to config.log. |
20524 | # Unfortunately, on DOS this fails, as config.log is still kept open |
20525 | # by configure, so config.status won't be able to write to it; its |
20526 | # output is simply discarded. So we exec the FD to /dev/null, |
20527 | # effectively closing config.log, so it can be properly (re)opened and |
20528 | # appended to by config.status. When coming back to configure, we |
20529 | # need to make the FD available again. |
20530 | if test "$no_create" != yes; then |
20531 | ac_cs_success=: |
20532 | ac_config_status_args= |
20533 | test "$silent" = yes && |
20534 | ac_config_status_args="$ac_config_status_args --quiet" |
20535 | exec 5>/dev/null |
20536 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
20537 | exec 5>>config.log |
20538 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
20539 | # would make configure fail if this is the last instruction. |
20540 | $ac_cs_success || { (exit 1); exit 1; } |
20541 | fi |
20542 | |