Mercurial > hg > sv-dependency-builds
comparison src/libid3tag-0.15.1b/configure @ 85:545efbb81310
Import initial set of sources
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Mon, 18 Mar 2013 14:12:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 85:545efbb81310 |
---|---|
1 #! /bin/sh | |
2 # From configure.ac Id: configure.ac,v 1.12 2004/01/23 23:22:46 rob Exp . | |
3 # Guess values for system-dependent variables and create Makefiles. | |
4 # Generated by GNU Autoconf 2.59 for ID3 Tag 0.15.1b. | |
5 # | |
6 # Report bugs to <support@underbit.com>. | |
7 # | |
8 # Copyright (C) 2003 Free Software Foundation, Inc. | |
9 # This configure script is free software; the Free Software Foundation | |
10 # gives unlimited permission to copy, distribute and modify it. | |
11 ## --------------------- ## | |
12 ## M4sh Initialization. ## | |
13 ## --------------------- ## | |
14 | |
15 # Be Bourne compatible | |
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 emulate sh | |
18 NULLCMD=: | |
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 # is contrary to our usage. Disable this feature. | |
21 alias -g '${1+"$@"}'='"$@"' | |
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 set -o posix | |
24 fi | |
25 DUALCASE=1; export DUALCASE # for MKS sh | |
26 | |
27 # Support unset when possible. | |
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
29 as_unset=unset | |
30 else | |
31 as_unset=false | |
32 fi | |
33 | |
34 | |
35 # Work around bugs in pre-3.0 UWIN ksh. | |
36 $as_unset ENV MAIL MAILPATH | |
37 PS1='$ ' | |
38 PS2='> ' | |
39 PS4='+ ' | |
40 | |
41 # NLS nuisances. | |
42 for as_var in \ | |
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 LC_TELEPHONE LC_TIME | |
46 do | |
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
48 eval $as_var=C; export $as_var | |
49 else | |
50 $as_unset $as_var | |
51 fi | |
52 done | |
53 | |
54 # Required to use basename. | |
55 if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 as_expr=expr | |
57 else | |
58 as_expr=false | |
59 fi | |
60 | |
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 as_basename=basename | |
63 else | |
64 as_basename=false | |
65 fi | |
66 | |
67 | |
68 # Name of the executable. | |
69 as_me=`$as_basename "$0" || | |
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 X"$0" : 'X\(//\)$' \| \ | |
72 X"$0" : 'X\(/\)$' \| \ | |
73 . : '\(.\)' 2>/dev/null || | |
74 echo X/"$0" | | |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 /^X\/\(\/\).*/{ s//\1/; q; } | |
78 s/.*/./; q'` | |
79 | |
80 | |
81 # PATH needs CR, and LINENO needs CR and PATH. | |
82 # Avoid depending upon Character Ranges. | |
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 as_cr_digits='0123456789' | |
87 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | |
89 # The user is always right. | |
90 if test "${PATH_SEPARATOR+set}" != set; then | |
91 echo "#! /bin/sh" >conf$$.sh | |
92 echo "exit 0" >>conf$$.sh | |
93 chmod +x conf$$.sh | |
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 PATH_SEPARATOR=';' | |
96 else | |
97 PATH_SEPARATOR=: | |
98 fi | |
99 rm -f conf$$.sh | |
100 fi | |
101 | |
102 | |
103 as_lineno_1=$LINENO | |
104 as_lineno_2=$LINENO | |
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 # Find who we are. Look in the path if we contain no path at all | |
109 # relative or not. | |
110 case $0 in | |
111 *[\\/]* ) as_myself=$0 ;; | |
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 for as_dir in $PATH | |
114 do | |
115 IFS=$as_save_IFS | |
116 test -z "$as_dir" && as_dir=. | |
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 done | |
119 | |
120 ;; | |
121 esac | |
122 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 # in which case we are not to be found in the path. | |
124 if test "x$as_myself" = x; then | |
125 as_myself=$0 | |
126 fi | |
127 if test ! -f "$as_myself"; then | |
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 { (exit 1); exit 1; }; } | |
130 fi | |
131 case $CONFIG_SHELL in | |
132 '') | |
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 do | |
136 IFS=$as_save_IFS | |
137 test -z "$as_dir" && as_dir=. | |
138 for as_base in sh bash ksh sh5; do | |
139 case $as_dir in | |
140 /*) | |
141 if ("$as_dir/$as_base" -c ' | |
142 as_lineno_1=$LINENO | |
143 as_lineno_2=$LINENO | |
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 CONFIG_SHELL=$as_dir/$as_base | |
150 export CONFIG_SHELL | |
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 fi;; | |
153 esac | |
154 done | |
155 done | |
156 ;; | |
157 esac | |
158 | |
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 # uniformly replaced by the line number. The first 'sed' inserts a | |
161 # line-number line before each line; the second 'sed' does the real | |
162 # work. The second script uses 'N' to pair each line-number line | |
163 # with the numbered line, and appends trailing '-' during | |
164 # substitution so that $LINENO is not a special case at line end. | |
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 sed '=' <$as_myself | | |
168 sed ' | |
169 N | |
170 s,$,-, | |
171 : loop | |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 t loop | |
174 s,-$,, | |
175 s,^['$as_cr_digits']*\n,, | |
176 ' >$as_me.lineno && | |
177 chmod +x $as_me.lineno || | |
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 { (exit 1); exit 1; }; } | |
180 | |
181 # Don't try to exec as it changes $[0], causing all sort of problems | |
182 # (the dirname of $[0] is not the place where we might find the | |
183 # original and so on. Autoconf is especially sensible to this). | |
184 . ./$as_me.lineno | |
185 # Exit status is that of the last command. | |
186 exit | |
187 } | |
188 | |
189 | |
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 *c*,-n*) ECHO_N= ECHO_C=' | |
192 ' ECHO_T=' ' ;; | |
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 esac | |
196 | |
197 if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 as_expr=expr | |
199 else | |
200 as_expr=false | |
201 fi | |
202 | |
203 rm -f conf$$ conf$$.exe conf$$.file | |
204 echo >conf$$.file | |
205 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 # We could just check for DJGPP; but this test a) works b) is more generic | |
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 if test -f conf$$.exe; then | |
209 # Don't use ln at all; we don't have any links | |
210 as_ln_s='cp -p' | |
211 else | |
212 as_ln_s='ln -s' | |
213 fi | |
214 elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 as_ln_s=ln | |
216 else | |
217 as_ln_s='cp -p' | |
218 fi | |
219 rm -f conf$$ conf$$.exe conf$$.file | |
220 | |
221 if mkdir -p . 2>/dev/null; then | |
222 as_mkdir_p=: | |
223 else | |
224 test -d ./-p && rmdir ./-p | |
225 as_mkdir_p=false | |
226 fi | |
227 | |
228 as_executable_p="test -f" | |
229 | |
230 # Sed expression to map a string onto a valid CPP name. | |
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
232 | |
233 # Sed expression to map a string onto a valid variable name. | |
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
235 | |
236 | |
237 # IFS | |
238 # We need space, tab and new line, in precisely that order. | |
239 as_nl=' | |
240 ' | |
241 IFS=" $as_nl" | |
242 | |
243 # CDPATH. | |
244 $as_unset CDPATH | |
245 | |
246 | |
247 | |
248 # Check that we are running under the correct shell. | |
249 SHELL=${CONFIG_SHELL-/bin/sh} | |
250 | |
251 case X$ECHO in | |
252 X*--fallback-echo) | |
253 # Remove one level of quotation (which was required for Make). | |
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
255 ;; | |
256 esac | |
257 | |
258 echo=${ECHO-echo} | |
259 if test "X$1" = X--no-reexec; then | |
260 # Discard the --no-reexec flag, and continue. | |
261 shift | |
262 elif test "X$1" = X--fallback-echo; then | |
263 # Avoid inline document here, it may be left over | |
264 : | |
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
266 # Yippee, $echo works! | |
267 : | |
268 else | |
269 # Restart under the correct shell. | |
270 exec $SHELL "$0" --no-reexec ${1+"$@"} | |
271 fi | |
272 | |
273 if test "X$1" = X--fallback-echo; then | |
274 # used as fallback echo | |
275 shift | |
276 cat <<EOF | |
277 $* | |
278 EOF | |
279 exit 0 | |
280 fi | |
281 | |
282 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
283 # if CDPATH is set. | |
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
285 | |
286 if test -z "$ECHO"; then | |
287 if test "X${echo_test_string+set}" != Xset; then | |
288 # find a string as large as possible, as long as the shell can cope with it | |
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
291 if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
292 echo_test_string="`eval $cmd`" && | |
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
294 then | |
295 break | |
296 fi | |
297 done | |
298 fi | |
299 | |
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
302 test "X$echo_testing_string" = "X$echo_test_string"; then | |
303 : | |
304 else | |
305 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
306 # backslashes. This makes it impossible to quote backslashes using | |
307 # echo "$something" | sed 's/\\/\\\\/g' | |
308 # | |
309 # So, first we look for a working echo in the user's PATH. | |
310 | |
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
312 for dir in $PATH /usr/ucb; do | |
313 IFS="$lt_save_ifs" | |
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
317 test "X$echo_testing_string" = "X$echo_test_string"; then | |
318 echo="$dir/echo" | |
319 break | |
320 fi | |
321 done | |
322 IFS="$lt_save_ifs" | |
323 | |
324 if test "X$echo" = Xecho; then | |
325 # We didn't find a better echo, so look for alternatives. | |
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
328 test "X$echo_testing_string" = "X$echo_test_string"; then | |
329 # This shell has a builtin print -r that does the trick. | |
330 echo='print -r' | |
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
332 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
333 # If we have ksh, try running configure again with it. | |
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
335 export ORIGINAL_CONFIG_SHELL | |
336 CONFIG_SHELL=/bin/ksh | |
337 export CONFIG_SHELL | |
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
339 else | |
340 # Try using printf. | |
341 echo='printf %s\n' | |
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
344 test "X$echo_testing_string" = "X$echo_test_string"; then | |
345 # Cool, printf works | |
346 : | |
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
348 test "X$echo_testing_string" = 'X\t' && | |
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
350 test "X$echo_testing_string" = "X$echo_test_string"; then | |
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
352 export CONFIG_SHELL | |
353 SHELL="$CONFIG_SHELL" | |
354 export SHELL | |
355 echo="$CONFIG_SHELL $0 --fallback-echo" | |
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
357 test "X$echo_testing_string" = 'X\t' && | |
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
359 test "X$echo_testing_string" = "X$echo_test_string"; then | |
360 echo="$CONFIG_SHELL $0 --fallback-echo" | |
361 else | |
362 # maybe with a smaller string... | |
363 prev=: | |
364 | |
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
367 then | |
368 break | |
369 fi | |
370 prev="$cmd" | |
371 done | |
372 | |
373 if test "$prev" != 'sed 50q "$0"'; then | |
374 echo_test_string=`eval $prev` | |
375 export echo_test_string | |
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
377 else | |
378 # Oops. We lost completely, so just stick with echo. | |
379 echo=echo | |
380 fi | |
381 fi | |
382 fi | |
383 fi | |
384 fi | |
385 fi | |
386 | |
387 # Copy echo and quote the copy suitably for passing to libtool from | |
388 # the Makefile, instead of quoting the original, which is used later. | |
389 ECHO=$echo | |
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
392 fi | |
393 | |
394 | |
395 | |
396 | |
397 tagnames=${tagnames+${tagnames},}CXX | |
398 | |
399 tagnames=${tagnames+${tagnames},}F77 | |
400 | |
401 # Name of the host. | |
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
403 # so uname gets run too. | |
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
405 | |
406 exec 6>&1 | |
407 | |
408 # | |
409 # Initializations. | |
410 # | |
411 ac_default_prefix=/usr/local | |
412 ac_config_libobj_dir=. | |
413 cross_compiling=no | |
414 subdirs= | |
415 MFLAGS= | |
416 MAKEFLAGS= | |
417 SHELL=${CONFIG_SHELL-/bin/sh} | |
418 | |
419 # Maximum number of lines to put in a shell here document. | |
420 # This variable seems obsolete. It should probably be removed, and | |
421 # only ac_max_sed_lines should be used. | |
422 : ${ac_max_here_lines=38} | |
423 | |
424 # Identity of this package. | |
425 PACKAGE_NAME='ID3 Tag' | |
426 PACKAGE_TARNAME='libid3tag' | |
427 PACKAGE_VERSION='0.15.1b' | |
428 PACKAGE_STRING='ID3 Tag 0.15.1b' | |
429 PACKAGE_BUGREPORT='support@underbit.com' | |
430 | |
431 ac_unique_file="id3tag.h" | |
432 # Factoring default headers for most tests. | |
433 ac_includes_default="\ | |
434 #include <stdio.h> | |
435 #if HAVE_SYS_TYPES_H | |
436 # include <sys/types.h> | |
437 #endif | |
438 #if HAVE_SYS_STAT_H | |
439 # include <sys/stat.h> | |
440 #endif | |
441 #if STDC_HEADERS | |
442 # include <stdlib.h> | |
443 # include <stddef.h> | |
444 #else | |
445 # if HAVE_STDLIB_H | |
446 # include <stdlib.h> | |
447 # endif | |
448 #endif | |
449 #if HAVE_STRING_H | |
450 # if !STDC_HEADERS && HAVE_MEMORY_H | |
451 # include <memory.h> | |
452 # endif | |
453 # include <string.h> | |
454 #endif | |
455 #if HAVE_STRINGS_H | |
456 # include <strings.h> | |
457 #endif | |
458 #if HAVE_INTTYPES_H | |
459 # include <inttypes.h> | |
460 #else | |
461 # if HAVE_STDINT_H | |
462 # include <stdint.h> | |
463 # endif | |
464 #endif | |
465 #if HAVE_UNISTD_H | |
466 # include <unistd.h> | |
467 #endif" | |
468 | |
469 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S 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 LIBTOOL_DEPS DEBUG_TRUE DEBUG_FALSE LIBOBJS LTLIBOBJS' | |
470 ac_subst_files='' | |
471 | |
472 # Initialize some variables set by options. | |
473 ac_init_help= | |
474 ac_init_version=false | |
475 # The variables have the same names as the options, with | |
476 # dashes changed to underlines. | |
477 cache_file=/dev/null | |
478 exec_prefix=NONE | |
479 no_create= | |
480 no_recursion= | |
481 prefix=NONE | |
482 program_prefix=NONE | |
483 program_suffix=NONE | |
484 program_transform_name=s,x,x, | |
485 silent= | |
486 site= | |
487 srcdir= | |
488 verbose= | |
489 x_includes=NONE | |
490 x_libraries=NONE | |
491 | |
492 # Installation directory options. | |
493 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
494 # and all the variables that are supposed to be based on exec_prefix | |
495 # by default will actually change. | |
496 # Use braces instead of parens because sh, perl, etc. also accept them. | |
497 bindir='${exec_prefix}/bin' | |
498 sbindir='${exec_prefix}/sbin' | |
499 libexecdir='${exec_prefix}/libexec' | |
500 datadir='${prefix}/share' | |
501 sysconfdir='${prefix}/etc' | |
502 sharedstatedir='${prefix}/com' | |
503 localstatedir='${prefix}/var' | |
504 libdir='${exec_prefix}/lib' | |
505 includedir='${prefix}/include' | |
506 oldincludedir='/usr/include' | |
507 infodir='${prefix}/info' | |
508 mandir='${prefix}/man' | |
509 | |
510 ac_prev= | |
511 for ac_option | |
512 do | |
513 # If the previous option needs an argument, assign it. | |
514 if test -n "$ac_prev"; then | |
515 eval "$ac_prev=\$ac_option" | |
516 ac_prev= | |
517 continue | |
518 fi | |
519 | |
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
521 | |
522 # Accept the important Cygnus configure options, so we can diagnose typos. | |
523 | |
524 case $ac_option in | |
525 | |
526 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
527 ac_prev=bindir ;; | |
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
529 bindir=$ac_optarg ;; | |
530 | |
531 -build | --build | --buil | --bui | --bu) | |
532 ac_prev=build_alias ;; | |
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
534 build_alias=$ac_optarg ;; | |
535 | |
536 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
538 ac_prev=cache_file ;; | |
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
541 cache_file=$ac_optarg ;; | |
542 | |
543 --config-cache | -C) | |
544 cache_file=config.cache ;; | |
545 | |
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
547 ac_prev=datadir ;; | |
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
549 | --da=*) | |
550 datadir=$ac_optarg ;; | |
551 | |
552 -disable-* | --disable-*) | |
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
554 # Reject names that are not valid shell variable names. | |
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
557 { (exit 1); exit 1; }; } | |
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
559 eval "enable_$ac_feature=no" ;; | |
560 | |
561 -enable-* | --enable-*) | |
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
563 # Reject names that are not valid shell variable names. | |
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
566 { (exit 1); exit 1; }; } | |
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
568 case $ac_option in | |
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
570 *) ac_optarg=yes ;; | |
571 esac | |
572 eval "enable_$ac_feature='$ac_optarg'" ;; | |
573 | |
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
576 | --exec | --exe | --ex) | |
577 ac_prev=exec_prefix ;; | |
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
580 | --exec=* | --exe=* | --ex=*) | |
581 exec_prefix=$ac_optarg ;; | |
582 | |
583 -gas | --gas | --ga | --g) | |
584 # Obsolete; use --with-gas. | |
585 with_gas=yes ;; | |
586 | |
587 -help | --help | --hel | --he | -h) | |
588 ac_init_help=long ;; | |
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
590 ac_init_help=recursive ;; | |
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
592 ac_init_help=short ;; | |
593 | |
594 -host | --host | --hos | --ho) | |
595 ac_prev=host_alias ;; | |
596 -host=* | --host=* | --hos=* | --ho=*) | |
597 host_alias=$ac_optarg ;; | |
598 | |
599 -includedir | --includedir | --includedi | --included | --include \ | |
600 | --includ | --inclu | --incl | --inc) | |
601 ac_prev=includedir ;; | |
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
603 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
604 includedir=$ac_optarg ;; | |
605 | |
606 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
607 ac_prev=infodir ;; | |
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
609 infodir=$ac_optarg ;; | |
610 | |
611 -libdir | --libdir | --libdi | --libd) | |
612 ac_prev=libdir ;; | |
613 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
614 libdir=$ac_optarg ;; | |
615 | |
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
617 | --libexe | --libex | --libe) | |
618 ac_prev=libexecdir ;; | |
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
620 | --libexe=* | --libex=* | --libe=*) | |
621 libexecdir=$ac_optarg ;; | |
622 | |
623 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
624 | --localstate | --localstat | --localsta | --localst \ | |
625 | --locals | --local | --loca | --loc | --lo) | |
626 ac_prev=localstatedir ;; | |
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
630 localstatedir=$ac_optarg ;; | |
631 | |
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
633 ac_prev=mandir ;; | |
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
635 mandir=$ac_optarg ;; | |
636 | |
637 -nfp | --nfp | --nf) | |
638 # Obsolete; use --without-fp. | |
639 with_fp=no ;; | |
640 | |
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
642 | --no-cr | --no-c | -n) | |
643 no_create=yes ;; | |
644 | |
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
647 no_recursion=yes ;; | |
648 | |
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
651 | --oldin | --oldi | --old | --ol | --o) | |
652 ac_prev=oldincludedir ;; | |
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
656 oldincludedir=$ac_optarg ;; | |
657 | |
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
659 ac_prev=prefix ;; | |
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
661 prefix=$ac_optarg ;; | |
662 | |
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
664 | --program-pre | --program-pr | --program-p) | |
665 ac_prev=program_prefix ;; | |
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
668 program_prefix=$ac_optarg ;; | |
669 | |
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
671 | --program-suf | --program-su | --program-s) | |
672 ac_prev=program_suffix ;; | |
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
675 program_suffix=$ac_optarg ;; | |
676 | |
677 -program-transform-name | --program-transform-name \ | |
678 | --program-transform-nam | --program-transform-na \ | |
679 | --program-transform-n | --program-transform- \ | |
680 | --program-transform | --program-transfor \ | |
681 | --program-transfo | --program-transf \ | |
682 | --program-trans | --program-tran \ | |
683 | --progr-tra | --program-tr | --program-t) | |
684 ac_prev=program_transform_name ;; | |
685 -program-transform-name=* | --program-transform-name=* \ | |
686 | --program-transform-nam=* | --program-transform-na=* \ | |
687 | --program-transform-n=* | --program-transform-=* \ | |
688 | --program-transform=* | --program-transfor=* \ | |
689 | --program-transfo=* | --program-transf=* \ | |
690 | --program-trans=* | --program-tran=* \ | |
691 | --progr-tra=* | --program-tr=* | --program-t=*) | |
692 program_transform_name=$ac_optarg ;; | |
693 | |
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
695 | -silent | --silent | --silen | --sile | --sil) | |
696 silent=yes ;; | |
697 | |
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
699 ac_prev=sbindir ;; | |
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
701 | --sbi=* | --sb=*) | |
702 sbindir=$ac_optarg ;; | |
703 | |
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
706 | --sharedst | --shareds | --shared | --share | --shar \ | |
707 | --sha | --sh) | |
708 ac_prev=sharedstatedir ;; | |
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
712 | --sha=* | --sh=*) | |
713 sharedstatedir=$ac_optarg ;; | |
714 | |
715 -site | --site | --sit) | |
716 ac_prev=site ;; | |
717 -site=* | --site=* | --sit=*) | |
718 site=$ac_optarg ;; | |
719 | |
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
721 ac_prev=srcdir ;; | |
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
723 srcdir=$ac_optarg ;; | |
724 | |
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
726 | --syscon | --sysco | --sysc | --sys | --sy) | |
727 ac_prev=sysconfdir ;; | |
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
730 sysconfdir=$ac_optarg ;; | |
731 | |
732 -target | --target | --targe | --targ | --tar | --ta | --t) | |
733 ac_prev=target_alias ;; | |
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
735 target_alias=$ac_optarg ;; | |
736 | |
737 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
738 verbose=yes ;; | |
739 | |
740 -version | --version | --versio | --versi | --vers | -V) | |
741 ac_init_version=: ;; | |
742 | |
743 -with-* | --with-*) | |
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
745 # Reject names that are not valid shell variable names. | |
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
747 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
748 { (exit 1); exit 1; }; } | |
749 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
750 case $ac_option in | |
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
752 *) ac_optarg=yes ;; | |
753 esac | |
754 eval "with_$ac_package='$ac_optarg'" ;; | |
755 | |
756 -without-* | --without-*) | |
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
758 # Reject names that are not valid shell variable names. | |
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
760 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
761 { (exit 1); exit 1; }; } | |
762 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
763 eval "with_$ac_package=no" ;; | |
764 | |
765 --x) | |
766 # Obsolete; use --with-x. | |
767 with_x=yes ;; | |
768 | |
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
770 | --x-incl | --x-inc | --x-in | --x-i) | |
771 ac_prev=x_includes ;; | |
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
774 x_includes=$ac_optarg ;; | |
775 | |
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
778 ac_prev=x_libraries ;; | |
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
781 x_libraries=$ac_optarg ;; | |
782 | |
783 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
784 Try \`$0 --help' for more information." >&2 | |
785 { (exit 1); exit 1; }; } | |
786 ;; | |
787 | |
788 *=*) | |
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
790 # Reject names that are not valid shell variable names. | |
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
793 { (exit 1); exit 1; }; } | |
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
795 eval "$ac_envvar='$ac_optarg'" | |
796 export $ac_envvar ;; | |
797 | |
798 *) | |
799 # FIXME: should be removed in autoconf 3.0. | |
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
804 ;; | |
805 | |
806 esac | |
807 done | |
808 | |
809 if test -n "$ac_prev"; then | |
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
811 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
812 { (exit 1); exit 1; }; } | |
813 fi | |
814 | |
815 # Be sure to have absolute paths. | |
816 for ac_var in exec_prefix prefix | |
817 do | |
818 eval ac_val=$`echo $ac_var` | |
819 case $ac_val in | |
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
822 { (exit 1); exit 1; }; };; | |
823 esac | |
824 done | |
825 | |
826 # Be sure to have absolute paths. | |
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
828 localstatedir libdir includedir oldincludedir infodir mandir | |
829 do | |
830 eval ac_val=$`echo $ac_var` | |
831 case $ac_val in | |
832 [\\/$]* | ?:[\\/]* ) ;; | |
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
834 { (exit 1); exit 1; }; };; | |
835 esac | |
836 done | |
837 | |
838 # There might be people who depend on the old broken behavior: `$host' | |
839 # used to hold the argument of --host etc. | |
840 # FIXME: To remove some day. | |
841 build=$build_alias | |
842 host=$host_alias | |
843 target=$target_alias | |
844 | |
845 # FIXME: To remove some day. | |
846 if test "x$host_alias" != x; then | |
847 if test "x$build_alias" = x; then | |
848 cross_compiling=maybe | |
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
850 If a cross compiler is detected then cross compile mode will be used." >&2 | |
851 elif test "x$build_alias" != "x$host_alias"; then | |
852 cross_compiling=yes | |
853 fi | |
854 fi | |
855 | |
856 ac_tool_prefix= | |
857 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
858 | |
859 test "$silent" = yes && exec 6>/dev/null | |
860 | |
861 | |
862 # Find the source files, if location was not specified. | |
863 if test -z "$srcdir"; then | |
864 ac_srcdir_defaulted=yes | |
865 # Try the directory containing this script, then its parent. | |
866 ac_confdir=`(dirname "$0") 2>/dev/null || | |
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
868 X"$0" : 'X\(//\)[^/]' \| \ | |
869 X"$0" : 'X\(//\)$' \| \ | |
870 X"$0" : 'X\(/\)' \| \ | |
871 . : '\(.\)' 2>/dev/null || | |
872 echo X"$0" | | |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
875 /^X\(\/\/\)$/{ s//\1/; q; } | |
876 /^X\(\/\).*/{ s//\1/; q; } | |
877 s/.*/./; q'` | |
878 srcdir=$ac_confdir | |
879 if test ! -r $srcdir/$ac_unique_file; then | |
880 srcdir=.. | |
881 fi | |
882 else | |
883 ac_srcdir_defaulted=no | |
884 fi | |
885 if test ! -r $srcdir/$ac_unique_file; then | |
886 if test "$ac_srcdir_defaulted" = yes; then | |
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
888 { (exit 1); exit 1; }; } | |
889 else | |
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
891 { (exit 1); exit 1; }; } | |
892 fi | |
893 fi | |
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
896 { (exit 1); exit 1; }; } | |
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
898 ac_env_build_alias_set=${build_alias+set} | |
899 ac_env_build_alias_value=$build_alias | |
900 ac_cv_env_build_alias_set=${build_alias+set} | |
901 ac_cv_env_build_alias_value=$build_alias | |
902 ac_env_host_alias_set=${host_alias+set} | |
903 ac_env_host_alias_value=$host_alias | |
904 ac_cv_env_host_alias_set=${host_alias+set} | |
905 ac_cv_env_host_alias_value=$host_alias | |
906 ac_env_target_alias_set=${target_alias+set} | |
907 ac_env_target_alias_value=$target_alias | |
908 ac_cv_env_target_alias_set=${target_alias+set} | |
909 ac_cv_env_target_alias_value=$target_alias | |
910 ac_env_CC_set=${CC+set} | |
911 ac_env_CC_value=$CC | |
912 ac_cv_env_CC_set=${CC+set} | |
913 ac_cv_env_CC_value=$CC | |
914 ac_env_CFLAGS_set=${CFLAGS+set} | |
915 ac_env_CFLAGS_value=$CFLAGS | |
916 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
917 ac_cv_env_CFLAGS_value=$CFLAGS | |
918 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
919 ac_env_LDFLAGS_value=$LDFLAGS | |
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
921 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
923 ac_env_CPPFLAGS_value=$CPPFLAGS | |
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
926 ac_env_CPP_set=${CPP+set} | |
927 ac_env_CPP_value=$CPP | |
928 ac_cv_env_CPP_set=${CPP+set} | |
929 ac_cv_env_CPP_value=$CPP | |
930 ac_env_CXX_set=${CXX+set} | |
931 ac_env_CXX_value=$CXX | |
932 ac_cv_env_CXX_set=${CXX+set} | |
933 ac_cv_env_CXX_value=$CXX | |
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
935 ac_env_CXXFLAGS_value=$CXXFLAGS | |
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
938 ac_env_CXXCPP_set=${CXXCPP+set} | |
939 ac_env_CXXCPP_value=$CXXCPP | |
940 ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
941 ac_cv_env_CXXCPP_value=$CXXCPP | |
942 ac_env_F77_set=${F77+set} | |
943 ac_env_F77_value=$F77 | |
944 ac_cv_env_F77_set=${F77+set} | |
945 ac_cv_env_F77_value=$F77 | |
946 ac_env_FFLAGS_set=${FFLAGS+set} | |
947 ac_env_FFLAGS_value=$FFLAGS | |
948 ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
949 ac_cv_env_FFLAGS_value=$FFLAGS | |
950 | |
951 # | |
952 # Report the --help message. | |
953 # | |
954 if test "$ac_init_help" = "long"; then | |
955 # Omit some internal or obsolete options to make the list less imposing. | |
956 # This message is too long to be a string in the A/UX 3.1 sh. | |
957 cat <<_ACEOF | |
958 \`configure' configures ID3 Tag 0.15.1b to adapt to many kinds of systems. | |
959 | |
960 Usage: $0 [OPTION]... [VAR=VALUE]... | |
961 | |
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
963 VAR=VALUE. See below for descriptions of some of the useful variables. | |
964 | |
965 Defaults for the options are specified in brackets. | |
966 | |
967 Configuration: | |
968 -h, --help display this help and exit | |
969 --help=short display options specific to this package | |
970 --help=recursive display the short help of all the included packages | |
971 -V, --version display version information and exit | |
972 -q, --quiet, --silent do not print \`checking...' messages | |
973 --cache-file=FILE cache test results in FILE [disabled] | |
974 -C, --config-cache alias for \`--cache-file=config.cache' | |
975 -n, --no-create do not create output files | |
976 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
977 | |
978 _ACEOF | |
979 | |
980 cat <<_ACEOF | |
981 Installation directories: | |
982 --prefix=PREFIX install architecture-independent files in PREFIX | |
983 [$ac_default_prefix] | |
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
985 [PREFIX] | |
986 | |
987 By default, \`make install' will install all the files in | |
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
990 for instance \`--prefix=\$HOME'. | |
991 | |
992 For better control, use the options below. | |
993 | |
994 Fine tuning of the installation directories: | |
995 --bindir=DIR user executables [EPREFIX/bin] | |
996 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
997 --libexecdir=DIR program executables [EPREFIX/libexec] | |
998 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1002 --libdir=DIR object code libraries [EPREFIX/lib] | |
1003 --includedir=DIR C header files [PREFIX/include] | |
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1005 --infodir=DIR info documentation [PREFIX/info] | |
1006 --mandir=DIR man documentation [PREFIX/man] | |
1007 _ACEOF | |
1008 | |
1009 cat <<\_ACEOF | |
1010 | |
1011 Program names: | |
1012 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1013 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1015 | |
1016 System types: | |
1017 --build=BUILD configure for building on BUILD [guessed] | |
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1019 _ACEOF | |
1020 fi | |
1021 | |
1022 if test -n "$ac_init_help"; then | |
1023 case $ac_init_help in | |
1024 short | recursive ) echo "Configuration of ID3 Tag 0.15.1b:";; | |
1025 esac | |
1026 cat <<\_ACEOF | |
1027 | |
1028 Optional Features: | |
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1031 --disable-dependency-tracking speeds up one-time build | |
1032 --enable-dependency-tracking do not reject slow dependency extractors | |
1033 --enable-shared[=PKGS] | |
1034 build shared libraries [default=yes] | |
1035 --enable-static[=PKGS] | |
1036 build static libraries [default=yes] | |
1037 --enable-fast-install[=PKGS] | |
1038 optimize for fast installation [default=yes] | |
1039 --disable-libtool-lock avoid locking (might break parallel builds) | |
1040 --enable-profiling generate profiling code | |
1041 --enable-debugging enable diagnostic debugging support | |
1042 --disable-debugging do not enable debugging and use more optimization | |
1043 | |
1044 Optional Packages: | |
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1048 --with-pic try to use only PIC/non-PIC objects [default=use | |
1049 both] | |
1050 --with-tags[=TAGS] | |
1051 include additional configurations [automatic] | |
1052 | |
1053 Some influential environment variables: | |
1054 CC C compiler command | |
1055 CFLAGS C compiler flags | |
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1057 nonstandard directory <lib dir> | |
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1059 headers in a nonstandard directory <include dir> | |
1060 CPP C preprocessor | |
1061 CXX C++ compiler command | |
1062 CXXFLAGS C++ compiler flags | |
1063 CXXCPP C++ preprocessor | |
1064 F77 Fortran 77 compiler command | |
1065 FFLAGS Fortran 77 compiler flags | |
1066 | |
1067 Use these variables to override the choices made by `configure' or to help | |
1068 it to find libraries and programs with nonstandard names/locations. | |
1069 | |
1070 Report bugs to <support@underbit.com>. | |
1071 _ACEOF | |
1072 fi | |
1073 | |
1074 if test "$ac_init_help" = "recursive"; then | |
1075 # If there are subdirs, report their specific --help. | |
1076 ac_popdir=`pwd` | |
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1078 test -d $ac_dir || continue | |
1079 ac_builddir=. | |
1080 | |
1081 if test "$ac_dir" != .; then | |
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1083 # A "../" for each directory in $ac_dir_suffix. | |
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1085 else | |
1086 ac_dir_suffix= ac_top_builddir= | |
1087 fi | |
1088 | |
1089 case $srcdir in | |
1090 .) # No --srcdir option. We are building in place. | |
1091 ac_srcdir=. | |
1092 if test -z "$ac_top_builddir"; then | |
1093 ac_top_srcdir=. | |
1094 else | |
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1096 fi ;; | |
1097 [\\/]* | ?:[\\/]* ) # Absolute path. | |
1098 ac_srcdir=$srcdir$ac_dir_suffix; | |
1099 ac_top_srcdir=$srcdir ;; | |
1100 *) # Relative path. | |
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1103 esac | |
1104 | |
1105 # Do not use `cd foo && pwd` to compute absolute paths, because | |
1106 # the directories may not exist. | |
1107 case `pwd` in | |
1108 .) ac_abs_builddir="$ac_dir";; | |
1109 *) | |
1110 case "$ac_dir" in | |
1111 .) ac_abs_builddir=`pwd`;; | |
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1114 esac;; | |
1115 esac | |
1116 case $ac_abs_builddir in | |
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1118 *) | |
1119 case ${ac_top_builddir}. in | |
1120 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1123 esac;; | |
1124 esac | |
1125 case $ac_abs_builddir in | |
1126 .) ac_abs_srcdir=$ac_srcdir;; | |
1127 *) | |
1128 case $ac_srcdir in | |
1129 .) ac_abs_srcdir=$ac_abs_builddir;; | |
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1132 esac;; | |
1133 esac | |
1134 case $ac_abs_builddir in | |
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1136 *) | |
1137 case $ac_top_srcdir in | |
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1141 esac;; | |
1142 esac | |
1143 | |
1144 cd $ac_dir | |
1145 # Check for guested configure; otherwise get Cygnus style configure. | |
1146 if test -f $ac_srcdir/configure.gnu; then | |
1147 echo | |
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1149 elif test -f $ac_srcdir/configure; then | |
1150 echo | |
1151 $SHELL $ac_srcdir/configure --help=recursive | |
1152 elif test -f $ac_srcdir/configure.ac || | |
1153 test -f $ac_srcdir/configure.in; then | |
1154 echo | |
1155 $ac_configure --help | |
1156 else | |
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1158 fi | |
1159 cd "$ac_popdir" | |
1160 done | |
1161 fi | |
1162 | |
1163 test -n "$ac_init_help" && exit 0 | |
1164 if $ac_init_version; then | |
1165 cat <<\_ACEOF | |
1166 ID3 Tag configure 0.15.1b | |
1167 generated by GNU Autoconf 2.59 | |
1168 | |
1169 Copyright (C) 2003 Free Software Foundation, Inc. | |
1170 This configure script is free software; the Free Software Foundation | |
1171 gives unlimited permission to copy, distribute and modify it. | |
1172 _ACEOF | |
1173 exit 0 | |
1174 fi | |
1175 exec 5>config.log | |
1176 cat >&5 <<_ACEOF | |
1177 This file contains any messages produced by compilers while | |
1178 running configure, to aid debugging if configure makes a mistake. | |
1179 | |
1180 It was created by ID3 Tag $as_me 0.15.1b, which was | |
1181 generated by GNU Autoconf 2.59. Invocation command line was | |
1182 | |
1183 $ $0 $@ | |
1184 | |
1185 _ACEOF | |
1186 { | |
1187 cat <<_ASUNAME | |
1188 ## --------- ## | |
1189 ## Platform. ## | |
1190 ## --------- ## | |
1191 | |
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1197 | |
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1200 | |
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1208 | |
1209 _ASUNAME | |
1210 | |
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1212 for as_dir in $PATH | |
1213 do | |
1214 IFS=$as_save_IFS | |
1215 test -z "$as_dir" && as_dir=. | |
1216 echo "PATH: $as_dir" | |
1217 done | |
1218 | |
1219 } >&5 | |
1220 | |
1221 cat >&5 <<_ACEOF | |
1222 | |
1223 | |
1224 ## ----------- ## | |
1225 ## Core tests. ## | |
1226 ## ----------- ## | |
1227 | |
1228 _ACEOF | |
1229 | |
1230 | |
1231 # Keep a trace of the command line. | |
1232 # Strip out --no-create and --no-recursion so they do not pile up. | |
1233 # Strip out --silent because we don't want to record it for future runs. | |
1234 # Also quote any args containing shell meta-characters. | |
1235 # Make two passes to allow for proper duplicate-argument suppression. | |
1236 ac_configure_args= | |
1237 ac_configure_args0= | |
1238 ac_configure_args1= | |
1239 ac_sep= | |
1240 ac_must_keep_next=false | |
1241 for ac_pass in 1 2 | |
1242 do | |
1243 for ac_arg | |
1244 do | |
1245 case $ac_arg in | |
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1248 | -silent | --silent | --silen | --sile | --sil) | |
1249 continue ;; | |
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1252 esac | |
1253 case $ac_pass in | |
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1255 2) | |
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1257 if test $ac_must_keep_next = true; then | |
1258 ac_must_keep_next=false # Got value, back to normal. | |
1259 else | |
1260 case $ac_arg in | |
1261 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1264 | -with-* | --with-* | -without-* | --without-* | --x) | |
1265 case "$ac_configure_args0 " in | |
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1267 esac | |
1268 ;; | |
1269 -* ) ac_must_keep_next=true ;; | |
1270 esac | |
1271 fi | |
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1273 # Get rid of the leading space. | |
1274 ac_sep=" " | |
1275 ;; | |
1276 esac | |
1277 done | |
1278 done | |
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1281 | |
1282 # When interrupted or exit'd, cleanup temporary files, and complete | |
1283 # config.log. We remove comments because anyway the quotes in there | |
1284 # would cause problems or look ugly. | |
1285 # WARNING: Be sure not to use single quotes in there, as some shells, | |
1286 # such as our DU 5.0 friend, will then `close' the trap. | |
1287 trap 'exit_status=$? | |
1288 # Save into config.log some information that might help in debugging. | |
1289 { | |
1290 echo | |
1291 | |
1292 cat <<\_ASBOX | |
1293 ## ---------------- ## | |
1294 ## Cache variables. ## | |
1295 ## ---------------- ## | |
1296 _ASBOX | |
1297 echo | |
1298 # The following way of writing the cache mishandles newlines in values, | |
1299 { | |
1300 (set) 2>&1 | | |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1302 *ac_space=\ *) | |
1303 sed -n \ | |
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1306 ;; | |
1307 *) | |
1308 sed -n \ | |
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1310 ;; | |
1311 esac; | |
1312 } | |
1313 echo | |
1314 | |
1315 cat <<\_ASBOX | |
1316 ## ----------------- ## | |
1317 ## Output variables. ## | |
1318 ## ----------------- ## | |
1319 _ASBOX | |
1320 echo | |
1321 for ac_var in $ac_subst_vars | |
1322 do | |
1323 eval ac_val=$`echo $ac_var` | |
1324 echo "$ac_var='"'"'$ac_val'"'"'" | |
1325 done | sort | |
1326 echo | |
1327 | |
1328 if test -n "$ac_subst_files"; then | |
1329 cat <<\_ASBOX | |
1330 ## ------------- ## | |
1331 ## Output files. ## | |
1332 ## ------------- ## | |
1333 _ASBOX | |
1334 echo | |
1335 for ac_var in $ac_subst_files | |
1336 do | |
1337 eval ac_val=$`echo $ac_var` | |
1338 echo "$ac_var='"'"'$ac_val'"'"'" | |
1339 done | sort | |
1340 echo | |
1341 fi | |
1342 | |
1343 if test -s confdefs.h; then | |
1344 cat <<\_ASBOX | |
1345 ## ----------- ## | |
1346 ## confdefs.h. ## | |
1347 ## ----------- ## | |
1348 _ASBOX | |
1349 echo | |
1350 sed "/^$/d" confdefs.h | sort | |
1351 echo | |
1352 fi | |
1353 test "$ac_signal" != 0 && | |
1354 echo "$as_me: caught signal $ac_signal" | |
1355 echo "$as_me: exit $exit_status" | |
1356 } >&5 | |
1357 rm -f core *.core && | |
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1359 exit $exit_status | |
1360 ' 0 | |
1361 for ac_signal in 1 2 13 15; do | |
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1363 done | |
1364 ac_signal=0 | |
1365 | |
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1367 rm -rf conftest* confdefs.h | |
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1369 echo >confdefs.h | |
1370 | |
1371 # Predefined preprocessor variables. | |
1372 | |
1373 cat >>confdefs.h <<_ACEOF | |
1374 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1375 _ACEOF | |
1376 | |
1377 | |
1378 cat >>confdefs.h <<_ACEOF | |
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1380 _ACEOF | |
1381 | |
1382 | |
1383 cat >>confdefs.h <<_ACEOF | |
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1385 _ACEOF | |
1386 | |
1387 | |
1388 cat >>confdefs.h <<_ACEOF | |
1389 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1390 _ACEOF | |
1391 | |
1392 | |
1393 cat >>confdefs.h <<_ACEOF | |
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1395 _ACEOF | |
1396 | |
1397 | |
1398 # Let the site file select an alternate cache file if it wants to. | |
1399 # Prefer explicitly selected file to automatically selected ones. | |
1400 if test -z "$CONFIG_SITE"; then | |
1401 if test "x$prefix" != xNONE; then | |
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1403 else | |
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1405 fi | |
1406 fi | |
1407 for ac_site_file in $CONFIG_SITE; do | |
1408 if test -r "$ac_site_file"; then | |
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1410 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1411 sed 's/^/| /' "$ac_site_file" >&5 | |
1412 . "$ac_site_file" | |
1413 fi | |
1414 done | |
1415 | |
1416 if test -r "$cache_file"; then | |
1417 # Some versions of bash will fail to source /dev/null (special | |
1418 # files actually), so we avoid doing that. | |
1419 if test -f "$cache_file"; then | |
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1421 echo "$as_me: loading cache $cache_file" >&6;} | |
1422 case $cache_file in | |
1423 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1424 *) . ./$cache_file;; | |
1425 esac | |
1426 fi | |
1427 else | |
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1429 echo "$as_me: creating cache $cache_file" >&6;} | |
1430 >$cache_file | |
1431 fi | |
1432 | |
1433 # Check that the precious variables saved in the cache have kept the same | |
1434 # value. | |
1435 ac_cache_corrupted=false | |
1436 for ac_var in `(set) 2>&1 | | |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1439 eval ac_new_set=\$ac_env_${ac_var}_set | |
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1441 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1442 case $ac_old_set,$ac_new_set in | |
1443 set,) | |
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1446 ac_cache_corrupted=: ;; | |
1447 ,set) | |
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1450 ac_cache_corrupted=: ;; | |
1451 ,);; | |
1452 *) | |
1453 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1457 echo "$as_me: former value: $ac_old_val" >&2;} | |
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1459 echo "$as_me: current value: $ac_new_val" >&2;} | |
1460 ac_cache_corrupted=: | |
1461 fi;; | |
1462 esac | |
1463 # Pass precious variables to config.status. | |
1464 if test "$ac_new_set" = set; then | |
1465 case $ac_new_val in | |
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1468 *) ac_arg=$ac_var=$ac_new_val ;; | |
1469 esac | |
1470 case " $ac_configure_args " in | |
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1473 esac | |
1474 fi | |
1475 done | |
1476 if $ac_cache_corrupted; then | |
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1481 { (exit 1); exit 1; }; } | |
1482 fi | |
1483 | |
1484 ac_ext=c | |
1485 ac_cpp='$CPP $CPPFLAGS' | |
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | |
1514 | |
1515 | |
1516 | |
1517 | |
1518 | |
1519 | |
1520 am__api_version="1.8" | |
1521 ac_aux_dir= | |
1522 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1523 if 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/install.sh; then | |
1528 ac_aux_dir=$ac_dir | |
1529 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1530 break | |
1531 elif test -f $ac_dir/shtool; then | |
1532 ac_aux_dir=$ac_dir | |
1533 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1534 break | |
1535 fi | |
1536 done | |
1537 if test -z "$ac_aux_dir"; then | |
1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1539 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1540 { (exit 1); exit 1; }; } | |
1541 fi | |
1542 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1543 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1544 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1545 | |
1546 # Find a good install program. We prefer a C program (faster), | |
1547 # so one script is as good as another. But avoid the broken or | |
1548 # incompatible versions: | |
1549 # SysV /etc/install, /usr/sbin/install | |
1550 # SunOS /usr/etc/install | |
1551 # IRIX /sbin/install | |
1552 # AIX /bin/install | |
1553 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1557 # OS/2's system install, which has a completely different semantic | |
1558 # ./install, which can be erroneously created by make from ./install.sh. | |
1559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1561 if test -z "$INSTALL"; then | |
1562 if test "${ac_cv_path_install+set}" = set; then | |
1563 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1564 else | |
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1566 for as_dir in $PATH | |
1567 do | |
1568 IFS=$as_save_IFS | |
1569 test -z "$as_dir" && as_dir=. | |
1570 # Account for people who put trailing slashes in PATH elements. | |
1571 case $as_dir/ in | |
1572 ./ | .// | /cC/* | \ | |
1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1575 /usr/ucb/* ) ;; | |
1576 *) | |
1577 # OSF1 and SCO ODT 3.0 have their own names for install. | |
1578 # Don't use installbsd from OSF since it installs stuff as root | |
1579 # by default. | |
1580 for ac_prog in ginstall scoinst install; do | |
1581 for ac_exec_ext in '' $ac_executable_extensions; do | |
1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1583 if test $ac_prog = install && | |
1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1585 # AIX install. It has an incompatible calling convention. | |
1586 : | |
1587 elif test $ac_prog = install && | |
1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1589 # program-specific install script used by HP pwplus--don't use. | |
1590 : | |
1591 else | |
1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1593 break 3 | |
1594 fi | |
1595 fi | |
1596 done | |
1597 done | |
1598 ;; | |
1599 esac | |
1600 done | |
1601 | |
1602 | |
1603 fi | |
1604 if test "${ac_cv_path_install+set}" = set; then | |
1605 INSTALL=$ac_cv_path_install | |
1606 else | |
1607 # As a last resort, use the slow shell script. We don't cache a | |
1608 # path for INSTALL within a source directory, because that will | |
1609 # break other packages using the cache if that directory is | |
1610 # removed, or if the path is relative. | |
1611 INSTALL=$ac_install_sh | |
1612 fi | |
1613 fi | |
1614 echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1615 echo "${ECHO_T}$INSTALL" >&6 | |
1616 | |
1617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1618 # It thinks the first close brace ends the variable substitution. | |
1619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1620 | |
1621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1622 | |
1623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1624 | |
1625 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1626 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1627 # Just in case | |
1628 sleep 1 | |
1629 echo timestamp > conftest.file | |
1630 # Do `set' in a subshell so we don't clobber the current shell's | |
1631 # arguments. Must try -L first in case configure is actually a | |
1632 # symlink; some systems play weird games with the mod time of symlinks | |
1633 # (eg FreeBSD returns the mod time of the symlink's containing | |
1634 # directory). | |
1635 if ( | |
1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1637 if test "$*" = "X"; then | |
1638 # -L didn't work. | |
1639 set X `ls -t $srcdir/configure conftest.file` | |
1640 fi | |
1641 rm -f conftest.file | |
1642 if test "$*" != "X $srcdir/configure conftest.file" \ | |
1643 && test "$*" != "X conftest.file $srcdir/configure"; then | |
1644 | |
1645 # If neither matched, then we have a broken ls. This can happen | |
1646 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1647 # broken ls alias from the environment. This has actually | |
1648 # happened. Such a system could not be considered "sane". | |
1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1650 alias in your environment" >&5 | |
1651 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1652 alias in your environment" >&2;} | |
1653 { (exit 1); exit 1; }; } | |
1654 fi | |
1655 | |
1656 test "$2" = conftest.file | |
1657 ) | |
1658 then | |
1659 # Ok. | |
1660 : | |
1661 else | |
1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1663 Check your system clock" >&5 | |
1664 echo "$as_me: error: newly created file is older than distributed files! | |
1665 Check your system clock" >&2;} | |
1666 { (exit 1); exit 1; }; } | |
1667 fi | |
1668 echo "$as_me:$LINENO: result: yes" >&5 | |
1669 echo "${ECHO_T}yes" >&6 | |
1670 test "$program_prefix" != NONE && | |
1671 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1672 # Use a double $ so make ignores it. | |
1673 test "$program_suffix" != NONE && | |
1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1675 # Double any \ or $. echo might interpret backslashes. | |
1676 # By default was `s,x,x', remove it if useless. | |
1677 cat <<\_ACEOF >conftest.sed | |
1678 s/[\\$]/&&/g;s/;s,x,x,$// | |
1679 _ACEOF | |
1680 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1681 rm conftest.sed | |
1682 | |
1683 # expand $ac_aux_dir to an absolute path | |
1684 am_aux_dir=`cd $ac_aux_dir && pwd` | |
1685 | |
1686 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1687 # Use eval to expand $SHELL | |
1688 if eval "$MISSING --run true"; then | |
1689 am_missing_run="$MISSING --run " | |
1690 else | |
1691 am_missing_run= | |
1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1693 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1694 fi | |
1695 | |
1696 if mkdir -p -- . 2>/dev/null; then | |
1697 # Keeping the `.' argument allows $(mkdir_p) to be used without | |
1698 # argument. Indeed, we sometimes output rules like | |
1699 # $(mkdir_p) $(somedir) | |
1700 # where $(somedir) is conditionally defined. | |
1701 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more | |
1702 # expensive solution, as it forces Make to start a sub-shell.) | |
1703 mkdir_p='mkdir -p -- .' | |
1704 else | |
1705 # On NextStep and OpenStep, the `mkdir' command does not | |
1706 # recognize any option. It will interpret all options as | |
1707 # directories to create, and then abort because `.' already | |
1708 # exists. | |
1709 for d in ./-p ./--; | |
1710 do | |
1711 test -d $d && rmdir $d | |
1712 done | |
1713 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1714 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1715 mkdir_p='$(mkinstalldirs)' | |
1716 else | |
1717 mkdir_p='$(install_sh) -d' | |
1718 fi | |
1719 fi | |
1720 | |
1721 for ac_prog in gawk mawk nawk awk | |
1722 do | |
1723 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1724 set dummy $ac_prog; ac_word=$2 | |
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1727 if test "${ac_cv_prog_AWK+set}" = set; then | |
1728 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1729 else | |
1730 if test -n "$AWK"; then | |
1731 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1732 else | |
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1734 for as_dir in $PATH | |
1735 do | |
1736 IFS=$as_save_IFS | |
1737 test -z "$as_dir" && as_dir=. | |
1738 for ac_exec_ext in '' $ac_executable_extensions; do | |
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1740 ac_cv_prog_AWK="$ac_prog" | |
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1742 break 2 | |
1743 fi | |
1744 done | |
1745 done | |
1746 | |
1747 fi | |
1748 fi | |
1749 AWK=$ac_cv_prog_AWK | |
1750 if test -n "$AWK"; then | |
1751 echo "$as_me:$LINENO: result: $AWK" >&5 | |
1752 echo "${ECHO_T}$AWK" >&6 | |
1753 else | |
1754 echo "$as_me:$LINENO: result: no" >&5 | |
1755 echo "${ECHO_T}no" >&6 | |
1756 fi | |
1757 | |
1758 test -n "$AWK" && break | |
1759 done | |
1760 | |
1761 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1762 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1764 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1765 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1766 else | |
1767 cat >conftest.make <<\_ACEOF | |
1768 all: | |
1769 @echo 'ac_maketemp="$(MAKE)"' | |
1770 _ACEOF | |
1771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1772 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1773 if test -n "$ac_maketemp"; then | |
1774 eval ac_cv_prog_make_${ac_make}_set=yes | |
1775 else | |
1776 eval ac_cv_prog_make_${ac_make}_set=no | |
1777 fi | |
1778 rm -f conftest.make | |
1779 fi | |
1780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1781 echo "$as_me:$LINENO: result: yes" >&5 | |
1782 echo "${ECHO_T}yes" >&6 | |
1783 SET_MAKE= | |
1784 else | |
1785 echo "$as_me:$LINENO: result: no" >&5 | |
1786 echo "${ECHO_T}no" >&6 | |
1787 SET_MAKE="MAKE=${MAKE-make}" | |
1788 fi | |
1789 | |
1790 rm -rf .tst 2>/dev/null | |
1791 mkdir .tst 2>/dev/null | |
1792 if test -d .tst; then | |
1793 am__leading_dot=. | |
1794 else | |
1795 am__leading_dot=_ | |
1796 fi | |
1797 rmdir .tst 2>/dev/null | |
1798 | |
1799 # test to see if srcdir already configured | |
1800 if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1801 test -f $srcdir/config.status; then | |
1802 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1803 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1804 { (exit 1); exit 1; }; } | |
1805 fi | |
1806 | |
1807 # test whether we have cygpath | |
1808 if test -z "$CYGPATH_W"; then | |
1809 if (cygpath --version) >/dev/null 2>/dev/null; then | |
1810 CYGPATH_W='cygpath -w' | |
1811 else | |
1812 CYGPATH_W=echo | |
1813 fi | |
1814 fi | |
1815 | |
1816 | |
1817 # Define the identity of the package. | |
1818 PACKAGE='libid3tag' | |
1819 VERSION='0.15.1b' | |
1820 | |
1821 | |
1822 cat >>confdefs.h <<_ACEOF | |
1823 #define PACKAGE "$PACKAGE" | |
1824 _ACEOF | |
1825 | |
1826 | |
1827 cat >>confdefs.h <<_ACEOF | |
1828 #define VERSION "$VERSION" | |
1829 _ACEOF | |
1830 | |
1831 # Some tools Automake needs. | |
1832 | |
1833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1834 | |
1835 | |
1836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1837 | |
1838 | |
1839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1840 | |
1841 | |
1842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1843 | |
1844 | |
1845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1846 | |
1847 | |
1848 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1849 | |
1850 install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1851 | |
1852 # Installed binaries are usually stripped using `strip' when the user | |
1853 # run `make install-strip'. However `strip' might not be the right | |
1854 # tool to use in cross-compilation environments, therefore Automake | |
1855 # will honor the `STRIP' environment variable to overrule this program. | |
1856 if test "$cross_compiling" != no; then | |
1857 if test -n "$ac_tool_prefix"; then | |
1858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1859 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1862 if test "${ac_cv_prog_STRIP+set}" = set; then | |
1863 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1864 else | |
1865 if test -n "$STRIP"; then | |
1866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1867 else | |
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1869 for as_dir in $PATH | |
1870 do | |
1871 IFS=$as_save_IFS | |
1872 test -z "$as_dir" && as_dir=. | |
1873 for ac_exec_ext in '' $ac_executable_extensions; do | |
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1877 break 2 | |
1878 fi | |
1879 done | |
1880 done | |
1881 | |
1882 fi | |
1883 fi | |
1884 STRIP=$ac_cv_prog_STRIP | |
1885 if test -n "$STRIP"; then | |
1886 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1887 echo "${ECHO_T}$STRIP" >&6 | |
1888 else | |
1889 echo "$as_me:$LINENO: result: no" >&5 | |
1890 echo "${ECHO_T}no" >&6 | |
1891 fi | |
1892 | |
1893 fi | |
1894 if test -z "$ac_cv_prog_STRIP"; then | |
1895 ac_ct_STRIP=$STRIP | |
1896 # Extract the first word of "strip", so it can be a program name with args. | |
1897 set dummy strip; ac_word=$2 | |
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1901 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1902 else | |
1903 if test -n "$ac_ct_STRIP"; then | |
1904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1905 else | |
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1907 for as_dir in $PATH | |
1908 do | |
1909 IFS=$as_save_IFS | |
1910 test -z "$as_dir" && as_dir=. | |
1911 for ac_exec_ext in '' $ac_executable_extensions; do | |
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1913 ac_cv_prog_ac_ct_STRIP="strip" | |
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1915 break 2 | |
1916 fi | |
1917 done | |
1918 done | |
1919 | |
1920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1921 fi | |
1922 fi | |
1923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1924 if test -n "$ac_ct_STRIP"; then | |
1925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1926 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1927 else | |
1928 echo "$as_me:$LINENO: result: no" >&5 | |
1929 echo "${ECHO_T}no" >&6 | |
1930 fi | |
1931 | |
1932 STRIP=$ac_ct_STRIP | |
1933 else | |
1934 STRIP="$ac_cv_prog_STRIP" | |
1935 fi | |
1936 | |
1937 fi | |
1938 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1939 | |
1940 # We need awk for the "check" target. The system "awk" is bad on | |
1941 # some platforms. | |
1942 | |
1943 | |
1944 | |
1945 | |
1946 ac_config_headers="$ac_config_headers config.h" | |
1947 | |
1948 | |
1949 | |
1950 # Make sure we can run config.sub. | |
1951 $ac_config_sub sun4 >/dev/null 2>&1 || | |
1952 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1953 echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1954 { (exit 1); exit 1; }; } | |
1955 | |
1956 echo "$as_me:$LINENO: checking build system type" >&5 | |
1957 echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1958 if test "${ac_cv_build+set}" = set; then | |
1959 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1960 else | |
1961 ac_cv_build_alias=$build_alias | |
1962 test -z "$ac_cv_build_alias" && | |
1963 ac_cv_build_alias=`$ac_config_guess` | |
1964 test -z "$ac_cv_build_alias" && | |
1965 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1966 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1967 { (exit 1); exit 1; }; } | |
1968 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1969 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1970 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1971 { (exit 1); exit 1; }; } | |
1972 | |
1973 fi | |
1974 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1975 echo "${ECHO_T}$ac_cv_build" >&6 | |
1976 build=$ac_cv_build | |
1977 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1978 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1979 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1980 | |
1981 | |
1982 echo "$as_me:$LINENO: checking host system type" >&5 | |
1983 echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1984 if test "${ac_cv_host+set}" = set; then | |
1985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1986 else | |
1987 ac_cv_host_alias=$host_alias | |
1988 test -z "$ac_cv_host_alias" && | |
1989 ac_cv_host_alias=$ac_cv_build_alias | |
1990 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1991 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1992 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1993 { (exit 1); exit 1; }; } | |
1994 | |
1995 fi | |
1996 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1997 echo "${ECHO_T}$ac_cv_host" >&6 | |
1998 host=$ac_cv_host | |
1999 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2000 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2001 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2002 | |
2003 | |
2004 | |
2005 | |
2006 ac_ext=c | |
2007 ac_cpp='$CPP $CPPFLAGS' | |
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2011 if test -n "$ac_tool_prefix"; then | |
2012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2016 if test "${ac_cv_prog_CC+set}" = set; then | |
2017 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2018 else | |
2019 if test -n "$CC"; then | |
2020 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2021 else | |
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2023 for as_dir in $PATH | |
2024 do | |
2025 IFS=$as_save_IFS | |
2026 test -z "$as_dir" && as_dir=. | |
2027 for ac_exec_ext in '' $ac_executable_extensions; do | |
2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2029 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2031 break 2 | |
2032 fi | |
2033 done | |
2034 done | |
2035 | |
2036 fi | |
2037 fi | |
2038 CC=$ac_cv_prog_CC | |
2039 if test -n "$CC"; then | |
2040 echo "$as_me:$LINENO: result: $CC" >&5 | |
2041 echo "${ECHO_T}$CC" >&6 | |
2042 else | |
2043 echo "$as_me:$LINENO: result: no" >&5 | |
2044 echo "${ECHO_T}no" >&6 | |
2045 fi | |
2046 | |
2047 fi | |
2048 if test -z "$ac_cv_prog_CC"; then | |
2049 ac_ct_CC=$CC | |
2050 # Extract the first word of "gcc", so it can be a program name with args. | |
2051 set dummy gcc; ac_word=$2 | |
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2055 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2056 else | |
2057 if test -n "$ac_ct_CC"; then | |
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2059 else | |
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2061 for as_dir in $PATH | |
2062 do | |
2063 IFS=$as_save_IFS | |
2064 test -z "$as_dir" && as_dir=. | |
2065 for ac_exec_ext in '' $ac_executable_extensions; do | |
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2067 ac_cv_prog_ac_ct_CC="gcc" | |
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2069 break 2 | |
2070 fi | |
2071 done | |
2072 done | |
2073 | |
2074 fi | |
2075 fi | |
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2077 if test -n "$ac_ct_CC"; then | |
2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2079 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2080 else | |
2081 echo "$as_me:$LINENO: result: no" >&5 | |
2082 echo "${ECHO_T}no" >&6 | |
2083 fi | |
2084 | |
2085 CC=$ac_ct_CC | |
2086 else | |
2087 CC="$ac_cv_prog_CC" | |
2088 fi | |
2089 | |
2090 if test -z "$CC"; then | |
2091 if test -n "$ac_tool_prefix"; then | |
2092 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2093 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2096 if test "${ac_cv_prog_CC+set}" = set; then | |
2097 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2098 else | |
2099 if test -n "$CC"; then | |
2100 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2101 else | |
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2103 for as_dir in $PATH | |
2104 do | |
2105 IFS=$as_save_IFS | |
2106 test -z "$as_dir" && as_dir=. | |
2107 for ac_exec_ext in '' $ac_executable_extensions; do | |
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2109 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2111 break 2 | |
2112 fi | |
2113 done | |
2114 done | |
2115 | |
2116 fi | |
2117 fi | |
2118 CC=$ac_cv_prog_CC | |
2119 if test -n "$CC"; then | |
2120 echo "$as_me:$LINENO: result: $CC" >&5 | |
2121 echo "${ECHO_T}$CC" >&6 | |
2122 else | |
2123 echo "$as_me:$LINENO: result: no" >&5 | |
2124 echo "${ECHO_T}no" >&6 | |
2125 fi | |
2126 | |
2127 fi | |
2128 if test -z "$ac_cv_prog_CC"; then | |
2129 ac_ct_CC=$CC | |
2130 # Extract the first word of "cc", so it can be a program name with args. | |
2131 set dummy cc; ac_word=$2 | |
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2135 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2136 else | |
2137 if test -n "$ac_ct_CC"; then | |
2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2139 else | |
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2141 for as_dir in $PATH | |
2142 do | |
2143 IFS=$as_save_IFS | |
2144 test -z "$as_dir" && as_dir=. | |
2145 for ac_exec_ext in '' $ac_executable_extensions; do | |
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2147 ac_cv_prog_ac_ct_CC="cc" | |
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2149 break 2 | |
2150 fi | |
2151 done | |
2152 done | |
2153 | |
2154 fi | |
2155 fi | |
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2157 if test -n "$ac_ct_CC"; then | |
2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2159 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2160 else | |
2161 echo "$as_me:$LINENO: result: no" >&5 | |
2162 echo "${ECHO_T}no" >&6 | |
2163 fi | |
2164 | |
2165 CC=$ac_ct_CC | |
2166 else | |
2167 CC="$ac_cv_prog_CC" | |
2168 fi | |
2169 | |
2170 fi | |
2171 if test -z "$CC"; then | |
2172 # Extract the first word of "cc", so it can be a program name with args. | |
2173 set dummy cc; ac_word=$2 | |
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2176 if test "${ac_cv_prog_CC+set}" = set; then | |
2177 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2178 else | |
2179 if test -n "$CC"; then | |
2180 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2181 else | |
2182 ac_prog_rejected=no | |
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2184 for as_dir in $PATH | |
2185 do | |
2186 IFS=$as_save_IFS | |
2187 test -z "$as_dir" && as_dir=. | |
2188 for ac_exec_ext in '' $ac_executable_extensions; do | |
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2191 ac_prog_rejected=yes | |
2192 continue | |
2193 fi | |
2194 ac_cv_prog_CC="cc" | |
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2196 break 2 | |
2197 fi | |
2198 done | |
2199 done | |
2200 | |
2201 if test $ac_prog_rejected = yes; then | |
2202 # We found a bogon in the path, so make sure we never use it. | |
2203 set dummy $ac_cv_prog_CC | |
2204 shift | |
2205 if test $# != 0; then | |
2206 # We chose a different compiler from the bogus one. | |
2207 # However, it has the same basename, so the bogon will be chosen | |
2208 # first if we set CC to just the basename; use the full file name. | |
2209 shift | |
2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2211 fi | |
2212 fi | |
2213 fi | |
2214 fi | |
2215 CC=$ac_cv_prog_CC | |
2216 if test -n "$CC"; then | |
2217 echo "$as_me:$LINENO: result: $CC" >&5 | |
2218 echo "${ECHO_T}$CC" >&6 | |
2219 else | |
2220 echo "$as_me:$LINENO: result: no" >&5 | |
2221 echo "${ECHO_T}no" >&6 | |
2222 fi | |
2223 | |
2224 fi | |
2225 if test -z "$CC"; then | |
2226 if test -n "$ac_tool_prefix"; then | |
2227 for ac_prog in cl | |
2228 do | |
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2233 if test "${ac_cv_prog_CC+set}" = set; then | |
2234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2235 else | |
2236 if test -n "$CC"; then | |
2237 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2238 else | |
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2240 for as_dir in $PATH | |
2241 do | |
2242 IFS=$as_save_IFS | |
2243 test -z "$as_dir" && as_dir=. | |
2244 for ac_exec_ext in '' $ac_executable_extensions; do | |
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2248 break 2 | |
2249 fi | |
2250 done | |
2251 done | |
2252 | |
2253 fi | |
2254 fi | |
2255 CC=$ac_cv_prog_CC | |
2256 if test -n "$CC"; then | |
2257 echo "$as_me:$LINENO: result: $CC" >&5 | |
2258 echo "${ECHO_T}$CC" >&6 | |
2259 else | |
2260 echo "$as_me:$LINENO: result: no" >&5 | |
2261 echo "${ECHO_T}no" >&6 | |
2262 fi | |
2263 | |
2264 test -n "$CC" && break | |
2265 done | |
2266 fi | |
2267 if test -z "$CC"; then | |
2268 ac_ct_CC=$CC | |
2269 for ac_prog in cl | |
2270 do | |
2271 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2272 set dummy $ac_prog; ac_word=$2 | |
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2276 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2277 else | |
2278 if test -n "$ac_ct_CC"; then | |
2279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2280 else | |
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2282 for as_dir in $PATH | |
2283 do | |
2284 IFS=$as_save_IFS | |
2285 test -z "$as_dir" && as_dir=. | |
2286 for ac_exec_ext in '' $ac_executable_extensions; do | |
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2288 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2290 break 2 | |
2291 fi | |
2292 done | |
2293 done | |
2294 | |
2295 fi | |
2296 fi | |
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2298 if test -n "$ac_ct_CC"; then | |
2299 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2300 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2301 else | |
2302 echo "$as_me:$LINENO: result: no" >&5 | |
2303 echo "${ECHO_T}no" >&6 | |
2304 fi | |
2305 | |
2306 test -n "$ac_ct_CC" && break | |
2307 done | |
2308 | |
2309 CC=$ac_ct_CC | |
2310 fi | |
2311 | |
2312 fi | |
2313 | |
2314 | |
2315 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2316 See \`config.log' for more details." >&5 | |
2317 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2318 See \`config.log' for more details." >&2;} | |
2319 { (exit 1); exit 1; }; } | |
2320 | |
2321 # Provide some information about the compiler. | |
2322 echo "$as_me:$LINENO:" \ | |
2323 "checking for C compiler version" >&5 | |
2324 ac_compiler=`set X $ac_compile; echo $2` | |
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2326 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2327 ac_status=$? | |
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2329 (exit $ac_status); } | |
2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2331 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2332 ac_status=$? | |
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2334 (exit $ac_status); } | |
2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2336 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2337 ac_status=$? | |
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2339 (exit $ac_status); } | |
2340 | |
2341 cat >conftest.$ac_ext <<_ACEOF | |
2342 /* confdefs.h. */ | |
2343 _ACEOF | |
2344 cat confdefs.h >>conftest.$ac_ext | |
2345 cat >>conftest.$ac_ext <<_ACEOF | |
2346 /* end confdefs.h. */ | |
2347 | |
2348 int | |
2349 main () | |
2350 { | |
2351 | |
2352 ; | |
2353 return 0; | |
2354 } | |
2355 _ACEOF | |
2356 ac_clean_files_save=$ac_clean_files | |
2357 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2358 # Try to create an executable without -o first, disregard a.out. | |
2359 # It will help us diagnose broken compilers, and finding out an intuition | |
2360 # of exeext. | |
2361 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2362 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2363 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2364 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2365 (eval $ac_link_default) 2>&5 | |
2366 ac_status=$? | |
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2368 (exit $ac_status); }; then | |
2369 # Find the output, starting from the most likely. This scheme is | |
2370 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2371 # resort. | |
2372 | |
2373 # Be careful to initialize this variable, since it used to be cached. | |
2374 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2375 ac_cv_exeext= | |
2376 # b.out is created by i960 compilers. | |
2377 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2378 do | |
2379 test -f "$ac_file" || continue | |
2380 case $ac_file in | |
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2382 ;; | |
2383 conftest.$ac_ext ) | |
2384 # This is the source file. | |
2385 ;; | |
2386 [ab].out ) | |
2387 # We found the default executable, but exeext='' is most | |
2388 # certainly right. | |
2389 break;; | |
2390 *.* ) | |
2391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2392 # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2393 # but it would be cool to find out if it's true. Does anybody | |
2394 # maintain Libtool? --akim. | |
2395 export ac_cv_exeext | |
2396 break;; | |
2397 * ) | |
2398 break;; | |
2399 esac | |
2400 done | |
2401 else | |
2402 echo "$as_me: failed program was:" >&5 | |
2403 sed 's/^/| /' conftest.$ac_ext >&5 | |
2404 | |
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2406 See \`config.log' for more details." >&5 | |
2407 echo "$as_me: error: C compiler cannot create executables | |
2408 See \`config.log' for more details." >&2;} | |
2409 { (exit 77); exit 77; }; } | |
2410 fi | |
2411 | |
2412 ac_exeext=$ac_cv_exeext | |
2413 echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2414 echo "${ECHO_T}$ac_file" >&6 | |
2415 | |
2416 # Check the compiler produces executables we can run. If not, either | |
2417 # the compiler is broken, or we cross compile. | |
2418 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2419 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2420 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2421 # If not cross compiling, check that we can run a simple program. | |
2422 if test "$cross_compiling" != yes; then | |
2423 if { ac_try='./$ac_file' | |
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2425 (eval $ac_try) 2>&5 | |
2426 ac_status=$? | |
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2428 (exit $ac_status); }; }; then | |
2429 cross_compiling=no | |
2430 else | |
2431 if test "$cross_compiling" = maybe; then | |
2432 cross_compiling=yes | |
2433 else | |
2434 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2435 If you meant to cross compile, use \`--host'. | |
2436 See \`config.log' for more details." >&5 | |
2437 echo "$as_me: error: cannot run C compiled programs. | |
2438 If you meant to cross compile, use \`--host'. | |
2439 See \`config.log' for more details." >&2;} | |
2440 { (exit 1); exit 1; }; } | |
2441 fi | |
2442 fi | |
2443 fi | |
2444 echo "$as_me:$LINENO: result: yes" >&5 | |
2445 echo "${ECHO_T}yes" >&6 | |
2446 | |
2447 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2448 ac_clean_files=$ac_clean_files_save | |
2449 # Check the compiler produces executables we can run. If not, either | |
2450 # the compiler is broken, or we cross compile. | |
2451 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2452 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2453 echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2454 echo "${ECHO_T}$cross_compiling" >&6 | |
2455 | |
2456 echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2457 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2459 (eval $ac_link) 2>&5 | |
2460 ac_status=$? | |
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2462 (exit $ac_status); }; then | |
2463 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2465 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2466 # `rm'. | |
2467 for ac_file in conftest.exe conftest conftest.*; do | |
2468 test -f "$ac_file" || continue | |
2469 case $ac_file in | |
2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2472 export ac_cv_exeext | |
2473 break;; | |
2474 * ) break;; | |
2475 esac | |
2476 done | |
2477 else | |
2478 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2479 See \`config.log' for more details." >&5 | |
2480 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2481 See \`config.log' for more details." >&2;} | |
2482 { (exit 1); exit 1; }; } | |
2483 fi | |
2484 | |
2485 rm -f conftest$ac_cv_exeext | |
2486 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2487 echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2488 | |
2489 rm -f conftest.$ac_ext | |
2490 EXEEXT=$ac_cv_exeext | |
2491 ac_exeext=$EXEEXT | |
2492 echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2493 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2494 if test "${ac_cv_objext+set}" = set; then | |
2495 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2496 else | |
2497 cat >conftest.$ac_ext <<_ACEOF | |
2498 /* confdefs.h. */ | |
2499 _ACEOF | |
2500 cat confdefs.h >>conftest.$ac_ext | |
2501 cat >>conftest.$ac_ext <<_ACEOF | |
2502 /* end confdefs.h. */ | |
2503 | |
2504 int | |
2505 main () | |
2506 { | |
2507 | |
2508 ; | |
2509 return 0; | |
2510 } | |
2511 _ACEOF | |
2512 rm -f conftest.o conftest.obj | |
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2514 (eval $ac_compile) 2>&5 | |
2515 ac_status=$? | |
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2517 (exit $ac_status); }; then | |
2518 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2519 case $ac_file in | |
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2522 break;; | |
2523 esac | |
2524 done | |
2525 else | |
2526 echo "$as_me: failed program was:" >&5 | |
2527 sed 's/^/| /' conftest.$ac_ext >&5 | |
2528 | |
2529 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2530 See \`config.log' for more details." >&5 | |
2531 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2532 See \`config.log' for more details." >&2;} | |
2533 { (exit 1); exit 1; }; } | |
2534 fi | |
2535 | |
2536 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2537 fi | |
2538 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2539 echo "${ECHO_T}$ac_cv_objext" >&6 | |
2540 OBJEXT=$ac_cv_objext | |
2541 ac_objext=$OBJEXT | |
2542 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2543 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2544 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2545 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2546 else | |
2547 cat >conftest.$ac_ext <<_ACEOF | |
2548 /* confdefs.h. */ | |
2549 _ACEOF | |
2550 cat confdefs.h >>conftest.$ac_ext | |
2551 cat >>conftest.$ac_ext <<_ACEOF | |
2552 /* end confdefs.h. */ | |
2553 | |
2554 int | |
2555 main () | |
2556 { | |
2557 #ifndef __GNUC__ | |
2558 choke me | |
2559 #endif | |
2560 | |
2561 ; | |
2562 return 0; | |
2563 } | |
2564 _ACEOF | |
2565 rm -f conftest.$ac_objext | |
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2567 (eval $ac_compile) 2>conftest.er1 | |
2568 ac_status=$? | |
2569 grep -v '^ *+' conftest.er1 >conftest.err | |
2570 rm -f conftest.er1 | |
2571 cat conftest.err >&5 | |
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2573 (exit $ac_status); } && | |
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2576 (eval $ac_try) 2>&5 | |
2577 ac_status=$? | |
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2579 (exit $ac_status); }; } && | |
2580 { ac_try='test -s conftest.$ac_objext' | |
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2582 (eval $ac_try) 2>&5 | |
2583 ac_status=$? | |
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2585 (exit $ac_status); }; }; then | |
2586 ac_compiler_gnu=yes | |
2587 else | |
2588 echo "$as_me: failed program was:" >&5 | |
2589 sed 's/^/| /' conftest.$ac_ext >&5 | |
2590 | |
2591 ac_compiler_gnu=no | |
2592 fi | |
2593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2594 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2595 | |
2596 fi | |
2597 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2598 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2599 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2600 ac_test_CFLAGS=${CFLAGS+set} | |
2601 ac_save_CFLAGS=$CFLAGS | |
2602 CFLAGS="-g" | |
2603 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2604 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2605 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2606 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2607 else | |
2608 cat >conftest.$ac_ext <<_ACEOF | |
2609 /* confdefs.h. */ | |
2610 _ACEOF | |
2611 cat confdefs.h >>conftest.$ac_ext | |
2612 cat >>conftest.$ac_ext <<_ACEOF | |
2613 /* end confdefs.h. */ | |
2614 | |
2615 int | |
2616 main () | |
2617 { | |
2618 | |
2619 ; | |
2620 return 0; | |
2621 } | |
2622 _ACEOF | |
2623 rm -f conftest.$ac_objext | |
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2625 (eval $ac_compile) 2>conftest.er1 | |
2626 ac_status=$? | |
2627 grep -v '^ *+' conftest.er1 >conftest.err | |
2628 rm -f conftest.er1 | |
2629 cat conftest.err >&5 | |
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2631 (exit $ac_status); } && | |
2632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2634 (eval $ac_try) 2>&5 | |
2635 ac_status=$? | |
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2637 (exit $ac_status); }; } && | |
2638 { ac_try='test -s conftest.$ac_objext' | |
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2640 (eval $ac_try) 2>&5 | |
2641 ac_status=$? | |
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2643 (exit $ac_status); }; }; then | |
2644 ac_cv_prog_cc_g=yes | |
2645 else | |
2646 echo "$as_me: failed program was:" >&5 | |
2647 sed 's/^/| /' conftest.$ac_ext >&5 | |
2648 | |
2649 ac_cv_prog_cc_g=no | |
2650 fi | |
2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2652 fi | |
2653 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2654 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2655 if test "$ac_test_CFLAGS" = set; then | |
2656 CFLAGS=$ac_save_CFLAGS | |
2657 elif test $ac_cv_prog_cc_g = yes; then | |
2658 if test "$GCC" = yes; then | |
2659 CFLAGS="-g -O2" | |
2660 else | |
2661 CFLAGS="-g" | |
2662 fi | |
2663 else | |
2664 if test "$GCC" = yes; then | |
2665 CFLAGS="-O2" | |
2666 else | |
2667 CFLAGS= | |
2668 fi | |
2669 fi | |
2670 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2671 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2672 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2673 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2674 else | |
2675 ac_cv_prog_cc_stdc=no | |
2676 ac_save_CC=$CC | |
2677 cat >conftest.$ac_ext <<_ACEOF | |
2678 /* confdefs.h. */ | |
2679 _ACEOF | |
2680 cat confdefs.h >>conftest.$ac_ext | |
2681 cat >>conftest.$ac_ext <<_ACEOF | |
2682 /* end confdefs.h. */ | |
2683 #include <stdarg.h> | |
2684 #include <stdio.h> | |
2685 #include <sys/types.h> | |
2686 #include <sys/stat.h> | |
2687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2688 struct buf { int x; }; | |
2689 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2690 static char *e (p, i) | |
2691 char **p; | |
2692 int i; | |
2693 { | |
2694 return p[i]; | |
2695 } | |
2696 static char *f (char * (*g) (char **, int), char **p, ...) | |
2697 { | |
2698 char *s; | |
2699 va_list v; | |
2700 va_start (v,p); | |
2701 s = g (p, va_arg (v,int)); | |
2702 va_end (v); | |
2703 return s; | |
2704 } | |
2705 | |
2706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2707 function prototypes and stuff, but not '\xHH' hex character constants. | |
2708 These don't provoke an error unfortunately, instead are silently treated | |
2709 as 'x'. The following induces an error, until -std1 is added to get | |
2710 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2711 array size at least. It's necessary to write '\x00'==0 to get something | |
2712 that's true only with -std1. */ | |
2713 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2714 | |
2715 int test (int i, double x); | |
2716 struct s1 {int (*f) (int a);}; | |
2717 struct s2 {int (*f) (double a);}; | |
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2719 int argc; | |
2720 char **argv; | |
2721 int | |
2722 main () | |
2723 { | |
2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2725 ; | |
2726 return 0; | |
2727 } | |
2728 _ACEOF | |
2729 # Don't try gcc -ansi; that turns off useful extensions and | |
2730 # breaks some systems' header files. | |
2731 # AIX -qlanglvl=ansi | |
2732 # Ultrix and OSF/1 -std1 | |
2733 # HP-UX 10.20 and later -Ae | |
2734 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2735 # SVR4 -Xc -D__EXTENSIONS__ | |
2736 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2737 do | |
2738 CC="$ac_save_CC $ac_arg" | |
2739 rm -f conftest.$ac_objext | |
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2741 (eval $ac_compile) 2>conftest.er1 | |
2742 ac_status=$? | |
2743 grep -v '^ *+' conftest.er1 >conftest.err | |
2744 rm -f conftest.er1 | |
2745 cat conftest.err >&5 | |
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2747 (exit $ac_status); } && | |
2748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2750 (eval $ac_try) 2>&5 | |
2751 ac_status=$? | |
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2753 (exit $ac_status); }; } && | |
2754 { ac_try='test -s conftest.$ac_objext' | |
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2756 (eval $ac_try) 2>&5 | |
2757 ac_status=$? | |
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2759 (exit $ac_status); }; }; then | |
2760 ac_cv_prog_cc_stdc=$ac_arg | |
2761 break | |
2762 else | |
2763 echo "$as_me: failed program was:" >&5 | |
2764 sed 's/^/| /' conftest.$ac_ext >&5 | |
2765 | |
2766 fi | |
2767 rm -f conftest.err conftest.$ac_objext | |
2768 done | |
2769 rm -f conftest.$ac_ext conftest.$ac_objext | |
2770 CC=$ac_save_CC | |
2771 | |
2772 fi | |
2773 | |
2774 case "x$ac_cv_prog_cc_stdc" in | |
2775 x|xno) | |
2776 echo "$as_me:$LINENO: result: none needed" >&5 | |
2777 echo "${ECHO_T}none needed" >&6 ;; | |
2778 *) | |
2779 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2781 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2782 esac | |
2783 | |
2784 # Some people use a C++ compiler to compile C. Since we use `exit', | |
2785 # in C++ we need to declare it. In case someone uses the same compiler | |
2786 # for both compiling C and C++ we need to have the C++ compiler decide | |
2787 # the declaration of exit, since it's the most demanding environment. | |
2788 cat >conftest.$ac_ext <<_ACEOF | |
2789 #ifndef __cplusplus | |
2790 choke me | |
2791 #endif | |
2792 _ACEOF | |
2793 rm -f conftest.$ac_objext | |
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2795 (eval $ac_compile) 2>conftest.er1 | |
2796 ac_status=$? | |
2797 grep -v '^ *+' conftest.er1 >conftest.err | |
2798 rm -f conftest.er1 | |
2799 cat conftest.err >&5 | |
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2801 (exit $ac_status); } && | |
2802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2804 (eval $ac_try) 2>&5 | |
2805 ac_status=$? | |
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2807 (exit $ac_status); }; } && | |
2808 { ac_try='test -s conftest.$ac_objext' | |
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2810 (eval $ac_try) 2>&5 | |
2811 ac_status=$? | |
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2813 (exit $ac_status); }; }; then | |
2814 for ac_declaration in \ | |
2815 '' \ | |
2816 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2817 'extern "C" void std::exit (int); using std::exit;' \ | |
2818 'extern "C" void exit (int) throw ();' \ | |
2819 'extern "C" void exit (int);' \ | |
2820 'void exit (int);' | |
2821 do | |
2822 cat >conftest.$ac_ext <<_ACEOF | |
2823 /* confdefs.h. */ | |
2824 _ACEOF | |
2825 cat confdefs.h >>conftest.$ac_ext | |
2826 cat >>conftest.$ac_ext <<_ACEOF | |
2827 /* end confdefs.h. */ | |
2828 $ac_declaration | |
2829 #include <stdlib.h> | |
2830 int | |
2831 main () | |
2832 { | |
2833 exit (42); | |
2834 ; | |
2835 return 0; | |
2836 } | |
2837 _ACEOF | |
2838 rm -f conftest.$ac_objext | |
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2840 (eval $ac_compile) 2>conftest.er1 | |
2841 ac_status=$? | |
2842 grep -v '^ *+' conftest.er1 >conftest.err | |
2843 rm -f conftest.er1 | |
2844 cat conftest.err >&5 | |
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2846 (exit $ac_status); } && | |
2847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2849 (eval $ac_try) 2>&5 | |
2850 ac_status=$? | |
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2852 (exit $ac_status); }; } && | |
2853 { ac_try='test -s conftest.$ac_objext' | |
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2855 (eval $ac_try) 2>&5 | |
2856 ac_status=$? | |
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2858 (exit $ac_status); }; }; then | |
2859 : | |
2860 else | |
2861 echo "$as_me: failed program was:" >&5 | |
2862 sed 's/^/| /' conftest.$ac_ext >&5 | |
2863 | |
2864 continue | |
2865 fi | |
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2867 cat >conftest.$ac_ext <<_ACEOF | |
2868 /* confdefs.h. */ | |
2869 _ACEOF | |
2870 cat confdefs.h >>conftest.$ac_ext | |
2871 cat >>conftest.$ac_ext <<_ACEOF | |
2872 /* end confdefs.h. */ | |
2873 $ac_declaration | |
2874 int | |
2875 main () | |
2876 { | |
2877 exit (42); | |
2878 ; | |
2879 return 0; | |
2880 } | |
2881 _ACEOF | |
2882 rm -f conftest.$ac_objext | |
2883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2884 (eval $ac_compile) 2>conftest.er1 | |
2885 ac_status=$? | |
2886 grep -v '^ *+' conftest.er1 >conftest.err | |
2887 rm -f conftest.er1 | |
2888 cat conftest.err >&5 | |
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2890 (exit $ac_status); } && | |
2891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2893 (eval $ac_try) 2>&5 | |
2894 ac_status=$? | |
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2896 (exit $ac_status); }; } && | |
2897 { ac_try='test -s conftest.$ac_objext' | |
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2899 (eval $ac_try) 2>&5 | |
2900 ac_status=$? | |
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2902 (exit $ac_status); }; }; then | |
2903 break | |
2904 else | |
2905 echo "$as_me: failed program was:" >&5 | |
2906 sed 's/^/| /' conftest.$ac_ext >&5 | |
2907 | |
2908 fi | |
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2910 done | |
2911 rm -f conftest* | |
2912 if test -n "$ac_declaration"; then | |
2913 echo '#ifdef __cplusplus' >>confdefs.h | |
2914 echo $ac_declaration >>confdefs.h | |
2915 echo '#endif' >>confdefs.h | |
2916 fi | |
2917 | |
2918 else | |
2919 echo "$as_me: failed program was:" >&5 | |
2920 sed 's/^/| /' conftest.$ac_ext >&5 | |
2921 | |
2922 fi | |
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2924 ac_ext=c | |
2925 ac_cpp='$CPP $CPPFLAGS' | |
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2929 DEPDIR="${am__leading_dot}deps" | |
2930 | |
2931 ac_config_commands="$ac_config_commands depfiles" | |
2932 | |
2933 | |
2934 am_make=${MAKE-make} | |
2935 cat > confinc << 'END' | |
2936 am__doit: | |
2937 @echo done | |
2938 .PHONY: am__doit | |
2939 END | |
2940 # If we don't find an include directive, just comment out the code. | |
2941 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2942 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2943 am__include="#" | |
2944 am__quote= | |
2945 _am_result=none | |
2946 # First try GNU make style include. | |
2947 echo "include confinc" > confmf | |
2948 # We grep out `Entering directory' and `Leaving directory' | |
2949 # messages which can occur if `w' ends up in MAKEFLAGS. | |
2950 # In particular we don't look at `^make:' because GNU make might | |
2951 # be invoked under some other name (usually "gmake"), in which | |
2952 # case it prints its new name instead of `make'. | |
2953 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2954 am__include=include | |
2955 am__quote= | |
2956 _am_result=GNU | |
2957 fi | |
2958 # Now try BSD make style include. | |
2959 if test "$am__include" = "#"; then | |
2960 echo '.include "confinc"' > confmf | |
2961 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2962 am__include=.include | |
2963 am__quote="\"" | |
2964 _am_result=BSD | |
2965 fi | |
2966 fi | |
2967 | |
2968 | |
2969 echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2970 echo "${ECHO_T}$_am_result" >&6 | |
2971 rm -f confinc confmf | |
2972 | |
2973 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2974 if test "${enable_dependency_tracking+set}" = set; then | |
2975 enableval="$enable_dependency_tracking" | |
2976 | |
2977 fi; | |
2978 if test "x$enable_dependency_tracking" != xno; then | |
2979 am_depcomp="$ac_aux_dir/depcomp" | |
2980 AMDEPBACKSLASH='\' | |
2981 fi | |
2982 | |
2983 | |
2984 if test "x$enable_dependency_tracking" != xno; then | |
2985 AMDEP_TRUE= | |
2986 AMDEP_FALSE='#' | |
2987 else | |
2988 AMDEP_TRUE='#' | |
2989 AMDEP_FALSE= | |
2990 fi | |
2991 | |
2992 | |
2993 | |
2994 | |
2995 depcc="$CC" am_compiler_list= | |
2996 | |
2997 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2998 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2999 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3000 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3001 else | |
3002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3003 # We make a subdir and do the tests there. Otherwise we can end up | |
3004 # making bogus files that we don't know about and never remove. For | |
3005 # instance it was reported that on HP-UX the gcc test will end up | |
3006 # making a dummy file named `D' -- because `-MD' means `put the output | |
3007 # in D'. | |
3008 mkdir conftest.dir | |
3009 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3010 # using a relative directory. | |
3011 cp "$am_depcomp" conftest.dir | |
3012 cd conftest.dir | |
3013 # We will build objects and dependencies in a subdirectory because | |
3014 # it helps to detect inapplicable dependency modes. For instance | |
3015 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3016 # side effect of compilation, but ICC will put the dependencies in | |
3017 # the current directory while Tru64 will put them in the object | |
3018 # directory. | |
3019 mkdir sub | |
3020 | |
3021 am_cv_CC_dependencies_compiler_type=none | |
3022 if test "$am_compiler_list" = ""; then | |
3023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3024 fi | |
3025 for depmode in $am_compiler_list; do | |
3026 # Setup a source with many dependencies, because some compilers | |
3027 # like to wrap large dependency lists on column 80 (with \), and | |
3028 # we should not choose a depcomp mode which is confused by this. | |
3029 # | |
3030 # We need to recreate these files for each test, as the compiler may | |
3031 # overwrite some of them when testing with obscure command lines. | |
3032 # This happens at least with the AIX C compiler. | |
3033 : > sub/conftest.c | |
3034 for i in 1 2 3 4 5 6; do | |
3035 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3036 : > sub/conftst$i.h | |
3037 done | |
3038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3039 | |
3040 case $depmode in | |
3041 nosideeffect) | |
3042 # after this tag, mechanisms are not by side-effect, so they'll | |
3043 # only be used when explicitly requested | |
3044 if test "x$enable_dependency_tracking" = xyes; then | |
3045 continue | |
3046 else | |
3047 break | |
3048 fi | |
3049 ;; | |
3050 none) break ;; | |
3051 esac | |
3052 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3053 # mode. It turns out that the SunPro C++ compiler does not properly | |
3054 # handle `-M -o', and we need to detect this. | |
3055 if depmode=$depmode \ | |
3056 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3058 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3059 >/dev/null 2>conftest.err && | |
3060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3063 # icc doesn't choke on unknown options, it will just issue warnings | |
3064 # (even with -Werror). So we grep stderr for any message | |
3065 # that says an option was ignored. | |
3066 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | |
3067 am_cv_CC_dependencies_compiler_type=$depmode | |
3068 break | |
3069 fi | |
3070 fi | |
3071 done | |
3072 | |
3073 cd .. | |
3074 rm -rf conftest.dir | |
3075 else | |
3076 am_cv_CC_dependencies_compiler_type=none | |
3077 fi | |
3078 | |
3079 fi | |
3080 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3081 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3083 | |
3084 | |
3085 | |
3086 if | |
3087 test "x$enable_dependency_tracking" != xno \ | |
3088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3089 am__fastdepCC_TRUE= | |
3090 am__fastdepCC_FALSE='#' | |
3091 else | |
3092 am__fastdepCC_TRUE='#' | |
3093 am__fastdepCC_FALSE= | |
3094 fi | |
3095 | |
3096 | |
3097 | |
3098 if test "$GCC" = yes | |
3099 then | |
3100 case "$host" in | |
3101 *-*-mingw*) | |
3102 case "$build" in | |
3103 *-*-cygwin*) | |
3104 CPPFLAGS="$CPPFLAGS -mno-cygwin" | |
3105 LDFLAGS="$LDFLAGS -mno-cygwin" | |
3106 ;; | |
3107 esac | |
3108 esac | |
3109 | |
3110 fi | |
3111 | |
3112 | |
3113 # Check whether --enable-shared or --disable-shared was given. | |
3114 if test "${enable_shared+set}" = set; then | |
3115 enableval="$enable_shared" | |
3116 p=${PACKAGE-default} | |
3117 case $enableval in | |
3118 yes) enable_shared=yes ;; | |
3119 no) enable_shared=no ;; | |
3120 *) | |
3121 enable_shared=no | |
3122 # Look at the argument we got. We use all the common list separators. | |
3123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3124 for pkg in $enableval; do | |
3125 IFS="$lt_save_ifs" | |
3126 if test "X$pkg" = "X$p"; then | |
3127 enable_shared=yes | |
3128 fi | |
3129 done | |
3130 IFS="$lt_save_ifs" | |
3131 ;; | |
3132 esac | |
3133 else | |
3134 enable_shared=yes | |
3135 fi; | |
3136 | |
3137 # Check whether --enable-static or --disable-static was given. | |
3138 if test "${enable_static+set}" = set; then | |
3139 enableval="$enable_static" | |
3140 p=${PACKAGE-default} | |
3141 case $enableval in | |
3142 yes) enable_static=yes ;; | |
3143 no) enable_static=no ;; | |
3144 *) | |
3145 enable_static=no | |
3146 # Look at the argument we got. We use all the common list separators. | |
3147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3148 for pkg in $enableval; do | |
3149 IFS="$lt_save_ifs" | |
3150 if test "X$pkg" = "X$p"; then | |
3151 enable_static=yes | |
3152 fi | |
3153 done | |
3154 IFS="$lt_save_ifs" | |
3155 ;; | |
3156 esac | |
3157 else | |
3158 enable_static=yes | |
3159 fi; | |
3160 | |
3161 # Check whether --enable-fast-install or --disable-fast-install was given. | |
3162 if test "${enable_fast_install+set}" = set; then | |
3163 enableval="$enable_fast_install" | |
3164 p=${PACKAGE-default} | |
3165 case $enableval in | |
3166 yes) enable_fast_install=yes ;; | |
3167 no) enable_fast_install=no ;; | |
3168 *) | |
3169 enable_fast_install=no | |
3170 # Look at the argument we got. We use all the common list separators. | |
3171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3172 for pkg in $enableval; do | |
3173 IFS="$lt_save_ifs" | |
3174 if test "X$pkg" = "X$p"; then | |
3175 enable_fast_install=yes | |
3176 fi | |
3177 done | |
3178 IFS="$lt_save_ifs" | |
3179 ;; | |
3180 esac | |
3181 else | |
3182 enable_fast_install=yes | |
3183 fi; | |
3184 | |
3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3187 if test "${lt_cv_path_SED+set}" = set; then | |
3188 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3189 else | |
3190 # Loop through the user's path and test for sed and gsed. | |
3191 # Then use that list of sed's as ones to test for truncation. | |
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3193 for as_dir in $PATH | |
3194 do | |
3195 IFS=$as_save_IFS | |
3196 test -z "$as_dir" && as_dir=. | |
3197 for lt_ac_prog in sed gsed; do | |
3198 for ac_exec_ext in '' $ac_executable_extensions; do | |
3199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3201 fi | |
3202 done | |
3203 done | |
3204 done | |
3205 lt_ac_max=0 | |
3206 lt_ac_count=0 | |
3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3208 # along with /bin/sed that truncates output. | |
3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3210 test ! -f $lt_ac_sed && break | |
3211 cat /dev/null > conftest.in | |
3212 lt_ac_count=0 | |
3213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3214 # Check for GNU sed and select it if it is found. | |
3215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3216 lt_cv_path_SED=$lt_ac_sed | |
3217 break | |
3218 fi | |
3219 while true; do | |
3220 cat conftest.in conftest.in >conftest.tmp | |
3221 mv conftest.tmp conftest.in | |
3222 cp conftest.in conftest.nl | |
3223 echo >>conftest.nl | |
3224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3225 cmp -s conftest.out conftest.nl || break | |
3226 # 10000 chars as input seems more than enough | |
3227 test $lt_ac_count -gt 10 && break | |
3228 lt_ac_count=`expr $lt_ac_count + 1` | |
3229 if test $lt_ac_count -gt $lt_ac_max; then | |
3230 lt_ac_max=$lt_ac_count | |
3231 lt_cv_path_SED=$lt_ac_sed | |
3232 fi | |
3233 done | |
3234 done | |
3235 SED=$lt_cv_path_SED | |
3236 | |
3237 fi | |
3238 | |
3239 echo "$as_me:$LINENO: result: $SED" >&5 | |
3240 echo "${ECHO_T}$SED" >&6 | |
3241 | |
3242 echo "$as_me:$LINENO: checking for egrep" >&5 | |
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3244 if test "${ac_cv_prog_egrep+set}" = set; then | |
3245 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3246 else | |
3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3248 then ac_cv_prog_egrep='grep -E' | |
3249 else ac_cv_prog_egrep='egrep' | |
3250 fi | |
3251 fi | |
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3254 EGREP=$ac_cv_prog_egrep | |
3255 | |
3256 | |
3257 | |
3258 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3259 if test "${with_gnu_ld+set}" = set; then | |
3260 withval="$with_gnu_ld" | |
3261 test "$withval" = no || with_gnu_ld=yes | |
3262 else | |
3263 with_gnu_ld=no | |
3264 fi; | |
3265 ac_prog=ld | |
3266 if test "$GCC" = yes; then | |
3267 # Check if gcc -print-prog-name=ld gives a path. | |
3268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3270 case $host in | |
3271 *-*-mingw*) | |
3272 # gcc leaves a trailing carriage return which upsets mingw | |
3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3274 *) | |
3275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3276 esac | |
3277 case $ac_prog in | |
3278 # Accept absolute paths. | |
3279 [\\/]* | ?:[\\/]*) | |
3280 re_direlt='/[^/][^/]*/\.\./' | |
3281 # Canonicalize the pathname of ld | |
3282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3285 done | |
3286 test -z "$LD" && LD="$ac_prog" | |
3287 ;; | |
3288 "") | |
3289 # If it fails, then pretend we aren't using GCC. | |
3290 ac_prog=ld | |
3291 ;; | |
3292 *) | |
3293 # If it is relative, then search for the first ld in PATH. | |
3294 with_gnu_ld=unknown | |
3295 ;; | |
3296 esac | |
3297 elif test "$with_gnu_ld" = yes; then | |
3298 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3300 else | |
3301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3303 fi | |
3304 if test "${lt_cv_path_LD+set}" = set; then | |
3305 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3306 else | |
3307 if test -z "$LD"; then | |
3308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3309 for ac_dir in $PATH; do | |
3310 IFS="$lt_save_ifs" | |
3311 test -z "$ac_dir" && ac_dir=. | |
3312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3313 lt_cv_path_LD="$ac_dir/$ac_prog" | |
3314 # Check to see if the program is GNU ld. I'd rather use --version, | |
3315 # but apparently some GNU ld's only accept -v. | |
3316 # Break only if it was the GNU/non-GNU ld that we prefer. | |
3317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3318 *GNU* | *'with BFD'*) | |
3319 test "$with_gnu_ld" != no && break | |
3320 ;; | |
3321 *) | |
3322 test "$with_gnu_ld" != yes && break | |
3323 ;; | |
3324 esac | |
3325 fi | |
3326 done | |
3327 IFS="$lt_save_ifs" | |
3328 else | |
3329 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3330 fi | |
3331 fi | |
3332 | |
3333 LD="$lt_cv_path_LD" | |
3334 if test -n "$LD"; then | |
3335 echo "$as_me:$LINENO: result: $LD" >&5 | |
3336 echo "${ECHO_T}$LD" >&6 | |
3337 else | |
3338 echo "$as_me:$LINENO: result: no" >&5 | |
3339 echo "${ECHO_T}no" >&6 | |
3340 fi | |
3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3343 { (exit 1); exit 1; }; } | |
3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3347 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3348 else | |
3349 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3350 case `$LD -v 2>&1 </dev/null` in | |
3351 *GNU* | *'with BFD'*) | |
3352 lt_cv_prog_gnu_ld=yes | |
3353 ;; | |
3354 *) | |
3355 lt_cv_prog_gnu_ld=no | |
3356 ;; | |
3357 esac | |
3358 fi | |
3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3361 with_gnu_ld=$lt_cv_prog_gnu_ld | |
3362 | |
3363 | |
3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3366 if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3367 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3368 else | |
3369 lt_cv_ld_reload_flag='-r' | |
3370 fi | |
3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3373 reload_flag=$lt_cv_ld_reload_flag | |
3374 case $reload_flag in | |
3375 "" | " "*) ;; | |
3376 *) reload_flag=" $reload_flag" ;; | |
3377 esac | |
3378 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3379 | |
3380 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3381 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3382 if test "${lt_cv_path_NM+set}" = set; then | |
3383 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3384 else | |
3385 if test -n "$NM"; then | |
3386 # Let the user override the test. | |
3387 lt_cv_path_NM="$NM" | |
3388 else | |
3389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3390 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3391 IFS="$lt_save_ifs" | |
3392 test -z "$ac_dir" && ac_dir=. | |
3393 tmp_nm="$ac_dir/${ac_tool_prefix}nm" | |
3394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3395 # Check to see if the nm accepts a BSD-compat flag. | |
3396 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3397 # nm: unknown option "B" ignored | |
3398 # Tru64's nm complains that /dev/null is an invalid object file | |
3399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3400 */dev/null* | *'Invalid file or object type'*) | |
3401 lt_cv_path_NM="$tmp_nm -B" | |
3402 break | |
3403 ;; | |
3404 *) | |
3405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3406 */dev/null*) | |
3407 lt_cv_path_NM="$tmp_nm -p" | |
3408 break | |
3409 ;; | |
3410 *) | |
3411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3412 continue # so that we can try to find one that supports BSD flags | |
3413 ;; | |
3414 esac | |
3415 esac | |
3416 fi | |
3417 done | |
3418 IFS="$lt_save_ifs" | |
3419 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3420 fi | |
3421 fi | |
3422 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
3423 echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
3424 NM="$lt_cv_path_NM" | |
3425 | |
3426 echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3427 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3428 LN_S=$as_ln_s | |
3429 if test "$LN_S" = "ln -s"; then | |
3430 echo "$as_me:$LINENO: result: yes" >&5 | |
3431 echo "${ECHO_T}yes" >&6 | |
3432 else | |
3433 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3434 echo "${ECHO_T}no, using $LN_S" >&6 | |
3435 fi | |
3436 | |
3437 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
3438 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | |
3439 if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3440 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3441 else | |
3442 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3443 lt_cv_file_magic_test_file= | |
3444 lt_cv_deplibs_check_method='unknown' | |
3445 # Need to set the preceding variable on all platforms that support | |
3446 # interlibrary dependencies. | |
3447 # 'none' -- dependencies not supported. | |
3448 # `unknown' -- same as none, but documents that we really don't know. | |
3449 # 'pass_all' -- all dependencies passed with no checks. | |
3450 # 'test_compile' -- check by making test program. | |
3451 # 'file_magic [[regex]]' -- check by looking for files in library path | |
3452 # which responds to the $file_magic_cmd with a given extended regex. | |
3453 # If you have `file' or equivalent on your system and you're not sure | |
3454 # whether `pass_all' will *always* work, you probably want this one. | |
3455 | |
3456 case $host_os in | |
3457 aix4* | aix5*) | |
3458 lt_cv_deplibs_check_method=pass_all | |
3459 ;; | |
3460 | |
3461 beos*) | |
3462 lt_cv_deplibs_check_method=pass_all | |
3463 ;; | |
3464 | |
3465 bsdi4*) | |
3466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3467 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3468 lt_cv_file_magic_test_file=/shlib/libc.so | |
3469 ;; | |
3470 | |
3471 cygwin*) | |
3472 # win32_libid is a shell function defined in ltmain.sh | |
3473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3474 lt_cv_file_magic_cmd='win32_libid' | |
3475 ;; | |
3476 | |
3477 mingw* | pw32*) | |
3478 # Base MSYS/MinGW do not provide the 'file' command needed by | |
3479 # win32_libid shell function, so use a weaker test based on 'objdump'. | |
3480 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3481 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3482 ;; | |
3483 | |
3484 darwin* | rhapsody*) | |
3485 lt_cv_deplibs_check_method=pass_all | |
3486 ;; | |
3487 | |
3488 freebsd* | kfreebsd*-gnu) | |
3489 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3490 case $host_cpu in | |
3491 i*86 ) | |
3492 # Not sure whether the presence of OpenBSD here was a mistake. | |
3493 # Let's accept both of them until this is cleared up. | |
3494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3495 lt_cv_file_magic_cmd=/usr/bin/file | |
3496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3497 ;; | |
3498 esac | |
3499 else | |
3500 lt_cv_deplibs_check_method=pass_all | |
3501 fi | |
3502 ;; | |
3503 | |
3504 gnu*) | |
3505 lt_cv_deplibs_check_method=pass_all | |
3506 ;; | |
3507 | |
3508 hpux10.20* | hpux11*) | |
3509 lt_cv_file_magic_cmd=/usr/bin/file | |
3510 case "$host_cpu" in | |
3511 ia64*) | |
3512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3513 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3514 ;; | |
3515 hppa*64*) | |
3516 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]' | |
3517 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3518 ;; | |
3519 *) | |
3520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3521 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3522 ;; | |
3523 esac | |
3524 ;; | |
3525 | |
3526 irix5* | irix6* | nonstopux*) | |
3527 case $LD in | |
3528 *-32|*"-32 ") libmagic=32-bit;; | |
3529 *-n32|*"-n32 ") libmagic=N32;; | |
3530 *-64|*"-64 ") libmagic=64-bit;; | |
3531 *) libmagic=never-match;; | |
3532 esac | |
3533 lt_cv_deplibs_check_method=pass_all | |
3534 ;; | |
3535 | |
3536 # This must be Linux ELF. | |
3537 linux*) | |
3538 lt_cv_deplibs_check_method=pass_all | |
3539 ;; | |
3540 | |
3541 netbsd* | knetbsd*-gnu) | |
3542 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3544 else | |
3545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
3546 fi | |
3547 ;; | |
3548 | |
3549 newos6*) | |
3550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3551 lt_cv_file_magic_cmd=/usr/bin/file | |
3552 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3553 ;; | |
3554 | |
3555 nto-qnx*) | |
3556 lt_cv_deplibs_check_method=unknown | |
3557 ;; | |
3558 | |
3559 openbsd*) | |
3560 lt_cv_file_magic_cmd=/usr/bin/file | |
3561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
3564 else | |
3565 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | |
3566 fi | |
3567 ;; | |
3568 | |
3569 osf3* | osf4* | osf5*) | |
3570 lt_cv_deplibs_check_method=pass_all | |
3571 ;; | |
3572 | |
3573 sco3.2v5*) | |
3574 lt_cv_deplibs_check_method=pass_all | |
3575 ;; | |
3576 | |
3577 solaris*) | |
3578 lt_cv_deplibs_check_method=pass_all | |
3579 ;; | |
3580 | |
3581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3582 case $host_vendor in | |
3583 motorola) | |
3584 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]' | |
3585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3586 ;; | |
3587 ncr) | |
3588 lt_cv_deplibs_check_method=pass_all | |
3589 ;; | |
3590 sequent) | |
3591 lt_cv_file_magic_cmd='/bin/file' | |
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
3593 ;; | |
3594 sni) | |
3595 lt_cv_file_magic_cmd='/bin/file' | |
3596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
3597 lt_cv_file_magic_test_file=/lib/libc.so | |
3598 ;; | |
3599 siemens) | |
3600 lt_cv_deplibs_check_method=pass_all | |
3601 ;; | |
3602 esac | |
3603 ;; | |
3604 | |
3605 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | |
3606 lt_cv_deplibs_check_method=pass_all | |
3607 ;; | |
3608 esac | |
3609 | |
3610 fi | |
3611 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3612 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3613 file_magic_cmd=$lt_cv_file_magic_cmd | |
3614 deplibs_check_method=$lt_cv_deplibs_check_method | |
3615 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
3616 | |
3617 | |
3618 | |
3619 | |
3620 # If no C compiler was specified, use CC. | |
3621 LTCC=${LTCC-"$CC"} | |
3622 | |
3623 # Allow CC to be a program name with arguments. | |
3624 compiler=$CC | |
3625 | |
3626 | |
3627 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3628 if test "${enable_libtool_lock+set}" = set; then | |
3629 enableval="$enable_libtool_lock" | |
3630 | |
3631 fi; | |
3632 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
3633 | |
3634 # Some flags need to be propagated to the compiler or linker for good | |
3635 # libtool support. | |
3636 case $host in | |
3637 ia64-*-hpux*) | |
3638 # Find out which ABI we are using. | |
3639 echo 'int i;' > conftest.$ac_ext | |
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3641 (eval $ac_compile) 2>&5 | |
3642 ac_status=$? | |
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3644 (exit $ac_status); }; then | |
3645 case `/usr/bin/file conftest.$ac_objext` in | |
3646 *ELF-32*) | |
3647 HPUX_IA64_MODE="32" | |
3648 ;; | |
3649 *ELF-64*) | |
3650 HPUX_IA64_MODE="64" | |
3651 ;; | |
3652 esac | |
3653 fi | |
3654 rm -rf conftest* | |
3655 ;; | |
3656 *-*-irix6*) | |
3657 # Find out which ABI we are using. | |
3658 echo '#line 3658 "configure"' > conftest.$ac_ext | |
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3660 (eval $ac_compile) 2>&5 | |
3661 ac_status=$? | |
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3663 (exit $ac_status); }; then | |
3664 if test "$lt_cv_prog_gnu_ld" = yes; then | |
3665 case `/usr/bin/file conftest.$ac_objext` in | |
3666 *32-bit*) | |
3667 LD="${LD-ld} -melf32bsmip" | |
3668 ;; | |
3669 *N32*) | |
3670 LD="${LD-ld} -melf32bmipn32" | |
3671 ;; | |
3672 *64-bit*) | |
3673 LD="${LD-ld} -melf64bmip" | |
3674 ;; | |
3675 esac | |
3676 else | |
3677 case `/usr/bin/file conftest.$ac_objext` in | |
3678 *32-bit*) | |
3679 LD="${LD-ld} -32" | |
3680 ;; | |
3681 *N32*) | |
3682 LD="${LD-ld} -n32" | |
3683 ;; | |
3684 *64-bit*) | |
3685 LD="${LD-ld} -64" | |
3686 ;; | |
3687 esac | |
3688 fi | |
3689 fi | |
3690 rm -rf conftest* | |
3691 ;; | |
3692 | |
3693 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
3694 # Find out which ABI we are using. | |
3695 echo 'int i;' > conftest.$ac_ext | |
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3697 (eval $ac_compile) 2>&5 | |
3698 ac_status=$? | |
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3700 (exit $ac_status); }; then | |
3701 case "`/usr/bin/file conftest.o`" in | |
3702 *32-bit*) | |
3703 case $host in | |
3704 x86_64-*linux*) | |
3705 LD="${LD-ld} -m elf_i386" | |
3706 ;; | |
3707 ppc64-*linux*|powerpc64-*linux*) | |
3708 LD="${LD-ld} -m elf32ppclinux" | |
3709 ;; | |
3710 s390x-*linux*) | |
3711 LD="${LD-ld} -m elf_s390" | |
3712 ;; | |
3713 sparc64-*linux*) | |
3714 LD="${LD-ld} -m elf32_sparc" | |
3715 ;; | |
3716 esac | |
3717 ;; | |
3718 *64-bit*) | |
3719 case $host in | |
3720 x86_64-*linux*) | |
3721 LD="${LD-ld} -m elf_x86_64" | |
3722 ;; | |
3723 ppc*-*linux*|powerpc*-*linux*) | |
3724 LD="${LD-ld} -m elf64ppc" | |
3725 ;; | |
3726 s390*-*linux*) | |
3727 LD="${LD-ld} -m elf64_s390" | |
3728 ;; | |
3729 sparc*-*linux*) | |
3730 LD="${LD-ld} -m elf64_sparc" | |
3731 ;; | |
3732 esac | |
3733 ;; | |
3734 esac | |
3735 fi | |
3736 rm -rf conftest* | |
3737 ;; | |
3738 | |
3739 *-*-sco3.2v5*) | |
3740 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3741 SAVE_CFLAGS="$CFLAGS" | |
3742 CFLAGS="$CFLAGS -belf" | |
3743 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
3744 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3745 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3746 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3747 else | |
3748 ac_ext=c | |
3749 ac_cpp='$CPP $CPPFLAGS' | |
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3753 | |
3754 cat >conftest.$ac_ext <<_ACEOF | |
3755 /* confdefs.h. */ | |
3756 _ACEOF | |
3757 cat confdefs.h >>conftest.$ac_ext | |
3758 cat >>conftest.$ac_ext <<_ACEOF | |
3759 /* end confdefs.h. */ | |
3760 | |
3761 int | |
3762 main () | |
3763 { | |
3764 | |
3765 ; | |
3766 return 0; | |
3767 } | |
3768 _ACEOF | |
3769 rm -f conftest.$ac_objext conftest$ac_exeext | |
3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3771 (eval $ac_link) 2>conftest.er1 | |
3772 ac_status=$? | |
3773 grep -v '^ *+' conftest.er1 >conftest.err | |
3774 rm -f conftest.er1 | |
3775 cat conftest.err >&5 | |
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3777 (exit $ac_status); } && | |
3778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3780 (eval $ac_try) 2>&5 | |
3781 ac_status=$? | |
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3783 (exit $ac_status); }; } && | |
3784 { ac_try='test -s conftest$ac_exeext' | |
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3786 (eval $ac_try) 2>&5 | |
3787 ac_status=$? | |
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3789 (exit $ac_status); }; }; then | |
3790 lt_cv_cc_needs_belf=yes | |
3791 else | |
3792 echo "$as_me: failed program was:" >&5 | |
3793 sed 's/^/| /' conftest.$ac_ext >&5 | |
3794 | |
3795 lt_cv_cc_needs_belf=no | |
3796 fi | |
3797 rm -f conftest.err conftest.$ac_objext \ | |
3798 conftest$ac_exeext conftest.$ac_ext | |
3799 ac_ext=c | |
3800 ac_cpp='$CPP $CPPFLAGS' | |
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3804 | |
3805 fi | |
3806 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
3807 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
3808 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
3809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3810 CFLAGS="$SAVE_CFLAGS" | |
3811 fi | |
3812 ;; | |
3813 | |
3814 esac | |
3815 | |
3816 need_locks="$enable_libtool_lock" | |
3817 | |
3818 | |
3819 ac_ext=c | |
3820 ac_cpp='$CPP $CPPFLAGS' | |
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3826 # On Suns, sometimes $CPP names a directory. | |
3827 if test -n "$CPP" && test -d "$CPP"; then | |
3828 CPP= | |
3829 fi | |
3830 if test -z "$CPP"; then | |
3831 if test "${ac_cv_prog_CPP+set}" = set; then | |
3832 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3833 else | |
3834 # Double quotes because CPP needs to be expanded | |
3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3836 do | |
3837 ac_preproc_ok=false | |
3838 for ac_c_preproc_warn_flag in '' yes | |
3839 do | |
3840 # Use a header file that comes with gcc, so configuring glibc | |
3841 # with a fresh cross-compiler works. | |
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3843 # <limits.h> exists even on freestanding compilers. | |
3844 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3845 # not just through cpp. "Syntax error" is here to catch this case. | |
3846 cat >conftest.$ac_ext <<_ACEOF | |
3847 /* confdefs.h. */ | |
3848 _ACEOF | |
3849 cat confdefs.h >>conftest.$ac_ext | |
3850 cat >>conftest.$ac_ext <<_ACEOF | |
3851 /* end confdefs.h. */ | |
3852 #ifdef __STDC__ | |
3853 # include <limits.h> | |
3854 #else | |
3855 # include <assert.h> | |
3856 #endif | |
3857 Syntax error | |
3858 _ACEOF | |
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3861 ac_status=$? | |
3862 grep -v '^ *+' conftest.er1 >conftest.err | |
3863 rm -f conftest.er1 | |
3864 cat conftest.err >&5 | |
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3866 (exit $ac_status); } >/dev/null; then | |
3867 if test -s conftest.err; then | |
3868 ac_cpp_err=$ac_c_preproc_warn_flag | |
3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3870 else | |
3871 ac_cpp_err= | |
3872 fi | |
3873 else | |
3874 ac_cpp_err=yes | |
3875 fi | |
3876 if test -z "$ac_cpp_err"; then | |
3877 : | |
3878 else | |
3879 echo "$as_me: failed program was:" >&5 | |
3880 sed 's/^/| /' conftest.$ac_ext >&5 | |
3881 | |
3882 # Broken: fails on valid input. | |
3883 continue | |
3884 fi | |
3885 rm -f conftest.err conftest.$ac_ext | |
3886 | |
3887 # OK, works on sane cases. Now check whether non-existent headers | |
3888 # can be detected and how. | |
3889 cat >conftest.$ac_ext <<_ACEOF | |
3890 /* confdefs.h. */ | |
3891 _ACEOF | |
3892 cat confdefs.h >>conftest.$ac_ext | |
3893 cat >>conftest.$ac_ext <<_ACEOF | |
3894 /* end confdefs.h. */ | |
3895 #include <ac_nonexistent.h> | |
3896 _ACEOF | |
3897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3899 ac_status=$? | |
3900 grep -v '^ *+' conftest.er1 >conftest.err | |
3901 rm -f conftest.er1 | |
3902 cat conftest.err >&5 | |
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3904 (exit $ac_status); } >/dev/null; then | |
3905 if test -s conftest.err; then | |
3906 ac_cpp_err=$ac_c_preproc_warn_flag | |
3907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3908 else | |
3909 ac_cpp_err= | |
3910 fi | |
3911 else | |
3912 ac_cpp_err=yes | |
3913 fi | |
3914 if test -z "$ac_cpp_err"; then | |
3915 # Broken: success on invalid input. | |
3916 continue | |
3917 else | |
3918 echo "$as_me: failed program was:" >&5 | |
3919 sed 's/^/| /' conftest.$ac_ext >&5 | |
3920 | |
3921 # Passes both tests. | |
3922 ac_preproc_ok=: | |
3923 break | |
3924 fi | |
3925 rm -f conftest.err conftest.$ac_ext | |
3926 | |
3927 done | |
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3929 rm -f conftest.err conftest.$ac_ext | |
3930 if $ac_preproc_ok; then | |
3931 break | |
3932 fi | |
3933 | |
3934 done | |
3935 ac_cv_prog_CPP=$CPP | |
3936 | |
3937 fi | |
3938 CPP=$ac_cv_prog_CPP | |
3939 else | |
3940 ac_cv_prog_CPP=$CPP | |
3941 fi | |
3942 echo "$as_me:$LINENO: result: $CPP" >&5 | |
3943 echo "${ECHO_T}$CPP" >&6 | |
3944 ac_preproc_ok=false | |
3945 for ac_c_preproc_warn_flag in '' yes | |
3946 do | |
3947 # Use a header file that comes with gcc, so configuring glibc | |
3948 # with a fresh cross-compiler works. | |
3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3950 # <limits.h> exists even on freestanding compilers. | |
3951 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3952 # not just through cpp. "Syntax error" is here to catch this case. | |
3953 cat >conftest.$ac_ext <<_ACEOF | |
3954 /* confdefs.h. */ | |
3955 _ACEOF | |
3956 cat confdefs.h >>conftest.$ac_ext | |
3957 cat >>conftest.$ac_ext <<_ACEOF | |
3958 /* end confdefs.h. */ | |
3959 #ifdef __STDC__ | |
3960 # include <limits.h> | |
3961 #else | |
3962 # include <assert.h> | |
3963 #endif | |
3964 Syntax error | |
3965 _ACEOF | |
3966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3968 ac_status=$? | |
3969 grep -v '^ *+' conftest.er1 >conftest.err | |
3970 rm -f conftest.er1 | |
3971 cat conftest.err >&5 | |
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3973 (exit $ac_status); } >/dev/null; then | |
3974 if test -s conftest.err; then | |
3975 ac_cpp_err=$ac_c_preproc_warn_flag | |
3976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3977 else | |
3978 ac_cpp_err= | |
3979 fi | |
3980 else | |
3981 ac_cpp_err=yes | |
3982 fi | |
3983 if test -z "$ac_cpp_err"; then | |
3984 : | |
3985 else | |
3986 echo "$as_me: failed program was:" >&5 | |
3987 sed 's/^/| /' conftest.$ac_ext >&5 | |
3988 | |
3989 # Broken: fails on valid input. | |
3990 continue | |
3991 fi | |
3992 rm -f conftest.err conftest.$ac_ext | |
3993 | |
3994 # OK, works on sane cases. Now check whether non-existent headers | |
3995 # can be detected and how. | |
3996 cat >conftest.$ac_ext <<_ACEOF | |
3997 /* confdefs.h. */ | |
3998 _ACEOF | |
3999 cat confdefs.h >>conftest.$ac_ext | |
4000 cat >>conftest.$ac_ext <<_ACEOF | |
4001 /* end confdefs.h. */ | |
4002 #include <ac_nonexistent.h> | |
4003 _ACEOF | |
4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4006 ac_status=$? | |
4007 grep -v '^ *+' conftest.er1 >conftest.err | |
4008 rm -f conftest.er1 | |
4009 cat conftest.err >&5 | |
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4011 (exit $ac_status); } >/dev/null; then | |
4012 if test -s conftest.err; then | |
4013 ac_cpp_err=$ac_c_preproc_warn_flag | |
4014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4015 else | |
4016 ac_cpp_err= | |
4017 fi | |
4018 else | |
4019 ac_cpp_err=yes | |
4020 fi | |
4021 if test -z "$ac_cpp_err"; then | |
4022 # Broken: success on invalid input. | |
4023 continue | |
4024 else | |
4025 echo "$as_me: failed program was:" >&5 | |
4026 sed 's/^/| /' conftest.$ac_ext >&5 | |
4027 | |
4028 # Passes both tests. | |
4029 ac_preproc_ok=: | |
4030 break | |
4031 fi | |
4032 rm -f conftest.err conftest.$ac_ext | |
4033 | |
4034 done | |
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4036 rm -f conftest.err conftest.$ac_ext | |
4037 if $ac_preproc_ok; then | |
4038 : | |
4039 else | |
4040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4041 See \`config.log' for more details." >&5 | |
4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4043 See \`config.log' for more details." >&2;} | |
4044 { (exit 1); exit 1; }; } | |
4045 fi | |
4046 | |
4047 ac_ext=c | |
4048 ac_cpp='$CPP $CPPFLAGS' | |
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4052 | |
4053 | |
4054 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4056 if test "${ac_cv_header_stdc+set}" = set; then | |
4057 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4058 else | |
4059 cat >conftest.$ac_ext <<_ACEOF | |
4060 /* confdefs.h. */ | |
4061 _ACEOF | |
4062 cat confdefs.h >>conftest.$ac_ext | |
4063 cat >>conftest.$ac_ext <<_ACEOF | |
4064 /* end confdefs.h. */ | |
4065 #include <stdlib.h> | |
4066 #include <stdarg.h> | |
4067 #include <string.h> | |
4068 #include <float.h> | |
4069 | |
4070 int | |
4071 main () | |
4072 { | |
4073 | |
4074 ; | |
4075 return 0; | |
4076 } | |
4077 _ACEOF | |
4078 rm -f conftest.$ac_objext | |
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4080 (eval $ac_compile) 2>conftest.er1 | |
4081 ac_status=$? | |
4082 grep -v '^ *+' conftest.er1 >conftest.err | |
4083 rm -f conftest.er1 | |
4084 cat conftest.err >&5 | |
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4086 (exit $ac_status); } && | |
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4089 (eval $ac_try) 2>&5 | |
4090 ac_status=$? | |
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4092 (exit $ac_status); }; } && | |
4093 { ac_try='test -s conftest.$ac_objext' | |
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4095 (eval $ac_try) 2>&5 | |
4096 ac_status=$? | |
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4098 (exit $ac_status); }; }; then | |
4099 ac_cv_header_stdc=yes | |
4100 else | |
4101 echo "$as_me: failed program was:" >&5 | |
4102 sed 's/^/| /' conftest.$ac_ext >&5 | |
4103 | |
4104 ac_cv_header_stdc=no | |
4105 fi | |
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4107 | |
4108 if test $ac_cv_header_stdc = yes; then | |
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
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 #include <string.h> | |
4117 | |
4118 _ACEOF | |
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4120 $EGREP "memchr" >/dev/null 2>&1; then | |
4121 : | |
4122 else | |
4123 ac_cv_header_stdc=no | |
4124 fi | |
4125 rm -f conftest* | |
4126 | |
4127 fi | |
4128 | |
4129 if test $ac_cv_header_stdc = yes; then | |
4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4131 cat >conftest.$ac_ext <<_ACEOF | |
4132 /* confdefs.h. */ | |
4133 _ACEOF | |
4134 cat confdefs.h >>conftest.$ac_ext | |
4135 cat >>conftest.$ac_ext <<_ACEOF | |
4136 /* end confdefs.h. */ | |
4137 #include <stdlib.h> | |
4138 | |
4139 _ACEOF | |
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4141 $EGREP "free" >/dev/null 2>&1; then | |
4142 : | |
4143 else | |
4144 ac_cv_header_stdc=no | |
4145 fi | |
4146 rm -f conftest* | |
4147 | |
4148 fi | |
4149 | |
4150 if test $ac_cv_header_stdc = yes; then | |
4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4152 if test "$cross_compiling" = yes; then | |
4153 : | |
4154 else | |
4155 cat >conftest.$ac_ext <<_ACEOF | |
4156 /* confdefs.h. */ | |
4157 _ACEOF | |
4158 cat confdefs.h >>conftest.$ac_ext | |
4159 cat >>conftest.$ac_ext <<_ACEOF | |
4160 /* end confdefs.h. */ | |
4161 #include <ctype.h> | |
4162 #if ((' ' & 0x0FF) == 0x020) | |
4163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4165 #else | |
4166 # define ISLOWER(c) \ | |
4167 (('a' <= (c) && (c) <= 'i') \ | |
4168 || ('j' <= (c) && (c) <= 'r') \ | |
4169 || ('s' <= (c) && (c) <= 'z')) | |
4170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4171 #endif | |
4172 | |
4173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4174 int | |
4175 main () | |
4176 { | |
4177 int i; | |
4178 for (i = 0; i < 256; i++) | |
4179 if (XOR (islower (i), ISLOWER (i)) | |
4180 || toupper (i) != TOUPPER (i)) | |
4181 exit(2); | |
4182 exit (0); | |
4183 } | |
4184 _ACEOF | |
4185 rm -f conftest$ac_exeext | |
4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4187 (eval $ac_link) 2>&5 | |
4188 ac_status=$? | |
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4192 (eval $ac_try) 2>&5 | |
4193 ac_status=$? | |
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4195 (exit $ac_status); }; }; then | |
4196 : | |
4197 else | |
4198 echo "$as_me: program exited with status $ac_status" >&5 | |
4199 echo "$as_me: failed program was:" >&5 | |
4200 sed 's/^/| /' conftest.$ac_ext >&5 | |
4201 | |
4202 ( exit $ac_status ) | |
4203 ac_cv_header_stdc=no | |
4204 fi | |
4205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4206 fi | |
4207 fi | |
4208 fi | |
4209 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4210 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4211 if test $ac_cv_header_stdc = yes; then | |
4212 | |
4213 cat >>confdefs.h <<\_ACEOF | |
4214 #define STDC_HEADERS 1 | |
4215 _ACEOF | |
4216 | |
4217 fi | |
4218 | |
4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4220 | |
4221 | |
4222 | |
4223 | |
4224 | |
4225 | |
4226 | |
4227 | |
4228 | |
4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4230 inttypes.h stdint.h unistd.h | |
4231 do | |
4232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4233 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4235 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4236 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4237 else | |
4238 cat >conftest.$ac_ext <<_ACEOF | |
4239 /* confdefs.h. */ | |
4240 _ACEOF | |
4241 cat confdefs.h >>conftest.$ac_ext | |
4242 cat >>conftest.$ac_ext <<_ACEOF | |
4243 /* end confdefs.h. */ | |
4244 $ac_includes_default | |
4245 | |
4246 #include <$ac_header> | |
4247 _ACEOF | |
4248 rm -f conftest.$ac_objext | |
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4250 (eval $ac_compile) 2>conftest.er1 | |
4251 ac_status=$? | |
4252 grep -v '^ *+' conftest.er1 >conftest.err | |
4253 rm -f conftest.er1 | |
4254 cat conftest.err >&5 | |
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4256 (exit $ac_status); } && | |
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4259 (eval $ac_try) 2>&5 | |
4260 ac_status=$? | |
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4262 (exit $ac_status); }; } && | |
4263 { ac_try='test -s conftest.$ac_objext' | |
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4265 (eval $ac_try) 2>&5 | |
4266 ac_status=$? | |
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4268 (exit $ac_status); }; }; then | |
4269 eval "$as_ac_Header=yes" | |
4270 else | |
4271 echo "$as_me: failed program was:" >&5 | |
4272 sed 's/^/| /' conftest.$ac_ext >&5 | |
4273 | |
4274 eval "$as_ac_Header=no" | |
4275 fi | |
4276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4277 fi | |
4278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4280 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4281 cat >>confdefs.h <<_ACEOF | |
4282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4283 _ACEOF | |
4284 | |
4285 fi | |
4286 | |
4287 done | |
4288 | |
4289 | |
4290 | |
4291 for ac_header in dlfcn.h | |
4292 do | |
4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4294 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4295 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4298 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4299 fi | |
4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4302 else | |
4303 # Is the header compilable? | |
4304 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4306 cat >conftest.$ac_ext <<_ACEOF | |
4307 /* confdefs.h. */ | |
4308 _ACEOF | |
4309 cat confdefs.h >>conftest.$ac_ext | |
4310 cat >>conftest.$ac_ext <<_ACEOF | |
4311 /* end confdefs.h. */ | |
4312 $ac_includes_default | |
4313 #include <$ac_header> | |
4314 _ACEOF | |
4315 rm -f conftest.$ac_objext | |
4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4317 (eval $ac_compile) 2>conftest.er1 | |
4318 ac_status=$? | |
4319 grep -v '^ *+' conftest.er1 >conftest.err | |
4320 rm -f conftest.er1 | |
4321 cat conftest.err >&5 | |
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4323 (exit $ac_status); } && | |
4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4326 (eval $ac_try) 2>&5 | |
4327 ac_status=$? | |
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4329 (exit $ac_status); }; } && | |
4330 { ac_try='test -s conftest.$ac_objext' | |
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4332 (eval $ac_try) 2>&5 | |
4333 ac_status=$? | |
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4335 (exit $ac_status); }; }; then | |
4336 ac_header_compiler=yes | |
4337 else | |
4338 echo "$as_me: failed program was:" >&5 | |
4339 sed 's/^/| /' conftest.$ac_ext >&5 | |
4340 | |
4341 ac_header_compiler=no | |
4342 fi | |
4343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4345 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4346 | |
4347 # Is the header present? | |
4348 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4350 cat >conftest.$ac_ext <<_ACEOF | |
4351 /* confdefs.h. */ | |
4352 _ACEOF | |
4353 cat confdefs.h >>conftest.$ac_ext | |
4354 cat >>conftest.$ac_ext <<_ACEOF | |
4355 /* end confdefs.h. */ | |
4356 #include <$ac_header> | |
4357 _ACEOF | |
4358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4360 ac_status=$? | |
4361 grep -v '^ *+' conftest.er1 >conftest.err | |
4362 rm -f conftest.er1 | |
4363 cat conftest.err >&5 | |
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4365 (exit $ac_status); } >/dev/null; then | |
4366 if test -s conftest.err; then | |
4367 ac_cpp_err=$ac_c_preproc_warn_flag | |
4368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4369 else | |
4370 ac_cpp_err= | |
4371 fi | |
4372 else | |
4373 ac_cpp_err=yes | |
4374 fi | |
4375 if test -z "$ac_cpp_err"; then | |
4376 ac_header_preproc=yes | |
4377 else | |
4378 echo "$as_me: failed program was:" >&5 | |
4379 sed 's/^/| /' conftest.$ac_ext >&5 | |
4380 | |
4381 ac_header_preproc=no | |
4382 fi | |
4383 rm -f conftest.err conftest.$ac_ext | |
4384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4385 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4386 | |
4387 # So? What about this header? | |
4388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4389 yes:no: ) | |
4390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4394 ac_header_preproc=yes | |
4395 ;; | |
4396 no:yes:* ) | |
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4409 ( | |
4410 cat <<\_ASBOX | |
4411 ## ----------------------------------- ## | |
4412 ## Report this to support@underbit.com ## | |
4413 ## ----------------------------------- ## | |
4414 _ASBOX | |
4415 ) | | |
4416 sed "s/^/$as_me: WARNING: /" >&2 | |
4417 ;; | |
4418 esac | |
4419 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4421 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4422 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4423 else | |
4424 eval "$as_ac_Header=\$ac_header_preproc" | |
4425 fi | |
4426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4428 | |
4429 fi | |
4430 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4431 cat >>confdefs.h <<_ACEOF | |
4432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4433 _ACEOF | |
4434 | |
4435 fi | |
4436 | |
4437 done | |
4438 | |
4439 ac_ext=cc | |
4440 ac_cpp='$CXXCPP $CPPFLAGS' | |
4441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4444 if test -n "$ac_tool_prefix"; then | |
4445 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4446 do | |
4447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4451 if test "${ac_cv_prog_CXX+set}" = set; then | |
4452 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4453 else | |
4454 if test -n "$CXX"; then | |
4455 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4456 else | |
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4458 for as_dir in $PATH | |
4459 do | |
4460 IFS=$as_save_IFS | |
4461 test -z "$as_dir" && as_dir=. | |
4462 for ac_exec_ext in '' $ac_executable_extensions; do | |
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4464 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4466 break 2 | |
4467 fi | |
4468 done | |
4469 done | |
4470 | |
4471 fi | |
4472 fi | |
4473 CXX=$ac_cv_prog_CXX | |
4474 if test -n "$CXX"; then | |
4475 echo "$as_me:$LINENO: result: $CXX" >&5 | |
4476 echo "${ECHO_T}$CXX" >&6 | |
4477 else | |
4478 echo "$as_me:$LINENO: result: no" >&5 | |
4479 echo "${ECHO_T}no" >&6 | |
4480 fi | |
4481 | |
4482 test -n "$CXX" && break | |
4483 done | |
4484 fi | |
4485 if test -z "$CXX"; then | |
4486 ac_ct_CXX=$CXX | |
4487 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4488 do | |
4489 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4490 set dummy $ac_prog; ac_word=$2 | |
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4493 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
4494 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4495 else | |
4496 if test -n "$ac_ct_CXX"; then | |
4497 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4498 else | |
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4500 for as_dir in $PATH | |
4501 do | |
4502 IFS=$as_save_IFS | |
4503 test -z "$as_dir" && as_dir=. | |
4504 for ac_exec_ext in '' $ac_executable_extensions; do | |
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4506 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4508 break 2 | |
4509 fi | |
4510 done | |
4511 done | |
4512 | |
4513 fi | |
4514 fi | |
4515 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4516 if test -n "$ac_ct_CXX"; then | |
4517 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
4518 echo "${ECHO_T}$ac_ct_CXX" >&6 | |
4519 else | |
4520 echo "$as_me:$LINENO: result: no" >&5 | |
4521 echo "${ECHO_T}no" >&6 | |
4522 fi | |
4523 | |
4524 test -n "$ac_ct_CXX" && break | |
4525 done | |
4526 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
4527 | |
4528 CXX=$ac_ct_CXX | |
4529 fi | |
4530 | |
4531 | |
4532 # Provide some information about the compiler. | |
4533 echo "$as_me:$LINENO:" \ | |
4534 "checking for C++ compiler version" >&5 | |
4535 ac_compiler=`set X $ac_compile; echo $2` | |
4536 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4537 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4538 ac_status=$? | |
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4540 (exit $ac_status); } | |
4541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4542 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4543 ac_status=$? | |
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4545 (exit $ac_status); } | |
4546 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4547 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4548 ac_status=$? | |
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4550 (exit $ac_status); } | |
4551 | |
4552 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
4553 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
4554 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
4555 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4556 else | |
4557 cat >conftest.$ac_ext <<_ACEOF | |
4558 /* confdefs.h. */ | |
4559 _ACEOF | |
4560 cat confdefs.h >>conftest.$ac_ext | |
4561 cat >>conftest.$ac_ext <<_ACEOF | |
4562 /* end confdefs.h. */ | |
4563 | |
4564 int | |
4565 main () | |
4566 { | |
4567 #ifndef __GNUC__ | |
4568 choke me | |
4569 #endif | |
4570 | |
4571 ; | |
4572 return 0; | |
4573 } | |
4574 _ACEOF | |
4575 rm -f conftest.$ac_objext | |
4576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4577 (eval $ac_compile) 2>conftest.er1 | |
4578 ac_status=$? | |
4579 grep -v '^ *+' conftest.er1 >conftest.err | |
4580 rm -f conftest.er1 | |
4581 cat conftest.err >&5 | |
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4583 (exit $ac_status); } && | |
4584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4586 (eval $ac_try) 2>&5 | |
4587 ac_status=$? | |
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4589 (exit $ac_status); }; } && | |
4590 { ac_try='test -s conftest.$ac_objext' | |
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4592 (eval $ac_try) 2>&5 | |
4593 ac_status=$? | |
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4595 (exit $ac_status); }; }; then | |
4596 ac_compiler_gnu=yes | |
4597 else | |
4598 echo "$as_me: failed program was:" >&5 | |
4599 sed 's/^/| /' conftest.$ac_ext >&5 | |
4600 | |
4601 ac_compiler_gnu=no | |
4602 fi | |
4603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4604 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4605 | |
4606 fi | |
4607 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4608 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
4609 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
4610 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4611 ac_save_CXXFLAGS=$CXXFLAGS | |
4612 CXXFLAGS="-g" | |
4613 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4614 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
4615 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
4616 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4617 else | |
4618 cat >conftest.$ac_ext <<_ACEOF | |
4619 /* confdefs.h. */ | |
4620 _ACEOF | |
4621 cat confdefs.h >>conftest.$ac_ext | |
4622 cat >>conftest.$ac_ext <<_ACEOF | |
4623 /* end confdefs.h. */ | |
4624 | |
4625 int | |
4626 main () | |
4627 { | |
4628 | |
4629 ; | |
4630 return 0; | |
4631 } | |
4632 _ACEOF | |
4633 rm -f conftest.$ac_objext | |
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4635 (eval $ac_compile) 2>conftest.er1 | |
4636 ac_status=$? | |
4637 grep -v '^ *+' conftest.er1 >conftest.err | |
4638 rm -f conftest.er1 | |
4639 cat conftest.err >&5 | |
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4641 (exit $ac_status); } && | |
4642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4644 (eval $ac_try) 2>&5 | |
4645 ac_status=$? | |
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4647 (exit $ac_status); }; } && | |
4648 { ac_try='test -s conftest.$ac_objext' | |
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4650 (eval $ac_try) 2>&5 | |
4651 ac_status=$? | |
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4653 (exit $ac_status); }; }; then | |
4654 ac_cv_prog_cxx_g=yes | |
4655 else | |
4656 echo "$as_me: failed program was:" >&5 | |
4657 sed 's/^/| /' conftest.$ac_ext >&5 | |
4658 | |
4659 ac_cv_prog_cxx_g=no | |
4660 fi | |
4661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4662 fi | |
4663 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
4664 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
4665 if test "$ac_test_CXXFLAGS" = set; then | |
4666 CXXFLAGS=$ac_save_CXXFLAGS | |
4667 elif test $ac_cv_prog_cxx_g = yes; then | |
4668 if test "$GXX" = yes; then | |
4669 CXXFLAGS="-g -O2" | |
4670 else | |
4671 CXXFLAGS="-g" | |
4672 fi | |
4673 else | |
4674 if test "$GXX" = yes; then | |
4675 CXXFLAGS="-O2" | |
4676 else | |
4677 CXXFLAGS= | |
4678 fi | |
4679 fi | |
4680 for ac_declaration in \ | |
4681 '' \ | |
4682 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4683 'extern "C" void std::exit (int); using std::exit;' \ | |
4684 'extern "C" void exit (int) throw ();' \ | |
4685 'extern "C" void exit (int);' \ | |
4686 'void exit (int);' | |
4687 do | |
4688 cat >conftest.$ac_ext <<_ACEOF | |
4689 /* confdefs.h. */ | |
4690 _ACEOF | |
4691 cat confdefs.h >>conftest.$ac_ext | |
4692 cat >>conftest.$ac_ext <<_ACEOF | |
4693 /* end confdefs.h. */ | |
4694 $ac_declaration | |
4695 #include <stdlib.h> | |
4696 int | |
4697 main () | |
4698 { | |
4699 exit (42); | |
4700 ; | |
4701 return 0; | |
4702 } | |
4703 _ACEOF | |
4704 rm -f conftest.$ac_objext | |
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4706 (eval $ac_compile) 2>conftest.er1 | |
4707 ac_status=$? | |
4708 grep -v '^ *+' conftest.er1 >conftest.err | |
4709 rm -f conftest.er1 | |
4710 cat conftest.err >&5 | |
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4712 (exit $ac_status); } && | |
4713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4715 (eval $ac_try) 2>&5 | |
4716 ac_status=$? | |
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4718 (exit $ac_status); }; } && | |
4719 { ac_try='test -s conftest.$ac_objext' | |
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4721 (eval $ac_try) 2>&5 | |
4722 ac_status=$? | |
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4724 (exit $ac_status); }; }; then | |
4725 : | |
4726 else | |
4727 echo "$as_me: failed program was:" >&5 | |
4728 sed 's/^/| /' conftest.$ac_ext >&5 | |
4729 | |
4730 continue | |
4731 fi | |
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4733 cat >conftest.$ac_ext <<_ACEOF | |
4734 /* confdefs.h. */ | |
4735 _ACEOF | |
4736 cat confdefs.h >>conftest.$ac_ext | |
4737 cat >>conftest.$ac_ext <<_ACEOF | |
4738 /* end confdefs.h. */ | |
4739 $ac_declaration | |
4740 int | |
4741 main () | |
4742 { | |
4743 exit (42); | |
4744 ; | |
4745 return 0; | |
4746 } | |
4747 _ACEOF | |
4748 rm -f conftest.$ac_objext | |
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4750 (eval $ac_compile) 2>conftest.er1 | |
4751 ac_status=$? | |
4752 grep -v '^ *+' conftest.er1 >conftest.err | |
4753 rm -f conftest.er1 | |
4754 cat conftest.err >&5 | |
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4756 (exit $ac_status); } && | |
4757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4759 (eval $ac_try) 2>&5 | |
4760 ac_status=$? | |
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4762 (exit $ac_status); }; } && | |
4763 { ac_try='test -s conftest.$ac_objext' | |
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4765 (eval $ac_try) 2>&5 | |
4766 ac_status=$? | |
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4768 (exit $ac_status); }; }; then | |
4769 break | |
4770 else | |
4771 echo "$as_me: failed program was:" >&5 | |
4772 sed 's/^/| /' conftest.$ac_ext >&5 | |
4773 | |
4774 fi | |
4775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4776 done | |
4777 rm -f conftest* | |
4778 if test -n "$ac_declaration"; then | |
4779 echo '#ifdef __cplusplus' >>confdefs.h | |
4780 echo $ac_declaration >>confdefs.h | |
4781 echo '#endif' >>confdefs.h | |
4782 fi | |
4783 | |
4784 ac_ext=cc | |
4785 ac_cpp='$CXXCPP $CPPFLAGS' | |
4786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4789 | |
4790 depcc="$CXX" am_compiler_list= | |
4791 | |
4792 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
4793 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
4794 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
4795 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4796 else | |
4797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4798 # We make a subdir and do the tests there. Otherwise we can end up | |
4799 # making bogus files that we don't know about and never remove. For | |
4800 # instance it was reported that on HP-UX the gcc test will end up | |
4801 # making a dummy file named `D' -- because `-MD' means `put the output | |
4802 # in D'. | |
4803 mkdir conftest.dir | |
4804 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4805 # using a relative directory. | |
4806 cp "$am_depcomp" conftest.dir | |
4807 cd conftest.dir | |
4808 # We will build objects and dependencies in a subdirectory because | |
4809 # it helps to detect inapplicable dependency modes. For instance | |
4810 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4811 # side effect of compilation, but ICC will put the dependencies in | |
4812 # the current directory while Tru64 will put them in the object | |
4813 # directory. | |
4814 mkdir sub | |
4815 | |
4816 am_cv_CXX_dependencies_compiler_type=none | |
4817 if test "$am_compiler_list" = ""; then | |
4818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4819 fi | |
4820 for depmode in $am_compiler_list; do | |
4821 # Setup a source with many dependencies, because some compilers | |
4822 # like to wrap large dependency lists on column 80 (with \), and | |
4823 # we should not choose a depcomp mode which is confused by this. | |
4824 # | |
4825 # We need to recreate these files for each test, as the compiler may | |
4826 # overwrite some of them when testing with obscure command lines. | |
4827 # This happens at least with the AIX C compiler. | |
4828 : > sub/conftest.c | |
4829 for i in 1 2 3 4 5 6; do | |
4830 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4831 : > sub/conftst$i.h | |
4832 done | |
4833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4834 | |
4835 case $depmode in | |
4836 nosideeffect) | |
4837 # after this tag, mechanisms are not by side-effect, so they'll | |
4838 # only be used when explicitly requested | |
4839 if test "x$enable_dependency_tracking" = xyes; then | |
4840 continue | |
4841 else | |
4842 break | |
4843 fi | |
4844 ;; | |
4845 none) break ;; | |
4846 esac | |
4847 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4848 # mode. It turns out that the SunPro C++ compiler does not properly | |
4849 # handle `-M -o', and we need to detect this. | |
4850 if depmode=$depmode \ | |
4851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
4854 >/dev/null 2>conftest.err && | |
4855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4858 # icc doesn't choke on unknown options, it will just issue warnings | |
4859 # (even with -Werror). So we grep stderr for any message | |
4860 # that says an option was ignored. | |
4861 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | |
4862 am_cv_CXX_dependencies_compiler_type=$depmode | |
4863 break | |
4864 fi | |
4865 fi | |
4866 done | |
4867 | |
4868 cd .. | |
4869 rm -rf conftest.dir | |
4870 else | |
4871 am_cv_CXX_dependencies_compiler_type=none | |
4872 fi | |
4873 | |
4874 fi | |
4875 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4876 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
4877 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4878 | |
4879 | |
4880 | |
4881 if | |
4882 test "x$enable_dependency_tracking" != xno \ | |
4883 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4884 am__fastdepCXX_TRUE= | |
4885 am__fastdepCXX_FALSE='#' | |
4886 else | |
4887 am__fastdepCXX_TRUE='#' | |
4888 am__fastdepCXX_FALSE= | |
4889 fi | |
4890 | |
4891 | |
4892 ac_ext=cc | |
4893 ac_cpp='$CXXCPP $CPPFLAGS' | |
4894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4897 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4898 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4899 if test -z "$CXXCPP"; then | |
4900 if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4901 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4902 else | |
4903 # Double quotes because CXXCPP needs to be expanded | |
4904 for CXXCPP in "$CXX -E" "/lib/cpp" | |
4905 do | |
4906 ac_preproc_ok=false | |
4907 for ac_cxx_preproc_warn_flag in '' yes | |
4908 do | |
4909 # Use a header file that comes with gcc, so configuring glibc | |
4910 # with a fresh cross-compiler works. | |
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4912 # <limits.h> exists even on freestanding compilers. | |
4913 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4914 # not just through cpp. "Syntax error" is here to catch this case. | |
4915 cat >conftest.$ac_ext <<_ACEOF | |
4916 /* confdefs.h. */ | |
4917 _ACEOF | |
4918 cat confdefs.h >>conftest.$ac_ext | |
4919 cat >>conftest.$ac_ext <<_ACEOF | |
4920 /* end confdefs.h. */ | |
4921 #ifdef __STDC__ | |
4922 # include <limits.h> | |
4923 #else | |
4924 # include <assert.h> | |
4925 #endif | |
4926 Syntax error | |
4927 _ACEOF | |
4928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4930 ac_status=$? | |
4931 grep -v '^ *+' conftest.er1 >conftest.err | |
4932 rm -f conftest.er1 | |
4933 cat conftest.err >&5 | |
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4935 (exit $ac_status); } >/dev/null; then | |
4936 if test -s conftest.err; then | |
4937 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
4939 else | |
4940 ac_cpp_err= | |
4941 fi | |
4942 else | |
4943 ac_cpp_err=yes | |
4944 fi | |
4945 if test -z "$ac_cpp_err"; then | |
4946 : | |
4947 else | |
4948 echo "$as_me: failed program was:" >&5 | |
4949 sed 's/^/| /' conftest.$ac_ext >&5 | |
4950 | |
4951 # Broken: fails on valid input. | |
4952 continue | |
4953 fi | |
4954 rm -f conftest.err conftest.$ac_ext | |
4955 | |
4956 # OK, works on sane cases. Now check whether non-existent headers | |
4957 # can be detected and how. | |
4958 cat >conftest.$ac_ext <<_ACEOF | |
4959 /* confdefs.h. */ | |
4960 _ACEOF | |
4961 cat confdefs.h >>conftest.$ac_ext | |
4962 cat >>conftest.$ac_ext <<_ACEOF | |
4963 /* end confdefs.h. */ | |
4964 #include <ac_nonexistent.h> | |
4965 _ACEOF | |
4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4968 ac_status=$? | |
4969 grep -v '^ *+' conftest.er1 >conftest.err | |
4970 rm -f conftest.er1 | |
4971 cat conftest.err >&5 | |
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4973 (exit $ac_status); } >/dev/null; then | |
4974 if test -s conftest.err; then | |
4975 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
4977 else | |
4978 ac_cpp_err= | |
4979 fi | |
4980 else | |
4981 ac_cpp_err=yes | |
4982 fi | |
4983 if test -z "$ac_cpp_err"; then | |
4984 # Broken: success on invalid input. | |
4985 continue | |
4986 else | |
4987 echo "$as_me: failed program was:" >&5 | |
4988 sed 's/^/| /' conftest.$ac_ext >&5 | |
4989 | |
4990 # Passes both tests. | |
4991 ac_preproc_ok=: | |
4992 break | |
4993 fi | |
4994 rm -f conftest.err conftest.$ac_ext | |
4995 | |
4996 done | |
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4998 rm -f conftest.err conftest.$ac_ext | |
4999 if $ac_preproc_ok; then | |
5000 break | |
5001 fi | |
5002 | |
5003 done | |
5004 ac_cv_prog_CXXCPP=$CXXCPP | |
5005 | |
5006 fi | |
5007 CXXCPP=$ac_cv_prog_CXXCPP | |
5008 else | |
5009 ac_cv_prog_CXXCPP=$CXXCPP | |
5010 fi | |
5011 echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5012 echo "${ECHO_T}$CXXCPP" >&6 | |
5013 ac_preproc_ok=false | |
5014 for ac_cxx_preproc_warn_flag in '' yes | |
5015 do | |
5016 # Use a header file that comes with gcc, so configuring glibc | |
5017 # with a fresh cross-compiler works. | |
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5019 # <limits.h> exists even on freestanding compilers. | |
5020 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5021 # not just through cpp. "Syntax error" is here to catch this case. | |
5022 cat >conftest.$ac_ext <<_ACEOF | |
5023 /* confdefs.h. */ | |
5024 _ACEOF | |
5025 cat confdefs.h >>conftest.$ac_ext | |
5026 cat >>conftest.$ac_ext <<_ACEOF | |
5027 /* end confdefs.h. */ | |
5028 #ifdef __STDC__ | |
5029 # include <limits.h> | |
5030 #else | |
5031 # include <assert.h> | |
5032 #endif | |
5033 Syntax error | |
5034 _ACEOF | |
5035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5037 ac_status=$? | |
5038 grep -v '^ *+' conftest.er1 >conftest.err | |
5039 rm -f conftest.er1 | |
5040 cat conftest.err >&5 | |
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5042 (exit $ac_status); } >/dev/null; then | |
5043 if test -s conftest.err; then | |
5044 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5046 else | |
5047 ac_cpp_err= | |
5048 fi | |
5049 else | |
5050 ac_cpp_err=yes | |
5051 fi | |
5052 if test -z "$ac_cpp_err"; then | |
5053 : | |
5054 else | |
5055 echo "$as_me: failed program was:" >&5 | |
5056 sed 's/^/| /' conftest.$ac_ext >&5 | |
5057 | |
5058 # Broken: fails on valid input. | |
5059 continue | |
5060 fi | |
5061 rm -f conftest.err conftest.$ac_ext | |
5062 | |
5063 # OK, works on sane cases. Now check whether non-existent headers | |
5064 # can be detected and how. | |
5065 cat >conftest.$ac_ext <<_ACEOF | |
5066 /* confdefs.h. */ | |
5067 _ACEOF | |
5068 cat confdefs.h >>conftest.$ac_ext | |
5069 cat >>conftest.$ac_ext <<_ACEOF | |
5070 /* end confdefs.h. */ | |
5071 #include <ac_nonexistent.h> | |
5072 _ACEOF | |
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5075 ac_status=$? | |
5076 grep -v '^ *+' conftest.er1 >conftest.err | |
5077 rm -f conftest.er1 | |
5078 cat conftest.err >&5 | |
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5080 (exit $ac_status); } >/dev/null; then | |
5081 if test -s conftest.err; then | |
5082 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5084 else | |
5085 ac_cpp_err= | |
5086 fi | |
5087 else | |
5088 ac_cpp_err=yes | |
5089 fi | |
5090 if test -z "$ac_cpp_err"; then | |
5091 # Broken: success on invalid input. | |
5092 continue | |
5093 else | |
5094 echo "$as_me: failed program was:" >&5 | |
5095 sed 's/^/| /' conftest.$ac_ext >&5 | |
5096 | |
5097 # Passes both tests. | |
5098 ac_preproc_ok=: | |
5099 break | |
5100 fi | |
5101 rm -f conftest.err conftest.$ac_ext | |
5102 | |
5103 done | |
5104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5105 rm -f conftest.err conftest.$ac_ext | |
5106 if $ac_preproc_ok; then | |
5107 : | |
5108 else | |
5109 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5110 See \`config.log' for more details." >&5 | |
5111 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5112 See \`config.log' for more details." >&2;} | |
5113 { (exit 1); exit 1; }; } | |
5114 fi | |
5115 | |
5116 ac_ext=cc | |
5117 ac_cpp='$CXXCPP $CPPFLAGS' | |
5118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5121 | |
5122 | |
5123 ac_ext=f | |
5124 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5125 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5126 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5127 if test -n "$ac_tool_prefix"; then | |
5128 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5129 do | |
5130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5134 if test "${ac_cv_prog_F77+set}" = set; then | |
5135 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5136 else | |
5137 if test -n "$F77"; then | |
5138 ac_cv_prog_F77="$F77" # Let the user override the test. | |
5139 else | |
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5141 for as_dir in $PATH | |
5142 do | |
5143 IFS=$as_save_IFS | |
5144 test -z "$as_dir" && as_dir=. | |
5145 for ac_exec_ext in '' $ac_executable_extensions; do | |
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5147 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5149 break 2 | |
5150 fi | |
5151 done | |
5152 done | |
5153 | |
5154 fi | |
5155 fi | |
5156 F77=$ac_cv_prog_F77 | |
5157 if test -n "$F77"; then | |
5158 echo "$as_me:$LINENO: result: $F77" >&5 | |
5159 echo "${ECHO_T}$F77" >&6 | |
5160 else | |
5161 echo "$as_me:$LINENO: result: no" >&5 | |
5162 echo "${ECHO_T}no" >&6 | |
5163 fi | |
5164 | |
5165 test -n "$F77" && break | |
5166 done | |
5167 fi | |
5168 if test -z "$F77"; then | |
5169 ac_ct_F77=$F77 | |
5170 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5171 do | |
5172 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5173 set dummy $ac_prog; ac_word=$2 | |
5174 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5176 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
5177 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5178 else | |
5179 if test -n "$ac_ct_F77"; then | |
5180 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
5181 else | |
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5183 for as_dir in $PATH | |
5184 do | |
5185 IFS=$as_save_IFS | |
5186 test -z "$as_dir" && as_dir=. | |
5187 for ac_exec_ext in '' $ac_executable_extensions; do | |
5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5189 ac_cv_prog_ac_ct_F77="$ac_prog" | |
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5191 break 2 | |
5192 fi | |
5193 done | |
5194 done | |
5195 | |
5196 fi | |
5197 fi | |
5198 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
5199 if test -n "$ac_ct_F77"; then | |
5200 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
5201 echo "${ECHO_T}$ac_ct_F77" >&6 | |
5202 else | |
5203 echo "$as_me:$LINENO: result: no" >&5 | |
5204 echo "${ECHO_T}no" >&6 | |
5205 fi | |
5206 | |
5207 test -n "$ac_ct_F77" && break | |
5208 done | |
5209 | |
5210 F77=$ac_ct_F77 | |
5211 fi | |
5212 | |
5213 | |
5214 # Provide some information about the compiler. | |
5215 echo "$as_me:5215:" \ | |
5216 "checking for Fortran 77 compiler version" >&5 | |
5217 ac_compiler=`set X $ac_compile; echo $2` | |
5218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5219 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5220 ac_status=$? | |
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5222 (exit $ac_status); } | |
5223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5224 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5225 ac_status=$? | |
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5227 (exit $ac_status); } | |
5228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5229 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5230 ac_status=$? | |
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5232 (exit $ac_status); } | |
5233 rm -f a.out | |
5234 | |
5235 # If we don't use `.F' as extension, the preprocessor is not run on the | |
5236 # input file. (Note that this only needs to work for GNU compilers.) | |
5237 ac_save_ext=$ac_ext | |
5238 ac_ext=F | |
5239 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
5240 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
5241 if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5242 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5243 else | |
5244 cat >conftest.$ac_ext <<_ACEOF | |
5245 program main | |
5246 #ifndef __GNUC__ | |
5247 choke me | |
5248 #endif | |
5249 | |
5250 end | |
5251 _ACEOF | |
5252 rm -f conftest.$ac_objext | |
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5254 (eval $ac_compile) 2>conftest.er1 | |
5255 ac_status=$? | |
5256 grep -v '^ *+' conftest.er1 >conftest.err | |
5257 rm -f conftest.er1 | |
5258 cat conftest.err >&5 | |
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5260 (exit $ac_status); } && | |
5261 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5263 (eval $ac_try) 2>&5 | |
5264 ac_status=$? | |
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5266 (exit $ac_status); }; } && | |
5267 { ac_try='test -s conftest.$ac_objext' | |
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5269 (eval $ac_try) 2>&5 | |
5270 ac_status=$? | |
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5272 (exit $ac_status); }; }; then | |
5273 ac_compiler_gnu=yes | |
5274 else | |
5275 echo "$as_me: failed program was:" >&5 | |
5276 sed 's/^/| /' conftest.$ac_ext >&5 | |
5277 | |
5278 ac_compiler_gnu=no | |
5279 fi | |
5280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5281 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
5282 | |
5283 fi | |
5284 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
5285 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
5286 ac_ext=$ac_save_ext | |
5287 ac_test_FFLAGS=${FFLAGS+set} | |
5288 ac_save_FFLAGS=$FFLAGS | |
5289 FFLAGS= | |
5290 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
5291 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
5292 if test "${ac_cv_prog_f77_g+set}" = set; then | |
5293 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5294 else | |
5295 FFLAGS=-g | |
5296 cat >conftest.$ac_ext <<_ACEOF | |
5297 program main | |
5298 | |
5299 end | |
5300 _ACEOF | |
5301 rm -f conftest.$ac_objext | |
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5303 (eval $ac_compile) 2>conftest.er1 | |
5304 ac_status=$? | |
5305 grep -v '^ *+' conftest.er1 >conftest.err | |
5306 rm -f conftest.er1 | |
5307 cat conftest.err >&5 | |
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5309 (exit $ac_status); } && | |
5310 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5312 (eval $ac_try) 2>&5 | |
5313 ac_status=$? | |
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5315 (exit $ac_status); }; } && | |
5316 { ac_try='test -s conftest.$ac_objext' | |
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5318 (eval $ac_try) 2>&5 | |
5319 ac_status=$? | |
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5321 (exit $ac_status); }; }; then | |
5322 ac_cv_prog_f77_g=yes | |
5323 else | |
5324 echo "$as_me: failed program was:" >&5 | |
5325 sed 's/^/| /' conftest.$ac_ext >&5 | |
5326 | |
5327 ac_cv_prog_f77_g=no | |
5328 fi | |
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5330 | |
5331 fi | |
5332 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
5333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
5334 if test "$ac_test_FFLAGS" = set; then | |
5335 FFLAGS=$ac_save_FFLAGS | |
5336 elif test $ac_cv_prog_f77_g = yes; then | |
5337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5338 FFLAGS="-g -O2" | |
5339 else | |
5340 FFLAGS="-g" | |
5341 fi | |
5342 else | |
5343 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5344 FFLAGS="-O2" | |
5345 else | |
5346 FFLAGS= | |
5347 fi | |
5348 fi | |
5349 | |
5350 G77=`test $ac_compiler_gnu = yes && echo yes` | |
5351 ac_ext=c | |
5352 ac_cpp='$CPP $CPPFLAGS' | |
5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5356 | |
5357 | |
5358 | |
5359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5360 | |
5361 # find the maximum length of command line arguments | |
5362 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5365 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5366 else | |
5367 i=0 | |
5368 testring="ABCD" | |
5369 | |
5370 case $build_os in | |
5371 msdosdjgpp*) | |
5372 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5373 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5374 # during glob expansion). Even if it were fixed, the result of this | |
5375 # check would be larger than it should be. | |
5376 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5377 ;; | |
5378 | |
5379 gnu*) | |
5380 # Under GNU Hurd, this test is not required because there is | |
5381 # no limit to the length of command line arguments. | |
5382 # Libtool will interpret -1 as no limit whatsoever | |
5383 lt_cv_sys_max_cmd_len=-1; | |
5384 ;; | |
5385 | |
5386 cygwin* | mingw*) | |
5387 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5388 # about 5 minutes as the teststring grows exponentially. | |
5389 # Worse, since 9x/ME are not pre-emptively multitasking, | |
5390 # you end up with a "frozen" computer, even though with patience | |
5391 # the test eventually succeeds (with a max line length of 256k). | |
5392 # Instead, let's just punt: use the minimum linelength reported by | |
5393 # all of the supported platforms: 8192 (on NT/2K/XP). | |
5394 lt_cv_sys_max_cmd_len=8192; | |
5395 ;; | |
5396 | |
5397 amigaos*) | |
5398 # On AmigaOS with pdksh, this test takes hours, literally. | |
5399 # So we just punt and use a minimum line length of 8192. | |
5400 lt_cv_sys_max_cmd_len=8192; | |
5401 ;; | |
5402 | |
5403 *) | |
5404 # If test is not a shell built-in, we'll probably end up computing a | |
5405 # maximum length that is only half of the actual maximum length, but | |
5406 # we can't tell. | |
5407 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
5408 = "XX$testring") >/dev/null 2>&1 && | |
5409 new_result=`expr "X$testring" : ".*" 2>&1` && | |
5410 lt_cv_sys_max_cmd_len=$new_result && | |
5411 test $i != 17 # 1/2 MB should be enough | |
5412 do | |
5413 i=`expr $i + 1` | |
5414 testring=$testring$testring | |
5415 done | |
5416 testring= | |
5417 # Add a significant safety factor because C++ compilers can tack on massive | |
5418 # amounts of additional arguments before passing them to the linker. | |
5419 # It appears as though 1/2 is a usable value. | |
5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5421 ;; | |
5422 esac | |
5423 | |
5424 fi | |
5425 | |
5426 if test -n $lt_cv_sys_max_cmd_len ; then | |
5427 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5428 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5429 else | |
5430 echo "$as_me:$LINENO: result: none" >&5 | |
5431 echo "${ECHO_T}none" >&6 | |
5432 fi | |
5433 | |
5434 | |
5435 | |
5436 | |
5437 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5438 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5441 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5442 else | |
5443 | |
5444 # These are sane defaults that work on at least a few old systems. | |
5445 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5446 | |
5447 # Character class describing NM global symbol codes. | |
5448 symcode='[BCDEGRST]' | |
5449 | |
5450 # Regexp to match symbols that can be accessed directly from C. | |
5451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5452 | |
5453 # Transform the above into a raw symbol and a C symbol. | |
5454 symxfrm='\1 \2\3 \3' | |
5455 | |
5456 # Transform an extracted symbol line into a proper C declaration | |
5457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5458 | |
5459 # Transform an extracted symbol line into symbol name and symbol address | |
5460 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'" | |
5461 | |
5462 # Define system-specific variables. | |
5463 case $host_os in | |
5464 aix*) | |
5465 symcode='[BCDT]' | |
5466 ;; | |
5467 cygwin* | mingw* | pw32*) | |
5468 symcode='[ABCDGISTW]' | |
5469 ;; | |
5470 hpux*) # Its linker distinguishes data from code symbols | |
5471 if test "$host_cpu" = ia64; then | |
5472 symcode='[ABCDEGRST]' | |
5473 fi | |
5474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5475 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'" | |
5476 ;; | |
5477 irix* | nonstopux*) | |
5478 symcode='[BCDEGRST]' | |
5479 ;; | |
5480 osf*) | |
5481 symcode='[BCDEGQRST]' | |
5482 ;; | |
5483 solaris* | sysv5*) | |
5484 symcode='[BDRT]' | |
5485 ;; | |
5486 sysv4) | |
5487 symcode='[DFNSTU]' | |
5488 ;; | |
5489 esac | |
5490 | |
5491 # Handle CRLF in mingw tool chain | |
5492 opt_cr= | |
5493 case $build_os in | |
5494 mingw*) | |
5495 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5496 ;; | |
5497 esac | |
5498 | |
5499 # If we're using GNU nm, then use its standard symbol codes. | |
5500 case `$NM -V 2>&1` in | |
5501 *GNU* | *'with BFD'*) | |
5502 symcode='[ABCDGIRSTW]' ;; | |
5503 esac | |
5504 | |
5505 # Try without a prefix undercore, then with it. | |
5506 for ac_symprfx in "" "_"; do | |
5507 | |
5508 # Write the raw and C identifiers. | |
5509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
5510 | |
5511 # Check to see that the pipe works correctly. | |
5512 pipe_works=no | |
5513 | |
5514 rm -f conftest* | |
5515 cat > conftest.$ac_ext <<EOF | |
5516 #ifdef __cplusplus | |
5517 extern "C" { | |
5518 #endif | |
5519 char nm_test_var; | |
5520 void nm_test_func(){} | |
5521 #ifdef __cplusplus | |
5522 } | |
5523 #endif | |
5524 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5525 EOF | |
5526 | |
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5528 (eval $ac_compile) 2>&5 | |
5529 ac_status=$? | |
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5531 (exit $ac_status); }; then | |
5532 # Now try to grab the symbols. | |
5533 nlist=conftest.nm | |
5534 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5536 ac_status=$? | |
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5538 (exit $ac_status); } && test -s "$nlist"; then | |
5539 # Try sorting and uniquifying the output. | |
5540 if sort "$nlist" | uniq > "$nlist"T; then | |
5541 mv -f "$nlist"T "$nlist" | |
5542 else | |
5543 rm -f "$nlist"T | |
5544 fi | |
5545 | |
5546 # Make sure that we snagged all the symbols we need. | |
5547 if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
5548 if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
5549 cat <<EOF > conftest.$ac_ext | |
5550 #ifdef __cplusplus | |
5551 extern "C" { | |
5552 #endif | |
5553 | |
5554 EOF | |
5555 # Now generate the symbol file. | |
5556 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5557 | |
5558 cat <<EOF >> conftest.$ac_ext | |
5559 #if defined (__STDC__) && __STDC__ | |
5560 # define lt_ptr_t void * | |
5561 #else | |
5562 # define lt_ptr_t char * | |
5563 # define const | |
5564 #endif | |
5565 | |
5566 /* The mapping between symbol names and symbols. */ | |
5567 const struct { | |
5568 const char *name; | |
5569 lt_ptr_t address; | |
5570 } | |
5571 lt_preloaded_symbols[] = | |
5572 { | |
5573 EOF | |
5574 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5575 cat <<\EOF >> conftest.$ac_ext | |
5576 {0, (lt_ptr_t) 0} | |
5577 }; | |
5578 | |
5579 #ifdef __cplusplus | |
5580 } | |
5581 #endif | |
5582 EOF | |
5583 # Now try linking the two files. | |
5584 mv conftest.$ac_objext conftstm.$ac_objext | |
5585 lt_save_LIBS="$LIBS" | |
5586 lt_save_CFLAGS="$CFLAGS" | |
5587 LIBS="conftstm.$ac_objext" | |
5588 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5590 (eval $ac_link) 2>&5 | |
5591 ac_status=$? | |
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5593 (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5594 pipe_works=yes | |
5595 fi | |
5596 LIBS="$lt_save_LIBS" | |
5597 CFLAGS="$lt_save_CFLAGS" | |
5598 else | |
5599 echo "cannot find nm_test_func in $nlist" >&5 | |
5600 fi | |
5601 else | |
5602 echo "cannot find nm_test_var in $nlist" >&5 | |
5603 fi | |
5604 else | |
5605 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5606 fi | |
5607 else | |
5608 echo "$progname: failed program was:" >&5 | |
5609 cat conftest.$ac_ext >&5 | |
5610 fi | |
5611 rm -f conftest* conftst* | |
5612 | |
5613 # Do not use the global_symbol_pipe unless it works. | |
5614 if test "$pipe_works" = yes; then | |
5615 break | |
5616 else | |
5617 lt_cv_sys_global_symbol_pipe= | |
5618 fi | |
5619 done | |
5620 | |
5621 fi | |
5622 | |
5623 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5624 lt_cv_sys_global_symbol_to_cdecl= | |
5625 fi | |
5626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5627 echo "$as_me:$LINENO: result: failed" >&5 | |
5628 echo "${ECHO_T}failed" >&6 | |
5629 else | |
5630 echo "$as_me:$LINENO: result: ok" >&5 | |
5631 echo "${ECHO_T}ok" >&6 | |
5632 fi | |
5633 | |
5634 echo "$as_me:$LINENO: checking for objdir" >&5 | |
5635 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
5636 if test "${lt_cv_objdir+set}" = set; then | |
5637 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5638 else | |
5639 rm -f .libs 2>/dev/null | |
5640 mkdir .libs 2>/dev/null | |
5641 if test -d .libs; then | |
5642 lt_cv_objdir=.libs | |
5643 else | |
5644 # MS-DOS does not allow filenames that begin with a dot. | |
5645 lt_cv_objdir=_libs | |
5646 fi | |
5647 rmdir .libs 2>/dev/null | |
5648 fi | |
5649 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
5650 echo "${ECHO_T}$lt_cv_objdir" >&6 | |
5651 objdir=$lt_cv_objdir | |
5652 | |
5653 | |
5654 | |
5655 | |
5656 | |
5657 case $host_os in | |
5658 aix3*) | |
5659 # AIX sometimes has problems with the GCC collect2 program. For some | |
5660 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5661 # vanish in a puff of smoke. | |
5662 if test "X${COLLECT_NAMES+set}" != Xset; then | |
5663 COLLECT_NAMES= | |
5664 export COLLECT_NAMES | |
5665 fi | |
5666 ;; | |
5667 esac | |
5668 | |
5669 # Sed substitution that helps us do robust quoting. It backslashifies | |
5670 # metacharacters that are still active within double-quoted strings. | |
5671 Xsed='sed -e s/^X//' | |
5672 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
5673 | |
5674 # Same as above, but do not quote variable references. | |
5675 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
5676 | |
5677 # Sed substitution to delay expansion of an escaped shell variable in a | |
5678 # double_quote_subst'ed string. | |
5679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5680 | |
5681 # Sed substitution to avoid accidental globbing in evaled expressions | |
5682 no_glob_subst='s/\*/\\\*/g' | |
5683 | |
5684 # Constants: | |
5685 rm="rm -f" | |
5686 | |
5687 # Global variables: | |
5688 default_ofile=libtool | |
5689 can_build_shared=yes | |
5690 | |
5691 # All known linkers require a `.a' archive for static linking (except M$VC, | |
5692 # which needs '.lib'). | |
5693 libext=a | |
5694 ltmain="$ac_aux_dir/ltmain.sh" | |
5695 ofile="$default_ofile" | |
5696 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
5697 | |
5698 if test -n "$ac_tool_prefix"; then | |
5699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5700 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5701 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5703 if test "${ac_cv_prog_AR+set}" = set; then | |
5704 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5705 else | |
5706 if test -n "$AR"; then | |
5707 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5708 else | |
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5710 for as_dir in $PATH | |
5711 do | |
5712 IFS=$as_save_IFS | |
5713 test -z "$as_dir" && as_dir=. | |
5714 for ac_exec_ext in '' $ac_executable_extensions; do | |
5715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5716 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5718 break 2 | |
5719 fi | |
5720 done | |
5721 done | |
5722 | |
5723 fi | |
5724 fi | |
5725 AR=$ac_cv_prog_AR | |
5726 if test -n "$AR"; then | |
5727 echo "$as_me:$LINENO: result: $AR" >&5 | |
5728 echo "${ECHO_T}$AR" >&6 | |
5729 else | |
5730 echo "$as_me:$LINENO: result: no" >&5 | |
5731 echo "${ECHO_T}no" >&6 | |
5732 fi | |
5733 | |
5734 fi | |
5735 if test -z "$ac_cv_prog_AR"; then | |
5736 ac_ct_AR=$AR | |
5737 # Extract the first word of "ar", so it can be a program name with args. | |
5738 set dummy ar; ac_word=$2 | |
5739 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5741 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5742 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5743 else | |
5744 if test -n "$ac_ct_AR"; then | |
5745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5746 else | |
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5748 for as_dir in $PATH | |
5749 do | |
5750 IFS=$as_save_IFS | |
5751 test -z "$as_dir" && as_dir=. | |
5752 for ac_exec_ext in '' $ac_executable_extensions; do | |
5753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5754 ac_cv_prog_ac_ct_AR="ar" | |
5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5756 break 2 | |
5757 fi | |
5758 done | |
5759 done | |
5760 | |
5761 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
5762 fi | |
5763 fi | |
5764 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5765 if test -n "$ac_ct_AR"; then | |
5766 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5767 echo "${ECHO_T}$ac_ct_AR" >&6 | |
5768 else | |
5769 echo "$as_me:$LINENO: result: no" >&5 | |
5770 echo "${ECHO_T}no" >&6 | |
5771 fi | |
5772 | |
5773 AR=$ac_ct_AR | |
5774 else | |
5775 AR="$ac_cv_prog_AR" | |
5776 fi | |
5777 | |
5778 if test -n "$ac_tool_prefix"; then | |
5779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5781 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5783 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5784 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5785 else | |
5786 if test -n "$RANLIB"; then | |
5787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5788 else | |
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5790 for as_dir in $PATH | |
5791 do | |
5792 IFS=$as_save_IFS | |
5793 test -z "$as_dir" && as_dir=. | |
5794 for ac_exec_ext in '' $ac_executable_extensions; do | |
5795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5798 break 2 | |
5799 fi | |
5800 done | |
5801 done | |
5802 | |
5803 fi | |
5804 fi | |
5805 RANLIB=$ac_cv_prog_RANLIB | |
5806 if test -n "$RANLIB"; then | |
5807 echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5808 echo "${ECHO_T}$RANLIB" >&6 | |
5809 else | |
5810 echo "$as_me:$LINENO: result: no" >&5 | |
5811 echo "${ECHO_T}no" >&6 | |
5812 fi | |
5813 | |
5814 fi | |
5815 if test -z "$ac_cv_prog_RANLIB"; then | |
5816 ac_ct_RANLIB=$RANLIB | |
5817 # Extract the first word of "ranlib", so it can be a program name with args. | |
5818 set dummy ranlib; ac_word=$2 | |
5819 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5822 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5823 else | |
5824 if test -n "$ac_ct_RANLIB"; then | |
5825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5826 else | |
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5828 for as_dir in $PATH | |
5829 do | |
5830 IFS=$as_save_IFS | |
5831 test -z "$as_dir" && as_dir=. | |
5832 for ac_exec_ext in '' $ac_executable_extensions; do | |
5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5834 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5836 break 2 | |
5837 fi | |
5838 done | |
5839 done | |
5840 | |
5841 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5842 fi | |
5843 fi | |
5844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5845 if test -n "$ac_ct_RANLIB"; then | |
5846 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5847 echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5848 else | |
5849 echo "$as_me:$LINENO: result: no" >&5 | |
5850 echo "${ECHO_T}no" >&6 | |
5851 fi | |
5852 | |
5853 RANLIB=$ac_ct_RANLIB | |
5854 else | |
5855 RANLIB="$ac_cv_prog_RANLIB" | |
5856 fi | |
5857 | |
5858 if test -n "$ac_tool_prefix"; then | |
5859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5860 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5861 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5863 if test "${ac_cv_prog_STRIP+set}" = set; then | |
5864 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5865 else | |
5866 if test -n "$STRIP"; then | |
5867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5868 else | |
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5870 for as_dir in $PATH | |
5871 do | |
5872 IFS=$as_save_IFS | |
5873 test -z "$as_dir" && as_dir=. | |
5874 for ac_exec_ext in '' $ac_executable_extensions; do | |
5875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5876 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5878 break 2 | |
5879 fi | |
5880 done | |
5881 done | |
5882 | |
5883 fi | |
5884 fi | |
5885 STRIP=$ac_cv_prog_STRIP | |
5886 if test -n "$STRIP"; then | |
5887 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5888 echo "${ECHO_T}$STRIP" >&6 | |
5889 else | |
5890 echo "$as_me:$LINENO: result: no" >&5 | |
5891 echo "${ECHO_T}no" >&6 | |
5892 fi | |
5893 | |
5894 fi | |
5895 if test -z "$ac_cv_prog_STRIP"; then | |
5896 ac_ct_STRIP=$STRIP | |
5897 # Extract the first word of "strip", so it can be a program name with args. | |
5898 set dummy strip; ac_word=$2 | |
5899 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5902 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5903 else | |
5904 if test -n "$ac_ct_STRIP"; then | |
5905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5906 else | |
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5908 for as_dir in $PATH | |
5909 do | |
5910 IFS=$as_save_IFS | |
5911 test -z "$as_dir" && as_dir=. | |
5912 for ac_exec_ext in '' $ac_executable_extensions; do | |
5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5914 ac_cv_prog_ac_ct_STRIP="strip" | |
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5916 break 2 | |
5917 fi | |
5918 done | |
5919 done | |
5920 | |
5921 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
5922 fi | |
5923 fi | |
5924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5925 if test -n "$ac_ct_STRIP"; then | |
5926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5927 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5928 else | |
5929 echo "$as_me:$LINENO: result: no" >&5 | |
5930 echo "${ECHO_T}no" >&6 | |
5931 fi | |
5932 | |
5933 STRIP=$ac_ct_STRIP | |
5934 else | |
5935 STRIP="$ac_cv_prog_STRIP" | |
5936 fi | |
5937 | |
5938 | |
5939 old_CC="$CC" | |
5940 old_CFLAGS="$CFLAGS" | |
5941 | |
5942 # Set sane defaults for various variables | |
5943 test -z "$AR" && AR=ar | |
5944 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5945 test -z "$AS" && AS=as | |
5946 test -z "$CC" && CC=cc | |
5947 test -z "$LTCC" && LTCC=$CC | |
5948 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5949 test -z "$LD" && LD=ld | |
5950 test -z "$LN_S" && LN_S="ln -s" | |
5951 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
5952 test -z "$NM" && NM=nm | |
5953 test -z "$SED" && SED=sed | |
5954 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5955 test -z "$RANLIB" && RANLIB=: | |
5956 test -z "$STRIP" && STRIP=: | |
5957 test -z "$ac_objext" && ac_objext=o | |
5958 | |
5959 # Determine commands to create old-style static archives. | |
5960 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5961 old_postinstall_cmds='chmod 644 $oldlib' | |
5962 old_postuninstall_cmds= | |
5963 | |
5964 if test -n "$RANLIB"; then | |
5965 case $host_os in | |
5966 openbsd*) | |
5967 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
5968 ;; | |
5969 *) | |
5970 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
5971 ;; | |
5972 esac | |
5973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5974 fi | |
5975 | |
5976 # Only perform the check for file, if the check method requires it | |
5977 case $deplibs_check_method in | |
5978 file_magic*) | |
5979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5980 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
5981 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
5982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5983 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5984 else | |
5985 case $MAGIC_CMD in | |
5986 [\\/*] | ?:[\\/]*) | |
5987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5988 ;; | |
5989 *) | |
5990 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
5991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
5993 for ac_dir in $ac_dummy; do | |
5994 IFS="$lt_save_ifs" | |
5995 test -z "$ac_dir" && ac_dir=. | |
5996 if test -f $ac_dir/${ac_tool_prefix}file; then | |
5997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
5998 if test -n "$file_magic_test_file"; then | |
5999 case $deplibs_check_method in | |
6000 "file_magic "*) | |
6001 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6004 $EGREP "$file_magic_regex" > /dev/null; then | |
6005 : | |
6006 else | |
6007 cat <<EOF 1>&2 | |
6008 | |
6009 *** Warning: the command libtool uses to detect shared libraries, | |
6010 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6011 *** The result is that libtool may fail to recognize shared libraries | |
6012 *** as such. This will affect the creation of libtool libraries that | |
6013 *** depend on shared libraries, but programs linked with such libtool | |
6014 *** libraries will work regardless of this problem. Nevertheless, you | |
6015 *** may want to report the problem to your system manager and/or to | |
6016 *** bug-libtool@gnu.org | |
6017 | |
6018 EOF | |
6019 fi ;; | |
6020 esac | |
6021 fi | |
6022 break | |
6023 fi | |
6024 done | |
6025 IFS="$lt_save_ifs" | |
6026 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6027 ;; | |
6028 esac | |
6029 fi | |
6030 | |
6031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6032 if test -n "$MAGIC_CMD"; then | |
6033 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6034 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6035 else | |
6036 echo "$as_me:$LINENO: result: no" >&5 | |
6037 echo "${ECHO_T}no" >&6 | |
6038 fi | |
6039 | |
6040 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6041 if test -n "$ac_tool_prefix"; then | |
6042 echo "$as_me:$LINENO: checking for file" >&5 | |
6043 echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6045 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6046 else | |
6047 case $MAGIC_CMD in | |
6048 [\\/*] | ?:[\\/]*) | |
6049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6050 ;; | |
6051 *) | |
6052 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6055 for ac_dir in $ac_dummy; do | |
6056 IFS="$lt_save_ifs" | |
6057 test -z "$ac_dir" && ac_dir=. | |
6058 if test -f $ac_dir/file; then | |
6059 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6060 if test -n "$file_magic_test_file"; then | |
6061 case $deplibs_check_method in | |
6062 "file_magic "*) | |
6063 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6066 $EGREP "$file_magic_regex" > /dev/null; then | |
6067 : | |
6068 else | |
6069 cat <<EOF 1>&2 | |
6070 | |
6071 *** Warning: the command libtool uses to detect shared libraries, | |
6072 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6073 *** The result is that libtool may fail to recognize shared libraries | |
6074 *** as such. This will affect the creation of libtool libraries that | |
6075 *** depend on shared libraries, but programs linked with such libtool | |
6076 *** libraries will work regardless of this problem. Nevertheless, you | |
6077 *** may want to report the problem to your system manager and/or to | |
6078 *** bug-libtool@gnu.org | |
6079 | |
6080 EOF | |
6081 fi ;; | |
6082 esac | |
6083 fi | |
6084 break | |
6085 fi | |
6086 done | |
6087 IFS="$lt_save_ifs" | |
6088 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6089 ;; | |
6090 esac | |
6091 fi | |
6092 | |
6093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6094 if test -n "$MAGIC_CMD"; then | |
6095 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6096 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6097 else | |
6098 echo "$as_me:$LINENO: result: no" >&5 | |
6099 echo "${ECHO_T}no" >&6 | |
6100 fi | |
6101 | |
6102 else | |
6103 MAGIC_CMD=: | |
6104 fi | |
6105 fi | |
6106 | |
6107 fi | |
6108 ;; | |
6109 esac | |
6110 | |
6111 enable_dlopen=no | |
6112 enable_win32_dll=no | |
6113 | |
6114 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6115 if test "${enable_libtool_lock+set}" = set; then | |
6116 enableval="$enable_libtool_lock" | |
6117 | |
6118 fi; | |
6119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6120 | |
6121 | |
6122 # Check whether --with-pic or --without-pic was given. | |
6123 if test "${with_pic+set}" = set; then | |
6124 withval="$with_pic" | |
6125 pic_mode="$withval" | |
6126 else | |
6127 pic_mode=default | |
6128 fi; | |
6129 test -z "$pic_mode" && pic_mode=default | |
6130 | |
6131 # Use C for the default configuration in the libtool script | |
6132 tagname= | |
6133 lt_save_CC="$CC" | |
6134 ac_ext=c | |
6135 ac_cpp='$CPP $CPPFLAGS' | |
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6139 | |
6140 | |
6141 # Source file extension for C test sources. | |
6142 ac_ext=c | |
6143 | |
6144 # Object file extension for compiled C test sources. | |
6145 objext=o | |
6146 objext=$objext | |
6147 | |
6148 # Code to be used in simple compile tests | |
6149 lt_simple_compile_test_code="int some_variable = 0;\n" | |
6150 | |
6151 # Code to be used in simple link tests | |
6152 lt_simple_link_test_code='int main(){return(0);}\n' | |
6153 | |
6154 | |
6155 # If no C compiler was specified, use CC. | |
6156 LTCC=${LTCC-"$CC"} | |
6157 | |
6158 # Allow CC to be a program name with arguments. | |
6159 compiler=$CC | |
6160 | |
6161 | |
6162 # | |
6163 # Check for any special shared library compilation flags. | |
6164 # | |
6165 lt_prog_cc_shlib= | |
6166 if test "$GCC" = no; then | |
6167 case $host_os in | |
6168 sco3.2v5*) | |
6169 lt_prog_cc_shlib='-belf' | |
6170 ;; | |
6171 esac | |
6172 fi | |
6173 if test -n "$lt_prog_cc_shlib"; then | |
6174 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
6175 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
6176 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
6177 else | |
6178 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
6179 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
6180 lt_cv_prog_cc_can_build_shared=no | |
6181 fi | |
6182 fi | |
6183 | |
6184 | |
6185 # | |
6186 # Check to make sure the static flag actually works. | |
6187 # | |
6188 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
6189 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
6190 if test "${lt_prog_compiler_static_works+set}" = set; then | |
6191 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6192 else | |
6193 lt_prog_compiler_static_works=no | |
6194 save_LDFLAGS="$LDFLAGS" | |
6195 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
6196 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
6197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
6198 # The compiler can only warn and ignore the option if not recognized | |
6199 # So say no if there are warnings | |
6200 if test -s conftest.err; then | |
6201 # Append any errors to the config.log. | |
6202 cat conftest.err 1>&5 | |
6203 else | |
6204 lt_prog_compiler_static_works=yes | |
6205 fi | |
6206 fi | |
6207 $rm conftest* | |
6208 LDFLAGS="$save_LDFLAGS" | |
6209 | |
6210 fi | |
6211 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
6212 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
6213 | |
6214 if test x"$lt_prog_compiler_static_works" = xyes; then | |
6215 : | |
6216 else | |
6217 lt_prog_compiler_static= | |
6218 fi | |
6219 | |
6220 | |
6221 | |
6222 | |
6223 lt_prog_compiler_no_builtin_flag= | |
6224 | |
6225 if test "$GCC" = yes; then | |
6226 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6227 | |
6228 | |
6229 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6230 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6231 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6232 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6233 else | |
6234 lt_cv_prog_compiler_rtti_exceptions=no | |
6235 ac_outfile=conftest.$ac_objext | |
6236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6237 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6238 # Insert the option either (1) after the last *FLAGS variable, or | |
6239 # (2) before a word containing "conftest.", or (3) at the end. | |
6240 # Note that $ac_compile itself does not contain backslashes and begins | |
6241 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6242 # The option is referenced via a variable to avoid confusing sed. | |
6243 lt_compile=`echo "$ac_compile" | $SED \ | |
6244 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6246 -e 's:$: $lt_compiler_flag:'` | |
6247 (eval echo "\"\$as_me:6247: $lt_compile\"" >&5) | |
6248 (eval "$lt_compile" 2>conftest.err) | |
6249 ac_status=$? | |
6250 cat conftest.err >&5 | |
6251 echo "$as_me:6251: \$? = $ac_status" >&5 | |
6252 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6253 # The compiler can only warn and ignore the option if not recognized | |
6254 # So say no if there are warnings | |
6255 if test ! -s conftest.err; then | |
6256 lt_cv_prog_compiler_rtti_exceptions=yes | |
6257 fi | |
6258 fi | |
6259 $rm conftest* | |
6260 | |
6261 fi | |
6262 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6264 | |
6265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6266 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6267 else | |
6268 : | |
6269 fi | |
6270 | |
6271 fi | |
6272 | |
6273 lt_prog_compiler_wl= | |
6274 lt_prog_compiler_pic= | |
6275 lt_prog_compiler_static= | |
6276 | |
6277 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6279 | |
6280 if test "$GCC" = yes; then | |
6281 lt_prog_compiler_wl='-Wl,' | |
6282 lt_prog_compiler_static='-static' | |
6283 | |
6284 case $host_os in | |
6285 aix*) | |
6286 # All AIX code is PIC. | |
6287 if test "$host_cpu" = ia64; then | |
6288 # AIX 5 now supports IA64 processor | |
6289 lt_prog_compiler_static='-Bstatic' | |
6290 fi | |
6291 ;; | |
6292 | |
6293 amigaos*) | |
6294 # FIXME: we need at least 68020 code to build shared libraries, but | |
6295 # adding the `-m68020' flag to GCC prevents building anything better, | |
6296 # like `-m68040'. | |
6297 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6298 ;; | |
6299 | |
6300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6301 # PIC is the default for these OSes. | |
6302 ;; | |
6303 | |
6304 mingw* | pw32* | os2*) | |
6305 # This hack is so that the source file can tell whether it is being | |
6306 # built for inclusion in a dll (and should export symbols for example). | |
6307 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6308 ;; | |
6309 | |
6310 darwin* | rhapsody*) | |
6311 # PIC is the default on this platform | |
6312 # Common symbols not allowed in MH_DYLIB files | |
6313 lt_prog_compiler_pic='-fno-common' | |
6314 ;; | |
6315 | |
6316 msdosdjgpp*) | |
6317 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6318 # on systems that don't support them. | |
6319 lt_prog_compiler_can_build_shared=no | |
6320 enable_shared=no | |
6321 ;; | |
6322 | |
6323 sysv4*MP*) | |
6324 if test -d /usr/nec; then | |
6325 lt_prog_compiler_pic=-Kconform_pic | |
6326 fi | |
6327 ;; | |
6328 | |
6329 hpux*) | |
6330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6331 # not for PA HP-UX. | |
6332 case "$host_cpu" in | |
6333 hppa*64*|ia64*) | |
6334 # +Z the default | |
6335 ;; | |
6336 *) | |
6337 lt_prog_compiler_pic='-fPIC' | |
6338 ;; | |
6339 esac | |
6340 ;; | |
6341 | |
6342 *) | |
6343 lt_prog_compiler_pic='-fPIC' | |
6344 ;; | |
6345 esac | |
6346 else | |
6347 # PORTME Check for flag to pass linker flags through the system compiler. | |
6348 case $host_os in | |
6349 aix*) | |
6350 lt_prog_compiler_wl='-Wl,' | |
6351 if test "$host_cpu" = ia64; then | |
6352 # AIX 5 now supports IA64 processor | |
6353 lt_prog_compiler_static='-Bstatic' | |
6354 else | |
6355 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6356 fi | |
6357 ;; | |
6358 | |
6359 mingw* | pw32* | os2*) | |
6360 # This hack is so that the source file can tell whether it is being | |
6361 # built for inclusion in a dll (and should export symbols for example). | |
6362 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6363 ;; | |
6364 | |
6365 hpux9* | hpux10* | hpux11*) | |
6366 lt_prog_compiler_wl='-Wl,' | |
6367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6368 # not for PA HP-UX. | |
6369 case "$host_cpu" in | |
6370 hppa*64*|ia64*) | |
6371 # +Z the default | |
6372 ;; | |
6373 *) | |
6374 lt_prog_compiler_pic='+Z' | |
6375 ;; | |
6376 esac | |
6377 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6378 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6379 ;; | |
6380 | |
6381 irix5* | irix6* | nonstopux*) | |
6382 lt_prog_compiler_wl='-Wl,' | |
6383 # PIC (with -KPIC) is the default. | |
6384 lt_prog_compiler_static='-non_shared' | |
6385 ;; | |
6386 | |
6387 newsos6) | |
6388 lt_prog_compiler_pic='-KPIC' | |
6389 lt_prog_compiler_static='-Bstatic' | |
6390 ;; | |
6391 | |
6392 linux*) | |
6393 case $CC in | |
6394 icc* | ecc*) | |
6395 lt_prog_compiler_wl='-Wl,' | |
6396 lt_prog_compiler_pic='-KPIC' | |
6397 lt_prog_compiler_static='-static' | |
6398 ;; | |
6399 ccc*) | |
6400 lt_prog_compiler_wl='-Wl,' | |
6401 # All Alpha code is PIC. | |
6402 lt_prog_compiler_static='-non_shared' | |
6403 ;; | |
6404 esac | |
6405 ;; | |
6406 | |
6407 osf3* | osf4* | osf5*) | |
6408 lt_prog_compiler_wl='-Wl,' | |
6409 # All OSF/1 code is PIC. | |
6410 lt_prog_compiler_static='-non_shared' | |
6411 ;; | |
6412 | |
6413 sco3.2v5*) | |
6414 lt_prog_compiler_pic='-Kpic' | |
6415 lt_prog_compiler_static='-dn' | |
6416 ;; | |
6417 | |
6418 solaris*) | |
6419 lt_prog_compiler_wl='-Wl,' | |
6420 lt_prog_compiler_pic='-KPIC' | |
6421 lt_prog_compiler_static='-Bstatic' | |
6422 ;; | |
6423 | |
6424 sunos4*) | |
6425 lt_prog_compiler_wl='-Qoption ld ' | |
6426 lt_prog_compiler_pic='-PIC' | |
6427 lt_prog_compiler_static='-Bstatic' | |
6428 ;; | |
6429 | |
6430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6431 lt_prog_compiler_wl='-Wl,' | |
6432 lt_prog_compiler_pic='-KPIC' | |
6433 lt_prog_compiler_static='-Bstatic' | |
6434 ;; | |
6435 | |
6436 sysv4*MP*) | |
6437 if test -d /usr/nec ;then | |
6438 lt_prog_compiler_pic='-Kconform_pic' | |
6439 lt_prog_compiler_static='-Bstatic' | |
6440 fi | |
6441 ;; | |
6442 | |
6443 uts4*) | |
6444 lt_prog_compiler_pic='-pic' | |
6445 lt_prog_compiler_static='-Bstatic' | |
6446 ;; | |
6447 | |
6448 *) | |
6449 lt_prog_compiler_can_build_shared=no | |
6450 ;; | |
6451 esac | |
6452 fi | |
6453 | |
6454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6455 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6456 | |
6457 # | |
6458 # Check to make sure the PIC flag actually works. | |
6459 # | |
6460 if test -n "$lt_prog_compiler_pic"; then | |
6461 | |
6462 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6464 if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6465 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6466 else | |
6467 lt_prog_compiler_pic_works=no | |
6468 ac_outfile=conftest.$ac_objext | |
6469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6470 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
6471 # Insert the option either (1) after the last *FLAGS variable, or | |
6472 # (2) before a word containing "conftest.", or (3) at the end. | |
6473 # Note that $ac_compile itself does not contain backslashes and begins | |
6474 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6475 # The option is referenced via a variable to avoid confusing sed. | |
6476 lt_compile=`echo "$ac_compile" | $SED \ | |
6477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6479 -e 's:$: $lt_compiler_flag:'` | |
6480 (eval echo "\"\$as_me:6480: $lt_compile\"" >&5) | |
6481 (eval "$lt_compile" 2>conftest.err) | |
6482 ac_status=$? | |
6483 cat conftest.err >&5 | |
6484 echo "$as_me:6484: \$? = $ac_status" >&5 | |
6485 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6486 # The compiler can only warn and ignore the option if not recognized | |
6487 # So say no if there are warnings | |
6488 if test ! -s conftest.err; then | |
6489 lt_prog_compiler_pic_works=yes | |
6490 fi | |
6491 fi | |
6492 $rm conftest* | |
6493 | |
6494 fi | |
6495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6496 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6497 | |
6498 if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6499 case $lt_prog_compiler_pic in | |
6500 "" | " "*) ;; | |
6501 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6502 esac | |
6503 else | |
6504 lt_prog_compiler_pic= | |
6505 lt_prog_compiler_can_build_shared=no | |
6506 fi | |
6507 | |
6508 fi | |
6509 case "$host_os" in | |
6510 # For platforms which do not support PIC, -DPIC is meaningless: | |
6511 *djgpp*) | |
6512 lt_prog_compiler_pic= | |
6513 ;; | |
6514 *) | |
6515 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6516 ;; | |
6517 esac | |
6518 | |
6519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
6521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6522 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6523 else | |
6524 lt_cv_prog_compiler_c_o=no | |
6525 $rm -r conftest 2>/dev/null | |
6526 mkdir conftest | |
6527 cd conftest | |
6528 mkdir out | |
6529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6530 | |
6531 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
6532 # Insert the option either (1) after the last *FLAGS variable, or | |
6533 # (2) before a word containing "conftest.", or (3) at the end. | |
6534 # Note that $ac_compile itself does not contain backslashes and begins | |
6535 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6536 lt_compile=`echo "$ac_compile" | $SED \ | |
6537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6539 -e 's:$: $lt_compiler_flag:'` | |
6540 (eval echo "\"\$as_me:6540: $lt_compile\"" >&5) | |
6541 (eval "$lt_compile" 2>out/conftest.err) | |
6542 ac_status=$? | |
6543 cat out/conftest.err >&5 | |
6544 echo "$as_me:6544: \$? = $ac_status" >&5 | |
6545 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
6546 then | |
6547 # The compiler can only warn and ignore the option if not recognized | |
6548 # So say no if there are warnings | |
6549 if test ! -s out/conftest.err; then | |
6550 lt_cv_prog_compiler_c_o=yes | |
6551 fi | |
6552 fi | |
6553 chmod u+w . | |
6554 $rm conftest* | |
6555 # SGI C++ compiler will create directory out/ii_files/ for | |
6556 # template instantiation | |
6557 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
6558 $rm out/* && rmdir out | |
6559 cd .. | |
6560 rmdir conftest | |
6561 $rm conftest* | |
6562 | |
6563 fi | |
6564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6565 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
6566 | |
6567 | |
6568 hard_links="nottested" | |
6569 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
6570 # do not overwrite the value of need_locks provided by the user | |
6571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
6572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
6573 hard_links=yes | |
6574 $rm conftest* | |
6575 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6576 touch conftest.a | |
6577 ln conftest.a conftest.b 2>&5 || hard_links=no | |
6578 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6579 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
6580 echo "${ECHO_T}$hard_links" >&6 | |
6581 if test "$hard_links" = no; then | |
6582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
6583 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
6584 need_locks=warn | |
6585 fi | |
6586 else | |
6587 need_locks=no | |
6588 fi | |
6589 | |
6590 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
6591 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
6592 | |
6593 runpath_var= | |
6594 allow_undefined_flag= | |
6595 enable_shared_with_static_runtimes=no | |
6596 archive_cmds= | |
6597 archive_expsym_cmds= | |
6598 old_archive_From_new_cmds= | |
6599 old_archive_from_expsyms_cmds= | |
6600 export_dynamic_flag_spec= | |
6601 whole_archive_flag_spec= | |
6602 thread_safe_flag_spec= | |
6603 hardcode_libdir_flag_spec= | |
6604 hardcode_libdir_flag_spec_ld= | |
6605 hardcode_libdir_separator= | |
6606 hardcode_direct=no | |
6607 hardcode_minus_L=no | |
6608 hardcode_shlibpath_var=unsupported | |
6609 link_all_deplibs=unknown | |
6610 hardcode_automatic=no | |
6611 module_cmds= | |
6612 module_expsym_cmds= | |
6613 always_export_symbols=no | |
6614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6615 # include_expsyms should be a list of space-separated symbols to be *always* | |
6616 # included in the symbol list | |
6617 include_expsyms= | |
6618 # exclude_expsyms can be an extended regexp of symbols to exclude | |
6619 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
6620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6621 # as well as any symbol that contains `d'. | |
6622 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
6623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6624 # platforms (ab)use it in PIC code, but their linkers get confused if | |
6625 # the symbol is explicitly referenced. Since portable code cannot | |
6626 # rely on this symbol name, it's probably fine to never include it in | |
6627 # preloaded symbol tables. | |
6628 extract_expsyms_cmds= | |
6629 | |
6630 case $host_os in | |
6631 cygwin* | mingw* | pw32*) | |
6632 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6633 # When not using gcc, we currently assume that we are using | |
6634 # Microsoft Visual C++. | |
6635 if test "$GCC" != yes; then | |
6636 with_gnu_ld=no | |
6637 fi | |
6638 ;; | |
6639 openbsd*) | |
6640 with_gnu_ld=no | |
6641 ;; | |
6642 esac | |
6643 | |
6644 ld_shlibs=yes | |
6645 if test "$with_gnu_ld" = yes; then | |
6646 # If archive_cmds runs LD, not CC, wlarc should be empty | |
6647 wlarc='${wl}' | |
6648 | |
6649 # See if GNU ld supports shared libraries. | |
6650 case $host_os in | |
6651 aix3* | aix4* | aix5*) | |
6652 # On AIX/PPC, the GNU linker is very broken | |
6653 if test "$host_cpu" != ia64; then | |
6654 ld_shlibs=no | |
6655 cat <<EOF 1>&2 | |
6656 | |
6657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6658 *** to be unable to reliably create shared libraries on AIX. | |
6659 *** Therefore, libtool is disabling shared libraries support. If you | |
6660 *** really care for shared libraries, you may want to modify your PATH | |
6661 *** so that a non-GNU linker is found, and then restart. | |
6662 | |
6663 EOF | |
6664 fi | |
6665 ;; | |
6666 | |
6667 amigaos*) | |
6668 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)' | |
6669 hardcode_libdir_flag_spec='-L$libdir' | |
6670 hardcode_minus_L=yes | |
6671 | |
6672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6673 # that the semantics of dynamic libraries on AmigaOS, at least up | |
6674 # to version 4, is to share data among multiple programs linked | |
6675 # with the same dynamic library. Since this doesn't match the | |
6676 # behavior of shared libraries on other platforms, we can't use | |
6677 # them. | |
6678 ld_shlibs=no | |
6679 ;; | |
6680 | |
6681 beos*) | |
6682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6683 allow_undefined_flag=unsupported | |
6684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6685 # support --undefined. This deserves some investigation. FIXME | |
6686 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6687 else | |
6688 ld_shlibs=no | |
6689 fi | |
6690 ;; | |
6691 | |
6692 cygwin* | mingw* | pw32*) | |
6693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
6694 # as there is no search path for DLLs. | |
6695 hardcode_libdir_flag_spec='-L$libdir' | |
6696 allow_undefined_flag=unsupported | |
6697 always_export_symbols=no | |
6698 enable_shared_with_static_runtimes=yes | |
6699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
6700 | |
6701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
6702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
6703 # If the export-symbols file already is a .def file (1st line | |
6704 # is EXPORTS), use it as is; otherwise, prepend... | |
6705 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6706 cp $export_symbols $output_objdir/$soname.def; | |
6707 else | |
6708 echo EXPORTS > $output_objdir/$soname.def; | |
6709 cat $export_symbols >> $output_objdir/$soname.def; | |
6710 fi~ | |
6711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
6712 else | |
6713 ld_shlibs=no | |
6714 fi | |
6715 ;; | |
6716 | |
6717 netbsd* | knetbsd*-gnu) | |
6718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6719 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6720 wlarc= | |
6721 else | |
6722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6724 fi | |
6725 ;; | |
6726 | |
6727 solaris* | sysv5*) | |
6728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
6729 ld_shlibs=no | |
6730 cat <<EOF 1>&2 | |
6731 | |
6732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6733 *** create shared libraries on Solaris systems. Therefore, libtool | |
6734 *** is disabling shared libraries support. We urge you to upgrade GNU | |
6735 *** binutils to release 2.9.1 or newer. Another option is to modify | |
6736 *** your PATH or compiler configuration so that the native linker is | |
6737 *** used, and then restart. | |
6738 | |
6739 EOF | |
6740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6743 else | |
6744 ld_shlibs=no | |
6745 fi | |
6746 ;; | |
6747 | |
6748 sunos4*) | |
6749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6750 wlarc= | |
6751 hardcode_direct=yes | |
6752 hardcode_shlibpath_var=no | |
6753 ;; | |
6754 | |
6755 linux*) | |
6756 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6757 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6758 archive_cmds="$tmp_archive_cmds" | |
6759 supports_anon_versioning=no | |
6760 case `$LD -v 2>/dev/null` in | |
6761 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
6762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
6763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
6764 *\ 2.11.*) ;; # other 2.11 versions | |
6765 *) supports_anon_versioning=yes ;; | |
6766 esac | |
6767 if test $supports_anon_versioning = yes; then | |
6768 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
6769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6770 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6771 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6772 else | |
6773 archive_expsym_cmds="$tmp_archive_cmds" | |
6774 fi | |
6775 else | |
6776 ld_shlibs=no | |
6777 fi | |
6778 ;; | |
6779 | |
6780 *) | |
6781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6784 else | |
6785 ld_shlibs=no | |
6786 fi | |
6787 ;; | |
6788 esac | |
6789 | |
6790 if test "$ld_shlibs" = yes; then | |
6791 runpath_var=LD_RUN_PATH | |
6792 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6793 export_dynamic_flag_spec='${wl}--export-dynamic' | |
6794 # ancient GNU ld didn't support --whole-archive et. al. | |
6795 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
6796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6797 else | |
6798 whole_archive_flag_spec= | |
6799 fi | |
6800 fi | |
6801 else | |
6802 # PORTME fill in a description of your system's linker (not GNU ld) | |
6803 case $host_os in | |
6804 aix3*) | |
6805 allow_undefined_flag=unsupported | |
6806 always_export_symbols=yes | |
6807 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' | |
6808 # Note: this linker hardcodes the directories in LIBPATH if there | |
6809 # are no directories specified by -L. | |
6810 hardcode_minus_L=yes | |
6811 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
6812 # Neither direct hardcoding nor static linking is supported with a | |
6813 # broken collect2. | |
6814 hardcode_direct=unsupported | |
6815 fi | |
6816 ;; | |
6817 | |
6818 aix4* | aix5*) | |
6819 if test "$host_cpu" = ia64; then | |
6820 # On IA64, the linker does run time linking by default, so we don't | |
6821 # have to do anything special. | |
6822 aix_use_runtimelinking=no | |
6823 exp_sym_flag='-Bexport' | |
6824 no_entry_flag="" | |
6825 else | |
6826 # If we're using GNU nm, then we don't want the "-C" option. | |
6827 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6828 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
6829 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' | |
6830 else | |
6831 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' | |
6832 fi | |
6833 aix_use_runtimelinking=no | |
6834 | |
6835 # Test if we are trying to use run time linking or normal | |
6836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
6837 # need to do runtime linking. | |
6838 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
6839 for ld_flag in $LDFLAGS; do | |
6840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
6841 aix_use_runtimelinking=yes | |
6842 break | |
6843 fi | |
6844 done | |
6845 esac | |
6846 | |
6847 exp_sym_flag='-bexport' | |
6848 no_entry_flag='-bnoentry' | |
6849 fi | |
6850 | |
6851 # When large executables or shared objects are built, AIX ld can | |
6852 # have problems creating the table of contents. If linking a library | |
6853 # or program results in "error TOC overflow" add -mminimal-toc to | |
6854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
6855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
6856 | |
6857 archive_cmds='' | |
6858 hardcode_direct=yes | |
6859 hardcode_libdir_separator=':' | |
6860 link_all_deplibs=yes | |
6861 | |
6862 if test "$GCC" = yes; then | |
6863 case $host_os in aix4.012|aix4.012.*) | |
6864 # We only want to do this on AIX 4.2 and lower, the check | |
6865 # below for broken collect2 doesn't work under 4.3+ | |
6866 collect2name=`${CC} -print-prog-name=collect2` | |
6867 if test -f "$collect2name" && \ | |
6868 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
6869 then | |
6870 # We have reworked collect2 | |
6871 hardcode_direct=yes | |
6872 else | |
6873 # We have old collect2 | |
6874 hardcode_direct=unsupported | |
6875 # It fails to find uninstalled libraries when the uninstalled | |
6876 # path is not listed in the libpath. Setting hardcode_minus_L | |
6877 # to unsupported forces relinking | |
6878 hardcode_minus_L=yes | |
6879 hardcode_libdir_flag_spec='-L$libdir' | |
6880 hardcode_libdir_separator= | |
6881 fi | |
6882 esac | |
6883 shared_flag='-shared' | |
6884 else | |
6885 # not using gcc | |
6886 if test "$host_cpu" = ia64; then | |
6887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
6888 # chokes on -Wl,-G. The following line is correct: | |
6889 shared_flag='-G' | |
6890 else | |
6891 if test "$aix_use_runtimelinking" = yes; then | |
6892 shared_flag='${wl}-G' | |
6893 else | |
6894 shared_flag='${wl}-bM:SRE' | |
6895 fi | |
6896 fi | |
6897 fi | |
6898 | |
6899 # It seems that -bexpall does not export symbols beginning with | |
6900 # underscore (_), so it is better to generate a list of symbols to export. | |
6901 always_export_symbols=yes | |
6902 if test "$aix_use_runtimelinking" = yes; then | |
6903 # Warning - without using the other runtime loading flags (-brtl), | |
6904 # -berok will link without error, but may produce a broken library. | |
6905 allow_undefined_flag='-berok' | |
6906 # Determine the default libpath from the value encoded in an empty executable. | |
6907 cat >conftest.$ac_ext <<_ACEOF | |
6908 /* confdefs.h. */ | |
6909 _ACEOF | |
6910 cat confdefs.h >>conftest.$ac_ext | |
6911 cat >>conftest.$ac_ext <<_ACEOF | |
6912 /* end confdefs.h. */ | |
6913 | |
6914 int | |
6915 main () | |
6916 { | |
6917 | |
6918 ; | |
6919 return 0; | |
6920 } | |
6921 _ACEOF | |
6922 rm -f conftest.$ac_objext conftest$ac_exeext | |
6923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6924 (eval $ac_link) 2>conftest.er1 | |
6925 ac_status=$? | |
6926 grep -v '^ *+' conftest.er1 >conftest.err | |
6927 rm -f conftest.er1 | |
6928 cat conftest.err >&5 | |
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6930 (exit $ac_status); } && | |
6931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6933 (eval $ac_try) 2>&5 | |
6934 ac_status=$? | |
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6936 (exit $ac_status); }; } && | |
6937 { ac_try='test -s conftest$ac_exeext' | |
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6939 (eval $ac_try) 2>&5 | |
6940 ac_status=$? | |
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6942 (exit $ac_status); }; }; then | |
6943 | |
6944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6945 }'` | |
6946 # Check for a 64-bit object if we didn't find anything. | |
6947 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; } | |
6948 }'`; fi | |
6949 else | |
6950 echo "$as_me: failed program was:" >&5 | |
6951 sed 's/^/| /' conftest.$ac_ext >&5 | |
6952 | |
6953 fi | |
6954 rm -f conftest.err conftest.$ac_objext \ | |
6955 conftest$ac_exeext conftest.$ac_ext | |
6956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6957 | |
6958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6959 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
6960 else | |
6961 if test "$host_cpu" = ia64; then | |
6962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
6963 allow_undefined_flag="-z nodefs" | |
6964 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
6965 else | |
6966 # Determine the default libpath from the value encoded in an empty executable. | |
6967 cat >conftest.$ac_ext <<_ACEOF | |
6968 /* confdefs.h. */ | |
6969 _ACEOF | |
6970 cat confdefs.h >>conftest.$ac_ext | |
6971 cat >>conftest.$ac_ext <<_ACEOF | |
6972 /* end confdefs.h. */ | |
6973 | |
6974 int | |
6975 main () | |
6976 { | |
6977 | |
6978 ; | |
6979 return 0; | |
6980 } | |
6981 _ACEOF | |
6982 rm -f conftest.$ac_objext conftest$ac_exeext | |
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6984 (eval $ac_link) 2>conftest.er1 | |
6985 ac_status=$? | |
6986 grep -v '^ *+' conftest.er1 >conftest.err | |
6987 rm -f conftest.er1 | |
6988 cat conftest.err >&5 | |
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6990 (exit $ac_status); } && | |
6991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6993 (eval $ac_try) 2>&5 | |
6994 ac_status=$? | |
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6996 (exit $ac_status); }; } && | |
6997 { ac_try='test -s conftest$ac_exeext' | |
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6999 (eval $ac_try) 2>&5 | |
7000 ac_status=$? | |
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7002 (exit $ac_status); }; }; then | |
7003 | |
7004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7005 }'` | |
7006 # Check for a 64-bit object if we didn't find anything. | |
7007 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; } | |
7008 }'`; fi | |
7009 else | |
7010 echo "$as_me: failed program was:" >&5 | |
7011 sed 's/^/| /' conftest.$ac_ext >&5 | |
7012 | |
7013 fi | |
7014 rm -f conftest.err conftest.$ac_objext \ | |
7015 conftest$ac_exeext conftest.$ac_ext | |
7016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7017 | |
7018 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7019 # Warning - without using the other run time loading flags, | |
7020 # -berok will link without error, but may produce a broken library. | |
7021 no_undefined_flag=' ${wl}-bernotok' | |
7022 allow_undefined_flag=' ${wl}-berok' | |
7023 # -bexpall does not export symbols beginning with underscore (_) | |
7024 always_export_symbols=yes | |
7025 # Exported symbols can be pulled into shared objects from archives | |
7026 whole_archive_flag_spec=' ' | |
7027 archive_cmds_need_lc=yes | |
7028 # This is similar to how AIX traditionally builds it's shared libraries. | |
7029 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7030 fi | |
7031 fi | |
7032 ;; | |
7033 | |
7034 amigaos*) | |
7035 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)' | |
7036 hardcode_libdir_flag_spec='-L$libdir' | |
7037 hardcode_minus_L=yes | |
7038 # see comment about different semantics on the GNU ld section | |
7039 ld_shlibs=no | |
7040 ;; | |
7041 | |
7042 bsdi4*) | |
7043 export_dynamic_flag_spec=-rdynamic | |
7044 ;; | |
7045 | |
7046 cygwin* | mingw* | pw32*) | |
7047 # When not using gcc, we currently assume that we are using | |
7048 # Microsoft Visual C++. | |
7049 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7050 # no search path for DLLs. | |
7051 hardcode_libdir_flag_spec=' ' | |
7052 allow_undefined_flag=unsupported | |
7053 # Tell ltmain to make .lib files, not .a files. | |
7054 libext=lib | |
7055 # Tell ltmain to make .dll files, not .so files. | |
7056 shrext=".dll" | |
7057 # FIXME: Setting linknames here is a bad hack. | |
7058 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7059 # The linker will automatically build a .lib file if we build a DLL. | |
7060 old_archive_From_new_cmds='true' | |
7061 # FIXME: Should let the user specify the lib program. | |
7062 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
7063 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7064 enable_shared_with_static_runtimes=yes | |
7065 ;; | |
7066 | |
7067 darwin* | rhapsody*) | |
7068 if test "$GXX" = yes ; then | |
7069 archive_cmds_need_lc=no | |
7070 case "$host_os" in | |
7071 rhapsody* | darwin1.[012]) | |
7072 allow_undefined_flag='-undefined suppress' | |
7073 ;; | |
7074 *) # Darwin 1.3 on | |
7075 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
7076 allow_undefined_flag='-flat_namespace -undefined suppress' | |
7077 else | |
7078 case ${MACOSX_DEPLOYMENT_TARGET} in | |
7079 10.[012]) | |
7080 allow_undefined_flag='-flat_namespace -undefined suppress' | |
7081 ;; | |
7082 10.*) | |
7083 allow_undefined_flag='-undefined dynamic_lookup' | |
7084 ;; | |
7085 esac | |
7086 fi | |
7087 ;; | |
7088 esac | |
7089 lt_int_apple_cc_single_mod=no | |
7090 output_verbose_link_cmd='echo' | |
7091 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
7092 lt_int_apple_cc_single_mod=yes | |
7093 fi | |
7094 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
7095 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7096 else | |
7097 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7098 fi | |
7099 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
7101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
7102 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7103 else | |
7104 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7105 fi | |
7106 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}' | |
7107 hardcode_direct=no | |
7108 hardcode_automatic=yes | |
7109 hardcode_shlibpath_var=unsupported | |
7110 whole_archive_flag_spec='-all_load $convenience' | |
7111 link_all_deplibs=yes | |
7112 else | |
7113 ld_shlibs=no | |
7114 fi | |
7115 ;; | |
7116 | |
7117 dgux*) | |
7118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7119 hardcode_libdir_flag_spec='-L$libdir' | |
7120 hardcode_shlibpath_var=no | |
7121 ;; | |
7122 | |
7123 freebsd1*) | |
7124 ld_shlibs=no | |
7125 ;; | |
7126 | |
7127 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7128 # support. Future versions do this automatically, but an explicit c++rt0.o | |
7129 # does not break anything, and helps significantly (at the cost of a little | |
7130 # extra space). | |
7131 freebsd2.2*) | |
7132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7133 hardcode_libdir_flag_spec='-R$libdir' | |
7134 hardcode_direct=yes | |
7135 hardcode_shlibpath_var=no | |
7136 ;; | |
7137 | |
7138 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7139 freebsd2*) | |
7140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7141 hardcode_direct=yes | |
7142 hardcode_minus_L=yes | |
7143 hardcode_shlibpath_var=no | |
7144 ;; | |
7145 | |
7146 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7147 freebsd* | kfreebsd*-gnu) | |
7148 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7149 hardcode_libdir_flag_spec='-R$libdir' | |
7150 hardcode_direct=yes | |
7151 hardcode_shlibpath_var=no | |
7152 ;; | |
7153 | |
7154 hpux9*) | |
7155 if test "$GCC" = yes; then | |
7156 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' | |
7157 else | |
7158 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' | |
7159 fi | |
7160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7161 hardcode_libdir_separator=: | |
7162 hardcode_direct=yes | |
7163 | |
7164 # hardcode_minus_L: Not really in the search PATH, | |
7165 # but as the default location of the library. | |
7166 hardcode_minus_L=yes | |
7167 export_dynamic_flag_spec='${wl}-E' | |
7168 ;; | |
7169 | |
7170 hpux10* | hpux11*) | |
7171 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7172 case "$host_cpu" in | |
7173 hppa*64*|ia64*) | |
7174 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7175 ;; | |
7176 *) | |
7177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7178 ;; | |
7179 esac | |
7180 else | |
7181 case "$host_cpu" in | |
7182 hppa*64*|ia64*) | |
7183 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7184 ;; | |
7185 *) | |
7186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7187 ;; | |
7188 esac | |
7189 fi | |
7190 if test "$with_gnu_ld" = no; then | |
7191 case "$host_cpu" in | |
7192 hppa*64*) | |
7193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7194 hardcode_libdir_flag_spec_ld='+b $libdir' | |
7195 hardcode_libdir_separator=: | |
7196 hardcode_direct=no | |
7197 hardcode_shlibpath_var=no | |
7198 ;; | |
7199 ia64*) | |
7200 hardcode_libdir_flag_spec='-L$libdir' | |
7201 hardcode_direct=no | |
7202 hardcode_shlibpath_var=no | |
7203 | |
7204 # hardcode_minus_L: Not really in the search PATH, | |
7205 # but as the default location of the library. | |
7206 hardcode_minus_L=yes | |
7207 ;; | |
7208 *) | |
7209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7210 hardcode_libdir_separator=: | |
7211 hardcode_direct=yes | |
7212 export_dynamic_flag_spec='${wl}-E' | |
7213 | |
7214 # hardcode_minus_L: Not really in the search PATH, | |
7215 # but as the default location of the library. | |
7216 hardcode_minus_L=yes | |
7217 ;; | |
7218 esac | |
7219 fi | |
7220 ;; | |
7221 | |
7222 irix5* | irix6* | nonstopux*) | |
7223 if test "$GCC" = yes; then | |
7224 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' | |
7225 else | |
7226 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' | |
7227 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7228 fi | |
7229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7230 hardcode_libdir_separator=: | |
7231 link_all_deplibs=yes | |
7232 ;; | |
7233 | |
7234 netbsd* | knetbsd*-gnu) | |
7235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7237 else | |
7238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7239 fi | |
7240 hardcode_libdir_flag_spec='-R$libdir' | |
7241 hardcode_direct=yes | |
7242 hardcode_shlibpath_var=no | |
7243 ;; | |
7244 | |
7245 newsos6) | |
7246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7247 hardcode_direct=yes | |
7248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7249 hardcode_libdir_separator=: | |
7250 hardcode_shlibpath_var=no | |
7251 ;; | |
7252 | |
7253 openbsd*) | |
7254 hardcode_direct=yes | |
7255 hardcode_shlibpath_var=no | |
7256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7259 export_dynamic_flag_spec='${wl}-E' | |
7260 else | |
7261 case $host_os in | |
7262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7264 hardcode_libdir_flag_spec='-R$libdir' | |
7265 ;; | |
7266 *) | |
7267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7269 ;; | |
7270 esac | |
7271 fi | |
7272 ;; | |
7273 | |
7274 os2*) | |
7275 hardcode_libdir_flag_spec='-L$libdir' | |
7276 hardcode_minus_L=yes | |
7277 allow_undefined_flag=unsupported | |
7278 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' | |
7279 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
7280 ;; | |
7281 | |
7282 osf3*) | |
7283 if test "$GCC" = yes; then | |
7284 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7285 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' | |
7286 else | |
7287 allow_undefined_flag=' -expect_unresolved \*' | |
7288 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' | |
7289 fi | |
7290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7291 hardcode_libdir_separator=: | |
7292 ;; | |
7293 | |
7294 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7295 if test "$GCC" = yes; then | |
7296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7297 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' | |
7298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7299 else | |
7300 allow_undefined_flag=' -expect_unresolved \*' | |
7301 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' | |
7302 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
7303 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | |
7304 | |
7305 # Both c and cxx compiler support -rpath directly | |
7306 hardcode_libdir_flag_spec='-rpath $libdir' | |
7307 fi | |
7308 hardcode_libdir_separator=: | |
7309 ;; | |
7310 | |
7311 sco3.2v5*) | |
7312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7313 hardcode_shlibpath_var=no | |
7314 export_dynamic_flag_spec='${wl}-Bexport' | |
7315 runpath_var=LD_RUN_PATH | |
7316 hardcode_runpath_var=yes | |
7317 ;; | |
7318 | |
7319 solaris*) | |
7320 no_undefined_flag=' -z text' | |
7321 if test "$GCC" = yes; then | |
7322 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7323 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7324 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
7325 else | |
7326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7327 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7329 fi | |
7330 hardcode_libdir_flag_spec='-R$libdir' | |
7331 hardcode_shlibpath_var=no | |
7332 case $host_os in | |
7333 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
7334 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7335 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
7336 esac | |
7337 link_all_deplibs=yes | |
7338 ;; | |
7339 | |
7340 sunos4*) | |
7341 if test "x$host_vendor" = xsequent; then | |
7342 # Use $CC to link under sequent, because it throws in some extra .o | |
7343 # files that make .init and .fini sections work. | |
7344 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7345 else | |
7346 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
7347 fi | |
7348 hardcode_libdir_flag_spec='-L$libdir' | |
7349 hardcode_direct=yes | |
7350 hardcode_minus_L=yes | |
7351 hardcode_shlibpath_var=no | |
7352 ;; | |
7353 | |
7354 sysv4) | |
7355 case $host_vendor in | |
7356 sni) | |
7357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7358 hardcode_direct=yes # is this really true??? | |
7359 ;; | |
7360 siemens) | |
7361 ## LD is ld it makes a PLAMLIB | |
7362 ## CC just makes a GrossModule. | |
7363 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7364 reload_cmds='$CC -r -o $output$reload_objs' | |
7365 hardcode_direct=no | |
7366 ;; | |
7367 motorola) | |
7368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7369 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
7370 ;; | |
7371 esac | |
7372 runpath_var='LD_RUN_PATH' | |
7373 hardcode_shlibpath_var=no | |
7374 ;; | |
7375 | |
7376 sysv4.3*) | |
7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7378 hardcode_shlibpath_var=no | |
7379 export_dynamic_flag_spec='-Bexport' | |
7380 ;; | |
7381 | |
7382 sysv4*MP*) | |
7383 if test -d /usr/nec; then | |
7384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7385 hardcode_shlibpath_var=no | |
7386 runpath_var=LD_RUN_PATH | |
7387 hardcode_runpath_var=yes | |
7388 ld_shlibs=yes | |
7389 fi | |
7390 ;; | |
7391 | |
7392 sysv4.2uw2*) | |
7393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7394 hardcode_direct=yes | |
7395 hardcode_minus_L=no | |
7396 hardcode_shlibpath_var=no | |
7397 hardcode_runpath_var=yes | |
7398 runpath_var=LD_RUN_PATH | |
7399 ;; | |
7400 | |
7401 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
7402 no_undefined_flag='${wl}-z ${wl}text' | |
7403 if test "$GCC" = yes; then | |
7404 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7405 else | |
7406 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7407 fi | |
7408 runpath_var='LD_RUN_PATH' | |
7409 hardcode_shlibpath_var=no | |
7410 ;; | |
7411 | |
7412 sysv5*) | |
7413 no_undefined_flag=' -z text' | |
7414 # $CC -shared without GNU ld will not create a library from C++ | |
7415 # object files and a static libstdc++, better avoid it by now | |
7416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7417 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7419 hardcode_libdir_flag_spec= | |
7420 hardcode_shlibpath_var=no | |
7421 runpath_var='LD_RUN_PATH' | |
7422 ;; | |
7423 | |
7424 uts4*) | |
7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7426 hardcode_libdir_flag_spec='-L$libdir' | |
7427 hardcode_shlibpath_var=no | |
7428 ;; | |
7429 | |
7430 *) | |
7431 ld_shlibs=no | |
7432 ;; | |
7433 esac | |
7434 fi | |
7435 | |
7436 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
7437 echo "${ECHO_T}$ld_shlibs" >&6 | |
7438 test "$ld_shlibs" = no && can_build_shared=no | |
7439 | |
7440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
7441 if test "$GCC" = yes; then | |
7442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
7443 fi | |
7444 | |
7445 # | |
7446 # Do we need to explicitly link libc? | |
7447 # | |
7448 case "x$archive_cmds_need_lc" in | |
7449 x|xyes) | |
7450 # Assume -lc should be added | |
7451 archive_cmds_need_lc=yes | |
7452 | |
7453 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7454 case $archive_cmds in | |
7455 *'~'*) | |
7456 # FIXME: we may have to deal with multi-command sequences. | |
7457 ;; | |
7458 '$CC '*) | |
7459 # Test whether the compiler implicitly links with -lc since on some | |
7460 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
7461 # to ld, don't add -lc before -lgcc. | |
7462 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
7463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
7464 $rm conftest* | |
7465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7466 | |
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7468 (eval $ac_compile) 2>&5 | |
7469 ac_status=$? | |
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7471 (exit $ac_status); } 2>conftest.err; then | |
7472 soname=conftest | |
7473 lib=conftest | |
7474 libobjs=conftest.$ac_objext | |
7475 deplibs= | |
7476 wl=$lt_prog_compiler_wl | |
7477 compiler_flags=-v | |
7478 linker_flags=-v | |
7479 verstring= | |
7480 output_objdir=. | |
7481 libname=conftest | |
7482 lt_save_allow_undefined_flag=$allow_undefined_flag | |
7483 allow_undefined_flag= | |
7484 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
7485 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
7486 ac_status=$? | |
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7488 (exit $ac_status); } | |
7489 then | |
7490 archive_cmds_need_lc=no | |
7491 else | |
7492 archive_cmds_need_lc=yes | |
7493 fi | |
7494 allow_undefined_flag=$lt_save_allow_undefined_flag | |
7495 else | |
7496 cat conftest.err 1>&5 | |
7497 fi | |
7498 $rm conftest* | |
7499 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
7500 echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
7501 ;; | |
7502 esac | |
7503 fi | |
7504 ;; | |
7505 esac | |
7506 | |
7507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
7508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
7509 library_names_spec= | |
7510 libname_spec='lib$name' | |
7511 soname_spec= | |
7512 shrext=".so" | |
7513 postinstall_cmds= | |
7514 postuninstall_cmds= | |
7515 finish_cmds= | |
7516 finish_eval= | |
7517 shlibpath_var= | |
7518 shlibpath_overrides_runpath=unknown | |
7519 version_type=none | |
7520 dynamic_linker="$host_os ld.so" | |
7521 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
7522 if test "$GCC" = yes; then | |
7523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
7524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
7525 # if the path contains ";" then we assume it to be the separator | |
7526 # otherwise default to the standard path separator (i.e. ":") - it is | |
7527 # assumed that no part of a normal pathname contains ";" but that should | |
7528 # okay in the real world where ";" in dirpaths is itself problematic. | |
7529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
7530 else | |
7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
7532 fi | |
7533 else | |
7534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
7535 fi | |
7536 need_lib_prefix=unknown | |
7537 hardcode_into_libs=no | |
7538 | |
7539 # when you set need_version to no, make sure it does not cause -set_version | |
7540 # flags to be left without arguments | |
7541 need_version=unknown | |
7542 | |
7543 case $host_os in | |
7544 aix3*) | |
7545 version_type=linux | |
7546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
7547 shlibpath_var=LIBPATH | |
7548 | |
7549 # AIX 3 has no versioning support, so we append a major version to the name. | |
7550 soname_spec='${libname}${release}${shared_ext}$major' | |
7551 ;; | |
7552 | |
7553 aix4* | aix5*) | |
7554 version_type=linux | |
7555 need_lib_prefix=no | |
7556 need_version=no | |
7557 hardcode_into_libs=yes | |
7558 if test "$host_cpu" = ia64; then | |
7559 # AIX 5 supports IA64 | |
7560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
7561 shlibpath_var=LD_LIBRARY_PATH | |
7562 else | |
7563 # With GCC up to 2.95.x, collect2 would create an import file | |
7564 # for dependence libraries. The import file would start with | |
7565 # the line `#! .'. This would cause the generated library to | |
7566 # depend on `.', always an invalid library. This was fixed in | |
7567 # development snapshots of GCC prior to 3.0. | |
7568 case $host_os in | |
7569 aix4 | aix4.[01] | aix4.[01].*) | |
7570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
7571 echo ' yes ' | |
7572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
7573 : | |
7574 else | |
7575 can_build_shared=no | |
7576 fi | |
7577 ;; | |
7578 esac | |
7579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
7580 # soname into executable. Probably we can add versioning support to | |
7581 # collect2, so additional links can be useful in future. | |
7582 if test "$aix_use_runtimelinking" = yes; then | |
7583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
7584 # instead of lib<name>.a to let people know that these are not | |
7585 # typical AIX shared libraries. | |
7586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7587 else | |
7588 # We preserve .a as extension for shared libraries through AIX4.2 | |
7589 # and later when we are not doing run time linking. | |
7590 library_names_spec='${libname}${release}.a $libname.a' | |
7591 soname_spec='${libname}${release}${shared_ext}$major' | |
7592 fi | |
7593 shlibpath_var=LIBPATH | |
7594 fi | |
7595 ;; | |
7596 | |
7597 amigaos*) | |
7598 library_names_spec='$libname.ixlibrary $libname.a' | |
7599 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
7600 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' | |
7601 ;; | |
7602 | |
7603 beos*) | |
7604 library_names_spec='${libname}${shared_ext}' | |
7605 dynamic_linker="$host_os ld.so" | |
7606 shlibpath_var=LIBRARY_PATH | |
7607 ;; | |
7608 | |
7609 bsdi4*) | |
7610 version_type=linux | |
7611 need_version=no | |
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7613 soname_spec='${libname}${release}${shared_ext}$major' | |
7614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
7615 shlibpath_var=LD_LIBRARY_PATH | |
7616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
7617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
7618 # the default ld.so.conf also contains /usr/contrib/lib and | |
7619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
7620 # libtool to hard-code these into programs | |
7621 ;; | |
7622 | |
7623 cygwin* | mingw* | pw32*) | |
7624 version_type=windows | |
7625 shrext=".dll" | |
7626 need_version=no | |
7627 need_lib_prefix=no | |
7628 | |
7629 case $GCC,$host_os in | |
7630 yes,cygwin* | yes,mingw* | yes,pw32*) | |
7631 library_names_spec='$libname.dll.a' | |
7632 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
7633 postinstall_cmds='base_file=`basename \${file}`~ | |
7634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
7635 dldir=$destdir/`dirname \$dlpath`~ | |
7636 test -d \$dldir || mkdir -p \$dldir~ | |
7637 $install_prog $dir/$dlname \$dldir/$dlname' | |
7638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
7639 dlpath=$dir/\$dldll~ | |
7640 $rm \$dlpath' | |
7641 shlibpath_overrides_runpath=yes | |
7642 | |
7643 case $host_os in | |
7644 cygwin*) | |
7645 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
7646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
7648 ;; | |
7649 mingw*) | |
7650 # MinGW DLLs use traditional 'lib' prefix | |
7651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
7653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
7654 # It is most probably a Windows format PATH printed by | |
7655 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
7656 # path with ; separators, and with drive letters. We can handle the | |
7657 # drive letters (cygwin fileutils understands them), so leave them, | |
7658 # especially as we might pass files found there to a mingw objdump, | |
7659 # which wouldn't understand a cygwinified path. Ahh. | |
7660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
7661 else | |
7662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
7663 fi | |
7664 ;; | |
7665 pw32*) | |
7666 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
7667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
7668 ;; | |
7669 esac | |
7670 ;; | |
7671 | |
7672 *) | |
7673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
7674 ;; | |
7675 esac | |
7676 dynamic_linker='Win32 ld.exe' | |
7677 # FIXME: first we should search . and the directory the executable is in | |
7678 shlibpath_var=PATH | |
7679 ;; | |
7680 | |
7681 darwin* | rhapsody*) | |
7682 dynamic_linker="$host_os dyld" | |
7683 version_type=darwin | |
7684 need_lib_prefix=no | |
7685 need_version=no | |
7686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
7687 soname_spec='${libname}${release}${major}$shared_ext' | |
7688 shlibpath_overrides_runpath=yes | |
7689 shlibpath_var=DYLD_LIBRARY_PATH | |
7690 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
7691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
7692 if test "$GCC" = yes; then | |
7693 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"` | |
7694 else | |
7695 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
7696 fi | |
7697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
7698 ;; | |
7699 | |
7700 dgux*) | |
7701 version_type=linux | |
7702 need_lib_prefix=no | |
7703 need_version=no | |
7704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
7705 soname_spec='${libname}${release}${shared_ext}$major' | |
7706 shlibpath_var=LD_LIBRARY_PATH | |
7707 ;; | |
7708 | |
7709 freebsd1*) | |
7710 dynamic_linker=no | |
7711 ;; | |
7712 | |
7713 kfreebsd*-gnu) | |
7714 version_type=linux | |
7715 need_lib_prefix=no | |
7716 need_version=no | |
7717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
7718 soname_spec='${libname}${release}${shared_ext}$major' | |
7719 shlibpath_var=LD_LIBRARY_PATH | |
7720 shlibpath_overrides_runpath=no | |
7721 hardcode_into_libs=yes | |
7722 dynamic_linker='GNU ld.so' | |
7723 ;; | |
7724 | |
7725 freebsd*) | |
7726 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
7727 version_type=freebsd-$objformat | |
7728 case $version_type in | |
7729 freebsd-elf*) | |
7730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
7731 need_version=no | |
7732 need_lib_prefix=no | |
7733 ;; | |
7734 freebsd-*) | |
7735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
7736 need_version=yes | |
7737 ;; | |
7738 esac | |
7739 shlibpath_var=LD_LIBRARY_PATH | |
7740 case $host_os in | |
7741 freebsd2*) | |
7742 shlibpath_overrides_runpath=yes | |
7743 ;; | |
7744 freebsd3.01* | freebsdelf3.01*) | |
7745 shlibpath_overrides_runpath=yes | |
7746 hardcode_into_libs=yes | |
7747 ;; | |
7748 *) # from 3.2 on | |
7749 shlibpath_overrides_runpath=no | |
7750 hardcode_into_libs=yes | |
7751 ;; | |
7752 esac | |
7753 ;; | |
7754 | |
7755 gnu*) | |
7756 version_type=linux | |
7757 need_lib_prefix=no | |
7758 need_version=no | |
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
7760 soname_spec='${libname}${release}${shared_ext}$major' | |
7761 shlibpath_var=LD_LIBRARY_PATH | |
7762 hardcode_into_libs=yes | |
7763 ;; | |
7764 | |
7765 hpux9* | hpux10* | hpux11*) | |
7766 # Give a soname corresponding to the major version so that dld.sl refuses to | |
7767 # link against other versions. | |
7768 version_type=sunos | |
7769 need_lib_prefix=no | |
7770 need_version=no | |
7771 case "$host_cpu" in | |
7772 ia64*) | |
7773 shrext='.so' | |
7774 hardcode_into_libs=yes | |
7775 dynamic_linker="$host_os dld.so" | |
7776 shlibpath_var=LD_LIBRARY_PATH | |
7777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7779 soname_spec='${libname}${release}${shared_ext}$major' | |
7780 if test "X$HPUX_IA64_MODE" = X32; then | |
7781 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
7782 else | |
7783 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
7784 fi | |
7785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7786 ;; | |
7787 hppa*64*) | |
7788 shrext='.sl' | |
7789 hardcode_into_libs=yes | |
7790 dynamic_linker="$host_os dld.sl" | |
7791 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
7792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7794 soname_spec='${libname}${release}${shared_ext}$major' | |
7795 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
7796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7797 ;; | |
7798 *) | |
7799 shrext='.sl' | |
7800 dynamic_linker="$host_os dld.sl" | |
7801 shlibpath_var=SHLIB_PATH | |
7802 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7804 soname_spec='${libname}${release}${shared_ext}$major' | |
7805 ;; | |
7806 esac | |
7807 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
7808 postinstall_cmds='chmod 555 $lib' | |
7809 ;; | |
7810 | |
7811 irix5* | irix6* | nonstopux*) | |
7812 case $host_os in | |
7813 nonstopux*) version_type=nonstopux ;; | |
7814 *) | |
7815 if test "$lt_cv_prog_gnu_ld" = yes; then | |
7816 version_type=linux | |
7817 else | |
7818 version_type=irix | |
7819 fi ;; | |
7820 esac | |
7821 need_lib_prefix=no | |
7822 need_version=no | |
7823 soname_spec='${libname}${release}${shared_ext}$major' | |
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
7825 case $host_os in | |
7826 irix5* | nonstopux*) | |
7827 libsuff= shlibsuff= | |
7828 ;; | |
7829 *) | |
7830 case $LD in # libtool.m4 will add one of these switches to LD | |
7831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
7832 libsuff= shlibsuff= libmagic=32-bit;; | |
7833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
7834 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
7835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
7836 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
7837 *) libsuff= shlibsuff= libmagic=never-match;; | |
7838 esac | |
7839 ;; | |
7840 esac | |
7841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
7842 shlibpath_overrides_runpath=no | |
7843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
7844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
7845 hardcode_into_libs=yes | |
7846 ;; | |
7847 | |
7848 # No shared lib support for Linux oldld, aout, or coff. | |
7849 linux*oldld* | linux*aout* | linux*coff*) | |
7850 dynamic_linker=no | |
7851 ;; | |
7852 | |
7853 # This must be Linux ELF. | |
7854 linux*) | |
7855 version_type=linux | |
7856 need_lib_prefix=no | |
7857 need_version=no | |
7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7859 soname_spec='${libname}${release}${shared_ext}$major' | |
7860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
7861 shlibpath_var=LD_LIBRARY_PATH | |
7862 shlibpath_overrides_runpath=no | |
7863 # This implies no fast_install, which is unacceptable. | |
7864 # Some rework will be needed to allow for fast_install | |
7865 # before this can be enabled. | |
7866 hardcode_into_libs=yes | |
7867 | |
7868 # Append ld.so.conf contents to the search path | |
7869 if test -f /etc/ld.so.conf; then | |
7870 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
7871 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
7872 fi | |
7873 | |
7874 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
7875 # powerpc, because MkLinux only supported shared libraries with the | |
7876 # GNU dynamic linker. Since this was broken with cross compilers, | |
7877 # most powerpc-linux boxes support dynamic linking these days and | |
7878 # people can always --disable-shared, the test was removed, and we | |
7879 # assume the GNU/Linux dynamic linker is in use. | |
7880 dynamic_linker='GNU/Linux ld.so' | |
7881 ;; | |
7882 | |
7883 knetbsd*-gnu) | |
7884 version_type=linux | |
7885 need_lib_prefix=no | |
7886 need_version=no | |
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
7888 soname_spec='${libname}${release}${shared_ext}$major' | |
7889 shlibpath_var=LD_LIBRARY_PATH | |
7890 shlibpath_overrides_runpath=no | |
7891 hardcode_into_libs=yes | |
7892 dynamic_linker='GNU ld.so' | |
7893 ;; | |
7894 | |
7895 netbsd*) | |
7896 version_type=sunos | |
7897 need_lib_prefix=no | |
7898 need_version=no | |
7899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
7901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7902 dynamic_linker='NetBSD (a.out) ld.so' | |
7903 else | |
7904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
7905 soname_spec='${libname}${release}${shared_ext}$major' | |
7906 dynamic_linker='NetBSD ld.elf_so' | |
7907 fi | |
7908 shlibpath_var=LD_LIBRARY_PATH | |
7909 shlibpath_overrides_runpath=yes | |
7910 hardcode_into_libs=yes | |
7911 ;; | |
7912 | |
7913 newsos6) | |
7914 version_type=linux | |
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7916 shlibpath_var=LD_LIBRARY_PATH | |
7917 shlibpath_overrides_runpath=yes | |
7918 ;; | |
7919 | |
7920 nto-qnx*) | |
7921 version_type=linux | |
7922 need_lib_prefix=no | |
7923 need_version=no | |
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7925 soname_spec='${libname}${release}${shared_ext}$major' | |
7926 shlibpath_var=LD_LIBRARY_PATH | |
7927 shlibpath_overrides_runpath=yes | |
7928 ;; | |
7929 | |
7930 openbsd*) | |
7931 version_type=sunos | |
7932 need_lib_prefix=no | |
7933 need_version=yes | |
7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
7935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7936 shlibpath_var=LD_LIBRARY_PATH | |
7937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7938 case $host_os in | |
7939 openbsd2.[89] | openbsd2.[89].*) | |
7940 shlibpath_overrides_runpath=no | |
7941 ;; | |
7942 *) | |
7943 shlibpath_overrides_runpath=yes | |
7944 ;; | |
7945 esac | |
7946 else | |
7947 shlibpath_overrides_runpath=yes | |
7948 fi | |
7949 ;; | |
7950 | |
7951 os2*) | |
7952 libname_spec='$name' | |
7953 shrext=".dll" | |
7954 need_lib_prefix=no | |
7955 library_names_spec='$libname${shared_ext} $libname.a' | |
7956 dynamic_linker='OS/2 ld.exe' | |
7957 shlibpath_var=LIBPATH | |
7958 ;; | |
7959 | |
7960 osf3* | osf4* | osf5*) | |
7961 version_type=osf | |
7962 need_lib_prefix=no | |
7963 need_version=no | |
7964 soname_spec='${libname}${release}${shared_ext}$major' | |
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7966 shlibpath_var=LD_LIBRARY_PATH | |
7967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
7968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
7969 ;; | |
7970 | |
7971 sco3.2v5*) | |
7972 version_type=osf | |
7973 soname_spec='${libname}${release}${shared_ext}$major' | |
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7975 shlibpath_var=LD_LIBRARY_PATH | |
7976 ;; | |
7977 | |
7978 solaris*) | |
7979 version_type=linux | |
7980 need_lib_prefix=no | |
7981 need_version=no | |
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7983 soname_spec='${libname}${release}${shared_ext}$major' | |
7984 shlibpath_var=LD_LIBRARY_PATH | |
7985 shlibpath_overrides_runpath=yes | |
7986 hardcode_into_libs=yes | |
7987 # ldd complains unless libraries are executable | |
7988 postinstall_cmds='chmod +x $lib' | |
7989 ;; | |
7990 | |
7991 sunos4*) | |
7992 version_type=sunos | |
7993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
7994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
7995 shlibpath_var=LD_LIBRARY_PATH | |
7996 shlibpath_overrides_runpath=yes | |
7997 if test "$with_gnu_ld" = yes; then | |
7998 need_lib_prefix=no | |
7999 fi | |
8000 need_version=yes | |
8001 ;; | |
8002 | |
8003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8004 version_type=linux | |
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8006 soname_spec='${libname}${release}${shared_ext}$major' | |
8007 shlibpath_var=LD_LIBRARY_PATH | |
8008 case $host_vendor in | |
8009 sni) | |
8010 shlibpath_overrides_runpath=no | |
8011 need_lib_prefix=no | |
8012 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8013 runpath_var=LD_RUN_PATH | |
8014 ;; | |
8015 siemens) | |
8016 need_lib_prefix=no | |
8017 ;; | |
8018 motorola) | |
8019 need_lib_prefix=no | |
8020 need_version=no | |
8021 shlibpath_overrides_runpath=no | |
8022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8023 ;; | |
8024 esac | |
8025 ;; | |
8026 | |
8027 sysv4*MP*) | |
8028 if test -d /usr/nec ;then | |
8029 version_type=linux | |
8030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
8031 soname_spec='$libname${shared_ext}.$major' | |
8032 shlibpath_var=LD_LIBRARY_PATH | |
8033 fi | |
8034 ;; | |
8035 | |
8036 uts4*) | |
8037 version_type=linux | |
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8039 soname_spec='${libname}${release}${shared_ext}$major' | |
8040 shlibpath_var=LD_LIBRARY_PATH | |
8041 ;; | |
8042 | |
8043 *) | |
8044 dynamic_linker=no | |
8045 ;; | |
8046 esac | |
8047 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
8048 echo "${ECHO_T}$dynamic_linker" >&6 | |
8049 test "$dynamic_linker" = no && can_build_shared=no | |
8050 | |
8051 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
8052 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
8053 hardcode_action= | |
8054 if test -n "$hardcode_libdir_flag_spec" || \ | |
8055 test -n "$runpath_var " || \ | |
8056 test "X$hardcode_automatic"="Xyes" ; then | |
8057 | |
8058 # We can hardcode non-existant directories. | |
8059 if test "$hardcode_direct" != no && | |
8060 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
8061 # have to relink, otherwise we might link with an installed library | |
8062 # when we should be linking with a yet-to-be-installed one | |
8063 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
8064 test "$hardcode_minus_L" != no; then | |
8065 # Linking always hardcodes the temporary library directory. | |
8066 hardcode_action=relink | |
8067 else | |
8068 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8069 hardcode_action=immediate | |
8070 fi | |
8071 else | |
8072 # We cannot hardcode anything, or else we can only hardcode existing | |
8073 # directories. | |
8074 hardcode_action=unsupported | |
8075 fi | |
8076 echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
8077 echo "${ECHO_T}$hardcode_action" >&6 | |
8078 | |
8079 if test "$hardcode_action" = relink; then | |
8080 # Fast installation is not supported | |
8081 enable_fast_install=no | |
8082 elif test "$shlibpath_overrides_runpath" = yes || | |
8083 test "$enable_shared" = no; then | |
8084 # Fast installation is not necessary | |
8085 enable_fast_install=needless | |
8086 fi | |
8087 | |
8088 striplib= | |
8089 old_striplib= | |
8090 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
8091 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
8092 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
8093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
8094 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8095 echo "$as_me:$LINENO: result: yes" >&5 | |
8096 echo "${ECHO_T}yes" >&6 | |
8097 else | |
8098 # FIXME - insert some real tests, host_os isn't really good enough | |
8099 case $host_os in | |
8100 darwin*) | |
8101 if test -n "$STRIP" ; then | |
8102 striplib="$STRIP -x" | |
8103 echo "$as_me:$LINENO: result: yes" >&5 | |
8104 echo "${ECHO_T}yes" >&6 | |
8105 else | |
8106 echo "$as_me:$LINENO: result: no" >&5 | |
8107 echo "${ECHO_T}no" >&6 | |
8108 fi | |
8109 ;; | |
8110 *) | |
8111 echo "$as_me:$LINENO: result: no" >&5 | |
8112 echo "${ECHO_T}no" >&6 | |
8113 ;; | |
8114 esac | |
8115 fi | |
8116 | |
8117 if test "x$enable_dlopen" != xyes; then | |
8118 enable_dlopen=unknown | |
8119 enable_dlopen_self=unknown | |
8120 enable_dlopen_self_static=unknown | |
8121 else | |
8122 lt_cv_dlopen=no | |
8123 lt_cv_dlopen_libs= | |
8124 | |
8125 case $host_os in | |
8126 beos*) | |
8127 lt_cv_dlopen="load_add_on" | |
8128 lt_cv_dlopen_libs= | |
8129 lt_cv_dlopen_self=yes | |
8130 ;; | |
8131 | |
8132 mingw* | pw32*) | |
8133 lt_cv_dlopen="LoadLibrary" | |
8134 lt_cv_dlopen_libs= | |
8135 ;; | |
8136 | |
8137 cygwin*) | |
8138 lt_cv_dlopen="dlopen" | |
8139 lt_cv_dlopen_libs= | |
8140 ;; | |
8141 | |
8142 darwin*) | |
8143 # if libdl is installed we need to link against it | |
8144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8147 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8148 else | |
8149 ac_check_lib_save_LIBS=$LIBS | |
8150 LIBS="-ldl $LIBS" | |
8151 cat >conftest.$ac_ext <<_ACEOF | |
8152 /* confdefs.h. */ | |
8153 _ACEOF | |
8154 cat confdefs.h >>conftest.$ac_ext | |
8155 cat >>conftest.$ac_ext <<_ACEOF | |
8156 /* end confdefs.h. */ | |
8157 | |
8158 /* Override any gcc2 internal prototype to avoid an error. */ | |
8159 #ifdef __cplusplus | |
8160 extern "C" | |
8161 #endif | |
8162 /* We use char because int might match the return type of a gcc2 | |
8163 builtin and then its argument prototype would still apply. */ | |
8164 char dlopen (); | |
8165 int | |
8166 main () | |
8167 { | |
8168 dlopen (); | |
8169 ; | |
8170 return 0; | |
8171 } | |
8172 _ACEOF | |
8173 rm -f conftest.$ac_objext conftest$ac_exeext | |
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8175 (eval $ac_link) 2>conftest.er1 | |
8176 ac_status=$? | |
8177 grep -v '^ *+' conftest.er1 >conftest.err | |
8178 rm -f conftest.er1 | |
8179 cat conftest.err >&5 | |
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8181 (exit $ac_status); } && | |
8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8184 (eval $ac_try) 2>&5 | |
8185 ac_status=$? | |
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8187 (exit $ac_status); }; } && | |
8188 { ac_try='test -s conftest$ac_exeext' | |
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8190 (eval $ac_try) 2>&5 | |
8191 ac_status=$? | |
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8193 (exit $ac_status); }; }; then | |
8194 ac_cv_lib_dl_dlopen=yes | |
8195 else | |
8196 echo "$as_me: failed program was:" >&5 | |
8197 sed 's/^/| /' conftest.$ac_ext >&5 | |
8198 | |
8199 ac_cv_lib_dl_dlopen=no | |
8200 fi | |
8201 rm -f conftest.err conftest.$ac_objext \ | |
8202 conftest$ac_exeext conftest.$ac_ext | |
8203 LIBS=$ac_check_lib_save_LIBS | |
8204 fi | |
8205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8207 if test $ac_cv_lib_dl_dlopen = yes; then | |
8208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8209 else | |
8210 | |
8211 lt_cv_dlopen="dyld" | |
8212 lt_cv_dlopen_libs= | |
8213 lt_cv_dlopen_self=yes | |
8214 | |
8215 fi | |
8216 | |
8217 ;; | |
8218 | |
8219 *) | |
8220 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
8221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
8222 if test "${ac_cv_func_shl_load+set}" = set; then | |
8223 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8224 else | |
8225 cat >conftest.$ac_ext <<_ACEOF | |
8226 /* confdefs.h. */ | |
8227 _ACEOF | |
8228 cat confdefs.h >>conftest.$ac_ext | |
8229 cat >>conftest.$ac_ext <<_ACEOF | |
8230 /* end confdefs.h. */ | |
8231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
8232 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8233 #define shl_load innocuous_shl_load | |
8234 | |
8235 /* System header to define __stub macros and hopefully few prototypes, | |
8236 which can conflict with char shl_load (); below. | |
8237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8238 <limits.h> exists even on freestanding compilers. */ | |
8239 | |
8240 #ifdef __STDC__ | |
8241 # include <limits.h> | |
8242 #else | |
8243 # include <assert.h> | |
8244 #endif | |
8245 | |
8246 #undef shl_load | |
8247 | |
8248 /* Override any gcc2 internal prototype to avoid an error. */ | |
8249 #ifdef __cplusplus | |
8250 extern "C" | |
8251 { | |
8252 #endif | |
8253 /* We use char because int might match the return type of a gcc2 | |
8254 builtin and then its argument prototype would still apply. */ | |
8255 char shl_load (); | |
8256 /* The GNU C library defines this for functions which it implements | |
8257 to always fail with ENOSYS. Some functions are actually named | |
8258 something starting with __ and the normal name is an alias. */ | |
8259 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
8260 choke me | |
8261 #else | |
8262 char (*f) () = shl_load; | |
8263 #endif | |
8264 #ifdef __cplusplus | |
8265 } | |
8266 #endif | |
8267 | |
8268 int | |
8269 main () | |
8270 { | |
8271 return f != shl_load; | |
8272 ; | |
8273 return 0; | |
8274 } | |
8275 _ACEOF | |
8276 rm -f conftest.$ac_objext conftest$ac_exeext | |
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8278 (eval $ac_link) 2>conftest.er1 | |
8279 ac_status=$? | |
8280 grep -v '^ *+' conftest.er1 >conftest.err | |
8281 rm -f conftest.er1 | |
8282 cat conftest.err >&5 | |
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8284 (exit $ac_status); } && | |
8285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8287 (eval $ac_try) 2>&5 | |
8288 ac_status=$? | |
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8290 (exit $ac_status); }; } && | |
8291 { ac_try='test -s conftest$ac_exeext' | |
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8293 (eval $ac_try) 2>&5 | |
8294 ac_status=$? | |
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8296 (exit $ac_status); }; }; then | |
8297 ac_cv_func_shl_load=yes | |
8298 else | |
8299 echo "$as_me: failed program was:" >&5 | |
8300 sed 's/^/| /' conftest.$ac_ext >&5 | |
8301 | |
8302 ac_cv_func_shl_load=no | |
8303 fi | |
8304 rm -f conftest.err conftest.$ac_objext \ | |
8305 conftest$ac_exeext conftest.$ac_ext | |
8306 fi | |
8307 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
8308 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
8309 if test $ac_cv_func_shl_load = yes; then | |
8310 lt_cv_dlopen="shl_load" | |
8311 else | |
8312 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
8313 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
8314 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
8315 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8316 else | |
8317 ac_check_lib_save_LIBS=$LIBS | |
8318 LIBS="-ldld $LIBS" | |
8319 cat >conftest.$ac_ext <<_ACEOF | |
8320 /* confdefs.h. */ | |
8321 _ACEOF | |
8322 cat confdefs.h >>conftest.$ac_ext | |
8323 cat >>conftest.$ac_ext <<_ACEOF | |
8324 /* end confdefs.h. */ | |
8325 | |
8326 /* Override any gcc2 internal prototype to avoid an error. */ | |
8327 #ifdef __cplusplus | |
8328 extern "C" | |
8329 #endif | |
8330 /* We use char because int might match the return type of a gcc2 | |
8331 builtin and then its argument prototype would still apply. */ | |
8332 char shl_load (); | |
8333 int | |
8334 main () | |
8335 { | |
8336 shl_load (); | |
8337 ; | |
8338 return 0; | |
8339 } | |
8340 _ACEOF | |
8341 rm -f conftest.$ac_objext conftest$ac_exeext | |
8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8343 (eval $ac_link) 2>conftest.er1 | |
8344 ac_status=$? | |
8345 grep -v '^ *+' conftest.er1 >conftest.err | |
8346 rm -f conftest.er1 | |
8347 cat conftest.err >&5 | |
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8349 (exit $ac_status); } && | |
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8352 (eval $ac_try) 2>&5 | |
8353 ac_status=$? | |
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8355 (exit $ac_status); }; } && | |
8356 { ac_try='test -s conftest$ac_exeext' | |
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8358 (eval $ac_try) 2>&5 | |
8359 ac_status=$? | |
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8361 (exit $ac_status); }; }; then | |
8362 ac_cv_lib_dld_shl_load=yes | |
8363 else | |
8364 echo "$as_me: failed program was:" >&5 | |
8365 sed 's/^/| /' conftest.$ac_ext >&5 | |
8366 | |
8367 ac_cv_lib_dld_shl_load=no | |
8368 fi | |
8369 rm -f conftest.err conftest.$ac_objext \ | |
8370 conftest$ac_exeext conftest.$ac_ext | |
8371 LIBS=$ac_check_lib_save_LIBS | |
8372 fi | |
8373 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
8374 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
8375 if test $ac_cv_lib_dld_shl_load = yes; then | |
8376 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
8377 else | |
8378 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
8379 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
8380 if test "${ac_cv_func_dlopen+set}" = set; then | |
8381 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8382 else | |
8383 cat >conftest.$ac_ext <<_ACEOF | |
8384 /* confdefs.h. */ | |
8385 _ACEOF | |
8386 cat confdefs.h >>conftest.$ac_ext | |
8387 cat >>conftest.$ac_ext <<_ACEOF | |
8388 /* end confdefs.h. */ | |
8389 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
8390 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8391 #define dlopen innocuous_dlopen | |
8392 | |
8393 /* System header to define __stub macros and hopefully few prototypes, | |
8394 which can conflict with char dlopen (); below. | |
8395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8396 <limits.h> exists even on freestanding compilers. */ | |
8397 | |
8398 #ifdef __STDC__ | |
8399 # include <limits.h> | |
8400 #else | |
8401 # include <assert.h> | |
8402 #endif | |
8403 | |
8404 #undef dlopen | |
8405 | |
8406 /* Override any gcc2 internal prototype to avoid an error. */ | |
8407 #ifdef __cplusplus | |
8408 extern "C" | |
8409 { | |
8410 #endif | |
8411 /* We use char because int might match the return type of a gcc2 | |
8412 builtin and then its argument prototype would still apply. */ | |
8413 char dlopen (); | |
8414 /* The GNU C library defines this for functions which it implements | |
8415 to always fail with ENOSYS. Some functions are actually named | |
8416 something starting with __ and the normal name is an alias. */ | |
8417 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
8418 choke me | |
8419 #else | |
8420 char (*f) () = dlopen; | |
8421 #endif | |
8422 #ifdef __cplusplus | |
8423 } | |
8424 #endif | |
8425 | |
8426 int | |
8427 main () | |
8428 { | |
8429 return f != dlopen; | |
8430 ; | |
8431 return 0; | |
8432 } | |
8433 _ACEOF | |
8434 rm -f conftest.$ac_objext conftest$ac_exeext | |
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8436 (eval $ac_link) 2>conftest.er1 | |
8437 ac_status=$? | |
8438 grep -v '^ *+' conftest.er1 >conftest.err | |
8439 rm -f conftest.er1 | |
8440 cat conftest.err >&5 | |
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8442 (exit $ac_status); } && | |
8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8445 (eval $ac_try) 2>&5 | |
8446 ac_status=$? | |
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8448 (exit $ac_status); }; } && | |
8449 { ac_try='test -s conftest$ac_exeext' | |
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8451 (eval $ac_try) 2>&5 | |
8452 ac_status=$? | |
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8454 (exit $ac_status); }; }; then | |
8455 ac_cv_func_dlopen=yes | |
8456 else | |
8457 echo "$as_me: failed program was:" >&5 | |
8458 sed 's/^/| /' conftest.$ac_ext >&5 | |
8459 | |
8460 ac_cv_func_dlopen=no | |
8461 fi | |
8462 rm -f conftest.err conftest.$ac_objext \ | |
8463 conftest$ac_exeext conftest.$ac_ext | |
8464 fi | |
8465 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
8466 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
8467 if test $ac_cv_func_dlopen = yes; then | |
8468 lt_cv_dlopen="dlopen" | |
8469 else | |
8470 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8471 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8472 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8473 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8474 else | |
8475 ac_check_lib_save_LIBS=$LIBS | |
8476 LIBS="-ldl $LIBS" | |
8477 cat >conftest.$ac_ext <<_ACEOF | |
8478 /* confdefs.h. */ | |
8479 _ACEOF | |
8480 cat confdefs.h >>conftest.$ac_ext | |
8481 cat >>conftest.$ac_ext <<_ACEOF | |
8482 /* end confdefs.h. */ | |
8483 | |
8484 /* Override any gcc2 internal prototype to avoid an error. */ | |
8485 #ifdef __cplusplus | |
8486 extern "C" | |
8487 #endif | |
8488 /* We use char because int might match the return type of a gcc2 | |
8489 builtin and then its argument prototype would still apply. */ | |
8490 char dlopen (); | |
8491 int | |
8492 main () | |
8493 { | |
8494 dlopen (); | |
8495 ; | |
8496 return 0; | |
8497 } | |
8498 _ACEOF | |
8499 rm -f conftest.$ac_objext conftest$ac_exeext | |
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8501 (eval $ac_link) 2>conftest.er1 | |
8502 ac_status=$? | |
8503 grep -v '^ *+' conftest.er1 >conftest.err | |
8504 rm -f conftest.er1 | |
8505 cat conftest.err >&5 | |
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8507 (exit $ac_status); } && | |
8508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8510 (eval $ac_try) 2>&5 | |
8511 ac_status=$? | |
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8513 (exit $ac_status); }; } && | |
8514 { ac_try='test -s conftest$ac_exeext' | |
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8516 (eval $ac_try) 2>&5 | |
8517 ac_status=$? | |
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8519 (exit $ac_status); }; }; then | |
8520 ac_cv_lib_dl_dlopen=yes | |
8521 else | |
8522 echo "$as_me: failed program was:" >&5 | |
8523 sed 's/^/| /' conftest.$ac_ext >&5 | |
8524 | |
8525 ac_cv_lib_dl_dlopen=no | |
8526 fi | |
8527 rm -f conftest.err conftest.$ac_objext \ | |
8528 conftest$ac_exeext conftest.$ac_ext | |
8529 LIBS=$ac_check_lib_save_LIBS | |
8530 fi | |
8531 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8532 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8533 if test $ac_cv_lib_dl_dlopen = yes; then | |
8534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8535 else | |
8536 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
8537 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
8538 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
8539 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8540 else | |
8541 ac_check_lib_save_LIBS=$LIBS | |
8542 LIBS="-lsvld $LIBS" | |
8543 cat >conftest.$ac_ext <<_ACEOF | |
8544 /* confdefs.h. */ | |
8545 _ACEOF | |
8546 cat confdefs.h >>conftest.$ac_ext | |
8547 cat >>conftest.$ac_ext <<_ACEOF | |
8548 /* end confdefs.h. */ | |
8549 | |
8550 /* Override any gcc2 internal prototype to avoid an error. */ | |
8551 #ifdef __cplusplus | |
8552 extern "C" | |
8553 #endif | |
8554 /* We use char because int might match the return type of a gcc2 | |
8555 builtin and then its argument prototype would still apply. */ | |
8556 char dlopen (); | |
8557 int | |
8558 main () | |
8559 { | |
8560 dlopen (); | |
8561 ; | |
8562 return 0; | |
8563 } | |
8564 _ACEOF | |
8565 rm -f conftest.$ac_objext conftest$ac_exeext | |
8566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8567 (eval $ac_link) 2>conftest.er1 | |
8568 ac_status=$? | |
8569 grep -v '^ *+' conftest.er1 >conftest.err | |
8570 rm -f conftest.er1 | |
8571 cat conftest.err >&5 | |
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8573 (exit $ac_status); } && | |
8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8576 (eval $ac_try) 2>&5 | |
8577 ac_status=$? | |
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8579 (exit $ac_status); }; } && | |
8580 { ac_try='test -s conftest$ac_exeext' | |
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8582 (eval $ac_try) 2>&5 | |
8583 ac_status=$? | |
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8585 (exit $ac_status); }; }; then | |
8586 ac_cv_lib_svld_dlopen=yes | |
8587 else | |
8588 echo "$as_me: failed program was:" >&5 | |
8589 sed 's/^/| /' conftest.$ac_ext >&5 | |
8590 | |
8591 ac_cv_lib_svld_dlopen=no | |
8592 fi | |
8593 rm -f conftest.err conftest.$ac_objext \ | |
8594 conftest$ac_exeext conftest.$ac_ext | |
8595 LIBS=$ac_check_lib_save_LIBS | |
8596 fi | |
8597 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
8598 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
8599 if test $ac_cv_lib_svld_dlopen = yes; then | |
8600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
8601 else | |
8602 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
8603 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
8604 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
8605 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8606 else | |
8607 ac_check_lib_save_LIBS=$LIBS | |
8608 LIBS="-ldld $LIBS" | |
8609 cat >conftest.$ac_ext <<_ACEOF | |
8610 /* confdefs.h. */ | |
8611 _ACEOF | |
8612 cat confdefs.h >>conftest.$ac_ext | |
8613 cat >>conftest.$ac_ext <<_ACEOF | |
8614 /* end confdefs.h. */ | |
8615 | |
8616 /* Override any gcc2 internal prototype to avoid an error. */ | |
8617 #ifdef __cplusplus | |
8618 extern "C" | |
8619 #endif | |
8620 /* We use char because int might match the return type of a gcc2 | |
8621 builtin and then its argument prototype would still apply. */ | |
8622 char dld_link (); | |
8623 int | |
8624 main () | |
8625 { | |
8626 dld_link (); | |
8627 ; | |
8628 return 0; | |
8629 } | |
8630 _ACEOF | |
8631 rm -f conftest.$ac_objext conftest$ac_exeext | |
8632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8633 (eval $ac_link) 2>conftest.er1 | |
8634 ac_status=$? | |
8635 grep -v '^ *+' conftest.er1 >conftest.err | |
8636 rm -f conftest.er1 | |
8637 cat conftest.err >&5 | |
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8639 (exit $ac_status); } && | |
8640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8642 (eval $ac_try) 2>&5 | |
8643 ac_status=$? | |
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8645 (exit $ac_status); }; } && | |
8646 { ac_try='test -s conftest$ac_exeext' | |
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8648 (eval $ac_try) 2>&5 | |
8649 ac_status=$? | |
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8651 (exit $ac_status); }; }; then | |
8652 ac_cv_lib_dld_dld_link=yes | |
8653 else | |
8654 echo "$as_me: failed program was:" >&5 | |
8655 sed 's/^/| /' conftest.$ac_ext >&5 | |
8656 | |
8657 ac_cv_lib_dld_dld_link=no | |
8658 fi | |
8659 rm -f conftest.err conftest.$ac_objext \ | |
8660 conftest$ac_exeext conftest.$ac_ext | |
8661 LIBS=$ac_check_lib_save_LIBS | |
8662 fi | |
8663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
8664 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
8665 if test $ac_cv_lib_dld_dld_link = yes; then | |
8666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
8667 fi | |
8668 | |
8669 | |
8670 fi | |
8671 | |
8672 | |
8673 fi | |
8674 | |
8675 | |
8676 fi | |
8677 | |
8678 | |
8679 fi | |
8680 | |
8681 | |
8682 fi | |
8683 | |
8684 ;; | |
8685 esac | |
8686 | |
8687 if test "x$lt_cv_dlopen" != xno; then | |
8688 enable_dlopen=yes | |
8689 else | |
8690 enable_dlopen=no | |
8691 fi | |
8692 | |
8693 case $lt_cv_dlopen in | |
8694 dlopen) | |
8695 save_CPPFLAGS="$CPPFLAGS" | |
8696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
8697 | |
8698 save_LDFLAGS="$LDFLAGS" | |
8699 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
8700 | |
8701 save_LIBS="$LIBS" | |
8702 LIBS="$lt_cv_dlopen_libs $LIBS" | |
8703 | |
8704 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
8705 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
8706 if test "${lt_cv_dlopen_self+set}" = set; then | |
8707 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8708 else | |
8709 if test "$cross_compiling" = yes; then : | |
8710 lt_cv_dlopen_self=cross | |
8711 else | |
8712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8713 lt_status=$lt_dlunknown | |
8714 cat > conftest.$ac_ext <<EOF | |
8715 #line 8715 "configure" | |
8716 #include "confdefs.h" | |
8717 | |
8718 #if HAVE_DLFCN_H | |
8719 #include <dlfcn.h> | |
8720 #endif | |
8721 | |
8722 #include <stdio.h> | |
8723 | |
8724 #ifdef RTLD_GLOBAL | |
8725 # define LT_DLGLOBAL RTLD_GLOBAL | |
8726 #else | |
8727 # ifdef DL_GLOBAL | |
8728 # define LT_DLGLOBAL DL_GLOBAL | |
8729 # else | |
8730 # define LT_DLGLOBAL 0 | |
8731 # endif | |
8732 #endif | |
8733 | |
8734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8735 find out it does not work in some platform. */ | |
8736 #ifndef LT_DLLAZY_OR_NOW | |
8737 # ifdef RTLD_LAZY | |
8738 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8739 # else | |
8740 # ifdef DL_LAZY | |
8741 # define LT_DLLAZY_OR_NOW DL_LAZY | |
8742 # else | |
8743 # ifdef RTLD_NOW | |
8744 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8745 # else | |
8746 # ifdef DL_NOW | |
8747 # define LT_DLLAZY_OR_NOW DL_NOW | |
8748 # else | |
8749 # define LT_DLLAZY_OR_NOW 0 | |
8750 # endif | |
8751 # endif | |
8752 # endif | |
8753 # endif | |
8754 #endif | |
8755 | |
8756 #ifdef __cplusplus | |
8757 extern "C" void exit (int); | |
8758 #endif | |
8759 | |
8760 void fnord() { int i=42;} | |
8761 int main () | |
8762 { | |
8763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8764 int status = $lt_dlunknown; | |
8765 | |
8766 if (self) | |
8767 { | |
8768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8770 /* dlclose (self); */ | |
8771 } | |
8772 | |
8773 exit (status); | |
8774 } | |
8775 EOF | |
8776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8777 (eval $ac_link) 2>&5 | |
8778 ac_status=$? | |
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8781 (./conftest; exit; ) 2>/dev/null | |
8782 lt_status=$? | |
8783 case x$lt_status in | |
8784 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
8785 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
8786 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
8787 esac | |
8788 else : | |
8789 # compilation failed | |
8790 lt_cv_dlopen_self=no | |
8791 fi | |
8792 fi | |
8793 rm -fr conftest* | |
8794 | |
8795 | |
8796 fi | |
8797 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
8798 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
8799 | |
8800 if test "x$lt_cv_dlopen_self" = xyes; then | |
8801 LDFLAGS="$LDFLAGS $link_static_flag" | |
8802 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
8803 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
8804 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
8805 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8806 else | |
8807 if test "$cross_compiling" = yes; then : | |
8808 lt_cv_dlopen_self_static=cross | |
8809 else | |
8810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8811 lt_status=$lt_dlunknown | |
8812 cat > conftest.$ac_ext <<EOF | |
8813 #line 8813 "configure" | |
8814 #include "confdefs.h" | |
8815 | |
8816 #if HAVE_DLFCN_H | |
8817 #include <dlfcn.h> | |
8818 #endif | |
8819 | |
8820 #include <stdio.h> | |
8821 | |
8822 #ifdef RTLD_GLOBAL | |
8823 # define LT_DLGLOBAL RTLD_GLOBAL | |
8824 #else | |
8825 # ifdef DL_GLOBAL | |
8826 # define LT_DLGLOBAL DL_GLOBAL | |
8827 # else | |
8828 # define LT_DLGLOBAL 0 | |
8829 # endif | |
8830 #endif | |
8831 | |
8832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8833 find out it does not work in some platform. */ | |
8834 #ifndef LT_DLLAZY_OR_NOW | |
8835 # ifdef RTLD_LAZY | |
8836 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8837 # else | |
8838 # ifdef DL_LAZY | |
8839 # define LT_DLLAZY_OR_NOW DL_LAZY | |
8840 # else | |
8841 # ifdef RTLD_NOW | |
8842 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8843 # else | |
8844 # ifdef DL_NOW | |
8845 # define LT_DLLAZY_OR_NOW DL_NOW | |
8846 # else | |
8847 # define LT_DLLAZY_OR_NOW 0 | |
8848 # endif | |
8849 # endif | |
8850 # endif | |
8851 # endif | |
8852 #endif | |
8853 | |
8854 #ifdef __cplusplus | |
8855 extern "C" void exit (int); | |
8856 #endif | |
8857 | |
8858 void fnord() { int i=42;} | |
8859 int main () | |
8860 { | |
8861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8862 int status = $lt_dlunknown; | |
8863 | |
8864 if (self) | |
8865 { | |
8866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8868 /* dlclose (self); */ | |
8869 } | |
8870 | |
8871 exit (status); | |
8872 } | |
8873 EOF | |
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8875 (eval $ac_link) 2>&5 | |
8876 ac_status=$? | |
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8879 (./conftest; exit; ) 2>/dev/null | |
8880 lt_status=$? | |
8881 case x$lt_status in | |
8882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
8883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
8884 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
8885 esac | |
8886 else : | |
8887 # compilation failed | |
8888 lt_cv_dlopen_self_static=no | |
8889 fi | |
8890 fi | |
8891 rm -fr conftest* | |
8892 | |
8893 | |
8894 fi | |
8895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
8896 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
8897 fi | |
8898 | |
8899 CPPFLAGS="$save_CPPFLAGS" | |
8900 LDFLAGS="$save_LDFLAGS" | |
8901 LIBS="$save_LIBS" | |
8902 ;; | |
8903 esac | |
8904 | |
8905 case $lt_cv_dlopen_self in | |
8906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
8907 *) enable_dlopen_self=unknown ;; | |
8908 esac | |
8909 | |
8910 case $lt_cv_dlopen_self_static in | |
8911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
8912 *) enable_dlopen_self_static=unknown ;; | |
8913 esac | |
8914 fi | |
8915 | |
8916 | |
8917 # Report which librarie types wil actually be built | |
8918 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
8919 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
8920 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
8921 echo "${ECHO_T}$can_build_shared" >&6 | |
8922 | |
8923 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
8924 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
8925 test "$can_build_shared" = "no" && enable_shared=no | |
8926 | |
8927 # On AIX, shared libraries and static libraries use the same namespace, and | |
8928 # are all built from PIC. | |
8929 case "$host_os" in | |
8930 aix3*) | |
8931 test "$enable_shared" = yes && enable_static=no | |
8932 if test -n "$RANLIB"; then | |
8933 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
8934 postinstall_cmds='$RANLIB $lib' | |
8935 fi | |
8936 ;; | |
8937 | |
8938 aix4*) | |
8939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
8940 test "$enable_shared" = yes && enable_static=no | |
8941 fi | |
8942 ;; | |
8943 darwin* | rhapsody*) | |
8944 if test "$GCC" = yes; then | |
8945 archive_cmds_need_lc=no | |
8946 case "$host_os" in | |
8947 rhapsody* | darwin1.[012]) | |
8948 allow_undefined_flag='-undefined suppress' | |
8949 ;; | |
8950 *) # Darwin 1.3 on | |
8951 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
8952 allow_undefined_flag='-flat_namespace -undefined suppress' | |
8953 else | |
8954 case ${MACOSX_DEPLOYMENT_TARGET} in | |
8955 10.[012]) | |
8956 allow_undefined_flag='-flat_namespace -undefined suppress' | |
8957 ;; | |
8958 10.*) | |
8959 allow_undefined_flag='-undefined dynamic_lookup' | |
8960 ;; | |
8961 esac | |
8962 fi | |
8963 ;; | |
8964 esac | |
8965 output_verbose_link_cmd='echo' | |
8966 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | |
8967 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8968 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
8969 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}' | |
8970 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}' | |
8971 hardcode_direct=no | |
8972 hardcode_automatic=yes | |
8973 hardcode_shlibpath_var=unsupported | |
8974 whole_archive_flag_spec='-all_load $convenience' | |
8975 link_all_deplibs=yes | |
8976 else | |
8977 ld_shlibs=no | |
8978 fi | |
8979 ;; | |
8980 esac | |
8981 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
8982 echo "${ECHO_T}$enable_shared" >&6 | |
8983 | |
8984 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
8985 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
8986 # Make sure either enable_shared or enable_static is yes. | |
8987 test "$enable_shared" = yes || enable_static=yes | |
8988 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
8989 echo "${ECHO_T}$enable_static" >&6 | |
8990 | |
8991 # The else clause should only fire when bootstrapping the | |
8992 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
8993 # with your package, and you will get complaints that there are | |
8994 # no rules to generate ltmain.sh. | |
8995 if test -f "$ltmain"; then | |
8996 # See if we are running on zsh, and set the options which allow our commands through | |
8997 # without removal of \ escapes. | |
8998 if test -n "${ZSH_VERSION+set}" ; then | |
8999 setopt NO_GLOB_SUBST | |
9000 fi | |
9001 # Now quote all the things that may contain metacharacters while being | |
9002 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
9003 # variables and quote the copies for generation of the libtool script. | |
9004 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
9005 SED SHELL STRIP \ | |
9006 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
9007 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
9008 deplibs_check_method reload_flag reload_cmds need_locks \ | |
9009 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
9010 lt_cv_sys_global_symbol_to_c_name_address \ | |
9011 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
9012 old_postinstall_cmds old_postuninstall_cmds \ | |
9013 compiler \ | |
9014 CC \ | |
9015 LD \ | |
9016 lt_prog_compiler_wl \ | |
9017 lt_prog_compiler_pic \ | |
9018 lt_prog_compiler_static \ | |
9019 lt_prog_compiler_no_builtin_flag \ | |
9020 export_dynamic_flag_spec \ | |
9021 thread_safe_flag_spec \ | |
9022 whole_archive_flag_spec \ | |
9023 enable_shared_with_static_runtimes \ | |
9024 old_archive_cmds \ | |
9025 old_archive_from_new_cmds \ | |
9026 predep_objects \ | |
9027 postdep_objects \ | |
9028 predeps \ | |
9029 postdeps \ | |
9030 compiler_lib_search_path \ | |
9031 archive_cmds \ | |
9032 archive_expsym_cmds \ | |
9033 postinstall_cmds \ | |
9034 postuninstall_cmds \ | |
9035 old_archive_from_expsyms_cmds \ | |
9036 allow_undefined_flag \ | |
9037 no_undefined_flag \ | |
9038 export_symbols_cmds \ | |
9039 hardcode_libdir_flag_spec \ | |
9040 hardcode_libdir_flag_spec_ld \ | |
9041 hardcode_libdir_separator \ | |
9042 hardcode_automatic \ | |
9043 module_cmds \ | |
9044 module_expsym_cmds \ | |
9045 lt_cv_prog_compiler_c_o \ | |
9046 exclude_expsyms \ | |
9047 include_expsyms; do | |
9048 | |
9049 case $var in | |
9050 old_archive_cmds | \ | |
9051 old_archive_from_new_cmds | \ | |
9052 archive_cmds | \ | |
9053 archive_expsym_cmds | \ | |
9054 module_cmds | \ | |
9055 module_expsym_cmds | \ | |
9056 old_archive_from_expsyms_cmds | \ | |
9057 export_symbols_cmds | \ | |
9058 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
9059 postinstall_cmds | postuninstall_cmds | \ | |
9060 old_postinstall_cmds | old_postuninstall_cmds | \ | |
9061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
9062 # Double-quote double-evaled strings. | |
9063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
9064 ;; | |
9065 *) | |
9066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
9067 ;; | |
9068 esac | |
9069 done | |
9070 | |
9071 case $lt_echo in | |
9072 *'\$0 --fallback-echo"') | |
9073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
9074 ;; | |
9075 esac | |
9076 | |
9077 cfgfile="${ofile}T" | |
9078 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
9079 $rm -f "$cfgfile" | |
9080 { echo "$as_me:$LINENO: creating $ofile" >&5 | |
9081 echo "$as_me: creating $ofile" >&6;} | |
9082 | |
9083 cat <<__EOF__ >> "$cfgfile" | |
9084 #! $SHELL | |
9085 | |
9086 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
9087 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
9088 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9089 # | |
9090 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
9091 # Free Software Foundation, Inc. | |
9092 # | |
9093 # This file is part of GNU Libtool: | |
9094 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
9095 # | |
9096 # This program is free software; you can redistribute it and/or modify | |
9097 # it under the terms of the GNU General Public License as published by | |
9098 # the Free Software Foundation; either version 2 of the License, or | |
9099 # (at your option) any later version. | |
9100 # | |
9101 # This program is distributed in the hope that it will be useful, but | |
9102 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9103 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9104 # General Public License for more details. | |
9105 # | |
9106 # You should have received a copy of the GNU General Public License | |
9107 # along with this program; if not, write to the Free Software | |
9108 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
9109 # | |
9110 # As a special exception to the GNU General Public License, if you | |
9111 # distribute this file as part of a program that contains a | |
9112 # configuration script generated by Autoconf, you may include it under | |
9113 # the same distribution terms that you use for the rest of that program. | |
9114 | |
9115 # A sed program that does not truncate output. | |
9116 SED=$lt_SED | |
9117 | |
9118 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
9119 Xsed="$SED -e s/^X//" | |
9120 | |
9121 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
9122 # if CDPATH is set. | |
9123 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
9124 | |
9125 # The names of the tagged configurations supported by this script. | |
9126 available_tags= | |
9127 | |
9128 # ### BEGIN LIBTOOL CONFIG | |
9129 | |
9130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9131 | |
9132 # Shell to use when invoking shell scripts. | |
9133 SHELL=$lt_SHELL | |
9134 | |
9135 # Whether or not to build shared libraries. | |
9136 build_libtool_libs=$enable_shared | |
9137 | |
9138 # Whether or not to build static libraries. | |
9139 build_old_libs=$enable_static | |
9140 | |
9141 # Whether or not to add -lc for building shared libraries. | |
9142 build_libtool_need_lc=$archive_cmds_need_lc | |
9143 | |
9144 # Whether or not to disallow shared libs when runtime libs are static | |
9145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
9146 | |
9147 # Whether or not to optimize for fast installation. | |
9148 fast_install=$enable_fast_install | |
9149 | |
9150 # The host system. | |
9151 host_alias=$host_alias | |
9152 host=$host | |
9153 | |
9154 # An echo program that does not interpret backslashes. | |
9155 echo=$lt_echo | |
9156 | |
9157 # The archiver. | |
9158 AR=$lt_AR | |
9159 AR_FLAGS=$lt_AR_FLAGS | |
9160 | |
9161 # A C compiler. | |
9162 LTCC=$lt_LTCC | |
9163 | |
9164 # A language-specific compiler. | |
9165 CC=$lt_compiler | |
9166 | |
9167 # Is the compiler the GNU C compiler? | |
9168 with_gcc=$GCC | |
9169 | |
9170 # An ERE matcher. | |
9171 EGREP=$lt_EGREP | |
9172 | |
9173 # The linker used to build libraries. | |
9174 LD=$lt_LD | |
9175 | |
9176 # Whether we need hard or soft links. | |
9177 LN_S=$lt_LN_S | |
9178 | |
9179 # A BSD-compatible nm program. | |
9180 NM=$lt_NM | |
9181 | |
9182 # A symbol stripping program | |
9183 STRIP=$lt_STRIP | |
9184 | |
9185 # Used to examine libraries when file_magic_cmd begins "file" | |
9186 MAGIC_CMD=$MAGIC_CMD | |
9187 | |
9188 # Used on cygwin: DLL creation program. | |
9189 DLLTOOL="$DLLTOOL" | |
9190 | |
9191 # Used on cygwin: object dumper. | |
9192 OBJDUMP="$OBJDUMP" | |
9193 | |
9194 # Used on cygwin: assembler. | |
9195 AS="$AS" | |
9196 | |
9197 # The name of the directory that contains temporary libtool files. | |
9198 objdir=$objdir | |
9199 | |
9200 # How to create reloadable object files. | |
9201 reload_flag=$lt_reload_flag | |
9202 reload_cmds=$lt_reload_cmds | |
9203 | |
9204 # How to pass a linker flag through the compiler. | |
9205 wl=$lt_lt_prog_compiler_wl | |
9206 | |
9207 # Object file suffix (normally "o"). | |
9208 objext="$ac_objext" | |
9209 | |
9210 # Old archive suffix (normally "a"). | |
9211 libext="$libext" | |
9212 | |
9213 # Shared library suffix (normally ".so"). | |
9214 shrext='$shrext' | |
9215 | |
9216 # Executable file suffix (normally ""). | |
9217 exeext="$exeext" | |
9218 | |
9219 # Additional compiler flags for building library objects. | |
9220 pic_flag=$lt_lt_prog_compiler_pic | |
9221 pic_mode=$pic_mode | |
9222 | |
9223 # What is the maximum length of a command? | |
9224 max_cmd_len=$lt_cv_sys_max_cmd_len | |
9225 | |
9226 # Does compiler simultaneously support -c and -o options? | |
9227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
9228 | |
9229 # Must we lock files when doing compilation ? | |
9230 need_locks=$lt_need_locks | |
9231 | |
9232 # Do we need the lib prefix for modules? | |
9233 need_lib_prefix=$need_lib_prefix | |
9234 | |
9235 # Do we need a version for libraries? | |
9236 need_version=$need_version | |
9237 | |
9238 # Whether dlopen is supported. | |
9239 dlopen_support=$enable_dlopen | |
9240 | |
9241 # Whether dlopen of programs is supported. | |
9242 dlopen_self=$enable_dlopen_self | |
9243 | |
9244 # Whether dlopen of statically linked programs is supported. | |
9245 dlopen_self_static=$enable_dlopen_self_static | |
9246 | |
9247 # Compiler flag to prevent dynamic linking. | |
9248 link_static_flag=$lt_lt_prog_compiler_static | |
9249 | |
9250 # Compiler flag to turn off builtin functions. | |
9251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
9252 | |
9253 # Compiler flag to allow reflexive dlopens. | |
9254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
9255 | |
9256 # Compiler flag to generate shared objects directly from archives. | |
9257 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
9258 | |
9259 # Compiler flag to generate thread-safe objects. | |
9260 thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
9261 | |
9262 # Library versioning type. | |
9263 version_type=$version_type | |
9264 | |
9265 # Format of library name prefix. | |
9266 libname_spec=$lt_libname_spec | |
9267 | |
9268 # List of archive names. First name is the real one, the rest are links. | |
9269 # The last name is the one that the linker finds with -lNAME. | |
9270 library_names_spec=$lt_library_names_spec | |
9271 | |
9272 # The coded name of the library, if different from the real name. | |
9273 soname_spec=$lt_soname_spec | |
9274 | |
9275 # Commands used to build and install an old-style archive. | |
9276 RANLIB=$lt_RANLIB | |
9277 old_archive_cmds=$lt_old_archive_cmds | |
9278 old_postinstall_cmds=$lt_old_postinstall_cmds | |
9279 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
9280 | |
9281 # Create an old-style archive from a shared archive. | |
9282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
9283 | |
9284 # Create a temporary old-style archive to link instead of a shared archive. | |
9285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
9286 | |
9287 # Commands used to build and install a shared archive. | |
9288 archive_cmds=$lt_archive_cmds | |
9289 archive_expsym_cmds=$lt_archive_expsym_cmds | |
9290 postinstall_cmds=$lt_postinstall_cmds | |
9291 postuninstall_cmds=$lt_postuninstall_cmds | |
9292 | |
9293 # Commands used to build a loadable module (assumed same as above if empty) | |
9294 module_cmds=$lt_module_cmds | |
9295 module_expsym_cmds=$lt_module_expsym_cmds | |
9296 | |
9297 # Commands to strip libraries. | |
9298 old_striplib=$lt_old_striplib | |
9299 striplib=$lt_striplib | |
9300 | |
9301 # Dependencies to place before the objects being linked to create a | |
9302 # shared library. | |
9303 predep_objects=$lt_predep_objects | |
9304 | |
9305 # Dependencies to place after the objects being linked to create a | |
9306 # shared library. | |
9307 postdep_objects=$lt_postdep_objects | |
9308 | |
9309 # Dependencies to place before the objects being linked to create a | |
9310 # shared library. | |
9311 predeps=$lt_predeps | |
9312 | |
9313 # Dependencies to place after the objects being linked to create a | |
9314 # shared library. | |
9315 postdeps=$lt_postdeps | |
9316 | |
9317 # The library search path used internally by the compiler when linking | |
9318 # a shared library. | |
9319 compiler_lib_search_path=$lt_compiler_lib_search_path | |
9320 | |
9321 # Method to check whether dependent libraries are shared objects. | |
9322 deplibs_check_method=$lt_deplibs_check_method | |
9323 | |
9324 # Command to use when deplibs_check_method == file_magic. | |
9325 file_magic_cmd=$lt_file_magic_cmd | |
9326 | |
9327 # Flag that allows shared libraries with undefined symbols to be built. | |
9328 allow_undefined_flag=$lt_allow_undefined_flag | |
9329 | |
9330 # Flag that forces no undefined symbols. | |
9331 no_undefined_flag=$lt_no_undefined_flag | |
9332 | |
9333 # Commands used to finish a libtool library installation in a directory. | |
9334 finish_cmds=$lt_finish_cmds | |
9335 | |
9336 # Same as above, but a single script fragment to be evaled but not shown. | |
9337 finish_eval=$lt_finish_eval | |
9338 | |
9339 # Take the output of nm and produce a listing of raw symbols and C names. | |
9340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
9341 | |
9342 # Transform the output of nm in a proper C declaration | |
9343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
9344 | |
9345 # Transform the output of nm in a C name address pair | |
9346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
9347 | |
9348 # This is the shared library runtime path variable. | |
9349 runpath_var=$runpath_var | |
9350 | |
9351 # This is the shared library path variable. | |
9352 shlibpath_var=$shlibpath_var | |
9353 | |
9354 # Is shlibpath searched before the hard-coded library search path? | |
9355 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
9356 | |
9357 # How to hardcode a shared library path into an executable. | |
9358 hardcode_action=$hardcode_action | |
9359 | |
9360 # Whether we should hardcode library paths into libraries. | |
9361 hardcode_into_libs=$hardcode_into_libs | |
9362 | |
9363 # Flag to hardcode \$libdir into a binary during linking. | |
9364 # This must work even if \$libdir does not exist. | |
9365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
9366 | |
9367 # If ld is used when linking, flag to hardcode \$libdir into | |
9368 # a binary during linking. This must work even if \$libdir does | |
9369 # not exist. | |
9370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
9371 | |
9372 # Whether we need a single -rpath flag with a separated argument. | |
9373 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
9374 | |
9375 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
9376 # resulting binary. | |
9377 hardcode_direct=$hardcode_direct | |
9378 | |
9379 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
9380 # resulting binary. | |
9381 hardcode_minus_L=$hardcode_minus_L | |
9382 | |
9383 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
9384 # the resulting binary. | |
9385 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
9386 | |
9387 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
9388 # and all subsequent libraries and executables linked against it. | |
9389 hardcode_automatic=$hardcode_automatic | |
9390 | |
9391 # Variables whose values should be saved in libtool wrapper scripts and | |
9392 # restored at relink time. | |
9393 variables_saved_for_relink="$variables_saved_for_relink" | |
9394 | |
9395 # Whether libtool must link a program against all its dependency libraries. | |
9396 link_all_deplibs=$link_all_deplibs | |
9397 | |
9398 # Compile-time system search path for libraries | |
9399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
9400 | |
9401 # Run-time system search path for libraries | |
9402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
9403 | |
9404 # Fix the shell variable \$srcfile for the compiler. | |
9405 fix_srcfile_path="$fix_srcfile_path" | |
9406 | |
9407 # Set to yes if exported symbols are required. | |
9408 always_export_symbols=$always_export_symbols | |
9409 | |
9410 # The commands to list exported symbols. | |
9411 export_symbols_cmds=$lt_export_symbols_cmds | |
9412 | |
9413 # The commands to extract the exported symbol list from a shared archive. | |
9414 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
9415 | |
9416 # Symbols that should not be listed in the preloaded symbols. | |
9417 exclude_expsyms=$lt_exclude_expsyms | |
9418 | |
9419 # Symbols that must always be exported. | |
9420 include_expsyms=$lt_include_expsyms | |
9421 | |
9422 # ### END LIBTOOL CONFIG | |
9423 | |
9424 __EOF__ | |
9425 | |
9426 | |
9427 case $host_os in | |
9428 aix3*) | |
9429 cat <<\EOF >> "$cfgfile" | |
9430 | |
9431 # AIX sometimes has problems with the GCC collect2 program. For some | |
9432 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9433 # vanish in a puff of smoke. | |
9434 if test "X${COLLECT_NAMES+set}" != Xset; then | |
9435 COLLECT_NAMES= | |
9436 export COLLECT_NAMES | |
9437 fi | |
9438 EOF | |
9439 ;; | |
9440 esac | |
9441 | |
9442 # We use sed instead of cat because bash on DJGPP gets confused if | |
9443 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
9444 # text mode, it properly converts lines to CR/LF. This bash problem | |
9445 # is reportedly fixed, but why not run on old versions too? | |
9446 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
9447 | |
9448 mv -f "$cfgfile" "$ofile" || \ | |
9449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
9450 chmod +x "$ofile" | |
9451 | |
9452 else | |
9453 # If there is no Makefile yet, we rely on a make rule to execute | |
9454 # `config.status --recheck' to rerun these tests and create the | |
9455 # libtool script then. | |
9456 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
9457 if test -f "$ltmain_in"; then | |
9458 test -f Makefile && make "$ltmain" | |
9459 fi | |
9460 fi | |
9461 | |
9462 | |
9463 ac_ext=c | |
9464 ac_cpp='$CPP $CPPFLAGS' | |
9465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9467 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9468 | |
9469 CC="$lt_save_CC" | |
9470 | |
9471 | |
9472 # Check whether --with-tags or --without-tags was given. | |
9473 if test "${with_tags+set}" = set; then | |
9474 withval="$with_tags" | |
9475 tagnames="$withval" | |
9476 fi; | |
9477 | |
9478 if test -f "$ltmain" && test -n "$tagnames"; then | |
9479 if test ! -f "${ofile}"; then | |
9480 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
9481 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
9482 fi | |
9483 | |
9484 if test -z "$LTCC"; then | |
9485 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
9486 if test -z "$LTCC"; then | |
9487 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
9488 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
9489 else | |
9490 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
9491 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
9492 fi | |
9493 fi | |
9494 | |
9495 # Extract list of available tagged configurations in $ofile. | |
9496 # Note that this assumes the entire list is on one line. | |
9497 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
9498 | |
9499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9500 for tagname in $tagnames; do | |
9501 IFS="$lt_save_ifs" | |
9502 # Check whether tagname contains only valid characters | |
9503 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
9504 "") ;; | |
9505 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
9506 echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
9507 { (exit 1); exit 1; }; } | |
9508 ;; | |
9509 esac | |
9510 | |
9511 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
9512 then | |
9513 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
9514 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
9515 { (exit 1); exit 1; }; } | |
9516 fi | |
9517 | |
9518 # Update the list of available tags. | |
9519 if test -n "$tagname"; then | |
9520 echo appending configuration tag \"$tagname\" to $ofile | |
9521 | |
9522 case $tagname in | |
9523 CXX) | |
9524 if test -n "$CXX" && test "X$CXX" != "Xno"; then | |
9525 ac_ext=cc | |
9526 ac_cpp='$CXXCPP $CPPFLAGS' | |
9527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9530 | |
9531 | |
9532 | |
9533 | |
9534 archive_cmds_need_lc_CXX=no | |
9535 allow_undefined_flag_CXX= | |
9536 always_export_symbols_CXX=no | |
9537 archive_expsym_cmds_CXX= | |
9538 export_dynamic_flag_spec_CXX= | |
9539 hardcode_direct_CXX=no | |
9540 hardcode_libdir_flag_spec_CXX= | |
9541 hardcode_libdir_flag_spec_ld_CXX= | |
9542 hardcode_libdir_separator_CXX= | |
9543 hardcode_minus_L_CXX=no | |
9544 hardcode_automatic_CXX=no | |
9545 module_cmds_CXX= | |
9546 module_expsym_cmds_CXX= | |
9547 link_all_deplibs_CXX=unknown | |
9548 old_archive_cmds_CXX=$old_archive_cmds | |
9549 no_undefined_flag_CXX= | |
9550 whole_archive_flag_spec_CXX= | |
9551 enable_shared_with_static_runtimes_CXX=no | |
9552 | |
9553 # Dependencies to place before and after the object being linked: | |
9554 predep_objects_CXX= | |
9555 postdep_objects_CXX= | |
9556 predeps_CXX= | |
9557 postdeps_CXX= | |
9558 compiler_lib_search_path_CXX= | |
9559 | |
9560 # Source file extension for C++ test sources. | |
9561 ac_ext=cc | |
9562 | |
9563 # Object file extension for compiled C++ test sources. | |
9564 objext=o | |
9565 objext_CXX=$objext | |
9566 | |
9567 # Code to be used in simple compile tests | |
9568 lt_simple_compile_test_code="int some_variable = 0;\n" | |
9569 | |
9570 # Code to be used in simple link tests | |
9571 lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | |
9572 | |
9573 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
9574 | |
9575 # If no C compiler was specified, use CC. | |
9576 LTCC=${LTCC-"$CC"} | |
9577 | |
9578 # Allow CC to be a program name with arguments. | |
9579 compiler=$CC | |
9580 | |
9581 | |
9582 # Allow CC to be a program name with arguments. | |
9583 lt_save_CC=$CC | |
9584 lt_save_LD=$LD | |
9585 lt_save_GCC=$GCC | |
9586 GCC=$GXX | |
9587 lt_save_with_gnu_ld=$with_gnu_ld | |
9588 lt_save_path_LD=$lt_cv_path_LD | |
9589 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
9590 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9591 else | |
9592 unset lt_cv_prog_gnu_ld | |
9593 fi | |
9594 if test -n "${lt_cv_path_LDCXX+set}"; then | |
9595 lt_cv_path_LD=$lt_cv_path_LDCXX | |
9596 else | |
9597 unset lt_cv_path_LD | |
9598 fi | |
9599 test -z "${LDCXX+set}" || LD=$LDCXX | |
9600 CC=${CXX-"c++"} | |
9601 compiler=$CC | |
9602 compiler_CXX=$CC | |
9603 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
9604 | |
9605 # We don't want -fno-exception wen compiling C++ code, so set the | |
9606 # no_builtin_flag separately | |
9607 if test "$GXX" = yes; then | |
9608 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
9609 else | |
9610 lt_prog_compiler_no_builtin_flag_CXX= | |
9611 fi | |
9612 | |
9613 if test "$GXX" = yes; then | |
9614 # Set up default GNU C++ configuration | |
9615 | |
9616 | |
9617 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
9618 if test "${with_gnu_ld+set}" = set; then | |
9619 withval="$with_gnu_ld" | |
9620 test "$withval" = no || with_gnu_ld=yes | |
9621 else | |
9622 with_gnu_ld=no | |
9623 fi; | |
9624 ac_prog=ld | |
9625 if test "$GCC" = yes; then | |
9626 # Check if gcc -print-prog-name=ld gives a path. | |
9627 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
9628 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
9629 case $host in | |
9630 *-*-mingw*) | |
9631 # gcc leaves a trailing carriage return which upsets mingw | |
9632 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
9633 *) | |
9634 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
9635 esac | |
9636 case $ac_prog in | |
9637 # Accept absolute paths. | |
9638 [\\/]* | ?:[\\/]*) | |
9639 re_direlt='/[^/][^/]*/\.\./' | |
9640 # Canonicalize the pathname of ld | |
9641 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
9642 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
9643 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
9644 done | |
9645 test -z "$LD" && LD="$ac_prog" | |
9646 ;; | |
9647 "") | |
9648 # If it fails, then pretend we aren't using GCC. | |
9649 ac_prog=ld | |
9650 ;; | |
9651 *) | |
9652 # If it is relative, then search for the first ld in PATH. | |
9653 with_gnu_ld=unknown | |
9654 ;; | |
9655 esac | |
9656 elif test "$with_gnu_ld" = yes; then | |
9657 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
9658 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
9659 else | |
9660 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
9661 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
9662 fi | |
9663 if test "${lt_cv_path_LD+set}" = set; then | |
9664 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9665 else | |
9666 if test -z "$LD"; then | |
9667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9668 for ac_dir in $PATH; do | |
9669 IFS="$lt_save_ifs" | |
9670 test -z "$ac_dir" && ac_dir=. | |
9671 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9672 lt_cv_path_LD="$ac_dir/$ac_prog" | |
9673 # Check to see if the program is GNU ld. I'd rather use --version, | |
9674 # but apparently some GNU ld's only accept -v. | |
9675 # Break only if it was the GNU/non-GNU ld that we prefer. | |
9676 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
9677 *GNU* | *'with BFD'*) | |
9678 test "$with_gnu_ld" != no && break | |
9679 ;; | |
9680 *) | |
9681 test "$with_gnu_ld" != yes && break | |
9682 ;; | |
9683 esac | |
9684 fi | |
9685 done | |
9686 IFS="$lt_save_ifs" | |
9687 else | |
9688 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9689 fi | |
9690 fi | |
9691 | |
9692 LD="$lt_cv_path_LD" | |
9693 if test -n "$LD"; then | |
9694 echo "$as_me:$LINENO: result: $LD" >&5 | |
9695 echo "${ECHO_T}$LD" >&6 | |
9696 else | |
9697 echo "$as_me:$LINENO: result: no" >&5 | |
9698 echo "${ECHO_T}no" >&6 | |
9699 fi | |
9700 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
9701 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
9702 { (exit 1); exit 1; }; } | |
9703 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
9704 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
9705 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
9706 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9707 else | |
9708 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
9709 case `$LD -v 2>&1 </dev/null` in | |
9710 *GNU* | *'with BFD'*) | |
9711 lt_cv_prog_gnu_ld=yes | |
9712 ;; | |
9713 *) | |
9714 lt_cv_prog_gnu_ld=no | |
9715 ;; | |
9716 esac | |
9717 fi | |
9718 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
9719 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
9720 with_gnu_ld=$lt_cv_prog_gnu_ld | |
9721 | |
9722 | |
9723 | |
9724 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
9725 # archiving commands below assume that GNU ld is being used. | |
9726 if test "$with_gnu_ld" = yes; then | |
9727 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9728 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' | |
9729 | |
9730 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
9731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9732 | |
9733 # If archive_cmds runs LD, not CC, wlarc should be empty | |
9734 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
9735 # investigate it a little bit more. (MM) | |
9736 wlarc='${wl}' | |
9737 | |
9738 # ancient GNU ld didn't support --whole-archive et. al. | |
9739 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
9740 grep 'no-whole-archive' > /dev/null; then | |
9741 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9742 else | |
9743 whole_archive_flag_spec_CXX= | |
9744 fi | |
9745 else | |
9746 with_gnu_ld=no | |
9747 wlarc= | |
9748 | |
9749 # A generic and very simple default shared library creation | |
9750 # command for GNU C++ for the case where it uses the native | |
9751 # linker, instead of GNU ld. If possible, this setting should | |
9752 # overridden to take advantage of the native linker features on | |
9753 # the platform it is being used on. | |
9754 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9755 fi | |
9756 | |
9757 # Commands to make compiler produce verbose output that lists | |
9758 # what "hidden" libraries, object files and flags are used when | |
9759 # linking a shared library. | |
9760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
9761 | |
9762 else | |
9763 GXX=no | |
9764 with_gnu_ld=no | |
9765 wlarc= | |
9766 fi | |
9767 | |
9768 # PORTME: fill in a description of your system's C++ link characteristics | |
9769 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9770 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
9771 ld_shlibs_CXX=yes | |
9772 case $host_os in | |
9773 aix3*) | |
9774 # FIXME: insert proper C++ library support | |
9775 ld_shlibs_CXX=no | |
9776 ;; | |
9777 aix4* | aix5*) | |
9778 if test "$host_cpu" = ia64; then | |
9779 # On IA64, the linker does run time linking by default, so we don't | |
9780 # have to do anything special. | |
9781 aix_use_runtimelinking=no | |
9782 exp_sym_flag='-Bexport' | |
9783 no_entry_flag="" | |
9784 else | |
9785 aix_use_runtimelinking=no | |
9786 | |
9787 # Test if we are trying to use run time linking or normal | |
9788 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9789 # need to do runtime linking. | |
9790 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
9791 for ld_flag in $LDFLAGS; do | |
9792 case $ld_flag in | |
9793 *-brtl*) | |
9794 aix_use_runtimelinking=yes | |
9795 break | |
9796 ;; | |
9797 esac | |
9798 done | |
9799 esac | |
9800 | |
9801 exp_sym_flag='-bexport' | |
9802 no_entry_flag='-bnoentry' | |
9803 fi | |
9804 | |
9805 # When large executables or shared objects are built, AIX ld can | |
9806 # have problems creating the table of contents. If linking a library | |
9807 # or program results in "error TOC overflow" add -mminimal-toc to | |
9808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9810 | |
9811 archive_cmds_CXX='' | |
9812 hardcode_direct_CXX=yes | |
9813 hardcode_libdir_separator_CXX=':' | |
9814 link_all_deplibs_CXX=yes | |
9815 | |
9816 if test "$GXX" = yes; then | |
9817 case $host_os in aix4.012|aix4.012.*) | |
9818 # We only want to do this on AIX 4.2 and lower, the check | |
9819 # below for broken collect2 doesn't work under 4.3+ | |
9820 collect2name=`${CC} -print-prog-name=collect2` | |
9821 if test -f "$collect2name" && \ | |
9822 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
9823 then | |
9824 # We have reworked collect2 | |
9825 hardcode_direct_CXX=yes | |
9826 else | |
9827 # We have old collect2 | |
9828 hardcode_direct_CXX=unsupported | |
9829 # It fails to find uninstalled libraries when the uninstalled | |
9830 # path is not listed in the libpath. Setting hardcode_minus_L | |
9831 # to unsupported forces relinking | |
9832 hardcode_minus_L_CXX=yes | |
9833 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9834 hardcode_libdir_separator_CXX= | |
9835 fi | |
9836 esac | |
9837 shared_flag='-shared' | |
9838 else | |
9839 # not using gcc | |
9840 if test "$host_cpu" = ia64; then | |
9841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9842 # chokes on -Wl,-G. The following line is correct: | |
9843 shared_flag='-G' | |
9844 else | |
9845 if test "$aix_use_runtimelinking" = yes; then | |
9846 shared_flag='${wl}-G' | |
9847 else | |
9848 shared_flag='${wl}-bM:SRE' | |
9849 fi | |
9850 fi | |
9851 fi | |
9852 | |
9853 # It seems that -bexpall does not export symbols beginning with | |
9854 # underscore (_), so it is better to generate a list of symbols to export. | |
9855 always_export_symbols_CXX=yes | |
9856 if test "$aix_use_runtimelinking" = yes; then | |
9857 # Warning - without using the other runtime loading flags (-brtl), | |
9858 # -berok will link without error, but may produce a broken library. | |
9859 allow_undefined_flag_CXX='-berok' | |
9860 # Determine the default libpath from the value encoded in an empty executable. | |
9861 cat >conftest.$ac_ext <<_ACEOF | |
9862 /* confdefs.h. */ | |
9863 _ACEOF | |
9864 cat confdefs.h >>conftest.$ac_ext | |
9865 cat >>conftest.$ac_ext <<_ACEOF | |
9866 /* end confdefs.h. */ | |
9867 | |
9868 int | |
9869 main () | |
9870 { | |
9871 | |
9872 ; | |
9873 return 0; | |
9874 } | |
9875 _ACEOF | |
9876 rm -f conftest.$ac_objext conftest$ac_exeext | |
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9878 (eval $ac_link) 2>conftest.er1 | |
9879 ac_status=$? | |
9880 grep -v '^ *+' conftest.er1 >conftest.err | |
9881 rm -f conftest.er1 | |
9882 cat conftest.err >&5 | |
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9884 (exit $ac_status); } && | |
9885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9887 (eval $ac_try) 2>&5 | |
9888 ac_status=$? | |
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9890 (exit $ac_status); }; } && | |
9891 { ac_try='test -s conftest$ac_exeext' | |
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9893 (eval $ac_try) 2>&5 | |
9894 ac_status=$? | |
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9896 (exit $ac_status); }; }; then | |
9897 | |
9898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9899 }'` | |
9900 # Check for a 64-bit object if we didn't find anything. | |
9901 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; } | |
9902 }'`; fi | |
9903 else | |
9904 echo "$as_me: failed program was:" >&5 | |
9905 sed 's/^/| /' conftest.$ac_ext >&5 | |
9906 | |
9907 fi | |
9908 rm -f conftest.err conftest.$ac_objext \ | |
9909 conftest$ac_exeext conftest.$ac_ext | |
9910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9911 | |
9912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9913 | |
9914 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9915 else | |
9916 if test "$host_cpu" = ia64; then | |
9917 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
9918 allow_undefined_flag_CXX="-z nodefs" | |
9919 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
9920 else | |
9921 # Determine the default libpath from the value encoded in an empty executable. | |
9922 cat >conftest.$ac_ext <<_ACEOF | |
9923 /* confdefs.h. */ | |
9924 _ACEOF | |
9925 cat confdefs.h >>conftest.$ac_ext | |
9926 cat >>conftest.$ac_ext <<_ACEOF | |
9927 /* end confdefs.h. */ | |
9928 | |
9929 int | |
9930 main () | |
9931 { | |
9932 | |
9933 ; | |
9934 return 0; | |
9935 } | |
9936 _ACEOF | |
9937 rm -f conftest.$ac_objext conftest$ac_exeext | |
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9939 (eval $ac_link) 2>conftest.er1 | |
9940 ac_status=$? | |
9941 grep -v '^ *+' conftest.er1 >conftest.err | |
9942 rm -f conftest.er1 | |
9943 cat conftest.err >&5 | |
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9945 (exit $ac_status); } && | |
9946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9948 (eval $ac_try) 2>&5 | |
9949 ac_status=$? | |
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9951 (exit $ac_status); }; } && | |
9952 { ac_try='test -s conftest$ac_exeext' | |
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9954 (eval $ac_try) 2>&5 | |
9955 ac_status=$? | |
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9957 (exit $ac_status); }; }; then | |
9958 | |
9959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9960 }'` | |
9961 # Check for a 64-bit object if we didn't find anything. | |
9962 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; } | |
9963 }'`; fi | |
9964 else | |
9965 echo "$as_me: failed program was:" >&5 | |
9966 sed 's/^/| /' conftest.$ac_ext >&5 | |
9967 | |
9968 fi | |
9969 rm -f conftest.err conftest.$ac_objext \ | |
9970 conftest$ac_exeext conftest.$ac_ext | |
9971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9972 | |
9973 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9974 # Warning - without using the other run time loading flags, | |
9975 # -berok will link without error, but may produce a broken library. | |
9976 no_undefined_flag_CXX=' ${wl}-bernotok' | |
9977 allow_undefined_flag_CXX=' ${wl}-berok' | |
9978 # -bexpall does not export symbols beginning with underscore (_) | |
9979 always_export_symbols_CXX=yes | |
9980 # Exported symbols can be pulled into shared objects from archives | |
9981 whole_archive_flag_spec_CXX=' ' | |
9982 archive_cmds_need_lc_CXX=yes | |
9983 # This is similar to how AIX traditionally builds it's shared libraries. | |
9984 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9985 fi | |
9986 fi | |
9987 ;; | |
9988 chorus*) | |
9989 case $cc_basename in | |
9990 *) | |
9991 # FIXME: insert proper C++ library support | |
9992 ld_shlibs_CXX=no | |
9993 ;; | |
9994 esac | |
9995 ;; | |
9996 | |
9997 cygwin* | mingw* | pw32*) | |
9998 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
9999 # as there is no search path for DLLs. | |
10000 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10001 allow_undefined_flag_CXX=unsupported | |
10002 always_export_symbols_CXX=no | |
10003 enable_shared_with_static_runtimes_CXX=yes | |
10004 | |
10005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
10006 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
10007 # If the export-symbols file already is a .def file (1st line | |
10008 # is EXPORTS), use it as is; otherwise, prepend... | |
10009 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10010 cp $export_symbols $output_objdir/$soname.def; | |
10011 else | |
10012 echo EXPORTS > $output_objdir/$soname.def; | |
10013 cat $export_symbols >> $output_objdir/$soname.def; | |
10014 fi~ | |
10015 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
10016 else | |
10017 ld_shlibs_CXX=no | |
10018 fi | |
10019 ;; | |
10020 | |
10021 darwin* | rhapsody*) | |
10022 if test "$GXX" = yes; then | |
10023 archive_cmds_need_lc_CXX=no | |
10024 case "$host_os" in | |
10025 rhapsody* | darwin1.[012]) | |
10026 allow_undefined_flag_CXX='-undefined suppress' | |
10027 ;; | |
10028 *) # Darwin 1.3 on | |
10029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10030 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | |
10031 else | |
10032 case ${MACOSX_DEPLOYMENT_TARGET} in | |
10033 10.[012]) | |
10034 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | |
10035 ;; | |
10036 10.*) | |
10037 allow_undefined_flag_CXX='-undefined dynamic_lookup' | |
10038 ;; | |
10039 esac | |
10040 fi | |
10041 ;; | |
10042 esac | |
10043 lt_int_apple_cc_single_mod=no | |
10044 output_verbose_link_cmd='echo' | |
10045 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
10046 lt_int_apple_cc_single_mod=yes | |
10047 fi | |
10048 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10049 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10050 else | |
10051 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10052 fi | |
10053 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10054 | |
10055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
10056 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10057 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}' | |
10058 else | |
10059 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10060 fi | |
10061 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}' | |
10062 hardcode_direct_CXX=no | |
10063 hardcode_automatic_CXX=yes | |
10064 hardcode_shlibpath_var_CXX=unsupported | |
10065 whole_archive_flag_spec_CXX='-all_load $convenience' | |
10066 link_all_deplibs_CXX=yes | |
10067 else | |
10068 ld_shlibs_CXX=no | |
10069 fi | |
10070 ;; | |
10071 | |
10072 dgux*) | |
10073 case $cc_basename in | |
10074 ec++) | |
10075 # FIXME: insert proper C++ library support | |
10076 ld_shlibs_CXX=no | |
10077 ;; | |
10078 ghcx) | |
10079 # Green Hills C++ Compiler | |
10080 # FIXME: insert proper C++ library support | |
10081 ld_shlibs_CXX=no | |
10082 ;; | |
10083 *) | |
10084 # FIXME: insert proper C++ library support | |
10085 ld_shlibs_CXX=no | |
10086 ;; | |
10087 esac | |
10088 ;; | |
10089 freebsd12*) | |
10090 # C++ shared libraries reported to be fairly broken before switch to ELF | |
10091 ld_shlibs_CXX=no | |
10092 ;; | |
10093 freebsd-elf*) | |
10094 archive_cmds_need_lc_CXX=no | |
10095 ;; | |
10096 freebsd* | kfreebsd*-gnu) | |
10097 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
10098 # conventions | |
10099 ld_shlibs_CXX=yes | |
10100 ;; | |
10101 gnu*) | |
10102 ;; | |
10103 hpux9*) | |
10104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10105 hardcode_libdir_separator_CXX=: | |
10106 export_dynamic_flag_spec_CXX='${wl}-E' | |
10107 hardcode_direct_CXX=yes | |
10108 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10109 # but as the default | |
10110 # location of the library. | |
10111 | |
10112 case $cc_basename in | |
10113 CC) | |
10114 # FIXME: insert proper C++ library support | |
10115 ld_shlibs_CXX=no | |
10116 ;; | |
10117 aCC) | |
10118 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' | |
10119 # Commands to make compiler produce verbose output that lists | |
10120 # what "hidden" libraries, object files and flags are used when | |
10121 # linking a shared library. | |
10122 # | |
10123 # There doesn't appear to be a way to prevent this compiler from | |
10124 # explicitly linking system object files so we need to strip them | |
10125 # from the output so that they don't get included in the library | |
10126 # dependencies. | |
10127 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10128 ;; | |
10129 *) | |
10130 if test "$GXX" = yes; then | |
10131 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' | |
10132 else | |
10133 # FIXME: insert proper C++ library support | |
10134 ld_shlibs_CXX=no | |
10135 fi | |
10136 ;; | |
10137 esac | |
10138 ;; | |
10139 hpux10*|hpux11*) | |
10140 if test $with_gnu_ld = no; then | |
10141 case "$host_cpu" in | |
10142 hppa*64*) | |
10143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10144 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
10145 hardcode_libdir_separator_CXX=: | |
10146 ;; | |
10147 ia64*) | |
10148 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10149 ;; | |
10150 *) | |
10151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10152 hardcode_libdir_separator_CXX=: | |
10153 export_dynamic_flag_spec_CXX='${wl}-E' | |
10154 ;; | |
10155 esac | |
10156 fi | |
10157 case "$host_cpu" in | |
10158 hppa*64*) | |
10159 hardcode_direct_CXX=no | |
10160 hardcode_shlibpath_var_CXX=no | |
10161 ;; | |
10162 ia64*) | |
10163 hardcode_direct_CXX=no | |
10164 hardcode_shlibpath_var_CXX=no | |
10165 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10166 # but as the default | |
10167 # location of the library. | |
10168 ;; | |
10169 *) | |
10170 hardcode_direct_CXX=yes | |
10171 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10172 # but as the default | |
10173 # location of the library. | |
10174 ;; | |
10175 esac | |
10176 | |
10177 case $cc_basename in | |
10178 CC) | |
10179 # FIXME: insert proper C++ library support | |
10180 ld_shlibs_CXX=no | |
10181 ;; | |
10182 aCC) | |
10183 case "$host_cpu" in | |
10184 hppa*64*|ia64*) | |
10185 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
10186 ;; | |
10187 *) | |
10188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10189 ;; | |
10190 esac | |
10191 # Commands to make compiler produce verbose output that lists | |
10192 # what "hidden" libraries, object files and flags are used when | |
10193 # linking a shared library. | |
10194 # | |
10195 # There doesn't appear to be a way to prevent this compiler from | |
10196 # explicitly linking system object files so we need to strip them | |
10197 # from the output so that they don't get included in the library | |
10198 # dependencies. | |
10199 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' | |
10200 ;; | |
10201 *) | |
10202 if test "$GXX" = yes; then | |
10203 if test $with_gnu_ld = no; then | |
10204 case "$host_cpu" in | |
10205 ia64*|hppa*64*) | |
10206 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
10207 ;; | |
10208 *) | |
10209 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' | |
10210 ;; | |
10211 esac | |
10212 fi | |
10213 else | |
10214 # FIXME: insert proper C++ library support | |
10215 ld_shlibs_CXX=no | |
10216 fi | |
10217 ;; | |
10218 esac | |
10219 ;; | |
10220 irix5* | irix6*) | |
10221 case $cc_basename in | |
10222 CC) | |
10223 # SGI C++ | |
10224 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
10225 | |
10226 # Archives containing C++ object files must be created using | |
10227 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
10228 # necessary to make sure instantiated templates are included | |
10229 # in the archive. | |
10230 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
10231 ;; | |
10232 *) | |
10233 if test "$GXX" = yes; then | |
10234 if test "$with_gnu_ld" = no; then | |
10235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
10236 else | |
10237 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' | |
10238 fi | |
10239 fi | |
10240 link_all_deplibs_CXX=yes | |
10241 ;; | |
10242 esac | |
10243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10244 hardcode_libdir_separator_CXX=: | |
10245 ;; | |
10246 linux*) | |
10247 case $cc_basename in | |
10248 KCC) | |
10249 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10250 | |
10251 # KCC will only create a shared library if the output file | |
10252 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10253 # to its proper name (with version) after linking. | |
10254 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' | |
10255 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' | |
10256 # Commands to make compiler produce verbose output that lists | |
10257 # what "hidden" libraries, object files and flags are used when | |
10258 # linking a shared library. | |
10259 # | |
10260 # There doesn't appear to be a way to prevent this compiler from | |
10261 # explicitly linking system object files so we need to strip them | |
10262 # from the output so that they don't get included in the library | |
10263 # dependencies. | |
10264 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' | |
10265 | |
10266 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
10267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10268 | |
10269 # Archives containing C++ object files must be created using | |
10270 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10271 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10272 ;; | |
10273 icpc) | |
10274 # Intel C++ | |
10275 with_gnu_ld=yes | |
10276 archive_cmds_need_lc_CXX=no | |
10277 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10278 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' | |
10279 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10281 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10282 ;; | |
10283 cxx) | |
10284 # Compaq C++ | |
10285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10286 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' | |
10287 | |
10288 runpath_var=LD_RUN_PATH | |
10289 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10290 hardcode_libdir_separator_CXX=: | |
10291 | |
10292 # Commands to make compiler produce verbose output that lists | |
10293 # what "hidden" libraries, object files and flags are used when | |
10294 # linking a shared library. | |
10295 # | |
10296 # There doesn't appear to be a way to prevent this compiler from | |
10297 # explicitly linking system object files so we need to strip them | |
10298 # from the output so that they don't get included in the library | |
10299 # dependencies. | |
10300 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' | |
10301 ;; | |
10302 esac | |
10303 ;; | |
10304 lynxos*) | |
10305 # FIXME: insert proper C++ library support | |
10306 ld_shlibs_CXX=no | |
10307 ;; | |
10308 m88k*) | |
10309 # FIXME: insert proper C++ library support | |
10310 ld_shlibs_CXX=no | |
10311 ;; | |
10312 mvs*) | |
10313 case $cc_basename in | |
10314 cxx) | |
10315 # FIXME: insert proper C++ library support | |
10316 ld_shlibs_CXX=no | |
10317 ;; | |
10318 *) | |
10319 # FIXME: insert proper C++ library support | |
10320 ld_shlibs_CXX=no | |
10321 ;; | |
10322 esac | |
10323 ;; | |
10324 netbsd* | knetbsd*-gnu) | |
10325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10326 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
10327 wlarc= | |
10328 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10329 hardcode_direct_CXX=yes | |
10330 hardcode_shlibpath_var_CXX=no | |
10331 fi | |
10332 # Workaround some broken pre-1.5 toolchains | |
10333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
10334 ;; | |
10335 osf3*) | |
10336 case $cc_basename in | |
10337 KCC) | |
10338 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10339 | |
10340 # KCC will only create a shared library if the output file | |
10341 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10342 # to its proper name (with version) after linking. | |
10343 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' | |
10344 | |
10345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10346 hardcode_libdir_separator_CXX=: | |
10347 | |
10348 # Archives containing C++ object files must be created using | |
10349 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10351 | |
10352 ;; | |
10353 RCC) | |
10354 # Rational C++ 2.4.1 | |
10355 # FIXME: insert proper C++ library support | |
10356 ld_shlibs_CXX=no | |
10357 ;; | |
10358 cxx) | |
10359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10360 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
10361 | |
10362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10363 hardcode_libdir_separator_CXX=: | |
10364 | |
10365 # Commands to make compiler produce verbose output that lists | |
10366 # what "hidden" libraries, object files and flags are used when | |
10367 # linking a shared library. | |
10368 # | |
10369 # There doesn't appear to be a way to prevent this compiler from | |
10370 # explicitly linking system object files so we need to strip them | |
10371 # from the output so that they don't get included in the library | |
10372 # dependencies. | |
10373 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' | |
10374 ;; | |
10375 *) | |
10376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10378 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
10379 | |
10380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10381 hardcode_libdir_separator_CXX=: | |
10382 | |
10383 # Commands to make compiler produce verbose output that lists | |
10384 # what "hidden" libraries, object files and flags are used when | |
10385 # linking a shared library. | |
10386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10387 | |
10388 else | |
10389 # FIXME: insert proper C++ library support | |
10390 ld_shlibs_CXX=no | |
10391 fi | |
10392 ;; | |
10393 esac | |
10394 ;; | |
10395 osf4* | osf5*) | |
10396 case $cc_basename in | |
10397 KCC) | |
10398 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10399 | |
10400 # KCC will only create a shared library if the output file | |
10401 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10402 # to its proper name (with version) after linking. | |
10403 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' | |
10404 | |
10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10406 hardcode_libdir_separator_CXX=: | |
10407 | |
10408 # Archives containing C++ object files must be created using | |
10409 # the KAI C++ compiler. | |
10410 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
10411 ;; | |
10412 RCC) | |
10413 # Rational C++ 2.4.1 | |
10414 # FIXME: insert proper C++ library support | |
10415 ld_shlibs_CXX=no | |
10416 ;; | |
10417 cxx) | |
10418 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
10419 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
10420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
10421 echo "-hidden">> $lib.exp~ | |
10422 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ | |
10423 $rm $lib.exp' | |
10424 | |
10425 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10426 hardcode_libdir_separator_CXX=: | |
10427 | |
10428 # Commands to make compiler produce verbose output that lists | |
10429 # what "hidden" libraries, object files and flags are used when | |
10430 # linking a shared library. | |
10431 # | |
10432 # There doesn't appear to be a way to prevent this compiler from | |
10433 # explicitly linking system object files so we need to strip them | |
10434 # from the output so that they don't get included in the library | |
10435 # dependencies. | |
10436 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | 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' | |
10437 ;; | |
10438 *) | |
10439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10441 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
10442 | |
10443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10444 hardcode_libdir_separator_CXX=: | |
10445 | |
10446 # Commands to make compiler produce verbose output that lists | |
10447 # what "hidden" libraries, object files and flags are used when | |
10448 # linking a shared library. | |
10449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10450 | |
10451 else | |
10452 # FIXME: insert proper C++ library support | |
10453 ld_shlibs_CXX=no | |
10454 fi | |
10455 ;; | |
10456 esac | |
10457 ;; | |
10458 psos*) | |
10459 # FIXME: insert proper C++ library support | |
10460 ld_shlibs_CXX=no | |
10461 ;; | |
10462 sco*) | |
10463 archive_cmds_need_lc_CXX=no | |
10464 case $cc_basename in | |
10465 CC) | |
10466 # FIXME: insert proper C++ library support | |
10467 ld_shlibs_CXX=no | |
10468 ;; | |
10469 *) | |
10470 # FIXME: insert proper C++ library support | |
10471 ld_shlibs_CXX=no | |
10472 ;; | |
10473 esac | |
10474 ;; | |
10475 sunos4*) | |
10476 case $cc_basename in | |
10477 CC) | |
10478 # Sun C++ 4.x | |
10479 # FIXME: insert proper C++ library support | |
10480 ld_shlibs_CXX=no | |
10481 ;; | |
10482 lcc) | |
10483 # Lucid | |
10484 # FIXME: insert proper C++ library support | |
10485 ld_shlibs_CXX=no | |
10486 ;; | |
10487 *) | |
10488 # FIXME: insert proper C++ library support | |
10489 ld_shlibs_CXX=no | |
10490 ;; | |
10491 esac | |
10492 ;; | |
10493 solaris*) | |
10494 case $cc_basename in | |
10495 CC) | |
10496 # Sun C++ 4.2, 5.x and Centerline C++ | |
10497 no_undefined_flag_CXX=' -zdefs' | |
10498 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10499 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10500 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10501 | |
10502 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10503 hardcode_shlibpath_var_CXX=no | |
10504 case $host_os in | |
10505 solaris2.0-5 | solaris2.0-5.*) ;; | |
10506 *) | |
10507 # The C++ compiler is used as linker so we must use $wl | |
10508 # flag to pass the commands to the underlying system | |
10509 # linker. | |
10510 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10511 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10512 ;; | |
10513 esac | |
10514 link_all_deplibs_CXX=yes | |
10515 | |
10516 # Commands to make compiler produce verbose output that lists | |
10517 # what "hidden" libraries, object files and flags are used when | |
10518 # linking a shared library. | |
10519 # | |
10520 # There doesn't appear to be a way to prevent this compiler from | |
10521 # explicitly linking system object files so we need to strip them | |
10522 # from the output so that they don't get included in the library | |
10523 # dependencies. | |
10524 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
10525 | |
10526 # Archives containing C++ object files must be created using | |
10527 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
10528 # necessary to make sure instantiated templates are included | |
10529 # in the archive. | |
10530 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
10531 ;; | |
10532 gcx) | |
10533 # Green Hills C++ Compiler | |
10534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10535 | |
10536 # The C++ compiler must be used to create the archive. | |
10537 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
10538 ;; | |
10539 *) | |
10540 # GNU C++ compiler with Solaris linker | |
10541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10542 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
10543 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
10544 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10545 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10546 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10547 | |
10548 # Commands to make compiler produce verbose output that lists | |
10549 # what "hidden" libraries, object files and flags are used when | |
10550 # linking a shared library. | |
10551 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
10552 else | |
10553 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
10554 # platform. | |
10555 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10556 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10557 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10558 | |
10559 # Commands to make compiler produce verbose output that lists | |
10560 # what "hidden" libraries, object files and flags are used when | |
10561 # linking a shared library. | |
10562 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
10563 fi | |
10564 | |
10565 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
10566 fi | |
10567 ;; | |
10568 esac | |
10569 ;; | |
10570 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
10571 archive_cmds_need_lc_CXX=no | |
10572 ;; | |
10573 tandem*) | |
10574 case $cc_basename in | |
10575 NCC) | |
10576 # NonStop-UX NCC 3.20 | |
10577 # FIXME: insert proper C++ library support | |
10578 ld_shlibs_CXX=no | |
10579 ;; | |
10580 *) | |
10581 # FIXME: insert proper C++ library support | |
10582 ld_shlibs_CXX=no | |
10583 ;; | |
10584 esac | |
10585 ;; | |
10586 vxworks*) | |
10587 # FIXME: insert proper C++ library support | |
10588 ld_shlibs_CXX=no | |
10589 ;; | |
10590 *) | |
10591 # FIXME: insert proper C++ library support | |
10592 ld_shlibs_CXX=no | |
10593 ;; | |
10594 esac | |
10595 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
10596 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
10597 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
10598 | |
10599 GCC_CXX="$GXX" | |
10600 LD_CXX="$LD" | |
10601 | |
10602 | |
10603 cat > conftest.$ac_ext <<EOF | |
10604 class Foo | |
10605 { | |
10606 public: | |
10607 Foo (void) { a = 0; } | |
10608 private: | |
10609 int a; | |
10610 }; | |
10611 EOF | |
10612 | |
10613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10614 (eval $ac_compile) 2>&5 | |
10615 ac_status=$? | |
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10617 (exit $ac_status); }; then | |
10618 # Parse the compiler output and extract the necessary | |
10619 # objects, libraries and library flags. | |
10620 | |
10621 # Sentinel used to keep track of whether or not we are before | |
10622 # the conftest object file. | |
10623 pre_test_object_deps_done=no | |
10624 | |
10625 # The `*' in the case matches for architectures that use `case' in | |
10626 # $output_verbose_cmd can trigger glob expansion during the loop | |
10627 # eval without this substitution. | |
10628 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
10629 | |
10630 for p in `eval $output_verbose_link_cmd`; do | |
10631 case $p in | |
10632 | |
10633 -L* | -R* | -l*) | |
10634 # Some compilers place space between "-{L,R}" and the path. | |
10635 # Remove the space. | |
10636 if test $p = "-L" \ | |
10637 || test $p = "-R"; then | |
10638 prev=$p | |
10639 continue | |
10640 else | |
10641 prev= | |
10642 fi | |
10643 | |
10644 if test "$pre_test_object_deps_done" = no; then | |
10645 case $p in | |
10646 -L* | -R*) | |
10647 # Internal compiler library paths should come after those | |
10648 # provided the user. The postdeps already come after the | |
10649 # user supplied libs so there is no need to process them. | |
10650 if test -z "$compiler_lib_search_path_CXX"; then | |
10651 compiler_lib_search_path_CXX="${prev}${p}" | |
10652 else | |
10653 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
10654 fi | |
10655 ;; | |
10656 # The "-l" case would never come before the object being | |
10657 # linked, so don't bother handling this case. | |
10658 esac | |
10659 else | |
10660 if test -z "$postdeps_CXX"; then | |
10661 postdeps_CXX="${prev}${p}" | |
10662 else | |
10663 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
10664 fi | |
10665 fi | |
10666 ;; | |
10667 | |
10668 *.$objext) | |
10669 # This assumes that the test object file only shows up | |
10670 # once in the compiler output. | |
10671 if test "$p" = "conftest.$objext"; then | |
10672 pre_test_object_deps_done=yes | |
10673 continue | |
10674 fi | |
10675 | |
10676 if test "$pre_test_object_deps_done" = no; then | |
10677 if test -z "$predep_objects_CXX"; then | |
10678 predep_objects_CXX="$p" | |
10679 else | |
10680 predep_objects_CXX="$predep_objects_CXX $p" | |
10681 fi | |
10682 else | |
10683 if test -z "$postdep_objects_CXX"; then | |
10684 postdep_objects_CXX="$p" | |
10685 else | |
10686 postdep_objects_CXX="$postdep_objects_CXX $p" | |
10687 fi | |
10688 fi | |
10689 ;; | |
10690 | |
10691 *) ;; # Ignore the rest. | |
10692 | |
10693 esac | |
10694 done | |
10695 | |
10696 # Clean up. | |
10697 rm -f a.out a.exe | |
10698 else | |
10699 echo "libtool.m4: error: problem compiling CXX test program" | |
10700 fi | |
10701 | |
10702 $rm -f confest.$objext | |
10703 | |
10704 case " $postdeps_CXX " in | |
10705 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
10706 esac | |
10707 | |
10708 lt_prog_compiler_wl_CXX= | |
10709 lt_prog_compiler_pic_CXX= | |
10710 lt_prog_compiler_static_CXX= | |
10711 | |
10712 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
10713 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
10714 | |
10715 # C++ specific cases for pic, static, wl, etc. | |
10716 if test "$GXX" = yes; then | |
10717 lt_prog_compiler_wl_CXX='-Wl,' | |
10718 lt_prog_compiler_static_CXX='-static' | |
10719 | |
10720 case $host_os in | |
10721 aix*) | |
10722 # All AIX code is PIC. | |
10723 if test "$host_cpu" = ia64; then | |
10724 # AIX 5 now supports IA64 processor | |
10725 lt_prog_compiler_static_CXX='-Bstatic' | |
10726 fi | |
10727 ;; | |
10728 amigaos*) | |
10729 # FIXME: we need at least 68020 code to build shared libraries, but | |
10730 # adding the `-m68020' flag to GCC prevents building anything better, | |
10731 # like `-m68040'. | |
10732 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
10733 ;; | |
10734 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
10735 # PIC is the default for these OSes. | |
10736 ;; | |
10737 mingw* | os2* | pw32*) | |
10738 # This hack is so that the source file can tell whether it is being | |
10739 # built for inclusion in a dll (and should export symbols for example). | |
10740 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
10741 ;; | |
10742 darwin* | rhapsody*) | |
10743 # PIC is the default on this platform | |
10744 # Common symbols not allowed in MH_DYLIB files | |
10745 lt_prog_compiler_pic_CXX='-fno-common' | |
10746 ;; | |
10747 *djgpp*) | |
10748 # DJGPP does not support shared libraries at all | |
10749 lt_prog_compiler_pic_CXX= | |
10750 ;; | |
10751 sysv4*MP*) | |
10752 if test -d /usr/nec; then | |
10753 lt_prog_compiler_pic_CXX=-Kconform_pic | |
10754 fi | |
10755 ;; | |
10756 hpux*) | |
10757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10758 # not for PA HP-UX. | |
10759 case "$host_cpu" in | |
10760 hppa*64*|ia64*) | |
10761 ;; | |
10762 *) | |
10763 lt_prog_compiler_pic_CXX='-fPIC' | |
10764 ;; | |
10765 esac | |
10766 ;; | |
10767 *) | |
10768 lt_prog_compiler_pic_CXX='-fPIC' | |
10769 ;; | |
10770 esac | |
10771 else | |
10772 case $host_os in | |
10773 aix4* | aix5*) | |
10774 # All AIX code is PIC. | |
10775 if test "$host_cpu" = ia64; then | |
10776 # AIX 5 now supports IA64 processor | |
10777 lt_prog_compiler_static_CXX='-Bstatic' | |
10778 else | |
10779 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
10780 fi | |
10781 ;; | |
10782 chorus*) | |
10783 case $cc_basename in | |
10784 cxch68) | |
10785 # Green Hills C++ Compiler | |
10786 # _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" | |
10787 ;; | |
10788 esac | |
10789 ;; | |
10790 dgux*) | |
10791 case $cc_basename in | |
10792 ec++) | |
10793 lt_prog_compiler_pic_CXX='-KPIC' | |
10794 ;; | |
10795 ghcx) | |
10796 # Green Hills C++ Compiler | |
10797 lt_prog_compiler_pic_CXX='-pic' | |
10798 ;; | |
10799 *) | |
10800 ;; | |
10801 esac | |
10802 ;; | |
10803 freebsd* | kfreebsd*-gnu) | |
10804 # FreeBSD uses GNU C++ | |
10805 ;; | |
10806 hpux9* | hpux10* | hpux11*) | |
10807 case $cc_basename in | |
10808 CC) | |
10809 lt_prog_compiler_wl_CXX='-Wl,' | |
10810 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
10811 if test "$host_cpu" != ia64; then | |
10812 lt_prog_compiler_pic_CXX='+Z' | |
10813 fi | |
10814 ;; | |
10815 aCC) | |
10816 lt_prog_compiler_wl_CXX='-Wl,' | |
10817 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
10818 case "$host_cpu" in | |
10819 hppa*64*|ia64*) | |
10820 # +Z the default | |
10821 ;; | |
10822 *) | |
10823 lt_prog_compiler_pic_CXX='+Z' | |
10824 ;; | |
10825 esac | |
10826 ;; | |
10827 *) | |
10828 ;; | |
10829 esac | |
10830 ;; | |
10831 irix5* | irix6* | nonstopux*) | |
10832 case $cc_basename in | |
10833 CC) | |
10834 lt_prog_compiler_wl_CXX='-Wl,' | |
10835 lt_prog_compiler_static_CXX='-non_shared' | |
10836 # CC pic flag -KPIC is the default. | |
10837 ;; | |
10838 *) | |
10839 ;; | |
10840 esac | |
10841 ;; | |
10842 linux*) | |
10843 case $cc_basename in | |
10844 KCC) | |
10845 # KAI C++ Compiler | |
10846 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
10847 lt_prog_compiler_pic_CXX='-fPIC' | |
10848 ;; | |
10849 icpc) | |
10850 # Intel C++ | |
10851 lt_prog_compiler_wl_CXX='-Wl,' | |
10852 lt_prog_compiler_pic_CXX='-KPIC' | |
10853 lt_prog_compiler_static_CXX='-static' | |
10854 ;; | |
10855 cxx) | |
10856 # Compaq C++ | |
10857 # Make sure the PIC flag is empty. It appears that all Alpha | |
10858 # Linux and Compaq Tru64 Unix objects are PIC. | |
10859 lt_prog_compiler_pic_CXX= | |
10860 lt_prog_compiler_static_CXX='-non_shared' | |
10861 ;; | |
10862 *) | |
10863 ;; | |
10864 esac | |
10865 ;; | |
10866 lynxos*) | |
10867 ;; | |
10868 m88k*) | |
10869 ;; | |
10870 mvs*) | |
10871 case $cc_basename in | |
10872 cxx) | |
10873 lt_prog_compiler_pic_CXX='-W c,exportall' | |
10874 ;; | |
10875 *) | |
10876 ;; | |
10877 esac | |
10878 ;; | |
10879 netbsd* | knetbsd*-gnu) | |
10880 ;; | |
10881 osf3* | osf4* | osf5*) | |
10882 case $cc_basename in | |
10883 KCC) | |
10884 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
10885 ;; | |
10886 RCC) | |
10887 # Rational C++ 2.4.1 | |
10888 lt_prog_compiler_pic_CXX='-pic' | |
10889 ;; | |
10890 cxx) | |
10891 # Digital/Compaq C++ | |
10892 lt_prog_compiler_wl_CXX='-Wl,' | |
10893 # Make sure the PIC flag is empty. It appears that all Alpha | |
10894 # Linux and Compaq Tru64 Unix objects are PIC. | |
10895 lt_prog_compiler_pic_CXX= | |
10896 lt_prog_compiler_static_CXX='-non_shared' | |
10897 ;; | |
10898 *) | |
10899 ;; | |
10900 esac | |
10901 ;; | |
10902 psos*) | |
10903 ;; | |
10904 sco*) | |
10905 case $cc_basename in | |
10906 CC) | |
10907 lt_prog_compiler_pic_CXX='-fPIC' | |
10908 ;; | |
10909 *) | |
10910 ;; | |
10911 esac | |
10912 ;; | |
10913 solaris*) | |
10914 case $cc_basename in | |
10915 CC) | |
10916 # Sun C++ 4.2, 5.x and Centerline C++ | |
10917 lt_prog_compiler_pic_CXX='-KPIC' | |
10918 lt_prog_compiler_static_CXX='-Bstatic' | |
10919 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
10920 ;; | |
10921 gcx) | |
10922 # Green Hills C++ Compiler | |
10923 lt_prog_compiler_pic_CXX='-PIC' | |
10924 ;; | |
10925 *) | |
10926 ;; | |
10927 esac | |
10928 ;; | |
10929 sunos4*) | |
10930 case $cc_basename in | |
10931 CC) | |
10932 # Sun C++ 4.x | |
10933 lt_prog_compiler_pic_CXX='-pic' | |
10934 lt_prog_compiler_static_CXX='-Bstatic' | |
10935 ;; | |
10936 lcc) | |
10937 # Lucid | |
10938 lt_prog_compiler_pic_CXX='-pic' | |
10939 ;; | |
10940 *) | |
10941 ;; | |
10942 esac | |
10943 ;; | |
10944 tandem*) | |
10945 case $cc_basename in | |
10946 NCC) | |
10947 # NonStop-UX NCC 3.20 | |
10948 lt_prog_compiler_pic_CXX='-KPIC' | |
10949 ;; | |
10950 *) | |
10951 ;; | |
10952 esac | |
10953 ;; | |
10954 unixware*) | |
10955 ;; | |
10956 vxworks*) | |
10957 ;; | |
10958 *) | |
10959 lt_prog_compiler_can_build_shared_CXX=no | |
10960 ;; | |
10961 esac | |
10962 fi | |
10963 | |
10964 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
10965 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
10966 | |
10967 # | |
10968 # Check to make sure the PIC flag actually works. | |
10969 # | |
10970 if test -n "$lt_prog_compiler_pic_CXX"; then | |
10971 | |
10972 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
10973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
10974 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
10975 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10976 else | |
10977 lt_prog_compiler_pic_works_CXX=no | |
10978 ac_outfile=conftest.$ac_objext | |
10979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10980 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
10981 # Insert the option either (1) after the last *FLAGS variable, or | |
10982 # (2) before a word containing "conftest.", or (3) at the end. | |
10983 # Note that $ac_compile itself does not contain backslashes and begins | |
10984 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10985 # The option is referenced via a variable to avoid confusing sed. | |
10986 lt_compile=`echo "$ac_compile" | $SED \ | |
10987 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
10988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10989 -e 's:$: $lt_compiler_flag:'` | |
10990 (eval echo "\"\$as_me:10990: $lt_compile\"" >&5) | |
10991 (eval "$lt_compile" 2>conftest.err) | |
10992 ac_status=$? | |
10993 cat conftest.err >&5 | |
10994 echo "$as_me:10994: \$? = $ac_status" >&5 | |
10995 if (exit $ac_status) && test -s "$ac_outfile"; then | |
10996 # The compiler can only warn and ignore the option if not recognized | |
10997 # So say no if there are warnings | |
10998 if test ! -s conftest.err; then | |
10999 lt_prog_compiler_pic_works_CXX=yes | |
11000 fi | |
11001 fi | |
11002 $rm conftest* | |
11003 | |
11004 fi | |
11005 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
11006 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
11007 | |
11008 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
11009 case $lt_prog_compiler_pic_CXX in | |
11010 "" | " "*) ;; | |
11011 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
11012 esac | |
11013 else | |
11014 lt_prog_compiler_pic_CXX= | |
11015 lt_prog_compiler_can_build_shared_CXX=no | |
11016 fi | |
11017 | |
11018 fi | |
11019 case "$host_os" in | |
11020 # For platforms which do not support PIC, -DPIC is meaningless: | |
11021 *djgpp*) | |
11022 lt_prog_compiler_pic_CXX= | |
11023 ;; | |
11024 *) | |
11025 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
11026 ;; | |
11027 esac | |
11028 | |
11029 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11030 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11031 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
11032 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11033 else | |
11034 lt_cv_prog_compiler_c_o_CXX=no | |
11035 $rm -r conftest 2>/dev/null | |
11036 mkdir conftest | |
11037 cd conftest | |
11038 mkdir out | |
11039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11040 | |
11041 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11042 # Insert the option either (1) after the last *FLAGS variable, or | |
11043 # (2) before a word containing "conftest.", or (3) at the end. | |
11044 # Note that $ac_compile itself does not contain backslashes and begins | |
11045 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11046 lt_compile=`echo "$ac_compile" | $SED \ | |
11047 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
11048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11049 -e 's:$: $lt_compiler_flag:'` | |
11050 (eval echo "\"\$as_me:11050: $lt_compile\"" >&5) | |
11051 (eval "$lt_compile" 2>out/conftest.err) | |
11052 ac_status=$? | |
11053 cat out/conftest.err >&5 | |
11054 echo "$as_me:11054: \$? = $ac_status" >&5 | |
11055 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11056 then | |
11057 # The compiler can only warn and ignore the option if not recognized | |
11058 # So say no if there are warnings | |
11059 if test ! -s out/conftest.err; then | |
11060 lt_cv_prog_compiler_c_o_CXX=yes | |
11061 fi | |
11062 fi | |
11063 chmod u+w . | |
11064 $rm conftest* | |
11065 # SGI C++ compiler will create directory out/ii_files/ for | |
11066 # template instantiation | |
11067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
11068 $rm out/* && rmdir out | |
11069 cd .. | |
11070 rmdir conftest | |
11071 $rm conftest* | |
11072 | |
11073 fi | |
11074 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
11075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
11076 | |
11077 | |
11078 hard_links="nottested" | |
11079 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
11080 # do not overwrite the value of need_locks provided by the user | |
11081 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11083 hard_links=yes | |
11084 $rm conftest* | |
11085 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11086 touch conftest.a | |
11087 ln conftest.a conftest.b 2>&5 || hard_links=no | |
11088 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11089 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11090 echo "${ECHO_T}$hard_links" >&6 | |
11091 if test "$hard_links" = no; then | |
11092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
11093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
11094 need_locks=warn | |
11095 fi | |
11096 else | |
11097 need_locks=no | |
11098 fi | |
11099 | |
11100 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11102 | |
11103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11104 case $host_os in | |
11105 aix4* | aix5*) | |
11106 # If we're using GNU nm, then we don't want the "-C" option. | |
11107 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11108 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
11109 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' | |
11110 else | |
11111 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' | |
11112 fi | |
11113 ;; | |
11114 pw32*) | |
11115 export_symbols_cmds_CXX="$ltdll_cmds" | |
11116 ;; | |
11117 cygwin* | mingw*) | |
11118 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
11119 ;; | |
11120 *) | |
11121 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11122 ;; | |
11123 esac | |
11124 | |
11125 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11126 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11127 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11128 | |
11129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11130 if test "$GCC" = yes; then | |
11131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11132 fi | |
11133 | |
11134 # | |
11135 # Do we need to explicitly link libc? | |
11136 # | |
11137 case "x$archive_cmds_need_lc_CXX" in | |
11138 x|xyes) | |
11139 # Assume -lc should be added | |
11140 archive_cmds_need_lc_CXX=yes | |
11141 | |
11142 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11143 case $archive_cmds_CXX in | |
11144 *'~'*) | |
11145 # FIXME: we may have to deal with multi-command sequences. | |
11146 ;; | |
11147 '$CC '*) | |
11148 # Test whether the compiler implicitly links with -lc since on some | |
11149 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11150 # to ld, don't add -lc before -lgcc. | |
11151 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
11152 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
11153 $rm conftest* | |
11154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11155 | |
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11157 (eval $ac_compile) 2>&5 | |
11158 ac_status=$? | |
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11160 (exit $ac_status); } 2>conftest.err; then | |
11161 soname=conftest | |
11162 lib=conftest | |
11163 libobjs=conftest.$ac_objext | |
11164 deplibs= | |
11165 wl=$lt_prog_compiler_wl_CXX | |
11166 compiler_flags=-v | |
11167 linker_flags=-v | |
11168 verstring= | |
11169 output_objdir=. | |
11170 libname=conftest | |
11171 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
11172 allow_undefined_flag_CXX= | |
11173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
11174 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11175 ac_status=$? | |
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11177 (exit $ac_status); } | |
11178 then | |
11179 archive_cmds_need_lc_CXX=no | |
11180 else | |
11181 archive_cmds_need_lc_CXX=yes | |
11182 fi | |
11183 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
11184 else | |
11185 cat conftest.err 1>&5 | |
11186 fi | |
11187 $rm conftest* | |
11188 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
11189 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
11190 ;; | |
11191 esac | |
11192 fi | |
11193 ;; | |
11194 esac | |
11195 | |
11196 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
11197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
11198 library_names_spec= | |
11199 libname_spec='lib$name' | |
11200 soname_spec= | |
11201 shrext=".so" | |
11202 postinstall_cmds= | |
11203 postuninstall_cmds= | |
11204 finish_cmds= | |
11205 finish_eval= | |
11206 shlibpath_var= | |
11207 shlibpath_overrides_runpath=unknown | |
11208 version_type=none | |
11209 dynamic_linker="$host_os ld.so" | |
11210 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11211 if test "$GCC" = yes; then | |
11212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11213 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
11214 # if the path contains ";" then we assume it to be the separator | |
11215 # otherwise default to the standard path separator (i.e. ":") - it is | |
11216 # assumed that no part of a normal pathname contains ";" but that should | |
11217 # okay in the real world where ";" in dirpaths is itself problematic. | |
11218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11219 else | |
11220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11221 fi | |
11222 else | |
11223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11224 fi | |
11225 need_lib_prefix=unknown | |
11226 hardcode_into_libs=no | |
11227 | |
11228 # when you set need_version to no, make sure it does not cause -set_version | |
11229 # flags to be left without arguments | |
11230 need_version=unknown | |
11231 | |
11232 case $host_os in | |
11233 aix3*) | |
11234 version_type=linux | |
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11236 shlibpath_var=LIBPATH | |
11237 | |
11238 # AIX 3 has no versioning support, so we append a major version to the name. | |
11239 soname_spec='${libname}${release}${shared_ext}$major' | |
11240 ;; | |
11241 | |
11242 aix4* | aix5*) | |
11243 version_type=linux | |
11244 need_lib_prefix=no | |
11245 need_version=no | |
11246 hardcode_into_libs=yes | |
11247 if test "$host_cpu" = ia64; then | |
11248 # AIX 5 supports IA64 | |
11249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11250 shlibpath_var=LD_LIBRARY_PATH | |
11251 else | |
11252 # With GCC up to 2.95.x, collect2 would create an import file | |
11253 # for dependence libraries. The import file would start with | |
11254 # the line `#! .'. This would cause the generated library to | |
11255 # depend on `.', always an invalid library. This was fixed in | |
11256 # development snapshots of GCC prior to 3.0. | |
11257 case $host_os in | |
11258 aix4 | aix4.[01] | aix4.[01].*) | |
11259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11260 echo ' yes ' | |
11261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
11262 : | |
11263 else | |
11264 can_build_shared=no | |
11265 fi | |
11266 ;; | |
11267 esac | |
11268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11269 # soname into executable. Probably we can add versioning support to | |
11270 # collect2, so additional links can be useful in future. | |
11271 if test "$aix_use_runtimelinking" = yes; then | |
11272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11273 # instead of lib<name>.a to let people know that these are not | |
11274 # typical AIX shared libraries. | |
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11276 else | |
11277 # We preserve .a as extension for shared libraries through AIX4.2 | |
11278 # and later when we are not doing run time linking. | |
11279 library_names_spec='${libname}${release}.a $libname.a' | |
11280 soname_spec='${libname}${release}${shared_ext}$major' | |
11281 fi | |
11282 shlibpath_var=LIBPATH | |
11283 fi | |
11284 ;; | |
11285 | |
11286 amigaos*) | |
11287 library_names_spec='$libname.ixlibrary $libname.a' | |
11288 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11289 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' | |
11290 ;; | |
11291 | |
11292 beos*) | |
11293 library_names_spec='${libname}${shared_ext}' | |
11294 dynamic_linker="$host_os ld.so" | |
11295 shlibpath_var=LIBRARY_PATH | |
11296 ;; | |
11297 | |
11298 bsdi4*) | |
11299 version_type=linux | |
11300 need_version=no | |
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11302 soname_spec='${libname}${release}${shared_ext}$major' | |
11303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11304 shlibpath_var=LD_LIBRARY_PATH | |
11305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11307 # the default ld.so.conf also contains /usr/contrib/lib and | |
11308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11309 # libtool to hard-code these into programs | |
11310 ;; | |
11311 | |
11312 cygwin* | mingw* | pw32*) | |
11313 version_type=windows | |
11314 shrext=".dll" | |
11315 need_version=no | |
11316 need_lib_prefix=no | |
11317 | |
11318 case $GCC,$host_os in | |
11319 yes,cygwin* | yes,mingw* | yes,pw32*) | |
11320 library_names_spec='$libname.dll.a' | |
11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11322 postinstall_cmds='base_file=`basename \${file}`~ | |
11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
11324 dldir=$destdir/`dirname \$dlpath`~ | |
11325 test -d \$dldir || mkdir -p \$dldir~ | |
11326 $install_prog $dir/$dlname \$dldir/$dlname' | |
11327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11328 dlpath=$dir/\$dldll~ | |
11329 $rm \$dlpath' | |
11330 shlibpath_overrides_runpath=yes | |
11331 | |
11332 case $host_os in | |
11333 cygwin*) | |
11334 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
11337 ;; | |
11338 mingw*) | |
11339 # MinGW DLLs use traditional 'lib' prefix | |
11340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
11343 # It is most probably a Windows format PATH printed by | |
11344 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
11345 # path with ; separators, and with drive letters. We can handle the | |
11346 # drive letters (cygwin fileutils understands them), so leave them, | |
11347 # especially as we might pass files found there to a mingw objdump, | |
11348 # which wouldn't understand a cygwinified path. Ahh. | |
11349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11350 else | |
11351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11352 fi | |
11353 ;; | |
11354 pw32*) | |
11355 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
11357 ;; | |
11358 esac | |
11359 ;; | |
11360 | |
11361 *) | |
11362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11363 ;; | |
11364 esac | |
11365 dynamic_linker='Win32 ld.exe' | |
11366 # FIXME: first we should search . and the directory the executable is in | |
11367 shlibpath_var=PATH | |
11368 ;; | |
11369 | |
11370 darwin* | rhapsody*) | |
11371 dynamic_linker="$host_os dyld" | |
11372 version_type=darwin | |
11373 need_lib_prefix=no | |
11374 need_version=no | |
11375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11376 soname_spec='${libname}${release}${major}$shared_ext' | |
11377 shlibpath_overrides_runpath=yes | |
11378 shlibpath_var=DYLD_LIBRARY_PATH | |
11379 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
11380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
11381 if test "$GCC" = yes; then | |
11382 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"` | |
11383 else | |
11384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
11385 fi | |
11386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11387 ;; | |
11388 | |
11389 dgux*) | |
11390 version_type=linux | |
11391 need_lib_prefix=no | |
11392 need_version=no | |
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11394 soname_spec='${libname}${release}${shared_ext}$major' | |
11395 shlibpath_var=LD_LIBRARY_PATH | |
11396 ;; | |
11397 | |
11398 freebsd1*) | |
11399 dynamic_linker=no | |
11400 ;; | |
11401 | |
11402 kfreebsd*-gnu) | |
11403 version_type=linux | |
11404 need_lib_prefix=no | |
11405 need_version=no | |
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11407 soname_spec='${libname}${release}${shared_ext}$major' | |
11408 shlibpath_var=LD_LIBRARY_PATH | |
11409 shlibpath_overrides_runpath=no | |
11410 hardcode_into_libs=yes | |
11411 dynamic_linker='GNU ld.so' | |
11412 ;; | |
11413 | |
11414 freebsd*) | |
11415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
11416 version_type=freebsd-$objformat | |
11417 case $version_type in | |
11418 freebsd-elf*) | |
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11420 need_version=no | |
11421 need_lib_prefix=no | |
11422 ;; | |
11423 freebsd-*) | |
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11425 need_version=yes | |
11426 ;; | |
11427 esac | |
11428 shlibpath_var=LD_LIBRARY_PATH | |
11429 case $host_os in | |
11430 freebsd2*) | |
11431 shlibpath_overrides_runpath=yes | |
11432 ;; | |
11433 freebsd3.01* | freebsdelf3.01*) | |
11434 shlibpath_overrides_runpath=yes | |
11435 hardcode_into_libs=yes | |
11436 ;; | |
11437 *) # from 3.2 on | |
11438 shlibpath_overrides_runpath=no | |
11439 hardcode_into_libs=yes | |
11440 ;; | |
11441 esac | |
11442 ;; | |
11443 | |
11444 gnu*) | |
11445 version_type=linux | |
11446 need_lib_prefix=no | |
11447 need_version=no | |
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11449 soname_spec='${libname}${release}${shared_ext}$major' | |
11450 shlibpath_var=LD_LIBRARY_PATH | |
11451 hardcode_into_libs=yes | |
11452 ;; | |
11453 | |
11454 hpux9* | hpux10* | hpux11*) | |
11455 # Give a soname corresponding to the major version so that dld.sl refuses to | |
11456 # link against other versions. | |
11457 version_type=sunos | |
11458 need_lib_prefix=no | |
11459 need_version=no | |
11460 case "$host_cpu" in | |
11461 ia64*) | |
11462 shrext='.so' | |
11463 hardcode_into_libs=yes | |
11464 dynamic_linker="$host_os dld.so" | |
11465 shlibpath_var=LD_LIBRARY_PATH | |
11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11468 soname_spec='${libname}${release}${shared_ext}$major' | |
11469 if test "X$HPUX_IA64_MODE" = X32; then | |
11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11471 else | |
11472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11473 fi | |
11474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11475 ;; | |
11476 hppa*64*) | |
11477 shrext='.sl' | |
11478 hardcode_into_libs=yes | |
11479 dynamic_linker="$host_os dld.sl" | |
11480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11483 soname_spec='${libname}${release}${shared_ext}$major' | |
11484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11486 ;; | |
11487 *) | |
11488 shrext='.sl' | |
11489 dynamic_linker="$host_os dld.sl" | |
11490 shlibpath_var=SHLIB_PATH | |
11491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11493 soname_spec='${libname}${release}${shared_ext}$major' | |
11494 ;; | |
11495 esac | |
11496 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
11497 postinstall_cmds='chmod 555 $lib' | |
11498 ;; | |
11499 | |
11500 irix5* | irix6* | nonstopux*) | |
11501 case $host_os in | |
11502 nonstopux*) version_type=nonstopux ;; | |
11503 *) | |
11504 if test "$lt_cv_prog_gnu_ld" = yes; then | |
11505 version_type=linux | |
11506 else | |
11507 version_type=irix | |
11508 fi ;; | |
11509 esac | |
11510 need_lib_prefix=no | |
11511 need_version=no | |
11512 soname_spec='${libname}${release}${shared_ext}$major' | |
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11514 case $host_os in | |
11515 irix5* | nonstopux*) | |
11516 libsuff= shlibsuff= | |
11517 ;; | |
11518 *) | |
11519 case $LD in # libtool.m4 will add one of these switches to LD | |
11520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11521 libsuff= shlibsuff= libmagic=32-bit;; | |
11522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11523 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11525 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11526 *) libsuff= shlibsuff= libmagic=never-match;; | |
11527 esac | |
11528 ;; | |
11529 esac | |
11530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11531 shlibpath_overrides_runpath=no | |
11532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11534 hardcode_into_libs=yes | |
11535 ;; | |
11536 | |
11537 # No shared lib support for Linux oldld, aout, or coff. | |
11538 linux*oldld* | linux*aout* | linux*coff*) | |
11539 dynamic_linker=no | |
11540 ;; | |
11541 | |
11542 # This must be Linux ELF. | |
11543 linux*) | |
11544 version_type=linux | |
11545 need_lib_prefix=no | |
11546 need_version=no | |
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11548 soname_spec='${libname}${release}${shared_ext}$major' | |
11549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11550 shlibpath_var=LD_LIBRARY_PATH | |
11551 shlibpath_overrides_runpath=no | |
11552 # This implies no fast_install, which is unacceptable. | |
11553 # Some rework will be needed to allow for fast_install | |
11554 # before this can be enabled. | |
11555 hardcode_into_libs=yes | |
11556 | |
11557 # Append ld.so.conf contents to the search path | |
11558 if test -f /etc/ld.so.conf; then | |
11559 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
11560 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
11561 fi | |
11562 | |
11563 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11564 # powerpc, because MkLinux only supported shared libraries with the | |
11565 # GNU dynamic linker. Since this was broken with cross compilers, | |
11566 # most powerpc-linux boxes support dynamic linking these days and | |
11567 # people can always --disable-shared, the test was removed, and we | |
11568 # assume the GNU/Linux dynamic linker is in use. | |
11569 dynamic_linker='GNU/Linux ld.so' | |
11570 ;; | |
11571 | |
11572 knetbsd*-gnu) | |
11573 version_type=linux | |
11574 need_lib_prefix=no | |
11575 need_version=no | |
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11577 soname_spec='${libname}${release}${shared_ext}$major' | |
11578 shlibpath_var=LD_LIBRARY_PATH | |
11579 shlibpath_overrides_runpath=no | |
11580 hardcode_into_libs=yes | |
11581 dynamic_linker='GNU ld.so' | |
11582 ;; | |
11583 | |
11584 netbsd*) | |
11585 version_type=sunos | |
11586 need_lib_prefix=no | |
11587 need_version=no | |
11588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11591 dynamic_linker='NetBSD (a.out) ld.so' | |
11592 else | |
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11594 soname_spec='${libname}${release}${shared_ext}$major' | |
11595 dynamic_linker='NetBSD ld.elf_so' | |
11596 fi | |
11597 shlibpath_var=LD_LIBRARY_PATH | |
11598 shlibpath_overrides_runpath=yes | |
11599 hardcode_into_libs=yes | |
11600 ;; | |
11601 | |
11602 newsos6) | |
11603 version_type=linux | |
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11605 shlibpath_var=LD_LIBRARY_PATH | |
11606 shlibpath_overrides_runpath=yes | |
11607 ;; | |
11608 | |
11609 nto-qnx*) | |
11610 version_type=linux | |
11611 need_lib_prefix=no | |
11612 need_version=no | |
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11614 soname_spec='${libname}${release}${shared_ext}$major' | |
11615 shlibpath_var=LD_LIBRARY_PATH | |
11616 shlibpath_overrides_runpath=yes | |
11617 ;; | |
11618 | |
11619 openbsd*) | |
11620 version_type=sunos | |
11621 need_lib_prefix=no | |
11622 need_version=yes | |
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11625 shlibpath_var=LD_LIBRARY_PATH | |
11626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11627 case $host_os in | |
11628 openbsd2.[89] | openbsd2.[89].*) | |
11629 shlibpath_overrides_runpath=no | |
11630 ;; | |
11631 *) | |
11632 shlibpath_overrides_runpath=yes | |
11633 ;; | |
11634 esac | |
11635 else | |
11636 shlibpath_overrides_runpath=yes | |
11637 fi | |
11638 ;; | |
11639 | |
11640 os2*) | |
11641 libname_spec='$name' | |
11642 shrext=".dll" | |
11643 need_lib_prefix=no | |
11644 library_names_spec='$libname${shared_ext} $libname.a' | |
11645 dynamic_linker='OS/2 ld.exe' | |
11646 shlibpath_var=LIBPATH | |
11647 ;; | |
11648 | |
11649 osf3* | osf4* | osf5*) | |
11650 version_type=osf | |
11651 need_lib_prefix=no | |
11652 need_version=no | |
11653 soname_spec='${libname}${release}${shared_ext}$major' | |
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11655 shlibpath_var=LD_LIBRARY_PATH | |
11656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11658 ;; | |
11659 | |
11660 sco3.2v5*) | |
11661 version_type=osf | |
11662 soname_spec='${libname}${release}${shared_ext}$major' | |
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11664 shlibpath_var=LD_LIBRARY_PATH | |
11665 ;; | |
11666 | |
11667 solaris*) | |
11668 version_type=linux | |
11669 need_lib_prefix=no | |
11670 need_version=no | |
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11672 soname_spec='${libname}${release}${shared_ext}$major' | |
11673 shlibpath_var=LD_LIBRARY_PATH | |
11674 shlibpath_overrides_runpath=yes | |
11675 hardcode_into_libs=yes | |
11676 # ldd complains unless libraries are executable | |
11677 postinstall_cmds='chmod +x $lib' | |
11678 ;; | |
11679 | |
11680 sunos4*) | |
11681 version_type=sunos | |
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11684 shlibpath_var=LD_LIBRARY_PATH | |
11685 shlibpath_overrides_runpath=yes | |
11686 if test "$with_gnu_ld" = yes; then | |
11687 need_lib_prefix=no | |
11688 fi | |
11689 need_version=yes | |
11690 ;; | |
11691 | |
11692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11693 version_type=linux | |
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11695 soname_spec='${libname}${release}${shared_ext}$major' | |
11696 shlibpath_var=LD_LIBRARY_PATH | |
11697 case $host_vendor in | |
11698 sni) | |
11699 shlibpath_overrides_runpath=no | |
11700 need_lib_prefix=no | |
11701 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11702 runpath_var=LD_RUN_PATH | |
11703 ;; | |
11704 siemens) | |
11705 need_lib_prefix=no | |
11706 ;; | |
11707 motorola) | |
11708 need_lib_prefix=no | |
11709 need_version=no | |
11710 shlibpath_overrides_runpath=no | |
11711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11712 ;; | |
11713 esac | |
11714 ;; | |
11715 | |
11716 sysv4*MP*) | |
11717 if test -d /usr/nec ;then | |
11718 version_type=linux | |
11719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11720 soname_spec='$libname${shared_ext}.$major' | |
11721 shlibpath_var=LD_LIBRARY_PATH | |
11722 fi | |
11723 ;; | |
11724 | |
11725 uts4*) | |
11726 version_type=linux | |
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11728 soname_spec='${libname}${release}${shared_ext}$major' | |
11729 shlibpath_var=LD_LIBRARY_PATH | |
11730 ;; | |
11731 | |
11732 *) | |
11733 dynamic_linker=no | |
11734 ;; | |
11735 esac | |
11736 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
11737 echo "${ECHO_T}$dynamic_linker" >&6 | |
11738 test "$dynamic_linker" = no && can_build_shared=no | |
11739 | |
11740 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
11741 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
11742 hardcode_action_CXX= | |
11743 if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
11744 test -n "$runpath_var CXX" || \ | |
11745 test "X$hardcode_automatic_CXX"="Xyes" ; then | |
11746 | |
11747 # We can hardcode non-existant directories. | |
11748 if test "$hardcode_direct_CXX" != no && | |
11749 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11750 # have to relink, otherwise we might link with an installed library | |
11751 # when we should be linking with a yet-to-be-installed one | |
11752 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
11753 test "$hardcode_minus_L_CXX" != no; then | |
11754 # Linking always hardcodes the temporary library directory. | |
11755 hardcode_action_CXX=relink | |
11756 else | |
11757 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11758 hardcode_action_CXX=immediate | |
11759 fi | |
11760 else | |
11761 # We cannot hardcode anything, or else we can only hardcode existing | |
11762 # directories. | |
11763 hardcode_action_CXX=unsupported | |
11764 fi | |
11765 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
11766 echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
11767 | |
11768 if test "$hardcode_action_CXX" = relink; then | |
11769 # Fast installation is not supported | |
11770 enable_fast_install=no | |
11771 elif test "$shlibpath_overrides_runpath" = yes || | |
11772 test "$enable_shared" = no; then | |
11773 # Fast installation is not necessary | |
11774 enable_fast_install=needless | |
11775 fi | |
11776 | |
11777 striplib= | |
11778 old_striplib= | |
11779 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11780 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
11781 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
11782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11783 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11784 echo "$as_me:$LINENO: result: yes" >&5 | |
11785 echo "${ECHO_T}yes" >&6 | |
11786 else | |
11787 # FIXME - insert some real tests, host_os isn't really good enough | |
11788 case $host_os in | |
11789 darwin*) | |
11790 if test -n "$STRIP" ; then | |
11791 striplib="$STRIP -x" | |
11792 echo "$as_me:$LINENO: result: yes" >&5 | |
11793 echo "${ECHO_T}yes" >&6 | |
11794 else | |
11795 echo "$as_me:$LINENO: result: no" >&5 | |
11796 echo "${ECHO_T}no" >&6 | |
11797 fi | |
11798 ;; | |
11799 *) | |
11800 echo "$as_me:$LINENO: result: no" >&5 | |
11801 echo "${ECHO_T}no" >&6 | |
11802 ;; | |
11803 esac | |
11804 fi | |
11805 | |
11806 if test "x$enable_dlopen" != xyes; then | |
11807 enable_dlopen=unknown | |
11808 enable_dlopen_self=unknown | |
11809 enable_dlopen_self_static=unknown | |
11810 else | |
11811 lt_cv_dlopen=no | |
11812 lt_cv_dlopen_libs= | |
11813 | |
11814 case $host_os in | |
11815 beos*) | |
11816 lt_cv_dlopen="load_add_on" | |
11817 lt_cv_dlopen_libs= | |
11818 lt_cv_dlopen_self=yes | |
11819 ;; | |
11820 | |
11821 mingw* | pw32*) | |
11822 lt_cv_dlopen="LoadLibrary" | |
11823 lt_cv_dlopen_libs= | |
11824 ;; | |
11825 | |
11826 cygwin*) | |
11827 lt_cv_dlopen="dlopen" | |
11828 lt_cv_dlopen_libs= | |
11829 ;; | |
11830 | |
11831 darwin*) | |
11832 # if libdl is installed we need to link against it | |
11833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11834 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11836 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11837 else | |
11838 ac_check_lib_save_LIBS=$LIBS | |
11839 LIBS="-ldl $LIBS" | |
11840 cat >conftest.$ac_ext <<_ACEOF | |
11841 /* confdefs.h. */ | |
11842 _ACEOF | |
11843 cat confdefs.h >>conftest.$ac_ext | |
11844 cat >>conftest.$ac_ext <<_ACEOF | |
11845 /* end confdefs.h. */ | |
11846 | |
11847 /* Override any gcc2 internal prototype to avoid an error. */ | |
11848 #ifdef __cplusplus | |
11849 extern "C" | |
11850 #endif | |
11851 /* We use char because int might match the return type of a gcc2 | |
11852 builtin and then its argument prototype would still apply. */ | |
11853 char dlopen (); | |
11854 int | |
11855 main () | |
11856 { | |
11857 dlopen (); | |
11858 ; | |
11859 return 0; | |
11860 } | |
11861 _ACEOF | |
11862 rm -f conftest.$ac_objext conftest$ac_exeext | |
11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11864 (eval $ac_link) 2>conftest.er1 | |
11865 ac_status=$? | |
11866 grep -v '^ *+' conftest.er1 >conftest.err | |
11867 rm -f conftest.er1 | |
11868 cat conftest.err >&5 | |
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11870 (exit $ac_status); } && | |
11871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11873 (eval $ac_try) 2>&5 | |
11874 ac_status=$? | |
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11876 (exit $ac_status); }; } && | |
11877 { ac_try='test -s conftest$ac_exeext' | |
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11879 (eval $ac_try) 2>&5 | |
11880 ac_status=$? | |
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11882 (exit $ac_status); }; }; then | |
11883 ac_cv_lib_dl_dlopen=yes | |
11884 else | |
11885 echo "$as_me: failed program was:" >&5 | |
11886 sed 's/^/| /' conftest.$ac_ext >&5 | |
11887 | |
11888 ac_cv_lib_dl_dlopen=no | |
11889 fi | |
11890 rm -f conftest.err conftest.$ac_objext \ | |
11891 conftest$ac_exeext conftest.$ac_ext | |
11892 LIBS=$ac_check_lib_save_LIBS | |
11893 fi | |
11894 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11895 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11896 if test $ac_cv_lib_dl_dlopen = yes; then | |
11897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11898 else | |
11899 | |
11900 lt_cv_dlopen="dyld" | |
11901 lt_cv_dlopen_libs= | |
11902 lt_cv_dlopen_self=yes | |
11903 | |
11904 fi | |
11905 | |
11906 ;; | |
11907 | |
11908 *) | |
11909 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
11910 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
11911 if test "${ac_cv_func_shl_load+set}" = set; then | |
11912 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11913 else | |
11914 cat >conftest.$ac_ext <<_ACEOF | |
11915 /* confdefs.h. */ | |
11916 _ACEOF | |
11917 cat confdefs.h >>conftest.$ac_ext | |
11918 cat >>conftest.$ac_ext <<_ACEOF | |
11919 /* end confdefs.h. */ | |
11920 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11922 #define shl_load innocuous_shl_load | |
11923 | |
11924 /* System header to define __stub macros and hopefully few prototypes, | |
11925 which can conflict with char shl_load (); below. | |
11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11927 <limits.h> exists even on freestanding compilers. */ | |
11928 | |
11929 #ifdef __STDC__ | |
11930 # include <limits.h> | |
11931 #else | |
11932 # include <assert.h> | |
11933 #endif | |
11934 | |
11935 #undef shl_load | |
11936 | |
11937 /* Override any gcc2 internal prototype to avoid an error. */ | |
11938 #ifdef __cplusplus | |
11939 extern "C" | |
11940 { | |
11941 #endif | |
11942 /* We use char because int might match the return type of a gcc2 | |
11943 builtin and then its argument prototype would still apply. */ | |
11944 char shl_load (); | |
11945 /* The GNU C library defines this for functions which it implements | |
11946 to always fail with ENOSYS. Some functions are actually named | |
11947 something starting with __ and the normal name is an alias. */ | |
11948 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
11949 choke me | |
11950 #else | |
11951 char (*f) () = shl_load; | |
11952 #endif | |
11953 #ifdef __cplusplus | |
11954 } | |
11955 #endif | |
11956 | |
11957 int | |
11958 main () | |
11959 { | |
11960 return f != shl_load; | |
11961 ; | |
11962 return 0; | |
11963 } | |
11964 _ACEOF | |
11965 rm -f conftest.$ac_objext conftest$ac_exeext | |
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11967 (eval $ac_link) 2>conftest.er1 | |
11968 ac_status=$? | |
11969 grep -v '^ *+' conftest.er1 >conftest.err | |
11970 rm -f conftest.er1 | |
11971 cat conftest.err >&5 | |
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11973 (exit $ac_status); } && | |
11974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11976 (eval $ac_try) 2>&5 | |
11977 ac_status=$? | |
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11979 (exit $ac_status); }; } && | |
11980 { ac_try='test -s conftest$ac_exeext' | |
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11982 (eval $ac_try) 2>&5 | |
11983 ac_status=$? | |
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11985 (exit $ac_status); }; }; then | |
11986 ac_cv_func_shl_load=yes | |
11987 else | |
11988 echo "$as_me: failed program was:" >&5 | |
11989 sed 's/^/| /' conftest.$ac_ext >&5 | |
11990 | |
11991 ac_cv_func_shl_load=no | |
11992 fi | |
11993 rm -f conftest.err conftest.$ac_objext \ | |
11994 conftest$ac_exeext conftest.$ac_ext | |
11995 fi | |
11996 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
11997 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
11998 if test $ac_cv_func_shl_load = yes; then | |
11999 lt_cv_dlopen="shl_load" | |
12000 else | |
12001 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
12002 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
12003 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
12004 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12005 else | |
12006 ac_check_lib_save_LIBS=$LIBS | |
12007 LIBS="-ldld $LIBS" | |
12008 cat >conftest.$ac_ext <<_ACEOF | |
12009 /* confdefs.h. */ | |
12010 _ACEOF | |
12011 cat confdefs.h >>conftest.$ac_ext | |
12012 cat >>conftest.$ac_ext <<_ACEOF | |
12013 /* end confdefs.h. */ | |
12014 | |
12015 /* Override any gcc2 internal prototype to avoid an error. */ | |
12016 #ifdef __cplusplus | |
12017 extern "C" | |
12018 #endif | |
12019 /* We use char because int might match the return type of a gcc2 | |
12020 builtin and then its argument prototype would still apply. */ | |
12021 char shl_load (); | |
12022 int | |
12023 main () | |
12024 { | |
12025 shl_load (); | |
12026 ; | |
12027 return 0; | |
12028 } | |
12029 _ACEOF | |
12030 rm -f conftest.$ac_objext conftest$ac_exeext | |
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12032 (eval $ac_link) 2>conftest.er1 | |
12033 ac_status=$? | |
12034 grep -v '^ *+' conftest.er1 >conftest.err | |
12035 rm -f conftest.er1 | |
12036 cat conftest.err >&5 | |
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12038 (exit $ac_status); } && | |
12039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12041 (eval $ac_try) 2>&5 | |
12042 ac_status=$? | |
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12044 (exit $ac_status); }; } && | |
12045 { ac_try='test -s conftest$ac_exeext' | |
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12047 (eval $ac_try) 2>&5 | |
12048 ac_status=$? | |
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12050 (exit $ac_status); }; }; then | |
12051 ac_cv_lib_dld_shl_load=yes | |
12052 else | |
12053 echo "$as_me: failed program was:" >&5 | |
12054 sed 's/^/| /' conftest.$ac_ext >&5 | |
12055 | |
12056 ac_cv_lib_dld_shl_load=no | |
12057 fi | |
12058 rm -f conftest.err conftest.$ac_objext \ | |
12059 conftest$ac_exeext conftest.$ac_ext | |
12060 LIBS=$ac_check_lib_save_LIBS | |
12061 fi | |
12062 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
12063 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
12064 if test $ac_cv_lib_dld_shl_load = yes; then | |
12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
12066 else | |
12067 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
12068 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
12069 if test "${ac_cv_func_dlopen+set}" = set; then | |
12070 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12071 else | |
12072 cat >conftest.$ac_ext <<_ACEOF | |
12073 /* confdefs.h. */ | |
12074 _ACEOF | |
12075 cat confdefs.h >>conftest.$ac_ext | |
12076 cat >>conftest.$ac_ext <<_ACEOF | |
12077 /* end confdefs.h. */ | |
12078 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12080 #define dlopen innocuous_dlopen | |
12081 | |
12082 /* System header to define __stub macros and hopefully few prototypes, | |
12083 which can conflict with char dlopen (); below. | |
12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12085 <limits.h> exists even on freestanding compilers. */ | |
12086 | |
12087 #ifdef __STDC__ | |
12088 # include <limits.h> | |
12089 #else | |
12090 # include <assert.h> | |
12091 #endif | |
12092 | |
12093 #undef dlopen | |
12094 | |
12095 /* Override any gcc2 internal prototype to avoid an error. */ | |
12096 #ifdef __cplusplus | |
12097 extern "C" | |
12098 { | |
12099 #endif | |
12100 /* We use char because int might match the return type of a gcc2 | |
12101 builtin and then its argument prototype would still apply. */ | |
12102 char dlopen (); | |
12103 /* The GNU C library defines this for functions which it implements | |
12104 to always fail with ENOSYS. Some functions are actually named | |
12105 something starting with __ and the normal name is an alias. */ | |
12106 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
12107 choke me | |
12108 #else | |
12109 char (*f) () = dlopen; | |
12110 #endif | |
12111 #ifdef __cplusplus | |
12112 } | |
12113 #endif | |
12114 | |
12115 int | |
12116 main () | |
12117 { | |
12118 return f != dlopen; | |
12119 ; | |
12120 return 0; | |
12121 } | |
12122 _ACEOF | |
12123 rm -f conftest.$ac_objext conftest$ac_exeext | |
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12125 (eval $ac_link) 2>conftest.er1 | |
12126 ac_status=$? | |
12127 grep -v '^ *+' conftest.er1 >conftest.err | |
12128 rm -f conftest.er1 | |
12129 cat conftest.err >&5 | |
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12131 (exit $ac_status); } && | |
12132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12134 (eval $ac_try) 2>&5 | |
12135 ac_status=$? | |
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12137 (exit $ac_status); }; } && | |
12138 { ac_try='test -s conftest$ac_exeext' | |
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12140 (eval $ac_try) 2>&5 | |
12141 ac_status=$? | |
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12143 (exit $ac_status); }; }; then | |
12144 ac_cv_func_dlopen=yes | |
12145 else | |
12146 echo "$as_me: failed program was:" >&5 | |
12147 sed 's/^/| /' conftest.$ac_ext >&5 | |
12148 | |
12149 ac_cv_func_dlopen=no | |
12150 fi | |
12151 rm -f conftest.err conftest.$ac_objext \ | |
12152 conftest$ac_exeext conftest.$ac_ext | |
12153 fi | |
12154 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
12155 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
12156 if test $ac_cv_func_dlopen = yes; then | |
12157 lt_cv_dlopen="dlopen" | |
12158 else | |
12159 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
12160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
12161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
12162 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12163 else | |
12164 ac_check_lib_save_LIBS=$LIBS | |
12165 LIBS="-ldl $LIBS" | |
12166 cat >conftest.$ac_ext <<_ACEOF | |
12167 /* confdefs.h. */ | |
12168 _ACEOF | |
12169 cat confdefs.h >>conftest.$ac_ext | |
12170 cat >>conftest.$ac_ext <<_ACEOF | |
12171 /* end confdefs.h. */ | |
12172 | |
12173 /* Override any gcc2 internal prototype to avoid an error. */ | |
12174 #ifdef __cplusplus | |
12175 extern "C" | |
12176 #endif | |
12177 /* We use char because int might match the return type of a gcc2 | |
12178 builtin and then its argument prototype would still apply. */ | |
12179 char dlopen (); | |
12180 int | |
12181 main () | |
12182 { | |
12183 dlopen (); | |
12184 ; | |
12185 return 0; | |
12186 } | |
12187 _ACEOF | |
12188 rm -f conftest.$ac_objext conftest$ac_exeext | |
12189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12190 (eval $ac_link) 2>conftest.er1 | |
12191 ac_status=$? | |
12192 grep -v '^ *+' conftest.er1 >conftest.err | |
12193 rm -f conftest.er1 | |
12194 cat conftest.err >&5 | |
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12196 (exit $ac_status); } && | |
12197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12199 (eval $ac_try) 2>&5 | |
12200 ac_status=$? | |
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12202 (exit $ac_status); }; } && | |
12203 { ac_try='test -s conftest$ac_exeext' | |
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12205 (eval $ac_try) 2>&5 | |
12206 ac_status=$? | |
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12208 (exit $ac_status); }; }; then | |
12209 ac_cv_lib_dl_dlopen=yes | |
12210 else | |
12211 echo "$as_me: failed program was:" >&5 | |
12212 sed 's/^/| /' conftest.$ac_ext >&5 | |
12213 | |
12214 ac_cv_lib_dl_dlopen=no | |
12215 fi | |
12216 rm -f conftest.err conftest.$ac_objext \ | |
12217 conftest$ac_exeext conftest.$ac_ext | |
12218 LIBS=$ac_check_lib_save_LIBS | |
12219 fi | |
12220 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
12221 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
12222 if test $ac_cv_lib_dl_dlopen = yes; then | |
12223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12224 else | |
12225 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
12226 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
12227 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
12228 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12229 else | |
12230 ac_check_lib_save_LIBS=$LIBS | |
12231 LIBS="-lsvld $LIBS" | |
12232 cat >conftest.$ac_ext <<_ACEOF | |
12233 /* confdefs.h. */ | |
12234 _ACEOF | |
12235 cat confdefs.h >>conftest.$ac_ext | |
12236 cat >>conftest.$ac_ext <<_ACEOF | |
12237 /* end confdefs.h. */ | |
12238 | |
12239 /* Override any gcc2 internal prototype to avoid an error. */ | |
12240 #ifdef __cplusplus | |
12241 extern "C" | |
12242 #endif | |
12243 /* We use char because int might match the return type of a gcc2 | |
12244 builtin and then its argument prototype would still apply. */ | |
12245 char dlopen (); | |
12246 int | |
12247 main () | |
12248 { | |
12249 dlopen (); | |
12250 ; | |
12251 return 0; | |
12252 } | |
12253 _ACEOF | |
12254 rm -f conftest.$ac_objext conftest$ac_exeext | |
12255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12256 (eval $ac_link) 2>conftest.er1 | |
12257 ac_status=$? | |
12258 grep -v '^ *+' conftest.er1 >conftest.err | |
12259 rm -f conftest.er1 | |
12260 cat conftest.err >&5 | |
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12262 (exit $ac_status); } && | |
12263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12265 (eval $ac_try) 2>&5 | |
12266 ac_status=$? | |
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12268 (exit $ac_status); }; } && | |
12269 { ac_try='test -s conftest$ac_exeext' | |
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12271 (eval $ac_try) 2>&5 | |
12272 ac_status=$? | |
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12274 (exit $ac_status); }; }; then | |
12275 ac_cv_lib_svld_dlopen=yes | |
12276 else | |
12277 echo "$as_me: failed program was:" >&5 | |
12278 sed 's/^/| /' conftest.$ac_ext >&5 | |
12279 | |
12280 ac_cv_lib_svld_dlopen=no | |
12281 fi | |
12282 rm -f conftest.err conftest.$ac_objext \ | |
12283 conftest$ac_exeext conftest.$ac_ext | |
12284 LIBS=$ac_check_lib_save_LIBS | |
12285 fi | |
12286 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
12287 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
12288 if test $ac_cv_lib_svld_dlopen = yes; then | |
12289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12290 else | |
12291 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
12292 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
12293 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
12294 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12295 else | |
12296 ac_check_lib_save_LIBS=$LIBS | |
12297 LIBS="-ldld $LIBS" | |
12298 cat >conftest.$ac_ext <<_ACEOF | |
12299 /* confdefs.h. */ | |
12300 _ACEOF | |
12301 cat confdefs.h >>conftest.$ac_ext | |
12302 cat >>conftest.$ac_ext <<_ACEOF | |
12303 /* end confdefs.h. */ | |
12304 | |
12305 /* Override any gcc2 internal prototype to avoid an error. */ | |
12306 #ifdef __cplusplus | |
12307 extern "C" | |
12308 #endif | |
12309 /* We use char because int might match the return type of a gcc2 | |
12310 builtin and then its argument prototype would still apply. */ | |
12311 char dld_link (); | |
12312 int | |
12313 main () | |
12314 { | |
12315 dld_link (); | |
12316 ; | |
12317 return 0; | |
12318 } | |
12319 _ACEOF | |
12320 rm -f conftest.$ac_objext conftest$ac_exeext | |
12321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12322 (eval $ac_link) 2>conftest.er1 | |
12323 ac_status=$? | |
12324 grep -v '^ *+' conftest.er1 >conftest.err | |
12325 rm -f conftest.er1 | |
12326 cat conftest.err >&5 | |
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12328 (exit $ac_status); } && | |
12329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12331 (eval $ac_try) 2>&5 | |
12332 ac_status=$? | |
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12334 (exit $ac_status); }; } && | |
12335 { ac_try='test -s conftest$ac_exeext' | |
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12337 (eval $ac_try) 2>&5 | |
12338 ac_status=$? | |
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12340 (exit $ac_status); }; }; then | |
12341 ac_cv_lib_dld_dld_link=yes | |
12342 else | |
12343 echo "$as_me: failed program was:" >&5 | |
12344 sed 's/^/| /' conftest.$ac_ext >&5 | |
12345 | |
12346 ac_cv_lib_dld_dld_link=no | |
12347 fi | |
12348 rm -f conftest.err conftest.$ac_objext \ | |
12349 conftest$ac_exeext conftest.$ac_ext | |
12350 LIBS=$ac_check_lib_save_LIBS | |
12351 fi | |
12352 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
12353 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
12354 if test $ac_cv_lib_dld_dld_link = yes; then | |
12355 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
12356 fi | |
12357 | |
12358 | |
12359 fi | |
12360 | |
12361 | |
12362 fi | |
12363 | |
12364 | |
12365 fi | |
12366 | |
12367 | |
12368 fi | |
12369 | |
12370 | |
12371 fi | |
12372 | |
12373 ;; | |
12374 esac | |
12375 | |
12376 if test "x$lt_cv_dlopen" != xno; then | |
12377 enable_dlopen=yes | |
12378 else | |
12379 enable_dlopen=no | |
12380 fi | |
12381 | |
12382 case $lt_cv_dlopen in | |
12383 dlopen) | |
12384 save_CPPFLAGS="$CPPFLAGS" | |
12385 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12386 | |
12387 save_LDFLAGS="$LDFLAGS" | |
12388 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12389 | |
12390 save_LIBS="$LIBS" | |
12391 LIBS="$lt_cv_dlopen_libs $LIBS" | |
12392 | |
12393 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
12394 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
12395 if test "${lt_cv_dlopen_self+set}" = set; then | |
12396 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12397 else | |
12398 if test "$cross_compiling" = yes; then : | |
12399 lt_cv_dlopen_self=cross | |
12400 else | |
12401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12402 lt_status=$lt_dlunknown | |
12403 cat > conftest.$ac_ext <<EOF | |
12404 #line 12404 "configure" | |
12405 #include "confdefs.h" | |
12406 | |
12407 #if HAVE_DLFCN_H | |
12408 #include <dlfcn.h> | |
12409 #endif | |
12410 | |
12411 #include <stdio.h> | |
12412 | |
12413 #ifdef RTLD_GLOBAL | |
12414 # define LT_DLGLOBAL RTLD_GLOBAL | |
12415 #else | |
12416 # ifdef DL_GLOBAL | |
12417 # define LT_DLGLOBAL DL_GLOBAL | |
12418 # else | |
12419 # define LT_DLGLOBAL 0 | |
12420 # endif | |
12421 #endif | |
12422 | |
12423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12424 find out it does not work in some platform. */ | |
12425 #ifndef LT_DLLAZY_OR_NOW | |
12426 # ifdef RTLD_LAZY | |
12427 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12428 # else | |
12429 # ifdef DL_LAZY | |
12430 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12431 # else | |
12432 # ifdef RTLD_NOW | |
12433 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12434 # else | |
12435 # ifdef DL_NOW | |
12436 # define LT_DLLAZY_OR_NOW DL_NOW | |
12437 # else | |
12438 # define LT_DLLAZY_OR_NOW 0 | |
12439 # endif | |
12440 # endif | |
12441 # endif | |
12442 # endif | |
12443 #endif | |
12444 | |
12445 #ifdef __cplusplus | |
12446 extern "C" void exit (int); | |
12447 #endif | |
12448 | |
12449 void fnord() { int i=42;} | |
12450 int main () | |
12451 { | |
12452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12453 int status = $lt_dlunknown; | |
12454 | |
12455 if (self) | |
12456 { | |
12457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12459 /* dlclose (self); */ | |
12460 } | |
12461 | |
12462 exit (status); | |
12463 } | |
12464 EOF | |
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12466 (eval $ac_link) 2>&5 | |
12467 ac_status=$? | |
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12470 (./conftest; exit; ) 2>/dev/null | |
12471 lt_status=$? | |
12472 case x$lt_status in | |
12473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12475 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
12476 esac | |
12477 else : | |
12478 # compilation failed | |
12479 lt_cv_dlopen_self=no | |
12480 fi | |
12481 fi | |
12482 rm -fr conftest* | |
12483 | |
12484 | |
12485 fi | |
12486 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
12487 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
12488 | |
12489 if test "x$lt_cv_dlopen_self" = xyes; then | |
12490 LDFLAGS="$LDFLAGS $link_static_flag" | |
12491 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
12492 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
12493 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
12494 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12495 else | |
12496 if test "$cross_compiling" = yes; then : | |
12497 lt_cv_dlopen_self_static=cross | |
12498 else | |
12499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12500 lt_status=$lt_dlunknown | |
12501 cat > conftest.$ac_ext <<EOF | |
12502 #line 12502 "configure" | |
12503 #include "confdefs.h" | |
12504 | |
12505 #if HAVE_DLFCN_H | |
12506 #include <dlfcn.h> | |
12507 #endif | |
12508 | |
12509 #include <stdio.h> | |
12510 | |
12511 #ifdef RTLD_GLOBAL | |
12512 # define LT_DLGLOBAL RTLD_GLOBAL | |
12513 #else | |
12514 # ifdef DL_GLOBAL | |
12515 # define LT_DLGLOBAL DL_GLOBAL | |
12516 # else | |
12517 # define LT_DLGLOBAL 0 | |
12518 # endif | |
12519 #endif | |
12520 | |
12521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12522 find out it does not work in some platform. */ | |
12523 #ifndef LT_DLLAZY_OR_NOW | |
12524 # ifdef RTLD_LAZY | |
12525 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12526 # else | |
12527 # ifdef DL_LAZY | |
12528 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12529 # else | |
12530 # ifdef RTLD_NOW | |
12531 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12532 # else | |
12533 # ifdef DL_NOW | |
12534 # define LT_DLLAZY_OR_NOW DL_NOW | |
12535 # else | |
12536 # define LT_DLLAZY_OR_NOW 0 | |
12537 # endif | |
12538 # endif | |
12539 # endif | |
12540 # endif | |
12541 #endif | |
12542 | |
12543 #ifdef __cplusplus | |
12544 extern "C" void exit (int); | |
12545 #endif | |
12546 | |
12547 void fnord() { int i=42;} | |
12548 int main () | |
12549 { | |
12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12551 int status = $lt_dlunknown; | |
12552 | |
12553 if (self) | |
12554 { | |
12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12557 /* dlclose (self); */ | |
12558 } | |
12559 | |
12560 exit (status); | |
12561 } | |
12562 EOF | |
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12564 (eval $ac_link) 2>&5 | |
12565 ac_status=$? | |
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12568 (./conftest; exit; ) 2>/dev/null | |
12569 lt_status=$? | |
12570 case x$lt_status in | |
12571 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12572 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12573 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
12574 esac | |
12575 else : | |
12576 # compilation failed | |
12577 lt_cv_dlopen_self_static=no | |
12578 fi | |
12579 fi | |
12580 rm -fr conftest* | |
12581 | |
12582 | |
12583 fi | |
12584 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
12585 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
12586 fi | |
12587 | |
12588 CPPFLAGS="$save_CPPFLAGS" | |
12589 LDFLAGS="$save_LDFLAGS" | |
12590 LIBS="$save_LIBS" | |
12591 ;; | |
12592 esac | |
12593 | |
12594 case $lt_cv_dlopen_self in | |
12595 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12596 *) enable_dlopen_self=unknown ;; | |
12597 esac | |
12598 | |
12599 case $lt_cv_dlopen_self_static in | |
12600 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12601 *) enable_dlopen_self_static=unknown ;; | |
12602 esac | |
12603 fi | |
12604 | |
12605 | |
12606 # The else clause should only fire when bootstrapping the | |
12607 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12608 # with your package, and you will get complaints that there are | |
12609 # no rules to generate ltmain.sh. | |
12610 if test -f "$ltmain"; then | |
12611 # See if we are running on zsh, and set the options which allow our commands through | |
12612 # without removal of \ escapes. | |
12613 if test -n "${ZSH_VERSION+set}" ; then | |
12614 setopt NO_GLOB_SUBST | |
12615 fi | |
12616 # Now quote all the things that may contain metacharacters while being | |
12617 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12618 # variables and quote the copies for generation of the libtool script. | |
12619 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
12620 SED SHELL STRIP \ | |
12621 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12622 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12623 deplibs_check_method reload_flag reload_cmds need_locks \ | |
12624 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12625 lt_cv_sys_global_symbol_to_c_name_address \ | |
12626 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12627 old_postinstall_cmds old_postuninstall_cmds \ | |
12628 compiler_CXX \ | |
12629 CC_CXX \ | |
12630 LD_CXX \ | |
12631 lt_prog_compiler_wl_CXX \ | |
12632 lt_prog_compiler_pic_CXX \ | |
12633 lt_prog_compiler_static_CXX \ | |
12634 lt_prog_compiler_no_builtin_flag_CXX \ | |
12635 export_dynamic_flag_spec_CXX \ | |
12636 thread_safe_flag_spec_CXX \ | |
12637 whole_archive_flag_spec_CXX \ | |
12638 enable_shared_with_static_runtimes_CXX \ | |
12639 old_archive_cmds_CXX \ | |
12640 old_archive_from_new_cmds_CXX \ | |
12641 predep_objects_CXX \ | |
12642 postdep_objects_CXX \ | |
12643 predeps_CXX \ | |
12644 postdeps_CXX \ | |
12645 compiler_lib_search_path_CXX \ | |
12646 archive_cmds_CXX \ | |
12647 archive_expsym_cmds_CXX \ | |
12648 postinstall_cmds_CXX \ | |
12649 postuninstall_cmds_CXX \ | |
12650 old_archive_from_expsyms_cmds_CXX \ | |
12651 allow_undefined_flag_CXX \ | |
12652 no_undefined_flag_CXX \ | |
12653 export_symbols_cmds_CXX \ | |
12654 hardcode_libdir_flag_spec_CXX \ | |
12655 hardcode_libdir_flag_spec_ld_CXX \ | |
12656 hardcode_libdir_separator_CXX \ | |
12657 hardcode_automatic_CXX \ | |
12658 module_cmds_CXX \ | |
12659 module_expsym_cmds_CXX \ | |
12660 lt_cv_prog_compiler_c_o_CXX \ | |
12661 exclude_expsyms_CXX \ | |
12662 include_expsyms_CXX; do | |
12663 | |
12664 case $var in | |
12665 old_archive_cmds_CXX | \ | |
12666 old_archive_from_new_cmds_CXX | \ | |
12667 archive_cmds_CXX | \ | |
12668 archive_expsym_cmds_CXX | \ | |
12669 module_cmds_CXX | \ | |
12670 module_expsym_cmds_CXX | \ | |
12671 old_archive_from_expsyms_cmds_CXX | \ | |
12672 export_symbols_cmds_CXX | \ | |
12673 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12674 postinstall_cmds | postuninstall_cmds | \ | |
12675 old_postinstall_cmds | old_postuninstall_cmds | \ | |
12676 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12677 # Double-quote double-evaled strings. | |
12678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12679 ;; | |
12680 *) | |
12681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12682 ;; | |
12683 esac | |
12684 done | |
12685 | |
12686 case $lt_echo in | |
12687 *'\$0 --fallback-echo"') | |
12688 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12689 ;; | |
12690 esac | |
12691 | |
12692 cfgfile="$ofile" | |
12693 | |
12694 cat <<__EOF__ >> "$cfgfile" | |
12695 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
12696 | |
12697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12698 | |
12699 # Shell to use when invoking shell scripts. | |
12700 SHELL=$lt_SHELL | |
12701 | |
12702 # Whether or not to build shared libraries. | |
12703 build_libtool_libs=$enable_shared | |
12704 | |
12705 # Whether or not to build static libraries. | |
12706 build_old_libs=$enable_static | |
12707 | |
12708 # Whether or not to add -lc for building shared libraries. | |
12709 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
12710 | |
12711 # Whether or not to disallow shared libs when runtime libs are static | |
12712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
12713 | |
12714 # Whether or not to optimize for fast installation. | |
12715 fast_install=$enable_fast_install | |
12716 | |
12717 # The host system. | |
12718 host_alias=$host_alias | |
12719 host=$host | |
12720 | |
12721 # An echo program that does not interpret backslashes. | |
12722 echo=$lt_echo | |
12723 | |
12724 # The archiver. | |
12725 AR=$lt_AR | |
12726 AR_FLAGS=$lt_AR_FLAGS | |
12727 | |
12728 # A C compiler. | |
12729 LTCC=$lt_LTCC | |
12730 | |
12731 # A language-specific compiler. | |
12732 CC=$lt_compiler_CXX | |
12733 | |
12734 # Is the compiler the GNU C compiler? | |
12735 with_gcc=$GCC_CXX | |
12736 | |
12737 # An ERE matcher. | |
12738 EGREP=$lt_EGREP | |
12739 | |
12740 # The linker used to build libraries. | |
12741 LD=$lt_LD_CXX | |
12742 | |
12743 # Whether we need hard or soft links. | |
12744 LN_S=$lt_LN_S | |
12745 | |
12746 # A BSD-compatible nm program. | |
12747 NM=$lt_NM | |
12748 | |
12749 # A symbol stripping program | |
12750 STRIP=$lt_STRIP | |
12751 | |
12752 # Used to examine libraries when file_magic_cmd begins "file" | |
12753 MAGIC_CMD=$MAGIC_CMD | |
12754 | |
12755 # Used on cygwin: DLL creation program. | |
12756 DLLTOOL="$DLLTOOL" | |
12757 | |
12758 # Used on cygwin: object dumper. | |
12759 OBJDUMP="$OBJDUMP" | |
12760 | |
12761 # Used on cygwin: assembler. | |
12762 AS="$AS" | |
12763 | |
12764 # The name of the directory that contains temporary libtool files. | |
12765 objdir=$objdir | |
12766 | |
12767 # How to create reloadable object files. | |
12768 reload_flag=$lt_reload_flag | |
12769 reload_cmds=$lt_reload_cmds | |
12770 | |
12771 # How to pass a linker flag through the compiler. | |
12772 wl=$lt_lt_prog_compiler_wl_CXX | |
12773 | |
12774 # Object file suffix (normally "o"). | |
12775 objext="$ac_objext" | |
12776 | |
12777 # Old archive suffix (normally "a"). | |
12778 libext="$libext" | |
12779 | |
12780 # Shared library suffix (normally ".so"). | |
12781 shrext='$shrext' | |
12782 | |
12783 # Executable file suffix (normally ""). | |
12784 exeext="$exeext" | |
12785 | |
12786 # Additional compiler flags for building library objects. | |
12787 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
12788 pic_mode=$pic_mode | |
12789 | |
12790 # What is the maximum length of a command? | |
12791 max_cmd_len=$lt_cv_sys_max_cmd_len | |
12792 | |
12793 # Does compiler simultaneously support -c and -o options? | |
12794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
12795 | |
12796 # Must we lock files when doing compilation ? | |
12797 need_locks=$lt_need_locks | |
12798 | |
12799 # Do we need the lib prefix for modules? | |
12800 need_lib_prefix=$need_lib_prefix | |
12801 | |
12802 # Do we need a version for libraries? | |
12803 need_version=$need_version | |
12804 | |
12805 # Whether dlopen is supported. | |
12806 dlopen_support=$enable_dlopen | |
12807 | |
12808 # Whether dlopen of programs is supported. | |
12809 dlopen_self=$enable_dlopen_self | |
12810 | |
12811 # Whether dlopen of statically linked programs is supported. | |
12812 dlopen_self_static=$enable_dlopen_self_static | |
12813 | |
12814 # Compiler flag to prevent dynamic linking. | |
12815 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
12816 | |
12817 # Compiler flag to turn off builtin functions. | |
12818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
12819 | |
12820 # Compiler flag to allow reflexive dlopens. | |
12821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
12822 | |
12823 # Compiler flag to generate shared objects directly from archives. | |
12824 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
12825 | |
12826 # Compiler flag to generate thread-safe objects. | |
12827 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
12828 | |
12829 # Library versioning type. | |
12830 version_type=$version_type | |
12831 | |
12832 # Format of library name prefix. | |
12833 libname_spec=$lt_libname_spec | |
12834 | |
12835 # List of archive names. First name is the real one, the rest are links. | |
12836 # The last name is the one that the linker finds with -lNAME. | |
12837 library_names_spec=$lt_library_names_spec | |
12838 | |
12839 # The coded name of the library, if different from the real name. | |
12840 soname_spec=$lt_soname_spec | |
12841 | |
12842 # Commands used to build and install an old-style archive. | |
12843 RANLIB=$lt_RANLIB | |
12844 old_archive_cmds=$lt_old_archive_cmds_CXX | |
12845 old_postinstall_cmds=$lt_old_postinstall_cmds | |
12846 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12847 | |
12848 # Create an old-style archive from a shared archive. | |
12849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
12850 | |
12851 # Create a temporary old-style archive to link instead of a shared archive. | |
12852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
12853 | |
12854 # Commands used to build and install a shared archive. | |
12855 archive_cmds=$lt_archive_cmds_CXX | |
12856 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
12857 postinstall_cmds=$lt_postinstall_cmds | |
12858 postuninstall_cmds=$lt_postuninstall_cmds | |
12859 | |
12860 # Commands used to build a loadable module (assumed same as above if empty) | |
12861 module_cmds=$lt_module_cmds_CXX | |
12862 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
12863 | |
12864 # Commands to strip libraries. | |
12865 old_striplib=$lt_old_striplib | |
12866 striplib=$lt_striplib | |
12867 | |
12868 # Dependencies to place before the objects being linked to create a | |
12869 # shared library. | |
12870 predep_objects=$lt_predep_objects_CXX | |
12871 | |
12872 # Dependencies to place after the objects being linked to create a | |
12873 # shared library. | |
12874 postdep_objects=$lt_postdep_objects_CXX | |
12875 | |
12876 # Dependencies to place before the objects being linked to create a | |
12877 # shared library. | |
12878 predeps=$lt_predeps_CXX | |
12879 | |
12880 # Dependencies to place after the objects being linked to create a | |
12881 # shared library. | |
12882 postdeps=$lt_postdeps_CXX | |
12883 | |
12884 # The library search path used internally by the compiler when linking | |
12885 # a shared library. | |
12886 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
12887 | |
12888 # Method to check whether dependent libraries are shared objects. | |
12889 deplibs_check_method=$lt_deplibs_check_method | |
12890 | |
12891 # Command to use when deplibs_check_method == file_magic. | |
12892 file_magic_cmd=$lt_file_magic_cmd | |
12893 | |
12894 # Flag that allows shared libraries with undefined symbols to be built. | |
12895 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
12896 | |
12897 # Flag that forces no undefined symbols. | |
12898 no_undefined_flag=$lt_no_undefined_flag_CXX | |
12899 | |
12900 # Commands used to finish a libtool library installation in a directory. | |
12901 finish_cmds=$lt_finish_cmds | |
12902 | |
12903 # Same as above, but a single script fragment to be evaled but not shown. | |
12904 finish_eval=$lt_finish_eval | |
12905 | |
12906 # Take the output of nm and produce a listing of raw symbols and C names. | |
12907 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
12908 | |
12909 # Transform the output of nm in a proper C declaration | |
12910 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
12911 | |
12912 # Transform the output of nm in a C name address pair | |
12913 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12914 | |
12915 # This is the shared library runtime path variable. | |
12916 runpath_var=$runpath_var | |
12917 | |
12918 # This is the shared library path variable. | |
12919 shlibpath_var=$shlibpath_var | |
12920 | |
12921 # Is shlibpath searched before the hard-coded library search path? | |
12922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12923 | |
12924 # How to hardcode a shared library path into an executable. | |
12925 hardcode_action=$hardcode_action_CXX | |
12926 | |
12927 # Whether we should hardcode library paths into libraries. | |
12928 hardcode_into_libs=$hardcode_into_libs | |
12929 | |
12930 # Flag to hardcode \$libdir into a binary during linking. | |
12931 # This must work even if \$libdir does not exist. | |
12932 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
12933 | |
12934 # If ld is used when linking, flag to hardcode \$libdir into | |
12935 # a binary during linking. This must work even if \$libdir does | |
12936 # not exist. | |
12937 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
12938 | |
12939 # Whether we need a single -rpath flag with a separated argument. | |
12940 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
12941 | |
12942 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
12943 # resulting binary. | |
12944 hardcode_direct=$hardcode_direct_CXX | |
12945 | |
12946 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
12947 # resulting binary. | |
12948 hardcode_minus_L=$hardcode_minus_L_CXX | |
12949 | |
12950 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
12951 # the resulting binary. | |
12952 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
12953 | |
12954 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
12955 # and all subsequent libraries and executables linked against it. | |
12956 hardcode_automatic=$hardcode_automatic_CXX | |
12957 | |
12958 # Variables whose values should be saved in libtool wrapper scripts and | |
12959 # restored at relink time. | |
12960 variables_saved_for_relink="$variables_saved_for_relink" | |
12961 | |
12962 # Whether libtool must link a program against all its dependency libraries. | |
12963 link_all_deplibs=$link_all_deplibs_CXX | |
12964 | |
12965 # Compile-time system search path for libraries | |
12966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
12967 | |
12968 # Run-time system search path for libraries | |
12969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
12970 | |
12971 # Fix the shell variable \$srcfile for the compiler. | |
12972 fix_srcfile_path="$fix_srcfile_path_CXX" | |
12973 | |
12974 # Set to yes if exported symbols are required. | |
12975 always_export_symbols=$always_export_symbols_CXX | |
12976 | |
12977 # The commands to list exported symbols. | |
12978 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
12979 | |
12980 # The commands to extract the exported symbol list from a shared archive. | |
12981 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12982 | |
12983 # Symbols that should not be listed in the preloaded symbols. | |
12984 exclude_expsyms=$lt_exclude_expsyms_CXX | |
12985 | |
12986 # Symbols that must always be exported. | |
12987 include_expsyms=$lt_include_expsyms_CXX | |
12988 | |
12989 # ### END LIBTOOL TAG CONFIG: $tagname | |
12990 | |
12991 __EOF__ | |
12992 | |
12993 | |
12994 else | |
12995 # If there is no Makefile yet, we rely on a make rule to execute | |
12996 # `config.status --recheck' to rerun these tests and create the | |
12997 # libtool script then. | |
12998 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
12999 if test -f "$ltmain_in"; then | |
13000 test -f Makefile && make "$ltmain" | |
13001 fi | |
13002 fi | |
13003 | |
13004 | |
13005 ac_ext=c | |
13006 ac_cpp='$CPP $CPPFLAGS' | |
13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13010 | |
13011 CC=$lt_save_CC | |
13012 LDCXX=$LD | |
13013 LD=$lt_save_LD | |
13014 GCC=$lt_save_GCC | |
13015 with_gnu_ldcxx=$with_gnu_ld | |
13016 with_gnu_ld=$lt_save_with_gnu_ld | |
13017 lt_cv_path_LDCXX=$lt_cv_path_LD | |
13018 lt_cv_path_LD=$lt_save_path_LD | |
13019 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13020 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13021 | |
13022 else | |
13023 tagname="" | |
13024 fi | |
13025 ;; | |
13026 | |
13027 F77) | |
13028 if test -n "$F77" && test "X$F77" != "Xno"; then | |
13029 | |
13030 ac_ext=f | |
13031 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13032 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13033 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13034 | |
13035 | |
13036 archive_cmds_need_lc_F77=no | |
13037 allow_undefined_flag_F77= | |
13038 always_export_symbols_F77=no | |
13039 archive_expsym_cmds_F77= | |
13040 export_dynamic_flag_spec_F77= | |
13041 hardcode_direct_F77=no | |
13042 hardcode_libdir_flag_spec_F77= | |
13043 hardcode_libdir_flag_spec_ld_F77= | |
13044 hardcode_libdir_separator_F77= | |
13045 hardcode_minus_L_F77=no | |
13046 hardcode_automatic_F77=no | |
13047 module_cmds_F77= | |
13048 module_expsym_cmds_F77= | |
13049 link_all_deplibs_F77=unknown | |
13050 old_archive_cmds_F77=$old_archive_cmds | |
13051 no_undefined_flag_F77= | |
13052 whole_archive_flag_spec_F77= | |
13053 enable_shared_with_static_runtimes_F77=no | |
13054 | |
13055 # Source file extension for f77 test sources. | |
13056 ac_ext=f | |
13057 | |
13058 # Object file extension for compiled f77 test sources. | |
13059 objext=o | |
13060 objext_F77=$objext | |
13061 | |
13062 # Code to be used in simple compile tests | |
13063 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13064 | |
13065 # Code to be used in simple link tests | |
13066 lt_simple_link_test_code=" program t\n end\n" | |
13067 | |
13068 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13069 | |
13070 # If no C compiler was specified, use CC. | |
13071 LTCC=${LTCC-"$CC"} | |
13072 | |
13073 # Allow CC to be a program name with arguments. | |
13074 compiler=$CC | |
13075 | |
13076 | |
13077 # Allow CC to be a program name with arguments. | |
13078 lt_save_CC="$CC" | |
13079 CC=${F77-"f77"} | |
13080 compiler=$CC | |
13081 compiler_F77=$CC | |
13082 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
13083 | |
13084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
13086 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13087 echo "${ECHO_T}$can_build_shared" >&6 | |
13088 | |
13089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
13091 test "$can_build_shared" = "no" && enable_shared=no | |
13092 | |
13093 # On AIX, shared libraries and static libraries use the same namespace, and | |
13094 # are all built from PIC. | |
13095 case "$host_os" in | |
13096 aix3*) | |
13097 test "$enable_shared" = yes && enable_static=no | |
13098 if test -n "$RANLIB"; then | |
13099 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13100 postinstall_cmds='$RANLIB $lib' | |
13101 fi | |
13102 ;; | |
13103 aix4*) | |
13104 test "$enable_shared" = yes && enable_static=no | |
13105 ;; | |
13106 esac | |
13107 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13108 echo "${ECHO_T}$enable_shared" >&6 | |
13109 | |
13110 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13111 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
13112 # Make sure either enable_shared or enable_static is yes. | |
13113 test "$enable_shared" = yes || enable_static=yes | |
13114 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13115 echo "${ECHO_T}$enable_static" >&6 | |
13116 | |
13117 test "$ld_shlibs_F77" = no && can_build_shared=no | |
13118 | |
13119 GCC_F77="$G77" | |
13120 LD_F77="$LD" | |
13121 | |
13122 lt_prog_compiler_wl_F77= | |
13123 lt_prog_compiler_pic_F77= | |
13124 lt_prog_compiler_static_F77= | |
13125 | |
13126 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
13128 | |
13129 if test "$GCC" = yes; then | |
13130 lt_prog_compiler_wl_F77='-Wl,' | |
13131 lt_prog_compiler_static_F77='-static' | |
13132 | |
13133 case $host_os in | |
13134 aix*) | |
13135 # All AIX code is PIC. | |
13136 if test "$host_cpu" = ia64; then | |
13137 # AIX 5 now supports IA64 processor | |
13138 lt_prog_compiler_static_F77='-Bstatic' | |
13139 fi | |
13140 ;; | |
13141 | |
13142 amigaos*) | |
13143 # FIXME: we need at least 68020 code to build shared libraries, but | |
13144 # adding the `-m68020' flag to GCC prevents building anything better, | |
13145 # like `-m68040'. | |
13146 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13147 ;; | |
13148 | |
13149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13150 # PIC is the default for these OSes. | |
13151 ;; | |
13152 | |
13153 mingw* | pw32* | os2*) | |
13154 # This hack is so that the source file can tell whether it is being | |
13155 # built for inclusion in a dll (and should export symbols for example). | |
13156 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13157 ;; | |
13158 | |
13159 darwin* | rhapsody*) | |
13160 # PIC is the default on this platform | |
13161 # Common symbols not allowed in MH_DYLIB files | |
13162 lt_prog_compiler_pic_F77='-fno-common' | |
13163 ;; | |
13164 | |
13165 msdosdjgpp*) | |
13166 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13167 # on systems that don't support them. | |
13168 lt_prog_compiler_can_build_shared_F77=no | |
13169 enable_shared=no | |
13170 ;; | |
13171 | |
13172 sysv4*MP*) | |
13173 if test -d /usr/nec; then | |
13174 lt_prog_compiler_pic_F77=-Kconform_pic | |
13175 fi | |
13176 ;; | |
13177 | |
13178 hpux*) | |
13179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13180 # not for PA HP-UX. | |
13181 case "$host_cpu" in | |
13182 hppa*64*|ia64*) | |
13183 # +Z the default | |
13184 ;; | |
13185 *) | |
13186 lt_prog_compiler_pic_F77='-fPIC' | |
13187 ;; | |
13188 esac | |
13189 ;; | |
13190 | |
13191 *) | |
13192 lt_prog_compiler_pic_F77='-fPIC' | |
13193 ;; | |
13194 esac | |
13195 else | |
13196 # PORTME Check for flag to pass linker flags through the system compiler. | |
13197 case $host_os in | |
13198 aix*) | |
13199 lt_prog_compiler_wl_F77='-Wl,' | |
13200 if test "$host_cpu" = ia64; then | |
13201 # AIX 5 now supports IA64 processor | |
13202 lt_prog_compiler_static_F77='-Bstatic' | |
13203 else | |
13204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13205 fi | |
13206 ;; | |
13207 | |
13208 mingw* | pw32* | os2*) | |
13209 # This hack is so that the source file can tell whether it is being | |
13210 # built for inclusion in a dll (and should export symbols for example). | |
13211 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13212 ;; | |
13213 | |
13214 hpux9* | hpux10* | hpux11*) | |
13215 lt_prog_compiler_wl_F77='-Wl,' | |
13216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13217 # not for PA HP-UX. | |
13218 case "$host_cpu" in | |
13219 hppa*64*|ia64*) | |
13220 # +Z the default | |
13221 ;; | |
13222 *) | |
13223 lt_prog_compiler_pic_F77='+Z' | |
13224 ;; | |
13225 esac | |
13226 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13227 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13228 ;; | |
13229 | |
13230 irix5* | irix6* | nonstopux*) | |
13231 lt_prog_compiler_wl_F77='-Wl,' | |
13232 # PIC (with -KPIC) is the default. | |
13233 lt_prog_compiler_static_F77='-non_shared' | |
13234 ;; | |
13235 | |
13236 newsos6) | |
13237 lt_prog_compiler_pic_F77='-KPIC' | |
13238 lt_prog_compiler_static_F77='-Bstatic' | |
13239 ;; | |
13240 | |
13241 linux*) | |
13242 case $CC in | |
13243 icc* | ecc*) | |
13244 lt_prog_compiler_wl_F77='-Wl,' | |
13245 lt_prog_compiler_pic_F77='-KPIC' | |
13246 lt_prog_compiler_static_F77='-static' | |
13247 ;; | |
13248 ccc*) | |
13249 lt_prog_compiler_wl_F77='-Wl,' | |
13250 # All Alpha code is PIC. | |
13251 lt_prog_compiler_static_F77='-non_shared' | |
13252 ;; | |
13253 esac | |
13254 ;; | |
13255 | |
13256 osf3* | osf4* | osf5*) | |
13257 lt_prog_compiler_wl_F77='-Wl,' | |
13258 # All OSF/1 code is PIC. | |
13259 lt_prog_compiler_static_F77='-non_shared' | |
13260 ;; | |
13261 | |
13262 sco3.2v5*) | |
13263 lt_prog_compiler_pic_F77='-Kpic' | |
13264 lt_prog_compiler_static_F77='-dn' | |
13265 ;; | |
13266 | |
13267 solaris*) | |
13268 lt_prog_compiler_wl_F77='-Wl,' | |
13269 lt_prog_compiler_pic_F77='-KPIC' | |
13270 lt_prog_compiler_static_F77='-Bstatic' | |
13271 ;; | |
13272 | |
13273 sunos4*) | |
13274 lt_prog_compiler_wl_F77='-Qoption ld ' | |
13275 lt_prog_compiler_pic_F77='-PIC' | |
13276 lt_prog_compiler_static_F77='-Bstatic' | |
13277 ;; | |
13278 | |
13279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13280 lt_prog_compiler_wl_F77='-Wl,' | |
13281 lt_prog_compiler_pic_F77='-KPIC' | |
13282 lt_prog_compiler_static_F77='-Bstatic' | |
13283 ;; | |
13284 | |
13285 sysv4*MP*) | |
13286 if test -d /usr/nec ;then | |
13287 lt_prog_compiler_pic_F77='-Kconform_pic' | |
13288 lt_prog_compiler_static_F77='-Bstatic' | |
13289 fi | |
13290 ;; | |
13291 | |
13292 uts4*) | |
13293 lt_prog_compiler_pic_F77='-pic' | |
13294 lt_prog_compiler_static_F77='-Bstatic' | |
13295 ;; | |
13296 | |
13297 *) | |
13298 lt_prog_compiler_can_build_shared_F77=no | |
13299 ;; | |
13300 esac | |
13301 fi | |
13302 | |
13303 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13304 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | |
13305 | |
13306 # | |
13307 # Check to make sure the PIC flag actually works. | |
13308 # | |
13309 if test -n "$lt_prog_compiler_pic_F77"; then | |
13310 | |
13311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
13312 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | |
13313 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13314 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13315 else | |
13316 lt_prog_compiler_pic_works_F77=no | |
13317 ac_outfile=conftest.$ac_objext | |
13318 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13319 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13320 # Insert the option either (1) after the last *FLAGS variable, or | |
13321 # (2) before a word containing "conftest.", or (3) at the end. | |
13322 # Note that $ac_compile itself does not contain backslashes and begins | |
13323 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13324 # The option is referenced via a variable to avoid confusing sed. | |
13325 lt_compile=`echo "$ac_compile" | $SED \ | |
13326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
13327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13328 -e 's:$: $lt_compiler_flag:'` | |
13329 (eval echo "\"\$as_me:13329: $lt_compile\"" >&5) | |
13330 (eval "$lt_compile" 2>conftest.err) | |
13331 ac_status=$? | |
13332 cat conftest.err >&5 | |
13333 echo "$as_me:13333: \$? = $ac_status" >&5 | |
13334 if (exit $ac_status) && test -s "$ac_outfile"; then | |
13335 # The compiler can only warn and ignore the option if not recognized | |
13336 # So say no if there are warnings | |
13337 if test ! -s conftest.err; then | |
13338 lt_prog_compiler_pic_works_F77=yes | |
13339 fi | |
13340 fi | |
13341 $rm conftest* | |
13342 | |
13343 fi | |
13344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13345 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | |
13346 | |
13347 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13348 case $lt_prog_compiler_pic_F77 in | |
13349 "" | " "*) ;; | |
13350 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13351 esac | |
13352 else | |
13353 lt_prog_compiler_pic_F77= | |
13354 lt_prog_compiler_can_build_shared_F77=no | |
13355 fi | |
13356 | |
13357 fi | |
13358 case "$host_os" in | |
13359 # For platforms which do not support PIC, -DPIC is meaningless: | |
13360 *djgpp*) | |
13361 lt_prog_compiler_pic_F77= | |
13362 ;; | |
13363 *) | |
13364 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13365 ;; | |
13366 esac | |
13367 | |
13368 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13369 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13370 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
13371 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13372 else | |
13373 lt_cv_prog_compiler_c_o_F77=no | |
13374 $rm -r conftest 2>/dev/null | |
13375 mkdir conftest | |
13376 cd conftest | |
13377 mkdir out | |
13378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13379 | |
13380 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13381 # Insert the option either (1) after the last *FLAGS variable, or | |
13382 # (2) before a word containing "conftest.", or (3) at the end. | |
13383 # Note that $ac_compile itself does not contain backslashes and begins | |
13384 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13385 lt_compile=`echo "$ac_compile" | $SED \ | |
13386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
13387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13388 -e 's:$: $lt_compiler_flag:'` | |
13389 (eval echo "\"\$as_me:13389: $lt_compile\"" >&5) | |
13390 (eval "$lt_compile" 2>out/conftest.err) | |
13391 ac_status=$? | |
13392 cat out/conftest.err >&5 | |
13393 echo "$as_me:13393: \$? = $ac_status" >&5 | |
13394 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13395 then | |
13396 # The compiler can only warn and ignore the option if not recognized | |
13397 # So say no if there are warnings | |
13398 if test ! -s out/conftest.err; then | |
13399 lt_cv_prog_compiler_c_o_F77=yes | |
13400 fi | |
13401 fi | |
13402 chmod u+w . | |
13403 $rm conftest* | |
13404 # SGI C++ compiler will create directory out/ii_files/ for | |
13405 # template instantiation | |
13406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13407 $rm out/* && rmdir out | |
13408 cd .. | |
13409 rmdir conftest | |
13410 $rm conftest* | |
13411 | |
13412 fi | |
13413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
13414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | |
13415 | |
13416 | |
13417 hard_links="nottested" | |
13418 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
13419 # do not overwrite the value of need_locks provided by the user | |
13420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13422 hard_links=yes | |
13423 $rm conftest* | |
13424 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13425 touch conftest.a | |
13426 ln conftest.a conftest.b 2>&5 || hard_links=no | |
13427 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13428 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13429 echo "${ECHO_T}$hard_links" >&6 | |
13430 if test "$hard_links" = no; then | |
13431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13433 need_locks=warn | |
13434 fi | |
13435 else | |
13436 need_locks=no | |
13437 fi | |
13438 | |
13439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
13441 | |
13442 runpath_var= | |
13443 allow_undefined_flag_F77= | |
13444 enable_shared_with_static_runtimes_F77=no | |
13445 archive_cmds_F77= | |
13446 archive_expsym_cmds_F77= | |
13447 old_archive_From_new_cmds_F77= | |
13448 old_archive_from_expsyms_cmds_F77= | |
13449 export_dynamic_flag_spec_F77= | |
13450 whole_archive_flag_spec_F77= | |
13451 thread_safe_flag_spec_F77= | |
13452 hardcode_libdir_flag_spec_F77= | |
13453 hardcode_libdir_flag_spec_ld_F77= | |
13454 hardcode_libdir_separator_F77= | |
13455 hardcode_direct_F77=no | |
13456 hardcode_minus_L_F77=no | |
13457 hardcode_shlibpath_var_F77=unsupported | |
13458 link_all_deplibs_F77=unknown | |
13459 hardcode_automatic_F77=no | |
13460 module_cmds_F77= | |
13461 module_expsym_cmds_F77= | |
13462 always_export_symbols_F77=no | |
13463 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13464 # include_expsyms should be a list of space-separated symbols to be *always* | |
13465 # included in the symbol list | |
13466 include_expsyms_F77= | |
13467 # exclude_expsyms can be an extended regexp of symbols to exclude | |
13468 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13470 # as well as any symbol that contains `d'. | |
13471 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
13472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
13473 # platforms (ab)use it in PIC code, but their linkers get confused if | |
13474 # the symbol is explicitly referenced. Since portable code cannot | |
13475 # rely on this symbol name, it's probably fine to never include it in | |
13476 # preloaded symbol tables. | |
13477 extract_expsyms_cmds= | |
13478 | |
13479 case $host_os in | |
13480 cygwin* | mingw* | pw32*) | |
13481 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
13482 # When not using gcc, we currently assume that we are using | |
13483 # Microsoft Visual C++. | |
13484 if test "$GCC" != yes; then | |
13485 with_gnu_ld=no | |
13486 fi | |
13487 ;; | |
13488 openbsd*) | |
13489 with_gnu_ld=no | |
13490 ;; | |
13491 esac | |
13492 | |
13493 ld_shlibs_F77=yes | |
13494 if test "$with_gnu_ld" = yes; then | |
13495 # If archive_cmds runs LD, not CC, wlarc should be empty | |
13496 wlarc='${wl}' | |
13497 | |
13498 # See if GNU ld supports shared libraries. | |
13499 case $host_os in | |
13500 aix3* | aix4* | aix5*) | |
13501 # On AIX/PPC, the GNU linker is very broken | |
13502 if test "$host_cpu" != ia64; then | |
13503 ld_shlibs_F77=no | |
13504 cat <<EOF 1>&2 | |
13505 | |
13506 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
13507 *** to be unable to reliably create shared libraries on AIX. | |
13508 *** Therefore, libtool is disabling shared libraries support. If you | |
13509 *** really care for shared libraries, you may want to modify your PATH | |
13510 *** so that a non-GNU linker is found, and then restart. | |
13511 | |
13512 EOF | |
13513 fi | |
13514 ;; | |
13515 | |
13516 amigaos*) | |
13517 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)' | |
13518 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13519 hardcode_minus_L_F77=yes | |
13520 | |
13521 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
13522 # that the semantics of dynamic libraries on AmigaOS, at least up | |
13523 # to version 4, is to share data among multiple programs linked | |
13524 # with the same dynamic library. Since this doesn't match the | |
13525 # behavior of shared libraries on other platforms, we can't use | |
13526 # them. | |
13527 ld_shlibs_F77=no | |
13528 ;; | |
13529 | |
13530 beos*) | |
13531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13532 allow_undefined_flag_F77=unsupported | |
13533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13534 # support --undefined. This deserves some investigation. FIXME | |
13535 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13536 else | |
13537 ld_shlibs_F77=no | |
13538 fi | |
13539 ;; | |
13540 | |
13541 cygwin* | mingw* | pw32*) | |
13542 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
13543 # as there is no search path for DLLs. | |
13544 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13545 allow_undefined_flag_F77=unsupported | |
13546 always_export_symbols_F77=no | |
13547 enable_shared_with_static_runtimes_F77=yes | |
13548 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
13549 | |
13550 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
13552 # If the export-symbols file already is a .def file (1st line | |
13553 # is EXPORTS), use it as is; otherwise, prepend... | |
13554 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13555 cp $export_symbols $output_objdir/$soname.def; | |
13556 else | |
13557 echo EXPORTS > $output_objdir/$soname.def; | |
13558 cat $export_symbols >> $output_objdir/$soname.def; | |
13559 fi~ | |
13560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
13561 else | |
13562 ld_shlibs=no | |
13563 fi | |
13564 ;; | |
13565 | |
13566 netbsd* | knetbsd*-gnu) | |
13567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13568 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13569 wlarc= | |
13570 else | |
13571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13573 fi | |
13574 ;; | |
13575 | |
13576 solaris* | sysv5*) | |
13577 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
13578 ld_shlibs_F77=no | |
13579 cat <<EOF 1>&2 | |
13580 | |
13581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13582 *** create shared libraries on Solaris systems. Therefore, libtool | |
13583 *** is disabling shared libraries support. We urge you to upgrade GNU | |
13584 *** binutils to release 2.9.1 or newer. Another option is to modify | |
13585 *** your PATH or compiler configuration so that the native linker is | |
13586 *** used, and then restart. | |
13587 | |
13588 EOF | |
13589 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13590 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13591 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13592 else | |
13593 ld_shlibs_F77=no | |
13594 fi | |
13595 ;; | |
13596 | |
13597 sunos4*) | |
13598 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13599 wlarc= | |
13600 hardcode_direct_F77=yes | |
13601 hardcode_shlibpath_var_F77=no | |
13602 ;; | |
13603 | |
13604 linux*) | |
13605 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
13606 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13607 archive_cmds_F77="$tmp_archive_cmds" | |
13608 supports_anon_versioning=no | |
13609 case `$LD -v 2>/dev/null` in | |
13610 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
13611 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13612 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13613 *\ 2.11.*) ;; # other 2.11 versions | |
13614 *) supports_anon_versioning=yes ;; | |
13615 esac | |
13616 if test $supports_anon_versioning = yes; then | |
13617 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
13618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13619 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13620 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13621 else | |
13622 archive_expsym_cmds_F77="$tmp_archive_cmds" | |
13623 fi | |
13624 else | |
13625 ld_shlibs_F77=no | |
13626 fi | |
13627 ;; | |
13628 | |
13629 *) | |
13630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13631 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13632 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13633 else | |
13634 ld_shlibs_F77=no | |
13635 fi | |
13636 ;; | |
13637 esac | |
13638 | |
13639 if test "$ld_shlibs_F77" = yes; then | |
13640 runpath_var=LD_RUN_PATH | |
13641 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
13642 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
13643 # ancient GNU ld didn't support --whole-archive et. al. | |
13644 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
13645 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13646 else | |
13647 whole_archive_flag_spec_F77= | |
13648 fi | |
13649 fi | |
13650 else | |
13651 # PORTME fill in a description of your system's linker (not GNU ld) | |
13652 case $host_os in | |
13653 aix3*) | |
13654 allow_undefined_flag_F77=unsupported | |
13655 always_export_symbols_F77=yes | |
13656 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' | |
13657 # Note: this linker hardcodes the directories in LIBPATH if there | |
13658 # are no directories specified by -L. | |
13659 hardcode_minus_L_F77=yes | |
13660 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
13661 # Neither direct hardcoding nor static linking is supported with a | |
13662 # broken collect2. | |
13663 hardcode_direct_F77=unsupported | |
13664 fi | |
13665 ;; | |
13666 | |
13667 aix4* | aix5*) | |
13668 if test "$host_cpu" = ia64; then | |
13669 # On IA64, the linker does run time linking by default, so we don't | |
13670 # have to do anything special. | |
13671 aix_use_runtimelinking=no | |
13672 exp_sym_flag='-Bexport' | |
13673 no_entry_flag="" | |
13674 else | |
13675 # If we're using GNU nm, then we don't want the "-C" option. | |
13676 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13677 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
13678 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' | |
13679 else | |
13680 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' | |
13681 fi | |
13682 aix_use_runtimelinking=no | |
13683 | |
13684 # Test if we are trying to use run time linking or normal | |
13685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13686 # need to do runtime linking. | |
13687 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
13688 for ld_flag in $LDFLAGS; do | |
13689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13690 aix_use_runtimelinking=yes | |
13691 break | |
13692 fi | |
13693 done | |
13694 esac | |
13695 | |
13696 exp_sym_flag='-bexport' | |
13697 no_entry_flag='-bnoentry' | |
13698 fi | |
13699 | |
13700 # When large executables or shared objects are built, AIX ld can | |
13701 # have problems creating the table of contents. If linking a library | |
13702 # or program results in "error TOC overflow" add -mminimal-toc to | |
13703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13705 | |
13706 archive_cmds_F77='' | |
13707 hardcode_direct_F77=yes | |
13708 hardcode_libdir_separator_F77=':' | |
13709 link_all_deplibs_F77=yes | |
13710 | |
13711 if test "$GCC" = yes; then | |
13712 case $host_os in aix4.012|aix4.012.*) | |
13713 # We only want to do this on AIX 4.2 and lower, the check | |
13714 # below for broken collect2 doesn't work under 4.3+ | |
13715 collect2name=`${CC} -print-prog-name=collect2` | |
13716 if test -f "$collect2name" && \ | |
13717 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
13718 then | |
13719 # We have reworked collect2 | |
13720 hardcode_direct_F77=yes | |
13721 else | |
13722 # We have old collect2 | |
13723 hardcode_direct_F77=unsupported | |
13724 # It fails to find uninstalled libraries when the uninstalled | |
13725 # path is not listed in the libpath. Setting hardcode_minus_L | |
13726 # to unsupported forces relinking | |
13727 hardcode_minus_L_F77=yes | |
13728 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13729 hardcode_libdir_separator_F77= | |
13730 fi | |
13731 esac | |
13732 shared_flag='-shared' | |
13733 else | |
13734 # not using gcc | |
13735 if test "$host_cpu" = ia64; then | |
13736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13737 # chokes on -Wl,-G. The following line is correct: | |
13738 shared_flag='-G' | |
13739 else | |
13740 if test "$aix_use_runtimelinking" = yes; then | |
13741 shared_flag='${wl}-G' | |
13742 else | |
13743 shared_flag='${wl}-bM:SRE' | |
13744 fi | |
13745 fi | |
13746 fi | |
13747 | |
13748 # It seems that -bexpall does not export symbols beginning with | |
13749 # underscore (_), so it is better to generate a list of symbols to export. | |
13750 always_export_symbols_F77=yes | |
13751 if test "$aix_use_runtimelinking" = yes; then | |
13752 # Warning - without using the other runtime loading flags (-brtl), | |
13753 # -berok will link without error, but may produce a broken library. | |
13754 allow_undefined_flag_F77='-berok' | |
13755 # Determine the default libpath from the value encoded in an empty executable. | |
13756 cat >conftest.$ac_ext <<_ACEOF | |
13757 program main | |
13758 | |
13759 end | |
13760 _ACEOF | |
13761 rm -f conftest.$ac_objext conftest$ac_exeext | |
13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13763 (eval $ac_link) 2>conftest.er1 | |
13764 ac_status=$? | |
13765 grep -v '^ *+' conftest.er1 >conftest.err | |
13766 rm -f conftest.er1 | |
13767 cat conftest.err >&5 | |
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13769 (exit $ac_status); } && | |
13770 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13772 (eval $ac_try) 2>&5 | |
13773 ac_status=$? | |
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13775 (exit $ac_status); }; } && | |
13776 { ac_try='test -s conftest$ac_exeext' | |
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13778 (eval $ac_try) 2>&5 | |
13779 ac_status=$? | |
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13781 (exit $ac_status); }; }; then | |
13782 | |
13783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
13784 }'` | |
13785 # Check for a 64-bit object if we didn't find anything. | |
13786 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; } | |
13787 }'`; fi | |
13788 else | |
13789 echo "$as_me: failed program was:" >&5 | |
13790 sed 's/^/| /' conftest.$ac_ext >&5 | |
13791 | |
13792 fi | |
13793 rm -f conftest.err conftest.$ac_objext \ | |
13794 conftest$ac_exeext conftest.$ac_ext | |
13795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13796 | |
13797 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13798 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
13799 else | |
13800 if test "$host_cpu" = ia64; then | |
13801 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
13802 allow_undefined_flag_F77="-z nodefs" | |
13803 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
13804 else | |
13805 # Determine the default libpath from the value encoded in an empty executable. | |
13806 cat >conftest.$ac_ext <<_ACEOF | |
13807 program main | |
13808 | |
13809 end | |
13810 _ACEOF | |
13811 rm -f conftest.$ac_objext conftest$ac_exeext | |
13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13813 (eval $ac_link) 2>conftest.er1 | |
13814 ac_status=$? | |
13815 grep -v '^ *+' conftest.er1 >conftest.err | |
13816 rm -f conftest.er1 | |
13817 cat conftest.err >&5 | |
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13819 (exit $ac_status); } && | |
13820 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13822 (eval $ac_try) 2>&5 | |
13823 ac_status=$? | |
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13825 (exit $ac_status); }; } && | |
13826 { ac_try='test -s conftest$ac_exeext' | |
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13828 (eval $ac_try) 2>&5 | |
13829 ac_status=$? | |
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13831 (exit $ac_status); }; }; then | |
13832 | |
13833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
13834 }'` | |
13835 # Check for a 64-bit object if we didn't find anything. | |
13836 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; } | |
13837 }'`; fi | |
13838 else | |
13839 echo "$as_me: failed program was:" >&5 | |
13840 sed 's/^/| /' conftest.$ac_ext >&5 | |
13841 | |
13842 fi | |
13843 rm -f conftest.err conftest.$ac_objext \ | |
13844 conftest$ac_exeext conftest.$ac_ext | |
13845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13846 | |
13847 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13848 # Warning - without using the other run time loading flags, | |
13849 # -berok will link without error, but may produce a broken library. | |
13850 no_undefined_flag_F77=' ${wl}-bernotok' | |
13851 allow_undefined_flag_F77=' ${wl}-berok' | |
13852 # -bexpall does not export symbols beginning with underscore (_) | |
13853 always_export_symbols_F77=yes | |
13854 # Exported symbols can be pulled into shared objects from archives | |
13855 whole_archive_flag_spec_F77=' ' | |
13856 archive_cmds_need_lc_F77=yes | |
13857 # This is similar to how AIX traditionally builds it's shared libraries. | |
13858 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
13859 fi | |
13860 fi | |
13861 ;; | |
13862 | |
13863 amigaos*) | |
13864 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)' | |
13865 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13866 hardcode_minus_L_F77=yes | |
13867 # see comment about different semantics on the GNU ld section | |
13868 ld_shlibs_F77=no | |
13869 ;; | |
13870 | |
13871 bsdi4*) | |
13872 export_dynamic_flag_spec_F77=-rdynamic | |
13873 ;; | |
13874 | |
13875 cygwin* | mingw* | pw32*) | |
13876 # When not using gcc, we currently assume that we are using | |
13877 # Microsoft Visual C++. | |
13878 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13879 # no search path for DLLs. | |
13880 hardcode_libdir_flag_spec_F77=' ' | |
13881 allow_undefined_flag_F77=unsupported | |
13882 # Tell ltmain to make .lib files, not .a files. | |
13883 libext=lib | |
13884 # Tell ltmain to make .dll files, not .so files. | |
13885 shrext=".dll" | |
13886 # FIXME: Setting linknames here is a bad hack. | |
13887 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
13888 # The linker will automatically build a .lib file if we build a DLL. | |
13889 old_archive_From_new_cmds_F77='true' | |
13890 # FIXME: Should let the user specify the lib program. | |
13891 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
13892 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
13893 enable_shared_with_static_runtimes_F77=yes | |
13894 ;; | |
13895 | |
13896 darwin* | rhapsody*) | |
13897 if test "$GXX" = yes ; then | |
13898 archive_cmds_need_lc_F77=no | |
13899 case "$host_os" in | |
13900 rhapsody* | darwin1.[012]) | |
13901 allow_undefined_flag_F77='-undefined suppress' | |
13902 ;; | |
13903 *) # Darwin 1.3 on | |
13904 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
13905 allow_undefined_flag_F77='-flat_namespace -undefined suppress' | |
13906 else | |
13907 case ${MACOSX_DEPLOYMENT_TARGET} in | |
13908 10.[012]) | |
13909 allow_undefined_flag_F77='-flat_namespace -undefined suppress' | |
13910 ;; | |
13911 10.*) | |
13912 allow_undefined_flag_F77='-undefined dynamic_lookup' | |
13913 ;; | |
13914 esac | |
13915 fi | |
13916 ;; | |
13917 esac | |
13918 lt_int_apple_cc_single_mod=no | |
13919 output_verbose_link_cmd='echo' | |
13920 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
13921 lt_int_apple_cc_single_mod=yes | |
13922 fi | |
13923 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
13924 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
13925 else | |
13926 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
13927 fi | |
13928 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
13929 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
13930 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
13931 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
13932 else | |
13933 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
13934 fi | |
13935 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}' | |
13936 hardcode_direct_F77=no | |
13937 hardcode_automatic_F77=yes | |
13938 hardcode_shlibpath_var_F77=unsupported | |
13939 whole_archive_flag_spec_F77='-all_load $convenience' | |
13940 link_all_deplibs_F77=yes | |
13941 else | |
13942 ld_shlibs_F77=no | |
13943 fi | |
13944 ;; | |
13945 | |
13946 dgux*) | |
13947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13948 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13949 hardcode_shlibpath_var_F77=no | |
13950 ;; | |
13951 | |
13952 freebsd1*) | |
13953 ld_shlibs_F77=no | |
13954 ;; | |
13955 | |
13956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
13957 # support. Future versions do this automatically, but an explicit c++rt0.o | |
13958 # does not break anything, and helps significantly (at the cost of a little | |
13959 # extra space). | |
13960 freebsd2.2*) | |
13961 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13962 hardcode_libdir_flag_spec_F77='-R$libdir' | |
13963 hardcode_direct_F77=yes | |
13964 hardcode_shlibpath_var_F77=no | |
13965 ;; | |
13966 | |
13967 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
13968 freebsd2*) | |
13969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13970 hardcode_direct_F77=yes | |
13971 hardcode_minus_L_F77=yes | |
13972 hardcode_shlibpath_var_F77=no | |
13973 ;; | |
13974 | |
13975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13976 freebsd* | kfreebsd*-gnu) | |
13977 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13978 hardcode_libdir_flag_spec_F77='-R$libdir' | |
13979 hardcode_direct_F77=yes | |
13980 hardcode_shlibpath_var_F77=no | |
13981 ;; | |
13982 | |
13983 hpux9*) | |
13984 if test "$GCC" = yes; then | |
13985 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' | |
13986 else | |
13987 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' | |
13988 fi | |
13989 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
13990 hardcode_libdir_separator_F77=: | |
13991 hardcode_direct_F77=yes | |
13992 | |
13993 # hardcode_minus_L: Not really in the search PATH, | |
13994 # but as the default location of the library. | |
13995 hardcode_minus_L_F77=yes | |
13996 export_dynamic_flag_spec_F77='${wl}-E' | |
13997 ;; | |
13998 | |
13999 hpux10* | hpux11*) | |
14000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14001 case "$host_cpu" in | |
14002 hppa*64*|ia64*) | |
14003 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14004 ;; | |
14005 *) | |
14006 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14007 ;; | |
14008 esac | |
14009 else | |
14010 case "$host_cpu" in | |
14011 hppa*64*|ia64*) | |
14012 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14013 ;; | |
14014 *) | |
14015 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14016 ;; | |
14017 esac | |
14018 fi | |
14019 if test "$with_gnu_ld" = no; then | |
14020 case "$host_cpu" in | |
14021 hppa*64*) | |
14022 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14023 hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14024 hardcode_libdir_separator_F77=: | |
14025 hardcode_direct_F77=no | |
14026 hardcode_shlibpath_var_F77=no | |
14027 ;; | |
14028 ia64*) | |
14029 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14030 hardcode_direct_F77=no | |
14031 hardcode_shlibpath_var_F77=no | |
14032 | |
14033 # hardcode_minus_L: Not really in the search PATH, | |
14034 # but as the default location of the library. | |
14035 hardcode_minus_L_F77=yes | |
14036 ;; | |
14037 *) | |
14038 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14039 hardcode_libdir_separator_F77=: | |
14040 hardcode_direct_F77=yes | |
14041 export_dynamic_flag_spec_F77='${wl}-E' | |
14042 | |
14043 # hardcode_minus_L: Not really in the search PATH, | |
14044 # but as the default location of the library. | |
14045 hardcode_minus_L_F77=yes | |
14046 ;; | |
14047 esac | |
14048 fi | |
14049 ;; | |
14050 | |
14051 irix5* | irix6* | nonstopux*) | |
14052 if test "$GCC" = yes; then | |
14053 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' | |
14054 else | |
14055 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' | |
14056 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14057 fi | |
14058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14059 hardcode_libdir_separator_F77=: | |
14060 link_all_deplibs_F77=yes | |
14061 ;; | |
14062 | |
14063 netbsd* | knetbsd*-gnu) | |
14064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14066 else | |
14067 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14068 fi | |
14069 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14070 hardcode_direct_F77=yes | |
14071 hardcode_shlibpath_var_F77=no | |
14072 ;; | |
14073 | |
14074 newsos6) | |
14075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14076 hardcode_direct_F77=yes | |
14077 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14078 hardcode_libdir_separator_F77=: | |
14079 hardcode_shlibpath_var_F77=no | |
14080 ;; | |
14081 | |
14082 openbsd*) | |
14083 hardcode_direct_F77=yes | |
14084 hardcode_shlibpath_var_F77=no | |
14085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14086 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14087 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14088 export_dynamic_flag_spec_F77='${wl}-E' | |
14089 else | |
14090 case $host_os in | |
14091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14092 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14093 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14094 ;; | |
14095 *) | |
14096 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14097 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14098 ;; | |
14099 esac | |
14100 fi | |
14101 ;; | |
14102 | |
14103 os2*) | |
14104 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14105 hardcode_minus_L_F77=yes | |
14106 allow_undefined_flag_F77=unsupported | |
14107 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' | |
14108 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
14109 ;; | |
14110 | |
14111 osf3*) | |
14112 if test "$GCC" = yes; then | |
14113 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14114 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' | |
14115 else | |
14116 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14117 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' | |
14118 fi | |
14119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14120 hardcode_libdir_separator_F77=: | |
14121 ;; | |
14122 | |
14123 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14124 if test "$GCC" = yes; then | |
14125 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14126 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' | |
14127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14128 else | |
14129 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14130 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' | |
14131 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~ | |
14132 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | |
14133 | |
14134 # Both c and cxx compiler support -rpath directly | |
14135 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14136 fi | |
14137 hardcode_libdir_separator_F77=: | |
14138 ;; | |
14139 | |
14140 sco3.2v5*) | |
14141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14142 hardcode_shlibpath_var_F77=no | |
14143 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
14144 runpath_var=LD_RUN_PATH | |
14145 hardcode_runpath_var=yes | |
14146 ;; | |
14147 | |
14148 solaris*) | |
14149 no_undefined_flag_F77=' -z text' | |
14150 if test "$GCC" = yes; then | |
14151 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14153 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
14154 else | |
14155 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14156 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14157 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14158 fi | |
14159 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14160 hardcode_shlibpath_var_F77=no | |
14161 case $host_os in | |
14162 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14163 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14164 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
14165 esac | |
14166 link_all_deplibs_F77=yes | |
14167 ;; | |
14168 | |
14169 sunos4*) | |
14170 if test "x$host_vendor" = xsequent; then | |
14171 # Use $CC to link under sequent, because it throws in some extra .o | |
14172 # files that make .init and .fini sections work. | |
14173 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14174 else | |
14175 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14176 fi | |
14177 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14178 hardcode_direct_F77=yes | |
14179 hardcode_minus_L_F77=yes | |
14180 hardcode_shlibpath_var_F77=no | |
14181 ;; | |
14182 | |
14183 sysv4) | |
14184 case $host_vendor in | |
14185 sni) | |
14186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14187 hardcode_direct_F77=yes # is this really true??? | |
14188 ;; | |
14189 siemens) | |
14190 ## LD is ld it makes a PLAMLIB | |
14191 ## CC just makes a GrossModule. | |
14192 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14193 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14194 hardcode_direct_F77=no | |
14195 ;; | |
14196 motorola) | |
14197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14198 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
14199 ;; | |
14200 esac | |
14201 runpath_var='LD_RUN_PATH' | |
14202 hardcode_shlibpath_var_F77=no | |
14203 ;; | |
14204 | |
14205 sysv4.3*) | |
14206 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14207 hardcode_shlibpath_var_F77=no | |
14208 export_dynamic_flag_spec_F77='-Bexport' | |
14209 ;; | |
14210 | |
14211 sysv4*MP*) | |
14212 if test -d /usr/nec; then | |
14213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14214 hardcode_shlibpath_var_F77=no | |
14215 runpath_var=LD_RUN_PATH | |
14216 hardcode_runpath_var=yes | |
14217 ld_shlibs_F77=yes | |
14218 fi | |
14219 ;; | |
14220 | |
14221 sysv4.2uw2*) | |
14222 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14223 hardcode_direct_F77=yes | |
14224 hardcode_minus_L_F77=no | |
14225 hardcode_shlibpath_var_F77=no | |
14226 hardcode_runpath_var=yes | |
14227 runpath_var=LD_RUN_PATH | |
14228 ;; | |
14229 | |
14230 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
14231 no_undefined_flag_F77='${wl}-z ${wl}text' | |
14232 if test "$GCC" = yes; then | |
14233 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14234 else | |
14235 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14236 fi | |
14237 runpath_var='LD_RUN_PATH' | |
14238 hardcode_shlibpath_var_F77=no | |
14239 ;; | |
14240 | |
14241 sysv5*) | |
14242 no_undefined_flag_F77=' -z text' | |
14243 # $CC -shared without GNU ld will not create a library from C++ | |
14244 # object files and a static libstdc++, better avoid it by now | |
14245 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14247 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14248 hardcode_libdir_flag_spec_F77= | |
14249 hardcode_shlibpath_var_F77=no | |
14250 runpath_var='LD_RUN_PATH' | |
14251 ;; | |
14252 | |
14253 uts4*) | |
14254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14255 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14256 hardcode_shlibpath_var_F77=no | |
14257 ;; | |
14258 | |
14259 *) | |
14260 ld_shlibs_F77=no | |
14261 ;; | |
14262 esac | |
14263 fi | |
14264 | |
14265 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
14266 echo "${ECHO_T}$ld_shlibs_F77" >&6 | |
14267 test "$ld_shlibs_F77" = no && can_build_shared=no | |
14268 | |
14269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14270 if test "$GCC" = yes; then | |
14271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14272 fi | |
14273 | |
14274 # | |
14275 # Do we need to explicitly link libc? | |
14276 # | |
14277 case "x$archive_cmds_need_lc_F77" in | |
14278 x|xyes) | |
14279 # Assume -lc should be added | |
14280 archive_cmds_need_lc_F77=yes | |
14281 | |
14282 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14283 case $archive_cmds_F77 in | |
14284 *'~'*) | |
14285 # FIXME: we may have to deal with multi-command sequences. | |
14286 ;; | |
14287 '$CC '*) | |
14288 # Test whether the compiler implicitly links with -lc since on some | |
14289 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14290 # to ld, don't add -lc before -lgcc. | |
14291 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
14293 $rm conftest* | |
14294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14295 | |
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14297 (eval $ac_compile) 2>&5 | |
14298 ac_status=$? | |
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14300 (exit $ac_status); } 2>conftest.err; then | |
14301 soname=conftest | |
14302 lib=conftest | |
14303 libobjs=conftest.$ac_objext | |
14304 deplibs= | |
14305 wl=$lt_prog_compiler_wl_F77 | |
14306 compiler_flags=-v | |
14307 linker_flags=-v | |
14308 verstring= | |
14309 output_objdir=. | |
14310 libname=conftest | |
14311 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
14312 allow_undefined_flag_F77= | |
14313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14314 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14315 ac_status=$? | |
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14317 (exit $ac_status); } | |
14318 then | |
14319 archive_cmds_need_lc_F77=no | |
14320 else | |
14321 archive_cmds_need_lc_F77=yes | |
14322 fi | |
14323 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
14324 else | |
14325 cat conftest.err 1>&5 | |
14326 fi | |
14327 $rm conftest* | |
14328 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
14329 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | |
14330 ;; | |
14331 esac | |
14332 fi | |
14333 ;; | |
14334 esac | |
14335 | |
14336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
14338 library_names_spec= | |
14339 libname_spec='lib$name' | |
14340 soname_spec= | |
14341 shrext=".so" | |
14342 postinstall_cmds= | |
14343 postuninstall_cmds= | |
14344 finish_cmds= | |
14345 finish_eval= | |
14346 shlibpath_var= | |
14347 shlibpath_overrides_runpath=unknown | |
14348 version_type=none | |
14349 dynamic_linker="$host_os ld.so" | |
14350 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14351 if test "$GCC" = yes; then | |
14352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14354 # if the path contains ";" then we assume it to be the separator | |
14355 # otherwise default to the standard path separator (i.e. ":") - it is | |
14356 # assumed that no part of a normal pathname contains ";" but that should | |
14357 # okay in the real world where ";" in dirpaths is itself problematic. | |
14358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14359 else | |
14360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14361 fi | |
14362 else | |
14363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14364 fi | |
14365 need_lib_prefix=unknown | |
14366 hardcode_into_libs=no | |
14367 | |
14368 # when you set need_version to no, make sure it does not cause -set_version | |
14369 # flags to be left without arguments | |
14370 need_version=unknown | |
14371 | |
14372 case $host_os in | |
14373 aix3*) | |
14374 version_type=linux | |
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14376 shlibpath_var=LIBPATH | |
14377 | |
14378 # AIX 3 has no versioning support, so we append a major version to the name. | |
14379 soname_spec='${libname}${release}${shared_ext}$major' | |
14380 ;; | |
14381 | |
14382 aix4* | aix5*) | |
14383 version_type=linux | |
14384 need_lib_prefix=no | |
14385 need_version=no | |
14386 hardcode_into_libs=yes | |
14387 if test "$host_cpu" = ia64; then | |
14388 # AIX 5 supports IA64 | |
14389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14390 shlibpath_var=LD_LIBRARY_PATH | |
14391 else | |
14392 # With GCC up to 2.95.x, collect2 would create an import file | |
14393 # for dependence libraries. The import file would start with | |
14394 # the line `#! .'. This would cause the generated library to | |
14395 # depend on `.', always an invalid library. This was fixed in | |
14396 # development snapshots of GCC prior to 3.0. | |
14397 case $host_os in | |
14398 aix4 | aix4.[01] | aix4.[01].*) | |
14399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14400 echo ' yes ' | |
14401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14402 : | |
14403 else | |
14404 can_build_shared=no | |
14405 fi | |
14406 ;; | |
14407 esac | |
14408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14409 # soname into executable. Probably we can add versioning support to | |
14410 # collect2, so additional links can be useful in future. | |
14411 if test "$aix_use_runtimelinking" = yes; then | |
14412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14413 # instead of lib<name>.a to let people know that these are not | |
14414 # typical AIX shared libraries. | |
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14416 else | |
14417 # We preserve .a as extension for shared libraries through AIX4.2 | |
14418 # and later when we are not doing run time linking. | |
14419 library_names_spec='${libname}${release}.a $libname.a' | |
14420 soname_spec='${libname}${release}${shared_ext}$major' | |
14421 fi | |
14422 shlibpath_var=LIBPATH | |
14423 fi | |
14424 ;; | |
14425 | |
14426 amigaos*) | |
14427 library_names_spec='$libname.ixlibrary $libname.a' | |
14428 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14429 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' | |
14430 ;; | |
14431 | |
14432 beos*) | |
14433 library_names_spec='${libname}${shared_ext}' | |
14434 dynamic_linker="$host_os ld.so" | |
14435 shlibpath_var=LIBRARY_PATH | |
14436 ;; | |
14437 | |
14438 bsdi4*) | |
14439 version_type=linux | |
14440 need_version=no | |
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14442 soname_spec='${libname}${release}${shared_ext}$major' | |
14443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14444 shlibpath_var=LD_LIBRARY_PATH | |
14445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14447 # the default ld.so.conf also contains /usr/contrib/lib and | |
14448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14449 # libtool to hard-code these into programs | |
14450 ;; | |
14451 | |
14452 cygwin* | mingw* | pw32*) | |
14453 version_type=windows | |
14454 shrext=".dll" | |
14455 need_version=no | |
14456 need_lib_prefix=no | |
14457 | |
14458 case $GCC,$host_os in | |
14459 yes,cygwin* | yes,mingw* | yes,pw32*) | |
14460 library_names_spec='$libname.dll.a' | |
14461 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14462 postinstall_cmds='base_file=`basename \${file}`~ | |
14463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14464 dldir=$destdir/`dirname \$dlpath`~ | |
14465 test -d \$dldir || mkdir -p \$dldir~ | |
14466 $install_prog $dir/$dlname \$dldir/$dlname' | |
14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14468 dlpath=$dir/\$dldll~ | |
14469 $rm \$dlpath' | |
14470 shlibpath_overrides_runpath=yes | |
14471 | |
14472 case $host_os in | |
14473 cygwin*) | |
14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14477 ;; | |
14478 mingw*) | |
14479 # MinGW DLLs use traditional 'lib' prefix | |
14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14483 # It is most probably a Windows format PATH printed by | |
14484 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14485 # path with ; separators, and with drive letters. We can handle the | |
14486 # drive letters (cygwin fileutils understands them), so leave them, | |
14487 # especially as we might pass files found there to a mingw objdump, | |
14488 # which wouldn't understand a cygwinified path. Ahh. | |
14489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14490 else | |
14491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14492 fi | |
14493 ;; | |
14494 pw32*) | |
14495 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
14497 ;; | |
14498 esac | |
14499 ;; | |
14500 | |
14501 *) | |
14502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14503 ;; | |
14504 esac | |
14505 dynamic_linker='Win32 ld.exe' | |
14506 # FIXME: first we should search . and the directory the executable is in | |
14507 shlibpath_var=PATH | |
14508 ;; | |
14509 | |
14510 darwin* | rhapsody*) | |
14511 dynamic_linker="$host_os dyld" | |
14512 version_type=darwin | |
14513 need_lib_prefix=no | |
14514 need_version=no | |
14515 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14516 soname_spec='${libname}${release}${major}$shared_ext' | |
14517 shlibpath_overrides_runpath=yes | |
14518 shlibpath_var=DYLD_LIBRARY_PATH | |
14519 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
14520 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
14521 if test "$GCC" = yes; then | |
14522 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"` | |
14523 else | |
14524 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14525 fi | |
14526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14527 ;; | |
14528 | |
14529 dgux*) | |
14530 version_type=linux | |
14531 need_lib_prefix=no | |
14532 need_version=no | |
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14534 soname_spec='${libname}${release}${shared_ext}$major' | |
14535 shlibpath_var=LD_LIBRARY_PATH | |
14536 ;; | |
14537 | |
14538 freebsd1*) | |
14539 dynamic_linker=no | |
14540 ;; | |
14541 | |
14542 kfreebsd*-gnu) | |
14543 version_type=linux | |
14544 need_lib_prefix=no | |
14545 need_version=no | |
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14547 soname_spec='${libname}${release}${shared_ext}$major' | |
14548 shlibpath_var=LD_LIBRARY_PATH | |
14549 shlibpath_overrides_runpath=no | |
14550 hardcode_into_libs=yes | |
14551 dynamic_linker='GNU ld.so' | |
14552 ;; | |
14553 | |
14554 freebsd*) | |
14555 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
14556 version_type=freebsd-$objformat | |
14557 case $version_type in | |
14558 freebsd-elf*) | |
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14560 need_version=no | |
14561 need_lib_prefix=no | |
14562 ;; | |
14563 freebsd-*) | |
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14565 need_version=yes | |
14566 ;; | |
14567 esac | |
14568 shlibpath_var=LD_LIBRARY_PATH | |
14569 case $host_os in | |
14570 freebsd2*) | |
14571 shlibpath_overrides_runpath=yes | |
14572 ;; | |
14573 freebsd3.01* | freebsdelf3.01*) | |
14574 shlibpath_overrides_runpath=yes | |
14575 hardcode_into_libs=yes | |
14576 ;; | |
14577 *) # from 3.2 on | |
14578 shlibpath_overrides_runpath=no | |
14579 hardcode_into_libs=yes | |
14580 ;; | |
14581 esac | |
14582 ;; | |
14583 | |
14584 gnu*) | |
14585 version_type=linux | |
14586 need_lib_prefix=no | |
14587 need_version=no | |
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14589 soname_spec='${libname}${release}${shared_ext}$major' | |
14590 shlibpath_var=LD_LIBRARY_PATH | |
14591 hardcode_into_libs=yes | |
14592 ;; | |
14593 | |
14594 hpux9* | hpux10* | hpux11*) | |
14595 # Give a soname corresponding to the major version so that dld.sl refuses to | |
14596 # link against other versions. | |
14597 version_type=sunos | |
14598 need_lib_prefix=no | |
14599 need_version=no | |
14600 case "$host_cpu" in | |
14601 ia64*) | |
14602 shrext='.so' | |
14603 hardcode_into_libs=yes | |
14604 dynamic_linker="$host_os dld.so" | |
14605 shlibpath_var=LD_LIBRARY_PATH | |
14606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14608 soname_spec='${libname}${release}${shared_ext}$major' | |
14609 if test "X$HPUX_IA64_MODE" = X32; then | |
14610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14611 else | |
14612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14613 fi | |
14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14615 ;; | |
14616 hppa*64*) | |
14617 shrext='.sl' | |
14618 hardcode_into_libs=yes | |
14619 dynamic_linker="$host_os dld.sl" | |
14620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14623 soname_spec='${libname}${release}${shared_ext}$major' | |
14624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14626 ;; | |
14627 *) | |
14628 shrext='.sl' | |
14629 dynamic_linker="$host_os dld.sl" | |
14630 shlibpath_var=SHLIB_PATH | |
14631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14633 soname_spec='${libname}${release}${shared_ext}$major' | |
14634 ;; | |
14635 esac | |
14636 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14637 postinstall_cmds='chmod 555 $lib' | |
14638 ;; | |
14639 | |
14640 irix5* | irix6* | nonstopux*) | |
14641 case $host_os in | |
14642 nonstopux*) version_type=nonstopux ;; | |
14643 *) | |
14644 if test "$lt_cv_prog_gnu_ld" = yes; then | |
14645 version_type=linux | |
14646 else | |
14647 version_type=irix | |
14648 fi ;; | |
14649 esac | |
14650 need_lib_prefix=no | |
14651 need_version=no | |
14652 soname_spec='${libname}${release}${shared_ext}$major' | |
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14654 case $host_os in | |
14655 irix5* | nonstopux*) | |
14656 libsuff= shlibsuff= | |
14657 ;; | |
14658 *) | |
14659 case $LD in # libtool.m4 will add one of these switches to LD | |
14660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14661 libsuff= shlibsuff= libmagic=32-bit;; | |
14662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14663 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14665 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14666 *) libsuff= shlibsuff= libmagic=never-match;; | |
14667 esac | |
14668 ;; | |
14669 esac | |
14670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14671 shlibpath_overrides_runpath=no | |
14672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14674 hardcode_into_libs=yes | |
14675 ;; | |
14676 | |
14677 # No shared lib support for Linux oldld, aout, or coff. | |
14678 linux*oldld* | linux*aout* | linux*coff*) | |
14679 dynamic_linker=no | |
14680 ;; | |
14681 | |
14682 # This must be Linux ELF. | |
14683 linux*) | |
14684 version_type=linux | |
14685 need_lib_prefix=no | |
14686 need_version=no | |
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14688 soname_spec='${libname}${release}${shared_ext}$major' | |
14689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14690 shlibpath_var=LD_LIBRARY_PATH | |
14691 shlibpath_overrides_runpath=no | |
14692 # This implies no fast_install, which is unacceptable. | |
14693 # Some rework will be needed to allow for fast_install | |
14694 # before this can be enabled. | |
14695 hardcode_into_libs=yes | |
14696 | |
14697 # Append ld.so.conf contents to the search path | |
14698 if test -f /etc/ld.so.conf; then | |
14699 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
14700 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
14701 fi | |
14702 | |
14703 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14704 # powerpc, because MkLinux only supported shared libraries with the | |
14705 # GNU dynamic linker. Since this was broken with cross compilers, | |
14706 # most powerpc-linux boxes support dynamic linking these days and | |
14707 # people can always --disable-shared, the test was removed, and we | |
14708 # assume the GNU/Linux dynamic linker is in use. | |
14709 dynamic_linker='GNU/Linux ld.so' | |
14710 ;; | |
14711 | |
14712 knetbsd*-gnu) | |
14713 version_type=linux | |
14714 need_lib_prefix=no | |
14715 need_version=no | |
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14717 soname_spec='${libname}${release}${shared_ext}$major' | |
14718 shlibpath_var=LD_LIBRARY_PATH | |
14719 shlibpath_overrides_runpath=no | |
14720 hardcode_into_libs=yes | |
14721 dynamic_linker='GNU ld.so' | |
14722 ;; | |
14723 | |
14724 netbsd*) | |
14725 version_type=sunos | |
14726 need_lib_prefix=no | |
14727 need_version=no | |
14728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14731 dynamic_linker='NetBSD (a.out) ld.so' | |
14732 else | |
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14734 soname_spec='${libname}${release}${shared_ext}$major' | |
14735 dynamic_linker='NetBSD ld.elf_so' | |
14736 fi | |
14737 shlibpath_var=LD_LIBRARY_PATH | |
14738 shlibpath_overrides_runpath=yes | |
14739 hardcode_into_libs=yes | |
14740 ;; | |
14741 | |
14742 newsos6) | |
14743 version_type=linux | |
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14745 shlibpath_var=LD_LIBRARY_PATH | |
14746 shlibpath_overrides_runpath=yes | |
14747 ;; | |
14748 | |
14749 nto-qnx*) | |
14750 version_type=linux | |
14751 need_lib_prefix=no | |
14752 need_version=no | |
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14754 soname_spec='${libname}${release}${shared_ext}$major' | |
14755 shlibpath_var=LD_LIBRARY_PATH | |
14756 shlibpath_overrides_runpath=yes | |
14757 ;; | |
14758 | |
14759 openbsd*) | |
14760 version_type=sunos | |
14761 need_lib_prefix=no | |
14762 need_version=yes | |
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14765 shlibpath_var=LD_LIBRARY_PATH | |
14766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14767 case $host_os in | |
14768 openbsd2.[89] | openbsd2.[89].*) | |
14769 shlibpath_overrides_runpath=no | |
14770 ;; | |
14771 *) | |
14772 shlibpath_overrides_runpath=yes | |
14773 ;; | |
14774 esac | |
14775 else | |
14776 shlibpath_overrides_runpath=yes | |
14777 fi | |
14778 ;; | |
14779 | |
14780 os2*) | |
14781 libname_spec='$name' | |
14782 shrext=".dll" | |
14783 need_lib_prefix=no | |
14784 library_names_spec='$libname${shared_ext} $libname.a' | |
14785 dynamic_linker='OS/2 ld.exe' | |
14786 shlibpath_var=LIBPATH | |
14787 ;; | |
14788 | |
14789 osf3* | osf4* | osf5*) | |
14790 version_type=osf | |
14791 need_lib_prefix=no | |
14792 need_version=no | |
14793 soname_spec='${libname}${release}${shared_ext}$major' | |
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14795 shlibpath_var=LD_LIBRARY_PATH | |
14796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14798 ;; | |
14799 | |
14800 sco3.2v5*) | |
14801 version_type=osf | |
14802 soname_spec='${libname}${release}${shared_ext}$major' | |
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14804 shlibpath_var=LD_LIBRARY_PATH | |
14805 ;; | |
14806 | |
14807 solaris*) | |
14808 version_type=linux | |
14809 need_lib_prefix=no | |
14810 need_version=no | |
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14812 soname_spec='${libname}${release}${shared_ext}$major' | |
14813 shlibpath_var=LD_LIBRARY_PATH | |
14814 shlibpath_overrides_runpath=yes | |
14815 hardcode_into_libs=yes | |
14816 # ldd complains unless libraries are executable | |
14817 postinstall_cmds='chmod +x $lib' | |
14818 ;; | |
14819 | |
14820 sunos4*) | |
14821 version_type=sunos | |
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14824 shlibpath_var=LD_LIBRARY_PATH | |
14825 shlibpath_overrides_runpath=yes | |
14826 if test "$with_gnu_ld" = yes; then | |
14827 need_lib_prefix=no | |
14828 fi | |
14829 need_version=yes | |
14830 ;; | |
14831 | |
14832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
14833 version_type=linux | |
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14835 soname_spec='${libname}${release}${shared_ext}$major' | |
14836 shlibpath_var=LD_LIBRARY_PATH | |
14837 case $host_vendor in | |
14838 sni) | |
14839 shlibpath_overrides_runpath=no | |
14840 need_lib_prefix=no | |
14841 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
14842 runpath_var=LD_RUN_PATH | |
14843 ;; | |
14844 siemens) | |
14845 need_lib_prefix=no | |
14846 ;; | |
14847 motorola) | |
14848 need_lib_prefix=no | |
14849 need_version=no | |
14850 shlibpath_overrides_runpath=no | |
14851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14852 ;; | |
14853 esac | |
14854 ;; | |
14855 | |
14856 sysv4*MP*) | |
14857 if test -d /usr/nec ;then | |
14858 version_type=linux | |
14859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14860 soname_spec='$libname${shared_ext}.$major' | |
14861 shlibpath_var=LD_LIBRARY_PATH | |
14862 fi | |
14863 ;; | |
14864 | |
14865 uts4*) | |
14866 version_type=linux | |
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14868 soname_spec='${libname}${release}${shared_ext}$major' | |
14869 shlibpath_var=LD_LIBRARY_PATH | |
14870 ;; | |
14871 | |
14872 *) | |
14873 dynamic_linker=no | |
14874 ;; | |
14875 esac | |
14876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
14877 echo "${ECHO_T}$dynamic_linker" >&6 | |
14878 test "$dynamic_linker" = no && can_build_shared=no | |
14879 | |
14880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
14881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
14882 hardcode_action_F77= | |
14883 if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
14884 test -n "$runpath_var F77" || \ | |
14885 test "X$hardcode_automatic_F77"="Xyes" ; then | |
14886 | |
14887 # We can hardcode non-existant directories. | |
14888 if test "$hardcode_direct_F77" != no && | |
14889 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14890 # have to relink, otherwise we might link with an installed library | |
14891 # when we should be linking with a yet-to-be-installed one | |
14892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
14893 test "$hardcode_minus_L_F77" != no; then | |
14894 # Linking always hardcodes the temporary library directory. | |
14895 hardcode_action_F77=relink | |
14896 else | |
14897 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14898 hardcode_action_F77=immediate | |
14899 fi | |
14900 else | |
14901 # We cannot hardcode anything, or else we can only hardcode existing | |
14902 # directories. | |
14903 hardcode_action_F77=unsupported | |
14904 fi | |
14905 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
14906 echo "${ECHO_T}$hardcode_action_F77" >&6 | |
14907 | |
14908 if test "$hardcode_action_F77" = relink; then | |
14909 # Fast installation is not supported | |
14910 enable_fast_install=no | |
14911 elif test "$shlibpath_overrides_runpath" = yes || | |
14912 test "$enable_shared" = no; then | |
14913 # Fast installation is not necessary | |
14914 enable_fast_install=needless | |
14915 fi | |
14916 | |
14917 striplib= | |
14918 old_striplib= | |
14919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
14920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
14921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
14922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
14923 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
14924 echo "$as_me:$LINENO: result: yes" >&5 | |
14925 echo "${ECHO_T}yes" >&6 | |
14926 else | |
14927 # FIXME - insert some real tests, host_os isn't really good enough | |
14928 case $host_os in | |
14929 darwin*) | |
14930 if test -n "$STRIP" ; then | |
14931 striplib="$STRIP -x" | |
14932 echo "$as_me:$LINENO: result: yes" >&5 | |
14933 echo "${ECHO_T}yes" >&6 | |
14934 else | |
14935 echo "$as_me:$LINENO: result: no" >&5 | |
14936 echo "${ECHO_T}no" >&6 | |
14937 fi | |
14938 ;; | |
14939 *) | |
14940 echo "$as_me:$LINENO: result: no" >&5 | |
14941 echo "${ECHO_T}no" >&6 | |
14942 ;; | |
14943 esac | |
14944 fi | |
14945 | |
14946 | |
14947 | |
14948 # The else clause should only fire when bootstrapping the | |
14949 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14950 # with your package, and you will get complaints that there are | |
14951 # no rules to generate ltmain.sh. | |
14952 if test -f "$ltmain"; then | |
14953 # See if we are running on zsh, and set the options which allow our commands through | |
14954 # without removal of \ escapes. | |
14955 if test -n "${ZSH_VERSION+set}" ; then | |
14956 setopt NO_GLOB_SUBST | |
14957 fi | |
14958 # Now quote all the things that may contain metacharacters while being | |
14959 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14960 # variables and quote the copies for generation of the libtool script. | |
14961 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
14962 SED SHELL STRIP \ | |
14963 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14964 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14965 deplibs_check_method reload_flag reload_cmds need_locks \ | |
14966 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14967 lt_cv_sys_global_symbol_to_c_name_address \ | |
14968 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14969 old_postinstall_cmds old_postuninstall_cmds \ | |
14970 compiler_F77 \ | |
14971 CC_F77 \ | |
14972 LD_F77 \ | |
14973 lt_prog_compiler_wl_F77 \ | |
14974 lt_prog_compiler_pic_F77 \ | |
14975 lt_prog_compiler_static_F77 \ | |
14976 lt_prog_compiler_no_builtin_flag_F77 \ | |
14977 export_dynamic_flag_spec_F77 \ | |
14978 thread_safe_flag_spec_F77 \ | |
14979 whole_archive_flag_spec_F77 \ | |
14980 enable_shared_with_static_runtimes_F77 \ | |
14981 old_archive_cmds_F77 \ | |
14982 old_archive_from_new_cmds_F77 \ | |
14983 predep_objects_F77 \ | |
14984 postdep_objects_F77 \ | |
14985 predeps_F77 \ | |
14986 postdeps_F77 \ | |
14987 compiler_lib_search_path_F77 \ | |
14988 archive_cmds_F77 \ | |
14989 archive_expsym_cmds_F77 \ | |
14990 postinstall_cmds_F77 \ | |
14991 postuninstall_cmds_F77 \ | |
14992 old_archive_from_expsyms_cmds_F77 \ | |
14993 allow_undefined_flag_F77 \ | |
14994 no_undefined_flag_F77 \ | |
14995 export_symbols_cmds_F77 \ | |
14996 hardcode_libdir_flag_spec_F77 \ | |
14997 hardcode_libdir_flag_spec_ld_F77 \ | |
14998 hardcode_libdir_separator_F77 \ | |
14999 hardcode_automatic_F77 \ | |
15000 module_cmds_F77 \ | |
15001 module_expsym_cmds_F77 \ | |
15002 lt_cv_prog_compiler_c_o_F77 \ | |
15003 exclude_expsyms_F77 \ | |
15004 include_expsyms_F77; do | |
15005 | |
15006 case $var in | |
15007 old_archive_cmds_F77 | \ | |
15008 old_archive_from_new_cmds_F77 | \ | |
15009 archive_cmds_F77 | \ | |
15010 archive_expsym_cmds_F77 | \ | |
15011 module_cmds_F77 | \ | |
15012 module_expsym_cmds_F77 | \ | |
15013 old_archive_from_expsyms_cmds_F77 | \ | |
15014 export_symbols_cmds_F77 | \ | |
15015 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15016 postinstall_cmds | postuninstall_cmds | \ | |
15017 old_postinstall_cmds | old_postuninstall_cmds | \ | |
15018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15019 # Double-quote double-evaled strings. | |
15020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15021 ;; | |
15022 *) | |
15023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15024 ;; | |
15025 esac | |
15026 done | |
15027 | |
15028 case $lt_echo in | |
15029 *'\$0 --fallback-echo"') | |
15030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15031 ;; | |
15032 esac | |
15033 | |
15034 cfgfile="$ofile" | |
15035 | |
15036 cat <<__EOF__ >> "$cfgfile" | |
15037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15038 | |
15039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15040 | |
15041 # Shell to use when invoking shell scripts. | |
15042 SHELL=$lt_SHELL | |
15043 | |
15044 # Whether or not to build shared libraries. | |
15045 build_libtool_libs=$enable_shared | |
15046 | |
15047 # Whether or not to build static libraries. | |
15048 build_old_libs=$enable_static | |
15049 | |
15050 # Whether or not to add -lc for building shared libraries. | |
15051 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15052 | |
15053 # Whether or not to disallow shared libs when runtime libs are static | |
15054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15055 | |
15056 # Whether or not to optimize for fast installation. | |
15057 fast_install=$enable_fast_install | |
15058 | |
15059 # The host system. | |
15060 host_alias=$host_alias | |
15061 host=$host | |
15062 | |
15063 # An echo program that does not interpret backslashes. | |
15064 echo=$lt_echo | |
15065 | |
15066 # The archiver. | |
15067 AR=$lt_AR | |
15068 AR_FLAGS=$lt_AR_FLAGS | |
15069 | |
15070 # A C compiler. | |
15071 LTCC=$lt_LTCC | |
15072 | |
15073 # A language-specific compiler. | |
15074 CC=$lt_compiler_F77 | |
15075 | |
15076 # Is the compiler the GNU C compiler? | |
15077 with_gcc=$GCC_F77 | |
15078 | |
15079 # An ERE matcher. | |
15080 EGREP=$lt_EGREP | |
15081 | |
15082 # The linker used to build libraries. | |
15083 LD=$lt_LD_F77 | |
15084 | |
15085 # Whether we need hard or soft links. | |
15086 LN_S=$lt_LN_S | |
15087 | |
15088 # A BSD-compatible nm program. | |
15089 NM=$lt_NM | |
15090 | |
15091 # A symbol stripping program | |
15092 STRIP=$lt_STRIP | |
15093 | |
15094 # Used to examine libraries when file_magic_cmd begins "file" | |
15095 MAGIC_CMD=$MAGIC_CMD | |
15096 | |
15097 # Used on cygwin: DLL creation program. | |
15098 DLLTOOL="$DLLTOOL" | |
15099 | |
15100 # Used on cygwin: object dumper. | |
15101 OBJDUMP="$OBJDUMP" | |
15102 | |
15103 # Used on cygwin: assembler. | |
15104 AS="$AS" | |
15105 | |
15106 # The name of the directory that contains temporary libtool files. | |
15107 objdir=$objdir | |
15108 | |
15109 # How to create reloadable object files. | |
15110 reload_flag=$lt_reload_flag | |
15111 reload_cmds=$lt_reload_cmds | |
15112 | |
15113 # How to pass a linker flag through the compiler. | |
15114 wl=$lt_lt_prog_compiler_wl_F77 | |
15115 | |
15116 # Object file suffix (normally "o"). | |
15117 objext="$ac_objext" | |
15118 | |
15119 # Old archive suffix (normally "a"). | |
15120 libext="$libext" | |
15121 | |
15122 # Shared library suffix (normally ".so"). | |
15123 shrext='$shrext' | |
15124 | |
15125 # Executable file suffix (normally ""). | |
15126 exeext="$exeext" | |
15127 | |
15128 # Additional compiler flags for building library objects. | |
15129 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15130 pic_mode=$pic_mode | |
15131 | |
15132 # What is the maximum length of a command? | |
15133 max_cmd_len=$lt_cv_sys_max_cmd_len | |
15134 | |
15135 # Does compiler simultaneously support -c and -o options? | |
15136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15137 | |
15138 # Must we lock files when doing compilation ? | |
15139 need_locks=$lt_need_locks | |
15140 | |
15141 # Do we need the lib prefix for modules? | |
15142 need_lib_prefix=$need_lib_prefix | |
15143 | |
15144 # Do we need a version for libraries? | |
15145 need_version=$need_version | |
15146 | |
15147 # Whether dlopen is supported. | |
15148 dlopen_support=$enable_dlopen | |
15149 | |
15150 # Whether dlopen of programs is supported. | |
15151 dlopen_self=$enable_dlopen_self | |
15152 | |
15153 # Whether dlopen of statically linked programs is supported. | |
15154 dlopen_self_static=$enable_dlopen_self_static | |
15155 | |
15156 # Compiler flag to prevent dynamic linking. | |
15157 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15158 | |
15159 # Compiler flag to turn off builtin functions. | |
15160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15161 | |
15162 # Compiler flag to allow reflexive dlopens. | |
15163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15164 | |
15165 # Compiler flag to generate shared objects directly from archives. | |
15166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15167 | |
15168 # Compiler flag to generate thread-safe objects. | |
15169 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15170 | |
15171 # Library versioning type. | |
15172 version_type=$version_type | |
15173 | |
15174 # Format of library name prefix. | |
15175 libname_spec=$lt_libname_spec | |
15176 | |
15177 # List of archive names. First name is the real one, the rest are links. | |
15178 # The last name is the one that the linker finds with -lNAME. | |
15179 library_names_spec=$lt_library_names_spec | |
15180 | |
15181 # The coded name of the library, if different from the real name. | |
15182 soname_spec=$lt_soname_spec | |
15183 | |
15184 # Commands used to build and install an old-style archive. | |
15185 RANLIB=$lt_RANLIB | |
15186 old_archive_cmds=$lt_old_archive_cmds_F77 | |
15187 old_postinstall_cmds=$lt_old_postinstall_cmds | |
15188 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15189 | |
15190 # Create an old-style archive from a shared archive. | |
15191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15192 | |
15193 # Create a temporary old-style archive to link instead of a shared archive. | |
15194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15195 | |
15196 # Commands used to build and install a shared archive. | |
15197 archive_cmds=$lt_archive_cmds_F77 | |
15198 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15199 postinstall_cmds=$lt_postinstall_cmds | |
15200 postuninstall_cmds=$lt_postuninstall_cmds | |
15201 | |
15202 # Commands used to build a loadable module (assumed same as above if empty) | |
15203 module_cmds=$lt_module_cmds_F77 | |
15204 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
15205 | |
15206 # Commands to strip libraries. | |
15207 old_striplib=$lt_old_striplib | |
15208 striplib=$lt_striplib | |
15209 | |
15210 # Dependencies to place before the objects being linked to create a | |
15211 # shared library. | |
15212 predep_objects=$lt_predep_objects_F77 | |
15213 | |
15214 # Dependencies to place after the objects being linked to create a | |
15215 # shared library. | |
15216 postdep_objects=$lt_postdep_objects_F77 | |
15217 | |
15218 # Dependencies to place before the objects being linked to create a | |
15219 # shared library. | |
15220 predeps=$lt_predeps_F77 | |
15221 | |
15222 # Dependencies to place after the objects being linked to create a | |
15223 # shared library. | |
15224 postdeps=$lt_postdeps_F77 | |
15225 | |
15226 # The library search path used internally by the compiler when linking | |
15227 # a shared library. | |
15228 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
15229 | |
15230 # Method to check whether dependent libraries are shared objects. | |
15231 deplibs_check_method=$lt_deplibs_check_method | |
15232 | |
15233 # Command to use when deplibs_check_method == file_magic. | |
15234 file_magic_cmd=$lt_file_magic_cmd | |
15235 | |
15236 # Flag that allows shared libraries with undefined symbols to be built. | |
15237 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
15238 | |
15239 # Flag that forces no undefined symbols. | |
15240 no_undefined_flag=$lt_no_undefined_flag_F77 | |
15241 | |
15242 # Commands used to finish a libtool library installation in a directory. | |
15243 finish_cmds=$lt_finish_cmds | |
15244 | |
15245 # Same as above, but a single script fragment to be evaled but not shown. | |
15246 finish_eval=$lt_finish_eval | |
15247 | |
15248 # Take the output of nm and produce a listing of raw symbols and C names. | |
15249 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15250 | |
15251 # Transform the output of nm in a proper C declaration | |
15252 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15253 | |
15254 # Transform the output of nm in a C name address pair | |
15255 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15256 | |
15257 # This is the shared library runtime path variable. | |
15258 runpath_var=$runpath_var | |
15259 | |
15260 # This is the shared library path variable. | |
15261 shlibpath_var=$shlibpath_var | |
15262 | |
15263 # Is shlibpath searched before the hard-coded library search path? | |
15264 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15265 | |
15266 # How to hardcode a shared library path into an executable. | |
15267 hardcode_action=$hardcode_action_F77 | |
15268 | |
15269 # Whether we should hardcode library paths into libraries. | |
15270 hardcode_into_libs=$hardcode_into_libs | |
15271 | |
15272 # Flag to hardcode \$libdir into a binary during linking. | |
15273 # This must work even if \$libdir does not exist. | |
15274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
15275 | |
15276 # If ld is used when linking, flag to hardcode \$libdir into | |
15277 # a binary during linking. This must work even if \$libdir does | |
15278 # not exist. | |
15279 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
15280 | |
15281 # Whether we need a single -rpath flag with a separated argument. | |
15282 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
15283 | |
15284 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15285 # resulting binary. | |
15286 hardcode_direct=$hardcode_direct_F77 | |
15287 | |
15288 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15289 # resulting binary. | |
15290 hardcode_minus_L=$hardcode_minus_L_F77 | |
15291 | |
15292 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15293 # the resulting binary. | |
15294 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
15295 | |
15296 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15297 # and all subsequent libraries and executables linked against it. | |
15298 hardcode_automatic=$hardcode_automatic_F77 | |
15299 | |
15300 # Variables whose values should be saved in libtool wrapper scripts and | |
15301 # restored at relink time. | |
15302 variables_saved_for_relink="$variables_saved_for_relink" | |
15303 | |
15304 # Whether libtool must link a program against all its dependency libraries. | |
15305 link_all_deplibs=$link_all_deplibs_F77 | |
15306 | |
15307 # Compile-time system search path for libraries | |
15308 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15309 | |
15310 # Run-time system search path for libraries | |
15311 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15312 | |
15313 # Fix the shell variable \$srcfile for the compiler. | |
15314 fix_srcfile_path="$fix_srcfile_path_F77" | |
15315 | |
15316 # Set to yes if exported symbols are required. | |
15317 always_export_symbols=$always_export_symbols_F77 | |
15318 | |
15319 # The commands to list exported symbols. | |
15320 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
15321 | |
15322 # The commands to extract the exported symbol list from a shared archive. | |
15323 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15324 | |
15325 # Symbols that should not be listed in the preloaded symbols. | |
15326 exclude_expsyms=$lt_exclude_expsyms_F77 | |
15327 | |
15328 # Symbols that must always be exported. | |
15329 include_expsyms=$lt_include_expsyms_F77 | |
15330 | |
15331 # ### END LIBTOOL TAG CONFIG: $tagname | |
15332 | |
15333 __EOF__ | |
15334 | |
15335 | |
15336 else | |
15337 # If there is no Makefile yet, we rely on a make rule to execute | |
15338 # `config.status --recheck' to rerun these tests and create the | |
15339 # libtool script then. | |
15340 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15341 if test -f "$ltmain_in"; then | |
15342 test -f Makefile && make "$ltmain" | |
15343 fi | |
15344 fi | |
15345 | |
15346 | |
15347 ac_ext=c | |
15348 ac_cpp='$CPP $CPPFLAGS' | |
15349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15351 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15352 | |
15353 CC="$lt_save_CC" | |
15354 | |
15355 else | |
15356 tagname="" | |
15357 fi | |
15358 ;; | |
15359 | |
15360 GCJ) | |
15361 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
15362 | |
15363 | |
15364 | |
15365 # Source file extension for Java test sources. | |
15366 ac_ext=java | |
15367 | |
15368 # Object file extension for compiled Java test sources. | |
15369 objext=o | |
15370 objext_GCJ=$objext | |
15371 | |
15372 # Code to be used in simple compile tests | |
15373 lt_simple_compile_test_code="class foo {}\n" | |
15374 | |
15375 # Code to be used in simple link tests | |
15376 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | |
15377 | |
15378 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15379 | |
15380 # If no C compiler was specified, use CC. | |
15381 LTCC=${LTCC-"$CC"} | |
15382 | |
15383 # Allow CC to be a program name with arguments. | |
15384 compiler=$CC | |
15385 | |
15386 | |
15387 # Allow CC to be a program name with arguments. | |
15388 lt_save_CC="$CC" | |
15389 CC=${GCJ-"gcj"} | |
15390 compiler=$CC | |
15391 compiler_GCJ=$CC | |
15392 | |
15393 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
15394 archive_cmds_need_lc_GCJ=no | |
15395 | |
15396 | |
15397 lt_prog_compiler_no_builtin_flag_GCJ= | |
15398 | |
15399 if test "$GCC" = yes; then | |
15400 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
15401 | |
15402 | |
15403 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15404 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15405 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15406 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15407 else | |
15408 lt_cv_prog_compiler_rtti_exceptions=no | |
15409 ac_outfile=conftest.$ac_objext | |
15410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15411 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
15412 # Insert the option either (1) after the last *FLAGS variable, or | |
15413 # (2) before a word containing "conftest.", or (3) at the end. | |
15414 # Note that $ac_compile itself does not contain backslashes and begins | |
15415 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15416 # The option is referenced via a variable to avoid confusing sed. | |
15417 lt_compile=`echo "$ac_compile" | $SED \ | |
15418 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
15419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15420 -e 's:$: $lt_compiler_flag:'` | |
15421 (eval echo "\"\$as_me:15421: $lt_compile\"" >&5) | |
15422 (eval "$lt_compile" 2>conftest.err) | |
15423 ac_status=$? | |
15424 cat conftest.err >&5 | |
15425 echo "$as_me:15425: \$? = $ac_status" >&5 | |
15426 if (exit $ac_status) && test -s "$ac_outfile"; then | |
15427 # The compiler can only warn and ignore the option if not recognized | |
15428 # So say no if there are warnings | |
15429 if test ! -s conftest.err; then | |
15430 lt_cv_prog_compiler_rtti_exceptions=yes | |
15431 fi | |
15432 fi | |
15433 $rm conftest* | |
15434 | |
15435 fi | |
15436 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15437 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15438 | |
15439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15440 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
15441 else | |
15442 : | |
15443 fi | |
15444 | |
15445 fi | |
15446 | |
15447 lt_prog_compiler_wl_GCJ= | |
15448 lt_prog_compiler_pic_GCJ= | |
15449 lt_prog_compiler_static_GCJ= | |
15450 | |
15451 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15453 | |
15454 if test "$GCC" = yes; then | |
15455 lt_prog_compiler_wl_GCJ='-Wl,' | |
15456 lt_prog_compiler_static_GCJ='-static' | |
15457 | |
15458 case $host_os in | |
15459 aix*) | |
15460 # All AIX code is PIC. | |
15461 if test "$host_cpu" = ia64; then | |
15462 # AIX 5 now supports IA64 processor | |
15463 lt_prog_compiler_static_GCJ='-Bstatic' | |
15464 fi | |
15465 ;; | |
15466 | |
15467 amigaos*) | |
15468 # FIXME: we need at least 68020 code to build shared libraries, but | |
15469 # adding the `-m68020' flag to GCC prevents building anything better, | |
15470 # like `-m68040'. | |
15471 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
15472 ;; | |
15473 | |
15474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15475 # PIC is the default for these OSes. | |
15476 ;; | |
15477 | |
15478 mingw* | pw32* | os2*) | |
15479 # This hack is so that the source file can tell whether it is being | |
15480 # built for inclusion in a dll (and should export symbols for example). | |
15481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15482 ;; | |
15483 | |
15484 darwin* | rhapsody*) | |
15485 # PIC is the default on this platform | |
15486 # Common symbols not allowed in MH_DYLIB files | |
15487 lt_prog_compiler_pic_GCJ='-fno-common' | |
15488 ;; | |
15489 | |
15490 msdosdjgpp*) | |
15491 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15492 # on systems that don't support them. | |
15493 lt_prog_compiler_can_build_shared_GCJ=no | |
15494 enable_shared=no | |
15495 ;; | |
15496 | |
15497 sysv4*MP*) | |
15498 if test -d /usr/nec; then | |
15499 lt_prog_compiler_pic_GCJ=-Kconform_pic | |
15500 fi | |
15501 ;; | |
15502 | |
15503 hpux*) | |
15504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15505 # not for PA HP-UX. | |
15506 case "$host_cpu" in | |
15507 hppa*64*|ia64*) | |
15508 # +Z the default | |
15509 ;; | |
15510 *) | |
15511 lt_prog_compiler_pic_GCJ='-fPIC' | |
15512 ;; | |
15513 esac | |
15514 ;; | |
15515 | |
15516 *) | |
15517 lt_prog_compiler_pic_GCJ='-fPIC' | |
15518 ;; | |
15519 esac | |
15520 else | |
15521 # PORTME Check for flag to pass linker flags through the system compiler. | |
15522 case $host_os in | |
15523 aix*) | |
15524 lt_prog_compiler_wl_GCJ='-Wl,' | |
15525 if test "$host_cpu" = ia64; then | |
15526 # AIX 5 now supports IA64 processor | |
15527 lt_prog_compiler_static_GCJ='-Bstatic' | |
15528 else | |
15529 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
15530 fi | |
15531 ;; | |
15532 | |
15533 mingw* | pw32* | os2*) | |
15534 # This hack is so that the source file can tell whether it is being | |
15535 # built for inclusion in a dll (and should export symbols for example). | |
15536 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15537 ;; | |
15538 | |
15539 hpux9* | hpux10* | hpux11*) | |
15540 lt_prog_compiler_wl_GCJ='-Wl,' | |
15541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15542 # not for PA HP-UX. | |
15543 case "$host_cpu" in | |
15544 hppa*64*|ia64*) | |
15545 # +Z the default | |
15546 ;; | |
15547 *) | |
15548 lt_prog_compiler_pic_GCJ='+Z' | |
15549 ;; | |
15550 esac | |
15551 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
15552 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
15553 ;; | |
15554 | |
15555 irix5* | irix6* | nonstopux*) | |
15556 lt_prog_compiler_wl_GCJ='-Wl,' | |
15557 # PIC (with -KPIC) is the default. | |
15558 lt_prog_compiler_static_GCJ='-non_shared' | |
15559 ;; | |
15560 | |
15561 newsos6) | |
15562 lt_prog_compiler_pic_GCJ='-KPIC' | |
15563 lt_prog_compiler_static_GCJ='-Bstatic' | |
15564 ;; | |
15565 | |
15566 linux*) | |
15567 case $CC in | |
15568 icc* | ecc*) | |
15569 lt_prog_compiler_wl_GCJ='-Wl,' | |
15570 lt_prog_compiler_pic_GCJ='-KPIC' | |
15571 lt_prog_compiler_static_GCJ='-static' | |
15572 ;; | |
15573 ccc*) | |
15574 lt_prog_compiler_wl_GCJ='-Wl,' | |
15575 # All Alpha code is PIC. | |
15576 lt_prog_compiler_static_GCJ='-non_shared' | |
15577 ;; | |
15578 esac | |
15579 ;; | |
15580 | |
15581 osf3* | osf4* | osf5*) | |
15582 lt_prog_compiler_wl_GCJ='-Wl,' | |
15583 # All OSF/1 code is PIC. | |
15584 lt_prog_compiler_static_GCJ='-non_shared' | |
15585 ;; | |
15586 | |
15587 sco3.2v5*) | |
15588 lt_prog_compiler_pic_GCJ='-Kpic' | |
15589 lt_prog_compiler_static_GCJ='-dn' | |
15590 ;; | |
15591 | |
15592 solaris*) | |
15593 lt_prog_compiler_wl_GCJ='-Wl,' | |
15594 lt_prog_compiler_pic_GCJ='-KPIC' | |
15595 lt_prog_compiler_static_GCJ='-Bstatic' | |
15596 ;; | |
15597 | |
15598 sunos4*) | |
15599 lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
15600 lt_prog_compiler_pic_GCJ='-PIC' | |
15601 lt_prog_compiler_static_GCJ='-Bstatic' | |
15602 ;; | |
15603 | |
15604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15605 lt_prog_compiler_wl_GCJ='-Wl,' | |
15606 lt_prog_compiler_pic_GCJ='-KPIC' | |
15607 lt_prog_compiler_static_GCJ='-Bstatic' | |
15608 ;; | |
15609 | |
15610 sysv4*MP*) | |
15611 if test -d /usr/nec ;then | |
15612 lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
15613 lt_prog_compiler_static_GCJ='-Bstatic' | |
15614 fi | |
15615 ;; | |
15616 | |
15617 uts4*) | |
15618 lt_prog_compiler_pic_GCJ='-pic' | |
15619 lt_prog_compiler_static_GCJ='-Bstatic' | |
15620 ;; | |
15621 | |
15622 *) | |
15623 lt_prog_compiler_can_build_shared_GCJ=no | |
15624 ;; | |
15625 esac | |
15626 fi | |
15627 | |
15628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
15629 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
15630 | |
15631 # | |
15632 # Check to make sure the PIC flag actually works. | |
15633 # | |
15634 if test -n "$lt_prog_compiler_pic_GCJ"; then | |
15635 | |
15636 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
15637 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
15638 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
15639 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15640 else | |
15641 lt_prog_compiler_pic_works_GCJ=no | |
15642 ac_outfile=conftest.$ac_objext | |
15643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15644 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
15645 # Insert the option either (1) after the last *FLAGS variable, or | |
15646 # (2) before a word containing "conftest.", or (3) at the end. | |
15647 # Note that $ac_compile itself does not contain backslashes and begins | |
15648 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15649 # The option is referenced via a variable to avoid confusing sed. | |
15650 lt_compile=`echo "$ac_compile" | $SED \ | |
15651 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
15652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15653 -e 's:$: $lt_compiler_flag:'` | |
15654 (eval echo "\"\$as_me:15654: $lt_compile\"" >&5) | |
15655 (eval "$lt_compile" 2>conftest.err) | |
15656 ac_status=$? | |
15657 cat conftest.err >&5 | |
15658 echo "$as_me:15658: \$? = $ac_status" >&5 | |
15659 if (exit $ac_status) && test -s "$ac_outfile"; then | |
15660 # The compiler can only warn and ignore the option if not recognized | |
15661 # So say no if there are warnings | |
15662 if test ! -s conftest.err; then | |
15663 lt_prog_compiler_pic_works_GCJ=yes | |
15664 fi | |
15665 fi | |
15666 $rm conftest* | |
15667 | |
15668 fi | |
15669 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
15670 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
15671 | |
15672 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
15673 case $lt_prog_compiler_pic_GCJ in | |
15674 "" | " "*) ;; | |
15675 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
15676 esac | |
15677 else | |
15678 lt_prog_compiler_pic_GCJ= | |
15679 lt_prog_compiler_can_build_shared_GCJ=no | |
15680 fi | |
15681 | |
15682 fi | |
15683 case "$host_os" in | |
15684 # For platforms which do not support PIC, -DPIC is meaningless: | |
15685 *djgpp*) | |
15686 lt_prog_compiler_pic_GCJ= | |
15687 ;; | |
15688 *) | |
15689 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
15690 ;; | |
15691 esac | |
15692 | |
15693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
15695 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
15696 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15697 else | |
15698 lt_cv_prog_compiler_c_o_GCJ=no | |
15699 $rm -r conftest 2>/dev/null | |
15700 mkdir conftest | |
15701 cd conftest | |
15702 mkdir out | |
15703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15704 | |
15705 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15706 # Insert the option either (1) after the last *FLAGS variable, or | |
15707 # (2) before a word containing "conftest.", or (3) at the end. | |
15708 # Note that $ac_compile itself does not contain backslashes and begins | |
15709 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15710 lt_compile=`echo "$ac_compile" | $SED \ | |
15711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
15712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15713 -e 's:$: $lt_compiler_flag:'` | |
15714 (eval echo "\"\$as_me:15714: $lt_compile\"" >&5) | |
15715 (eval "$lt_compile" 2>out/conftest.err) | |
15716 ac_status=$? | |
15717 cat out/conftest.err >&5 | |
15718 echo "$as_me:15718: \$? = $ac_status" >&5 | |
15719 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15720 then | |
15721 # The compiler can only warn and ignore the option if not recognized | |
15722 # So say no if there are warnings | |
15723 if test ! -s out/conftest.err; then | |
15724 lt_cv_prog_compiler_c_o_GCJ=yes | |
15725 fi | |
15726 fi | |
15727 chmod u+w . | |
15728 $rm conftest* | |
15729 # SGI C++ compiler will create directory out/ii_files/ for | |
15730 # template instantiation | |
15731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
15732 $rm out/* && rmdir out | |
15733 cd .. | |
15734 rmdir conftest | |
15735 $rm conftest* | |
15736 | |
15737 fi | |
15738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
15739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
15740 | |
15741 | |
15742 hard_links="nottested" | |
15743 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
15744 # do not overwrite the value of need_locks provided by the user | |
15745 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
15746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
15747 hard_links=yes | |
15748 $rm conftest* | |
15749 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15750 touch conftest.a | |
15751 ln conftest.a conftest.b 2>&5 || hard_links=no | |
15752 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15753 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
15754 echo "${ECHO_T}$hard_links" >&6 | |
15755 if test "$hard_links" = no; then | |
15756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
15757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
15758 need_locks=warn | |
15759 fi | |
15760 else | |
15761 need_locks=no | |
15762 fi | |
15763 | |
15764 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
15766 | |
15767 runpath_var= | |
15768 allow_undefined_flag_GCJ= | |
15769 enable_shared_with_static_runtimes_GCJ=no | |
15770 archive_cmds_GCJ= | |
15771 archive_expsym_cmds_GCJ= | |
15772 old_archive_From_new_cmds_GCJ= | |
15773 old_archive_from_expsyms_cmds_GCJ= | |
15774 export_dynamic_flag_spec_GCJ= | |
15775 whole_archive_flag_spec_GCJ= | |
15776 thread_safe_flag_spec_GCJ= | |
15777 hardcode_libdir_flag_spec_GCJ= | |
15778 hardcode_libdir_flag_spec_ld_GCJ= | |
15779 hardcode_libdir_separator_GCJ= | |
15780 hardcode_direct_GCJ=no | |
15781 hardcode_minus_L_GCJ=no | |
15782 hardcode_shlibpath_var_GCJ=unsupported | |
15783 link_all_deplibs_GCJ=unknown | |
15784 hardcode_automatic_GCJ=no | |
15785 module_cmds_GCJ= | |
15786 module_expsym_cmds_GCJ= | |
15787 always_export_symbols_GCJ=no | |
15788 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15789 # include_expsyms should be a list of space-separated symbols to be *always* | |
15790 # included in the symbol list | |
15791 include_expsyms_GCJ= | |
15792 # exclude_expsyms can be an extended regexp of symbols to exclude | |
15793 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
15794 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
15795 # as well as any symbol that contains `d'. | |
15796 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
15797 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
15798 # platforms (ab)use it in PIC code, but their linkers get confused if | |
15799 # the symbol is explicitly referenced. Since portable code cannot | |
15800 # rely on this symbol name, it's probably fine to never include it in | |
15801 # preloaded symbol tables. | |
15802 extract_expsyms_cmds= | |
15803 | |
15804 case $host_os in | |
15805 cygwin* | mingw* | pw32*) | |
15806 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
15807 # When not using gcc, we currently assume that we are using | |
15808 # Microsoft Visual C++. | |
15809 if test "$GCC" != yes; then | |
15810 with_gnu_ld=no | |
15811 fi | |
15812 ;; | |
15813 openbsd*) | |
15814 with_gnu_ld=no | |
15815 ;; | |
15816 esac | |
15817 | |
15818 ld_shlibs_GCJ=yes | |
15819 if test "$with_gnu_ld" = yes; then | |
15820 # If archive_cmds runs LD, not CC, wlarc should be empty | |
15821 wlarc='${wl}' | |
15822 | |
15823 # See if GNU ld supports shared libraries. | |
15824 case $host_os in | |
15825 aix3* | aix4* | aix5*) | |
15826 # On AIX/PPC, the GNU linker is very broken | |
15827 if test "$host_cpu" != ia64; then | |
15828 ld_shlibs_GCJ=no | |
15829 cat <<EOF 1>&2 | |
15830 | |
15831 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
15832 *** to be unable to reliably create shared libraries on AIX. | |
15833 *** Therefore, libtool is disabling shared libraries support. If you | |
15834 *** really care for shared libraries, you may want to modify your PATH | |
15835 *** so that a non-GNU linker is found, and then restart. | |
15836 | |
15837 EOF | |
15838 fi | |
15839 ;; | |
15840 | |
15841 amigaos*) | |
15842 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)' | |
15843 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
15844 hardcode_minus_L_GCJ=yes | |
15845 | |
15846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
15847 # that the semantics of dynamic libraries on AmigaOS, at least up | |
15848 # to version 4, is to share data among multiple programs linked | |
15849 # with the same dynamic library. Since this doesn't match the | |
15850 # behavior of shared libraries on other platforms, we can't use | |
15851 # them. | |
15852 ld_shlibs_GCJ=no | |
15853 ;; | |
15854 | |
15855 beos*) | |
15856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15857 allow_undefined_flag_GCJ=unsupported | |
15858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
15859 # support --undefined. This deserves some investigation. FIXME | |
15860 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15861 else | |
15862 ld_shlibs_GCJ=no | |
15863 fi | |
15864 ;; | |
15865 | |
15866 cygwin* | mingw* | pw32*) | |
15867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
15868 # as there is no search path for DLLs. | |
15869 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
15870 allow_undefined_flag_GCJ=unsupported | |
15871 always_export_symbols_GCJ=no | |
15872 enable_shared_with_static_runtimes_GCJ=yes | |
15873 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
15874 | |
15875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
15876 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
15877 # If the export-symbols file already is a .def file (1st line | |
15878 # is EXPORTS), use it as is; otherwise, prepend... | |
15879 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
15880 cp $export_symbols $output_objdir/$soname.def; | |
15881 else | |
15882 echo EXPORTS > $output_objdir/$soname.def; | |
15883 cat $export_symbols >> $output_objdir/$soname.def; | |
15884 fi~ | |
15885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
15886 else | |
15887 ld_shlibs=no | |
15888 fi | |
15889 ;; | |
15890 | |
15891 netbsd* | knetbsd*-gnu) | |
15892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15893 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
15894 wlarc= | |
15895 else | |
15896 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15897 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15898 fi | |
15899 ;; | |
15900 | |
15901 solaris* | sysv5*) | |
15902 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
15903 ld_shlibs_GCJ=no | |
15904 cat <<EOF 1>&2 | |
15905 | |
15906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
15907 *** create shared libraries on Solaris systems. Therefore, libtool | |
15908 *** is disabling shared libraries support. We urge you to upgrade GNU | |
15909 *** binutils to release 2.9.1 or newer. Another option is to modify | |
15910 *** your PATH or compiler configuration so that the native linker is | |
15911 *** used, and then restart. | |
15912 | |
15913 EOF | |
15914 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15915 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15916 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15917 else | |
15918 ld_shlibs_GCJ=no | |
15919 fi | |
15920 ;; | |
15921 | |
15922 sunos4*) | |
15923 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15924 wlarc= | |
15925 hardcode_direct_GCJ=yes | |
15926 hardcode_shlibpath_var_GCJ=no | |
15927 ;; | |
15928 | |
15929 linux*) | |
15930 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
15931 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15932 archive_cmds_GCJ="$tmp_archive_cmds" | |
15933 supports_anon_versioning=no | |
15934 case `$LD -v 2>/dev/null` in | |
15935 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
15936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
15937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
15938 *\ 2.11.*) ;; # other 2.11 versions | |
15939 *) supports_anon_versioning=yes ;; | |
15940 esac | |
15941 if test $supports_anon_versioning = yes; then | |
15942 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
15943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
15944 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
15945 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
15946 else | |
15947 archive_expsym_cmds_GCJ="$tmp_archive_cmds" | |
15948 fi | |
15949 else | |
15950 ld_shlibs_GCJ=no | |
15951 fi | |
15952 ;; | |
15953 | |
15954 *) | |
15955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15956 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15957 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15958 else | |
15959 ld_shlibs_GCJ=no | |
15960 fi | |
15961 ;; | |
15962 esac | |
15963 | |
15964 if test "$ld_shlibs_GCJ" = yes; then | |
15965 runpath_var=LD_RUN_PATH | |
15966 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
15967 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
15968 # ancient GNU ld didn't support --whole-archive et. al. | |
15969 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
15970 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
15971 else | |
15972 whole_archive_flag_spec_GCJ= | |
15973 fi | |
15974 fi | |
15975 else | |
15976 # PORTME fill in a description of your system's linker (not GNU ld) | |
15977 case $host_os in | |
15978 aix3*) | |
15979 allow_undefined_flag_GCJ=unsupported | |
15980 always_export_symbols_GCJ=yes | |
15981 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' | |
15982 # Note: this linker hardcodes the directories in LIBPATH if there | |
15983 # are no directories specified by -L. | |
15984 hardcode_minus_L_GCJ=yes | |
15985 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
15986 # Neither direct hardcoding nor static linking is supported with a | |
15987 # broken collect2. | |
15988 hardcode_direct_GCJ=unsupported | |
15989 fi | |
15990 ;; | |
15991 | |
15992 aix4* | aix5*) | |
15993 if test "$host_cpu" = ia64; then | |
15994 # On IA64, the linker does run time linking by default, so we don't | |
15995 # have to do anything special. | |
15996 aix_use_runtimelinking=no | |
15997 exp_sym_flag='-Bexport' | |
15998 no_entry_flag="" | |
15999 else | |
16000 # If we're using GNU nm, then we don't want the "-C" option. | |
16001 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16003 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' | |
16004 else | |
16005 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' | |
16006 fi | |
16007 aix_use_runtimelinking=no | |
16008 | |
16009 # Test if we are trying to use run time linking or normal | |
16010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16011 # need to do runtime linking. | |
16012 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16013 for ld_flag in $LDFLAGS; do | |
16014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16015 aix_use_runtimelinking=yes | |
16016 break | |
16017 fi | |
16018 done | |
16019 esac | |
16020 | |
16021 exp_sym_flag='-bexport' | |
16022 no_entry_flag='-bnoentry' | |
16023 fi | |
16024 | |
16025 # When large executables or shared objects are built, AIX ld can | |
16026 # have problems creating the table of contents. If linking a library | |
16027 # or program results in "error TOC overflow" add -mminimal-toc to | |
16028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16030 | |
16031 archive_cmds_GCJ='' | |
16032 hardcode_direct_GCJ=yes | |
16033 hardcode_libdir_separator_GCJ=':' | |
16034 link_all_deplibs_GCJ=yes | |
16035 | |
16036 if test "$GCC" = yes; then | |
16037 case $host_os in aix4.012|aix4.012.*) | |
16038 # We only want to do this on AIX 4.2 and lower, the check | |
16039 # below for broken collect2 doesn't work under 4.3+ | |
16040 collect2name=`${CC} -print-prog-name=collect2` | |
16041 if test -f "$collect2name" && \ | |
16042 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16043 then | |
16044 # We have reworked collect2 | |
16045 hardcode_direct_GCJ=yes | |
16046 else | |
16047 # We have old collect2 | |
16048 hardcode_direct_GCJ=unsupported | |
16049 # It fails to find uninstalled libraries when the uninstalled | |
16050 # path is not listed in the libpath. Setting hardcode_minus_L | |
16051 # to unsupported forces relinking | |
16052 hardcode_minus_L_GCJ=yes | |
16053 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16054 hardcode_libdir_separator_GCJ= | |
16055 fi | |
16056 esac | |
16057 shared_flag='-shared' | |
16058 else | |
16059 # not using gcc | |
16060 if test "$host_cpu" = ia64; then | |
16061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16062 # chokes on -Wl,-G. The following line is correct: | |
16063 shared_flag='-G' | |
16064 else | |
16065 if test "$aix_use_runtimelinking" = yes; then | |
16066 shared_flag='${wl}-G' | |
16067 else | |
16068 shared_flag='${wl}-bM:SRE' | |
16069 fi | |
16070 fi | |
16071 fi | |
16072 | |
16073 # It seems that -bexpall does not export symbols beginning with | |
16074 # underscore (_), so it is better to generate a list of symbols to export. | |
16075 always_export_symbols_GCJ=yes | |
16076 if test "$aix_use_runtimelinking" = yes; then | |
16077 # Warning - without using the other runtime loading flags (-brtl), | |
16078 # -berok will link without error, but may produce a broken library. | |
16079 allow_undefined_flag_GCJ='-berok' | |
16080 # Determine the default libpath from the value encoded in an empty executable. | |
16081 cat >conftest.$ac_ext <<_ACEOF | |
16082 /* confdefs.h. */ | |
16083 _ACEOF | |
16084 cat confdefs.h >>conftest.$ac_ext | |
16085 cat >>conftest.$ac_ext <<_ACEOF | |
16086 /* end confdefs.h. */ | |
16087 | |
16088 int | |
16089 main () | |
16090 { | |
16091 | |
16092 ; | |
16093 return 0; | |
16094 } | |
16095 _ACEOF | |
16096 rm -f conftest.$ac_objext conftest$ac_exeext | |
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16098 (eval $ac_link) 2>conftest.er1 | |
16099 ac_status=$? | |
16100 grep -v '^ *+' conftest.er1 >conftest.err | |
16101 rm -f conftest.er1 | |
16102 cat conftest.err >&5 | |
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16104 (exit $ac_status); } && | |
16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16107 (eval $ac_try) 2>&5 | |
16108 ac_status=$? | |
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16110 (exit $ac_status); }; } && | |
16111 { ac_try='test -s conftest$ac_exeext' | |
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16113 (eval $ac_try) 2>&5 | |
16114 ac_status=$? | |
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16116 (exit $ac_status); }; }; then | |
16117 | |
16118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16119 }'` | |
16120 # Check for a 64-bit object if we didn't find anything. | |
16121 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; } | |
16122 }'`; fi | |
16123 else | |
16124 echo "$as_me: failed program was:" >&5 | |
16125 sed 's/^/| /' conftest.$ac_ext >&5 | |
16126 | |
16127 fi | |
16128 rm -f conftest.err conftest.$ac_objext \ | |
16129 conftest$ac_exeext conftest.$ac_ext | |
16130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16131 | |
16132 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16133 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16134 else | |
16135 if test "$host_cpu" = ia64; then | |
16136 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
16137 allow_undefined_flag_GCJ="-z nodefs" | |
16138 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
16139 else | |
16140 # Determine the default libpath from the value encoded in an empty executable. | |
16141 cat >conftest.$ac_ext <<_ACEOF | |
16142 /* confdefs.h. */ | |
16143 _ACEOF | |
16144 cat confdefs.h >>conftest.$ac_ext | |
16145 cat >>conftest.$ac_ext <<_ACEOF | |
16146 /* end confdefs.h. */ | |
16147 | |
16148 int | |
16149 main () | |
16150 { | |
16151 | |
16152 ; | |
16153 return 0; | |
16154 } | |
16155 _ACEOF | |
16156 rm -f conftest.$ac_objext conftest$ac_exeext | |
16157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16158 (eval $ac_link) 2>conftest.er1 | |
16159 ac_status=$? | |
16160 grep -v '^ *+' conftest.er1 >conftest.err | |
16161 rm -f conftest.er1 | |
16162 cat conftest.err >&5 | |
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16164 (exit $ac_status); } && | |
16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16167 (eval $ac_try) 2>&5 | |
16168 ac_status=$? | |
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16170 (exit $ac_status); }; } && | |
16171 { ac_try='test -s conftest$ac_exeext' | |
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16173 (eval $ac_try) 2>&5 | |
16174 ac_status=$? | |
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16176 (exit $ac_status); }; }; then | |
16177 | |
16178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16179 }'` | |
16180 # Check for a 64-bit object if we didn't find anything. | |
16181 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; } | |
16182 }'`; fi | |
16183 else | |
16184 echo "$as_me: failed program was:" >&5 | |
16185 sed 's/^/| /' conftest.$ac_ext >&5 | |
16186 | |
16187 fi | |
16188 rm -f conftest.err conftest.$ac_objext \ | |
16189 conftest$ac_exeext conftest.$ac_ext | |
16190 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16191 | |
16192 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16193 # Warning - without using the other run time loading flags, | |
16194 # -berok will link without error, but may produce a broken library. | |
16195 no_undefined_flag_GCJ=' ${wl}-bernotok' | |
16196 allow_undefined_flag_GCJ=' ${wl}-berok' | |
16197 # -bexpall does not export symbols beginning with underscore (_) | |
16198 always_export_symbols_GCJ=yes | |
16199 # Exported symbols can be pulled into shared objects from archives | |
16200 whole_archive_flag_spec_GCJ=' ' | |
16201 archive_cmds_need_lc_GCJ=yes | |
16202 # This is similar to how AIX traditionally builds it's shared libraries. | |
16203 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
16204 fi | |
16205 fi | |
16206 ;; | |
16207 | |
16208 amigaos*) | |
16209 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)' | |
16210 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16211 hardcode_minus_L_GCJ=yes | |
16212 # see comment about different semantics on the GNU ld section | |
16213 ld_shlibs_GCJ=no | |
16214 ;; | |
16215 | |
16216 bsdi4*) | |
16217 export_dynamic_flag_spec_GCJ=-rdynamic | |
16218 ;; | |
16219 | |
16220 cygwin* | mingw* | pw32*) | |
16221 # When not using gcc, we currently assume that we are using | |
16222 # Microsoft Visual C++. | |
16223 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16224 # no search path for DLLs. | |
16225 hardcode_libdir_flag_spec_GCJ=' ' | |
16226 allow_undefined_flag_GCJ=unsupported | |
16227 # Tell ltmain to make .lib files, not .a files. | |
16228 libext=lib | |
16229 # Tell ltmain to make .dll files, not .so files. | |
16230 shrext=".dll" | |
16231 # FIXME: Setting linknames here is a bad hack. | |
16232 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16233 # The linker will automatically build a .lib file if we build a DLL. | |
16234 old_archive_From_new_cmds_GCJ='true' | |
16235 # FIXME: Should let the user specify the lib program. | |
16236 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16237 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
16238 enable_shared_with_static_runtimes_GCJ=yes | |
16239 ;; | |
16240 | |
16241 darwin* | rhapsody*) | |
16242 if test "$GXX" = yes ; then | |
16243 archive_cmds_need_lc_GCJ=no | |
16244 case "$host_os" in | |
16245 rhapsody* | darwin1.[012]) | |
16246 allow_undefined_flag_GCJ='-undefined suppress' | |
16247 ;; | |
16248 *) # Darwin 1.3 on | |
16249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16250 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
16251 else | |
16252 case ${MACOSX_DEPLOYMENT_TARGET} in | |
16253 10.[012]) | |
16254 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
16255 ;; | |
16256 10.*) | |
16257 allow_undefined_flag_GCJ='-undefined dynamic_lookup' | |
16258 ;; | |
16259 esac | |
16260 fi | |
16261 ;; | |
16262 esac | |
16263 lt_int_apple_cc_single_mod=no | |
16264 output_verbose_link_cmd='echo' | |
16265 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
16266 lt_int_apple_cc_single_mod=yes | |
16267 fi | |
16268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
16269 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16270 else | |
16271 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16272 fi | |
16273 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
16275 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
16276 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16277 else | |
16278 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16279 fi | |
16280 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}' | |
16281 hardcode_direct_GCJ=no | |
16282 hardcode_automatic_GCJ=yes | |
16283 hardcode_shlibpath_var_GCJ=unsupported | |
16284 whole_archive_flag_spec_GCJ='-all_load $convenience' | |
16285 link_all_deplibs_GCJ=yes | |
16286 else | |
16287 ld_shlibs_GCJ=no | |
16288 fi | |
16289 ;; | |
16290 | |
16291 dgux*) | |
16292 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16293 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16294 hardcode_shlibpath_var_GCJ=no | |
16295 ;; | |
16296 | |
16297 freebsd1*) | |
16298 ld_shlibs_GCJ=no | |
16299 ;; | |
16300 | |
16301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16302 # support. Future versions do this automatically, but an explicit c++rt0.o | |
16303 # does not break anything, and helps significantly (at the cost of a little | |
16304 # extra space). | |
16305 freebsd2.2*) | |
16306 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16307 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16308 hardcode_direct_GCJ=yes | |
16309 hardcode_shlibpath_var_GCJ=no | |
16310 ;; | |
16311 | |
16312 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16313 freebsd2*) | |
16314 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16315 hardcode_direct_GCJ=yes | |
16316 hardcode_minus_L_GCJ=yes | |
16317 hardcode_shlibpath_var_GCJ=no | |
16318 ;; | |
16319 | |
16320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16321 freebsd* | kfreebsd*-gnu) | |
16322 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16323 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16324 hardcode_direct_GCJ=yes | |
16325 hardcode_shlibpath_var_GCJ=no | |
16326 ;; | |
16327 | |
16328 hpux9*) | |
16329 if test "$GCC" = yes; then | |
16330 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' | |
16331 else | |
16332 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' | |
16333 fi | |
16334 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16335 hardcode_libdir_separator_GCJ=: | |
16336 hardcode_direct_GCJ=yes | |
16337 | |
16338 # hardcode_minus_L: Not really in the search PATH, | |
16339 # but as the default location of the library. | |
16340 hardcode_minus_L_GCJ=yes | |
16341 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16342 ;; | |
16343 | |
16344 hpux10* | hpux11*) | |
16345 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16346 case "$host_cpu" in | |
16347 hppa*64*|ia64*) | |
16348 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16349 ;; | |
16350 *) | |
16351 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16352 ;; | |
16353 esac | |
16354 else | |
16355 case "$host_cpu" in | |
16356 hppa*64*|ia64*) | |
16357 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16358 ;; | |
16359 *) | |
16360 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16361 ;; | |
16362 esac | |
16363 fi | |
16364 if test "$with_gnu_ld" = no; then | |
16365 case "$host_cpu" in | |
16366 hppa*64*) | |
16367 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16368 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
16369 hardcode_libdir_separator_GCJ=: | |
16370 hardcode_direct_GCJ=no | |
16371 hardcode_shlibpath_var_GCJ=no | |
16372 ;; | |
16373 ia64*) | |
16374 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16375 hardcode_direct_GCJ=no | |
16376 hardcode_shlibpath_var_GCJ=no | |
16377 | |
16378 # hardcode_minus_L: Not really in the search PATH, | |
16379 # but as the default location of the library. | |
16380 hardcode_minus_L_GCJ=yes | |
16381 ;; | |
16382 *) | |
16383 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16384 hardcode_libdir_separator_GCJ=: | |
16385 hardcode_direct_GCJ=yes | |
16386 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16387 | |
16388 # hardcode_minus_L: Not really in the search PATH, | |
16389 # but as the default location of the library. | |
16390 hardcode_minus_L_GCJ=yes | |
16391 ;; | |
16392 esac | |
16393 fi | |
16394 ;; | |
16395 | |
16396 irix5* | irix6* | nonstopux*) | |
16397 if test "$GCC" = yes; then | |
16398 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' | |
16399 else | |
16400 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' | |
16401 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
16402 fi | |
16403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16404 hardcode_libdir_separator_GCJ=: | |
16405 link_all_deplibs_GCJ=yes | |
16406 ;; | |
16407 | |
16408 netbsd* | knetbsd*-gnu) | |
16409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16410 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16411 else | |
16412 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16413 fi | |
16414 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16415 hardcode_direct_GCJ=yes | |
16416 hardcode_shlibpath_var_GCJ=no | |
16417 ;; | |
16418 | |
16419 newsos6) | |
16420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16421 hardcode_direct_GCJ=yes | |
16422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16423 hardcode_libdir_separator_GCJ=: | |
16424 hardcode_shlibpath_var_GCJ=no | |
16425 ;; | |
16426 | |
16427 openbsd*) | |
16428 hardcode_direct_GCJ=yes | |
16429 hardcode_shlibpath_var_GCJ=no | |
16430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16431 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16433 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16434 else | |
16435 case $host_os in | |
16436 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16437 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16438 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16439 ;; | |
16440 *) | |
16441 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16443 ;; | |
16444 esac | |
16445 fi | |
16446 ;; | |
16447 | |
16448 os2*) | |
16449 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16450 hardcode_minus_L_GCJ=yes | |
16451 allow_undefined_flag_GCJ=unsupported | |
16452 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' | |
16453 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16454 ;; | |
16455 | |
16456 osf3*) | |
16457 if test "$GCC" = yes; then | |
16458 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
16459 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' | |
16460 else | |
16461 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
16462 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' | |
16463 fi | |
16464 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16465 hardcode_libdir_separator_GCJ=: | |
16466 ;; | |
16467 | |
16468 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16469 if test "$GCC" = yes; then | |
16470 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
16471 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' | |
16472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16473 else | |
16474 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
16475 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' | |
16476 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~ | |
16477 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | |
16478 | |
16479 # Both c and cxx compiler support -rpath directly | |
16480 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
16481 fi | |
16482 hardcode_libdir_separator_GCJ=: | |
16483 ;; | |
16484 | |
16485 sco3.2v5*) | |
16486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16487 hardcode_shlibpath_var_GCJ=no | |
16488 export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
16489 runpath_var=LD_RUN_PATH | |
16490 hardcode_runpath_var=yes | |
16491 ;; | |
16492 | |
16493 solaris*) | |
16494 no_undefined_flag_GCJ=' -z text' | |
16495 if test "$GCC" = yes; then | |
16496 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16497 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16498 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
16499 else | |
16500 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16501 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16503 fi | |
16504 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16505 hardcode_shlibpath_var_GCJ=no | |
16506 case $host_os in | |
16507 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16508 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
16509 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
16510 esac | |
16511 link_all_deplibs_GCJ=yes | |
16512 ;; | |
16513 | |
16514 sunos4*) | |
16515 if test "x$host_vendor" = xsequent; then | |
16516 # Use $CC to link under sequent, because it throws in some extra .o | |
16517 # files that make .init and .fini sections work. | |
16518 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
16519 else | |
16520 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
16521 fi | |
16522 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16523 hardcode_direct_GCJ=yes | |
16524 hardcode_minus_L_GCJ=yes | |
16525 hardcode_shlibpath_var_GCJ=no | |
16526 ;; | |
16527 | |
16528 sysv4) | |
16529 case $host_vendor in | |
16530 sni) | |
16531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16532 hardcode_direct_GCJ=yes # is this really true??? | |
16533 ;; | |
16534 siemens) | |
16535 ## LD is ld it makes a PLAMLIB | |
16536 ## CC just makes a GrossModule. | |
16537 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16538 reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
16539 hardcode_direct_GCJ=no | |
16540 ;; | |
16541 motorola) | |
16542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16543 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
16544 ;; | |
16545 esac | |
16546 runpath_var='LD_RUN_PATH' | |
16547 hardcode_shlibpath_var_GCJ=no | |
16548 ;; | |
16549 | |
16550 sysv4.3*) | |
16551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16552 hardcode_shlibpath_var_GCJ=no | |
16553 export_dynamic_flag_spec_GCJ='-Bexport' | |
16554 ;; | |
16555 | |
16556 sysv4*MP*) | |
16557 if test -d /usr/nec; then | |
16558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16559 hardcode_shlibpath_var_GCJ=no | |
16560 runpath_var=LD_RUN_PATH | |
16561 hardcode_runpath_var=yes | |
16562 ld_shlibs_GCJ=yes | |
16563 fi | |
16564 ;; | |
16565 | |
16566 sysv4.2uw2*) | |
16567 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16568 hardcode_direct_GCJ=yes | |
16569 hardcode_minus_L_GCJ=no | |
16570 hardcode_shlibpath_var_GCJ=no | |
16571 hardcode_runpath_var=yes | |
16572 runpath_var=LD_RUN_PATH | |
16573 ;; | |
16574 | |
16575 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
16576 no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
16577 if test "$GCC" = yes; then | |
16578 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16579 else | |
16580 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16581 fi | |
16582 runpath_var='LD_RUN_PATH' | |
16583 hardcode_shlibpath_var_GCJ=no | |
16584 ;; | |
16585 | |
16586 sysv5*) | |
16587 no_undefined_flag_GCJ=' -z text' | |
16588 # $CC -shared without GNU ld will not create a library from C++ | |
16589 # object files and a static libstdc++, better avoid it by now | |
16590 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16591 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16592 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16593 hardcode_libdir_flag_spec_GCJ= | |
16594 hardcode_shlibpath_var_GCJ=no | |
16595 runpath_var='LD_RUN_PATH' | |
16596 ;; | |
16597 | |
16598 uts4*) | |
16599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16600 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16601 hardcode_shlibpath_var_GCJ=no | |
16602 ;; | |
16603 | |
16604 *) | |
16605 ld_shlibs_GCJ=no | |
16606 ;; | |
16607 esac | |
16608 fi | |
16609 | |
16610 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
16611 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
16612 test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
16613 | |
16614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16615 if test "$GCC" = yes; then | |
16616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16617 fi | |
16618 | |
16619 # | |
16620 # Do we need to explicitly link libc? | |
16621 # | |
16622 case "x$archive_cmds_need_lc_GCJ" in | |
16623 x|xyes) | |
16624 # Assume -lc should be added | |
16625 archive_cmds_need_lc_GCJ=yes | |
16626 | |
16627 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
16628 case $archive_cmds_GCJ in | |
16629 *'~'*) | |
16630 # FIXME: we may have to deal with multi-command sequences. | |
16631 ;; | |
16632 '$CC '*) | |
16633 # Test whether the compiler implicitly links with -lc since on some | |
16634 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
16635 # to ld, don't add -lc before -lgcc. | |
16636 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
16637 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
16638 $rm conftest* | |
16639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16640 | |
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16642 (eval $ac_compile) 2>&5 | |
16643 ac_status=$? | |
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16645 (exit $ac_status); } 2>conftest.err; then | |
16646 soname=conftest | |
16647 lib=conftest | |
16648 libobjs=conftest.$ac_objext | |
16649 deplibs= | |
16650 wl=$lt_prog_compiler_wl_GCJ | |
16651 compiler_flags=-v | |
16652 linker_flags=-v | |
16653 verstring= | |
16654 output_objdir=. | |
16655 libname=conftest | |
16656 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
16657 allow_undefined_flag_GCJ= | |
16658 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
16659 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
16660 ac_status=$? | |
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16662 (exit $ac_status); } | |
16663 then | |
16664 archive_cmds_need_lc_GCJ=no | |
16665 else | |
16666 archive_cmds_need_lc_GCJ=yes | |
16667 fi | |
16668 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
16669 else | |
16670 cat conftest.err 1>&5 | |
16671 fi | |
16672 $rm conftest* | |
16673 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
16674 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
16675 ;; | |
16676 esac | |
16677 fi | |
16678 ;; | |
16679 esac | |
16680 | |
16681 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
16682 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
16683 library_names_spec= | |
16684 libname_spec='lib$name' | |
16685 soname_spec= | |
16686 shrext=".so" | |
16687 postinstall_cmds= | |
16688 postuninstall_cmds= | |
16689 finish_cmds= | |
16690 finish_eval= | |
16691 shlibpath_var= | |
16692 shlibpath_overrides_runpath=unknown | |
16693 version_type=none | |
16694 dynamic_linker="$host_os ld.so" | |
16695 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
16696 if test "$GCC" = yes; then | |
16697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
16698 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
16699 # if the path contains ";" then we assume it to be the separator | |
16700 # otherwise default to the standard path separator (i.e. ":") - it is | |
16701 # assumed that no part of a normal pathname contains ";" but that should | |
16702 # okay in the real world where ";" in dirpaths is itself problematic. | |
16703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
16704 else | |
16705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
16706 fi | |
16707 else | |
16708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
16709 fi | |
16710 need_lib_prefix=unknown | |
16711 hardcode_into_libs=no | |
16712 | |
16713 # when you set need_version to no, make sure it does not cause -set_version | |
16714 # flags to be left without arguments | |
16715 need_version=unknown | |
16716 | |
16717 case $host_os in | |
16718 aix3*) | |
16719 version_type=linux | |
16720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
16721 shlibpath_var=LIBPATH | |
16722 | |
16723 # AIX 3 has no versioning support, so we append a major version to the name. | |
16724 soname_spec='${libname}${release}${shared_ext}$major' | |
16725 ;; | |
16726 | |
16727 aix4* | aix5*) | |
16728 version_type=linux | |
16729 need_lib_prefix=no | |
16730 need_version=no | |
16731 hardcode_into_libs=yes | |
16732 if test "$host_cpu" = ia64; then | |
16733 # AIX 5 supports IA64 | |
16734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
16735 shlibpath_var=LD_LIBRARY_PATH | |
16736 else | |
16737 # With GCC up to 2.95.x, collect2 would create an import file | |
16738 # for dependence libraries. The import file would start with | |
16739 # the line `#! .'. This would cause the generated library to | |
16740 # depend on `.', always an invalid library. This was fixed in | |
16741 # development snapshots of GCC prior to 3.0. | |
16742 case $host_os in | |
16743 aix4 | aix4.[01] | aix4.[01].*) | |
16744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
16745 echo ' yes ' | |
16746 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
16747 : | |
16748 else | |
16749 can_build_shared=no | |
16750 fi | |
16751 ;; | |
16752 esac | |
16753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
16754 # soname into executable. Probably we can add versioning support to | |
16755 # collect2, so additional links can be useful in future. | |
16756 if test "$aix_use_runtimelinking" = yes; then | |
16757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
16758 # instead of lib<name>.a to let people know that these are not | |
16759 # typical AIX shared libraries. | |
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16761 else | |
16762 # We preserve .a as extension for shared libraries through AIX4.2 | |
16763 # and later when we are not doing run time linking. | |
16764 library_names_spec='${libname}${release}.a $libname.a' | |
16765 soname_spec='${libname}${release}${shared_ext}$major' | |
16766 fi | |
16767 shlibpath_var=LIBPATH | |
16768 fi | |
16769 ;; | |
16770 | |
16771 amigaos*) | |
16772 library_names_spec='$libname.ixlibrary $libname.a' | |
16773 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
16774 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' | |
16775 ;; | |
16776 | |
16777 beos*) | |
16778 library_names_spec='${libname}${shared_ext}' | |
16779 dynamic_linker="$host_os ld.so" | |
16780 shlibpath_var=LIBRARY_PATH | |
16781 ;; | |
16782 | |
16783 bsdi4*) | |
16784 version_type=linux | |
16785 need_version=no | |
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16787 soname_spec='${libname}${release}${shared_ext}$major' | |
16788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
16789 shlibpath_var=LD_LIBRARY_PATH | |
16790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
16791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
16792 # the default ld.so.conf also contains /usr/contrib/lib and | |
16793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
16794 # libtool to hard-code these into programs | |
16795 ;; | |
16796 | |
16797 cygwin* | mingw* | pw32*) | |
16798 version_type=windows | |
16799 shrext=".dll" | |
16800 need_version=no | |
16801 need_lib_prefix=no | |
16802 | |
16803 case $GCC,$host_os in | |
16804 yes,cygwin* | yes,mingw* | yes,pw32*) | |
16805 library_names_spec='$libname.dll.a' | |
16806 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
16807 postinstall_cmds='base_file=`basename \${file}`~ | |
16808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
16809 dldir=$destdir/`dirname \$dlpath`~ | |
16810 test -d \$dldir || mkdir -p \$dldir~ | |
16811 $install_prog $dir/$dlname \$dldir/$dlname' | |
16812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
16813 dlpath=$dir/\$dldll~ | |
16814 $rm \$dlpath' | |
16815 shlibpath_overrides_runpath=yes | |
16816 | |
16817 case $host_os in | |
16818 cygwin*) | |
16819 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
16820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
16822 ;; | |
16823 mingw*) | |
16824 # MinGW DLLs use traditional 'lib' prefix | |
16825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
16827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
16828 # It is most probably a Windows format PATH printed by | |
16829 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
16830 # path with ; separators, and with drive letters. We can handle the | |
16831 # drive letters (cygwin fileutils understands them), so leave them, | |
16832 # especially as we might pass files found there to a mingw objdump, | |
16833 # which wouldn't understand a cygwinified path. Ahh. | |
16834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
16835 else | |
16836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
16837 fi | |
16838 ;; | |
16839 pw32*) | |
16840 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
16841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
16842 ;; | |
16843 esac | |
16844 ;; | |
16845 | |
16846 *) | |
16847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
16848 ;; | |
16849 esac | |
16850 dynamic_linker='Win32 ld.exe' | |
16851 # FIXME: first we should search . and the directory the executable is in | |
16852 shlibpath_var=PATH | |
16853 ;; | |
16854 | |
16855 darwin* | rhapsody*) | |
16856 dynamic_linker="$host_os dyld" | |
16857 version_type=darwin | |
16858 need_lib_prefix=no | |
16859 need_version=no | |
16860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
16861 soname_spec='${libname}${release}${major}$shared_ext' | |
16862 shlibpath_overrides_runpath=yes | |
16863 shlibpath_var=DYLD_LIBRARY_PATH | |
16864 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
16865 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
16866 if test "$GCC" = yes; then | |
16867 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"` | |
16868 else | |
16869 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
16870 fi | |
16871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
16872 ;; | |
16873 | |
16874 dgux*) | |
16875 version_type=linux | |
16876 need_lib_prefix=no | |
16877 need_version=no | |
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
16879 soname_spec='${libname}${release}${shared_ext}$major' | |
16880 shlibpath_var=LD_LIBRARY_PATH | |
16881 ;; | |
16882 | |
16883 freebsd1*) | |
16884 dynamic_linker=no | |
16885 ;; | |
16886 | |
16887 kfreebsd*-gnu) | |
16888 version_type=linux | |
16889 need_lib_prefix=no | |
16890 need_version=no | |
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
16892 soname_spec='${libname}${release}${shared_ext}$major' | |
16893 shlibpath_var=LD_LIBRARY_PATH | |
16894 shlibpath_overrides_runpath=no | |
16895 hardcode_into_libs=yes | |
16896 dynamic_linker='GNU ld.so' | |
16897 ;; | |
16898 | |
16899 freebsd*) | |
16900 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
16901 version_type=freebsd-$objformat | |
16902 case $version_type in | |
16903 freebsd-elf*) | |
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16905 need_version=no | |
16906 need_lib_prefix=no | |
16907 ;; | |
16908 freebsd-*) | |
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
16910 need_version=yes | |
16911 ;; | |
16912 esac | |
16913 shlibpath_var=LD_LIBRARY_PATH | |
16914 case $host_os in | |
16915 freebsd2*) | |
16916 shlibpath_overrides_runpath=yes | |
16917 ;; | |
16918 freebsd3.01* | freebsdelf3.01*) | |
16919 shlibpath_overrides_runpath=yes | |
16920 hardcode_into_libs=yes | |
16921 ;; | |
16922 *) # from 3.2 on | |
16923 shlibpath_overrides_runpath=no | |
16924 hardcode_into_libs=yes | |
16925 ;; | |
16926 esac | |
16927 ;; | |
16928 | |
16929 gnu*) | |
16930 version_type=linux | |
16931 need_lib_prefix=no | |
16932 need_version=no | |
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
16934 soname_spec='${libname}${release}${shared_ext}$major' | |
16935 shlibpath_var=LD_LIBRARY_PATH | |
16936 hardcode_into_libs=yes | |
16937 ;; | |
16938 | |
16939 hpux9* | hpux10* | hpux11*) | |
16940 # Give a soname corresponding to the major version so that dld.sl refuses to | |
16941 # link against other versions. | |
16942 version_type=sunos | |
16943 need_lib_prefix=no | |
16944 need_version=no | |
16945 case "$host_cpu" in | |
16946 ia64*) | |
16947 shrext='.so' | |
16948 hardcode_into_libs=yes | |
16949 dynamic_linker="$host_os dld.so" | |
16950 shlibpath_var=LD_LIBRARY_PATH | |
16951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16953 soname_spec='${libname}${release}${shared_ext}$major' | |
16954 if test "X$HPUX_IA64_MODE" = X32; then | |
16955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
16956 else | |
16957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
16958 fi | |
16959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16960 ;; | |
16961 hppa*64*) | |
16962 shrext='.sl' | |
16963 hardcode_into_libs=yes | |
16964 dynamic_linker="$host_os dld.sl" | |
16965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
16966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16968 soname_spec='${libname}${release}${shared_ext}$major' | |
16969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
16970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16971 ;; | |
16972 *) | |
16973 shrext='.sl' | |
16974 dynamic_linker="$host_os dld.sl" | |
16975 shlibpath_var=SHLIB_PATH | |
16976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16978 soname_spec='${libname}${release}${shared_ext}$major' | |
16979 ;; | |
16980 esac | |
16981 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
16982 postinstall_cmds='chmod 555 $lib' | |
16983 ;; | |
16984 | |
16985 irix5* | irix6* | nonstopux*) | |
16986 case $host_os in | |
16987 nonstopux*) version_type=nonstopux ;; | |
16988 *) | |
16989 if test "$lt_cv_prog_gnu_ld" = yes; then | |
16990 version_type=linux | |
16991 else | |
16992 version_type=irix | |
16993 fi ;; | |
16994 esac | |
16995 need_lib_prefix=no | |
16996 need_version=no | |
16997 soname_spec='${libname}${release}${shared_ext}$major' | |
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16999 case $host_os in | |
17000 irix5* | nonstopux*) | |
17001 libsuff= shlibsuff= | |
17002 ;; | |
17003 *) | |
17004 case $LD in # libtool.m4 will add one of these switches to LD | |
17005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17006 libsuff= shlibsuff= libmagic=32-bit;; | |
17007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17008 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17010 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17011 *) libsuff= shlibsuff= libmagic=never-match;; | |
17012 esac | |
17013 ;; | |
17014 esac | |
17015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17016 shlibpath_overrides_runpath=no | |
17017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17019 hardcode_into_libs=yes | |
17020 ;; | |
17021 | |
17022 # No shared lib support for Linux oldld, aout, or coff. | |
17023 linux*oldld* | linux*aout* | linux*coff*) | |
17024 dynamic_linker=no | |
17025 ;; | |
17026 | |
17027 # This must be Linux ELF. | |
17028 linux*) | |
17029 version_type=linux | |
17030 need_lib_prefix=no | |
17031 need_version=no | |
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17033 soname_spec='${libname}${release}${shared_ext}$major' | |
17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17035 shlibpath_var=LD_LIBRARY_PATH | |
17036 shlibpath_overrides_runpath=no | |
17037 # This implies no fast_install, which is unacceptable. | |
17038 # Some rework will be needed to allow for fast_install | |
17039 # before this can be enabled. | |
17040 hardcode_into_libs=yes | |
17041 | |
17042 # Append ld.so.conf contents to the search path | |
17043 if test -f /etc/ld.so.conf; then | |
17044 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
17045 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
17046 fi | |
17047 | |
17048 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17049 # powerpc, because MkLinux only supported shared libraries with the | |
17050 # GNU dynamic linker. Since this was broken with cross compilers, | |
17051 # most powerpc-linux boxes support dynamic linking these days and | |
17052 # people can always --disable-shared, the test was removed, and we | |
17053 # assume the GNU/Linux dynamic linker is in use. | |
17054 dynamic_linker='GNU/Linux ld.so' | |
17055 ;; | |
17056 | |
17057 knetbsd*-gnu) | |
17058 version_type=linux | |
17059 need_lib_prefix=no | |
17060 need_version=no | |
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17062 soname_spec='${libname}${release}${shared_ext}$major' | |
17063 shlibpath_var=LD_LIBRARY_PATH | |
17064 shlibpath_overrides_runpath=no | |
17065 hardcode_into_libs=yes | |
17066 dynamic_linker='GNU ld.so' | |
17067 ;; | |
17068 | |
17069 netbsd*) | |
17070 version_type=sunos | |
17071 need_lib_prefix=no | |
17072 need_version=no | |
17073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17076 dynamic_linker='NetBSD (a.out) ld.so' | |
17077 else | |
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17079 soname_spec='${libname}${release}${shared_ext}$major' | |
17080 dynamic_linker='NetBSD ld.elf_so' | |
17081 fi | |
17082 shlibpath_var=LD_LIBRARY_PATH | |
17083 shlibpath_overrides_runpath=yes | |
17084 hardcode_into_libs=yes | |
17085 ;; | |
17086 | |
17087 newsos6) | |
17088 version_type=linux | |
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17090 shlibpath_var=LD_LIBRARY_PATH | |
17091 shlibpath_overrides_runpath=yes | |
17092 ;; | |
17093 | |
17094 nto-qnx*) | |
17095 version_type=linux | |
17096 need_lib_prefix=no | |
17097 need_version=no | |
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17099 soname_spec='${libname}${release}${shared_ext}$major' | |
17100 shlibpath_var=LD_LIBRARY_PATH | |
17101 shlibpath_overrides_runpath=yes | |
17102 ;; | |
17103 | |
17104 openbsd*) | |
17105 version_type=sunos | |
17106 need_lib_prefix=no | |
17107 need_version=yes | |
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17110 shlibpath_var=LD_LIBRARY_PATH | |
17111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17112 case $host_os in | |
17113 openbsd2.[89] | openbsd2.[89].*) | |
17114 shlibpath_overrides_runpath=no | |
17115 ;; | |
17116 *) | |
17117 shlibpath_overrides_runpath=yes | |
17118 ;; | |
17119 esac | |
17120 else | |
17121 shlibpath_overrides_runpath=yes | |
17122 fi | |
17123 ;; | |
17124 | |
17125 os2*) | |
17126 libname_spec='$name' | |
17127 shrext=".dll" | |
17128 need_lib_prefix=no | |
17129 library_names_spec='$libname${shared_ext} $libname.a' | |
17130 dynamic_linker='OS/2 ld.exe' | |
17131 shlibpath_var=LIBPATH | |
17132 ;; | |
17133 | |
17134 osf3* | osf4* | osf5*) | |
17135 version_type=osf | |
17136 need_lib_prefix=no | |
17137 need_version=no | |
17138 soname_spec='${libname}${release}${shared_ext}$major' | |
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17140 shlibpath_var=LD_LIBRARY_PATH | |
17141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17143 ;; | |
17144 | |
17145 sco3.2v5*) | |
17146 version_type=osf | |
17147 soname_spec='${libname}${release}${shared_ext}$major' | |
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17149 shlibpath_var=LD_LIBRARY_PATH | |
17150 ;; | |
17151 | |
17152 solaris*) | |
17153 version_type=linux | |
17154 need_lib_prefix=no | |
17155 need_version=no | |
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17157 soname_spec='${libname}${release}${shared_ext}$major' | |
17158 shlibpath_var=LD_LIBRARY_PATH | |
17159 shlibpath_overrides_runpath=yes | |
17160 hardcode_into_libs=yes | |
17161 # ldd complains unless libraries are executable | |
17162 postinstall_cmds='chmod +x $lib' | |
17163 ;; | |
17164 | |
17165 sunos4*) | |
17166 version_type=sunos | |
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17169 shlibpath_var=LD_LIBRARY_PATH | |
17170 shlibpath_overrides_runpath=yes | |
17171 if test "$with_gnu_ld" = yes; then | |
17172 need_lib_prefix=no | |
17173 fi | |
17174 need_version=yes | |
17175 ;; | |
17176 | |
17177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
17178 version_type=linux | |
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17180 soname_spec='${libname}${release}${shared_ext}$major' | |
17181 shlibpath_var=LD_LIBRARY_PATH | |
17182 case $host_vendor in | |
17183 sni) | |
17184 shlibpath_overrides_runpath=no | |
17185 need_lib_prefix=no | |
17186 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17187 runpath_var=LD_RUN_PATH | |
17188 ;; | |
17189 siemens) | |
17190 need_lib_prefix=no | |
17191 ;; | |
17192 motorola) | |
17193 need_lib_prefix=no | |
17194 need_version=no | |
17195 shlibpath_overrides_runpath=no | |
17196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17197 ;; | |
17198 esac | |
17199 ;; | |
17200 | |
17201 sysv4*MP*) | |
17202 if test -d /usr/nec ;then | |
17203 version_type=linux | |
17204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17205 soname_spec='$libname${shared_ext}.$major' | |
17206 shlibpath_var=LD_LIBRARY_PATH | |
17207 fi | |
17208 ;; | |
17209 | |
17210 uts4*) | |
17211 version_type=linux | |
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17213 soname_spec='${libname}${release}${shared_ext}$major' | |
17214 shlibpath_var=LD_LIBRARY_PATH | |
17215 ;; | |
17216 | |
17217 *) | |
17218 dynamic_linker=no | |
17219 ;; | |
17220 esac | |
17221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17222 echo "${ECHO_T}$dynamic_linker" >&6 | |
17223 test "$dynamic_linker" = no && can_build_shared=no | |
17224 | |
17225 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17226 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
17227 hardcode_action_GCJ= | |
17228 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
17229 test -n "$runpath_var GCJ" || \ | |
17230 test "X$hardcode_automatic_GCJ"="Xyes" ; then | |
17231 | |
17232 # We can hardcode non-existant directories. | |
17233 if test "$hardcode_direct_GCJ" != no && | |
17234 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17235 # have to relink, otherwise we might link with an installed library | |
17236 # when we should be linking with a yet-to-be-installed one | |
17237 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
17238 test "$hardcode_minus_L_GCJ" != no; then | |
17239 # Linking always hardcodes the temporary library directory. | |
17240 hardcode_action_GCJ=relink | |
17241 else | |
17242 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17243 hardcode_action_GCJ=immediate | |
17244 fi | |
17245 else | |
17246 # We cannot hardcode anything, or else we can only hardcode existing | |
17247 # directories. | |
17248 hardcode_action_GCJ=unsupported | |
17249 fi | |
17250 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
17251 echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
17252 | |
17253 if test "$hardcode_action_GCJ" = relink; then | |
17254 # Fast installation is not supported | |
17255 enable_fast_install=no | |
17256 elif test "$shlibpath_overrides_runpath" = yes || | |
17257 test "$enable_shared" = no; then | |
17258 # Fast installation is not necessary | |
17259 enable_fast_install=needless | |
17260 fi | |
17261 | |
17262 striplib= | |
17263 old_striplib= | |
17264 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
17265 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
17266 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
17267 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
17268 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
17269 echo "$as_me:$LINENO: result: yes" >&5 | |
17270 echo "${ECHO_T}yes" >&6 | |
17271 else | |
17272 # FIXME - insert some real tests, host_os isn't really good enough | |
17273 case $host_os in | |
17274 darwin*) | |
17275 if test -n "$STRIP" ; then | |
17276 striplib="$STRIP -x" | |
17277 echo "$as_me:$LINENO: result: yes" >&5 | |
17278 echo "${ECHO_T}yes" >&6 | |
17279 else | |
17280 echo "$as_me:$LINENO: result: no" >&5 | |
17281 echo "${ECHO_T}no" >&6 | |
17282 fi | |
17283 ;; | |
17284 *) | |
17285 echo "$as_me:$LINENO: result: no" >&5 | |
17286 echo "${ECHO_T}no" >&6 | |
17287 ;; | |
17288 esac | |
17289 fi | |
17290 | |
17291 if test "x$enable_dlopen" != xyes; then | |
17292 enable_dlopen=unknown | |
17293 enable_dlopen_self=unknown | |
17294 enable_dlopen_self_static=unknown | |
17295 else | |
17296 lt_cv_dlopen=no | |
17297 lt_cv_dlopen_libs= | |
17298 | |
17299 case $host_os in | |
17300 beos*) | |
17301 lt_cv_dlopen="load_add_on" | |
17302 lt_cv_dlopen_libs= | |
17303 lt_cv_dlopen_self=yes | |
17304 ;; | |
17305 | |
17306 mingw* | pw32*) | |
17307 lt_cv_dlopen="LoadLibrary" | |
17308 lt_cv_dlopen_libs= | |
17309 ;; | |
17310 | |
17311 cygwin*) | |
17312 lt_cv_dlopen="dlopen" | |
17313 lt_cv_dlopen_libs= | |
17314 ;; | |
17315 | |
17316 darwin*) | |
17317 # if libdl is installed we need to link against it | |
17318 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
17319 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
17320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
17321 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17322 else | |
17323 ac_check_lib_save_LIBS=$LIBS | |
17324 LIBS="-ldl $LIBS" | |
17325 cat >conftest.$ac_ext <<_ACEOF | |
17326 /* confdefs.h. */ | |
17327 _ACEOF | |
17328 cat confdefs.h >>conftest.$ac_ext | |
17329 cat >>conftest.$ac_ext <<_ACEOF | |
17330 /* end confdefs.h. */ | |
17331 | |
17332 /* Override any gcc2 internal prototype to avoid an error. */ | |
17333 #ifdef __cplusplus | |
17334 extern "C" | |
17335 #endif | |
17336 /* We use char because int might match the return type of a gcc2 | |
17337 builtin and then its argument prototype would still apply. */ | |
17338 char dlopen (); | |
17339 int | |
17340 main () | |
17341 { | |
17342 dlopen (); | |
17343 ; | |
17344 return 0; | |
17345 } | |
17346 _ACEOF | |
17347 rm -f conftest.$ac_objext conftest$ac_exeext | |
17348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17349 (eval $ac_link) 2>conftest.er1 | |
17350 ac_status=$? | |
17351 grep -v '^ *+' conftest.er1 >conftest.err | |
17352 rm -f conftest.er1 | |
17353 cat conftest.err >&5 | |
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17355 (exit $ac_status); } && | |
17356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17358 (eval $ac_try) 2>&5 | |
17359 ac_status=$? | |
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17361 (exit $ac_status); }; } && | |
17362 { ac_try='test -s conftest$ac_exeext' | |
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17364 (eval $ac_try) 2>&5 | |
17365 ac_status=$? | |
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17367 (exit $ac_status); }; }; then | |
17368 ac_cv_lib_dl_dlopen=yes | |
17369 else | |
17370 echo "$as_me: failed program was:" >&5 | |
17371 sed 's/^/| /' conftest.$ac_ext >&5 | |
17372 | |
17373 ac_cv_lib_dl_dlopen=no | |
17374 fi | |
17375 rm -f conftest.err conftest.$ac_objext \ | |
17376 conftest$ac_exeext conftest.$ac_ext | |
17377 LIBS=$ac_check_lib_save_LIBS | |
17378 fi | |
17379 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
17380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
17381 if test $ac_cv_lib_dl_dlopen = yes; then | |
17382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
17383 else | |
17384 | |
17385 lt_cv_dlopen="dyld" | |
17386 lt_cv_dlopen_libs= | |
17387 lt_cv_dlopen_self=yes | |
17388 | |
17389 fi | |
17390 | |
17391 ;; | |
17392 | |
17393 *) | |
17394 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
17395 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
17396 if test "${ac_cv_func_shl_load+set}" = set; then | |
17397 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17398 else | |
17399 cat >conftest.$ac_ext <<_ACEOF | |
17400 /* confdefs.h. */ | |
17401 _ACEOF | |
17402 cat confdefs.h >>conftest.$ac_ext | |
17403 cat >>conftest.$ac_ext <<_ACEOF | |
17404 /* end confdefs.h. */ | |
17405 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
17406 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17407 #define shl_load innocuous_shl_load | |
17408 | |
17409 /* System header to define __stub macros and hopefully few prototypes, | |
17410 which can conflict with char shl_load (); below. | |
17411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17412 <limits.h> exists even on freestanding compilers. */ | |
17413 | |
17414 #ifdef __STDC__ | |
17415 # include <limits.h> | |
17416 #else | |
17417 # include <assert.h> | |
17418 #endif | |
17419 | |
17420 #undef shl_load | |
17421 | |
17422 /* Override any gcc2 internal prototype to avoid an error. */ | |
17423 #ifdef __cplusplus | |
17424 extern "C" | |
17425 { | |
17426 #endif | |
17427 /* We use char because int might match the return type of a gcc2 | |
17428 builtin and then its argument prototype would still apply. */ | |
17429 char shl_load (); | |
17430 /* The GNU C library defines this for functions which it implements | |
17431 to always fail with ENOSYS. Some functions are actually named | |
17432 something starting with __ and the normal name is an alias. */ | |
17433 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
17434 choke me | |
17435 #else | |
17436 char (*f) () = shl_load; | |
17437 #endif | |
17438 #ifdef __cplusplus | |
17439 } | |
17440 #endif | |
17441 | |
17442 int | |
17443 main () | |
17444 { | |
17445 return f != shl_load; | |
17446 ; | |
17447 return 0; | |
17448 } | |
17449 _ACEOF | |
17450 rm -f conftest.$ac_objext conftest$ac_exeext | |
17451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17452 (eval $ac_link) 2>conftest.er1 | |
17453 ac_status=$? | |
17454 grep -v '^ *+' conftest.er1 >conftest.err | |
17455 rm -f conftest.er1 | |
17456 cat conftest.err >&5 | |
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17458 (exit $ac_status); } && | |
17459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17461 (eval $ac_try) 2>&5 | |
17462 ac_status=$? | |
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17464 (exit $ac_status); }; } && | |
17465 { ac_try='test -s conftest$ac_exeext' | |
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17467 (eval $ac_try) 2>&5 | |
17468 ac_status=$? | |
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17470 (exit $ac_status); }; }; then | |
17471 ac_cv_func_shl_load=yes | |
17472 else | |
17473 echo "$as_me: failed program was:" >&5 | |
17474 sed 's/^/| /' conftest.$ac_ext >&5 | |
17475 | |
17476 ac_cv_func_shl_load=no | |
17477 fi | |
17478 rm -f conftest.err conftest.$ac_objext \ | |
17479 conftest$ac_exeext conftest.$ac_ext | |
17480 fi | |
17481 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
17482 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
17483 if test $ac_cv_func_shl_load = yes; then | |
17484 lt_cv_dlopen="shl_load" | |
17485 else | |
17486 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
17487 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
17488 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
17489 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17490 else | |
17491 ac_check_lib_save_LIBS=$LIBS | |
17492 LIBS="-ldld $LIBS" | |
17493 cat >conftest.$ac_ext <<_ACEOF | |
17494 /* confdefs.h. */ | |
17495 _ACEOF | |
17496 cat confdefs.h >>conftest.$ac_ext | |
17497 cat >>conftest.$ac_ext <<_ACEOF | |
17498 /* end confdefs.h. */ | |
17499 | |
17500 /* Override any gcc2 internal prototype to avoid an error. */ | |
17501 #ifdef __cplusplus | |
17502 extern "C" | |
17503 #endif | |
17504 /* We use char because int might match the return type of a gcc2 | |
17505 builtin and then its argument prototype would still apply. */ | |
17506 char shl_load (); | |
17507 int | |
17508 main () | |
17509 { | |
17510 shl_load (); | |
17511 ; | |
17512 return 0; | |
17513 } | |
17514 _ACEOF | |
17515 rm -f conftest.$ac_objext conftest$ac_exeext | |
17516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17517 (eval $ac_link) 2>conftest.er1 | |
17518 ac_status=$? | |
17519 grep -v '^ *+' conftest.er1 >conftest.err | |
17520 rm -f conftest.er1 | |
17521 cat conftest.err >&5 | |
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17523 (exit $ac_status); } && | |
17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17526 (eval $ac_try) 2>&5 | |
17527 ac_status=$? | |
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17529 (exit $ac_status); }; } && | |
17530 { ac_try='test -s conftest$ac_exeext' | |
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17532 (eval $ac_try) 2>&5 | |
17533 ac_status=$? | |
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17535 (exit $ac_status); }; }; then | |
17536 ac_cv_lib_dld_shl_load=yes | |
17537 else | |
17538 echo "$as_me: failed program was:" >&5 | |
17539 sed 's/^/| /' conftest.$ac_ext >&5 | |
17540 | |
17541 ac_cv_lib_dld_shl_load=no | |
17542 fi | |
17543 rm -f conftest.err conftest.$ac_objext \ | |
17544 conftest$ac_exeext conftest.$ac_ext | |
17545 LIBS=$ac_check_lib_save_LIBS | |
17546 fi | |
17547 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
17548 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
17549 if test $ac_cv_lib_dld_shl_load = yes; then | |
17550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
17551 else | |
17552 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
17553 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
17554 if test "${ac_cv_func_dlopen+set}" = set; then | |
17555 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17556 else | |
17557 cat >conftest.$ac_ext <<_ACEOF | |
17558 /* confdefs.h. */ | |
17559 _ACEOF | |
17560 cat confdefs.h >>conftest.$ac_ext | |
17561 cat >>conftest.$ac_ext <<_ACEOF | |
17562 /* end confdefs.h. */ | |
17563 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
17564 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17565 #define dlopen innocuous_dlopen | |
17566 | |
17567 /* System header to define __stub macros and hopefully few prototypes, | |
17568 which can conflict with char dlopen (); below. | |
17569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17570 <limits.h> exists even on freestanding compilers. */ | |
17571 | |
17572 #ifdef __STDC__ | |
17573 # include <limits.h> | |
17574 #else | |
17575 # include <assert.h> | |
17576 #endif | |
17577 | |
17578 #undef dlopen | |
17579 | |
17580 /* Override any gcc2 internal prototype to avoid an error. */ | |
17581 #ifdef __cplusplus | |
17582 extern "C" | |
17583 { | |
17584 #endif | |
17585 /* We use char because int might match the return type of a gcc2 | |
17586 builtin and then its argument prototype would still apply. */ | |
17587 char dlopen (); | |
17588 /* The GNU C library defines this for functions which it implements | |
17589 to always fail with ENOSYS. Some functions are actually named | |
17590 something starting with __ and the normal name is an alias. */ | |
17591 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
17592 choke me | |
17593 #else | |
17594 char (*f) () = dlopen; | |
17595 #endif | |
17596 #ifdef __cplusplus | |
17597 } | |
17598 #endif | |
17599 | |
17600 int | |
17601 main () | |
17602 { | |
17603 return f != dlopen; | |
17604 ; | |
17605 return 0; | |
17606 } | |
17607 _ACEOF | |
17608 rm -f conftest.$ac_objext conftest$ac_exeext | |
17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17610 (eval $ac_link) 2>conftest.er1 | |
17611 ac_status=$? | |
17612 grep -v '^ *+' conftest.er1 >conftest.err | |
17613 rm -f conftest.er1 | |
17614 cat conftest.err >&5 | |
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17616 (exit $ac_status); } && | |
17617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17619 (eval $ac_try) 2>&5 | |
17620 ac_status=$? | |
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17622 (exit $ac_status); }; } && | |
17623 { ac_try='test -s conftest$ac_exeext' | |
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17625 (eval $ac_try) 2>&5 | |
17626 ac_status=$? | |
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17628 (exit $ac_status); }; }; then | |
17629 ac_cv_func_dlopen=yes | |
17630 else | |
17631 echo "$as_me: failed program was:" >&5 | |
17632 sed 's/^/| /' conftest.$ac_ext >&5 | |
17633 | |
17634 ac_cv_func_dlopen=no | |
17635 fi | |
17636 rm -f conftest.err conftest.$ac_objext \ | |
17637 conftest$ac_exeext conftest.$ac_ext | |
17638 fi | |
17639 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
17640 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
17641 if test $ac_cv_func_dlopen = yes; then | |
17642 lt_cv_dlopen="dlopen" | |
17643 else | |
17644 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
17645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
17646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
17647 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17648 else | |
17649 ac_check_lib_save_LIBS=$LIBS | |
17650 LIBS="-ldl $LIBS" | |
17651 cat >conftest.$ac_ext <<_ACEOF | |
17652 /* confdefs.h. */ | |
17653 _ACEOF | |
17654 cat confdefs.h >>conftest.$ac_ext | |
17655 cat >>conftest.$ac_ext <<_ACEOF | |
17656 /* end confdefs.h. */ | |
17657 | |
17658 /* Override any gcc2 internal prototype to avoid an error. */ | |
17659 #ifdef __cplusplus | |
17660 extern "C" | |
17661 #endif | |
17662 /* We use char because int might match the return type of a gcc2 | |
17663 builtin and then its argument prototype would still apply. */ | |
17664 char dlopen (); | |
17665 int | |
17666 main () | |
17667 { | |
17668 dlopen (); | |
17669 ; | |
17670 return 0; | |
17671 } | |
17672 _ACEOF | |
17673 rm -f conftest.$ac_objext conftest$ac_exeext | |
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17675 (eval $ac_link) 2>conftest.er1 | |
17676 ac_status=$? | |
17677 grep -v '^ *+' conftest.er1 >conftest.err | |
17678 rm -f conftest.er1 | |
17679 cat conftest.err >&5 | |
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17681 (exit $ac_status); } && | |
17682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17684 (eval $ac_try) 2>&5 | |
17685 ac_status=$? | |
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17687 (exit $ac_status); }; } && | |
17688 { ac_try='test -s conftest$ac_exeext' | |
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17690 (eval $ac_try) 2>&5 | |
17691 ac_status=$? | |
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17693 (exit $ac_status); }; }; then | |
17694 ac_cv_lib_dl_dlopen=yes | |
17695 else | |
17696 echo "$as_me: failed program was:" >&5 | |
17697 sed 's/^/| /' conftest.$ac_ext >&5 | |
17698 | |
17699 ac_cv_lib_dl_dlopen=no | |
17700 fi | |
17701 rm -f conftest.err conftest.$ac_objext \ | |
17702 conftest$ac_exeext conftest.$ac_ext | |
17703 LIBS=$ac_check_lib_save_LIBS | |
17704 fi | |
17705 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
17706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
17707 if test $ac_cv_lib_dl_dlopen = yes; then | |
17708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
17709 else | |
17710 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
17711 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
17712 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
17713 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17714 else | |
17715 ac_check_lib_save_LIBS=$LIBS | |
17716 LIBS="-lsvld $LIBS" | |
17717 cat >conftest.$ac_ext <<_ACEOF | |
17718 /* confdefs.h. */ | |
17719 _ACEOF | |
17720 cat confdefs.h >>conftest.$ac_ext | |
17721 cat >>conftest.$ac_ext <<_ACEOF | |
17722 /* end confdefs.h. */ | |
17723 | |
17724 /* Override any gcc2 internal prototype to avoid an error. */ | |
17725 #ifdef __cplusplus | |
17726 extern "C" | |
17727 #endif | |
17728 /* We use char because int might match the return type of a gcc2 | |
17729 builtin and then its argument prototype would still apply. */ | |
17730 char dlopen (); | |
17731 int | |
17732 main () | |
17733 { | |
17734 dlopen (); | |
17735 ; | |
17736 return 0; | |
17737 } | |
17738 _ACEOF | |
17739 rm -f conftest.$ac_objext conftest$ac_exeext | |
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17741 (eval $ac_link) 2>conftest.er1 | |
17742 ac_status=$? | |
17743 grep -v '^ *+' conftest.er1 >conftest.err | |
17744 rm -f conftest.er1 | |
17745 cat conftest.err >&5 | |
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17747 (exit $ac_status); } && | |
17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17750 (eval $ac_try) 2>&5 | |
17751 ac_status=$? | |
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17753 (exit $ac_status); }; } && | |
17754 { ac_try='test -s conftest$ac_exeext' | |
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17756 (eval $ac_try) 2>&5 | |
17757 ac_status=$? | |
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17759 (exit $ac_status); }; }; then | |
17760 ac_cv_lib_svld_dlopen=yes | |
17761 else | |
17762 echo "$as_me: failed program was:" >&5 | |
17763 sed 's/^/| /' conftest.$ac_ext >&5 | |
17764 | |
17765 ac_cv_lib_svld_dlopen=no | |
17766 fi | |
17767 rm -f conftest.err conftest.$ac_objext \ | |
17768 conftest$ac_exeext conftest.$ac_ext | |
17769 LIBS=$ac_check_lib_save_LIBS | |
17770 fi | |
17771 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
17772 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
17773 if test $ac_cv_lib_svld_dlopen = yes; then | |
17774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
17775 else | |
17776 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
17777 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
17778 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
17779 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17780 else | |
17781 ac_check_lib_save_LIBS=$LIBS | |
17782 LIBS="-ldld $LIBS" | |
17783 cat >conftest.$ac_ext <<_ACEOF | |
17784 /* confdefs.h. */ | |
17785 _ACEOF | |
17786 cat confdefs.h >>conftest.$ac_ext | |
17787 cat >>conftest.$ac_ext <<_ACEOF | |
17788 /* end confdefs.h. */ | |
17789 | |
17790 /* Override any gcc2 internal prototype to avoid an error. */ | |
17791 #ifdef __cplusplus | |
17792 extern "C" | |
17793 #endif | |
17794 /* We use char because int might match the return type of a gcc2 | |
17795 builtin and then its argument prototype would still apply. */ | |
17796 char dld_link (); | |
17797 int | |
17798 main () | |
17799 { | |
17800 dld_link (); | |
17801 ; | |
17802 return 0; | |
17803 } | |
17804 _ACEOF | |
17805 rm -f conftest.$ac_objext conftest$ac_exeext | |
17806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17807 (eval $ac_link) 2>conftest.er1 | |
17808 ac_status=$? | |
17809 grep -v '^ *+' conftest.er1 >conftest.err | |
17810 rm -f conftest.er1 | |
17811 cat conftest.err >&5 | |
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17813 (exit $ac_status); } && | |
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17816 (eval $ac_try) 2>&5 | |
17817 ac_status=$? | |
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17819 (exit $ac_status); }; } && | |
17820 { ac_try='test -s conftest$ac_exeext' | |
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17822 (eval $ac_try) 2>&5 | |
17823 ac_status=$? | |
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17825 (exit $ac_status); }; }; then | |
17826 ac_cv_lib_dld_dld_link=yes | |
17827 else | |
17828 echo "$as_me: failed program was:" >&5 | |
17829 sed 's/^/| /' conftest.$ac_ext >&5 | |
17830 | |
17831 ac_cv_lib_dld_dld_link=no | |
17832 fi | |
17833 rm -f conftest.err conftest.$ac_objext \ | |
17834 conftest$ac_exeext conftest.$ac_ext | |
17835 LIBS=$ac_check_lib_save_LIBS | |
17836 fi | |
17837 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
17838 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
17839 if test $ac_cv_lib_dld_dld_link = yes; then | |
17840 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
17841 fi | |
17842 | |
17843 | |
17844 fi | |
17845 | |
17846 | |
17847 fi | |
17848 | |
17849 | |
17850 fi | |
17851 | |
17852 | |
17853 fi | |
17854 | |
17855 | |
17856 fi | |
17857 | |
17858 ;; | |
17859 esac | |
17860 | |
17861 if test "x$lt_cv_dlopen" != xno; then | |
17862 enable_dlopen=yes | |
17863 else | |
17864 enable_dlopen=no | |
17865 fi | |
17866 | |
17867 case $lt_cv_dlopen in | |
17868 dlopen) | |
17869 save_CPPFLAGS="$CPPFLAGS" | |
17870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
17871 | |
17872 save_LDFLAGS="$LDFLAGS" | |
17873 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
17874 | |
17875 save_LIBS="$LIBS" | |
17876 LIBS="$lt_cv_dlopen_libs $LIBS" | |
17877 | |
17878 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
17879 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
17880 if test "${lt_cv_dlopen_self+set}" = set; then | |
17881 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17882 else | |
17883 if test "$cross_compiling" = yes; then : | |
17884 lt_cv_dlopen_self=cross | |
17885 else | |
17886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
17887 lt_status=$lt_dlunknown | |
17888 cat > conftest.$ac_ext <<EOF | |
17889 #line 17889 "configure" | |
17890 #include "confdefs.h" | |
17891 | |
17892 #if HAVE_DLFCN_H | |
17893 #include <dlfcn.h> | |
17894 #endif | |
17895 | |
17896 #include <stdio.h> | |
17897 | |
17898 #ifdef RTLD_GLOBAL | |
17899 # define LT_DLGLOBAL RTLD_GLOBAL | |
17900 #else | |
17901 # ifdef DL_GLOBAL | |
17902 # define LT_DLGLOBAL DL_GLOBAL | |
17903 # else | |
17904 # define LT_DLGLOBAL 0 | |
17905 # endif | |
17906 #endif | |
17907 | |
17908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
17909 find out it does not work in some platform. */ | |
17910 #ifndef LT_DLLAZY_OR_NOW | |
17911 # ifdef RTLD_LAZY | |
17912 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
17913 # else | |
17914 # ifdef DL_LAZY | |
17915 # define LT_DLLAZY_OR_NOW DL_LAZY | |
17916 # else | |
17917 # ifdef RTLD_NOW | |
17918 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
17919 # else | |
17920 # ifdef DL_NOW | |
17921 # define LT_DLLAZY_OR_NOW DL_NOW | |
17922 # else | |
17923 # define LT_DLLAZY_OR_NOW 0 | |
17924 # endif | |
17925 # endif | |
17926 # endif | |
17927 # endif | |
17928 #endif | |
17929 | |
17930 #ifdef __cplusplus | |
17931 extern "C" void exit (int); | |
17932 #endif | |
17933 | |
17934 void fnord() { int i=42;} | |
17935 int main () | |
17936 { | |
17937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
17938 int status = $lt_dlunknown; | |
17939 | |
17940 if (self) | |
17941 { | |
17942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
17943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
17944 /* dlclose (self); */ | |
17945 } | |
17946 | |
17947 exit (status); | |
17948 } | |
17949 EOF | |
17950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17951 (eval $ac_link) 2>&5 | |
17952 ac_status=$? | |
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
17955 (./conftest; exit; ) 2>/dev/null | |
17956 lt_status=$? | |
17957 case x$lt_status in | |
17958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
17959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
17960 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
17961 esac | |
17962 else : | |
17963 # compilation failed | |
17964 lt_cv_dlopen_self=no | |
17965 fi | |
17966 fi | |
17967 rm -fr conftest* | |
17968 | |
17969 | |
17970 fi | |
17971 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
17972 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
17973 | |
17974 if test "x$lt_cv_dlopen_self" = xyes; then | |
17975 LDFLAGS="$LDFLAGS $link_static_flag" | |
17976 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
17977 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
17978 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
17979 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17980 else | |
17981 if test "$cross_compiling" = yes; then : | |
17982 lt_cv_dlopen_self_static=cross | |
17983 else | |
17984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
17985 lt_status=$lt_dlunknown | |
17986 cat > conftest.$ac_ext <<EOF | |
17987 #line 17987 "configure" | |
17988 #include "confdefs.h" | |
17989 | |
17990 #if HAVE_DLFCN_H | |
17991 #include <dlfcn.h> | |
17992 #endif | |
17993 | |
17994 #include <stdio.h> | |
17995 | |
17996 #ifdef RTLD_GLOBAL | |
17997 # define LT_DLGLOBAL RTLD_GLOBAL | |
17998 #else | |
17999 # ifdef DL_GLOBAL | |
18000 # define LT_DLGLOBAL DL_GLOBAL | |
18001 # else | |
18002 # define LT_DLGLOBAL 0 | |
18003 # endif | |
18004 #endif | |
18005 | |
18006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
18007 find out it does not work in some platform. */ | |
18008 #ifndef LT_DLLAZY_OR_NOW | |
18009 # ifdef RTLD_LAZY | |
18010 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
18011 # else | |
18012 # ifdef DL_LAZY | |
18013 # define LT_DLLAZY_OR_NOW DL_LAZY | |
18014 # else | |
18015 # ifdef RTLD_NOW | |
18016 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
18017 # else | |
18018 # ifdef DL_NOW | |
18019 # define LT_DLLAZY_OR_NOW DL_NOW | |
18020 # else | |
18021 # define LT_DLLAZY_OR_NOW 0 | |
18022 # endif | |
18023 # endif | |
18024 # endif | |
18025 # endif | |
18026 #endif | |
18027 | |
18028 #ifdef __cplusplus | |
18029 extern "C" void exit (int); | |
18030 #endif | |
18031 | |
18032 void fnord() { int i=42;} | |
18033 int main () | |
18034 { | |
18035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
18036 int status = $lt_dlunknown; | |
18037 | |
18038 if (self) | |
18039 { | |
18040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
18041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
18042 /* dlclose (self); */ | |
18043 } | |
18044 | |
18045 exit (status); | |
18046 } | |
18047 EOF | |
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18049 (eval $ac_link) 2>&5 | |
18050 ac_status=$? | |
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
18053 (./conftest; exit; ) 2>/dev/null | |
18054 lt_status=$? | |
18055 case x$lt_status in | |
18056 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
18057 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
18058 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
18059 esac | |
18060 else : | |
18061 # compilation failed | |
18062 lt_cv_dlopen_self_static=no | |
18063 fi | |
18064 fi | |
18065 rm -fr conftest* | |
18066 | |
18067 | |
18068 fi | |
18069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
18070 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
18071 fi | |
18072 | |
18073 CPPFLAGS="$save_CPPFLAGS" | |
18074 LDFLAGS="$save_LDFLAGS" | |
18075 LIBS="$save_LIBS" | |
18076 ;; | |
18077 esac | |
18078 | |
18079 case $lt_cv_dlopen_self in | |
18080 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
18081 *) enable_dlopen_self=unknown ;; | |
18082 esac | |
18083 | |
18084 case $lt_cv_dlopen_self_static in | |
18085 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
18086 *) enable_dlopen_self_static=unknown ;; | |
18087 esac | |
18088 fi | |
18089 | |
18090 | |
18091 # The else clause should only fire when bootstrapping the | |
18092 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18093 # with your package, and you will get complaints that there are | |
18094 # no rules to generate ltmain.sh. | |
18095 if test -f "$ltmain"; then | |
18096 # See if we are running on zsh, and set the options which allow our commands through | |
18097 # without removal of \ escapes. | |
18098 if test -n "${ZSH_VERSION+set}" ; then | |
18099 setopt NO_GLOB_SUBST | |
18100 fi | |
18101 # Now quote all the things that may contain metacharacters while being | |
18102 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18103 # variables and quote the copies for generation of the libtool script. | |
18104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
18105 SED SHELL STRIP \ | |
18106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18108 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18110 lt_cv_sys_global_symbol_to_c_name_address \ | |
18111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18112 old_postinstall_cmds old_postuninstall_cmds \ | |
18113 compiler_GCJ \ | |
18114 CC_GCJ \ | |
18115 LD_GCJ \ | |
18116 lt_prog_compiler_wl_GCJ \ | |
18117 lt_prog_compiler_pic_GCJ \ | |
18118 lt_prog_compiler_static_GCJ \ | |
18119 lt_prog_compiler_no_builtin_flag_GCJ \ | |
18120 export_dynamic_flag_spec_GCJ \ | |
18121 thread_safe_flag_spec_GCJ \ | |
18122 whole_archive_flag_spec_GCJ \ | |
18123 enable_shared_with_static_runtimes_GCJ \ | |
18124 old_archive_cmds_GCJ \ | |
18125 old_archive_from_new_cmds_GCJ \ | |
18126 predep_objects_GCJ \ | |
18127 postdep_objects_GCJ \ | |
18128 predeps_GCJ \ | |
18129 postdeps_GCJ \ | |
18130 compiler_lib_search_path_GCJ \ | |
18131 archive_cmds_GCJ \ | |
18132 archive_expsym_cmds_GCJ \ | |
18133 postinstall_cmds_GCJ \ | |
18134 postuninstall_cmds_GCJ \ | |
18135 old_archive_from_expsyms_cmds_GCJ \ | |
18136 allow_undefined_flag_GCJ \ | |
18137 no_undefined_flag_GCJ \ | |
18138 export_symbols_cmds_GCJ \ | |
18139 hardcode_libdir_flag_spec_GCJ \ | |
18140 hardcode_libdir_flag_spec_ld_GCJ \ | |
18141 hardcode_libdir_separator_GCJ \ | |
18142 hardcode_automatic_GCJ \ | |
18143 module_cmds_GCJ \ | |
18144 module_expsym_cmds_GCJ \ | |
18145 lt_cv_prog_compiler_c_o_GCJ \ | |
18146 exclude_expsyms_GCJ \ | |
18147 include_expsyms_GCJ; do | |
18148 | |
18149 case $var in | |
18150 old_archive_cmds_GCJ | \ | |
18151 old_archive_from_new_cmds_GCJ | \ | |
18152 archive_cmds_GCJ | \ | |
18153 archive_expsym_cmds_GCJ | \ | |
18154 module_cmds_GCJ | \ | |
18155 module_expsym_cmds_GCJ | \ | |
18156 old_archive_from_expsyms_cmds_GCJ | \ | |
18157 export_symbols_cmds_GCJ | \ | |
18158 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18159 postinstall_cmds | postuninstall_cmds | \ | |
18160 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18162 # Double-quote double-evaled strings. | |
18163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18164 ;; | |
18165 *) | |
18166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18167 ;; | |
18168 esac | |
18169 done | |
18170 | |
18171 case $lt_echo in | |
18172 *'\$0 --fallback-echo"') | |
18173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18174 ;; | |
18175 esac | |
18176 | |
18177 cfgfile="$ofile" | |
18178 | |
18179 cat <<__EOF__ >> "$cfgfile" | |
18180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18181 | |
18182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18183 | |
18184 # Shell to use when invoking shell scripts. | |
18185 SHELL=$lt_SHELL | |
18186 | |
18187 # Whether or not to build shared libraries. | |
18188 build_libtool_libs=$enable_shared | |
18189 | |
18190 # Whether or not to build static libraries. | |
18191 build_old_libs=$enable_static | |
18192 | |
18193 # Whether or not to add -lc for building shared libraries. | |
18194 build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18195 | |
18196 # Whether or not to disallow shared libs when runtime libs are static | |
18197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18198 | |
18199 # Whether or not to optimize for fast installation. | |
18200 fast_install=$enable_fast_install | |
18201 | |
18202 # The host system. | |
18203 host_alias=$host_alias | |
18204 host=$host | |
18205 | |
18206 # An echo program that does not interpret backslashes. | |
18207 echo=$lt_echo | |
18208 | |
18209 # The archiver. | |
18210 AR=$lt_AR | |
18211 AR_FLAGS=$lt_AR_FLAGS | |
18212 | |
18213 # A C compiler. | |
18214 LTCC=$lt_LTCC | |
18215 | |
18216 # A language-specific compiler. | |
18217 CC=$lt_compiler_GCJ | |
18218 | |
18219 # Is the compiler the GNU C compiler? | |
18220 with_gcc=$GCC_GCJ | |
18221 | |
18222 # An ERE matcher. | |
18223 EGREP=$lt_EGREP | |
18224 | |
18225 # The linker used to build libraries. | |
18226 LD=$lt_LD_GCJ | |
18227 | |
18228 # Whether we need hard or soft links. | |
18229 LN_S=$lt_LN_S | |
18230 | |
18231 # A BSD-compatible nm program. | |
18232 NM=$lt_NM | |
18233 | |
18234 # A symbol stripping program | |
18235 STRIP=$lt_STRIP | |
18236 | |
18237 # Used to examine libraries when file_magic_cmd begins "file" | |
18238 MAGIC_CMD=$MAGIC_CMD | |
18239 | |
18240 # Used on cygwin: DLL creation program. | |
18241 DLLTOOL="$DLLTOOL" | |
18242 | |
18243 # Used on cygwin: object dumper. | |
18244 OBJDUMP="$OBJDUMP" | |
18245 | |
18246 # Used on cygwin: assembler. | |
18247 AS="$AS" | |
18248 | |
18249 # The name of the directory that contains temporary libtool files. | |
18250 objdir=$objdir | |
18251 | |
18252 # How to create reloadable object files. | |
18253 reload_flag=$lt_reload_flag | |
18254 reload_cmds=$lt_reload_cmds | |
18255 | |
18256 # How to pass a linker flag through the compiler. | |
18257 wl=$lt_lt_prog_compiler_wl_GCJ | |
18258 | |
18259 # Object file suffix (normally "o"). | |
18260 objext="$ac_objext" | |
18261 | |
18262 # Old archive suffix (normally "a"). | |
18263 libext="$libext" | |
18264 | |
18265 # Shared library suffix (normally ".so"). | |
18266 shrext='$shrext' | |
18267 | |
18268 # Executable file suffix (normally ""). | |
18269 exeext="$exeext" | |
18270 | |
18271 # Additional compiler flags for building library objects. | |
18272 pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18273 pic_mode=$pic_mode | |
18274 | |
18275 # What is the maximum length of a command? | |
18276 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18277 | |
18278 # Does compiler simultaneously support -c and -o options? | |
18279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18280 | |
18281 # Must we lock files when doing compilation ? | |
18282 need_locks=$lt_need_locks | |
18283 | |
18284 # Do we need the lib prefix for modules? | |
18285 need_lib_prefix=$need_lib_prefix | |
18286 | |
18287 # Do we need a version for libraries? | |
18288 need_version=$need_version | |
18289 | |
18290 # Whether dlopen is supported. | |
18291 dlopen_support=$enable_dlopen | |
18292 | |
18293 # Whether dlopen of programs is supported. | |
18294 dlopen_self=$enable_dlopen_self | |
18295 | |
18296 # Whether dlopen of statically linked programs is supported. | |
18297 dlopen_self_static=$enable_dlopen_self_static | |
18298 | |
18299 # Compiler flag to prevent dynamic linking. | |
18300 link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18301 | |
18302 # Compiler flag to turn off builtin functions. | |
18303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18304 | |
18305 # Compiler flag to allow reflexive dlopens. | |
18306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18307 | |
18308 # Compiler flag to generate shared objects directly from archives. | |
18309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18310 | |
18311 # Compiler flag to generate thread-safe objects. | |
18312 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18313 | |
18314 # Library versioning type. | |
18315 version_type=$version_type | |
18316 | |
18317 # Format of library name prefix. | |
18318 libname_spec=$lt_libname_spec | |
18319 | |
18320 # List of archive names. First name is the real one, the rest are links. | |
18321 # The last name is the one that the linker finds with -lNAME. | |
18322 library_names_spec=$lt_library_names_spec | |
18323 | |
18324 # The coded name of the library, if different from the real name. | |
18325 soname_spec=$lt_soname_spec | |
18326 | |
18327 # Commands used to build and install an old-style archive. | |
18328 RANLIB=$lt_RANLIB | |
18329 old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18330 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18331 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18332 | |
18333 # Create an old-style archive from a shared archive. | |
18334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18335 | |
18336 # Create a temporary old-style archive to link instead of a shared archive. | |
18337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18338 | |
18339 # Commands used to build and install a shared archive. | |
18340 archive_cmds=$lt_archive_cmds_GCJ | |
18341 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18342 postinstall_cmds=$lt_postinstall_cmds | |
18343 postuninstall_cmds=$lt_postuninstall_cmds | |
18344 | |
18345 # Commands used to build a loadable module (assumed same as above if empty) | |
18346 module_cmds=$lt_module_cmds_GCJ | |
18347 module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18348 | |
18349 # Commands to strip libraries. | |
18350 old_striplib=$lt_old_striplib | |
18351 striplib=$lt_striplib | |
18352 | |
18353 # Dependencies to place before the objects being linked to create a | |
18354 # shared library. | |
18355 predep_objects=$lt_predep_objects_GCJ | |
18356 | |
18357 # Dependencies to place after the objects being linked to create a | |
18358 # shared library. | |
18359 postdep_objects=$lt_postdep_objects_GCJ | |
18360 | |
18361 # Dependencies to place before the objects being linked to create a | |
18362 # shared library. | |
18363 predeps=$lt_predeps_GCJ | |
18364 | |
18365 # Dependencies to place after the objects being linked to create a | |
18366 # shared library. | |
18367 postdeps=$lt_postdeps_GCJ | |
18368 | |
18369 # The library search path used internally by the compiler when linking | |
18370 # a shared library. | |
18371 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
18372 | |
18373 # Method to check whether dependent libraries are shared objects. | |
18374 deplibs_check_method=$lt_deplibs_check_method | |
18375 | |
18376 # Command to use when deplibs_check_method == file_magic. | |
18377 file_magic_cmd=$lt_file_magic_cmd | |
18378 | |
18379 # Flag that allows shared libraries with undefined symbols to be built. | |
18380 allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18381 | |
18382 # Flag that forces no undefined symbols. | |
18383 no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18384 | |
18385 # Commands used to finish a libtool library installation in a directory. | |
18386 finish_cmds=$lt_finish_cmds | |
18387 | |
18388 # Same as above, but a single script fragment to be evaled but not shown. | |
18389 finish_eval=$lt_finish_eval | |
18390 | |
18391 # Take the output of nm and produce a listing of raw symbols and C names. | |
18392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18393 | |
18394 # Transform the output of nm in a proper C declaration | |
18395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18396 | |
18397 # Transform the output of nm in a C name address pair | |
18398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18399 | |
18400 # This is the shared library runtime path variable. | |
18401 runpath_var=$runpath_var | |
18402 | |
18403 # This is the shared library path variable. | |
18404 shlibpath_var=$shlibpath_var | |
18405 | |
18406 # Is shlibpath searched before the hard-coded library search path? | |
18407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18408 | |
18409 # How to hardcode a shared library path into an executable. | |
18410 hardcode_action=$hardcode_action_GCJ | |
18411 | |
18412 # Whether we should hardcode library paths into libraries. | |
18413 hardcode_into_libs=$hardcode_into_libs | |
18414 | |
18415 # Flag to hardcode \$libdir into a binary during linking. | |
18416 # This must work even if \$libdir does not exist. | |
18417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
18418 | |
18419 # If ld is used when linking, flag to hardcode \$libdir into | |
18420 # a binary during linking. This must work even if \$libdir does | |
18421 # not exist. | |
18422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
18423 | |
18424 # Whether we need a single -rpath flag with a separated argument. | |
18425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
18426 | |
18427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18428 # resulting binary. | |
18429 hardcode_direct=$hardcode_direct_GCJ | |
18430 | |
18431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18432 # resulting binary. | |
18433 hardcode_minus_L=$hardcode_minus_L_GCJ | |
18434 | |
18435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18436 # the resulting binary. | |
18437 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
18438 | |
18439 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18440 # and all subsequent libraries and executables linked against it. | |
18441 hardcode_automatic=$hardcode_automatic_GCJ | |
18442 | |
18443 # Variables whose values should be saved in libtool wrapper scripts and | |
18444 # restored at relink time. | |
18445 variables_saved_for_relink="$variables_saved_for_relink" | |
18446 | |
18447 # Whether libtool must link a program against all its dependency libraries. | |
18448 link_all_deplibs=$link_all_deplibs_GCJ | |
18449 | |
18450 # Compile-time system search path for libraries | |
18451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18452 | |
18453 # Run-time system search path for libraries | |
18454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18455 | |
18456 # Fix the shell variable \$srcfile for the compiler. | |
18457 fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18458 | |
18459 # Set to yes if exported symbols are required. | |
18460 always_export_symbols=$always_export_symbols_GCJ | |
18461 | |
18462 # The commands to list exported symbols. | |
18463 export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18464 | |
18465 # The commands to extract the exported symbol list from a shared archive. | |
18466 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18467 | |
18468 # Symbols that should not be listed in the preloaded symbols. | |
18469 exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18470 | |
18471 # Symbols that must always be exported. | |
18472 include_expsyms=$lt_include_expsyms_GCJ | |
18473 | |
18474 # ### END LIBTOOL TAG CONFIG: $tagname | |
18475 | |
18476 __EOF__ | |
18477 | |
18478 | |
18479 else | |
18480 # If there is no Makefile yet, we rely on a make rule to execute | |
18481 # `config.status --recheck' to rerun these tests and create the | |
18482 # libtool script then. | |
18483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18484 if test -f "$ltmain_in"; then | |
18485 test -f Makefile && make "$ltmain" | |
18486 fi | |
18487 fi | |
18488 | |
18489 | |
18490 ac_ext=c | |
18491 ac_cpp='$CPP $CPPFLAGS' | |
18492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18494 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18495 | |
18496 CC="$lt_save_CC" | |
18497 | |
18498 else | |
18499 tagname="" | |
18500 fi | |
18501 ;; | |
18502 | |
18503 RC) | |
18504 | |
18505 | |
18506 | |
18507 # Source file extension for RC test sources. | |
18508 ac_ext=rc | |
18509 | |
18510 # Object file extension for compiled RC test sources. | |
18511 objext=o | |
18512 objext_RC=$objext | |
18513 | |
18514 # Code to be used in simple compile tests | |
18515 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18516 | |
18517 # Code to be used in simple link tests | |
18518 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18519 | |
18520 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18521 | |
18522 # If no C compiler was specified, use CC. | |
18523 LTCC=${LTCC-"$CC"} | |
18524 | |
18525 # Allow CC to be a program name with arguments. | |
18526 compiler=$CC | |
18527 | |
18528 | |
18529 # Allow CC to be a program name with arguments. | |
18530 lt_save_CC="$CC" | |
18531 CC=${RC-"windres"} | |
18532 compiler=$CC | |
18533 compiler_RC=$CC | |
18534 lt_cv_prog_compiler_c_o_RC=yes | |
18535 | |
18536 # The else clause should only fire when bootstrapping the | |
18537 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18538 # with your package, and you will get complaints that there are | |
18539 # no rules to generate ltmain.sh. | |
18540 if test -f "$ltmain"; then | |
18541 # See if we are running on zsh, and set the options which allow our commands through | |
18542 # without removal of \ escapes. | |
18543 if test -n "${ZSH_VERSION+set}" ; then | |
18544 setopt NO_GLOB_SUBST | |
18545 fi | |
18546 # Now quote all the things that may contain metacharacters while being | |
18547 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18548 # variables and quote the copies for generation of the libtool script. | |
18549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
18550 SED SHELL STRIP \ | |
18551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18553 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18555 lt_cv_sys_global_symbol_to_c_name_address \ | |
18556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18557 old_postinstall_cmds old_postuninstall_cmds \ | |
18558 compiler_RC \ | |
18559 CC_RC \ | |
18560 LD_RC \ | |
18561 lt_prog_compiler_wl_RC \ | |
18562 lt_prog_compiler_pic_RC \ | |
18563 lt_prog_compiler_static_RC \ | |
18564 lt_prog_compiler_no_builtin_flag_RC \ | |
18565 export_dynamic_flag_spec_RC \ | |
18566 thread_safe_flag_spec_RC \ | |
18567 whole_archive_flag_spec_RC \ | |
18568 enable_shared_with_static_runtimes_RC \ | |
18569 old_archive_cmds_RC \ | |
18570 old_archive_from_new_cmds_RC \ | |
18571 predep_objects_RC \ | |
18572 postdep_objects_RC \ | |
18573 predeps_RC \ | |
18574 postdeps_RC \ | |
18575 compiler_lib_search_path_RC \ | |
18576 archive_cmds_RC \ | |
18577 archive_expsym_cmds_RC \ | |
18578 postinstall_cmds_RC \ | |
18579 postuninstall_cmds_RC \ | |
18580 old_archive_from_expsyms_cmds_RC \ | |
18581 allow_undefined_flag_RC \ | |
18582 no_undefined_flag_RC \ | |
18583 export_symbols_cmds_RC \ | |
18584 hardcode_libdir_flag_spec_RC \ | |
18585 hardcode_libdir_flag_spec_ld_RC \ | |
18586 hardcode_libdir_separator_RC \ | |
18587 hardcode_automatic_RC \ | |
18588 module_cmds_RC \ | |
18589 module_expsym_cmds_RC \ | |
18590 lt_cv_prog_compiler_c_o_RC \ | |
18591 exclude_expsyms_RC \ | |
18592 include_expsyms_RC; do | |
18593 | |
18594 case $var in | |
18595 old_archive_cmds_RC | \ | |
18596 old_archive_from_new_cmds_RC | \ | |
18597 archive_cmds_RC | \ | |
18598 archive_expsym_cmds_RC | \ | |
18599 module_cmds_RC | \ | |
18600 module_expsym_cmds_RC | \ | |
18601 old_archive_from_expsyms_cmds_RC | \ | |
18602 export_symbols_cmds_RC | \ | |
18603 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18604 postinstall_cmds | postuninstall_cmds | \ | |
18605 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18607 # Double-quote double-evaled strings. | |
18608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18609 ;; | |
18610 *) | |
18611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18612 ;; | |
18613 esac | |
18614 done | |
18615 | |
18616 case $lt_echo in | |
18617 *'\$0 --fallback-echo"') | |
18618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18619 ;; | |
18620 esac | |
18621 | |
18622 cfgfile="$ofile" | |
18623 | |
18624 cat <<__EOF__ >> "$cfgfile" | |
18625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18626 | |
18627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18628 | |
18629 # Shell to use when invoking shell scripts. | |
18630 SHELL=$lt_SHELL | |
18631 | |
18632 # Whether or not to build shared libraries. | |
18633 build_libtool_libs=$enable_shared | |
18634 | |
18635 # Whether or not to build static libraries. | |
18636 build_old_libs=$enable_static | |
18637 | |
18638 # Whether or not to add -lc for building shared libraries. | |
18639 build_libtool_need_lc=$archive_cmds_need_lc_RC | |
18640 | |
18641 # Whether or not to disallow shared libs when runtime libs are static | |
18642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
18643 | |
18644 # Whether or not to optimize for fast installation. | |
18645 fast_install=$enable_fast_install | |
18646 | |
18647 # The host system. | |
18648 host_alias=$host_alias | |
18649 host=$host | |
18650 | |
18651 # An echo program that does not interpret backslashes. | |
18652 echo=$lt_echo | |
18653 | |
18654 # The archiver. | |
18655 AR=$lt_AR | |
18656 AR_FLAGS=$lt_AR_FLAGS | |
18657 | |
18658 # A C compiler. | |
18659 LTCC=$lt_LTCC | |
18660 | |
18661 # A language-specific compiler. | |
18662 CC=$lt_compiler_RC | |
18663 | |
18664 # Is the compiler the GNU C compiler? | |
18665 with_gcc=$GCC_RC | |
18666 | |
18667 # An ERE matcher. | |
18668 EGREP=$lt_EGREP | |
18669 | |
18670 # The linker used to build libraries. | |
18671 LD=$lt_LD_RC | |
18672 | |
18673 # Whether we need hard or soft links. | |
18674 LN_S=$lt_LN_S | |
18675 | |
18676 # A BSD-compatible nm program. | |
18677 NM=$lt_NM | |
18678 | |
18679 # A symbol stripping program | |
18680 STRIP=$lt_STRIP | |
18681 | |
18682 # Used to examine libraries when file_magic_cmd begins "file" | |
18683 MAGIC_CMD=$MAGIC_CMD | |
18684 | |
18685 # Used on cygwin: DLL creation program. | |
18686 DLLTOOL="$DLLTOOL" | |
18687 | |
18688 # Used on cygwin: object dumper. | |
18689 OBJDUMP="$OBJDUMP" | |
18690 | |
18691 # Used on cygwin: assembler. | |
18692 AS="$AS" | |
18693 | |
18694 # The name of the directory that contains temporary libtool files. | |
18695 objdir=$objdir | |
18696 | |
18697 # How to create reloadable object files. | |
18698 reload_flag=$lt_reload_flag | |
18699 reload_cmds=$lt_reload_cmds | |
18700 | |
18701 # How to pass a linker flag through the compiler. | |
18702 wl=$lt_lt_prog_compiler_wl_RC | |
18703 | |
18704 # Object file suffix (normally "o"). | |
18705 objext="$ac_objext" | |
18706 | |
18707 # Old archive suffix (normally "a"). | |
18708 libext="$libext" | |
18709 | |
18710 # Shared library suffix (normally ".so"). | |
18711 shrext='$shrext' | |
18712 | |
18713 # Executable file suffix (normally ""). | |
18714 exeext="$exeext" | |
18715 | |
18716 # Additional compiler flags for building library objects. | |
18717 pic_flag=$lt_lt_prog_compiler_pic_RC | |
18718 pic_mode=$pic_mode | |
18719 | |
18720 # What is the maximum length of a command? | |
18721 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18722 | |
18723 # Does compiler simultaneously support -c and -o options? | |
18724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
18725 | |
18726 # Must we lock files when doing compilation ? | |
18727 need_locks=$lt_need_locks | |
18728 | |
18729 # Do we need the lib prefix for modules? | |
18730 need_lib_prefix=$need_lib_prefix | |
18731 | |
18732 # Do we need a version for libraries? | |
18733 need_version=$need_version | |
18734 | |
18735 # Whether dlopen is supported. | |
18736 dlopen_support=$enable_dlopen | |
18737 | |
18738 # Whether dlopen of programs is supported. | |
18739 dlopen_self=$enable_dlopen_self | |
18740 | |
18741 # Whether dlopen of statically linked programs is supported. | |
18742 dlopen_self_static=$enable_dlopen_self_static | |
18743 | |
18744 # Compiler flag to prevent dynamic linking. | |
18745 link_static_flag=$lt_lt_prog_compiler_static_RC | |
18746 | |
18747 # Compiler flag to turn off builtin functions. | |
18748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
18749 | |
18750 # Compiler flag to allow reflexive dlopens. | |
18751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
18752 | |
18753 # Compiler flag to generate shared objects directly from archives. | |
18754 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
18755 | |
18756 # Compiler flag to generate thread-safe objects. | |
18757 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
18758 | |
18759 # Library versioning type. | |
18760 version_type=$version_type | |
18761 | |
18762 # Format of library name prefix. | |
18763 libname_spec=$lt_libname_spec | |
18764 | |
18765 # List of archive names. First name is the real one, the rest are links. | |
18766 # The last name is the one that the linker finds with -lNAME. | |
18767 library_names_spec=$lt_library_names_spec | |
18768 | |
18769 # The coded name of the library, if different from the real name. | |
18770 soname_spec=$lt_soname_spec | |
18771 | |
18772 # Commands used to build and install an old-style archive. | |
18773 RANLIB=$lt_RANLIB | |
18774 old_archive_cmds=$lt_old_archive_cmds_RC | |
18775 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18776 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18777 | |
18778 # Create an old-style archive from a shared archive. | |
18779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
18780 | |
18781 # Create a temporary old-style archive to link instead of a shared archive. | |
18782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
18783 | |
18784 # Commands used to build and install a shared archive. | |
18785 archive_cmds=$lt_archive_cmds_RC | |
18786 archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
18787 postinstall_cmds=$lt_postinstall_cmds | |
18788 postuninstall_cmds=$lt_postuninstall_cmds | |
18789 | |
18790 # Commands used to build a loadable module (assumed same as above if empty) | |
18791 module_cmds=$lt_module_cmds_RC | |
18792 module_expsym_cmds=$lt_module_expsym_cmds_RC | |
18793 | |
18794 # Commands to strip libraries. | |
18795 old_striplib=$lt_old_striplib | |
18796 striplib=$lt_striplib | |
18797 | |
18798 # Dependencies to place before the objects being linked to create a | |
18799 # shared library. | |
18800 predep_objects=$lt_predep_objects_RC | |
18801 | |
18802 # Dependencies to place after the objects being linked to create a | |
18803 # shared library. | |
18804 postdep_objects=$lt_postdep_objects_RC | |
18805 | |
18806 # Dependencies to place before the objects being linked to create a | |
18807 # shared library. | |
18808 predeps=$lt_predeps_RC | |
18809 | |
18810 # Dependencies to place after the objects being linked to create a | |
18811 # shared library. | |
18812 postdeps=$lt_postdeps_RC | |
18813 | |
18814 # The library search path used internally by the compiler when linking | |
18815 # a shared library. | |
18816 compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
18817 | |
18818 # Method to check whether dependent libraries are shared objects. | |
18819 deplibs_check_method=$lt_deplibs_check_method | |
18820 | |
18821 # Command to use when deplibs_check_method == file_magic. | |
18822 file_magic_cmd=$lt_file_magic_cmd | |
18823 | |
18824 # Flag that allows shared libraries with undefined symbols to be built. | |
18825 allow_undefined_flag=$lt_allow_undefined_flag_RC | |
18826 | |
18827 # Flag that forces no undefined symbols. | |
18828 no_undefined_flag=$lt_no_undefined_flag_RC | |
18829 | |
18830 # Commands used to finish a libtool library installation in a directory. | |
18831 finish_cmds=$lt_finish_cmds | |
18832 | |
18833 # Same as above, but a single script fragment to be evaled but not shown. | |
18834 finish_eval=$lt_finish_eval | |
18835 | |
18836 # Take the output of nm and produce a listing of raw symbols and C names. | |
18837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18838 | |
18839 # Transform the output of nm in a proper C declaration | |
18840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18841 | |
18842 # Transform the output of nm in a C name address pair | |
18843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18844 | |
18845 # This is the shared library runtime path variable. | |
18846 runpath_var=$runpath_var | |
18847 | |
18848 # This is the shared library path variable. | |
18849 shlibpath_var=$shlibpath_var | |
18850 | |
18851 # Is shlibpath searched before the hard-coded library search path? | |
18852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18853 | |
18854 # How to hardcode a shared library path into an executable. | |
18855 hardcode_action=$hardcode_action_RC | |
18856 | |
18857 # Whether we should hardcode library paths into libraries. | |
18858 hardcode_into_libs=$hardcode_into_libs | |
18859 | |
18860 # Flag to hardcode \$libdir into a binary during linking. | |
18861 # This must work even if \$libdir does not exist. | |
18862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
18863 | |
18864 # If ld is used when linking, flag to hardcode \$libdir into | |
18865 # a binary during linking. This must work even if \$libdir does | |
18866 # not exist. | |
18867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
18868 | |
18869 # Whether we need a single -rpath flag with a separated argument. | |
18870 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
18871 | |
18872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18873 # resulting binary. | |
18874 hardcode_direct=$hardcode_direct_RC | |
18875 | |
18876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18877 # resulting binary. | |
18878 hardcode_minus_L=$hardcode_minus_L_RC | |
18879 | |
18880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18881 # the resulting binary. | |
18882 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
18883 | |
18884 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18885 # and all subsequent libraries and executables linked against it. | |
18886 hardcode_automatic=$hardcode_automatic_RC | |
18887 | |
18888 # Variables whose values should be saved in libtool wrapper scripts and | |
18889 # restored at relink time. | |
18890 variables_saved_for_relink="$variables_saved_for_relink" | |
18891 | |
18892 # Whether libtool must link a program against all its dependency libraries. | |
18893 link_all_deplibs=$link_all_deplibs_RC | |
18894 | |
18895 # Compile-time system search path for libraries | |
18896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18897 | |
18898 # Run-time system search path for libraries | |
18899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18900 | |
18901 # Fix the shell variable \$srcfile for the compiler. | |
18902 fix_srcfile_path="$fix_srcfile_path_RC" | |
18903 | |
18904 # Set to yes if exported symbols are required. | |
18905 always_export_symbols=$always_export_symbols_RC | |
18906 | |
18907 # The commands to list exported symbols. | |
18908 export_symbols_cmds=$lt_export_symbols_cmds_RC | |
18909 | |
18910 # The commands to extract the exported symbol list from a shared archive. | |
18911 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18912 | |
18913 # Symbols that should not be listed in the preloaded symbols. | |
18914 exclude_expsyms=$lt_exclude_expsyms_RC | |
18915 | |
18916 # Symbols that must always be exported. | |
18917 include_expsyms=$lt_include_expsyms_RC | |
18918 | |
18919 # ### END LIBTOOL TAG CONFIG: $tagname | |
18920 | |
18921 __EOF__ | |
18922 | |
18923 | |
18924 else | |
18925 # If there is no Makefile yet, we rely on a make rule to execute | |
18926 # `config.status --recheck' to rerun these tests and create the | |
18927 # libtool script then. | |
18928 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18929 if test -f "$ltmain_in"; then | |
18930 test -f Makefile && make "$ltmain" | |
18931 fi | |
18932 fi | |
18933 | |
18934 | |
18935 ac_ext=c | |
18936 ac_cpp='$CPP $CPPFLAGS' | |
18937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18939 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18940 | |
18941 CC="$lt_save_CC" | |
18942 | |
18943 ;; | |
18944 | |
18945 *) | |
18946 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
18947 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
18948 { (exit 1); exit 1; }; } | |
18949 ;; | |
18950 esac | |
18951 | |
18952 # Append the new tag name to the list of available tags. | |
18953 if test -n "$tagname" ; then | |
18954 available_tags="$available_tags $tagname" | |
18955 fi | |
18956 fi | |
18957 done | |
18958 IFS="$lt_save_ifs" | |
18959 | |
18960 # Now substitute the updated list of available tags. | |
18961 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
18962 mv "${ofile}T" "$ofile" | |
18963 chmod +x "$ofile" | |
18964 else | |
18965 rm -f "${ofile}T" | |
18966 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
18967 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
18968 { (exit 1); exit 1; }; } | |
18969 fi | |
18970 fi | |
18971 | |
18972 | |
18973 | |
18974 # This can be used to rebuild libtool when needed | |
18975 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
18976 | |
18977 # Always use our own libtool. | |
18978 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
18979 | |
18980 # Prevent multiple expansion | |
18981 | |
18982 | |
18983 | |
18984 | |
18985 | |
18986 | |
18987 | |
18988 | |
18989 | |
18990 | |
18991 | |
18992 | |
18993 | |
18994 | |
18995 | |
18996 | |
18997 | |
18998 | |
18999 | |
19000 | |
19001 | |
19002 | |
19003 | |
19004 | |
19005 arch="" | |
19006 debug="" | |
19007 optimize="" | |
19008 profile="" | |
19009 | |
19010 set -- $CFLAGS | |
19011 CFLAGS="" | |
19012 | |
19013 if test "$GCC" = yes | |
19014 then | |
19015 CFLAGS="-Wall" | |
19016 fi | |
19017 | |
19018 while test $# -gt 0 | |
19019 do | |
19020 case "$1" in | |
19021 -Wall) | |
19022 if test "$GCC" = yes | |
19023 then | |
19024 : | |
19025 else | |
19026 CFLAGS="$CFLAGS $1" | |
19027 fi | |
19028 shift | |
19029 ;; | |
19030 -g) | |
19031 debug="-g" | |
19032 shift | |
19033 ;; | |
19034 -mno-cygwin) | |
19035 shift | |
19036 ;; | |
19037 -m*) | |
19038 arch="$arch $1" | |
19039 shift | |
19040 ;; | |
19041 -fomit-frame-pointer) | |
19042 shift | |
19043 ;; | |
19044 -O*|-f*) | |
19045 optimize="$1" | |
19046 shift | |
19047 ;; | |
19048 *) | |
19049 CFLAGS="$CFLAGS $1" | |
19050 shift | |
19051 ;; | |
19052 esac | |
19053 done | |
19054 | |
19055 | |
19056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
19057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
19058 if test "${ac_cv_header_stdc+set}" = set; then | |
19059 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19060 else | |
19061 cat >conftest.$ac_ext <<_ACEOF | |
19062 /* confdefs.h. */ | |
19063 _ACEOF | |
19064 cat confdefs.h >>conftest.$ac_ext | |
19065 cat >>conftest.$ac_ext <<_ACEOF | |
19066 /* end confdefs.h. */ | |
19067 #include <stdlib.h> | |
19068 #include <stdarg.h> | |
19069 #include <string.h> | |
19070 #include <float.h> | |
19071 | |
19072 int | |
19073 main () | |
19074 { | |
19075 | |
19076 ; | |
19077 return 0; | |
19078 } | |
19079 _ACEOF | |
19080 rm -f conftest.$ac_objext | |
19081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19082 (eval $ac_compile) 2>conftest.er1 | |
19083 ac_status=$? | |
19084 grep -v '^ *+' conftest.er1 >conftest.err | |
19085 rm -f conftest.er1 | |
19086 cat conftest.err >&5 | |
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19088 (exit $ac_status); } && | |
19089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19091 (eval $ac_try) 2>&5 | |
19092 ac_status=$? | |
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19094 (exit $ac_status); }; } && | |
19095 { ac_try='test -s conftest.$ac_objext' | |
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19097 (eval $ac_try) 2>&5 | |
19098 ac_status=$? | |
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19100 (exit $ac_status); }; }; then | |
19101 ac_cv_header_stdc=yes | |
19102 else | |
19103 echo "$as_me: failed program was:" >&5 | |
19104 sed 's/^/| /' conftest.$ac_ext >&5 | |
19105 | |
19106 ac_cv_header_stdc=no | |
19107 fi | |
19108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19109 | |
19110 if test $ac_cv_header_stdc = yes; then | |
19111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
19112 cat >conftest.$ac_ext <<_ACEOF | |
19113 /* confdefs.h. */ | |
19114 _ACEOF | |
19115 cat confdefs.h >>conftest.$ac_ext | |
19116 cat >>conftest.$ac_ext <<_ACEOF | |
19117 /* end confdefs.h. */ | |
19118 #include <string.h> | |
19119 | |
19120 _ACEOF | |
19121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19122 $EGREP "memchr" >/dev/null 2>&1; then | |
19123 : | |
19124 else | |
19125 ac_cv_header_stdc=no | |
19126 fi | |
19127 rm -f conftest* | |
19128 | |
19129 fi | |
19130 | |
19131 if test $ac_cv_header_stdc = yes; then | |
19132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
19133 cat >conftest.$ac_ext <<_ACEOF | |
19134 /* confdefs.h. */ | |
19135 _ACEOF | |
19136 cat confdefs.h >>conftest.$ac_ext | |
19137 cat >>conftest.$ac_ext <<_ACEOF | |
19138 /* end confdefs.h. */ | |
19139 #include <stdlib.h> | |
19140 | |
19141 _ACEOF | |
19142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19143 $EGREP "free" >/dev/null 2>&1; then | |
19144 : | |
19145 else | |
19146 ac_cv_header_stdc=no | |
19147 fi | |
19148 rm -f conftest* | |
19149 | |
19150 fi | |
19151 | |
19152 if test $ac_cv_header_stdc = yes; then | |
19153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
19154 if test "$cross_compiling" = yes; then | |
19155 : | |
19156 else | |
19157 cat >conftest.$ac_ext <<_ACEOF | |
19158 /* confdefs.h. */ | |
19159 _ACEOF | |
19160 cat confdefs.h >>conftest.$ac_ext | |
19161 cat >>conftest.$ac_ext <<_ACEOF | |
19162 /* end confdefs.h. */ | |
19163 #include <ctype.h> | |
19164 #if ((' ' & 0x0FF) == 0x020) | |
19165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
19166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
19167 #else | |
19168 # define ISLOWER(c) \ | |
19169 (('a' <= (c) && (c) <= 'i') \ | |
19170 || ('j' <= (c) && (c) <= 'r') \ | |
19171 || ('s' <= (c) && (c) <= 'z')) | |
19172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
19173 #endif | |
19174 | |
19175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
19176 int | |
19177 main () | |
19178 { | |
19179 int i; | |
19180 for (i = 0; i < 256; i++) | |
19181 if (XOR (islower (i), ISLOWER (i)) | |
19182 || toupper (i) != TOUPPER (i)) | |
19183 exit(2); | |
19184 exit (0); | |
19185 } | |
19186 _ACEOF | |
19187 rm -f conftest$ac_exeext | |
19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19189 (eval $ac_link) 2>&5 | |
19190 ac_status=$? | |
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19194 (eval $ac_try) 2>&5 | |
19195 ac_status=$? | |
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19197 (exit $ac_status); }; }; then | |
19198 : | |
19199 else | |
19200 echo "$as_me: program exited with status $ac_status" >&5 | |
19201 echo "$as_me: failed program was:" >&5 | |
19202 sed 's/^/| /' conftest.$ac_ext >&5 | |
19203 | |
19204 ( exit $ac_status ) | |
19205 ac_cv_header_stdc=no | |
19206 fi | |
19207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19208 fi | |
19209 fi | |
19210 fi | |
19211 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
19212 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
19213 if test $ac_cv_header_stdc = yes; then | |
19214 | |
19215 cat >>confdefs.h <<\_ACEOF | |
19216 #define STDC_HEADERS 1 | |
19217 _ACEOF | |
19218 | |
19219 fi | |
19220 | |
19221 | |
19222 | |
19223 for ac_header in assert.h unistd.h | |
19224 do | |
19225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19226 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19227 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19229 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19230 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19231 fi | |
19232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19234 else | |
19235 # Is the header compilable? | |
19236 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19238 cat >conftest.$ac_ext <<_ACEOF | |
19239 /* confdefs.h. */ | |
19240 _ACEOF | |
19241 cat confdefs.h >>conftest.$ac_ext | |
19242 cat >>conftest.$ac_ext <<_ACEOF | |
19243 /* end confdefs.h. */ | |
19244 $ac_includes_default | |
19245 #include <$ac_header> | |
19246 _ACEOF | |
19247 rm -f conftest.$ac_objext | |
19248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19249 (eval $ac_compile) 2>conftest.er1 | |
19250 ac_status=$? | |
19251 grep -v '^ *+' conftest.er1 >conftest.err | |
19252 rm -f conftest.er1 | |
19253 cat conftest.err >&5 | |
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19255 (exit $ac_status); } && | |
19256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19258 (eval $ac_try) 2>&5 | |
19259 ac_status=$? | |
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19261 (exit $ac_status); }; } && | |
19262 { ac_try='test -s conftest.$ac_objext' | |
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19264 (eval $ac_try) 2>&5 | |
19265 ac_status=$? | |
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19267 (exit $ac_status); }; }; then | |
19268 ac_header_compiler=yes | |
19269 else | |
19270 echo "$as_me: failed program was:" >&5 | |
19271 sed 's/^/| /' conftest.$ac_ext >&5 | |
19272 | |
19273 ac_header_compiler=no | |
19274 fi | |
19275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19277 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19278 | |
19279 # Is the header present? | |
19280 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19282 cat >conftest.$ac_ext <<_ACEOF | |
19283 /* confdefs.h. */ | |
19284 _ACEOF | |
19285 cat confdefs.h >>conftest.$ac_ext | |
19286 cat >>conftest.$ac_ext <<_ACEOF | |
19287 /* end confdefs.h. */ | |
19288 #include <$ac_header> | |
19289 _ACEOF | |
19290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19292 ac_status=$? | |
19293 grep -v '^ *+' conftest.er1 >conftest.err | |
19294 rm -f conftest.er1 | |
19295 cat conftest.err >&5 | |
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19297 (exit $ac_status); } >/dev/null; then | |
19298 if test -s conftest.err; then | |
19299 ac_cpp_err=$ac_c_preproc_warn_flag | |
19300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19301 else | |
19302 ac_cpp_err= | |
19303 fi | |
19304 else | |
19305 ac_cpp_err=yes | |
19306 fi | |
19307 if test -z "$ac_cpp_err"; then | |
19308 ac_header_preproc=yes | |
19309 else | |
19310 echo "$as_me: failed program was:" >&5 | |
19311 sed 's/^/| /' conftest.$ac_ext >&5 | |
19312 | |
19313 ac_header_preproc=no | |
19314 fi | |
19315 rm -f conftest.err conftest.$ac_ext | |
19316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19317 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19318 | |
19319 # So? What about this header? | |
19320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19321 yes:no: ) | |
19322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19326 ac_header_preproc=yes | |
19327 ;; | |
19328 no:yes:* ) | |
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19341 ( | |
19342 cat <<\_ASBOX | |
19343 ## ----------------------------------- ## | |
19344 ## Report this to support@underbit.com ## | |
19345 ## ----------------------------------- ## | |
19346 _ASBOX | |
19347 ) | | |
19348 sed "s/^/$as_me: WARNING: /" >&2 | |
19349 ;; | |
19350 esac | |
19351 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19353 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19354 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19355 else | |
19356 eval "$as_ac_Header=\$ac_header_preproc" | |
19357 fi | |
19358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19360 | |
19361 fi | |
19362 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19363 cat >>confdefs.h <<_ACEOF | |
19364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19365 _ACEOF | |
19366 | |
19367 fi | |
19368 | |
19369 done | |
19370 | |
19371 | |
19372 if test "${ac_cv_header_zlib_h+set}" = set; then | |
19373 echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19374 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19375 if test "${ac_cv_header_zlib_h+set}" = set; then | |
19376 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19377 fi | |
19378 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19379 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19380 else | |
19381 # Is the header compilable? | |
19382 echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19383 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
19384 cat >conftest.$ac_ext <<_ACEOF | |
19385 /* confdefs.h. */ | |
19386 _ACEOF | |
19387 cat confdefs.h >>conftest.$ac_ext | |
19388 cat >>conftest.$ac_ext <<_ACEOF | |
19389 /* end confdefs.h. */ | |
19390 $ac_includes_default | |
19391 #include <zlib.h> | |
19392 _ACEOF | |
19393 rm -f conftest.$ac_objext | |
19394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19395 (eval $ac_compile) 2>conftest.er1 | |
19396 ac_status=$? | |
19397 grep -v '^ *+' conftest.er1 >conftest.err | |
19398 rm -f conftest.er1 | |
19399 cat conftest.err >&5 | |
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19401 (exit $ac_status); } && | |
19402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19404 (eval $ac_try) 2>&5 | |
19405 ac_status=$? | |
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19407 (exit $ac_status); }; } && | |
19408 { ac_try='test -s conftest.$ac_objext' | |
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19410 (eval $ac_try) 2>&5 | |
19411 ac_status=$? | |
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19413 (exit $ac_status); }; }; then | |
19414 ac_header_compiler=yes | |
19415 else | |
19416 echo "$as_me: failed program was:" >&5 | |
19417 sed 's/^/| /' conftest.$ac_ext >&5 | |
19418 | |
19419 ac_header_compiler=no | |
19420 fi | |
19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19423 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19424 | |
19425 # Is the header present? | |
19426 echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
19427 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
19428 cat >conftest.$ac_ext <<_ACEOF | |
19429 /* confdefs.h. */ | |
19430 _ACEOF | |
19431 cat confdefs.h >>conftest.$ac_ext | |
19432 cat >>conftest.$ac_ext <<_ACEOF | |
19433 /* end confdefs.h. */ | |
19434 #include <zlib.h> | |
19435 _ACEOF | |
19436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19438 ac_status=$? | |
19439 grep -v '^ *+' conftest.er1 >conftest.err | |
19440 rm -f conftest.er1 | |
19441 cat conftest.err >&5 | |
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19443 (exit $ac_status); } >/dev/null; then | |
19444 if test -s conftest.err; then | |
19445 ac_cpp_err=$ac_c_preproc_warn_flag | |
19446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19447 else | |
19448 ac_cpp_err= | |
19449 fi | |
19450 else | |
19451 ac_cpp_err=yes | |
19452 fi | |
19453 if test -z "$ac_cpp_err"; then | |
19454 ac_header_preproc=yes | |
19455 else | |
19456 echo "$as_me: failed program was:" >&5 | |
19457 sed 's/^/| /' conftest.$ac_ext >&5 | |
19458 | |
19459 ac_header_preproc=no | |
19460 fi | |
19461 rm -f conftest.err conftest.$ac_ext | |
19462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19463 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19464 | |
19465 # So? What about this header? | |
19466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19467 yes:no: ) | |
19468 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19469 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19470 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
19471 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
19472 ac_header_preproc=yes | |
19473 ;; | |
19474 no:yes:* ) | |
19475 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
19476 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
19477 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
19478 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
19479 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
19480 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
19481 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19482 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19483 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
19484 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
19485 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
19486 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
19487 ( | |
19488 cat <<\_ASBOX | |
19489 ## ----------------------------------- ## | |
19490 ## Report this to support@underbit.com ## | |
19491 ## ----------------------------------- ## | |
19492 _ASBOX | |
19493 ) | | |
19494 sed "s/^/$as_me: WARNING: /" >&2 | |
19495 ;; | |
19496 esac | |
19497 echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19498 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19499 if test "${ac_cv_header_zlib_h+set}" = set; then | |
19500 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19501 else | |
19502 ac_cv_header_zlib_h=$ac_header_preproc | |
19503 fi | |
19504 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19505 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19506 | |
19507 fi | |
19508 if test $ac_cv_header_zlib_h = yes; then | |
19509 : | |
19510 else | |
19511 | |
19512 { { echo "$as_me:$LINENO: error: zlib.h was not found | |
19513 *** You must first install zlib (libz) before you can build this package. | |
19514 *** If zlib is already installed, you may need to use the CPPFLAGS | |
19515 *** environment variable to specify its installed location, e.g. -I<dir>." >&5 | |
19516 echo "$as_me: error: zlib.h was not found | |
19517 *** You must first install zlib (libz) before you can build this package. | |
19518 *** If zlib is already installed, you may need to use the CPPFLAGS | |
19519 *** environment variable to specify its installed location, e.g. -I<dir>." >&2;} | |
19520 { (exit 1); exit 1; }; } | |
19521 | |
19522 fi | |
19523 | |
19524 | |
19525 | |
19526 | |
19527 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
19528 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
19529 if test "${ac_cv_c_const+set}" = set; then | |
19530 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19531 else | |
19532 cat >conftest.$ac_ext <<_ACEOF | |
19533 /* confdefs.h. */ | |
19534 _ACEOF | |
19535 cat confdefs.h >>conftest.$ac_ext | |
19536 cat >>conftest.$ac_ext <<_ACEOF | |
19537 /* end confdefs.h. */ | |
19538 | |
19539 int | |
19540 main () | |
19541 { | |
19542 /* FIXME: Include the comments suggested by Paul. */ | |
19543 #ifndef __cplusplus | |
19544 /* Ultrix mips cc rejects this. */ | |
19545 typedef int charset[2]; | |
19546 const charset x; | |
19547 /* SunOS 4.1.1 cc rejects this. */ | |
19548 char const *const *ccp; | |
19549 char **p; | |
19550 /* NEC SVR4.0.2 mips cc rejects this. */ | |
19551 struct point {int x, y;}; | |
19552 static struct point const zero = {0,0}; | |
19553 /* AIX XL C 1.02.0.0 rejects this. | |
19554 It does not let you subtract one const X* pointer from another in | |
19555 an arm of an if-expression whose if-part is not a constant | |
19556 expression */ | |
19557 const char *g = "string"; | |
19558 ccp = &g + (g ? g-g : 0); | |
19559 /* HPUX 7.0 cc rejects these. */ | |
19560 ++ccp; | |
19561 p = (char**) ccp; | |
19562 ccp = (char const *const *) p; | |
19563 { /* SCO 3.2v4 cc rejects this. */ | |
19564 char *t; | |
19565 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
19566 | |
19567 *t++ = 0; | |
19568 } | |
19569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
19570 int x[] = {25, 17}; | |
19571 const int *foo = &x[0]; | |
19572 ++foo; | |
19573 } | |
19574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
19575 typedef const int *iptr; | |
19576 iptr p = 0; | |
19577 ++p; | |
19578 } | |
19579 { /* AIX XL C 1.02.0.0 rejects this saying | |
19580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
19581 struct s { int j; const int *ap[3]; }; | |
19582 struct s *b; b->j = 5; | |
19583 } | |
19584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
19585 const int foo = 10; | |
19586 } | |
19587 #endif | |
19588 | |
19589 ; | |
19590 return 0; | |
19591 } | |
19592 _ACEOF | |
19593 rm -f conftest.$ac_objext | |
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19595 (eval $ac_compile) 2>conftest.er1 | |
19596 ac_status=$? | |
19597 grep -v '^ *+' conftest.er1 >conftest.err | |
19598 rm -f conftest.er1 | |
19599 cat conftest.err >&5 | |
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19601 (exit $ac_status); } && | |
19602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19604 (eval $ac_try) 2>&5 | |
19605 ac_status=$? | |
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19607 (exit $ac_status); }; } && | |
19608 { ac_try='test -s conftest.$ac_objext' | |
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19610 (eval $ac_try) 2>&5 | |
19611 ac_status=$? | |
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 (exit $ac_status); }; }; then | |
19614 ac_cv_c_const=yes | |
19615 else | |
19616 echo "$as_me: failed program was:" >&5 | |
19617 sed 's/^/| /' conftest.$ac_ext >&5 | |
19618 | |
19619 ac_cv_c_const=no | |
19620 fi | |
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19622 fi | |
19623 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
19624 echo "${ECHO_T}$ac_cv_c_const" >&6 | |
19625 if test $ac_cv_c_const = no; then | |
19626 | |
19627 cat >>confdefs.h <<\_ACEOF | |
19628 #define const | |
19629 _ACEOF | |
19630 | |
19631 fi | |
19632 | |
19633 echo "$as_me:$LINENO: checking for inline" >&5 | |
19634 echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
19635 if test "${ac_cv_c_inline+set}" = set; then | |
19636 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19637 else | |
19638 ac_cv_c_inline=no | |
19639 for ac_kw in inline __inline__ __inline; do | |
19640 cat >conftest.$ac_ext <<_ACEOF | |
19641 /* confdefs.h. */ | |
19642 _ACEOF | |
19643 cat confdefs.h >>conftest.$ac_ext | |
19644 cat >>conftest.$ac_ext <<_ACEOF | |
19645 /* end confdefs.h. */ | |
19646 #ifndef __cplusplus | |
19647 typedef int foo_t; | |
19648 static $ac_kw foo_t static_foo () {return 0; } | |
19649 $ac_kw foo_t foo () {return 0; } | |
19650 #endif | |
19651 | |
19652 _ACEOF | |
19653 rm -f conftest.$ac_objext | |
19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19655 (eval $ac_compile) 2>conftest.er1 | |
19656 ac_status=$? | |
19657 grep -v '^ *+' conftest.er1 >conftest.err | |
19658 rm -f conftest.er1 | |
19659 cat conftest.err >&5 | |
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19661 (exit $ac_status); } && | |
19662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19664 (eval $ac_try) 2>&5 | |
19665 ac_status=$? | |
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19667 (exit $ac_status); }; } && | |
19668 { ac_try='test -s conftest.$ac_objext' | |
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19670 (eval $ac_try) 2>&5 | |
19671 ac_status=$? | |
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19673 (exit $ac_status); }; }; then | |
19674 ac_cv_c_inline=$ac_kw; break | |
19675 else | |
19676 echo "$as_me: failed program was:" >&5 | |
19677 sed 's/^/| /' conftest.$ac_ext >&5 | |
19678 | |
19679 fi | |
19680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19681 done | |
19682 | |
19683 fi | |
19684 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
19685 echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
19686 | |
19687 | |
19688 case $ac_cv_c_inline in | |
19689 inline | yes) ;; | |
19690 *) | |
19691 case $ac_cv_c_inline in | |
19692 no) ac_val=;; | |
19693 *) ac_val=$ac_cv_c_inline;; | |
19694 esac | |
19695 cat >>confdefs.h <<_ACEOF | |
19696 #ifndef __cplusplus | |
19697 #define inline $ac_val | |
19698 #endif | |
19699 _ACEOF | |
19700 ;; | |
19701 esac | |
19702 | |
19703 | |
19704 | |
19705 | |
19706 for ac_func in ftruncate | |
19707 do | |
19708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
19709 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19711 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19712 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19713 else | |
19714 cat >conftest.$ac_ext <<_ACEOF | |
19715 /* confdefs.h. */ | |
19716 _ACEOF | |
19717 cat confdefs.h >>conftest.$ac_ext | |
19718 cat >>conftest.$ac_ext <<_ACEOF | |
19719 /* end confdefs.h. */ | |
19720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19722 #define $ac_func innocuous_$ac_func | |
19723 | |
19724 /* System header to define __stub macros and hopefully few prototypes, | |
19725 which can conflict with char $ac_func (); below. | |
19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19727 <limits.h> exists even on freestanding compilers. */ | |
19728 | |
19729 #ifdef __STDC__ | |
19730 # include <limits.h> | |
19731 #else | |
19732 # include <assert.h> | |
19733 #endif | |
19734 | |
19735 #undef $ac_func | |
19736 | |
19737 /* Override any gcc2 internal prototype to avoid an error. */ | |
19738 #ifdef __cplusplus | |
19739 extern "C" | |
19740 { | |
19741 #endif | |
19742 /* We use char because int might match the return type of a gcc2 | |
19743 builtin and then its argument prototype would still apply. */ | |
19744 char $ac_func (); | |
19745 /* The GNU C library defines this for functions which it implements | |
19746 to always fail with ENOSYS. Some functions are actually named | |
19747 something starting with __ and the normal name is an alias. */ | |
19748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19749 choke me | |
19750 #else | |
19751 char (*f) () = $ac_func; | |
19752 #endif | |
19753 #ifdef __cplusplus | |
19754 } | |
19755 #endif | |
19756 | |
19757 int | |
19758 main () | |
19759 { | |
19760 return f != $ac_func; | |
19761 ; | |
19762 return 0; | |
19763 } | |
19764 _ACEOF | |
19765 rm -f conftest.$ac_objext conftest$ac_exeext | |
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19767 (eval $ac_link) 2>conftest.er1 | |
19768 ac_status=$? | |
19769 grep -v '^ *+' conftest.er1 >conftest.err | |
19770 rm -f conftest.er1 | |
19771 cat conftest.err >&5 | |
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19773 (exit $ac_status); } && | |
19774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19776 (eval $ac_try) 2>&5 | |
19777 ac_status=$? | |
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19779 (exit $ac_status); }; } && | |
19780 { ac_try='test -s conftest$ac_exeext' | |
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19782 (eval $ac_try) 2>&5 | |
19783 ac_status=$? | |
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19785 (exit $ac_status); }; }; then | |
19786 eval "$as_ac_var=yes" | |
19787 else | |
19788 echo "$as_me: failed program was:" >&5 | |
19789 sed 's/^/| /' conftest.$ac_ext >&5 | |
19790 | |
19791 eval "$as_ac_var=no" | |
19792 fi | |
19793 rm -f conftest.err conftest.$ac_objext \ | |
19794 conftest$ac_exeext conftest.$ac_ext | |
19795 fi | |
19796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19798 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19799 cat >>confdefs.h <<_ACEOF | |
19800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19801 _ACEOF | |
19802 | |
19803 fi | |
19804 done | |
19805 | |
19806 | |
19807 | |
19808 echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 | |
19809 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6 | |
19810 if test "${ac_cv_lib_z_compress2+set}" = set; then | |
19811 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19812 else | |
19813 ac_check_lib_save_LIBS=$LIBS | |
19814 LIBS="-lz $LIBS" | |
19815 cat >conftest.$ac_ext <<_ACEOF | |
19816 /* confdefs.h. */ | |
19817 _ACEOF | |
19818 cat confdefs.h >>conftest.$ac_ext | |
19819 cat >>conftest.$ac_ext <<_ACEOF | |
19820 /* end confdefs.h. */ | |
19821 | |
19822 /* Override any gcc2 internal prototype to avoid an error. */ | |
19823 #ifdef __cplusplus | |
19824 extern "C" | |
19825 #endif | |
19826 /* We use char because int might match the return type of a gcc2 | |
19827 builtin and then its argument prototype would still apply. */ | |
19828 char compress2 (); | |
19829 int | |
19830 main () | |
19831 { | |
19832 compress2 (); | |
19833 ; | |
19834 return 0; | |
19835 } | |
19836 _ACEOF | |
19837 rm -f conftest.$ac_objext conftest$ac_exeext | |
19838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19839 (eval $ac_link) 2>conftest.er1 | |
19840 ac_status=$? | |
19841 grep -v '^ *+' conftest.er1 >conftest.err | |
19842 rm -f conftest.er1 | |
19843 cat conftest.err >&5 | |
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19845 (exit $ac_status); } && | |
19846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19848 (eval $ac_try) 2>&5 | |
19849 ac_status=$? | |
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19851 (exit $ac_status); }; } && | |
19852 { ac_try='test -s conftest$ac_exeext' | |
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19854 (eval $ac_try) 2>&5 | |
19855 ac_status=$? | |
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19857 (exit $ac_status); }; }; then | |
19858 ac_cv_lib_z_compress2=yes | |
19859 else | |
19860 echo "$as_me: failed program was:" >&5 | |
19861 sed 's/^/| /' conftest.$ac_ext >&5 | |
19862 | |
19863 ac_cv_lib_z_compress2=no | |
19864 fi | |
19865 rm -f conftest.err conftest.$ac_objext \ | |
19866 conftest$ac_exeext conftest.$ac_ext | |
19867 LIBS=$ac_check_lib_save_LIBS | |
19868 fi | |
19869 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 | |
19870 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6 | |
19871 if test $ac_cv_lib_z_compress2 = yes; then | |
19872 cat >>confdefs.h <<_ACEOF | |
19873 #define HAVE_LIBZ 1 | |
19874 _ACEOF | |
19875 | |
19876 LIBS="-lz $LIBS" | |
19877 | |
19878 else | |
19879 | |
19880 { { echo "$as_me:$LINENO: error: libz was not found | |
19881 *** You must first install zlib (libz) before you can build this package. | |
19882 *** If zlib is already installed, you may need to use the LDFLAGS | |
19883 *** environment variable to specify its installed location, e.g. -L<dir>." >&5 | |
19884 echo "$as_me: error: libz was not found | |
19885 *** You must first install zlib (libz) before you can build this package. | |
19886 *** If zlib is already installed, you may need to use the LDFLAGS | |
19887 *** environment variable to specify its installed location, e.g. -L<dir>." >&2;} | |
19888 { (exit 1); exit 1; }; } | |
19889 | |
19890 fi | |
19891 | |
19892 | |
19893 | |
19894 cat >confcache <<\_ACEOF | |
19895 # This file is a shell script that caches the results of configure | |
19896 # tests run on this system so they can be shared between configure | |
19897 # scripts and configure runs, see configure's option --config-cache. | |
19898 # It is not useful on other systems. If it contains results you don't | |
19899 # want to keep, you may remove or edit it. | |
19900 # | |
19901 # config.status only pays attention to the cache file if you give it | |
19902 # the --recheck option to rerun configure. | |
19903 # | |
19904 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19905 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19906 # following values. | |
19907 | |
19908 _ACEOF | |
19909 | |
19910 # The following way of writing the cache mishandles newlines in values, | |
19911 # but we know of no workaround that is simple, portable, and efficient. | |
19912 # So, don't put newlines in cache variables' values. | |
19913 # Ultrix sh set writes to stderr and can't be redirected directly, | |
19914 # and sets the high bit in the cache file unless we assign to the vars. | |
19915 { | |
19916 (set) 2>&1 | | |
19917 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19918 *ac_space=\ *) | |
19919 # `set' does not quote correctly, so add quotes (double-quote | |
19920 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19921 sed -n \ | |
19922 "s/'/'\\\\''/g; | |
19923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19924 ;; | |
19925 *) | |
19926 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19927 sed -n \ | |
19928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
19929 ;; | |
19930 esac; | |
19931 } | | |
19932 sed ' | |
19933 t clear | |
19934 : clear | |
19935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19936 t end | |
19937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19938 : end' >>confcache | |
19939 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
19940 if test -w $cache_file; then | |
19941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
19942 cat confcache >$cache_file | |
19943 else | |
19944 echo "not updating unwritable cache $cache_file" | |
19945 fi | |
19946 fi | |
19947 rm -f confcache | |
19948 | |
19949 echo "$as_me:$LINENO: checking whether to enable profiling" >&5 | |
19950 echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6 | |
19951 # Check whether --enable-profiling or --disable-profiling was given. | |
19952 if test "${enable_profiling+set}" = set; then | |
19953 enableval="$enable_profiling" | |
19954 | |
19955 case "$enableval" in | |
19956 yes) profile="-pg" ;; | |
19957 esac | |
19958 | |
19959 fi; | |
19960 echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5 | |
19961 echo "${ECHO_T}${enable_profiling-no}" >&6 | |
19962 | |
19963 echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
19964 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
19965 # Check whether --enable-debugging or --disable-debugging was given. | |
19966 if test "${enable_debugging+set}" = set; then | |
19967 enableval="$enable_debugging" | |
19968 | |
19969 case "$enableval" in | |
19970 yes) | |
19971 | |
19972 cat >>confdefs.h <<\_ACEOF | |
19973 #define DEBUG 1 | |
19974 _ACEOF | |
19975 | |
19976 optimize="" | |
19977 ;; | |
19978 no) | |
19979 if test -n "$profile" | |
19980 then | |
19981 { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5 | |
19982 echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;} | |
19983 { (exit 1); exit 1; }; } | |
19984 fi | |
19985 | |
19986 | |
19987 cat >>confdefs.h <<\_ACEOF | |
19988 #define NDEBUG 1 | |
19989 _ACEOF | |
19990 | |
19991 debug="" | |
19992 if test "$GCC" = yes | |
19993 then | |
19994 optimize="$optimize -fomit-frame-pointer" | |
19995 fi | |
19996 ;; | |
19997 esac | |
19998 | |
19999 fi; | |
20000 echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5 | |
20001 echo "${ECHO_T}${enable_debugging-default}" >&6 | |
20002 | |
20003 | |
20004 if test ${enable_debugging-default} = yes; then | |
20005 DEBUG_TRUE= | |
20006 DEBUG_FALSE='#' | |
20007 else | |
20008 DEBUG_TRUE='#' | |
20009 DEBUG_FALSE= | |
20010 fi | |
20011 | |
20012 | |
20013 | |
20014 test -n "$arch" && CFLAGS="$CFLAGS $arch" | |
20015 test -n "$debug" && CFLAGS="$CFLAGS $debug" | |
20016 test -n "$optimize" && CFLAGS="$CFLAGS $optimize" | |
20017 test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile" | |
20018 | |
20019 | |
20020 ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list" | |
20021 | |
20022 cat >confcache <<\_ACEOF | |
20023 # This file is a shell script that caches the results of configure | |
20024 # tests run on this system so they can be shared between configure | |
20025 # scripts and configure runs, see configure's option --config-cache. | |
20026 # It is not useful on other systems. If it contains results you don't | |
20027 # want to keep, you may remove or edit it. | |
20028 # | |
20029 # config.status only pays attention to the cache file if you give it | |
20030 # the --recheck option to rerun configure. | |
20031 # | |
20032 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20033 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20034 # following values. | |
20035 | |
20036 _ACEOF | |
20037 | |
20038 # The following way of writing the cache mishandles newlines in values, | |
20039 # but we know of no workaround that is simple, portable, and efficient. | |
20040 # So, don't put newlines in cache variables' values. | |
20041 # Ultrix sh set writes to stderr and can't be redirected directly, | |
20042 # and sets the high bit in the cache file unless we assign to the vars. | |
20043 { | |
20044 (set) 2>&1 | | |
20045 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20046 *ac_space=\ *) | |
20047 # `set' does not quote correctly, so add quotes (double-quote | |
20048 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20049 sed -n \ | |
20050 "s/'/'\\\\''/g; | |
20051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20052 ;; | |
20053 *) | |
20054 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20055 sed -n \ | |
20056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20057 ;; | |
20058 esac; | |
20059 } | | |
20060 sed ' | |
20061 t clear | |
20062 : clear | |
20063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20064 t end | |
20065 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20066 : end' >>confcache | |
20067 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20068 if test -w $cache_file; then | |
20069 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20070 cat confcache >$cache_file | |
20071 else | |
20072 echo "not updating unwritable cache $cache_file" | |
20073 fi | |
20074 fi | |
20075 rm -f confcache | |
20076 | |
20077 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20078 # Let make expand exec_prefix. | |
20079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20080 | |
20081 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20083 # trailing colons and then remove the whole line if VPATH becomes empty | |
20084 # (actually we leave an empty line to preserve line numbers). | |
20085 if test "x$srcdir" = x.; then | |
20086 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20087 s/:*\$(srcdir):*/:/; | |
20088 s/:*\${srcdir}:*/:/; | |
20089 s/:*@srcdir@:*/:/; | |
20090 s/^\([^=]*=[ ]*\):*/\1/; | |
20091 s/:*$//; | |
20092 s/^[^=]*=[ ]*$//; | |
20093 }' | |
20094 fi | |
20095 | |
20096 DEFS=-DHAVE_CONFIG_H | |
20097 | |
20098 ac_libobjs= | |
20099 ac_ltlibobjs= | |
20100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
20101 # 1. Remove the extension, and $U if already installed. | |
20102 ac_i=`echo "$ac_i" | | |
20103 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
20104 # 2. Add them. | |
20105 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
20106 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
20107 done | |
20108 LIBOBJS=$ac_libobjs | |
20109 | |
20110 LTLIBOBJS=$ac_ltlibobjs | |
20111 | |
20112 | |
20113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
20114 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
20115 Usually this means the macro was only invoked conditionally." >&5 | |
20116 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
20117 Usually this means the macro was only invoked conditionally." >&2;} | |
20118 { (exit 1); exit 1; }; } | |
20119 fi | |
20120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
20121 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
20122 Usually this means the macro was only invoked conditionally." >&5 | |
20123 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
20124 Usually this means the macro was only invoked conditionally." >&2;} | |
20125 { (exit 1); exit 1; }; } | |
20126 fi | |
20127 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
20128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
20129 Usually this means the macro was only invoked conditionally." >&5 | |
20130 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
20131 Usually this means the macro was only invoked conditionally." >&2;} | |
20132 { (exit 1); exit 1; }; } | |
20133 fi | |
20134 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then | |
20135 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined. | |
20136 Usually this means the macro was only invoked conditionally." >&5 | |
20137 echo "$as_me: error: conditional \"DEBUG\" was never defined. | |
20138 Usually this means the macro was only invoked conditionally." >&2;} | |
20139 { (exit 1); exit 1; }; } | |
20140 fi | |
20141 | |
20142 : ${CONFIG_STATUS=./config.status} | |
20143 ac_clean_files_save=$ac_clean_files | |
20144 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
20146 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20147 cat >$CONFIG_STATUS <<_ACEOF | |
20148 #! $SHELL | |
20149 # Generated by $as_me. | |
20150 # Run this file to recreate the current configuration. | |
20151 # Compiler output produced by configure, useful for debugging | |
20152 # configure, is in config.log if it exists. | |
20153 | |
20154 debug=false | |
20155 ac_cs_recheck=false | |
20156 ac_cs_silent=false | |
20157 SHELL=\${CONFIG_SHELL-$SHELL} | |
20158 _ACEOF | |
20159 | |
20160 cat >>$CONFIG_STATUS <<\_ACEOF | |
20161 ## --------------------- ## | |
20162 ## M4sh Initialization. ## | |
20163 ## --------------------- ## | |
20164 | |
20165 # Be Bourne compatible | |
20166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
20167 emulate sh | |
20168 NULLCMD=: | |
20169 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20170 # is contrary to our usage. Disable this feature. | |
20171 alias -g '${1+"$@"}'='"$@"' | |
20172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20173 set -o posix | |
20174 fi | |
20175 DUALCASE=1; export DUALCASE # for MKS sh | |
20176 | |
20177 # Support unset when possible. | |
20178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
20179 as_unset=unset | |
20180 else | |
20181 as_unset=false | |
20182 fi | |
20183 | |
20184 | |
20185 # Work around bugs in pre-3.0 UWIN ksh. | |
20186 $as_unset ENV MAIL MAILPATH | |
20187 PS1='$ ' | |
20188 PS2='> ' | |
20189 PS4='+ ' | |
20190 | |
20191 # NLS nuisances. | |
20192 for as_var in \ | |
20193 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
20194 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
20195 LC_TELEPHONE LC_TIME | |
20196 do | |
20197 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
20198 eval $as_var=C; export $as_var | |
20199 else | |
20200 $as_unset $as_var | |
20201 fi | |
20202 done | |
20203 | |
20204 # Required to use basename. | |
20205 if expr a : '\(a\)' >/dev/null 2>&1; then | |
20206 as_expr=expr | |
20207 else | |
20208 as_expr=false | |
20209 fi | |
20210 | |
20211 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
20212 as_basename=basename | |
20213 else | |
20214 as_basename=false | |
20215 fi | |
20216 | |
20217 | |
20218 # Name of the executable. | |
20219 as_me=`$as_basename "$0" || | |
20220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20221 X"$0" : 'X\(//\)$' \| \ | |
20222 X"$0" : 'X\(/\)$' \| \ | |
20223 . : '\(.\)' 2>/dev/null || | |
20224 echo X/"$0" | | |
20225 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
20226 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
20227 /^X\/\(\/\).*/{ s//\1/; q; } | |
20228 s/.*/./; q'` | |
20229 | |
20230 | |
20231 # PATH needs CR, and LINENO needs CR and PATH. | |
20232 # Avoid depending upon Character Ranges. | |
20233 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20236 as_cr_digits='0123456789' | |
20237 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20238 | |
20239 # The user is always right. | |
20240 if test "${PATH_SEPARATOR+set}" != set; then | |
20241 echo "#! /bin/sh" >conf$$.sh | |
20242 echo "exit 0" >>conf$$.sh | |
20243 chmod +x conf$$.sh | |
20244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
20245 PATH_SEPARATOR=';' | |
20246 else | |
20247 PATH_SEPARATOR=: | |
20248 fi | |
20249 rm -f conf$$.sh | |
20250 fi | |
20251 | |
20252 | |
20253 as_lineno_1=$LINENO | |
20254 as_lineno_2=$LINENO | |
20255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
20256 test "x$as_lineno_1" != "x$as_lineno_2" && | |
20257 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
20258 # Find who we are. Look in the path if we contain no path at all | |
20259 # relative or not. | |
20260 case $0 in | |
20261 *[\\/]* ) as_myself=$0 ;; | |
20262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20263 for as_dir in $PATH | |
20264 do | |
20265 IFS=$as_save_IFS | |
20266 test -z "$as_dir" && as_dir=. | |
20267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20268 done | |
20269 | |
20270 ;; | |
20271 esac | |
20272 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20273 # in which case we are not to be found in the path. | |
20274 if test "x$as_myself" = x; then | |
20275 as_myself=$0 | |
20276 fi | |
20277 if test ! -f "$as_myself"; then | |
20278 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
20279 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
20280 { (exit 1); exit 1; }; } | |
20281 fi | |
20282 case $CONFIG_SHELL in | |
20283 '') | |
20284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20285 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
20286 do | |
20287 IFS=$as_save_IFS | |
20288 test -z "$as_dir" && as_dir=. | |
20289 for as_base in sh bash ksh sh5; do | |
20290 case $as_dir in | |
20291 /*) | |
20292 if ("$as_dir/$as_base" -c ' | |
20293 as_lineno_1=$LINENO | |
20294 as_lineno_2=$LINENO | |
20295 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
20296 test "x$as_lineno_1" != "x$as_lineno_2" && | |
20297 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
20298 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
20299 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
20300 CONFIG_SHELL=$as_dir/$as_base | |
20301 export CONFIG_SHELL | |
20302 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
20303 fi;; | |
20304 esac | |
20305 done | |
20306 done | |
20307 ;; | |
20308 esac | |
20309 | |
20310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
20311 # uniformly replaced by the line number. The first 'sed' inserts a | |
20312 # line-number line before each line; the second 'sed' does the real | |
20313 # work. The second script uses 'N' to pair each line-number line | |
20314 # with the numbered line, and appends trailing '-' during | |
20315 # substitution so that $LINENO is not a special case at line end. | |
20316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
20317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
20318 sed '=' <$as_myself | | |
20319 sed ' | |
20320 N | |
20321 s,$,-, | |
20322 : loop | |
20323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
20324 t loop | |
20325 s,-$,, | |
20326 s,^['$as_cr_digits']*\n,, | |
20327 ' >$as_me.lineno && | |
20328 chmod +x $as_me.lineno || | |
20329 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
20330 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
20331 { (exit 1); exit 1; }; } | |
20332 | |
20333 # Don't try to exec as it changes $[0], causing all sort of problems | |
20334 # (the dirname of $[0] is not the place where we might find the | |
20335 # original and so on. Autoconf is especially sensible to this). | |
20336 . ./$as_me.lineno | |
20337 # Exit status is that of the last command. | |
20338 exit | |
20339 } | |
20340 | |
20341 | |
20342 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
20343 *c*,-n*) ECHO_N= ECHO_C=' | |
20344 ' ECHO_T=' ' ;; | |
20345 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
20346 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
20347 esac | |
20348 | |
20349 if expr a : '\(a\)' >/dev/null 2>&1; then | |
20350 as_expr=expr | |
20351 else | |
20352 as_expr=false | |
20353 fi | |
20354 | |
20355 rm -f conf$$ conf$$.exe conf$$.file | |
20356 echo >conf$$.file | |
20357 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20358 # We could just check for DJGPP; but this test a) works b) is more generic | |
20359 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
20360 if test -f conf$$.exe; then | |
20361 # Don't use ln at all; we don't have any links | |
20362 as_ln_s='cp -p' | |
20363 else | |
20364 as_ln_s='ln -s' | |
20365 fi | |
20366 elif ln conf$$.file conf$$ 2>/dev/null; then | |
20367 as_ln_s=ln | |
20368 else | |
20369 as_ln_s='cp -p' | |
20370 fi | |
20371 rm -f conf$$ conf$$.exe conf$$.file | |
20372 | |
20373 if mkdir -p . 2>/dev/null; then | |
20374 as_mkdir_p=: | |
20375 else | |
20376 test -d ./-p && rmdir ./-p | |
20377 as_mkdir_p=false | |
20378 fi | |
20379 | |
20380 as_executable_p="test -f" | |
20381 | |
20382 # Sed expression to map a string onto a valid CPP name. | |
20383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20384 | |
20385 # Sed expression to map a string onto a valid variable name. | |
20386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20387 | |
20388 | |
20389 # IFS | |
20390 # We need space, tab and new line, in precisely that order. | |
20391 as_nl=' | |
20392 ' | |
20393 IFS=" $as_nl" | |
20394 | |
20395 # CDPATH. | |
20396 $as_unset CDPATH | |
20397 | |
20398 exec 6>&1 | |
20399 | |
20400 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
20401 # report actual input values of CONFIG_FILES etc. instead of their | |
20402 # values after options handling. Logging --version etc. is OK. | |
20403 exec 5>>config.log | |
20404 { | |
20405 echo | |
20406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20407 ## Running $as_me. ## | |
20408 _ASBOX | |
20409 } >&5 | |
20410 cat >&5 <<_CSEOF | |
20411 | |
20412 This file was extended by ID3 Tag $as_me 0.15.1b, which was | |
20413 generated by GNU Autoconf 2.59. Invocation command line was | |
20414 | |
20415 CONFIG_FILES = $CONFIG_FILES | |
20416 CONFIG_HEADERS = $CONFIG_HEADERS | |
20417 CONFIG_LINKS = $CONFIG_LINKS | |
20418 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20419 $ $0 $@ | |
20420 | |
20421 _CSEOF | |
20422 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
20423 echo >&5 | |
20424 _ACEOF | |
20425 | |
20426 # Files that config.status was made for. | |
20427 if test -n "$ac_config_files"; then | |
20428 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
20429 fi | |
20430 | |
20431 if test -n "$ac_config_headers"; then | |
20432 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
20433 fi | |
20434 | |
20435 if test -n "$ac_config_links"; then | |
20436 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
20437 fi | |
20438 | |
20439 if test -n "$ac_config_commands"; then | |
20440 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
20441 fi | |
20442 | |
20443 cat >>$CONFIG_STATUS <<\_ACEOF | |
20444 | |
20445 ac_cs_usage="\ | |
20446 \`$as_me' instantiates files from templates according to the | |
20447 current configuration. | |
20448 | |
20449 Usage: $0 [OPTIONS] [FILE]... | |
20450 | |
20451 -h, --help print this help, then exit | |
20452 -V, --version print version number, then exit | |
20453 -q, --quiet do not print progress messages | |
20454 -d, --debug don't remove temporary files | |
20455 --recheck update $as_me by reconfiguring in the same conditions | |
20456 --file=FILE[:TEMPLATE] | |
20457 instantiate the configuration file FILE | |
20458 --header=FILE[:TEMPLATE] | |
20459 instantiate the configuration header FILE | |
20460 | |
20461 Configuration files: | |
20462 $config_files | |
20463 | |
20464 Configuration headers: | |
20465 $config_headers | |
20466 | |
20467 Configuration commands: | |
20468 $config_commands | |
20469 | |
20470 Report bugs to <bug-autoconf@gnu.org>." | |
20471 _ACEOF | |
20472 | |
20473 cat >>$CONFIG_STATUS <<_ACEOF | |
20474 ac_cs_version="\\ | |
20475 ID3 Tag config.status 0.15.1b | |
20476 configured by $0, generated by GNU Autoconf 2.59, | |
20477 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
20478 | |
20479 Copyright (C) 2003 Free Software Foundation, Inc. | |
20480 This config.status script is free software; the Free Software Foundation | |
20481 gives unlimited permission to copy, distribute and modify it." | |
20482 srcdir=$srcdir | |
20483 INSTALL="$INSTALL" | |
20484 _ACEOF | |
20485 | |
20486 cat >>$CONFIG_STATUS <<\_ACEOF | |
20487 # If no file are specified by the user, then we need to provide default | |
20488 # value. By we need to know if files were specified by the user. | |
20489 ac_need_defaults=: | |
20490 while test $# != 0 | |
20491 do | |
20492 case $1 in | |
20493 --*=*) | |
20494 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
20495 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
20496 ac_shift=: | |
20497 ;; | |
20498 -*) | |
20499 ac_option=$1 | |
20500 ac_optarg=$2 | |
20501 ac_shift=shift | |
20502 ;; | |
20503 *) # This is not an option, so the user has probably given explicit | |
20504 # arguments. | |
20505 ac_option=$1 | |
20506 ac_need_defaults=false;; | |
20507 esac | |
20508 | |
20509 case $ac_option in | |
20510 # Handling of the options. | |
20511 _ACEOF | |
20512 cat >>$CONFIG_STATUS <<\_ACEOF | |
20513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20514 ac_cs_recheck=: ;; | |
20515 --version | --vers* | -V ) | |
20516 echo "$ac_cs_version"; exit 0 ;; | |
20517 --he | --h) | |
20518 # Conflict between --help and --header | |
20519 { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
20520 Try \`$0 --help' for more information." >&5 | |
20521 echo "$as_me: error: ambiguous option: $1 | |
20522 Try \`$0 --help' for more information." >&2;} | |
20523 { (exit 1); exit 1; }; };; | |
20524 --help | --hel | -h ) | |
20525 echo "$ac_cs_usage"; exit 0 ;; | |
20526 --debug | --d* | -d ) | |
20527 debug=: ;; | |
20528 --file | --fil | --fi | --f ) | |
20529 $ac_shift | |
20530 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
20531 ac_need_defaults=false;; | |
20532 --header | --heade | --head | --hea ) | |
20533 $ac_shift | |
20534 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
20535 ac_need_defaults=false;; | |
20536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
20537 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
20538 ac_cs_silent=: ;; | |
20539 | |
20540 # This is an error. | |
20541 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
20542 Try \`$0 --help' for more information." >&5 | |
20543 echo "$as_me: error: unrecognized option: $1 | |
20544 Try \`$0 --help' for more information." >&2;} | |
20545 { (exit 1); exit 1; }; } ;; | |
20546 | |
20547 *) ac_config_targets="$ac_config_targets $1" ;; | |
20548 | |
20549 esac | |
20550 shift | |
20551 done | |
20552 | |
20553 ac_configure_extra_args= | |
20554 | |
20555 if $ac_cs_silent; then | |
20556 exec 6>/dev/null | |
20557 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
20558 fi | |
20559 | |
20560 _ACEOF | |
20561 cat >>$CONFIG_STATUS <<_ACEOF | |
20562 if \$ac_cs_recheck; then | |
20563 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
20564 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
20565 fi | |
20566 | |
20567 _ACEOF | |
20568 | |
20569 cat >>$CONFIG_STATUS <<_ACEOF | |
20570 # | |
20571 # INIT-COMMANDS section. | |
20572 # | |
20573 | |
20574 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
20575 | |
20576 _ACEOF | |
20577 | |
20578 | |
20579 | |
20580 cat >>$CONFIG_STATUS <<\_ACEOF | |
20581 for ac_config_target in $ac_config_targets | |
20582 do | |
20583 case "$ac_config_target" in | |
20584 # Handling of arguments. | |
20585 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
20586 "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;; | |
20587 "libid3tag.list" ) CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;; | |
20588 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
20589 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
20590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
20591 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
20592 { (exit 1); exit 1; }; };; | |
20593 esac | |
20594 done | |
20595 | |
20596 # If the user did not use the arguments to specify the items to instantiate, | |
20597 # then the envvar interface is used. Set only those that are not. | |
20598 # We use the long form for the default assignment because of an extremely | |
20599 # bizarre bug on SunOS 4.1.3. | |
20600 if $ac_need_defaults; then | |
20601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
20603 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20604 fi | |
20605 | |
20606 # Have a temporary directory for convenience. Make it in the build tree | |
20607 # simply because there is no reason to put it here, and in addition, | |
20608 # creating and moving files from /tmp can sometimes cause problems. | |
20609 # Create a temporary directory, and hook for its removal unless debugging. | |
20610 $debug || | |
20611 { | |
20612 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
20613 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
20614 } | |
20615 | |
20616 # Create a (secure) tmp directory for tmp files. | |
20617 | |
20618 { | |
20619 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
20620 test -n "$tmp" && test -d "$tmp" | |
20621 } || | |
20622 { | |
20623 tmp=./confstat$$-$RANDOM | |
20624 (umask 077 && mkdir $tmp) | |
20625 } || | |
20626 { | |
20627 echo "$me: cannot create a temporary directory in ." >&2 | |
20628 { (exit 1); exit 1; } | |
20629 } | |
20630 | |
20631 _ACEOF | |
20632 | |
20633 cat >>$CONFIG_STATUS <<_ACEOF | |
20634 | |
20635 # | |
20636 # CONFIG_FILES section. | |
20637 # | |
20638 | |
20639 # No need to generate the scripts if there are no CONFIG_FILES. | |
20640 # This happens for instance when ./config.status config.h | |
20641 if test -n "\$CONFIG_FILES"; then | |
20642 # Protect against being on the right side of a sed subst in config.status. | |
20643 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
20644 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
20645 s,@SHELL@,$SHELL,;t t | |
20646 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
20647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
20648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
20649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
20650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
20651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
20652 s,@exec_prefix@,$exec_prefix,;t t | |
20653 s,@prefix@,$prefix,;t t | |
20654 s,@program_transform_name@,$program_transform_name,;t t | |
20655 s,@bindir@,$bindir,;t t | |
20656 s,@sbindir@,$sbindir,;t t | |
20657 s,@libexecdir@,$libexecdir,;t t | |
20658 s,@datadir@,$datadir,;t t | |
20659 s,@sysconfdir@,$sysconfdir,;t t | |
20660 s,@sharedstatedir@,$sharedstatedir,;t t | |
20661 s,@localstatedir@,$localstatedir,;t t | |
20662 s,@libdir@,$libdir,;t t | |
20663 s,@includedir@,$includedir,;t t | |
20664 s,@oldincludedir@,$oldincludedir,;t t | |
20665 s,@infodir@,$infodir,;t t | |
20666 s,@mandir@,$mandir,;t t | |
20667 s,@build_alias@,$build_alias,;t t | |
20668 s,@host_alias@,$host_alias,;t t | |
20669 s,@target_alias@,$target_alias,;t t | |
20670 s,@DEFS@,$DEFS,;t t | |
20671 s,@ECHO_C@,$ECHO_C,;t t | |
20672 s,@ECHO_N@,$ECHO_N,;t t | |
20673 s,@ECHO_T@,$ECHO_T,;t t | |
20674 s,@LIBS@,$LIBS,;t t | |
20675 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
20676 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
20677 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
20678 s,@CYGPATH_W@,$CYGPATH_W,;t t | |
20679 s,@PACKAGE@,$PACKAGE,;t t | |
20680 s,@VERSION@,$VERSION,;t t | |
20681 s,@ACLOCAL@,$ACLOCAL,;t t | |
20682 s,@AUTOCONF@,$AUTOCONF,;t t | |
20683 s,@AUTOMAKE@,$AUTOMAKE,;t t | |
20684 s,@AUTOHEADER@,$AUTOHEADER,;t t | |
20685 s,@MAKEINFO@,$MAKEINFO,;t t | |
20686 s,@AMTAR@,$AMTAR,;t t | |
20687 s,@install_sh@,$install_sh,;t t | |
20688 s,@STRIP@,$STRIP,;t t | |
20689 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
20690 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
20691 s,@mkdir_p@,$mkdir_p,;t t | |
20692 s,@AWK@,$AWK,;t t | |
20693 s,@SET_MAKE@,$SET_MAKE,;t t | |
20694 s,@am__leading_dot@,$am__leading_dot,;t t | |
20695 s,@build@,$build,;t t | |
20696 s,@build_cpu@,$build_cpu,;t t | |
20697 s,@build_vendor@,$build_vendor,;t t | |
20698 s,@build_os@,$build_os,;t t | |
20699 s,@host@,$host,;t t | |
20700 s,@host_cpu@,$host_cpu,;t t | |
20701 s,@host_vendor@,$host_vendor,;t t | |
20702 s,@host_os@,$host_os,;t t | |
20703 s,@CC@,$CC,;t t | |
20704 s,@CFLAGS@,$CFLAGS,;t t | |
20705 s,@LDFLAGS@,$LDFLAGS,;t t | |
20706 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
20707 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
20708 s,@EXEEXT@,$EXEEXT,;t t | |
20709 s,@OBJEXT@,$OBJEXT,;t t | |
20710 s,@DEPDIR@,$DEPDIR,;t t | |
20711 s,@am__include@,$am__include,;t t | |
20712 s,@am__quote@,$am__quote,;t t | |
20713 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
20714 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
20715 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
20716 s,@CCDEPMODE@,$CCDEPMODE,;t t | |
20717 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
20718 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
20719 s,@EGREP@,$EGREP,;t t | |
20720 s,@LN_S@,$LN_S,;t t | |
20721 s,@ECHO@,$ECHO,;t t | |
20722 s,@AR@,$AR,;t t | |
20723 s,@ac_ct_AR@,$ac_ct_AR,;t t | |
20724 s,@RANLIB@,$RANLIB,;t t | |
20725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
20726 s,@CPP@,$CPP,;t t | |
20727 s,@CXX@,$CXX,;t t | |
20728 s,@CXXFLAGS@,$CXXFLAGS,;t t | |
20729 s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
20730 s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
20731 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
20732 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
20733 s,@CXXCPP@,$CXXCPP,;t t | |
20734 s,@F77@,$F77,;t t | |
20735 s,@FFLAGS@,$FFLAGS,;t t | |
20736 s,@ac_ct_F77@,$ac_ct_F77,;t t | |
20737 s,@LIBTOOL@,$LIBTOOL,;t t | |
20738 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t | |
20739 s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t | |
20740 s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t | |
20741 s,@LIBOBJS@,$LIBOBJS,;t t | |
20742 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
20743 CEOF | |
20744 | |
20745 _ACEOF | |
20746 | |
20747 cat >>$CONFIG_STATUS <<\_ACEOF | |
20748 # Split the substitutions into bite-sized pieces for seds with | |
20749 # small command number limits, like on Digital OSF/1 and HP-UX. | |
20750 ac_max_sed_lines=48 | |
20751 ac_sed_frag=1 # Number of current file. | |
20752 ac_beg=1 # First line for current file. | |
20753 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
20754 ac_more_lines=: | |
20755 ac_sed_cmds= | |
20756 while $ac_more_lines; do | |
20757 if test $ac_beg -gt 1; then | |
20758 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
20759 else | |
20760 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
20761 fi | |
20762 if test ! -s $tmp/subs.frag; then | |
20763 ac_more_lines=false | |
20764 else | |
20765 # The purpose of the label and of the branching condition is to | |
20766 # speed up the sed processing (if there are no `@' at all, there | |
20767 # is no need to browse any of the substitutions). | |
20768 # These are the two extra sed commands mentioned above. | |
20769 (echo ':t | |
20770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
20771 if test -z "$ac_sed_cmds"; then | |
20772 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
20773 else | |
20774 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
20775 fi | |
20776 ac_sed_frag=`expr $ac_sed_frag + 1` | |
20777 ac_beg=$ac_end | |
20778 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
20779 fi | |
20780 done | |
20781 if test -z "$ac_sed_cmds"; then | |
20782 ac_sed_cmds=cat | |
20783 fi | |
20784 fi # test -n "$CONFIG_FILES" | |
20785 | |
20786 _ACEOF | |
20787 cat >>$CONFIG_STATUS <<\_ACEOF | |
20788 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
20789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
20790 case $ac_file in | |
20791 - | *:- | *:-:* ) # input from stdin | |
20792 cat >$tmp/stdin | |
20793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
20794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
20795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
20796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
20797 * ) ac_file_in=$ac_file.in ;; | |
20798 esac | |
20799 | |
20800 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
20801 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
20802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20803 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
20804 X"$ac_file" : 'X\(//\)$' \| \ | |
20805 X"$ac_file" : 'X\(/\)' \| \ | |
20806 . : '\(.\)' 2>/dev/null || | |
20807 echo X"$ac_file" | | |
20808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
20809 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
20810 /^X\(\/\/\)$/{ s//\1/; q; } | |
20811 /^X\(\/\).*/{ s//\1/; q; } | |
20812 s/.*/./; q'` | |
20813 { if $as_mkdir_p; then | |
20814 mkdir -p "$ac_dir" | |
20815 else | |
20816 as_dir="$ac_dir" | |
20817 as_dirs= | |
20818 while test ! -d "$as_dir"; do | |
20819 as_dirs="$as_dir $as_dirs" | |
20820 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
20821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20822 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20823 X"$as_dir" : 'X\(//\)$' \| \ | |
20824 X"$as_dir" : 'X\(/\)' \| \ | |
20825 . : '\(.\)' 2>/dev/null || | |
20826 echo X"$as_dir" | | |
20827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
20828 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
20829 /^X\(\/\/\)$/{ s//\1/; q; } | |
20830 /^X\(\/\).*/{ s//\1/; q; } | |
20831 s/.*/./; q'` | |
20832 done | |
20833 test ! -n "$as_dirs" || mkdir $as_dirs | |
20834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
20835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
20836 { (exit 1); exit 1; }; }; } | |
20837 | |
20838 ac_builddir=. | |
20839 | |
20840 if test "$ac_dir" != .; then | |
20841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
20842 # A "../" for each directory in $ac_dir_suffix. | |
20843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
20844 else | |
20845 ac_dir_suffix= ac_top_builddir= | |
20846 fi | |
20847 | |
20848 case $srcdir in | |
20849 .) # No --srcdir option. We are building in place. | |
20850 ac_srcdir=. | |
20851 if test -z "$ac_top_builddir"; then | |
20852 ac_top_srcdir=. | |
20853 else | |
20854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
20855 fi ;; | |
20856 [\\/]* | ?:[\\/]* ) # Absolute path. | |
20857 ac_srcdir=$srcdir$ac_dir_suffix; | |
20858 ac_top_srcdir=$srcdir ;; | |
20859 *) # Relative path. | |
20860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
20861 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
20862 esac | |
20863 | |
20864 # Do not use `cd foo && pwd` to compute absolute paths, because | |
20865 # the directories may not exist. | |
20866 case `pwd` in | |
20867 .) ac_abs_builddir="$ac_dir";; | |
20868 *) | |
20869 case "$ac_dir" in | |
20870 .) ac_abs_builddir=`pwd`;; | |
20871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
20872 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
20873 esac;; | |
20874 esac | |
20875 case $ac_abs_builddir in | |
20876 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
20877 *) | |
20878 case ${ac_top_builddir}. in | |
20879 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
20880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
20881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
20882 esac;; | |
20883 esac | |
20884 case $ac_abs_builddir in | |
20885 .) ac_abs_srcdir=$ac_srcdir;; | |
20886 *) | |
20887 case $ac_srcdir in | |
20888 .) ac_abs_srcdir=$ac_abs_builddir;; | |
20889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
20890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
20891 esac;; | |
20892 esac | |
20893 case $ac_abs_builddir in | |
20894 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
20895 *) | |
20896 case $ac_top_srcdir in | |
20897 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
20898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
20899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
20900 esac;; | |
20901 esac | |
20902 | |
20903 | |
20904 case $INSTALL in | |
20905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
20906 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
20907 esac | |
20908 | |
20909 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20910 # use $as_me), people would be surprised to read: | |
20911 # /* config.h. Generated by config.status. */ | |
20912 if test x"$ac_file" = x-; then | |
20913 configure_input= | |
20914 else | |
20915 configure_input="$ac_file. " | |
20916 fi | |
20917 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
20918 sed 's,.*/,,'` by configure." | |
20919 | |
20920 # First look for the input files in the build tree, otherwise in the | |
20921 # src tree. | |
20922 ac_file_inputs=`IFS=: | |
20923 for f in $ac_file_in; do | |
20924 case $f in | |
20925 -) echo $tmp/stdin ;; | |
20926 [\\/$]*) | |
20927 # Absolute (can't be DOS-style, as IFS=:) | |
20928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
20929 echo "$as_me: error: cannot find input file: $f" >&2;} | |
20930 { (exit 1); exit 1; }; } | |
20931 echo "$f";; | |
20932 *) # Relative | |
20933 if test -f "$f"; then | |
20934 # Build tree | |
20935 echo "$f" | |
20936 elif test -f "$srcdir/$f"; then | |
20937 # Source tree | |
20938 echo "$srcdir/$f" | |
20939 else | |
20940 # /dev/null tree | |
20941 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
20942 echo "$as_me: error: cannot find input file: $f" >&2;} | |
20943 { (exit 1); exit 1; }; } | |
20944 fi;; | |
20945 esac | |
20946 done` || { (exit 1); exit 1; } | |
20947 | |
20948 if test x"$ac_file" != x-; then | |
20949 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
20950 echo "$as_me: creating $ac_file" >&6;} | |
20951 rm -f "$ac_file" | |
20952 fi | |
20953 _ACEOF | |
20954 cat >>$CONFIG_STATUS <<_ACEOF | |
20955 sed "$ac_vpsub | |
20956 $extrasub | |
20957 _ACEOF | |
20958 cat >>$CONFIG_STATUS <<\_ACEOF | |
20959 :t | |
20960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
20961 s,@configure_input@,$configure_input,;t t | |
20962 s,@srcdir@,$ac_srcdir,;t t | |
20963 s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
20964 s,@top_srcdir@,$ac_top_srcdir,;t t | |
20965 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
20966 s,@builddir@,$ac_builddir,;t t | |
20967 s,@abs_builddir@,$ac_abs_builddir,;t t | |
20968 s,@top_builddir@,$ac_top_builddir,;t t | |
20969 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
20970 s,@INSTALL@,$ac_INSTALL,;t t | |
20971 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
20972 rm -f $tmp/stdin | |
20973 if test x"$ac_file" != x-; then | |
20974 mv $tmp/out $ac_file | |
20975 else | |
20976 cat $tmp/out | |
20977 rm -f $tmp/out | |
20978 fi | |
20979 | |
20980 done | |
20981 _ACEOF | |
20982 cat >>$CONFIG_STATUS <<\_ACEOF | |
20983 | |
20984 # | |
20985 # CONFIG_HEADER section. | |
20986 # | |
20987 | |
20988 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20989 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20990 # | |
20991 # ac_d sets the value in "#define NAME VALUE" lines. | |
20992 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
20993 ac_dB='[ ].*$,\1#\2' | |
20994 ac_dC=' ' | |
20995 ac_dD=',;t' | |
20996 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20997 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20998 ac_uB='$,\1#\2define\3' | |
20999 ac_uC=' ' | |
21000 ac_uD=',;t' | |
21001 | |
21002 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
21003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21004 case $ac_file in | |
21005 - | *:- | *:-:* ) # input from stdin | |
21006 cat >$tmp/stdin | |
21007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21011 * ) ac_file_in=$ac_file.in ;; | |
21012 esac | |
21013 | |
21014 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21015 echo "$as_me: creating $ac_file" >&6;} | |
21016 | |
21017 # First look for the input files in the build tree, otherwise in the | |
21018 # src tree. | |
21019 ac_file_inputs=`IFS=: | |
21020 for f in $ac_file_in; do | |
21021 case $f in | |
21022 -) echo $tmp/stdin ;; | |
21023 [\\/$]*) | |
21024 # Absolute (can't be DOS-style, as IFS=:) | |
21025 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21026 echo "$as_me: error: cannot find input file: $f" >&2;} | |
21027 { (exit 1); exit 1; }; } | |
21028 # Do quote $f, to prevent DOS paths from being IFS'd. | |
21029 echo "$f";; | |
21030 *) # Relative | |
21031 if test -f "$f"; then | |
21032 # Build tree | |
21033 echo "$f" | |
21034 elif test -f "$srcdir/$f"; then | |
21035 # Source tree | |
21036 echo "$srcdir/$f" | |
21037 else | |
21038 # /dev/null tree | |
21039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21040 echo "$as_me: error: cannot find input file: $f" >&2;} | |
21041 { (exit 1); exit 1; }; } | |
21042 fi;; | |
21043 esac | |
21044 done` || { (exit 1); exit 1; } | |
21045 # Remove the trailing spaces. | |
21046 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
21047 | |
21048 _ACEOF | |
21049 | |
21050 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
21051 # `conftest.undefs', that substitutes the proper values into | |
21052 # config.h.in to produce config.h. The first handles `#define' | |
21053 # templates, and the second `#undef' templates. | |
21054 # And first: Protect against being on the right side of a sed subst in | |
21055 # config.status. Protect against being in an unquoted here document | |
21056 # in config.status. | |
21057 rm -f conftest.defines conftest.undefs | |
21058 # Using a here document instead of a string reduces the quoting nightmare. | |
21059 # Putting comments in sed scripts is not portable. | |
21060 # | |
21061 # `end' is used to avoid that the second main sed command (meant for | |
21062 # 0-ary CPP macros) applies to n-ary macro definitions. | |
21063 # See the Autoconf documentation for `clear'. | |
21064 cat >confdef2sed.sed <<\_ACEOF | |
21065 s/[\\&,]/\\&/g | |
21066 s,[\\$`],\\&,g | |
21067 t clear | |
21068 : clear | |
21069 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
21070 t end | |
21071 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
21072 : end | |
21073 _ACEOF | |
21074 # If some macros were called several times there might be several times | |
21075 # the same #defines, which is useless. Nevertheless, we may not want to | |
21076 # sort them, since we want the *last* AC-DEFINE to be honored. | |
21077 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
21078 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
21079 rm -f confdef2sed.sed | |
21080 | |
21081 # This sed command replaces #undef with comments. This is necessary, for | |
21082 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21083 # on some systems where configure will not decide to define it. | |
21084 cat >>conftest.undefs <<\_ACEOF | |
21085 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
21086 _ACEOF | |
21087 | |
21088 # Break up conftest.defines because some shells have a limit on the size | |
21089 # of here documents, and old seds have small limits too (100 cmds). | |
21090 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
21091 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
21092 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
21093 echo ' :' >>$CONFIG_STATUS | |
21094 rm -f conftest.tail | |
21095 while grep . conftest.defines >/dev/null | |
21096 do | |
21097 # Write a limited-size here document to $tmp/defines.sed. | |
21098 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
21099 # Speed up: don't consider the non `#define' lines. | |
21100 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
21101 # Work around the forget-to-reset-the-flag bug. | |
21102 echo 't clr' >>$CONFIG_STATUS | |
21103 echo ': clr' >>$CONFIG_STATUS | |
21104 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
21105 echo 'CEOF | |
21106 sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
21107 rm -f $tmp/in | |
21108 mv $tmp/out $tmp/in | |
21109 ' >>$CONFIG_STATUS | |
21110 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
21111 rm -f conftest.defines | |
21112 mv conftest.tail conftest.defines | |
21113 done | |
21114 rm -f conftest.defines | |
21115 echo ' fi # grep' >>$CONFIG_STATUS | |
21116 echo >>$CONFIG_STATUS | |
21117 | |
21118 # Break up conftest.undefs because some shells have a limit on the size | |
21119 # of here documents, and old seds have small limits too (100 cmds). | |
21120 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
21121 rm -f conftest.tail | |
21122 while grep . conftest.undefs >/dev/null | |
21123 do | |
21124 # Write a limited-size here document to $tmp/undefs.sed. | |
21125 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
21126 # Speed up: don't consider the non `#undef' | |
21127 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
21128 # Work around the forget-to-reset-the-flag bug. | |
21129 echo 't clr' >>$CONFIG_STATUS | |
21130 echo ': clr' >>$CONFIG_STATUS | |
21131 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
21132 echo 'CEOF | |
21133 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
21134 rm -f $tmp/in | |
21135 mv $tmp/out $tmp/in | |
21136 ' >>$CONFIG_STATUS | |
21137 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
21138 rm -f conftest.undefs | |
21139 mv conftest.tail conftest.undefs | |
21140 done | |
21141 rm -f conftest.undefs | |
21142 | |
21143 cat >>$CONFIG_STATUS <<\_ACEOF | |
21144 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21145 # use $as_me), people would be surprised to read: | |
21146 # /* config.h. Generated by config.status. */ | |
21147 if test x"$ac_file" = x-; then | |
21148 echo "/* Generated by configure. */" >$tmp/config.h | |
21149 else | |
21150 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
21151 fi | |
21152 cat $tmp/in >>$tmp/config.h | |
21153 rm -f $tmp/in | |
21154 if test x"$ac_file" != x-; then | |
21155 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
21156 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
21157 echo "$as_me: $ac_file is unchanged" >&6;} | |
21158 else | |
21159 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
21160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21161 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21162 X"$ac_file" : 'X\(//\)$' \| \ | |
21163 X"$ac_file" : 'X\(/\)' \| \ | |
21164 . : '\(.\)' 2>/dev/null || | |
21165 echo X"$ac_file" | | |
21166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21167 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21168 /^X\(\/\/\)$/{ s//\1/; q; } | |
21169 /^X\(\/\).*/{ s//\1/; q; } | |
21170 s/.*/./; q'` | |
21171 { if $as_mkdir_p; then | |
21172 mkdir -p "$ac_dir" | |
21173 else | |
21174 as_dir="$ac_dir" | |
21175 as_dirs= | |
21176 while test ! -d "$as_dir"; do | |
21177 as_dirs="$as_dir $as_dirs" | |
21178 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
21179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21180 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21181 X"$as_dir" : 'X\(//\)$' \| \ | |
21182 X"$as_dir" : 'X\(/\)' \| \ | |
21183 . : '\(.\)' 2>/dev/null || | |
21184 echo X"$as_dir" | | |
21185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21186 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21187 /^X\(\/\/\)$/{ s//\1/; q; } | |
21188 /^X\(\/\).*/{ s//\1/; q; } | |
21189 s/.*/./; q'` | |
21190 done | |
21191 test ! -n "$as_dirs" || mkdir $as_dirs | |
21192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
21193 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
21194 { (exit 1); exit 1; }; }; } | |
21195 | |
21196 rm -f $ac_file | |
21197 mv $tmp/config.h $ac_file | |
21198 fi | |
21199 else | |
21200 cat $tmp/config.h | |
21201 rm -f $tmp/config.h | |
21202 fi | |
21203 # Compute $ac_file's index in $config_headers. | |
21204 _am_stamp_count=1 | |
21205 for _am_header in $config_headers :; do | |
21206 case $_am_header in | |
21207 $ac_file | $ac_file:* ) | |
21208 break ;; | |
21209 * ) | |
21210 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
21211 esac | |
21212 done | |
21213 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
21214 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21215 X$ac_file : 'X\(//\)[^/]' \| \ | |
21216 X$ac_file : 'X\(//\)$' \| \ | |
21217 X$ac_file : 'X\(/\)' \| \ | |
21218 . : '\(.\)' 2>/dev/null || | |
21219 echo X$ac_file | | |
21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21221 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21222 /^X\(\/\/\)$/{ s//\1/; q; } | |
21223 /^X\(\/\).*/{ s//\1/; q; } | |
21224 s/.*/./; q'`/stamp-h$_am_stamp_count | |
21225 done | |
21226 _ACEOF | |
21227 cat >>$CONFIG_STATUS <<\_ACEOF | |
21228 | |
21229 # | |
21230 # CONFIG_COMMANDS section. | |
21231 # | |
21232 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
21233 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
21234 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21235 ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
21236 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21237 X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
21238 X"$ac_dest" : 'X\(//\)$' \| \ | |
21239 X"$ac_dest" : 'X\(/\)' \| \ | |
21240 . : '\(.\)' 2>/dev/null || | |
21241 echo X"$ac_dest" | | |
21242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21243 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21244 /^X\(\/\/\)$/{ s//\1/; q; } | |
21245 /^X\(\/\).*/{ s//\1/; q; } | |
21246 s/.*/./; q'` | |
21247 { if $as_mkdir_p; then | |
21248 mkdir -p "$ac_dir" | |
21249 else | |
21250 as_dir="$ac_dir" | |
21251 as_dirs= | |
21252 while test ! -d "$as_dir"; do | |
21253 as_dirs="$as_dir $as_dirs" | |
21254 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
21255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21256 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21257 X"$as_dir" : 'X\(//\)$' \| \ | |
21258 X"$as_dir" : 'X\(/\)' \| \ | |
21259 . : '\(.\)' 2>/dev/null || | |
21260 echo X"$as_dir" | | |
21261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21262 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21263 /^X\(\/\/\)$/{ s//\1/; q; } | |
21264 /^X\(\/\).*/{ s//\1/; q; } | |
21265 s/.*/./; q'` | |
21266 done | |
21267 test ! -n "$as_dirs" || mkdir $as_dirs | |
21268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
21269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
21270 { (exit 1); exit 1; }; }; } | |
21271 | |
21272 ac_builddir=. | |
21273 | |
21274 if test "$ac_dir" != .; then | |
21275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
21276 # A "../" for each directory in $ac_dir_suffix. | |
21277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
21278 else | |
21279 ac_dir_suffix= ac_top_builddir= | |
21280 fi | |
21281 | |
21282 case $srcdir in | |
21283 .) # No --srcdir option. We are building in place. | |
21284 ac_srcdir=. | |
21285 if test -z "$ac_top_builddir"; then | |
21286 ac_top_srcdir=. | |
21287 else | |
21288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
21289 fi ;; | |
21290 [\\/]* | ?:[\\/]* ) # Absolute path. | |
21291 ac_srcdir=$srcdir$ac_dir_suffix; | |
21292 ac_top_srcdir=$srcdir ;; | |
21293 *) # Relative path. | |
21294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
21295 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
21296 esac | |
21297 | |
21298 # Do not use `cd foo && pwd` to compute absolute paths, because | |
21299 # the directories may not exist. | |
21300 case `pwd` in | |
21301 .) ac_abs_builddir="$ac_dir";; | |
21302 *) | |
21303 case "$ac_dir" in | |
21304 .) ac_abs_builddir=`pwd`;; | |
21305 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
21306 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
21307 esac;; | |
21308 esac | |
21309 case $ac_abs_builddir in | |
21310 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21311 *) | |
21312 case ${ac_top_builddir}. in | |
21313 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
21314 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21315 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
21316 esac;; | |
21317 esac | |
21318 case $ac_abs_builddir in | |
21319 .) ac_abs_srcdir=$ac_srcdir;; | |
21320 *) | |
21321 case $ac_srcdir in | |
21322 .) ac_abs_srcdir=$ac_abs_builddir;; | |
21323 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
21324 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
21325 esac;; | |
21326 esac | |
21327 case $ac_abs_builddir in | |
21328 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21329 *) | |
21330 case $ac_top_srcdir in | |
21331 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
21332 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21333 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
21334 esac;; | |
21335 esac | |
21336 | |
21337 | |
21338 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
21339 echo "$as_me: executing $ac_dest commands" >&6;} | |
21340 case $ac_dest in | |
21341 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
21342 # Strip MF so we end up with the name of the file. | |
21343 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
21344 # Check whether this is an Automake generated Makefile or not. | |
21345 # We used to match only the files named `Makefile.in', but | |
21346 # some people rename them; so instead we look at the file content. | |
21347 # Grep'ing the first line is not enough: some people post-process | |
21348 # each Makefile.in and add a new line on top of each file to say so. | |
21349 # So let's grep whole file. | |
21350 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
21351 dirpart=`(dirname "$mf") 2>/dev/null || | |
21352 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21353 X"$mf" : 'X\(//\)[^/]' \| \ | |
21354 X"$mf" : 'X\(//\)$' \| \ | |
21355 X"$mf" : 'X\(/\)' \| \ | |
21356 . : '\(.\)' 2>/dev/null || | |
21357 echo X"$mf" | | |
21358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21359 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21360 /^X\(\/\/\)$/{ s//\1/; q; } | |
21361 /^X\(\/\).*/{ s//\1/; q; } | |
21362 s/.*/./; q'` | |
21363 else | |
21364 continue | |
21365 fi | |
21366 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
21367 # Extract the definition of DEP_FILES from the Makefile without | |
21368 # running `make'. | |
21369 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
21370 test -z "$DEPDIR" && continue | |
21371 # When using ansi2knr, U may be empty or an underscore; expand it | |
21372 U=`sed -n -e '/^U = / s///p' < "$mf"` | |
21373 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
21374 # We invoke sed twice because it is the simplest approach to | |
21375 # changing $(DEPDIR) to its actual value in the expansion. | |
21376 for file in `sed -n -e ' | |
21377 /^DEP_FILES = .*\\\\$/ { | |
21378 s/^DEP_FILES = // | |
21379 :loop | |
21380 s/\\\\$// | |
21381 p | |
21382 n | |
21383 /\\\\$/ b loop | |
21384 p | |
21385 } | |
21386 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
21387 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
21388 # Make sure the directory exists. | |
21389 test -f "$dirpart/$file" && continue | |
21390 fdir=`(dirname "$file") 2>/dev/null || | |
21391 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21392 X"$file" : 'X\(//\)[^/]' \| \ | |
21393 X"$file" : 'X\(//\)$' \| \ | |
21394 X"$file" : 'X\(/\)' \| \ | |
21395 . : '\(.\)' 2>/dev/null || | |
21396 echo X"$file" | | |
21397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21398 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21399 /^X\(\/\/\)$/{ s//\1/; q; } | |
21400 /^X\(\/\).*/{ s//\1/; q; } | |
21401 s/.*/./; q'` | |
21402 { if $as_mkdir_p; then | |
21403 mkdir -p $dirpart/$fdir | |
21404 else | |
21405 as_dir=$dirpart/$fdir | |
21406 as_dirs= | |
21407 while test ! -d "$as_dir"; do | |
21408 as_dirs="$as_dir $as_dirs" | |
21409 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
21410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21411 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21412 X"$as_dir" : 'X\(//\)$' \| \ | |
21413 X"$as_dir" : 'X\(/\)' \| \ | |
21414 . : '\(.\)' 2>/dev/null || | |
21415 echo X"$as_dir" | | |
21416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21417 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21418 /^X\(\/\/\)$/{ s//\1/; q; } | |
21419 /^X\(\/\).*/{ s//\1/; q; } | |
21420 s/.*/./; q'` | |
21421 done | |
21422 test ! -n "$as_dirs" || mkdir $as_dirs | |
21423 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
21424 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
21425 { (exit 1); exit 1; }; }; } | |
21426 | |
21427 # echo "creating $dirpart/$file" | |
21428 echo '# dummy' > "$dirpart/$file" | |
21429 done | |
21430 done | |
21431 ;; | |
21432 esac | |
21433 done | |
21434 _ACEOF | |
21435 | |
21436 cat >>$CONFIG_STATUS <<\_ACEOF | |
21437 | |
21438 { (exit 0); exit 0; } | |
21439 _ACEOF | |
21440 chmod +x $CONFIG_STATUS | |
21441 ac_clean_files=$ac_clean_files_save | |
21442 | |
21443 | |
21444 # configure is writing to config.log, and then calls config.status. | |
21445 # config.status does its own redirection, appending to config.log. | |
21446 # Unfortunately, on DOS this fails, as config.log is still kept open | |
21447 # by configure, so config.status won't be able to write to it; its | |
21448 # output is simply discarded. So we exec the FD to /dev/null, | |
21449 # effectively closing config.log, so it can be properly (re)opened and | |
21450 # appended to by config.status. When coming back to configure, we | |
21451 # need to make the FD available again. | |
21452 if test "$no_create" != yes; then | |
21453 ac_cs_success=: | |
21454 ac_config_status_args= | |
21455 test "$silent" = yes && | |
21456 ac_config_status_args="$ac_config_status_args --quiet" | |
21457 exec 5>/dev/null | |
21458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
21459 exec 5>>config.log | |
21460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
21461 # would make configure fail if this is the last instruction. | |
21462 $ac_cs_success || { (exit 1); exit 1; } | |
21463 fi | |
21464 |