Mercurial > hg > sv-dependency-builds
comparison src/libmad-0.15.1b/configure @ 0:c7265573341e
Import initial set of sources
author | Chris Cannam |
---|---|
date | Mon, 18 Mar 2013 14:12:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c7265573341e |
---|---|
1 #! /bin/sh | |
2 # From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp . | |
3 # Guess values for system-dependent variables and create Makefiles. | |
4 # Generated by GNU Autoconf 2.59 for MPEG Audio Decoder 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='MPEG Audio Decoder' | |
426 PACKAGE_TARNAME='libmad' | |
427 PACKAGE_VERSION='0.15.1b' | |
428 PACKAGE_STRING='MPEG Audio Decoder 0.15.1b' | |
429 PACKAGE_BUGREPORT='support@underbit.com' | |
430 | |
431 ac_unique_file="decoder.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 CCAS CCASFLAGS 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 FPM ASO ASO_OBJS 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_CCAS_set=${CCAS+set} | |
927 ac_env_CCAS_value=$CCAS | |
928 ac_cv_env_CCAS_set=${CCAS+set} | |
929 ac_cv_env_CCAS_value=$CCAS | |
930 ac_env_CCASFLAGS_set=${CCASFLAGS+set} | |
931 ac_env_CCASFLAGS_value=$CCASFLAGS | |
932 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} | |
933 ac_cv_env_CCASFLAGS_value=$CCASFLAGS | |
934 ac_env_CPP_set=${CPP+set} | |
935 ac_env_CPP_value=$CPP | |
936 ac_cv_env_CPP_set=${CPP+set} | |
937 ac_cv_env_CPP_value=$CPP | |
938 ac_env_CXX_set=${CXX+set} | |
939 ac_env_CXX_value=$CXX | |
940 ac_cv_env_CXX_set=${CXX+set} | |
941 ac_cv_env_CXX_value=$CXX | |
942 ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
943 ac_env_CXXFLAGS_value=$CXXFLAGS | |
944 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
945 ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
946 ac_env_CXXCPP_set=${CXXCPP+set} | |
947 ac_env_CXXCPP_value=$CXXCPP | |
948 ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
949 ac_cv_env_CXXCPP_value=$CXXCPP | |
950 ac_env_F77_set=${F77+set} | |
951 ac_env_F77_value=$F77 | |
952 ac_cv_env_F77_set=${F77+set} | |
953 ac_cv_env_F77_value=$F77 | |
954 ac_env_FFLAGS_set=${FFLAGS+set} | |
955 ac_env_FFLAGS_value=$FFLAGS | |
956 ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
957 ac_cv_env_FFLAGS_value=$FFLAGS | |
958 | |
959 # | |
960 # Report the --help message. | |
961 # | |
962 if test "$ac_init_help" = "long"; then | |
963 # Omit some internal or obsolete options to make the list less imposing. | |
964 # This message is too long to be a string in the A/UX 3.1 sh. | |
965 cat <<_ACEOF | |
966 \`configure' configures MPEG Audio Decoder 0.15.1b to adapt to many kinds of systems. | |
967 | |
968 Usage: $0 [OPTION]... [VAR=VALUE]... | |
969 | |
970 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
971 VAR=VALUE. See below for descriptions of some of the useful variables. | |
972 | |
973 Defaults for the options are specified in brackets. | |
974 | |
975 Configuration: | |
976 -h, --help display this help and exit | |
977 --help=short display options specific to this package | |
978 --help=recursive display the short help of all the included packages | |
979 -V, --version display version information and exit | |
980 -q, --quiet, --silent do not print \`checking...' messages | |
981 --cache-file=FILE cache test results in FILE [disabled] | |
982 -C, --config-cache alias for \`--cache-file=config.cache' | |
983 -n, --no-create do not create output files | |
984 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
985 | |
986 _ACEOF | |
987 | |
988 cat <<_ACEOF | |
989 Installation directories: | |
990 --prefix=PREFIX install architecture-independent files in PREFIX | |
991 [$ac_default_prefix] | |
992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
993 [PREFIX] | |
994 | |
995 By default, \`make install' will install all the files in | |
996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
997 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
998 for instance \`--prefix=\$HOME'. | |
999 | |
1000 For better control, use the options below. | |
1001 | |
1002 Fine tuning of the installation directories: | |
1003 --bindir=DIR user executables [EPREFIX/bin] | |
1004 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1005 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1010 --libdir=DIR object code libraries [EPREFIX/lib] | |
1011 --includedir=DIR C header files [PREFIX/include] | |
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1013 --infodir=DIR info documentation [PREFIX/info] | |
1014 --mandir=DIR man documentation [PREFIX/man] | |
1015 _ACEOF | |
1016 | |
1017 cat <<\_ACEOF | |
1018 | |
1019 Program names: | |
1020 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1021 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1022 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1023 | |
1024 System types: | |
1025 --build=BUILD configure for building on BUILD [guessed] | |
1026 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1027 _ACEOF | |
1028 fi | |
1029 | |
1030 if test -n "$ac_init_help"; then | |
1031 case $ac_init_help in | |
1032 short | recursive ) echo "Configuration of MPEG Audio Decoder 0.15.1b:";; | |
1033 esac | |
1034 cat <<\_ACEOF | |
1035 | |
1036 Optional Features: | |
1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1039 --disable-dependency-tracking speeds up one-time build | |
1040 --enable-dependency-tracking do not reject slow dependency extractors | |
1041 --enable-shared[=PKGS] | |
1042 build shared libraries [default=yes] | |
1043 --enable-static[=PKGS] | |
1044 build static libraries [default=yes] | |
1045 --enable-fast-install[=PKGS] | |
1046 optimize for fast installation [default=yes] | |
1047 --disable-libtool-lock avoid locking (might break parallel builds) | |
1048 --enable-speed optimize for speed over accuracy | |
1049 --enable-accuracy optimize for accuracy over speed | |
1050 --enable-fpm=ARCH use ARCH-specific fixed-point math routines (one of: | |
1051 intel, arm, mips, sparc, ppc, 64bit, default) | |
1052 --enable-sso use subband synthesis optimization | |
1053 --disable-aso disable architecture-specific optimizations | |
1054 --enable-strict-iso use strict ISO/IEC interpretations | |
1055 --enable-profiling generate profiling code | |
1056 --enable-debugging enable diagnostic debugging support | |
1057 --disable-debugging do not enable debugging and use more optimization | |
1058 --enable-experimental enable experimental code | |
1059 | |
1060 Optional Packages: | |
1061 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1062 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1063 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1064 --with-pic try to use only PIC/non-PIC objects [default=use | |
1065 both] | |
1066 --with-tags[=TAGS] | |
1067 include additional configurations [automatic] | |
1068 | |
1069 Some influential environment variables: | |
1070 CC C compiler command | |
1071 CFLAGS C compiler flags | |
1072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1073 nonstandard directory <lib dir> | |
1074 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1075 headers in a nonstandard directory <include dir> | |
1076 CCAS assembler compiler command (defaults to CC) | |
1077 CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1078 CPP C preprocessor | |
1079 CXX C++ compiler command | |
1080 CXXFLAGS C++ compiler flags | |
1081 CXXCPP C++ preprocessor | |
1082 F77 Fortran 77 compiler command | |
1083 FFLAGS Fortran 77 compiler flags | |
1084 | |
1085 Use these variables to override the choices made by `configure' or to help | |
1086 it to find libraries and programs with nonstandard names/locations. | |
1087 | |
1088 Report bugs to <support@underbit.com>. | |
1089 _ACEOF | |
1090 fi | |
1091 | |
1092 if test "$ac_init_help" = "recursive"; then | |
1093 # If there are subdirs, report their specific --help. | |
1094 ac_popdir=`pwd` | |
1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1096 test -d $ac_dir || continue | |
1097 ac_builddir=. | |
1098 | |
1099 if test "$ac_dir" != .; then | |
1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1101 # A "../" for each directory in $ac_dir_suffix. | |
1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1103 else | |
1104 ac_dir_suffix= ac_top_builddir= | |
1105 fi | |
1106 | |
1107 case $srcdir in | |
1108 .) # No --srcdir option. We are building in place. | |
1109 ac_srcdir=. | |
1110 if test -z "$ac_top_builddir"; then | |
1111 ac_top_srcdir=. | |
1112 else | |
1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1114 fi ;; | |
1115 [\\/]* | ?:[\\/]* ) # Absolute path. | |
1116 ac_srcdir=$srcdir$ac_dir_suffix; | |
1117 ac_top_srcdir=$srcdir ;; | |
1118 *) # Relative path. | |
1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1120 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1121 esac | |
1122 | |
1123 # Do not use `cd foo && pwd` to compute absolute paths, because | |
1124 # the directories may not exist. | |
1125 case `pwd` in | |
1126 .) ac_abs_builddir="$ac_dir";; | |
1127 *) | |
1128 case "$ac_dir" in | |
1129 .) ac_abs_builddir=`pwd`;; | |
1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1131 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1132 esac;; | |
1133 esac | |
1134 case $ac_abs_builddir in | |
1135 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1136 *) | |
1137 case ${ac_top_builddir}. in | |
1138 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1141 esac;; | |
1142 esac | |
1143 case $ac_abs_builddir in | |
1144 .) ac_abs_srcdir=$ac_srcdir;; | |
1145 *) | |
1146 case $ac_srcdir in | |
1147 .) ac_abs_srcdir=$ac_abs_builddir;; | |
1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1150 esac;; | |
1151 esac | |
1152 case $ac_abs_builddir in | |
1153 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1154 *) | |
1155 case $ac_top_srcdir in | |
1156 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1159 esac;; | |
1160 esac | |
1161 | |
1162 cd $ac_dir | |
1163 # Check for guested configure; otherwise get Cygnus style configure. | |
1164 if test -f $ac_srcdir/configure.gnu; then | |
1165 echo | |
1166 $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1167 elif test -f $ac_srcdir/configure; then | |
1168 echo | |
1169 $SHELL $ac_srcdir/configure --help=recursive | |
1170 elif test -f $ac_srcdir/configure.ac || | |
1171 test -f $ac_srcdir/configure.in; then | |
1172 echo | |
1173 $ac_configure --help | |
1174 else | |
1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1176 fi | |
1177 cd "$ac_popdir" | |
1178 done | |
1179 fi | |
1180 | |
1181 test -n "$ac_init_help" && exit 0 | |
1182 if $ac_init_version; then | |
1183 cat <<\_ACEOF | |
1184 MPEG Audio Decoder configure 0.15.1b | |
1185 generated by GNU Autoconf 2.59 | |
1186 | |
1187 Copyright (C) 2003 Free Software Foundation, Inc. | |
1188 This configure script is free software; the Free Software Foundation | |
1189 gives unlimited permission to copy, distribute and modify it. | |
1190 _ACEOF | |
1191 exit 0 | |
1192 fi | |
1193 exec 5>config.log | |
1194 cat >&5 <<_ACEOF | |
1195 This file contains any messages produced by compilers while | |
1196 running configure, to aid debugging if configure makes a mistake. | |
1197 | |
1198 It was created by MPEG Audio Decoder $as_me 0.15.1b, which was | |
1199 generated by GNU Autoconf 2.59. Invocation command line was | |
1200 | |
1201 $ $0 $@ | |
1202 | |
1203 _ACEOF | |
1204 { | |
1205 cat <<_ASUNAME | |
1206 ## --------- ## | |
1207 ## Platform. ## | |
1208 ## --------- ## | |
1209 | |
1210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1211 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1212 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1213 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1214 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1215 | |
1216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1218 | |
1219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1222 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1226 | |
1227 _ASUNAME | |
1228 | |
1229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1230 for as_dir in $PATH | |
1231 do | |
1232 IFS=$as_save_IFS | |
1233 test -z "$as_dir" && as_dir=. | |
1234 echo "PATH: $as_dir" | |
1235 done | |
1236 | |
1237 } >&5 | |
1238 | |
1239 cat >&5 <<_ACEOF | |
1240 | |
1241 | |
1242 ## ----------- ## | |
1243 ## Core tests. ## | |
1244 ## ----------- ## | |
1245 | |
1246 _ACEOF | |
1247 | |
1248 | |
1249 # Keep a trace of the command line. | |
1250 # Strip out --no-create and --no-recursion so they do not pile up. | |
1251 # Strip out --silent because we don't want to record it for future runs. | |
1252 # Also quote any args containing shell meta-characters. | |
1253 # Make two passes to allow for proper duplicate-argument suppression. | |
1254 ac_configure_args= | |
1255 ac_configure_args0= | |
1256 ac_configure_args1= | |
1257 ac_sep= | |
1258 ac_must_keep_next=false | |
1259 for ac_pass in 1 2 | |
1260 do | |
1261 for ac_arg | |
1262 do | |
1263 case $ac_arg in | |
1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1266 | -silent | --silent | --silen | --sile | --sil) | |
1267 continue ;; | |
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1270 esac | |
1271 case $ac_pass in | |
1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1273 2) | |
1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1275 if test $ac_must_keep_next = true; then | |
1276 ac_must_keep_next=false # Got value, back to normal. | |
1277 else | |
1278 case $ac_arg in | |
1279 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1282 | -with-* | --with-* | -without-* | --without-* | --x) | |
1283 case "$ac_configure_args0 " in | |
1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1285 esac | |
1286 ;; | |
1287 -* ) ac_must_keep_next=true ;; | |
1288 esac | |
1289 fi | |
1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1291 # Get rid of the leading space. | |
1292 ac_sep=" " | |
1293 ;; | |
1294 esac | |
1295 done | |
1296 done | |
1297 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1298 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1299 | |
1300 # When interrupted or exit'd, cleanup temporary files, and complete | |
1301 # config.log. We remove comments because anyway the quotes in there | |
1302 # would cause problems or look ugly. | |
1303 # WARNING: Be sure not to use single quotes in there, as some shells, | |
1304 # such as our DU 5.0 friend, will then `close' the trap. | |
1305 trap 'exit_status=$? | |
1306 # Save into config.log some information that might help in debugging. | |
1307 { | |
1308 echo | |
1309 | |
1310 cat <<\_ASBOX | |
1311 ## ---------------- ## | |
1312 ## Cache variables. ## | |
1313 ## ---------------- ## | |
1314 _ASBOX | |
1315 echo | |
1316 # The following way of writing the cache mishandles newlines in values, | |
1317 { | |
1318 (set) 2>&1 | | |
1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1320 *ac_space=\ *) | |
1321 sed -n \ | |
1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1324 ;; | |
1325 *) | |
1326 sed -n \ | |
1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1328 ;; | |
1329 esac; | |
1330 } | |
1331 echo | |
1332 | |
1333 cat <<\_ASBOX | |
1334 ## ----------------- ## | |
1335 ## Output variables. ## | |
1336 ## ----------------- ## | |
1337 _ASBOX | |
1338 echo | |
1339 for ac_var in $ac_subst_vars | |
1340 do | |
1341 eval ac_val=$`echo $ac_var` | |
1342 echo "$ac_var='"'"'$ac_val'"'"'" | |
1343 done | sort | |
1344 echo | |
1345 | |
1346 if test -n "$ac_subst_files"; then | |
1347 cat <<\_ASBOX | |
1348 ## ------------- ## | |
1349 ## Output files. ## | |
1350 ## ------------- ## | |
1351 _ASBOX | |
1352 echo | |
1353 for ac_var in $ac_subst_files | |
1354 do | |
1355 eval ac_val=$`echo $ac_var` | |
1356 echo "$ac_var='"'"'$ac_val'"'"'" | |
1357 done | sort | |
1358 echo | |
1359 fi | |
1360 | |
1361 if test -s confdefs.h; then | |
1362 cat <<\_ASBOX | |
1363 ## ----------- ## | |
1364 ## confdefs.h. ## | |
1365 ## ----------- ## | |
1366 _ASBOX | |
1367 echo | |
1368 sed "/^$/d" confdefs.h | sort | |
1369 echo | |
1370 fi | |
1371 test "$ac_signal" != 0 && | |
1372 echo "$as_me: caught signal $ac_signal" | |
1373 echo "$as_me: exit $exit_status" | |
1374 } >&5 | |
1375 rm -f core *.core && | |
1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1377 exit $exit_status | |
1378 ' 0 | |
1379 for ac_signal in 1 2 13 15; do | |
1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1381 done | |
1382 ac_signal=0 | |
1383 | |
1384 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1385 rm -rf conftest* confdefs.h | |
1386 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1387 echo >confdefs.h | |
1388 | |
1389 # Predefined preprocessor variables. | |
1390 | |
1391 cat >>confdefs.h <<_ACEOF | |
1392 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1393 _ACEOF | |
1394 | |
1395 | |
1396 cat >>confdefs.h <<_ACEOF | |
1397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1398 _ACEOF | |
1399 | |
1400 | |
1401 cat >>confdefs.h <<_ACEOF | |
1402 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1403 _ACEOF | |
1404 | |
1405 | |
1406 cat >>confdefs.h <<_ACEOF | |
1407 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1408 _ACEOF | |
1409 | |
1410 | |
1411 cat >>confdefs.h <<_ACEOF | |
1412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1413 _ACEOF | |
1414 | |
1415 | |
1416 # Let the site file select an alternate cache file if it wants to. | |
1417 # Prefer explicitly selected file to automatically selected ones. | |
1418 if test -z "$CONFIG_SITE"; then | |
1419 if test "x$prefix" != xNONE; then | |
1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1421 else | |
1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1423 fi | |
1424 fi | |
1425 for ac_site_file in $CONFIG_SITE; do | |
1426 if test -r "$ac_site_file"; then | |
1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1428 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1429 sed 's/^/| /' "$ac_site_file" >&5 | |
1430 . "$ac_site_file" | |
1431 fi | |
1432 done | |
1433 | |
1434 if test -r "$cache_file"; then | |
1435 # Some versions of bash will fail to source /dev/null (special | |
1436 # files actually), so we avoid doing that. | |
1437 if test -f "$cache_file"; then | |
1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1439 echo "$as_me: loading cache $cache_file" >&6;} | |
1440 case $cache_file in | |
1441 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1442 *) . ./$cache_file;; | |
1443 esac | |
1444 fi | |
1445 else | |
1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1447 echo "$as_me: creating cache $cache_file" >&6;} | |
1448 >$cache_file | |
1449 fi | |
1450 | |
1451 # Check that the precious variables saved in the cache have kept the same | |
1452 # value. | |
1453 ac_cache_corrupted=false | |
1454 for ac_var in `(set) 2>&1 | | |
1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1457 eval ac_new_set=\$ac_env_${ac_var}_set | |
1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1459 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1460 case $ac_old_set,$ac_new_set in | |
1461 set,) | |
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1463 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1464 ac_cache_corrupted=: ;; | |
1465 ,set) | |
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1467 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1468 ac_cache_corrupted=: ;; | |
1469 ,);; | |
1470 *) | |
1471 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1473 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1475 echo "$as_me: former value: $ac_old_val" >&2;} | |
1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1477 echo "$as_me: current value: $ac_new_val" >&2;} | |
1478 ac_cache_corrupted=: | |
1479 fi;; | |
1480 esac | |
1481 # Pass precious variables to config.status. | |
1482 if test "$ac_new_set" = set; then | |
1483 case $ac_new_val in | |
1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1486 *) ac_arg=$ac_var=$ac_new_val ;; | |
1487 esac | |
1488 case " $ac_configure_args " in | |
1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1491 esac | |
1492 fi | |
1493 done | |
1494 if $ac_cache_corrupted; then | |
1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1496 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1498 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1499 { (exit 1); exit 1; }; } | |
1500 fi | |
1501 | |
1502 ac_ext=c | |
1503 ac_cpp='$CPP $CPPFLAGS' | |
1504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1506 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1507 | |
1508 | |
1509 | |
1510 | |
1511 | |
1512 | |
1513 | |
1514 | |
1515 | |
1516 | |
1517 | |
1518 | |
1519 | |
1520 | |
1521 | |
1522 | |
1523 | |
1524 | |
1525 | |
1526 | |
1527 | |
1528 | |
1529 | |
1530 | |
1531 | |
1532 | |
1533 | |
1534 | |
1535 | |
1536 | |
1537 | |
1538 am__api_version="1.8" | |
1539 ac_aux_dir= | |
1540 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1541 if test -f $ac_dir/install-sh; then | |
1542 ac_aux_dir=$ac_dir | |
1543 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1544 break | |
1545 elif test -f $ac_dir/install.sh; then | |
1546 ac_aux_dir=$ac_dir | |
1547 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1548 break | |
1549 elif test -f $ac_dir/shtool; then | |
1550 ac_aux_dir=$ac_dir | |
1551 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1552 break | |
1553 fi | |
1554 done | |
1555 if test -z "$ac_aux_dir"; then | |
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1557 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1558 { (exit 1); exit 1; }; } | |
1559 fi | |
1560 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1561 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1562 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1563 | |
1564 # Find a good install program. We prefer a C program (faster), | |
1565 # so one script is as good as another. But avoid the broken or | |
1566 # incompatible versions: | |
1567 # SysV /etc/install, /usr/sbin/install | |
1568 # SunOS /usr/etc/install | |
1569 # IRIX /sbin/install | |
1570 # AIX /bin/install | |
1571 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1575 # OS/2's system install, which has a completely different semantic | |
1576 # ./install, which can be erroneously created by make from ./install.sh. | |
1577 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1578 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1579 if test -z "$INSTALL"; then | |
1580 if test "${ac_cv_path_install+set}" = set; then | |
1581 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1582 else | |
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1584 for as_dir in $PATH | |
1585 do | |
1586 IFS=$as_save_IFS | |
1587 test -z "$as_dir" && as_dir=. | |
1588 # Account for people who put trailing slashes in PATH elements. | |
1589 case $as_dir/ in | |
1590 ./ | .// | /cC/* | \ | |
1591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1592 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1593 /usr/ucb/* ) ;; | |
1594 *) | |
1595 # OSF1 and SCO ODT 3.0 have their own names for install. | |
1596 # Don't use installbsd from OSF since it installs stuff as root | |
1597 # by default. | |
1598 for ac_prog in ginstall scoinst install; do | |
1599 for ac_exec_ext in '' $ac_executable_extensions; do | |
1600 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1601 if test $ac_prog = install && | |
1602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1603 # AIX install. It has an incompatible calling convention. | |
1604 : | |
1605 elif test $ac_prog = install && | |
1606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1607 # program-specific install script used by HP pwplus--don't use. | |
1608 : | |
1609 else | |
1610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1611 break 3 | |
1612 fi | |
1613 fi | |
1614 done | |
1615 done | |
1616 ;; | |
1617 esac | |
1618 done | |
1619 | |
1620 | |
1621 fi | |
1622 if test "${ac_cv_path_install+set}" = set; then | |
1623 INSTALL=$ac_cv_path_install | |
1624 else | |
1625 # As a last resort, use the slow shell script. We don't cache a | |
1626 # path for INSTALL within a source directory, because that will | |
1627 # break other packages using the cache if that directory is | |
1628 # removed, or if the path is relative. | |
1629 INSTALL=$ac_install_sh | |
1630 fi | |
1631 fi | |
1632 echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1633 echo "${ECHO_T}$INSTALL" >&6 | |
1634 | |
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1636 # It thinks the first close brace ends the variable substitution. | |
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1638 | |
1639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1640 | |
1641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1642 | |
1643 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1644 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1645 # Just in case | |
1646 sleep 1 | |
1647 echo timestamp > conftest.file | |
1648 # Do `set' in a subshell so we don't clobber the current shell's | |
1649 # arguments. Must try -L first in case configure is actually a | |
1650 # symlink; some systems play weird games with the mod time of symlinks | |
1651 # (eg FreeBSD returns the mod time of the symlink's containing | |
1652 # directory). | |
1653 if ( | |
1654 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1655 if test "$*" = "X"; then | |
1656 # -L didn't work. | |
1657 set X `ls -t $srcdir/configure conftest.file` | |
1658 fi | |
1659 rm -f conftest.file | |
1660 if test "$*" != "X $srcdir/configure conftest.file" \ | |
1661 && test "$*" != "X conftest.file $srcdir/configure"; then | |
1662 | |
1663 # If neither matched, then we have a broken ls. This can happen | |
1664 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1665 # broken ls alias from the environment. This has actually | |
1666 # happened. Such a system could not be considered "sane". | |
1667 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1668 alias in your environment" >&5 | |
1669 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1670 alias in your environment" >&2;} | |
1671 { (exit 1); exit 1; }; } | |
1672 fi | |
1673 | |
1674 test "$2" = conftest.file | |
1675 ) | |
1676 then | |
1677 # Ok. | |
1678 : | |
1679 else | |
1680 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1681 Check your system clock" >&5 | |
1682 echo "$as_me: error: newly created file is older than distributed files! | |
1683 Check your system clock" >&2;} | |
1684 { (exit 1); exit 1; }; } | |
1685 fi | |
1686 echo "$as_me:$LINENO: result: yes" >&5 | |
1687 echo "${ECHO_T}yes" >&6 | |
1688 test "$program_prefix" != NONE && | |
1689 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1690 # Use a double $ so make ignores it. | |
1691 test "$program_suffix" != NONE && | |
1692 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1693 # Double any \ or $. echo might interpret backslashes. | |
1694 # By default was `s,x,x', remove it if useless. | |
1695 cat <<\_ACEOF >conftest.sed | |
1696 s/[\\$]/&&/g;s/;s,x,x,$// | |
1697 _ACEOF | |
1698 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1699 rm conftest.sed | |
1700 | |
1701 # expand $ac_aux_dir to an absolute path | |
1702 am_aux_dir=`cd $ac_aux_dir && pwd` | |
1703 | |
1704 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1705 # Use eval to expand $SHELL | |
1706 if eval "$MISSING --run true"; then | |
1707 am_missing_run="$MISSING --run " | |
1708 else | |
1709 am_missing_run= | |
1710 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1711 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1712 fi | |
1713 | |
1714 if mkdir -p -- . 2>/dev/null; then | |
1715 # Keeping the `.' argument allows $(mkdir_p) to be used without | |
1716 # argument. Indeed, we sometimes output rules like | |
1717 # $(mkdir_p) $(somedir) | |
1718 # where $(somedir) is conditionally defined. | |
1719 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more | |
1720 # expensive solution, as it forces Make to start a sub-shell.) | |
1721 mkdir_p='mkdir -p -- .' | |
1722 else | |
1723 # On NextStep and OpenStep, the `mkdir' command does not | |
1724 # recognize any option. It will interpret all options as | |
1725 # directories to create, and then abort because `.' already | |
1726 # exists. | |
1727 for d in ./-p ./--; | |
1728 do | |
1729 test -d $d && rmdir $d | |
1730 done | |
1731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1732 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1733 mkdir_p='$(mkinstalldirs)' | |
1734 else | |
1735 mkdir_p='$(install_sh) -d' | |
1736 fi | |
1737 fi | |
1738 | |
1739 for ac_prog in gawk mawk nawk awk | |
1740 do | |
1741 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1742 set dummy $ac_prog; ac_word=$2 | |
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1745 if test "${ac_cv_prog_AWK+set}" = set; then | |
1746 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1747 else | |
1748 if test -n "$AWK"; then | |
1749 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1750 else | |
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1752 for as_dir in $PATH | |
1753 do | |
1754 IFS=$as_save_IFS | |
1755 test -z "$as_dir" && as_dir=. | |
1756 for ac_exec_ext in '' $ac_executable_extensions; do | |
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1758 ac_cv_prog_AWK="$ac_prog" | |
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1760 break 2 | |
1761 fi | |
1762 done | |
1763 done | |
1764 | |
1765 fi | |
1766 fi | |
1767 AWK=$ac_cv_prog_AWK | |
1768 if test -n "$AWK"; then | |
1769 echo "$as_me:$LINENO: result: $AWK" >&5 | |
1770 echo "${ECHO_T}$AWK" >&6 | |
1771 else | |
1772 echo "$as_me:$LINENO: result: no" >&5 | |
1773 echo "${ECHO_T}no" >&6 | |
1774 fi | |
1775 | |
1776 test -n "$AWK" && break | |
1777 done | |
1778 | |
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1783 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1784 else | |
1785 cat >conftest.make <<\_ACEOF | |
1786 all: | |
1787 @echo 'ac_maketemp="$(MAKE)"' | |
1788 _ACEOF | |
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1791 if test -n "$ac_maketemp"; then | |
1792 eval ac_cv_prog_make_${ac_make}_set=yes | |
1793 else | |
1794 eval ac_cv_prog_make_${ac_make}_set=no | |
1795 fi | |
1796 rm -f conftest.make | |
1797 fi | |
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1799 echo "$as_me:$LINENO: result: yes" >&5 | |
1800 echo "${ECHO_T}yes" >&6 | |
1801 SET_MAKE= | |
1802 else | |
1803 echo "$as_me:$LINENO: result: no" >&5 | |
1804 echo "${ECHO_T}no" >&6 | |
1805 SET_MAKE="MAKE=${MAKE-make}" | |
1806 fi | |
1807 | |
1808 rm -rf .tst 2>/dev/null | |
1809 mkdir .tst 2>/dev/null | |
1810 if test -d .tst; then | |
1811 am__leading_dot=. | |
1812 else | |
1813 am__leading_dot=_ | |
1814 fi | |
1815 rmdir .tst 2>/dev/null | |
1816 | |
1817 # test to see if srcdir already configured | |
1818 if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1819 test -f $srcdir/config.status; then | |
1820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1822 { (exit 1); exit 1; }; } | |
1823 fi | |
1824 | |
1825 # test whether we have cygpath | |
1826 if test -z "$CYGPATH_W"; then | |
1827 if (cygpath --version) >/dev/null 2>/dev/null; then | |
1828 CYGPATH_W='cygpath -w' | |
1829 else | |
1830 CYGPATH_W=echo | |
1831 fi | |
1832 fi | |
1833 | |
1834 | |
1835 # Define the identity of the package. | |
1836 PACKAGE='libmad' | |
1837 VERSION='0.15.1b' | |
1838 | |
1839 | |
1840 cat >>confdefs.h <<_ACEOF | |
1841 #define PACKAGE "$PACKAGE" | |
1842 _ACEOF | |
1843 | |
1844 | |
1845 cat >>confdefs.h <<_ACEOF | |
1846 #define VERSION "$VERSION" | |
1847 _ACEOF | |
1848 | |
1849 # Some tools Automake needs. | |
1850 | |
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1852 | |
1853 | |
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1855 | |
1856 | |
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1858 | |
1859 | |
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1861 | |
1862 | |
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1864 | |
1865 | |
1866 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1867 | |
1868 install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1869 | |
1870 # Installed binaries are usually stripped using `strip' when the user | |
1871 # run `make install-strip'. However `strip' might not be the right | |
1872 # tool to use in cross-compilation environments, therefore Automake | |
1873 # will honor the `STRIP' environment variable to overrule this program. | |
1874 if test "$cross_compiling" != no; then | |
1875 if test -n "$ac_tool_prefix"; then | |
1876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1877 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1880 if test "${ac_cv_prog_STRIP+set}" = set; then | |
1881 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1882 else | |
1883 if test -n "$STRIP"; then | |
1884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1885 else | |
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1887 for as_dir in $PATH | |
1888 do | |
1889 IFS=$as_save_IFS | |
1890 test -z "$as_dir" && as_dir=. | |
1891 for ac_exec_ext in '' $ac_executable_extensions; do | |
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1893 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1895 break 2 | |
1896 fi | |
1897 done | |
1898 done | |
1899 | |
1900 fi | |
1901 fi | |
1902 STRIP=$ac_cv_prog_STRIP | |
1903 if test -n "$STRIP"; then | |
1904 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1905 echo "${ECHO_T}$STRIP" >&6 | |
1906 else | |
1907 echo "$as_me:$LINENO: result: no" >&5 | |
1908 echo "${ECHO_T}no" >&6 | |
1909 fi | |
1910 | |
1911 fi | |
1912 if test -z "$ac_cv_prog_STRIP"; then | |
1913 ac_ct_STRIP=$STRIP | |
1914 # Extract the first word of "strip", so it can be a program name with args. | |
1915 set dummy strip; ac_word=$2 | |
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1919 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1920 else | |
1921 if test -n "$ac_ct_STRIP"; then | |
1922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1923 else | |
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1925 for as_dir in $PATH | |
1926 do | |
1927 IFS=$as_save_IFS | |
1928 test -z "$as_dir" && as_dir=. | |
1929 for ac_exec_ext in '' $ac_executable_extensions; do | |
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1931 ac_cv_prog_ac_ct_STRIP="strip" | |
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1933 break 2 | |
1934 fi | |
1935 done | |
1936 done | |
1937 | |
1938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1939 fi | |
1940 fi | |
1941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1942 if test -n "$ac_ct_STRIP"; then | |
1943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1944 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1945 else | |
1946 echo "$as_me:$LINENO: result: no" >&5 | |
1947 echo "${ECHO_T}no" >&6 | |
1948 fi | |
1949 | |
1950 STRIP=$ac_ct_STRIP | |
1951 else | |
1952 STRIP="$ac_cv_prog_STRIP" | |
1953 fi | |
1954 | |
1955 fi | |
1956 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1957 | |
1958 # We need awk for the "check" target. The system "awk" is bad on | |
1959 # some platforms. | |
1960 | |
1961 | |
1962 | |
1963 | |
1964 ac_config_headers="$ac_config_headers config.h" | |
1965 | |
1966 | |
1967 | |
1968 # Make sure we can run config.sub. | |
1969 $ac_config_sub sun4 >/dev/null 2>&1 || | |
1970 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1971 echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1972 { (exit 1); exit 1; }; } | |
1973 | |
1974 echo "$as_me:$LINENO: checking build system type" >&5 | |
1975 echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1976 if test "${ac_cv_build+set}" = set; then | |
1977 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1978 else | |
1979 ac_cv_build_alias=$build_alias | |
1980 test -z "$ac_cv_build_alias" && | |
1981 ac_cv_build_alias=`$ac_config_guess` | |
1982 test -z "$ac_cv_build_alias" && | |
1983 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1984 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1985 { (exit 1); exit 1; }; } | |
1986 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1987 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1988 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1989 { (exit 1); exit 1; }; } | |
1990 | |
1991 fi | |
1992 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1993 echo "${ECHO_T}$ac_cv_build" >&6 | |
1994 build=$ac_cv_build | |
1995 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1996 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1997 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1998 | |
1999 | |
2000 echo "$as_me:$LINENO: checking host system type" >&5 | |
2001 echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
2002 if test "${ac_cv_host+set}" = set; then | |
2003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2004 else | |
2005 ac_cv_host_alias=$host_alias | |
2006 test -z "$ac_cv_host_alias" && | |
2007 ac_cv_host_alias=$ac_cv_build_alias | |
2008 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2009 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2010 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
2011 { (exit 1); exit 1; }; } | |
2012 | |
2013 fi | |
2014 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2015 echo "${ECHO_T}$ac_cv_host" >&6 | |
2016 host=$ac_cv_host | |
2017 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2018 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2019 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2020 | |
2021 | |
2022 | |
2023 | |
2024 ac_ext=c | |
2025 ac_cpp='$CPP $CPPFLAGS' | |
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2029 if test -n "$ac_tool_prefix"; then | |
2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2031 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2034 if test "${ac_cv_prog_CC+set}" = set; then | |
2035 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2036 else | |
2037 if test -n "$CC"; then | |
2038 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2039 else | |
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2041 for as_dir in $PATH | |
2042 do | |
2043 IFS=$as_save_IFS | |
2044 test -z "$as_dir" && as_dir=. | |
2045 for ac_exec_ext in '' $ac_executable_extensions; do | |
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2047 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2049 break 2 | |
2050 fi | |
2051 done | |
2052 done | |
2053 | |
2054 fi | |
2055 fi | |
2056 CC=$ac_cv_prog_CC | |
2057 if test -n "$CC"; then | |
2058 echo "$as_me:$LINENO: result: $CC" >&5 | |
2059 echo "${ECHO_T}$CC" >&6 | |
2060 else | |
2061 echo "$as_me:$LINENO: result: no" >&5 | |
2062 echo "${ECHO_T}no" >&6 | |
2063 fi | |
2064 | |
2065 fi | |
2066 if test -z "$ac_cv_prog_CC"; then | |
2067 ac_ct_CC=$CC | |
2068 # Extract the first word of "gcc", so it can be a program name with args. | |
2069 set dummy gcc; ac_word=$2 | |
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2073 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2074 else | |
2075 if test -n "$ac_ct_CC"; then | |
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2077 else | |
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2079 for as_dir in $PATH | |
2080 do | |
2081 IFS=$as_save_IFS | |
2082 test -z "$as_dir" && as_dir=. | |
2083 for ac_exec_ext in '' $ac_executable_extensions; do | |
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2085 ac_cv_prog_ac_ct_CC="gcc" | |
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2087 break 2 | |
2088 fi | |
2089 done | |
2090 done | |
2091 | |
2092 fi | |
2093 fi | |
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2095 if test -n "$ac_ct_CC"; then | |
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2097 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2098 else | |
2099 echo "$as_me:$LINENO: result: no" >&5 | |
2100 echo "${ECHO_T}no" >&6 | |
2101 fi | |
2102 | |
2103 CC=$ac_ct_CC | |
2104 else | |
2105 CC="$ac_cv_prog_CC" | |
2106 fi | |
2107 | |
2108 if test -z "$CC"; then | |
2109 if test -n "$ac_tool_prefix"; then | |
2110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2111 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2112 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2114 if test "${ac_cv_prog_CC+set}" = set; then | |
2115 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2116 else | |
2117 if test -n "$CC"; then | |
2118 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2119 else | |
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2121 for as_dir in $PATH | |
2122 do | |
2123 IFS=$as_save_IFS | |
2124 test -z "$as_dir" && as_dir=. | |
2125 for ac_exec_ext in '' $ac_executable_extensions; do | |
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2127 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2129 break 2 | |
2130 fi | |
2131 done | |
2132 done | |
2133 | |
2134 fi | |
2135 fi | |
2136 CC=$ac_cv_prog_CC | |
2137 if test -n "$CC"; then | |
2138 echo "$as_me:$LINENO: result: $CC" >&5 | |
2139 echo "${ECHO_T}$CC" >&6 | |
2140 else | |
2141 echo "$as_me:$LINENO: result: no" >&5 | |
2142 echo "${ECHO_T}no" >&6 | |
2143 fi | |
2144 | |
2145 fi | |
2146 if test -z "$ac_cv_prog_CC"; then | |
2147 ac_ct_CC=$CC | |
2148 # Extract the first word of "cc", so it can be a program name with args. | |
2149 set dummy cc; ac_word=$2 | |
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2153 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2154 else | |
2155 if test -n "$ac_ct_CC"; then | |
2156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2157 else | |
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2159 for as_dir in $PATH | |
2160 do | |
2161 IFS=$as_save_IFS | |
2162 test -z "$as_dir" && as_dir=. | |
2163 for ac_exec_ext in '' $ac_executable_extensions; do | |
2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2165 ac_cv_prog_ac_ct_CC="cc" | |
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2167 break 2 | |
2168 fi | |
2169 done | |
2170 done | |
2171 | |
2172 fi | |
2173 fi | |
2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2175 if test -n "$ac_ct_CC"; then | |
2176 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2177 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2178 else | |
2179 echo "$as_me:$LINENO: result: no" >&5 | |
2180 echo "${ECHO_T}no" >&6 | |
2181 fi | |
2182 | |
2183 CC=$ac_ct_CC | |
2184 else | |
2185 CC="$ac_cv_prog_CC" | |
2186 fi | |
2187 | |
2188 fi | |
2189 if test -z "$CC"; then | |
2190 # Extract the first word of "cc", so it can be a program name with args. | |
2191 set dummy cc; ac_word=$2 | |
2192 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2194 if test "${ac_cv_prog_CC+set}" = set; then | |
2195 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2196 else | |
2197 if test -n "$CC"; then | |
2198 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2199 else | |
2200 ac_prog_rejected=no | |
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2202 for as_dir in $PATH | |
2203 do | |
2204 IFS=$as_save_IFS | |
2205 test -z "$as_dir" && as_dir=. | |
2206 for ac_exec_ext in '' $ac_executable_extensions; do | |
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2209 ac_prog_rejected=yes | |
2210 continue | |
2211 fi | |
2212 ac_cv_prog_CC="cc" | |
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2214 break 2 | |
2215 fi | |
2216 done | |
2217 done | |
2218 | |
2219 if test $ac_prog_rejected = yes; then | |
2220 # We found a bogon in the path, so make sure we never use it. | |
2221 set dummy $ac_cv_prog_CC | |
2222 shift | |
2223 if test $# != 0; then | |
2224 # We chose a different compiler from the bogus one. | |
2225 # However, it has the same basename, so the bogon will be chosen | |
2226 # first if we set CC to just the basename; use the full file name. | |
2227 shift | |
2228 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2229 fi | |
2230 fi | |
2231 fi | |
2232 fi | |
2233 CC=$ac_cv_prog_CC | |
2234 if test -n "$CC"; then | |
2235 echo "$as_me:$LINENO: result: $CC" >&5 | |
2236 echo "${ECHO_T}$CC" >&6 | |
2237 else | |
2238 echo "$as_me:$LINENO: result: no" >&5 | |
2239 echo "${ECHO_T}no" >&6 | |
2240 fi | |
2241 | |
2242 fi | |
2243 if test -z "$CC"; then | |
2244 if test -n "$ac_tool_prefix"; then | |
2245 for ac_prog in cl | |
2246 do | |
2247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2251 if test "${ac_cv_prog_CC+set}" = set; then | |
2252 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2253 else | |
2254 if test -n "$CC"; then | |
2255 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2256 else | |
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2258 for as_dir in $PATH | |
2259 do | |
2260 IFS=$as_save_IFS | |
2261 test -z "$as_dir" && as_dir=. | |
2262 for ac_exec_ext in '' $ac_executable_extensions; do | |
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2264 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2266 break 2 | |
2267 fi | |
2268 done | |
2269 done | |
2270 | |
2271 fi | |
2272 fi | |
2273 CC=$ac_cv_prog_CC | |
2274 if test -n "$CC"; then | |
2275 echo "$as_me:$LINENO: result: $CC" >&5 | |
2276 echo "${ECHO_T}$CC" >&6 | |
2277 else | |
2278 echo "$as_me:$LINENO: result: no" >&5 | |
2279 echo "${ECHO_T}no" >&6 | |
2280 fi | |
2281 | |
2282 test -n "$CC" && break | |
2283 done | |
2284 fi | |
2285 if test -z "$CC"; then | |
2286 ac_ct_CC=$CC | |
2287 for ac_prog in cl | |
2288 do | |
2289 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2290 set dummy $ac_prog; ac_word=$2 | |
2291 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2294 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2295 else | |
2296 if test -n "$ac_ct_CC"; then | |
2297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2298 else | |
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2300 for as_dir in $PATH | |
2301 do | |
2302 IFS=$as_save_IFS | |
2303 test -z "$as_dir" && as_dir=. | |
2304 for ac_exec_ext in '' $ac_executable_extensions; do | |
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2306 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2308 break 2 | |
2309 fi | |
2310 done | |
2311 done | |
2312 | |
2313 fi | |
2314 fi | |
2315 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2316 if test -n "$ac_ct_CC"; then | |
2317 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2318 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2319 else | |
2320 echo "$as_me:$LINENO: result: no" >&5 | |
2321 echo "${ECHO_T}no" >&6 | |
2322 fi | |
2323 | |
2324 test -n "$ac_ct_CC" && break | |
2325 done | |
2326 | |
2327 CC=$ac_ct_CC | |
2328 fi | |
2329 | |
2330 fi | |
2331 | |
2332 | |
2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2334 See \`config.log' for more details." >&5 | |
2335 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2336 See \`config.log' for more details." >&2;} | |
2337 { (exit 1); exit 1; }; } | |
2338 | |
2339 # Provide some information about the compiler. | |
2340 echo "$as_me:$LINENO:" \ | |
2341 "checking for C compiler version" >&5 | |
2342 ac_compiler=`set X $ac_compile; echo $2` | |
2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2344 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2345 ac_status=$? | |
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2347 (exit $ac_status); } | |
2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2349 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2350 ac_status=$? | |
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2352 (exit $ac_status); } | |
2353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2354 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2355 ac_status=$? | |
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2357 (exit $ac_status); } | |
2358 | |
2359 cat >conftest.$ac_ext <<_ACEOF | |
2360 /* confdefs.h. */ | |
2361 _ACEOF | |
2362 cat confdefs.h >>conftest.$ac_ext | |
2363 cat >>conftest.$ac_ext <<_ACEOF | |
2364 /* end confdefs.h. */ | |
2365 | |
2366 int | |
2367 main () | |
2368 { | |
2369 | |
2370 ; | |
2371 return 0; | |
2372 } | |
2373 _ACEOF | |
2374 ac_clean_files_save=$ac_clean_files | |
2375 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2376 # Try to create an executable without -o first, disregard a.out. | |
2377 # It will help us diagnose broken compilers, and finding out an intuition | |
2378 # of exeext. | |
2379 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2380 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2381 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2382 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2383 (eval $ac_link_default) 2>&5 | |
2384 ac_status=$? | |
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2386 (exit $ac_status); }; then | |
2387 # Find the output, starting from the most likely. This scheme is | |
2388 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2389 # resort. | |
2390 | |
2391 # Be careful to initialize this variable, since it used to be cached. | |
2392 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2393 ac_cv_exeext= | |
2394 # b.out is created by i960 compilers. | |
2395 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2396 do | |
2397 test -f "$ac_file" || continue | |
2398 case $ac_file in | |
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2400 ;; | |
2401 conftest.$ac_ext ) | |
2402 # This is the source file. | |
2403 ;; | |
2404 [ab].out ) | |
2405 # We found the default executable, but exeext='' is most | |
2406 # certainly right. | |
2407 break;; | |
2408 *.* ) | |
2409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2410 # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2411 # but it would be cool to find out if it's true. Does anybody | |
2412 # maintain Libtool? --akim. | |
2413 export ac_cv_exeext | |
2414 break;; | |
2415 * ) | |
2416 break;; | |
2417 esac | |
2418 done | |
2419 else | |
2420 echo "$as_me: failed program was:" >&5 | |
2421 sed 's/^/| /' conftest.$ac_ext >&5 | |
2422 | |
2423 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2424 See \`config.log' for more details." >&5 | |
2425 echo "$as_me: error: C compiler cannot create executables | |
2426 See \`config.log' for more details." >&2;} | |
2427 { (exit 77); exit 77; }; } | |
2428 fi | |
2429 | |
2430 ac_exeext=$ac_cv_exeext | |
2431 echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2432 echo "${ECHO_T}$ac_file" >&6 | |
2433 | |
2434 # Check the compiler produces executables we can run. If not, either | |
2435 # the compiler is broken, or we cross compile. | |
2436 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2437 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2438 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2439 # If not cross compiling, check that we can run a simple program. | |
2440 if test "$cross_compiling" != yes; then | |
2441 if { ac_try='./$ac_file' | |
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2443 (eval $ac_try) 2>&5 | |
2444 ac_status=$? | |
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2446 (exit $ac_status); }; }; then | |
2447 cross_compiling=no | |
2448 else | |
2449 if test "$cross_compiling" = maybe; then | |
2450 cross_compiling=yes | |
2451 else | |
2452 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2453 If you meant to cross compile, use \`--host'. | |
2454 See \`config.log' for more details." >&5 | |
2455 echo "$as_me: error: cannot run C compiled programs. | |
2456 If you meant to cross compile, use \`--host'. | |
2457 See \`config.log' for more details." >&2;} | |
2458 { (exit 1); exit 1; }; } | |
2459 fi | |
2460 fi | |
2461 fi | |
2462 echo "$as_me:$LINENO: result: yes" >&5 | |
2463 echo "${ECHO_T}yes" >&6 | |
2464 | |
2465 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2466 ac_clean_files=$ac_clean_files_save | |
2467 # Check the compiler produces executables we can run. If not, either | |
2468 # the compiler is broken, or we cross compile. | |
2469 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2470 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2471 echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2472 echo "${ECHO_T}$cross_compiling" >&6 | |
2473 | |
2474 echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2475 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2477 (eval $ac_link) 2>&5 | |
2478 ac_status=$? | |
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2480 (exit $ac_status); }; then | |
2481 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2482 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2483 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2484 # `rm'. | |
2485 for ac_file in conftest.exe conftest conftest.*; do | |
2486 test -f "$ac_file" || continue | |
2487 case $ac_file in | |
2488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2490 export ac_cv_exeext | |
2491 break;; | |
2492 * ) break;; | |
2493 esac | |
2494 done | |
2495 else | |
2496 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2497 See \`config.log' for more details." >&5 | |
2498 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2499 See \`config.log' for more details." >&2;} | |
2500 { (exit 1); exit 1; }; } | |
2501 fi | |
2502 | |
2503 rm -f conftest$ac_cv_exeext | |
2504 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2505 echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2506 | |
2507 rm -f conftest.$ac_ext | |
2508 EXEEXT=$ac_cv_exeext | |
2509 ac_exeext=$EXEEXT | |
2510 echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2511 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2512 if test "${ac_cv_objext+set}" = set; then | |
2513 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2514 else | |
2515 cat >conftest.$ac_ext <<_ACEOF | |
2516 /* confdefs.h. */ | |
2517 _ACEOF | |
2518 cat confdefs.h >>conftest.$ac_ext | |
2519 cat >>conftest.$ac_ext <<_ACEOF | |
2520 /* end confdefs.h. */ | |
2521 | |
2522 int | |
2523 main () | |
2524 { | |
2525 | |
2526 ; | |
2527 return 0; | |
2528 } | |
2529 _ACEOF | |
2530 rm -f conftest.o conftest.obj | |
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2532 (eval $ac_compile) 2>&5 | |
2533 ac_status=$? | |
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2535 (exit $ac_status); }; then | |
2536 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2537 case $ac_file in | |
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2540 break;; | |
2541 esac | |
2542 done | |
2543 else | |
2544 echo "$as_me: failed program was:" >&5 | |
2545 sed 's/^/| /' conftest.$ac_ext >&5 | |
2546 | |
2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2548 See \`config.log' for more details." >&5 | |
2549 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2550 See \`config.log' for more details." >&2;} | |
2551 { (exit 1); exit 1; }; } | |
2552 fi | |
2553 | |
2554 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2555 fi | |
2556 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2557 echo "${ECHO_T}$ac_cv_objext" >&6 | |
2558 OBJEXT=$ac_cv_objext | |
2559 ac_objext=$OBJEXT | |
2560 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2561 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2562 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2563 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2564 else | |
2565 cat >conftest.$ac_ext <<_ACEOF | |
2566 /* confdefs.h. */ | |
2567 _ACEOF | |
2568 cat confdefs.h >>conftest.$ac_ext | |
2569 cat >>conftest.$ac_ext <<_ACEOF | |
2570 /* end confdefs.h. */ | |
2571 | |
2572 int | |
2573 main () | |
2574 { | |
2575 #ifndef __GNUC__ | |
2576 choke me | |
2577 #endif | |
2578 | |
2579 ; | |
2580 return 0; | |
2581 } | |
2582 _ACEOF | |
2583 rm -f conftest.$ac_objext | |
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2585 (eval $ac_compile) 2>conftest.er1 | |
2586 ac_status=$? | |
2587 grep -v '^ *+' conftest.er1 >conftest.err | |
2588 rm -f conftest.er1 | |
2589 cat conftest.err >&5 | |
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2591 (exit $ac_status); } && | |
2592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2594 (eval $ac_try) 2>&5 | |
2595 ac_status=$? | |
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2597 (exit $ac_status); }; } && | |
2598 { ac_try='test -s conftest.$ac_objext' | |
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2600 (eval $ac_try) 2>&5 | |
2601 ac_status=$? | |
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2603 (exit $ac_status); }; }; then | |
2604 ac_compiler_gnu=yes | |
2605 else | |
2606 echo "$as_me: failed program was:" >&5 | |
2607 sed 's/^/| /' conftest.$ac_ext >&5 | |
2608 | |
2609 ac_compiler_gnu=no | |
2610 fi | |
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2612 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2613 | |
2614 fi | |
2615 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2616 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2617 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2618 ac_test_CFLAGS=${CFLAGS+set} | |
2619 ac_save_CFLAGS=$CFLAGS | |
2620 CFLAGS="-g" | |
2621 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2622 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2623 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2624 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2625 else | |
2626 cat >conftest.$ac_ext <<_ACEOF | |
2627 /* confdefs.h. */ | |
2628 _ACEOF | |
2629 cat confdefs.h >>conftest.$ac_ext | |
2630 cat >>conftest.$ac_ext <<_ACEOF | |
2631 /* end confdefs.h. */ | |
2632 | |
2633 int | |
2634 main () | |
2635 { | |
2636 | |
2637 ; | |
2638 return 0; | |
2639 } | |
2640 _ACEOF | |
2641 rm -f conftest.$ac_objext | |
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2643 (eval $ac_compile) 2>conftest.er1 | |
2644 ac_status=$? | |
2645 grep -v '^ *+' conftest.er1 >conftest.err | |
2646 rm -f conftest.er1 | |
2647 cat conftest.err >&5 | |
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2649 (exit $ac_status); } && | |
2650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2652 (eval $ac_try) 2>&5 | |
2653 ac_status=$? | |
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2655 (exit $ac_status); }; } && | |
2656 { ac_try='test -s conftest.$ac_objext' | |
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2658 (eval $ac_try) 2>&5 | |
2659 ac_status=$? | |
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2661 (exit $ac_status); }; }; then | |
2662 ac_cv_prog_cc_g=yes | |
2663 else | |
2664 echo "$as_me: failed program was:" >&5 | |
2665 sed 's/^/| /' conftest.$ac_ext >&5 | |
2666 | |
2667 ac_cv_prog_cc_g=no | |
2668 fi | |
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2670 fi | |
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2672 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2673 if test "$ac_test_CFLAGS" = set; then | |
2674 CFLAGS=$ac_save_CFLAGS | |
2675 elif test $ac_cv_prog_cc_g = yes; then | |
2676 if test "$GCC" = yes; then | |
2677 CFLAGS="-g -O2" | |
2678 else | |
2679 CFLAGS="-g" | |
2680 fi | |
2681 else | |
2682 if test "$GCC" = yes; then | |
2683 CFLAGS="-O2" | |
2684 else | |
2685 CFLAGS= | |
2686 fi | |
2687 fi | |
2688 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2689 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2690 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2691 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2692 else | |
2693 ac_cv_prog_cc_stdc=no | |
2694 ac_save_CC=$CC | |
2695 cat >conftest.$ac_ext <<_ACEOF | |
2696 /* confdefs.h. */ | |
2697 _ACEOF | |
2698 cat confdefs.h >>conftest.$ac_ext | |
2699 cat >>conftest.$ac_ext <<_ACEOF | |
2700 /* end confdefs.h. */ | |
2701 #include <stdarg.h> | |
2702 #include <stdio.h> | |
2703 #include <sys/types.h> | |
2704 #include <sys/stat.h> | |
2705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2706 struct buf { int x; }; | |
2707 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2708 static char *e (p, i) | |
2709 char **p; | |
2710 int i; | |
2711 { | |
2712 return p[i]; | |
2713 } | |
2714 static char *f (char * (*g) (char **, int), char **p, ...) | |
2715 { | |
2716 char *s; | |
2717 va_list v; | |
2718 va_start (v,p); | |
2719 s = g (p, va_arg (v,int)); | |
2720 va_end (v); | |
2721 return s; | |
2722 } | |
2723 | |
2724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2725 function prototypes and stuff, but not '\xHH' hex character constants. | |
2726 These don't provoke an error unfortunately, instead are silently treated | |
2727 as 'x'. The following induces an error, until -std1 is added to get | |
2728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2729 array size at least. It's necessary to write '\x00'==0 to get something | |
2730 that's true only with -std1. */ | |
2731 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2732 | |
2733 int test (int i, double x); | |
2734 struct s1 {int (*f) (int a);}; | |
2735 struct s2 {int (*f) (double a);}; | |
2736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2737 int argc; | |
2738 char **argv; | |
2739 int | |
2740 main () | |
2741 { | |
2742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2743 ; | |
2744 return 0; | |
2745 } | |
2746 _ACEOF | |
2747 # Don't try gcc -ansi; that turns off useful extensions and | |
2748 # breaks some systems' header files. | |
2749 # AIX -qlanglvl=ansi | |
2750 # Ultrix and OSF/1 -std1 | |
2751 # HP-UX 10.20 and later -Ae | |
2752 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2753 # SVR4 -Xc -D__EXTENSIONS__ | |
2754 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2755 do | |
2756 CC="$ac_save_CC $ac_arg" | |
2757 rm -f conftest.$ac_objext | |
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2759 (eval $ac_compile) 2>conftest.er1 | |
2760 ac_status=$? | |
2761 grep -v '^ *+' conftest.er1 >conftest.err | |
2762 rm -f conftest.er1 | |
2763 cat conftest.err >&5 | |
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2765 (exit $ac_status); } && | |
2766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2768 (eval $ac_try) 2>&5 | |
2769 ac_status=$? | |
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2771 (exit $ac_status); }; } && | |
2772 { ac_try='test -s conftest.$ac_objext' | |
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2774 (eval $ac_try) 2>&5 | |
2775 ac_status=$? | |
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2777 (exit $ac_status); }; }; then | |
2778 ac_cv_prog_cc_stdc=$ac_arg | |
2779 break | |
2780 else | |
2781 echo "$as_me: failed program was:" >&5 | |
2782 sed 's/^/| /' conftest.$ac_ext >&5 | |
2783 | |
2784 fi | |
2785 rm -f conftest.err conftest.$ac_objext | |
2786 done | |
2787 rm -f conftest.$ac_ext conftest.$ac_objext | |
2788 CC=$ac_save_CC | |
2789 | |
2790 fi | |
2791 | |
2792 case "x$ac_cv_prog_cc_stdc" in | |
2793 x|xno) | |
2794 echo "$as_me:$LINENO: result: none needed" >&5 | |
2795 echo "${ECHO_T}none needed" >&6 ;; | |
2796 *) | |
2797 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2798 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2799 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2800 esac | |
2801 | |
2802 # Some people use a C++ compiler to compile C. Since we use `exit', | |
2803 # in C++ we need to declare it. In case someone uses the same compiler | |
2804 # for both compiling C and C++ we need to have the C++ compiler decide | |
2805 # the declaration of exit, since it's the most demanding environment. | |
2806 cat >conftest.$ac_ext <<_ACEOF | |
2807 #ifndef __cplusplus | |
2808 choke me | |
2809 #endif | |
2810 _ACEOF | |
2811 rm -f conftest.$ac_objext | |
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2813 (eval $ac_compile) 2>conftest.er1 | |
2814 ac_status=$? | |
2815 grep -v '^ *+' conftest.er1 >conftest.err | |
2816 rm -f conftest.er1 | |
2817 cat conftest.err >&5 | |
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2819 (exit $ac_status); } && | |
2820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2822 (eval $ac_try) 2>&5 | |
2823 ac_status=$? | |
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2825 (exit $ac_status); }; } && | |
2826 { ac_try='test -s conftest.$ac_objext' | |
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2828 (eval $ac_try) 2>&5 | |
2829 ac_status=$? | |
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2831 (exit $ac_status); }; }; then | |
2832 for ac_declaration in \ | |
2833 '' \ | |
2834 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2835 'extern "C" void std::exit (int); using std::exit;' \ | |
2836 'extern "C" void exit (int) throw ();' \ | |
2837 'extern "C" void exit (int);' \ | |
2838 'void exit (int);' | |
2839 do | |
2840 cat >conftest.$ac_ext <<_ACEOF | |
2841 /* confdefs.h. */ | |
2842 _ACEOF | |
2843 cat confdefs.h >>conftest.$ac_ext | |
2844 cat >>conftest.$ac_ext <<_ACEOF | |
2845 /* end confdefs.h. */ | |
2846 $ac_declaration | |
2847 #include <stdlib.h> | |
2848 int | |
2849 main () | |
2850 { | |
2851 exit (42); | |
2852 ; | |
2853 return 0; | |
2854 } | |
2855 _ACEOF | |
2856 rm -f conftest.$ac_objext | |
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2858 (eval $ac_compile) 2>conftest.er1 | |
2859 ac_status=$? | |
2860 grep -v '^ *+' conftest.er1 >conftest.err | |
2861 rm -f conftest.er1 | |
2862 cat conftest.err >&5 | |
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2864 (exit $ac_status); } && | |
2865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2867 (eval $ac_try) 2>&5 | |
2868 ac_status=$? | |
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2870 (exit $ac_status); }; } && | |
2871 { ac_try='test -s conftest.$ac_objext' | |
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2873 (eval $ac_try) 2>&5 | |
2874 ac_status=$? | |
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2876 (exit $ac_status); }; }; then | |
2877 : | |
2878 else | |
2879 echo "$as_me: failed program was:" >&5 | |
2880 sed 's/^/| /' conftest.$ac_ext >&5 | |
2881 | |
2882 continue | |
2883 fi | |
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2885 cat >conftest.$ac_ext <<_ACEOF | |
2886 /* confdefs.h. */ | |
2887 _ACEOF | |
2888 cat confdefs.h >>conftest.$ac_ext | |
2889 cat >>conftest.$ac_ext <<_ACEOF | |
2890 /* end confdefs.h. */ | |
2891 $ac_declaration | |
2892 int | |
2893 main () | |
2894 { | |
2895 exit (42); | |
2896 ; | |
2897 return 0; | |
2898 } | |
2899 _ACEOF | |
2900 rm -f conftest.$ac_objext | |
2901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2902 (eval $ac_compile) 2>conftest.er1 | |
2903 ac_status=$? | |
2904 grep -v '^ *+' conftest.er1 >conftest.err | |
2905 rm -f conftest.er1 | |
2906 cat conftest.err >&5 | |
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2908 (exit $ac_status); } && | |
2909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2911 (eval $ac_try) 2>&5 | |
2912 ac_status=$? | |
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2914 (exit $ac_status); }; } && | |
2915 { ac_try='test -s conftest.$ac_objext' | |
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2917 (eval $ac_try) 2>&5 | |
2918 ac_status=$? | |
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2920 (exit $ac_status); }; }; then | |
2921 break | |
2922 else | |
2923 echo "$as_me: failed program was:" >&5 | |
2924 sed 's/^/| /' conftest.$ac_ext >&5 | |
2925 | |
2926 fi | |
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2928 done | |
2929 rm -f conftest* | |
2930 if test -n "$ac_declaration"; then | |
2931 echo '#ifdef __cplusplus' >>confdefs.h | |
2932 echo $ac_declaration >>confdefs.h | |
2933 echo '#endif' >>confdefs.h | |
2934 fi | |
2935 | |
2936 else | |
2937 echo "$as_me: failed program was:" >&5 | |
2938 sed 's/^/| /' conftest.$ac_ext >&5 | |
2939 | |
2940 fi | |
2941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2942 ac_ext=c | |
2943 ac_cpp='$CPP $CPPFLAGS' | |
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2947 DEPDIR="${am__leading_dot}deps" | |
2948 | |
2949 ac_config_commands="$ac_config_commands depfiles" | |
2950 | |
2951 | |
2952 am_make=${MAKE-make} | |
2953 cat > confinc << 'END' | |
2954 am__doit: | |
2955 @echo done | |
2956 .PHONY: am__doit | |
2957 END | |
2958 # If we don't find an include directive, just comment out the code. | |
2959 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2960 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2961 am__include="#" | |
2962 am__quote= | |
2963 _am_result=none | |
2964 # First try GNU make style include. | |
2965 echo "include confinc" > confmf | |
2966 # We grep out `Entering directory' and `Leaving directory' | |
2967 # messages which can occur if `w' ends up in MAKEFLAGS. | |
2968 # In particular we don't look at `^make:' because GNU make might | |
2969 # be invoked under some other name (usually "gmake"), in which | |
2970 # case it prints its new name instead of `make'. | |
2971 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2972 am__include=include | |
2973 am__quote= | |
2974 _am_result=GNU | |
2975 fi | |
2976 # Now try BSD make style include. | |
2977 if test "$am__include" = "#"; then | |
2978 echo '.include "confinc"' > confmf | |
2979 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2980 am__include=.include | |
2981 am__quote="\"" | |
2982 _am_result=BSD | |
2983 fi | |
2984 fi | |
2985 | |
2986 | |
2987 echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2988 echo "${ECHO_T}$_am_result" >&6 | |
2989 rm -f confinc confmf | |
2990 | |
2991 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2992 if test "${enable_dependency_tracking+set}" = set; then | |
2993 enableval="$enable_dependency_tracking" | |
2994 | |
2995 fi; | |
2996 if test "x$enable_dependency_tracking" != xno; then | |
2997 am_depcomp="$ac_aux_dir/depcomp" | |
2998 AMDEPBACKSLASH='\' | |
2999 fi | |
3000 | |
3001 | |
3002 if test "x$enable_dependency_tracking" != xno; then | |
3003 AMDEP_TRUE= | |
3004 AMDEP_FALSE='#' | |
3005 else | |
3006 AMDEP_TRUE='#' | |
3007 AMDEP_FALSE= | |
3008 fi | |
3009 | |
3010 | |
3011 | |
3012 | |
3013 depcc="$CC" am_compiler_list= | |
3014 | |
3015 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3016 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3017 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3018 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3019 else | |
3020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3021 # We make a subdir and do the tests there. Otherwise we can end up | |
3022 # making bogus files that we don't know about and never remove. For | |
3023 # instance it was reported that on HP-UX the gcc test will end up | |
3024 # making a dummy file named `D' -- because `-MD' means `put the output | |
3025 # in D'. | |
3026 mkdir conftest.dir | |
3027 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3028 # using a relative directory. | |
3029 cp "$am_depcomp" conftest.dir | |
3030 cd conftest.dir | |
3031 # We will build objects and dependencies in a subdirectory because | |
3032 # it helps to detect inapplicable dependency modes. For instance | |
3033 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3034 # side effect of compilation, but ICC will put the dependencies in | |
3035 # the current directory while Tru64 will put them in the object | |
3036 # directory. | |
3037 mkdir sub | |
3038 | |
3039 am_cv_CC_dependencies_compiler_type=none | |
3040 if test "$am_compiler_list" = ""; then | |
3041 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3042 fi | |
3043 for depmode in $am_compiler_list; do | |
3044 # Setup a source with many dependencies, because some compilers | |
3045 # like to wrap large dependency lists on column 80 (with \), and | |
3046 # we should not choose a depcomp mode which is confused by this. | |
3047 # | |
3048 # We need to recreate these files for each test, as the compiler may | |
3049 # overwrite some of them when testing with obscure command lines. | |
3050 # This happens at least with the AIX C compiler. | |
3051 : > sub/conftest.c | |
3052 for i in 1 2 3 4 5 6; do | |
3053 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3054 : > sub/conftst$i.h | |
3055 done | |
3056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3057 | |
3058 case $depmode in | |
3059 nosideeffect) | |
3060 # after this tag, mechanisms are not by side-effect, so they'll | |
3061 # only be used when explicitly requested | |
3062 if test "x$enable_dependency_tracking" = xyes; then | |
3063 continue | |
3064 else | |
3065 break | |
3066 fi | |
3067 ;; | |
3068 none) break ;; | |
3069 esac | |
3070 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3071 # mode. It turns out that the SunPro C++ compiler does not properly | |
3072 # handle `-M -o', and we need to detect this. | |
3073 if depmode=$depmode \ | |
3074 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3076 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3077 >/dev/null 2>conftest.err && | |
3078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3079 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3081 # icc doesn't choke on unknown options, it will just issue warnings | |
3082 # (even with -Werror). So we grep stderr for any message | |
3083 # that says an option was ignored. | |
3084 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | |
3085 am_cv_CC_dependencies_compiler_type=$depmode | |
3086 break | |
3087 fi | |
3088 fi | |
3089 done | |
3090 | |
3091 cd .. | |
3092 rm -rf conftest.dir | |
3093 else | |
3094 am_cv_CC_dependencies_compiler_type=none | |
3095 fi | |
3096 | |
3097 fi | |
3098 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3099 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3101 | |
3102 | |
3103 | |
3104 if | |
3105 test "x$enable_dependency_tracking" != xno \ | |
3106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3107 am__fastdepCC_TRUE= | |
3108 am__fastdepCC_FALSE='#' | |
3109 else | |
3110 am__fastdepCC_TRUE='#' | |
3111 am__fastdepCC_FALSE= | |
3112 fi | |
3113 | |
3114 | |
3115 # By default we simply use the C compiler to build assembly code. | |
3116 | |
3117 test "${CCAS+set}" = set || CCAS=$CC | |
3118 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
3119 | |
3120 | |
3121 | |
3122 | |
3123 if test "$GCC" = yes | |
3124 then | |
3125 case "$host" in | |
3126 *-*-mingw*) | |
3127 case "$build" in | |
3128 *-*-cygwin*) | |
3129 CPPFLAGS="$CPPFLAGS -mno-cygwin" | |
3130 LDFLAGS="$LDFLAGS -mno-cygwin" | |
3131 ;; | |
3132 esac | |
3133 esac | |
3134 | |
3135 fi | |
3136 | |
3137 | |
3138 # Check whether --enable-shared or --disable-shared was given. | |
3139 if test "${enable_shared+set}" = set; then | |
3140 enableval="$enable_shared" | |
3141 p=${PACKAGE-default} | |
3142 case $enableval in | |
3143 yes) enable_shared=yes ;; | |
3144 no) enable_shared=no ;; | |
3145 *) | |
3146 enable_shared=no | |
3147 # Look at the argument we got. We use all the common list separators. | |
3148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3149 for pkg in $enableval; do | |
3150 IFS="$lt_save_ifs" | |
3151 if test "X$pkg" = "X$p"; then | |
3152 enable_shared=yes | |
3153 fi | |
3154 done | |
3155 IFS="$lt_save_ifs" | |
3156 ;; | |
3157 esac | |
3158 else | |
3159 enable_shared=yes | |
3160 fi; | |
3161 | |
3162 # Check whether --enable-static or --disable-static was given. | |
3163 if test "${enable_static+set}" = set; then | |
3164 enableval="$enable_static" | |
3165 p=${PACKAGE-default} | |
3166 case $enableval in | |
3167 yes) enable_static=yes ;; | |
3168 no) enable_static=no ;; | |
3169 *) | |
3170 enable_static=no | |
3171 # Look at the argument we got. We use all the common list separators. | |
3172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3173 for pkg in $enableval; do | |
3174 IFS="$lt_save_ifs" | |
3175 if test "X$pkg" = "X$p"; then | |
3176 enable_static=yes | |
3177 fi | |
3178 done | |
3179 IFS="$lt_save_ifs" | |
3180 ;; | |
3181 esac | |
3182 else | |
3183 enable_static=yes | |
3184 fi; | |
3185 | |
3186 # Check whether --enable-fast-install or --disable-fast-install was given. | |
3187 if test "${enable_fast_install+set}" = set; then | |
3188 enableval="$enable_fast_install" | |
3189 p=${PACKAGE-default} | |
3190 case $enableval in | |
3191 yes) enable_fast_install=yes ;; | |
3192 no) enable_fast_install=no ;; | |
3193 *) | |
3194 enable_fast_install=no | |
3195 # Look at the argument we got. We use all the common list separators. | |
3196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3197 for pkg in $enableval; do | |
3198 IFS="$lt_save_ifs" | |
3199 if test "X$pkg" = "X$p"; then | |
3200 enable_fast_install=yes | |
3201 fi | |
3202 done | |
3203 IFS="$lt_save_ifs" | |
3204 ;; | |
3205 esac | |
3206 else | |
3207 enable_fast_install=yes | |
3208 fi; | |
3209 | |
3210 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3211 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
3212 if test "${lt_cv_path_SED+set}" = set; then | |
3213 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3214 else | |
3215 # Loop through the user's path and test for sed and gsed. | |
3216 # Then use that list of sed's as ones to test for truncation. | |
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3218 for as_dir in $PATH | |
3219 do | |
3220 IFS=$as_save_IFS | |
3221 test -z "$as_dir" && as_dir=. | |
3222 for lt_ac_prog in sed gsed; do | |
3223 for ac_exec_ext in '' $ac_executable_extensions; do | |
3224 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
3225 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
3226 fi | |
3227 done | |
3228 done | |
3229 done | |
3230 lt_ac_max=0 | |
3231 lt_ac_count=0 | |
3232 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3233 # along with /bin/sed that truncates output. | |
3234 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3235 test ! -f $lt_ac_sed && break | |
3236 cat /dev/null > conftest.in | |
3237 lt_ac_count=0 | |
3238 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3239 # Check for GNU sed and select it if it is found. | |
3240 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3241 lt_cv_path_SED=$lt_ac_sed | |
3242 break | |
3243 fi | |
3244 while true; do | |
3245 cat conftest.in conftest.in >conftest.tmp | |
3246 mv conftest.tmp conftest.in | |
3247 cp conftest.in conftest.nl | |
3248 echo >>conftest.nl | |
3249 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3250 cmp -s conftest.out conftest.nl || break | |
3251 # 10000 chars as input seems more than enough | |
3252 test $lt_ac_count -gt 10 && break | |
3253 lt_ac_count=`expr $lt_ac_count + 1` | |
3254 if test $lt_ac_count -gt $lt_ac_max; then | |
3255 lt_ac_max=$lt_ac_count | |
3256 lt_cv_path_SED=$lt_ac_sed | |
3257 fi | |
3258 done | |
3259 done | |
3260 SED=$lt_cv_path_SED | |
3261 | |
3262 fi | |
3263 | |
3264 echo "$as_me:$LINENO: result: $SED" >&5 | |
3265 echo "${ECHO_T}$SED" >&6 | |
3266 | |
3267 echo "$as_me:$LINENO: checking for egrep" >&5 | |
3268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3269 if test "${ac_cv_prog_egrep+set}" = set; then | |
3270 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3271 else | |
3272 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3273 then ac_cv_prog_egrep='grep -E' | |
3274 else ac_cv_prog_egrep='egrep' | |
3275 fi | |
3276 fi | |
3277 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3278 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3279 EGREP=$ac_cv_prog_egrep | |
3280 | |
3281 | |
3282 | |
3283 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3284 if test "${with_gnu_ld+set}" = set; then | |
3285 withval="$with_gnu_ld" | |
3286 test "$withval" = no || with_gnu_ld=yes | |
3287 else | |
3288 with_gnu_ld=no | |
3289 fi; | |
3290 ac_prog=ld | |
3291 if test "$GCC" = yes; then | |
3292 # Check if gcc -print-prog-name=ld gives a path. | |
3293 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
3294 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
3295 case $host in | |
3296 *-*-mingw*) | |
3297 # gcc leaves a trailing carriage return which upsets mingw | |
3298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3299 *) | |
3300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3301 esac | |
3302 case $ac_prog in | |
3303 # Accept absolute paths. | |
3304 [\\/]* | ?:[\\/]*) | |
3305 re_direlt='/[^/][^/]*/\.\./' | |
3306 # Canonicalize the pathname of ld | |
3307 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
3308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3309 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
3310 done | |
3311 test -z "$LD" && LD="$ac_prog" | |
3312 ;; | |
3313 "") | |
3314 # If it fails, then pretend we aren't using GCC. | |
3315 ac_prog=ld | |
3316 ;; | |
3317 *) | |
3318 # If it is relative, then search for the first ld in PATH. | |
3319 with_gnu_ld=unknown | |
3320 ;; | |
3321 esac | |
3322 elif test "$with_gnu_ld" = yes; then | |
3323 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3324 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3325 else | |
3326 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3327 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3328 fi | |
3329 if test "${lt_cv_path_LD+set}" = set; then | |
3330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3331 else | |
3332 if test -z "$LD"; then | |
3333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3334 for ac_dir in $PATH; do | |
3335 IFS="$lt_save_ifs" | |
3336 test -z "$ac_dir" && ac_dir=. | |
3337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3338 lt_cv_path_LD="$ac_dir/$ac_prog" | |
3339 # Check to see if the program is GNU ld. I'd rather use --version, | |
3340 # but apparently some GNU ld's only accept -v. | |
3341 # Break only if it was the GNU/non-GNU ld that we prefer. | |
3342 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3343 *GNU* | *'with BFD'*) | |
3344 test "$with_gnu_ld" != no && break | |
3345 ;; | |
3346 *) | |
3347 test "$with_gnu_ld" != yes && break | |
3348 ;; | |
3349 esac | |
3350 fi | |
3351 done | |
3352 IFS="$lt_save_ifs" | |
3353 else | |
3354 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3355 fi | |
3356 fi | |
3357 | |
3358 LD="$lt_cv_path_LD" | |
3359 if test -n "$LD"; then | |
3360 echo "$as_me:$LINENO: result: $LD" >&5 | |
3361 echo "${ECHO_T}$LD" >&6 | |
3362 else | |
3363 echo "$as_me:$LINENO: result: no" >&5 | |
3364 echo "${ECHO_T}no" >&6 | |
3365 fi | |
3366 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3367 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3368 { (exit 1); exit 1; }; } | |
3369 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3370 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3371 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3372 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3373 else | |
3374 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3375 case `$LD -v 2>&1 </dev/null` in | |
3376 *GNU* | *'with BFD'*) | |
3377 lt_cv_prog_gnu_ld=yes | |
3378 ;; | |
3379 *) | |
3380 lt_cv_prog_gnu_ld=no | |
3381 ;; | |
3382 esac | |
3383 fi | |
3384 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3385 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3386 with_gnu_ld=$lt_cv_prog_gnu_ld | |
3387 | |
3388 | |
3389 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3390 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3391 if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3392 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3393 else | |
3394 lt_cv_ld_reload_flag='-r' | |
3395 fi | |
3396 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3397 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3398 reload_flag=$lt_cv_ld_reload_flag | |
3399 case $reload_flag in | |
3400 "" | " "*) ;; | |
3401 *) reload_flag=" $reload_flag" ;; | |
3402 esac | |
3403 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3404 | |
3405 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3406 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3407 if test "${lt_cv_path_NM+set}" = set; then | |
3408 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3409 else | |
3410 if test -n "$NM"; then | |
3411 # Let the user override the test. | |
3412 lt_cv_path_NM="$NM" | |
3413 else | |
3414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3415 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3416 IFS="$lt_save_ifs" | |
3417 test -z "$ac_dir" && ac_dir=. | |
3418 tmp_nm="$ac_dir/${ac_tool_prefix}nm" | |
3419 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3420 # Check to see if the nm accepts a BSD-compat flag. | |
3421 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3422 # nm: unknown option "B" ignored | |
3423 # Tru64's nm complains that /dev/null is an invalid object file | |
3424 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3425 */dev/null* | *'Invalid file or object type'*) | |
3426 lt_cv_path_NM="$tmp_nm -B" | |
3427 break | |
3428 ;; | |
3429 *) | |
3430 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3431 */dev/null*) | |
3432 lt_cv_path_NM="$tmp_nm -p" | |
3433 break | |
3434 ;; | |
3435 *) | |
3436 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3437 continue # so that we can try to find one that supports BSD flags | |
3438 ;; | |
3439 esac | |
3440 esac | |
3441 fi | |
3442 done | |
3443 IFS="$lt_save_ifs" | |
3444 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3445 fi | |
3446 fi | |
3447 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
3448 echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
3449 NM="$lt_cv_path_NM" | |
3450 | |
3451 echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3452 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3453 LN_S=$as_ln_s | |
3454 if test "$LN_S" = "ln -s"; then | |
3455 echo "$as_me:$LINENO: result: yes" >&5 | |
3456 echo "${ECHO_T}yes" >&6 | |
3457 else | |
3458 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3459 echo "${ECHO_T}no, using $LN_S" >&6 | |
3460 fi | |
3461 | |
3462 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
3463 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | |
3464 if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3465 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3466 else | |
3467 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3468 lt_cv_file_magic_test_file= | |
3469 lt_cv_deplibs_check_method='unknown' | |
3470 # Need to set the preceding variable on all platforms that support | |
3471 # interlibrary dependencies. | |
3472 # 'none' -- dependencies not supported. | |
3473 # `unknown' -- same as none, but documents that we really don't know. | |
3474 # 'pass_all' -- all dependencies passed with no checks. | |
3475 # 'test_compile' -- check by making test program. | |
3476 # 'file_magic [[regex]]' -- check by looking for files in library path | |
3477 # which responds to the $file_magic_cmd with a given extended regex. | |
3478 # If you have `file' or equivalent on your system and you're not sure | |
3479 # whether `pass_all' will *always* work, you probably want this one. | |
3480 | |
3481 case $host_os in | |
3482 aix4* | aix5*) | |
3483 lt_cv_deplibs_check_method=pass_all | |
3484 ;; | |
3485 | |
3486 beos*) | |
3487 lt_cv_deplibs_check_method=pass_all | |
3488 ;; | |
3489 | |
3490 bsdi4*) | |
3491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3492 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3493 lt_cv_file_magic_test_file=/shlib/libc.so | |
3494 ;; | |
3495 | |
3496 cygwin*) | |
3497 # win32_libid is a shell function defined in ltmain.sh | |
3498 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3499 lt_cv_file_magic_cmd='win32_libid' | |
3500 ;; | |
3501 | |
3502 mingw* | pw32*) | |
3503 # Base MSYS/MinGW do not provide the 'file' command needed by | |
3504 # win32_libid shell function, so use a weaker test based on 'objdump'. | |
3505 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3506 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3507 ;; | |
3508 | |
3509 darwin* | rhapsody*) | |
3510 lt_cv_deplibs_check_method=pass_all | |
3511 ;; | |
3512 | |
3513 freebsd* | kfreebsd*-gnu) | |
3514 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3515 case $host_cpu in | |
3516 i*86 ) | |
3517 # Not sure whether the presence of OpenBSD here was a mistake. | |
3518 # Let's accept both of them until this is cleared up. | |
3519 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3520 lt_cv_file_magic_cmd=/usr/bin/file | |
3521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3522 ;; | |
3523 esac | |
3524 else | |
3525 lt_cv_deplibs_check_method=pass_all | |
3526 fi | |
3527 ;; | |
3528 | |
3529 gnu*) | |
3530 lt_cv_deplibs_check_method=pass_all | |
3531 ;; | |
3532 | |
3533 hpux10.20* | hpux11*) | |
3534 lt_cv_file_magic_cmd=/usr/bin/file | |
3535 case "$host_cpu" in | |
3536 ia64*) | |
3537 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3538 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3539 ;; | |
3540 hppa*64*) | |
3541 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]' | |
3542 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3543 ;; | |
3544 *) | |
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3546 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3547 ;; | |
3548 esac | |
3549 ;; | |
3550 | |
3551 irix5* | irix6* | nonstopux*) | |
3552 case $LD in | |
3553 *-32|*"-32 ") libmagic=32-bit;; | |
3554 *-n32|*"-n32 ") libmagic=N32;; | |
3555 *-64|*"-64 ") libmagic=64-bit;; | |
3556 *) libmagic=never-match;; | |
3557 esac | |
3558 lt_cv_deplibs_check_method=pass_all | |
3559 ;; | |
3560 | |
3561 # This must be Linux ELF. | |
3562 linux*) | |
3563 lt_cv_deplibs_check_method=pass_all | |
3564 ;; | |
3565 | |
3566 netbsd* | knetbsd*-gnu) | |
3567 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
3569 else | |
3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
3571 fi | |
3572 ;; | |
3573 | |
3574 newos6*) | |
3575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3576 lt_cv_file_magic_cmd=/usr/bin/file | |
3577 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3578 ;; | |
3579 | |
3580 nto-qnx*) | |
3581 lt_cv_deplibs_check_method=unknown | |
3582 ;; | |
3583 | |
3584 openbsd*) | |
3585 lt_cv_file_magic_cmd=/usr/bin/file | |
3586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
3589 else | |
3590 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | |
3591 fi | |
3592 ;; | |
3593 | |
3594 osf3* | osf4* | osf5*) | |
3595 lt_cv_deplibs_check_method=pass_all | |
3596 ;; | |
3597 | |
3598 sco3.2v5*) | |
3599 lt_cv_deplibs_check_method=pass_all | |
3600 ;; | |
3601 | |
3602 solaris*) | |
3603 lt_cv_deplibs_check_method=pass_all | |
3604 ;; | |
3605 | |
3606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3607 case $host_vendor in | |
3608 motorola) | |
3609 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]' | |
3610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3611 ;; | |
3612 ncr) | |
3613 lt_cv_deplibs_check_method=pass_all | |
3614 ;; | |
3615 sequent) | |
3616 lt_cv_file_magic_cmd='/bin/file' | |
3617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
3618 ;; | |
3619 sni) | |
3620 lt_cv_file_magic_cmd='/bin/file' | |
3621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
3622 lt_cv_file_magic_test_file=/lib/libc.so | |
3623 ;; | |
3624 siemens) | |
3625 lt_cv_deplibs_check_method=pass_all | |
3626 ;; | |
3627 esac | |
3628 ;; | |
3629 | |
3630 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | |
3631 lt_cv_deplibs_check_method=pass_all | |
3632 ;; | |
3633 esac | |
3634 | |
3635 fi | |
3636 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3637 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3638 file_magic_cmd=$lt_cv_file_magic_cmd | |
3639 deplibs_check_method=$lt_cv_deplibs_check_method | |
3640 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
3641 | |
3642 | |
3643 | |
3644 | |
3645 # If no C compiler was specified, use CC. | |
3646 LTCC=${LTCC-"$CC"} | |
3647 | |
3648 # Allow CC to be a program name with arguments. | |
3649 compiler=$CC | |
3650 | |
3651 | |
3652 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3653 if test "${enable_libtool_lock+set}" = set; then | |
3654 enableval="$enable_libtool_lock" | |
3655 | |
3656 fi; | |
3657 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
3658 | |
3659 # Some flags need to be propagated to the compiler or linker for good | |
3660 # libtool support. | |
3661 case $host in | |
3662 ia64-*-hpux*) | |
3663 # Find out which ABI we are using. | |
3664 echo 'int i;' > conftest.$ac_ext | |
3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3666 (eval $ac_compile) 2>&5 | |
3667 ac_status=$? | |
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3669 (exit $ac_status); }; then | |
3670 case `/usr/bin/file conftest.$ac_objext` in | |
3671 *ELF-32*) | |
3672 HPUX_IA64_MODE="32" | |
3673 ;; | |
3674 *ELF-64*) | |
3675 HPUX_IA64_MODE="64" | |
3676 ;; | |
3677 esac | |
3678 fi | |
3679 rm -rf conftest* | |
3680 ;; | |
3681 *-*-irix6*) | |
3682 # Find out which ABI we are using. | |
3683 echo '#line 3683 "configure"' > conftest.$ac_ext | |
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3685 (eval $ac_compile) 2>&5 | |
3686 ac_status=$? | |
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3688 (exit $ac_status); }; then | |
3689 if test "$lt_cv_prog_gnu_ld" = yes; then | |
3690 case `/usr/bin/file conftest.$ac_objext` in | |
3691 *32-bit*) | |
3692 LD="${LD-ld} -melf32bsmip" | |
3693 ;; | |
3694 *N32*) | |
3695 LD="${LD-ld} -melf32bmipn32" | |
3696 ;; | |
3697 *64-bit*) | |
3698 LD="${LD-ld} -melf64bmip" | |
3699 ;; | |
3700 esac | |
3701 else | |
3702 case `/usr/bin/file conftest.$ac_objext` in | |
3703 *32-bit*) | |
3704 LD="${LD-ld} -32" | |
3705 ;; | |
3706 *N32*) | |
3707 LD="${LD-ld} -n32" | |
3708 ;; | |
3709 *64-bit*) | |
3710 LD="${LD-ld} -64" | |
3711 ;; | |
3712 esac | |
3713 fi | |
3714 fi | |
3715 rm -rf conftest* | |
3716 ;; | |
3717 | |
3718 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
3719 # Find out which ABI we are using. | |
3720 echo 'int i;' > conftest.$ac_ext | |
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3722 (eval $ac_compile) 2>&5 | |
3723 ac_status=$? | |
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3725 (exit $ac_status); }; then | |
3726 case "`/usr/bin/file conftest.o`" in | |
3727 *32-bit*) | |
3728 case $host in | |
3729 x86_64-*linux*) | |
3730 LD="${LD-ld} -m elf_i386" | |
3731 ;; | |
3732 ppc64-*linux*|powerpc64-*linux*) | |
3733 LD="${LD-ld} -m elf32ppclinux" | |
3734 ;; | |
3735 s390x-*linux*) | |
3736 LD="${LD-ld} -m elf_s390" | |
3737 ;; | |
3738 sparc64-*linux*) | |
3739 LD="${LD-ld} -m elf32_sparc" | |
3740 ;; | |
3741 esac | |
3742 ;; | |
3743 *64-bit*) | |
3744 case $host in | |
3745 x86_64-*linux*) | |
3746 LD="${LD-ld} -m elf_x86_64" | |
3747 ;; | |
3748 ppc*-*linux*|powerpc*-*linux*) | |
3749 LD="${LD-ld} -m elf64ppc" | |
3750 ;; | |
3751 s390*-*linux*) | |
3752 LD="${LD-ld} -m elf64_s390" | |
3753 ;; | |
3754 sparc*-*linux*) | |
3755 LD="${LD-ld} -m elf64_sparc" | |
3756 ;; | |
3757 esac | |
3758 ;; | |
3759 esac | |
3760 fi | |
3761 rm -rf conftest* | |
3762 ;; | |
3763 | |
3764 *-*-sco3.2v5*) | |
3765 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3766 SAVE_CFLAGS="$CFLAGS" | |
3767 CFLAGS="$CFLAGS -belf" | |
3768 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
3769 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3770 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3771 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3772 else | |
3773 ac_ext=c | |
3774 ac_cpp='$CPP $CPPFLAGS' | |
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3778 | |
3779 cat >conftest.$ac_ext <<_ACEOF | |
3780 /* confdefs.h. */ | |
3781 _ACEOF | |
3782 cat confdefs.h >>conftest.$ac_ext | |
3783 cat >>conftest.$ac_ext <<_ACEOF | |
3784 /* end confdefs.h. */ | |
3785 | |
3786 int | |
3787 main () | |
3788 { | |
3789 | |
3790 ; | |
3791 return 0; | |
3792 } | |
3793 _ACEOF | |
3794 rm -f conftest.$ac_objext conftest$ac_exeext | |
3795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3796 (eval $ac_link) 2>conftest.er1 | |
3797 ac_status=$? | |
3798 grep -v '^ *+' conftest.er1 >conftest.err | |
3799 rm -f conftest.er1 | |
3800 cat conftest.err >&5 | |
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3802 (exit $ac_status); } && | |
3803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3805 (eval $ac_try) 2>&5 | |
3806 ac_status=$? | |
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3808 (exit $ac_status); }; } && | |
3809 { ac_try='test -s conftest$ac_exeext' | |
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3811 (eval $ac_try) 2>&5 | |
3812 ac_status=$? | |
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3814 (exit $ac_status); }; }; then | |
3815 lt_cv_cc_needs_belf=yes | |
3816 else | |
3817 echo "$as_me: failed program was:" >&5 | |
3818 sed 's/^/| /' conftest.$ac_ext >&5 | |
3819 | |
3820 lt_cv_cc_needs_belf=no | |
3821 fi | |
3822 rm -f conftest.err conftest.$ac_objext \ | |
3823 conftest$ac_exeext conftest.$ac_ext | |
3824 ac_ext=c | |
3825 ac_cpp='$CPP $CPPFLAGS' | |
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3829 | |
3830 fi | |
3831 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
3832 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
3833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
3834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3835 CFLAGS="$SAVE_CFLAGS" | |
3836 fi | |
3837 ;; | |
3838 | |
3839 esac | |
3840 | |
3841 need_locks="$enable_libtool_lock" | |
3842 | |
3843 | |
3844 ac_ext=c | |
3845 ac_cpp='$CPP $CPPFLAGS' | |
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3849 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3850 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3851 # On Suns, sometimes $CPP names a directory. | |
3852 if test -n "$CPP" && test -d "$CPP"; then | |
3853 CPP= | |
3854 fi | |
3855 if test -z "$CPP"; then | |
3856 if test "${ac_cv_prog_CPP+set}" = set; then | |
3857 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3858 else | |
3859 # Double quotes because CPP needs to be expanded | |
3860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3861 do | |
3862 ac_preproc_ok=false | |
3863 for ac_c_preproc_warn_flag in '' yes | |
3864 do | |
3865 # Use a header file that comes with gcc, so configuring glibc | |
3866 # with a fresh cross-compiler works. | |
3867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3868 # <limits.h> exists even on freestanding compilers. | |
3869 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3870 # not just through cpp. "Syntax error" is here to catch this case. | |
3871 cat >conftest.$ac_ext <<_ACEOF | |
3872 /* confdefs.h. */ | |
3873 _ACEOF | |
3874 cat confdefs.h >>conftest.$ac_ext | |
3875 cat >>conftest.$ac_ext <<_ACEOF | |
3876 /* end confdefs.h. */ | |
3877 #ifdef __STDC__ | |
3878 # include <limits.h> | |
3879 #else | |
3880 # include <assert.h> | |
3881 #endif | |
3882 Syntax error | |
3883 _ACEOF | |
3884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3886 ac_status=$? | |
3887 grep -v '^ *+' conftest.er1 >conftest.err | |
3888 rm -f conftest.er1 | |
3889 cat conftest.err >&5 | |
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3891 (exit $ac_status); } >/dev/null; then | |
3892 if test -s conftest.err; then | |
3893 ac_cpp_err=$ac_c_preproc_warn_flag | |
3894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3895 else | |
3896 ac_cpp_err= | |
3897 fi | |
3898 else | |
3899 ac_cpp_err=yes | |
3900 fi | |
3901 if test -z "$ac_cpp_err"; then | |
3902 : | |
3903 else | |
3904 echo "$as_me: failed program was:" >&5 | |
3905 sed 's/^/| /' conftest.$ac_ext >&5 | |
3906 | |
3907 # Broken: fails on valid input. | |
3908 continue | |
3909 fi | |
3910 rm -f conftest.err conftest.$ac_ext | |
3911 | |
3912 # OK, works on sane cases. Now check whether non-existent headers | |
3913 # can be detected and how. | |
3914 cat >conftest.$ac_ext <<_ACEOF | |
3915 /* confdefs.h. */ | |
3916 _ACEOF | |
3917 cat confdefs.h >>conftest.$ac_ext | |
3918 cat >>conftest.$ac_ext <<_ACEOF | |
3919 /* end confdefs.h. */ | |
3920 #include <ac_nonexistent.h> | |
3921 _ACEOF | |
3922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3924 ac_status=$? | |
3925 grep -v '^ *+' conftest.er1 >conftest.err | |
3926 rm -f conftest.er1 | |
3927 cat conftest.err >&5 | |
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3929 (exit $ac_status); } >/dev/null; then | |
3930 if test -s conftest.err; then | |
3931 ac_cpp_err=$ac_c_preproc_warn_flag | |
3932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3933 else | |
3934 ac_cpp_err= | |
3935 fi | |
3936 else | |
3937 ac_cpp_err=yes | |
3938 fi | |
3939 if test -z "$ac_cpp_err"; then | |
3940 # Broken: success on invalid input. | |
3941 continue | |
3942 else | |
3943 echo "$as_me: failed program was:" >&5 | |
3944 sed 's/^/| /' conftest.$ac_ext >&5 | |
3945 | |
3946 # Passes both tests. | |
3947 ac_preproc_ok=: | |
3948 break | |
3949 fi | |
3950 rm -f conftest.err conftest.$ac_ext | |
3951 | |
3952 done | |
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3954 rm -f conftest.err conftest.$ac_ext | |
3955 if $ac_preproc_ok; then | |
3956 break | |
3957 fi | |
3958 | |
3959 done | |
3960 ac_cv_prog_CPP=$CPP | |
3961 | |
3962 fi | |
3963 CPP=$ac_cv_prog_CPP | |
3964 else | |
3965 ac_cv_prog_CPP=$CPP | |
3966 fi | |
3967 echo "$as_me:$LINENO: result: $CPP" >&5 | |
3968 echo "${ECHO_T}$CPP" >&6 | |
3969 ac_preproc_ok=false | |
3970 for ac_c_preproc_warn_flag in '' yes | |
3971 do | |
3972 # Use a header file that comes with gcc, so configuring glibc | |
3973 # with a fresh cross-compiler works. | |
3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3975 # <limits.h> exists even on freestanding compilers. | |
3976 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3977 # not just through cpp. "Syntax error" is here to catch this case. | |
3978 cat >conftest.$ac_ext <<_ACEOF | |
3979 /* confdefs.h. */ | |
3980 _ACEOF | |
3981 cat confdefs.h >>conftest.$ac_ext | |
3982 cat >>conftest.$ac_ext <<_ACEOF | |
3983 /* end confdefs.h. */ | |
3984 #ifdef __STDC__ | |
3985 # include <limits.h> | |
3986 #else | |
3987 # include <assert.h> | |
3988 #endif | |
3989 Syntax error | |
3990 _ACEOF | |
3991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3993 ac_status=$? | |
3994 grep -v '^ *+' conftest.er1 >conftest.err | |
3995 rm -f conftest.er1 | |
3996 cat conftest.err >&5 | |
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3998 (exit $ac_status); } >/dev/null; then | |
3999 if test -s conftest.err; then | |
4000 ac_cpp_err=$ac_c_preproc_warn_flag | |
4001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4002 else | |
4003 ac_cpp_err= | |
4004 fi | |
4005 else | |
4006 ac_cpp_err=yes | |
4007 fi | |
4008 if test -z "$ac_cpp_err"; then | |
4009 : | |
4010 else | |
4011 echo "$as_me: failed program was:" >&5 | |
4012 sed 's/^/| /' conftest.$ac_ext >&5 | |
4013 | |
4014 # Broken: fails on valid input. | |
4015 continue | |
4016 fi | |
4017 rm -f conftest.err conftest.$ac_ext | |
4018 | |
4019 # OK, works on sane cases. Now check whether non-existent headers | |
4020 # can be detected and how. | |
4021 cat >conftest.$ac_ext <<_ACEOF | |
4022 /* confdefs.h. */ | |
4023 _ACEOF | |
4024 cat confdefs.h >>conftest.$ac_ext | |
4025 cat >>conftest.$ac_ext <<_ACEOF | |
4026 /* end confdefs.h. */ | |
4027 #include <ac_nonexistent.h> | |
4028 _ACEOF | |
4029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4031 ac_status=$? | |
4032 grep -v '^ *+' conftest.er1 >conftest.err | |
4033 rm -f conftest.er1 | |
4034 cat conftest.err >&5 | |
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4036 (exit $ac_status); } >/dev/null; then | |
4037 if test -s conftest.err; then | |
4038 ac_cpp_err=$ac_c_preproc_warn_flag | |
4039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4040 else | |
4041 ac_cpp_err= | |
4042 fi | |
4043 else | |
4044 ac_cpp_err=yes | |
4045 fi | |
4046 if test -z "$ac_cpp_err"; then | |
4047 # Broken: success on invalid input. | |
4048 continue | |
4049 else | |
4050 echo "$as_me: failed program was:" >&5 | |
4051 sed 's/^/| /' conftest.$ac_ext >&5 | |
4052 | |
4053 # Passes both tests. | |
4054 ac_preproc_ok=: | |
4055 break | |
4056 fi | |
4057 rm -f conftest.err conftest.$ac_ext | |
4058 | |
4059 done | |
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4061 rm -f conftest.err conftest.$ac_ext | |
4062 if $ac_preproc_ok; then | |
4063 : | |
4064 else | |
4065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4066 See \`config.log' for more details." >&5 | |
4067 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4068 See \`config.log' for more details." >&2;} | |
4069 { (exit 1); exit 1; }; } | |
4070 fi | |
4071 | |
4072 ac_ext=c | |
4073 ac_cpp='$CPP $CPPFLAGS' | |
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4077 | |
4078 | |
4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4081 if test "${ac_cv_header_stdc+set}" = set; then | |
4082 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4083 else | |
4084 cat >conftest.$ac_ext <<_ACEOF | |
4085 /* confdefs.h. */ | |
4086 _ACEOF | |
4087 cat confdefs.h >>conftest.$ac_ext | |
4088 cat >>conftest.$ac_ext <<_ACEOF | |
4089 /* end confdefs.h. */ | |
4090 #include <stdlib.h> | |
4091 #include <stdarg.h> | |
4092 #include <string.h> | |
4093 #include <float.h> | |
4094 | |
4095 int | |
4096 main () | |
4097 { | |
4098 | |
4099 ; | |
4100 return 0; | |
4101 } | |
4102 _ACEOF | |
4103 rm -f conftest.$ac_objext | |
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4105 (eval $ac_compile) 2>conftest.er1 | |
4106 ac_status=$? | |
4107 grep -v '^ *+' conftest.er1 >conftest.err | |
4108 rm -f conftest.er1 | |
4109 cat conftest.err >&5 | |
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4111 (exit $ac_status); } && | |
4112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4114 (eval $ac_try) 2>&5 | |
4115 ac_status=$? | |
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4117 (exit $ac_status); }; } && | |
4118 { ac_try='test -s conftest.$ac_objext' | |
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4120 (eval $ac_try) 2>&5 | |
4121 ac_status=$? | |
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4123 (exit $ac_status); }; }; then | |
4124 ac_cv_header_stdc=yes | |
4125 else | |
4126 echo "$as_me: failed program was:" >&5 | |
4127 sed 's/^/| /' conftest.$ac_ext >&5 | |
4128 | |
4129 ac_cv_header_stdc=no | |
4130 fi | |
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4132 | |
4133 if test $ac_cv_header_stdc = yes; then | |
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4135 cat >conftest.$ac_ext <<_ACEOF | |
4136 /* confdefs.h. */ | |
4137 _ACEOF | |
4138 cat confdefs.h >>conftest.$ac_ext | |
4139 cat >>conftest.$ac_ext <<_ACEOF | |
4140 /* end confdefs.h. */ | |
4141 #include <string.h> | |
4142 | |
4143 _ACEOF | |
4144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4145 $EGREP "memchr" >/dev/null 2>&1; then | |
4146 : | |
4147 else | |
4148 ac_cv_header_stdc=no | |
4149 fi | |
4150 rm -f conftest* | |
4151 | |
4152 fi | |
4153 | |
4154 if test $ac_cv_header_stdc = yes; then | |
4155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4156 cat >conftest.$ac_ext <<_ACEOF | |
4157 /* confdefs.h. */ | |
4158 _ACEOF | |
4159 cat confdefs.h >>conftest.$ac_ext | |
4160 cat >>conftest.$ac_ext <<_ACEOF | |
4161 /* end confdefs.h. */ | |
4162 #include <stdlib.h> | |
4163 | |
4164 _ACEOF | |
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4166 $EGREP "free" >/dev/null 2>&1; then | |
4167 : | |
4168 else | |
4169 ac_cv_header_stdc=no | |
4170 fi | |
4171 rm -f conftest* | |
4172 | |
4173 fi | |
4174 | |
4175 if test $ac_cv_header_stdc = yes; then | |
4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4177 if test "$cross_compiling" = yes; then | |
4178 : | |
4179 else | |
4180 cat >conftest.$ac_ext <<_ACEOF | |
4181 /* confdefs.h. */ | |
4182 _ACEOF | |
4183 cat confdefs.h >>conftest.$ac_ext | |
4184 cat >>conftest.$ac_ext <<_ACEOF | |
4185 /* end confdefs.h. */ | |
4186 #include <ctype.h> | |
4187 #if ((' ' & 0x0FF) == 0x020) | |
4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4190 #else | |
4191 # define ISLOWER(c) \ | |
4192 (('a' <= (c) && (c) <= 'i') \ | |
4193 || ('j' <= (c) && (c) <= 'r') \ | |
4194 || ('s' <= (c) && (c) <= 'z')) | |
4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4196 #endif | |
4197 | |
4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4199 int | |
4200 main () | |
4201 { | |
4202 int i; | |
4203 for (i = 0; i < 256; i++) | |
4204 if (XOR (islower (i), ISLOWER (i)) | |
4205 || toupper (i) != TOUPPER (i)) | |
4206 exit(2); | |
4207 exit (0); | |
4208 } | |
4209 _ACEOF | |
4210 rm -f conftest$ac_exeext | |
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4212 (eval $ac_link) 2>&5 | |
4213 ac_status=$? | |
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4217 (eval $ac_try) 2>&5 | |
4218 ac_status=$? | |
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4220 (exit $ac_status); }; }; then | |
4221 : | |
4222 else | |
4223 echo "$as_me: program exited with status $ac_status" >&5 | |
4224 echo "$as_me: failed program was:" >&5 | |
4225 sed 's/^/| /' conftest.$ac_ext >&5 | |
4226 | |
4227 ( exit $ac_status ) | |
4228 ac_cv_header_stdc=no | |
4229 fi | |
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4231 fi | |
4232 fi | |
4233 fi | |
4234 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4235 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4236 if test $ac_cv_header_stdc = yes; then | |
4237 | |
4238 cat >>confdefs.h <<\_ACEOF | |
4239 #define STDC_HEADERS 1 | |
4240 _ACEOF | |
4241 | |
4242 fi | |
4243 | |
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4245 | |
4246 | |
4247 | |
4248 | |
4249 | |
4250 | |
4251 | |
4252 | |
4253 | |
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4255 inttypes.h stdint.h unistd.h | |
4256 do | |
4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4258 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4261 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4262 else | |
4263 cat >conftest.$ac_ext <<_ACEOF | |
4264 /* confdefs.h. */ | |
4265 _ACEOF | |
4266 cat confdefs.h >>conftest.$ac_ext | |
4267 cat >>conftest.$ac_ext <<_ACEOF | |
4268 /* end confdefs.h. */ | |
4269 $ac_includes_default | |
4270 | |
4271 #include <$ac_header> | |
4272 _ACEOF | |
4273 rm -f conftest.$ac_objext | |
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4275 (eval $ac_compile) 2>conftest.er1 | |
4276 ac_status=$? | |
4277 grep -v '^ *+' conftest.er1 >conftest.err | |
4278 rm -f conftest.er1 | |
4279 cat conftest.err >&5 | |
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4281 (exit $ac_status); } && | |
4282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4284 (eval $ac_try) 2>&5 | |
4285 ac_status=$? | |
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4287 (exit $ac_status); }; } && | |
4288 { ac_try='test -s conftest.$ac_objext' | |
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4290 (eval $ac_try) 2>&5 | |
4291 ac_status=$? | |
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4293 (exit $ac_status); }; }; then | |
4294 eval "$as_ac_Header=yes" | |
4295 else | |
4296 echo "$as_me: failed program was:" >&5 | |
4297 sed 's/^/| /' conftest.$ac_ext >&5 | |
4298 | |
4299 eval "$as_ac_Header=no" | |
4300 fi | |
4301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4302 fi | |
4303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4305 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4306 cat >>confdefs.h <<_ACEOF | |
4307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4308 _ACEOF | |
4309 | |
4310 fi | |
4311 | |
4312 done | |
4313 | |
4314 | |
4315 | |
4316 for ac_header in dlfcn.h | |
4317 do | |
4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4319 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4320 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4323 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4324 fi | |
4325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4327 else | |
4328 # Is the header compilable? | |
4329 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4331 cat >conftest.$ac_ext <<_ACEOF | |
4332 /* confdefs.h. */ | |
4333 _ACEOF | |
4334 cat confdefs.h >>conftest.$ac_ext | |
4335 cat >>conftest.$ac_ext <<_ACEOF | |
4336 /* end confdefs.h. */ | |
4337 $ac_includes_default | |
4338 #include <$ac_header> | |
4339 _ACEOF | |
4340 rm -f conftest.$ac_objext | |
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4342 (eval $ac_compile) 2>conftest.er1 | |
4343 ac_status=$? | |
4344 grep -v '^ *+' conftest.er1 >conftest.err | |
4345 rm -f conftest.er1 | |
4346 cat conftest.err >&5 | |
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4348 (exit $ac_status); } && | |
4349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4351 (eval $ac_try) 2>&5 | |
4352 ac_status=$? | |
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4354 (exit $ac_status); }; } && | |
4355 { ac_try='test -s conftest.$ac_objext' | |
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4357 (eval $ac_try) 2>&5 | |
4358 ac_status=$? | |
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4360 (exit $ac_status); }; }; then | |
4361 ac_header_compiler=yes | |
4362 else | |
4363 echo "$as_me: failed program was:" >&5 | |
4364 sed 's/^/| /' conftest.$ac_ext >&5 | |
4365 | |
4366 ac_header_compiler=no | |
4367 fi | |
4368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4370 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4371 | |
4372 # Is the header present? | |
4373 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4375 cat >conftest.$ac_ext <<_ACEOF | |
4376 /* confdefs.h. */ | |
4377 _ACEOF | |
4378 cat confdefs.h >>conftest.$ac_ext | |
4379 cat >>conftest.$ac_ext <<_ACEOF | |
4380 /* end confdefs.h. */ | |
4381 #include <$ac_header> | |
4382 _ACEOF | |
4383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4385 ac_status=$? | |
4386 grep -v '^ *+' conftest.er1 >conftest.err | |
4387 rm -f conftest.er1 | |
4388 cat conftest.err >&5 | |
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4390 (exit $ac_status); } >/dev/null; then | |
4391 if test -s conftest.err; then | |
4392 ac_cpp_err=$ac_c_preproc_warn_flag | |
4393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4394 else | |
4395 ac_cpp_err= | |
4396 fi | |
4397 else | |
4398 ac_cpp_err=yes | |
4399 fi | |
4400 if test -z "$ac_cpp_err"; then | |
4401 ac_header_preproc=yes | |
4402 else | |
4403 echo "$as_me: failed program was:" >&5 | |
4404 sed 's/^/| /' conftest.$ac_ext >&5 | |
4405 | |
4406 ac_header_preproc=no | |
4407 fi | |
4408 rm -f conftest.err conftest.$ac_ext | |
4409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4410 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4411 | |
4412 # So? What about this header? | |
4413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4414 yes:no: ) | |
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4419 ac_header_preproc=yes | |
4420 ;; | |
4421 no:yes:* ) | |
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4434 ( | |
4435 cat <<\_ASBOX | |
4436 ## ----------------------------------- ## | |
4437 ## Report this to support@underbit.com ## | |
4438 ## ----------------------------------- ## | |
4439 _ASBOX | |
4440 ) | | |
4441 sed "s/^/$as_me: WARNING: /" >&2 | |
4442 ;; | |
4443 esac | |
4444 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4446 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4447 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4448 else | |
4449 eval "$as_ac_Header=\$ac_header_preproc" | |
4450 fi | |
4451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4453 | |
4454 fi | |
4455 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4456 cat >>confdefs.h <<_ACEOF | |
4457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4458 _ACEOF | |
4459 | |
4460 fi | |
4461 | |
4462 done | |
4463 | |
4464 ac_ext=cc | |
4465 ac_cpp='$CXXCPP $CPPFLAGS' | |
4466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4469 if test -n "$ac_tool_prefix"; then | |
4470 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4471 do | |
4472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4476 if test "${ac_cv_prog_CXX+set}" = set; then | |
4477 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4478 else | |
4479 if test -n "$CXX"; then | |
4480 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4481 else | |
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4483 for as_dir in $PATH | |
4484 do | |
4485 IFS=$as_save_IFS | |
4486 test -z "$as_dir" && as_dir=. | |
4487 for ac_exec_ext in '' $ac_executable_extensions; do | |
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4489 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4491 break 2 | |
4492 fi | |
4493 done | |
4494 done | |
4495 | |
4496 fi | |
4497 fi | |
4498 CXX=$ac_cv_prog_CXX | |
4499 if test -n "$CXX"; then | |
4500 echo "$as_me:$LINENO: result: $CXX" >&5 | |
4501 echo "${ECHO_T}$CXX" >&6 | |
4502 else | |
4503 echo "$as_me:$LINENO: result: no" >&5 | |
4504 echo "${ECHO_T}no" >&6 | |
4505 fi | |
4506 | |
4507 test -n "$CXX" && break | |
4508 done | |
4509 fi | |
4510 if test -z "$CXX"; then | |
4511 ac_ct_CXX=$CXX | |
4512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
4513 do | |
4514 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4515 set dummy $ac_prog; ac_word=$2 | |
4516 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
4519 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4520 else | |
4521 if test -n "$ac_ct_CXX"; then | |
4522 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4523 else | |
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4525 for as_dir in $PATH | |
4526 do | |
4527 IFS=$as_save_IFS | |
4528 test -z "$as_dir" && as_dir=. | |
4529 for ac_exec_ext in '' $ac_executable_extensions; do | |
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4531 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4533 break 2 | |
4534 fi | |
4535 done | |
4536 done | |
4537 | |
4538 fi | |
4539 fi | |
4540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4541 if test -n "$ac_ct_CXX"; then | |
4542 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
4543 echo "${ECHO_T}$ac_ct_CXX" >&6 | |
4544 else | |
4545 echo "$as_me:$LINENO: result: no" >&5 | |
4546 echo "${ECHO_T}no" >&6 | |
4547 fi | |
4548 | |
4549 test -n "$ac_ct_CXX" && break | |
4550 done | |
4551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
4552 | |
4553 CXX=$ac_ct_CXX | |
4554 fi | |
4555 | |
4556 | |
4557 # Provide some information about the compiler. | |
4558 echo "$as_me:$LINENO:" \ | |
4559 "checking for C++ compiler version" >&5 | |
4560 ac_compiler=`set X $ac_compile; echo $2` | |
4561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4562 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4563 ac_status=$? | |
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4565 (exit $ac_status); } | |
4566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4567 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4568 ac_status=$? | |
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4570 (exit $ac_status); } | |
4571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4572 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4573 ac_status=$? | |
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4575 (exit $ac_status); } | |
4576 | |
4577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
4578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
4579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
4580 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4581 else | |
4582 cat >conftest.$ac_ext <<_ACEOF | |
4583 /* confdefs.h. */ | |
4584 _ACEOF | |
4585 cat confdefs.h >>conftest.$ac_ext | |
4586 cat >>conftest.$ac_ext <<_ACEOF | |
4587 /* end confdefs.h. */ | |
4588 | |
4589 int | |
4590 main () | |
4591 { | |
4592 #ifndef __GNUC__ | |
4593 choke me | |
4594 #endif | |
4595 | |
4596 ; | |
4597 return 0; | |
4598 } | |
4599 _ACEOF | |
4600 rm -f conftest.$ac_objext | |
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4602 (eval $ac_compile) 2>conftest.er1 | |
4603 ac_status=$? | |
4604 grep -v '^ *+' conftest.er1 >conftest.err | |
4605 rm -f conftest.er1 | |
4606 cat conftest.err >&5 | |
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4608 (exit $ac_status); } && | |
4609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4611 (eval $ac_try) 2>&5 | |
4612 ac_status=$? | |
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4614 (exit $ac_status); }; } && | |
4615 { ac_try='test -s conftest.$ac_objext' | |
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4617 (eval $ac_try) 2>&5 | |
4618 ac_status=$? | |
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4620 (exit $ac_status); }; }; then | |
4621 ac_compiler_gnu=yes | |
4622 else | |
4623 echo "$as_me: failed program was:" >&5 | |
4624 sed 's/^/| /' conftest.$ac_ext >&5 | |
4625 | |
4626 ac_compiler_gnu=no | |
4627 fi | |
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4630 | |
4631 fi | |
4632 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4633 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
4634 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
4635 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4636 ac_save_CXXFLAGS=$CXXFLAGS | |
4637 CXXFLAGS="-g" | |
4638 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4639 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
4640 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
4641 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4642 else | |
4643 cat >conftest.$ac_ext <<_ACEOF | |
4644 /* confdefs.h. */ | |
4645 _ACEOF | |
4646 cat confdefs.h >>conftest.$ac_ext | |
4647 cat >>conftest.$ac_ext <<_ACEOF | |
4648 /* end confdefs.h. */ | |
4649 | |
4650 int | |
4651 main () | |
4652 { | |
4653 | |
4654 ; | |
4655 return 0; | |
4656 } | |
4657 _ACEOF | |
4658 rm -f conftest.$ac_objext | |
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4660 (eval $ac_compile) 2>conftest.er1 | |
4661 ac_status=$? | |
4662 grep -v '^ *+' conftest.er1 >conftest.err | |
4663 rm -f conftest.er1 | |
4664 cat conftest.err >&5 | |
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4666 (exit $ac_status); } && | |
4667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4669 (eval $ac_try) 2>&5 | |
4670 ac_status=$? | |
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4672 (exit $ac_status); }; } && | |
4673 { ac_try='test -s conftest.$ac_objext' | |
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4675 (eval $ac_try) 2>&5 | |
4676 ac_status=$? | |
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4678 (exit $ac_status); }; }; then | |
4679 ac_cv_prog_cxx_g=yes | |
4680 else | |
4681 echo "$as_me: failed program was:" >&5 | |
4682 sed 's/^/| /' conftest.$ac_ext >&5 | |
4683 | |
4684 ac_cv_prog_cxx_g=no | |
4685 fi | |
4686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4687 fi | |
4688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
4689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
4690 if test "$ac_test_CXXFLAGS" = set; then | |
4691 CXXFLAGS=$ac_save_CXXFLAGS | |
4692 elif test $ac_cv_prog_cxx_g = yes; then | |
4693 if test "$GXX" = yes; then | |
4694 CXXFLAGS="-g -O2" | |
4695 else | |
4696 CXXFLAGS="-g" | |
4697 fi | |
4698 else | |
4699 if test "$GXX" = yes; then | |
4700 CXXFLAGS="-O2" | |
4701 else | |
4702 CXXFLAGS= | |
4703 fi | |
4704 fi | |
4705 for ac_declaration in \ | |
4706 '' \ | |
4707 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4708 'extern "C" void std::exit (int); using std::exit;' \ | |
4709 'extern "C" void exit (int) throw ();' \ | |
4710 'extern "C" void exit (int);' \ | |
4711 'void exit (int);' | |
4712 do | |
4713 cat >conftest.$ac_ext <<_ACEOF | |
4714 /* confdefs.h. */ | |
4715 _ACEOF | |
4716 cat confdefs.h >>conftest.$ac_ext | |
4717 cat >>conftest.$ac_ext <<_ACEOF | |
4718 /* end confdefs.h. */ | |
4719 $ac_declaration | |
4720 #include <stdlib.h> | |
4721 int | |
4722 main () | |
4723 { | |
4724 exit (42); | |
4725 ; | |
4726 return 0; | |
4727 } | |
4728 _ACEOF | |
4729 rm -f conftest.$ac_objext | |
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4731 (eval $ac_compile) 2>conftest.er1 | |
4732 ac_status=$? | |
4733 grep -v '^ *+' conftest.er1 >conftest.err | |
4734 rm -f conftest.er1 | |
4735 cat conftest.err >&5 | |
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4737 (exit $ac_status); } && | |
4738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4740 (eval $ac_try) 2>&5 | |
4741 ac_status=$? | |
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4743 (exit $ac_status); }; } && | |
4744 { ac_try='test -s conftest.$ac_objext' | |
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4746 (eval $ac_try) 2>&5 | |
4747 ac_status=$? | |
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4749 (exit $ac_status); }; }; then | |
4750 : | |
4751 else | |
4752 echo "$as_me: failed program was:" >&5 | |
4753 sed 's/^/| /' conftest.$ac_ext >&5 | |
4754 | |
4755 continue | |
4756 fi | |
4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4758 cat >conftest.$ac_ext <<_ACEOF | |
4759 /* confdefs.h. */ | |
4760 _ACEOF | |
4761 cat confdefs.h >>conftest.$ac_ext | |
4762 cat >>conftest.$ac_ext <<_ACEOF | |
4763 /* end confdefs.h. */ | |
4764 $ac_declaration | |
4765 int | |
4766 main () | |
4767 { | |
4768 exit (42); | |
4769 ; | |
4770 return 0; | |
4771 } | |
4772 _ACEOF | |
4773 rm -f conftest.$ac_objext | |
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4775 (eval $ac_compile) 2>conftest.er1 | |
4776 ac_status=$? | |
4777 grep -v '^ *+' conftest.er1 >conftest.err | |
4778 rm -f conftest.er1 | |
4779 cat conftest.err >&5 | |
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4781 (exit $ac_status); } && | |
4782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4784 (eval $ac_try) 2>&5 | |
4785 ac_status=$? | |
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4787 (exit $ac_status); }; } && | |
4788 { ac_try='test -s conftest.$ac_objext' | |
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4790 (eval $ac_try) 2>&5 | |
4791 ac_status=$? | |
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4793 (exit $ac_status); }; }; then | |
4794 break | |
4795 else | |
4796 echo "$as_me: failed program was:" >&5 | |
4797 sed 's/^/| /' conftest.$ac_ext >&5 | |
4798 | |
4799 fi | |
4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4801 done | |
4802 rm -f conftest* | |
4803 if test -n "$ac_declaration"; then | |
4804 echo '#ifdef __cplusplus' >>confdefs.h | |
4805 echo $ac_declaration >>confdefs.h | |
4806 echo '#endif' >>confdefs.h | |
4807 fi | |
4808 | |
4809 ac_ext=cc | |
4810 ac_cpp='$CXXCPP $CPPFLAGS' | |
4811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4814 | |
4815 depcc="$CXX" am_compiler_list= | |
4816 | |
4817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
4818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
4819 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
4820 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4821 else | |
4822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4823 # We make a subdir and do the tests there. Otherwise we can end up | |
4824 # making bogus files that we don't know about and never remove. For | |
4825 # instance it was reported that on HP-UX the gcc test will end up | |
4826 # making a dummy file named `D' -- because `-MD' means `put the output | |
4827 # in D'. | |
4828 mkdir conftest.dir | |
4829 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4830 # using a relative directory. | |
4831 cp "$am_depcomp" conftest.dir | |
4832 cd conftest.dir | |
4833 # We will build objects and dependencies in a subdirectory because | |
4834 # it helps to detect inapplicable dependency modes. For instance | |
4835 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4836 # side effect of compilation, but ICC will put the dependencies in | |
4837 # the current directory while Tru64 will put them in the object | |
4838 # directory. | |
4839 mkdir sub | |
4840 | |
4841 am_cv_CXX_dependencies_compiler_type=none | |
4842 if test "$am_compiler_list" = ""; then | |
4843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4844 fi | |
4845 for depmode in $am_compiler_list; do | |
4846 # Setup a source with many dependencies, because some compilers | |
4847 # like to wrap large dependency lists on column 80 (with \), and | |
4848 # we should not choose a depcomp mode which is confused by this. | |
4849 # | |
4850 # We need to recreate these files for each test, as the compiler may | |
4851 # overwrite some of them when testing with obscure command lines. | |
4852 # This happens at least with the AIX C compiler. | |
4853 : > sub/conftest.c | |
4854 for i in 1 2 3 4 5 6; do | |
4855 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4856 : > sub/conftst$i.h | |
4857 done | |
4858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4859 | |
4860 case $depmode in | |
4861 nosideeffect) | |
4862 # after this tag, mechanisms are not by side-effect, so they'll | |
4863 # only be used when explicitly requested | |
4864 if test "x$enable_dependency_tracking" = xyes; then | |
4865 continue | |
4866 else | |
4867 break | |
4868 fi | |
4869 ;; | |
4870 none) break ;; | |
4871 esac | |
4872 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4873 # mode. It turns out that the SunPro C++ compiler does not properly | |
4874 # handle `-M -o', and we need to detect this. | |
4875 if depmode=$depmode \ | |
4876 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4878 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
4879 >/dev/null 2>conftest.err && | |
4880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4881 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4883 # icc doesn't choke on unknown options, it will just issue warnings | |
4884 # (even with -Werror). So we grep stderr for any message | |
4885 # that says an option was ignored. | |
4886 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else | |
4887 am_cv_CXX_dependencies_compiler_type=$depmode | |
4888 break | |
4889 fi | |
4890 fi | |
4891 done | |
4892 | |
4893 cd .. | |
4894 rm -rf conftest.dir | |
4895 else | |
4896 am_cv_CXX_dependencies_compiler_type=none | |
4897 fi | |
4898 | |
4899 fi | |
4900 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4901 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
4902 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4903 | |
4904 | |
4905 | |
4906 if | |
4907 test "x$enable_dependency_tracking" != xno \ | |
4908 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4909 am__fastdepCXX_TRUE= | |
4910 am__fastdepCXX_FALSE='#' | |
4911 else | |
4912 am__fastdepCXX_TRUE='#' | |
4913 am__fastdepCXX_FALSE= | |
4914 fi | |
4915 | |
4916 | |
4917 ac_ext=cc | |
4918 ac_cpp='$CXXCPP $CPPFLAGS' | |
4919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4922 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4923 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4924 if test -z "$CXXCPP"; then | |
4925 if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4926 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4927 else | |
4928 # Double quotes because CXXCPP needs to be expanded | |
4929 for CXXCPP in "$CXX -E" "/lib/cpp" | |
4930 do | |
4931 ac_preproc_ok=false | |
4932 for ac_cxx_preproc_warn_flag in '' yes | |
4933 do | |
4934 # Use a header file that comes with gcc, so configuring glibc | |
4935 # with a fresh cross-compiler works. | |
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4937 # <limits.h> exists even on freestanding compilers. | |
4938 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4939 # not just through cpp. "Syntax error" is here to catch this case. | |
4940 cat >conftest.$ac_ext <<_ACEOF | |
4941 /* confdefs.h. */ | |
4942 _ACEOF | |
4943 cat confdefs.h >>conftest.$ac_ext | |
4944 cat >>conftest.$ac_ext <<_ACEOF | |
4945 /* end confdefs.h. */ | |
4946 #ifdef __STDC__ | |
4947 # include <limits.h> | |
4948 #else | |
4949 # include <assert.h> | |
4950 #endif | |
4951 Syntax error | |
4952 _ACEOF | |
4953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4955 ac_status=$? | |
4956 grep -v '^ *+' conftest.er1 >conftest.err | |
4957 rm -f conftest.er1 | |
4958 cat conftest.err >&5 | |
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4960 (exit $ac_status); } >/dev/null; then | |
4961 if test -s conftest.err; then | |
4962 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
4964 else | |
4965 ac_cpp_err= | |
4966 fi | |
4967 else | |
4968 ac_cpp_err=yes | |
4969 fi | |
4970 if test -z "$ac_cpp_err"; then | |
4971 : | |
4972 else | |
4973 echo "$as_me: failed program was:" >&5 | |
4974 sed 's/^/| /' conftest.$ac_ext >&5 | |
4975 | |
4976 # Broken: fails on valid input. | |
4977 continue | |
4978 fi | |
4979 rm -f conftest.err conftest.$ac_ext | |
4980 | |
4981 # OK, works on sane cases. Now check whether non-existent headers | |
4982 # can be detected and how. | |
4983 cat >conftest.$ac_ext <<_ACEOF | |
4984 /* confdefs.h. */ | |
4985 _ACEOF | |
4986 cat confdefs.h >>conftest.$ac_ext | |
4987 cat >>conftest.$ac_ext <<_ACEOF | |
4988 /* end confdefs.h. */ | |
4989 #include <ac_nonexistent.h> | |
4990 _ACEOF | |
4991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4993 ac_status=$? | |
4994 grep -v '^ *+' conftest.er1 >conftest.err | |
4995 rm -f conftest.er1 | |
4996 cat conftest.err >&5 | |
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4998 (exit $ac_status); } >/dev/null; then | |
4999 if test -s conftest.err; then | |
5000 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5001 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5002 else | |
5003 ac_cpp_err= | |
5004 fi | |
5005 else | |
5006 ac_cpp_err=yes | |
5007 fi | |
5008 if test -z "$ac_cpp_err"; then | |
5009 # Broken: success on invalid input. | |
5010 continue | |
5011 else | |
5012 echo "$as_me: failed program was:" >&5 | |
5013 sed 's/^/| /' conftest.$ac_ext >&5 | |
5014 | |
5015 # Passes both tests. | |
5016 ac_preproc_ok=: | |
5017 break | |
5018 fi | |
5019 rm -f conftest.err conftest.$ac_ext | |
5020 | |
5021 done | |
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5023 rm -f conftest.err conftest.$ac_ext | |
5024 if $ac_preproc_ok; then | |
5025 break | |
5026 fi | |
5027 | |
5028 done | |
5029 ac_cv_prog_CXXCPP=$CXXCPP | |
5030 | |
5031 fi | |
5032 CXXCPP=$ac_cv_prog_CXXCPP | |
5033 else | |
5034 ac_cv_prog_CXXCPP=$CXXCPP | |
5035 fi | |
5036 echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5037 echo "${ECHO_T}$CXXCPP" >&6 | |
5038 ac_preproc_ok=false | |
5039 for ac_cxx_preproc_warn_flag in '' yes | |
5040 do | |
5041 # Use a header file that comes with gcc, so configuring glibc | |
5042 # with a fresh cross-compiler works. | |
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5044 # <limits.h> exists even on freestanding compilers. | |
5045 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5046 # not just through cpp. "Syntax error" is here to catch this case. | |
5047 cat >conftest.$ac_ext <<_ACEOF | |
5048 /* confdefs.h. */ | |
5049 _ACEOF | |
5050 cat confdefs.h >>conftest.$ac_ext | |
5051 cat >>conftest.$ac_ext <<_ACEOF | |
5052 /* end confdefs.h. */ | |
5053 #ifdef __STDC__ | |
5054 # include <limits.h> | |
5055 #else | |
5056 # include <assert.h> | |
5057 #endif | |
5058 Syntax error | |
5059 _ACEOF | |
5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5062 ac_status=$? | |
5063 grep -v '^ *+' conftest.er1 >conftest.err | |
5064 rm -f conftest.er1 | |
5065 cat conftest.err >&5 | |
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5067 (exit $ac_status); } >/dev/null; then | |
5068 if test -s conftest.err; then | |
5069 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5071 else | |
5072 ac_cpp_err= | |
5073 fi | |
5074 else | |
5075 ac_cpp_err=yes | |
5076 fi | |
5077 if test -z "$ac_cpp_err"; then | |
5078 : | |
5079 else | |
5080 echo "$as_me: failed program was:" >&5 | |
5081 sed 's/^/| /' conftest.$ac_ext >&5 | |
5082 | |
5083 # Broken: fails on valid input. | |
5084 continue | |
5085 fi | |
5086 rm -f conftest.err conftest.$ac_ext | |
5087 | |
5088 # OK, works on sane cases. Now check whether non-existent headers | |
5089 # can be detected and how. | |
5090 cat >conftest.$ac_ext <<_ACEOF | |
5091 /* confdefs.h. */ | |
5092 _ACEOF | |
5093 cat confdefs.h >>conftest.$ac_ext | |
5094 cat >>conftest.$ac_ext <<_ACEOF | |
5095 /* end confdefs.h. */ | |
5096 #include <ac_nonexistent.h> | |
5097 _ACEOF | |
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5100 ac_status=$? | |
5101 grep -v '^ *+' conftest.er1 >conftest.err | |
5102 rm -f conftest.er1 | |
5103 cat conftest.err >&5 | |
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5105 (exit $ac_status); } >/dev/null; then | |
5106 if test -s conftest.err; then | |
5107 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5109 else | |
5110 ac_cpp_err= | |
5111 fi | |
5112 else | |
5113 ac_cpp_err=yes | |
5114 fi | |
5115 if test -z "$ac_cpp_err"; then | |
5116 # Broken: success on invalid input. | |
5117 continue | |
5118 else | |
5119 echo "$as_me: failed program was:" >&5 | |
5120 sed 's/^/| /' conftest.$ac_ext >&5 | |
5121 | |
5122 # Passes both tests. | |
5123 ac_preproc_ok=: | |
5124 break | |
5125 fi | |
5126 rm -f conftest.err conftest.$ac_ext | |
5127 | |
5128 done | |
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5130 rm -f conftest.err conftest.$ac_ext | |
5131 if $ac_preproc_ok; then | |
5132 : | |
5133 else | |
5134 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5135 See \`config.log' for more details." >&5 | |
5136 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5137 See \`config.log' for more details." >&2;} | |
5138 { (exit 1); exit 1; }; } | |
5139 fi | |
5140 | |
5141 ac_ext=cc | |
5142 ac_cpp='$CXXCPP $CPPFLAGS' | |
5143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5146 | |
5147 | |
5148 ac_ext=f | |
5149 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5150 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5151 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5152 if test -n "$ac_tool_prefix"; then | |
5153 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5154 do | |
5155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5159 if test "${ac_cv_prog_F77+set}" = set; then | |
5160 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5161 else | |
5162 if test -n "$F77"; then | |
5163 ac_cv_prog_F77="$F77" # Let the user override the test. | |
5164 else | |
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5166 for as_dir in $PATH | |
5167 do | |
5168 IFS=$as_save_IFS | |
5169 test -z "$as_dir" && as_dir=. | |
5170 for ac_exec_ext in '' $ac_executable_extensions; do | |
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5172 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5174 break 2 | |
5175 fi | |
5176 done | |
5177 done | |
5178 | |
5179 fi | |
5180 fi | |
5181 F77=$ac_cv_prog_F77 | |
5182 if test -n "$F77"; then | |
5183 echo "$as_me:$LINENO: result: $F77" >&5 | |
5184 echo "${ECHO_T}$F77" >&6 | |
5185 else | |
5186 echo "$as_me:$LINENO: result: no" >&5 | |
5187 echo "${ECHO_T}no" >&6 | |
5188 fi | |
5189 | |
5190 test -n "$F77" && break | |
5191 done | |
5192 fi | |
5193 if test -z "$F77"; then | |
5194 ac_ct_F77=$F77 | |
5195 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | |
5196 do | |
5197 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5198 set dummy $ac_prog; ac_word=$2 | |
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5201 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
5202 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5203 else | |
5204 if test -n "$ac_ct_F77"; then | |
5205 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
5206 else | |
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5208 for as_dir in $PATH | |
5209 do | |
5210 IFS=$as_save_IFS | |
5211 test -z "$as_dir" && as_dir=. | |
5212 for ac_exec_ext in '' $ac_executable_extensions; do | |
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5214 ac_cv_prog_ac_ct_F77="$ac_prog" | |
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5216 break 2 | |
5217 fi | |
5218 done | |
5219 done | |
5220 | |
5221 fi | |
5222 fi | |
5223 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
5224 if test -n "$ac_ct_F77"; then | |
5225 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
5226 echo "${ECHO_T}$ac_ct_F77" >&6 | |
5227 else | |
5228 echo "$as_me:$LINENO: result: no" >&5 | |
5229 echo "${ECHO_T}no" >&6 | |
5230 fi | |
5231 | |
5232 test -n "$ac_ct_F77" && break | |
5233 done | |
5234 | |
5235 F77=$ac_ct_F77 | |
5236 fi | |
5237 | |
5238 | |
5239 # Provide some information about the compiler. | |
5240 echo "$as_me:5240:" \ | |
5241 "checking for Fortran 77 compiler version" >&5 | |
5242 ac_compiler=`set X $ac_compile; echo $2` | |
5243 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5244 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5245 ac_status=$? | |
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5247 (exit $ac_status); } | |
5248 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5249 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5250 ac_status=$? | |
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5252 (exit $ac_status); } | |
5253 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5254 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5255 ac_status=$? | |
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5257 (exit $ac_status); } | |
5258 rm -f a.out | |
5259 | |
5260 # If we don't use `.F' as extension, the preprocessor is not run on the | |
5261 # input file. (Note that this only needs to work for GNU compilers.) | |
5262 ac_save_ext=$ac_ext | |
5263 ac_ext=F | |
5264 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
5265 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
5266 if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5267 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5268 else | |
5269 cat >conftest.$ac_ext <<_ACEOF | |
5270 program main | |
5271 #ifndef __GNUC__ | |
5272 choke me | |
5273 #endif | |
5274 | |
5275 end | |
5276 _ACEOF | |
5277 rm -f conftest.$ac_objext | |
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5279 (eval $ac_compile) 2>conftest.er1 | |
5280 ac_status=$? | |
5281 grep -v '^ *+' conftest.er1 >conftest.err | |
5282 rm -f conftest.er1 | |
5283 cat conftest.err >&5 | |
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5285 (exit $ac_status); } && | |
5286 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5288 (eval $ac_try) 2>&5 | |
5289 ac_status=$? | |
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5291 (exit $ac_status); }; } && | |
5292 { ac_try='test -s conftest.$ac_objext' | |
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5294 (eval $ac_try) 2>&5 | |
5295 ac_status=$? | |
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5297 (exit $ac_status); }; }; then | |
5298 ac_compiler_gnu=yes | |
5299 else | |
5300 echo "$as_me: failed program was:" >&5 | |
5301 sed 's/^/| /' conftest.$ac_ext >&5 | |
5302 | |
5303 ac_compiler_gnu=no | |
5304 fi | |
5305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5306 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
5307 | |
5308 fi | |
5309 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
5310 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
5311 ac_ext=$ac_save_ext | |
5312 ac_test_FFLAGS=${FFLAGS+set} | |
5313 ac_save_FFLAGS=$FFLAGS | |
5314 FFLAGS= | |
5315 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
5316 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
5317 if test "${ac_cv_prog_f77_g+set}" = set; then | |
5318 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5319 else | |
5320 FFLAGS=-g | |
5321 cat >conftest.$ac_ext <<_ACEOF | |
5322 program main | |
5323 | |
5324 end | |
5325 _ACEOF | |
5326 rm -f conftest.$ac_objext | |
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5328 (eval $ac_compile) 2>conftest.er1 | |
5329 ac_status=$? | |
5330 grep -v '^ *+' conftest.er1 >conftest.err | |
5331 rm -f conftest.er1 | |
5332 cat conftest.err >&5 | |
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5334 (exit $ac_status); } && | |
5335 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5337 (eval $ac_try) 2>&5 | |
5338 ac_status=$? | |
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5340 (exit $ac_status); }; } && | |
5341 { ac_try='test -s conftest.$ac_objext' | |
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5343 (eval $ac_try) 2>&5 | |
5344 ac_status=$? | |
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5346 (exit $ac_status); }; }; then | |
5347 ac_cv_prog_f77_g=yes | |
5348 else | |
5349 echo "$as_me: failed program was:" >&5 | |
5350 sed 's/^/| /' conftest.$ac_ext >&5 | |
5351 | |
5352 ac_cv_prog_f77_g=no | |
5353 fi | |
5354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5355 | |
5356 fi | |
5357 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
5358 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
5359 if test "$ac_test_FFLAGS" = set; then | |
5360 FFLAGS=$ac_save_FFLAGS | |
5361 elif test $ac_cv_prog_f77_g = yes; then | |
5362 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5363 FFLAGS="-g -O2" | |
5364 else | |
5365 FFLAGS="-g" | |
5366 fi | |
5367 else | |
5368 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
5369 FFLAGS="-O2" | |
5370 else | |
5371 FFLAGS= | |
5372 fi | |
5373 fi | |
5374 | |
5375 G77=`test $ac_compiler_gnu = yes && echo yes` | |
5376 ac_ext=c | |
5377 ac_cpp='$CPP $CPPFLAGS' | |
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5381 | |
5382 | |
5383 | |
5384 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5385 | |
5386 # find the maximum length of command line arguments | |
5387 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5388 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5389 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5390 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5391 else | |
5392 i=0 | |
5393 testring="ABCD" | |
5394 | |
5395 case $build_os in | |
5396 msdosdjgpp*) | |
5397 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5398 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5399 # during glob expansion). Even if it were fixed, the result of this | |
5400 # check would be larger than it should be. | |
5401 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5402 ;; | |
5403 | |
5404 gnu*) | |
5405 # Under GNU Hurd, this test is not required because there is | |
5406 # no limit to the length of command line arguments. | |
5407 # Libtool will interpret -1 as no limit whatsoever | |
5408 lt_cv_sys_max_cmd_len=-1; | |
5409 ;; | |
5410 | |
5411 cygwin* | mingw*) | |
5412 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5413 # about 5 minutes as the teststring grows exponentially. | |
5414 # Worse, since 9x/ME are not pre-emptively multitasking, | |
5415 # you end up with a "frozen" computer, even though with patience | |
5416 # the test eventually succeeds (with a max line length of 256k). | |
5417 # Instead, let's just punt: use the minimum linelength reported by | |
5418 # all of the supported platforms: 8192 (on NT/2K/XP). | |
5419 lt_cv_sys_max_cmd_len=8192; | |
5420 ;; | |
5421 | |
5422 amigaos*) | |
5423 # On AmigaOS with pdksh, this test takes hours, literally. | |
5424 # So we just punt and use a minimum line length of 8192. | |
5425 lt_cv_sys_max_cmd_len=8192; | |
5426 ;; | |
5427 | |
5428 *) | |
5429 # If test is not a shell built-in, we'll probably end up computing a | |
5430 # maximum length that is only half of the actual maximum length, but | |
5431 # we can't tell. | |
5432 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
5433 = "XX$testring") >/dev/null 2>&1 && | |
5434 new_result=`expr "X$testring" : ".*" 2>&1` && | |
5435 lt_cv_sys_max_cmd_len=$new_result && | |
5436 test $i != 17 # 1/2 MB should be enough | |
5437 do | |
5438 i=`expr $i + 1` | |
5439 testring=$testring$testring | |
5440 done | |
5441 testring= | |
5442 # Add a significant safety factor because C++ compilers can tack on massive | |
5443 # amounts of additional arguments before passing them to the linker. | |
5444 # It appears as though 1/2 is a usable value. | |
5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5446 ;; | |
5447 esac | |
5448 | |
5449 fi | |
5450 | |
5451 if test -n $lt_cv_sys_max_cmd_len ; then | |
5452 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5453 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5454 else | |
5455 echo "$as_me:$LINENO: result: none" >&5 | |
5456 echo "${ECHO_T}none" >&6 | |
5457 fi | |
5458 | |
5459 | |
5460 | |
5461 | |
5462 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5463 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5464 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5465 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5466 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5467 else | |
5468 | |
5469 # These are sane defaults that work on at least a few old systems. | |
5470 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5471 | |
5472 # Character class describing NM global symbol codes. | |
5473 symcode='[BCDEGRST]' | |
5474 | |
5475 # Regexp to match symbols that can be accessed directly from C. | |
5476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5477 | |
5478 # Transform the above into a raw symbol and a C symbol. | |
5479 symxfrm='\1 \2\3 \3' | |
5480 | |
5481 # Transform an extracted symbol line into a proper C declaration | |
5482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
5483 | |
5484 # Transform an extracted symbol line into symbol name and symbol address | |
5485 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'" | |
5486 | |
5487 # Define system-specific variables. | |
5488 case $host_os in | |
5489 aix*) | |
5490 symcode='[BCDT]' | |
5491 ;; | |
5492 cygwin* | mingw* | pw32*) | |
5493 symcode='[ABCDGISTW]' | |
5494 ;; | |
5495 hpux*) # Its linker distinguishes data from code symbols | |
5496 if test "$host_cpu" = ia64; then | |
5497 symcode='[ABCDEGRST]' | |
5498 fi | |
5499 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5500 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'" | |
5501 ;; | |
5502 irix* | nonstopux*) | |
5503 symcode='[BCDEGRST]' | |
5504 ;; | |
5505 osf*) | |
5506 symcode='[BCDEGQRST]' | |
5507 ;; | |
5508 solaris* | sysv5*) | |
5509 symcode='[BDRT]' | |
5510 ;; | |
5511 sysv4) | |
5512 symcode='[DFNSTU]' | |
5513 ;; | |
5514 esac | |
5515 | |
5516 # Handle CRLF in mingw tool chain | |
5517 opt_cr= | |
5518 case $build_os in | |
5519 mingw*) | |
5520 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5521 ;; | |
5522 esac | |
5523 | |
5524 # If we're using GNU nm, then use its standard symbol codes. | |
5525 case `$NM -V 2>&1` in | |
5526 *GNU* | *'with BFD'*) | |
5527 symcode='[ABCDGIRSTW]' ;; | |
5528 esac | |
5529 | |
5530 # Try without a prefix undercore, then with it. | |
5531 for ac_symprfx in "" "_"; do | |
5532 | |
5533 # Write the raw and C identifiers. | |
5534 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
5535 | |
5536 # Check to see that the pipe works correctly. | |
5537 pipe_works=no | |
5538 | |
5539 rm -f conftest* | |
5540 cat > conftest.$ac_ext <<EOF | |
5541 #ifdef __cplusplus | |
5542 extern "C" { | |
5543 #endif | |
5544 char nm_test_var; | |
5545 void nm_test_func(){} | |
5546 #ifdef __cplusplus | |
5547 } | |
5548 #endif | |
5549 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5550 EOF | |
5551 | |
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5553 (eval $ac_compile) 2>&5 | |
5554 ac_status=$? | |
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5556 (exit $ac_status); }; then | |
5557 # Now try to grab the symbols. | |
5558 nlist=conftest.nm | |
5559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5561 ac_status=$? | |
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5563 (exit $ac_status); } && test -s "$nlist"; then | |
5564 # Try sorting and uniquifying the output. | |
5565 if sort "$nlist" | uniq > "$nlist"T; then | |
5566 mv -f "$nlist"T "$nlist" | |
5567 else | |
5568 rm -f "$nlist"T | |
5569 fi | |
5570 | |
5571 # Make sure that we snagged all the symbols we need. | |
5572 if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
5573 if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
5574 cat <<EOF > conftest.$ac_ext | |
5575 #ifdef __cplusplus | |
5576 extern "C" { | |
5577 #endif | |
5578 | |
5579 EOF | |
5580 # Now generate the symbol file. | |
5581 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
5582 | |
5583 cat <<EOF >> conftest.$ac_ext | |
5584 #if defined (__STDC__) && __STDC__ | |
5585 # define lt_ptr_t void * | |
5586 #else | |
5587 # define lt_ptr_t char * | |
5588 # define const | |
5589 #endif | |
5590 | |
5591 /* The mapping between symbol names and symbols. */ | |
5592 const struct { | |
5593 const char *name; | |
5594 lt_ptr_t address; | |
5595 } | |
5596 lt_preloaded_symbols[] = | |
5597 { | |
5598 EOF | |
5599 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
5600 cat <<\EOF >> conftest.$ac_ext | |
5601 {0, (lt_ptr_t) 0} | |
5602 }; | |
5603 | |
5604 #ifdef __cplusplus | |
5605 } | |
5606 #endif | |
5607 EOF | |
5608 # Now try linking the two files. | |
5609 mv conftest.$ac_objext conftstm.$ac_objext | |
5610 lt_save_LIBS="$LIBS" | |
5611 lt_save_CFLAGS="$CFLAGS" | |
5612 LIBS="conftstm.$ac_objext" | |
5613 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5615 (eval $ac_link) 2>&5 | |
5616 ac_status=$? | |
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5618 (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5619 pipe_works=yes | |
5620 fi | |
5621 LIBS="$lt_save_LIBS" | |
5622 CFLAGS="$lt_save_CFLAGS" | |
5623 else | |
5624 echo "cannot find nm_test_func in $nlist" >&5 | |
5625 fi | |
5626 else | |
5627 echo "cannot find nm_test_var in $nlist" >&5 | |
5628 fi | |
5629 else | |
5630 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5631 fi | |
5632 else | |
5633 echo "$progname: failed program was:" >&5 | |
5634 cat conftest.$ac_ext >&5 | |
5635 fi | |
5636 rm -f conftest* conftst* | |
5637 | |
5638 # Do not use the global_symbol_pipe unless it works. | |
5639 if test "$pipe_works" = yes; then | |
5640 break | |
5641 else | |
5642 lt_cv_sys_global_symbol_pipe= | |
5643 fi | |
5644 done | |
5645 | |
5646 fi | |
5647 | |
5648 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5649 lt_cv_sys_global_symbol_to_cdecl= | |
5650 fi | |
5651 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5652 echo "$as_me:$LINENO: result: failed" >&5 | |
5653 echo "${ECHO_T}failed" >&6 | |
5654 else | |
5655 echo "$as_me:$LINENO: result: ok" >&5 | |
5656 echo "${ECHO_T}ok" >&6 | |
5657 fi | |
5658 | |
5659 echo "$as_me:$LINENO: checking for objdir" >&5 | |
5660 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
5661 if test "${lt_cv_objdir+set}" = set; then | |
5662 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5663 else | |
5664 rm -f .libs 2>/dev/null | |
5665 mkdir .libs 2>/dev/null | |
5666 if test -d .libs; then | |
5667 lt_cv_objdir=.libs | |
5668 else | |
5669 # MS-DOS does not allow filenames that begin with a dot. | |
5670 lt_cv_objdir=_libs | |
5671 fi | |
5672 rmdir .libs 2>/dev/null | |
5673 fi | |
5674 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
5675 echo "${ECHO_T}$lt_cv_objdir" >&6 | |
5676 objdir=$lt_cv_objdir | |
5677 | |
5678 | |
5679 | |
5680 | |
5681 | |
5682 case $host_os in | |
5683 aix3*) | |
5684 # AIX sometimes has problems with the GCC collect2 program. For some | |
5685 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
5686 # vanish in a puff of smoke. | |
5687 if test "X${COLLECT_NAMES+set}" != Xset; then | |
5688 COLLECT_NAMES= | |
5689 export COLLECT_NAMES | |
5690 fi | |
5691 ;; | |
5692 esac | |
5693 | |
5694 # Sed substitution that helps us do robust quoting. It backslashifies | |
5695 # metacharacters that are still active within double-quoted strings. | |
5696 Xsed='sed -e s/^X//' | |
5697 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
5698 | |
5699 # Same as above, but do not quote variable references. | |
5700 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
5701 | |
5702 # Sed substitution to delay expansion of an escaped shell variable in a | |
5703 # double_quote_subst'ed string. | |
5704 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5705 | |
5706 # Sed substitution to avoid accidental globbing in evaled expressions | |
5707 no_glob_subst='s/\*/\\\*/g' | |
5708 | |
5709 # Constants: | |
5710 rm="rm -f" | |
5711 | |
5712 # Global variables: | |
5713 default_ofile=libtool | |
5714 can_build_shared=yes | |
5715 | |
5716 # All known linkers require a `.a' archive for static linking (except M$VC, | |
5717 # which needs '.lib'). | |
5718 libext=a | |
5719 ltmain="$ac_aux_dir/ltmain.sh" | |
5720 ofile="$default_ofile" | |
5721 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
5722 | |
5723 if test -n "$ac_tool_prefix"; then | |
5724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5725 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5728 if test "${ac_cv_prog_AR+set}" = set; then | |
5729 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5730 else | |
5731 if test -n "$AR"; then | |
5732 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5733 else | |
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5735 for as_dir in $PATH | |
5736 do | |
5737 IFS=$as_save_IFS | |
5738 test -z "$as_dir" && as_dir=. | |
5739 for ac_exec_ext in '' $ac_executable_extensions; do | |
5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5741 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5743 break 2 | |
5744 fi | |
5745 done | |
5746 done | |
5747 | |
5748 fi | |
5749 fi | |
5750 AR=$ac_cv_prog_AR | |
5751 if test -n "$AR"; then | |
5752 echo "$as_me:$LINENO: result: $AR" >&5 | |
5753 echo "${ECHO_T}$AR" >&6 | |
5754 else | |
5755 echo "$as_me:$LINENO: result: no" >&5 | |
5756 echo "${ECHO_T}no" >&6 | |
5757 fi | |
5758 | |
5759 fi | |
5760 if test -z "$ac_cv_prog_AR"; then | |
5761 ac_ct_AR=$AR | |
5762 # Extract the first word of "ar", so it can be a program name with args. | |
5763 set dummy ar; ac_word=$2 | |
5764 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5766 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5767 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5768 else | |
5769 if test -n "$ac_ct_AR"; then | |
5770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5771 else | |
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5773 for as_dir in $PATH | |
5774 do | |
5775 IFS=$as_save_IFS | |
5776 test -z "$as_dir" && as_dir=. | |
5777 for ac_exec_ext in '' $ac_executable_extensions; do | |
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5779 ac_cv_prog_ac_ct_AR="ar" | |
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5781 break 2 | |
5782 fi | |
5783 done | |
5784 done | |
5785 | |
5786 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
5787 fi | |
5788 fi | |
5789 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5790 if test -n "$ac_ct_AR"; then | |
5791 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5792 echo "${ECHO_T}$ac_ct_AR" >&6 | |
5793 else | |
5794 echo "$as_me:$LINENO: result: no" >&5 | |
5795 echo "${ECHO_T}no" >&6 | |
5796 fi | |
5797 | |
5798 AR=$ac_ct_AR | |
5799 else | |
5800 AR="$ac_cv_prog_AR" | |
5801 fi | |
5802 | |
5803 if test -n "$ac_tool_prefix"; then | |
5804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5808 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5809 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5810 else | |
5811 if test -n "$RANLIB"; then | |
5812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5813 else | |
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5815 for as_dir in $PATH | |
5816 do | |
5817 IFS=$as_save_IFS | |
5818 test -z "$as_dir" && as_dir=. | |
5819 for ac_exec_ext in '' $ac_executable_extensions; do | |
5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5823 break 2 | |
5824 fi | |
5825 done | |
5826 done | |
5827 | |
5828 fi | |
5829 fi | |
5830 RANLIB=$ac_cv_prog_RANLIB | |
5831 if test -n "$RANLIB"; then | |
5832 echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5833 echo "${ECHO_T}$RANLIB" >&6 | |
5834 else | |
5835 echo "$as_me:$LINENO: result: no" >&5 | |
5836 echo "${ECHO_T}no" >&6 | |
5837 fi | |
5838 | |
5839 fi | |
5840 if test -z "$ac_cv_prog_RANLIB"; then | |
5841 ac_ct_RANLIB=$RANLIB | |
5842 # Extract the first word of "ranlib", so it can be a program name with args. | |
5843 set dummy ranlib; ac_word=$2 | |
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5847 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5848 else | |
5849 if test -n "$ac_ct_RANLIB"; then | |
5850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5851 else | |
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5853 for as_dir in $PATH | |
5854 do | |
5855 IFS=$as_save_IFS | |
5856 test -z "$as_dir" && as_dir=. | |
5857 for ac_exec_ext in '' $ac_executable_extensions; do | |
5858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5859 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5861 break 2 | |
5862 fi | |
5863 done | |
5864 done | |
5865 | |
5866 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5867 fi | |
5868 fi | |
5869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5870 if test -n "$ac_ct_RANLIB"; then | |
5871 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5872 echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5873 else | |
5874 echo "$as_me:$LINENO: result: no" >&5 | |
5875 echo "${ECHO_T}no" >&6 | |
5876 fi | |
5877 | |
5878 RANLIB=$ac_ct_RANLIB | |
5879 else | |
5880 RANLIB="$ac_cv_prog_RANLIB" | |
5881 fi | |
5882 | |
5883 if test -n "$ac_tool_prefix"; then | |
5884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5885 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5888 if test "${ac_cv_prog_STRIP+set}" = set; then | |
5889 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5890 else | |
5891 if test -n "$STRIP"; then | |
5892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5893 else | |
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5895 for as_dir in $PATH | |
5896 do | |
5897 IFS=$as_save_IFS | |
5898 test -z "$as_dir" && as_dir=. | |
5899 for ac_exec_ext in '' $ac_executable_extensions; do | |
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5901 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5903 break 2 | |
5904 fi | |
5905 done | |
5906 done | |
5907 | |
5908 fi | |
5909 fi | |
5910 STRIP=$ac_cv_prog_STRIP | |
5911 if test -n "$STRIP"; then | |
5912 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5913 echo "${ECHO_T}$STRIP" >&6 | |
5914 else | |
5915 echo "$as_me:$LINENO: result: no" >&5 | |
5916 echo "${ECHO_T}no" >&6 | |
5917 fi | |
5918 | |
5919 fi | |
5920 if test -z "$ac_cv_prog_STRIP"; then | |
5921 ac_ct_STRIP=$STRIP | |
5922 # Extract the first word of "strip", so it can be a program name with args. | |
5923 set dummy strip; ac_word=$2 | |
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5927 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5928 else | |
5929 if test -n "$ac_ct_STRIP"; then | |
5930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5931 else | |
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5933 for as_dir in $PATH | |
5934 do | |
5935 IFS=$as_save_IFS | |
5936 test -z "$as_dir" && as_dir=. | |
5937 for ac_exec_ext in '' $ac_executable_extensions; do | |
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5939 ac_cv_prog_ac_ct_STRIP="strip" | |
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5941 break 2 | |
5942 fi | |
5943 done | |
5944 done | |
5945 | |
5946 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
5947 fi | |
5948 fi | |
5949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5950 if test -n "$ac_ct_STRIP"; then | |
5951 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5952 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5953 else | |
5954 echo "$as_me:$LINENO: result: no" >&5 | |
5955 echo "${ECHO_T}no" >&6 | |
5956 fi | |
5957 | |
5958 STRIP=$ac_ct_STRIP | |
5959 else | |
5960 STRIP="$ac_cv_prog_STRIP" | |
5961 fi | |
5962 | |
5963 | |
5964 old_CC="$CC" | |
5965 old_CFLAGS="$CFLAGS" | |
5966 | |
5967 # Set sane defaults for various variables | |
5968 test -z "$AR" && AR=ar | |
5969 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5970 test -z "$AS" && AS=as | |
5971 test -z "$CC" && CC=cc | |
5972 test -z "$LTCC" && LTCC=$CC | |
5973 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5974 test -z "$LD" && LD=ld | |
5975 test -z "$LN_S" && LN_S="ln -s" | |
5976 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
5977 test -z "$NM" && NM=nm | |
5978 test -z "$SED" && SED=sed | |
5979 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5980 test -z "$RANLIB" && RANLIB=: | |
5981 test -z "$STRIP" && STRIP=: | |
5982 test -z "$ac_objext" && ac_objext=o | |
5983 | |
5984 # Determine commands to create old-style static archives. | |
5985 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5986 old_postinstall_cmds='chmod 644 $oldlib' | |
5987 old_postuninstall_cmds= | |
5988 | |
5989 if test -n "$RANLIB"; then | |
5990 case $host_os in | |
5991 openbsd*) | |
5992 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
5993 ;; | |
5994 *) | |
5995 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
5996 ;; | |
5997 esac | |
5998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5999 fi | |
6000 | |
6001 # Only perform the check for file, if the check method requires it | |
6002 case $deplibs_check_method in | |
6003 file_magic*) | |
6004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6005 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6006 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6008 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6009 else | |
6010 case $MAGIC_CMD in | |
6011 [\\/*] | ?:[\\/]*) | |
6012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6013 ;; | |
6014 *) | |
6015 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6018 for ac_dir in $ac_dummy; do | |
6019 IFS="$lt_save_ifs" | |
6020 test -z "$ac_dir" && ac_dir=. | |
6021 if test -f $ac_dir/${ac_tool_prefix}file; then | |
6022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6023 if test -n "$file_magic_test_file"; then | |
6024 case $deplibs_check_method in | |
6025 "file_magic "*) | |
6026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6029 $EGREP "$file_magic_regex" > /dev/null; then | |
6030 : | |
6031 else | |
6032 cat <<EOF 1>&2 | |
6033 | |
6034 *** Warning: the command libtool uses to detect shared libraries, | |
6035 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6036 *** The result is that libtool may fail to recognize shared libraries | |
6037 *** as such. This will affect the creation of libtool libraries that | |
6038 *** depend on shared libraries, but programs linked with such libtool | |
6039 *** libraries will work regardless of this problem. Nevertheless, you | |
6040 *** may want to report the problem to your system manager and/or to | |
6041 *** bug-libtool@gnu.org | |
6042 | |
6043 EOF | |
6044 fi ;; | |
6045 esac | |
6046 fi | |
6047 break | |
6048 fi | |
6049 done | |
6050 IFS="$lt_save_ifs" | |
6051 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6052 ;; | |
6053 esac | |
6054 fi | |
6055 | |
6056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6057 if test -n "$MAGIC_CMD"; then | |
6058 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6059 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6060 else | |
6061 echo "$as_me:$LINENO: result: no" >&5 | |
6062 echo "${ECHO_T}no" >&6 | |
6063 fi | |
6064 | |
6065 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6066 if test -n "$ac_tool_prefix"; then | |
6067 echo "$as_me:$LINENO: checking for file" >&5 | |
6068 echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6070 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6071 else | |
6072 case $MAGIC_CMD in | |
6073 [\\/*] | ?:[\\/]*) | |
6074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6075 ;; | |
6076 *) | |
6077 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6079 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6080 for ac_dir in $ac_dummy; do | |
6081 IFS="$lt_save_ifs" | |
6082 test -z "$ac_dir" && ac_dir=. | |
6083 if test -f $ac_dir/file; then | |
6084 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6085 if test -n "$file_magic_test_file"; then | |
6086 case $deplibs_check_method in | |
6087 "file_magic "*) | |
6088 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6091 $EGREP "$file_magic_regex" > /dev/null; then | |
6092 : | |
6093 else | |
6094 cat <<EOF 1>&2 | |
6095 | |
6096 *** Warning: the command libtool uses to detect shared libraries, | |
6097 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6098 *** The result is that libtool may fail to recognize shared libraries | |
6099 *** as such. This will affect the creation of libtool libraries that | |
6100 *** depend on shared libraries, but programs linked with such libtool | |
6101 *** libraries will work regardless of this problem. Nevertheless, you | |
6102 *** may want to report the problem to your system manager and/or to | |
6103 *** bug-libtool@gnu.org | |
6104 | |
6105 EOF | |
6106 fi ;; | |
6107 esac | |
6108 fi | |
6109 break | |
6110 fi | |
6111 done | |
6112 IFS="$lt_save_ifs" | |
6113 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6114 ;; | |
6115 esac | |
6116 fi | |
6117 | |
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6119 if test -n "$MAGIC_CMD"; then | |
6120 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6121 echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6122 else | |
6123 echo "$as_me:$LINENO: result: no" >&5 | |
6124 echo "${ECHO_T}no" >&6 | |
6125 fi | |
6126 | |
6127 else | |
6128 MAGIC_CMD=: | |
6129 fi | |
6130 fi | |
6131 | |
6132 fi | |
6133 ;; | |
6134 esac | |
6135 | |
6136 enable_dlopen=no | |
6137 enable_win32_dll=no | |
6138 | |
6139 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6140 if test "${enable_libtool_lock+set}" = set; then | |
6141 enableval="$enable_libtool_lock" | |
6142 | |
6143 fi; | |
6144 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6145 | |
6146 | |
6147 # Check whether --with-pic or --without-pic was given. | |
6148 if test "${with_pic+set}" = set; then | |
6149 withval="$with_pic" | |
6150 pic_mode="$withval" | |
6151 else | |
6152 pic_mode=default | |
6153 fi; | |
6154 test -z "$pic_mode" && pic_mode=default | |
6155 | |
6156 # Use C for the default configuration in the libtool script | |
6157 tagname= | |
6158 lt_save_CC="$CC" | |
6159 ac_ext=c | |
6160 ac_cpp='$CPP $CPPFLAGS' | |
6161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6163 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6164 | |
6165 | |
6166 # Source file extension for C test sources. | |
6167 ac_ext=c | |
6168 | |
6169 # Object file extension for compiled C test sources. | |
6170 objext=o | |
6171 objext=$objext | |
6172 | |
6173 # Code to be used in simple compile tests | |
6174 lt_simple_compile_test_code="int some_variable = 0;\n" | |
6175 | |
6176 # Code to be used in simple link tests | |
6177 lt_simple_link_test_code='int main(){return(0);}\n' | |
6178 | |
6179 | |
6180 # If no C compiler was specified, use CC. | |
6181 LTCC=${LTCC-"$CC"} | |
6182 | |
6183 # Allow CC to be a program name with arguments. | |
6184 compiler=$CC | |
6185 | |
6186 | |
6187 # | |
6188 # Check for any special shared library compilation flags. | |
6189 # | |
6190 lt_prog_cc_shlib= | |
6191 if test "$GCC" = no; then | |
6192 case $host_os in | |
6193 sco3.2v5*) | |
6194 lt_prog_cc_shlib='-belf' | |
6195 ;; | |
6196 esac | |
6197 fi | |
6198 if test -n "$lt_prog_cc_shlib"; then | |
6199 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | |
6200 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | |
6201 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
6202 else | |
6203 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | |
6204 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | |
6205 lt_cv_prog_cc_can_build_shared=no | |
6206 fi | |
6207 fi | |
6208 | |
6209 | |
6210 # | |
6211 # Check to make sure the static flag actually works. | |
6212 # | |
6213 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | |
6214 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | |
6215 if test "${lt_prog_compiler_static_works+set}" = set; then | |
6216 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6217 else | |
6218 lt_prog_compiler_static_works=no | |
6219 save_LDFLAGS="$LDFLAGS" | |
6220 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
6221 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
6222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
6223 # The compiler can only warn and ignore the option if not recognized | |
6224 # So say no if there are warnings | |
6225 if test -s conftest.err; then | |
6226 # Append any errors to the config.log. | |
6227 cat conftest.err 1>&5 | |
6228 else | |
6229 lt_prog_compiler_static_works=yes | |
6230 fi | |
6231 fi | |
6232 $rm conftest* | |
6233 LDFLAGS="$save_LDFLAGS" | |
6234 | |
6235 fi | |
6236 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
6237 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
6238 | |
6239 if test x"$lt_prog_compiler_static_works" = xyes; then | |
6240 : | |
6241 else | |
6242 lt_prog_compiler_static= | |
6243 fi | |
6244 | |
6245 | |
6246 | |
6247 | |
6248 lt_prog_compiler_no_builtin_flag= | |
6249 | |
6250 if test "$GCC" = yes; then | |
6251 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6252 | |
6253 | |
6254 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6255 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6256 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6257 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6258 else | |
6259 lt_cv_prog_compiler_rtti_exceptions=no | |
6260 ac_outfile=conftest.$ac_objext | |
6261 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6262 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6263 # Insert the option either (1) after the last *FLAGS variable, or | |
6264 # (2) before a word containing "conftest.", or (3) at the end. | |
6265 # Note that $ac_compile itself does not contain backslashes and begins | |
6266 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6267 # The option is referenced via a variable to avoid confusing sed. | |
6268 lt_compile=`echo "$ac_compile" | $SED \ | |
6269 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6271 -e 's:$: $lt_compiler_flag:'` | |
6272 (eval echo "\"\$as_me:6272: $lt_compile\"" >&5) | |
6273 (eval "$lt_compile" 2>conftest.err) | |
6274 ac_status=$? | |
6275 cat conftest.err >&5 | |
6276 echo "$as_me:6276: \$? = $ac_status" >&5 | |
6277 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6278 # The compiler can only warn and ignore the option if not recognized | |
6279 # So say no if there are warnings | |
6280 if test ! -s conftest.err; then | |
6281 lt_cv_prog_compiler_rtti_exceptions=yes | |
6282 fi | |
6283 fi | |
6284 $rm conftest* | |
6285 | |
6286 fi | |
6287 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6288 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6289 | |
6290 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6292 else | |
6293 : | |
6294 fi | |
6295 | |
6296 fi | |
6297 | |
6298 lt_prog_compiler_wl= | |
6299 lt_prog_compiler_pic= | |
6300 lt_prog_compiler_static= | |
6301 | |
6302 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6303 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6304 | |
6305 if test "$GCC" = yes; then | |
6306 lt_prog_compiler_wl='-Wl,' | |
6307 lt_prog_compiler_static='-static' | |
6308 | |
6309 case $host_os in | |
6310 aix*) | |
6311 # All AIX code is PIC. | |
6312 if test "$host_cpu" = ia64; then | |
6313 # AIX 5 now supports IA64 processor | |
6314 lt_prog_compiler_static='-Bstatic' | |
6315 fi | |
6316 ;; | |
6317 | |
6318 amigaos*) | |
6319 # FIXME: we need at least 68020 code to build shared libraries, but | |
6320 # adding the `-m68020' flag to GCC prevents building anything better, | |
6321 # like `-m68040'. | |
6322 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6323 ;; | |
6324 | |
6325 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6326 # PIC is the default for these OSes. | |
6327 ;; | |
6328 | |
6329 mingw* | pw32* | os2*) | |
6330 # This hack is so that the source file can tell whether it is being | |
6331 # built for inclusion in a dll (and should export symbols for example). | |
6332 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6333 ;; | |
6334 | |
6335 darwin* | rhapsody*) | |
6336 # PIC is the default on this platform | |
6337 # Common symbols not allowed in MH_DYLIB files | |
6338 lt_prog_compiler_pic='-fno-common' | |
6339 ;; | |
6340 | |
6341 msdosdjgpp*) | |
6342 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6343 # on systems that don't support them. | |
6344 lt_prog_compiler_can_build_shared=no | |
6345 enable_shared=no | |
6346 ;; | |
6347 | |
6348 sysv4*MP*) | |
6349 if test -d /usr/nec; then | |
6350 lt_prog_compiler_pic=-Kconform_pic | |
6351 fi | |
6352 ;; | |
6353 | |
6354 hpux*) | |
6355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6356 # not for PA HP-UX. | |
6357 case "$host_cpu" in | |
6358 hppa*64*|ia64*) | |
6359 # +Z the default | |
6360 ;; | |
6361 *) | |
6362 lt_prog_compiler_pic='-fPIC' | |
6363 ;; | |
6364 esac | |
6365 ;; | |
6366 | |
6367 *) | |
6368 lt_prog_compiler_pic='-fPIC' | |
6369 ;; | |
6370 esac | |
6371 else | |
6372 # PORTME Check for flag to pass linker flags through the system compiler. | |
6373 case $host_os in | |
6374 aix*) | |
6375 lt_prog_compiler_wl='-Wl,' | |
6376 if test "$host_cpu" = ia64; then | |
6377 # AIX 5 now supports IA64 processor | |
6378 lt_prog_compiler_static='-Bstatic' | |
6379 else | |
6380 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6381 fi | |
6382 ;; | |
6383 | |
6384 mingw* | pw32* | os2*) | |
6385 # This hack is so that the source file can tell whether it is being | |
6386 # built for inclusion in a dll (and should export symbols for example). | |
6387 lt_prog_compiler_pic='-DDLL_EXPORT' | |
6388 ;; | |
6389 | |
6390 hpux9* | hpux10* | hpux11*) | |
6391 lt_prog_compiler_wl='-Wl,' | |
6392 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6393 # not for PA HP-UX. | |
6394 case "$host_cpu" in | |
6395 hppa*64*|ia64*) | |
6396 # +Z the default | |
6397 ;; | |
6398 *) | |
6399 lt_prog_compiler_pic='+Z' | |
6400 ;; | |
6401 esac | |
6402 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6403 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6404 ;; | |
6405 | |
6406 irix5* | irix6* | nonstopux*) | |
6407 lt_prog_compiler_wl='-Wl,' | |
6408 # PIC (with -KPIC) is the default. | |
6409 lt_prog_compiler_static='-non_shared' | |
6410 ;; | |
6411 | |
6412 newsos6) | |
6413 lt_prog_compiler_pic='-KPIC' | |
6414 lt_prog_compiler_static='-Bstatic' | |
6415 ;; | |
6416 | |
6417 linux*) | |
6418 case $CC in | |
6419 icc* | ecc*) | |
6420 lt_prog_compiler_wl='-Wl,' | |
6421 lt_prog_compiler_pic='-KPIC' | |
6422 lt_prog_compiler_static='-static' | |
6423 ;; | |
6424 ccc*) | |
6425 lt_prog_compiler_wl='-Wl,' | |
6426 # All Alpha code is PIC. | |
6427 lt_prog_compiler_static='-non_shared' | |
6428 ;; | |
6429 esac | |
6430 ;; | |
6431 | |
6432 osf3* | osf4* | osf5*) | |
6433 lt_prog_compiler_wl='-Wl,' | |
6434 # All OSF/1 code is PIC. | |
6435 lt_prog_compiler_static='-non_shared' | |
6436 ;; | |
6437 | |
6438 sco3.2v5*) | |
6439 lt_prog_compiler_pic='-Kpic' | |
6440 lt_prog_compiler_static='-dn' | |
6441 ;; | |
6442 | |
6443 solaris*) | |
6444 lt_prog_compiler_wl='-Wl,' | |
6445 lt_prog_compiler_pic='-KPIC' | |
6446 lt_prog_compiler_static='-Bstatic' | |
6447 ;; | |
6448 | |
6449 sunos4*) | |
6450 lt_prog_compiler_wl='-Qoption ld ' | |
6451 lt_prog_compiler_pic='-PIC' | |
6452 lt_prog_compiler_static='-Bstatic' | |
6453 ;; | |
6454 | |
6455 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6456 lt_prog_compiler_wl='-Wl,' | |
6457 lt_prog_compiler_pic='-KPIC' | |
6458 lt_prog_compiler_static='-Bstatic' | |
6459 ;; | |
6460 | |
6461 sysv4*MP*) | |
6462 if test -d /usr/nec ;then | |
6463 lt_prog_compiler_pic='-Kconform_pic' | |
6464 lt_prog_compiler_static='-Bstatic' | |
6465 fi | |
6466 ;; | |
6467 | |
6468 uts4*) | |
6469 lt_prog_compiler_pic='-pic' | |
6470 lt_prog_compiler_static='-Bstatic' | |
6471 ;; | |
6472 | |
6473 *) | |
6474 lt_prog_compiler_can_build_shared=no | |
6475 ;; | |
6476 esac | |
6477 fi | |
6478 | |
6479 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
6480 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
6481 | |
6482 # | |
6483 # Check to make sure the PIC flag actually works. | |
6484 # | |
6485 if test -n "$lt_prog_compiler_pic"; then | |
6486 | |
6487 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
6488 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
6489 if test "${lt_prog_compiler_pic_works+set}" = set; then | |
6490 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6491 else | |
6492 lt_prog_compiler_pic_works=no | |
6493 ac_outfile=conftest.$ac_objext | |
6494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
6496 # Insert the option either (1) after the last *FLAGS variable, or | |
6497 # (2) before a word containing "conftest.", or (3) at the end. | |
6498 # Note that $ac_compile itself does not contain backslashes and begins | |
6499 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6500 # The option is referenced via a variable to avoid confusing sed. | |
6501 lt_compile=`echo "$ac_compile" | $SED \ | |
6502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6504 -e 's:$: $lt_compiler_flag:'` | |
6505 (eval echo "\"\$as_me:6505: $lt_compile\"" >&5) | |
6506 (eval "$lt_compile" 2>conftest.err) | |
6507 ac_status=$? | |
6508 cat conftest.err >&5 | |
6509 echo "$as_me:6509: \$? = $ac_status" >&5 | |
6510 if (exit $ac_status) && test -s "$ac_outfile"; then | |
6511 # The compiler can only warn and ignore the option if not recognized | |
6512 # So say no if there are warnings | |
6513 if test ! -s conftest.err; then | |
6514 lt_prog_compiler_pic_works=yes | |
6515 fi | |
6516 fi | |
6517 $rm conftest* | |
6518 | |
6519 fi | |
6520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
6521 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
6522 | |
6523 if test x"$lt_prog_compiler_pic_works" = xyes; then | |
6524 case $lt_prog_compiler_pic in | |
6525 "" | " "*) ;; | |
6526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
6527 esac | |
6528 else | |
6529 lt_prog_compiler_pic= | |
6530 lt_prog_compiler_can_build_shared=no | |
6531 fi | |
6532 | |
6533 fi | |
6534 case "$host_os" in | |
6535 # For platforms which do not support PIC, -DPIC is meaningless: | |
6536 *djgpp*) | |
6537 lt_prog_compiler_pic= | |
6538 ;; | |
6539 *) | |
6540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
6541 ;; | |
6542 esac | |
6543 | |
6544 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
6545 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
6546 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
6547 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6548 else | |
6549 lt_cv_prog_compiler_c_o=no | |
6550 $rm -r conftest 2>/dev/null | |
6551 mkdir conftest | |
6552 cd conftest | |
6553 mkdir out | |
6554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6555 | |
6556 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
6557 # Insert the option either (1) after the last *FLAGS variable, or | |
6558 # (2) before a word containing "conftest.", or (3) at the end. | |
6559 # Note that $ac_compile itself does not contain backslashes and begins | |
6560 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6561 lt_compile=`echo "$ac_compile" | $SED \ | |
6562 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
6563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6564 -e 's:$: $lt_compiler_flag:'` | |
6565 (eval echo "\"\$as_me:6565: $lt_compile\"" >&5) | |
6566 (eval "$lt_compile" 2>out/conftest.err) | |
6567 ac_status=$? | |
6568 cat out/conftest.err >&5 | |
6569 echo "$as_me:6569: \$? = $ac_status" >&5 | |
6570 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
6571 then | |
6572 # The compiler can only warn and ignore the option if not recognized | |
6573 # So say no if there are warnings | |
6574 if test ! -s out/conftest.err; then | |
6575 lt_cv_prog_compiler_c_o=yes | |
6576 fi | |
6577 fi | |
6578 chmod u+w . | |
6579 $rm conftest* | |
6580 # SGI C++ compiler will create directory out/ii_files/ for | |
6581 # template instantiation | |
6582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
6583 $rm out/* && rmdir out | |
6584 cd .. | |
6585 rmdir conftest | |
6586 $rm conftest* | |
6587 | |
6588 fi | |
6589 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
6590 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
6591 | |
6592 | |
6593 hard_links="nottested" | |
6594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
6595 # do not overwrite the value of need_locks provided by the user | |
6596 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
6597 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
6598 hard_links=yes | |
6599 $rm conftest* | |
6600 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6601 touch conftest.a | |
6602 ln conftest.a conftest.b 2>&5 || hard_links=no | |
6603 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
6604 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
6605 echo "${ECHO_T}$hard_links" >&6 | |
6606 if test "$hard_links" = no; then | |
6607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
6608 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
6609 need_locks=warn | |
6610 fi | |
6611 else | |
6612 need_locks=no | |
6613 fi | |
6614 | |
6615 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
6616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
6617 | |
6618 runpath_var= | |
6619 allow_undefined_flag= | |
6620 enable_shared_with_static_runtimes=no | |
6621 archive_cmds= | |
6622 archive_expsym_cmds= | |
6623 old_archive_From_new_cmds= | |
6624 old_archive_from_expsyms_cmds= | |
6625 export_dynamic_flag_spec= | |
6626 whole_archive_flag_spec= | |
6627 thread_safe_flag_spec= | |
6628 hardcode_libdir_flag_spec= | |
6629 hardcode_libdir_flag_spec_ld= | |
6630 hardcode_libdir_separator= | |
6631 hardcode_direct=no | |
6632 hardcode_minus_L=no | |
6633 hardcode_shlibpath_var=unsupported | |
6634 link_all_deplibs=unknown | |
6635 hardcode_automatic=no | |
6636 module_cmds= | |
6637 module_expsym_cmds= | |
6638 always_export_symbols=no | |
6639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
6640 # include_expsyms should be a list of space-separated symbols to be *always* | |
6641 # included in the symbol list | |
6642 include_expsyms= | |
6643 # exclude_expsyms can be an extended regexp of symbols to exclude | |
6644 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
6645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
6646 # as well as any symbol that contains `d'. | |
6647 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
6648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
6649 # platforms (ab)use it in PIC code, but their linkers get confused if | |
6650 # the symbol is explicitly referenced. Since portable code cannot | |
6651 # rely on this symbol name, it's probably fine to never include it in | |
6652 # preloaded symbol tables. | |
6653 extract_expsyms_cmds= | |
6654 | |
6655 case $host_os in | |
6656 cygwin* | mingw* | pw32*) | |
6657 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
6658 # When not using gcc, we currently assume that we are using | |
6659 # Microsoft Visual C++. | |
6660 if test "$GCC" != yes; then | |
6661 with_gnu_ld=no | |
6662 fi | |
6663 ;; | |
6664 openbsd*) | |
6665 with_gnu_ld=no | |
6666 ;; | |
6667 esac | |
6668 | |
6669 ld_shlibs=yes | |
6670 if test "$with_gnu_ld" = yes; then | |
6671 # If archive_cmds runs LD, not CC, wlarc should be empty | |
6672 wlarc='${wl}' | |
6673 | |
6674 # See if GNU ld supports shared libraries. | |
6675 case $host_os in | |
6676 aix3* | aix4* | aix5*) | |
6677 # On AIX/PPC, the GNU linker is very broken | |
6678 if test "$host_cpu" != ia64; then | |
6679 ld_shlibs=no | |
6680 cat <<EOF 1>&2 | |
6681 | |
6682 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
6683 *** to be unable to reliably create shared libraries on AIX. | |
6684 *** Therefore, libtool is disabling shared libraries support. If you | |
6685 *** really care for shared libraries, you may want to modify your PATH | |
6686 *** so that a non-GNU linker is found, and then restart. | |
6687 | |
6688 EOF | |
6689 fi | |
6690 ;; | |
6691 | |
6692 amigaos*) | |
6693 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)' | |
6694 hardcode_libdir_flag_spec='-L$libdir' | |
6695 hardcode_minus_L=yes | |
6696 | |
6697 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
6698 # that the semantics of dynamic libraries on AmigaOS, at least up | |
6699 # to version 4, is to share data among multiple programs linked | |
6700 # with the same dynamic library. Since this doesn't match the | |
6701 # behavior of shared libraries on other platforms, we can't use | |
6702 # them. | |
6703 ld_shlibs=no | |
6704 ;; | |
6705 | |
6706 beos*) | |
6707 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6708 allow_undefined_flag=unsupported | |
6709 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6710 # support --undefined. This deserves some investigation. FIXME | |
6711 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6712 else | |
6713 ld_shlibs=no | |
6714 fi | |
6715 ;; | |
6716 | |
6717 cygwin* | mingw* | pw32*) | |
6718 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
6719 # as there is no search path for DLLs. | |
6720 hardcode_libdir_flag_spec='-L$libdir' | |
6721 allow_undefined_flag=unsupported | |
6722 always_export_symbols=no | |
6723 enable_shared_with_static_runtimes=yes | |
6724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
6725 | |
6726 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
6727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
6728 # If the export-symbols file already is a .def file (1st line | |
6729 # is EXPORTS), use it as is; otherwise, prepend... | |
6730 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6731 cp $export_symbols $output_objdir/$soname.def; | |
6732 else | |
6733 echo EXPORTS > $output_objdir/$soname.def; | |
6734 cat $export_symbols >> $output_objdir/$soname.def; | |
6735 fi~ | |
6736 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
6737 else | |
6738 ld_shlibs=no | |
6739 fi | |
6740 ;; | |
6741 | |
6742 netbsd* | knetbsd*-gnu) | |
6743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
6745 wlarc= | |
6746 else | |
6747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6749 fi | |
6750 ;; | |
6751 | |
6752 solaris* | sysv5*) | |
6753 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
6754 ld_shlibs=no | |
6755 cat <<EOF 1>&2 | |
6756 | |
6757 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
6758 *** create shared libraries on Solaris systems. Therefore, libtool | |
6759 *** is disabling shared libraries support. We urge you to upgrade GNU | |
6760 *** binutils to release 2.9.1 or newer. Another option is to modify | |
6761 *** your PATH or compiler configuration so that the native linker is | |
6762 *** used, and then restart. | |
6763 | |
6764 EOF | |
6765 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6768 else | |
6769 ld_shlibs=no | |
6770 fi | |
6771 ;; | |
6772 | |
6773 sunos4*) | |
6774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6775 wlarc= | |
6776 hardcode_direct=yes | |
6777 hardcode_shlibpath_var=no | |
6778 ;; | |
6779 | |
6780 linux*) | |
6781 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
6782 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6783 archive_cmds="$tmp_archive_cmds" | |
6784 supports_anon_versioning=no | |
6785 case `$LD -v 2>/dev/null` in | |
6786 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
6787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
6788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
6789 *\ 2.11.*) ;; # other 2.11 versions | |
6790 *) supports_anon_versioning=yes ;; | |
6791 esac | |
6792 if test $supports_anon_versioning = yes; then | |
6793 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
6794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6795 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6796 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6797 else | |
6798 archive_expsym_cmds="$tmp_archive_cmds" | |
6799 fi | |
6800 else | |
6801 ld_shlibs=no | |
6802 fi | |
6803 ;; | |
6804 | |
6805 *) | |
6806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
6807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6809 else | |
6810 ld_shlibs=no | |
6811 fi | |
6812 ;; | |
6813 esac | |
6814 | |
6815 if test "$ld_shlibs" = yes; then | |
6816 runpath_var=LD_RUN_PATH | |
6817 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
6818 export_dynamic_flag_spec='${wl}--export-dynamic' | |
6819 # ancient GNU ld didn't support --whole-archive et. al. | |
6820 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
6821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6822 else | |
6823 whole_archive_flag_spec= | |
6824 fi | |
6825 fi | |
6826 else | |
6827 # PORTME fill in a description of your system's linker (not GNU ld) | |
6828 case $host_os in | |
6829 aix3*) | |
6830 allow_undefined_flag=unsupported | |
6831 always_export_symbols=yes | |
6832 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' | |
6833 # Note: this linker hardcodes the directories in LIBPATH if there | |
6834 # are no directories specified by -L. | |
6835 hardcode_minus_L=yes | |
6836 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
6837 # Neither direct hardcoding nor static linking is supported with a | |
6838 # broken collect2. | |
6839 hardcode_direct=unsupported | |
6840 fi | |
6841 ;; | |
6842 | |
6843 aix4* | aix5*) | |
6844 if test "$host_cpu" = ia64; then | |
6845 # On IA64, the linker does run time linking by default, so we don't | |
6846 # have to do anything special. | |
6847 aix_use_runtimelinking=no | |
6848 exp_sym_flag='-Bexport' | |
6849 no_entry_flag="" | |
6850 else | |
6851 # If we're using GNU nm, then we don't want the "-C" option. | |
6852 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
6853 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
6854 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' | |
6855 else | |
6856 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' | |
6857 fi | |
6858 aix_use_runtimelinking=no | |
6859 | |
6860 # Test if we are trying to use run time linking or normal | |
6861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
6862 # need to do runtime linking. | |
6863 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
6864 for ld_flag in $LDFLAGS; do | |
6865 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
6866 aix_use_runtimelinking=yes | |
6867 break | |
6868 fi | |
6869 done | |
6870 esac | |
6871 | |
6872 exp_sym_flag='-bexport' | |
6873 no_entry_flag='-bnoentry' | |
6874 fi | |
6875 | |
6876 # When large executables or shared objects are built, AIX ld can | |
6877 # have problems creating the table of contents. If linking a library | |
6878 # or program results in "error TOC overflow" add -mminimal-toc to | |
6879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
6880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
6881 | |
6882 archive_cmds='' | |
6883 hardcode_direct=yes | |
6884 hardcode_libdir_separator=':' | |
6885 link_all_deplibs=yes | |
6886 | |
6887 if test "$GCC" = yes; then | |
6888 case $host_os in aix4.012|aix4.012.*) | |
6889 # We only want to do this on AIX 4.2 and lower, the check | |
6890 # below for broken collect2 doesn't work under 4.3+ | |
6891 collect2name=`${CC} -print-prog-name=collect2` | |
6892 if test -f "$collect2name" && \ | |
6893 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
6894 then | |
6895 # We have reworked collect2 | |
6896 hardcode_direct=yes | |
6897 else | |
6898 # We have old collect2 | |
6899 hardcode_direct=unsupported | |
6900 # It fails to find uninstalled libraries when the uninstalled | |
6901 # path is not listed in the libpath. Setting hardcode_minus_L | |
6902 # to unsupported forces relinking | |
6903 hardcode_minus_L=yes | |
6904 hardcode_libdir_flag_spec='-L$libdir' | |
6905 hardcode_libdir_separator= | |
6906 fi | |
6907 esac | |
6908 shared_flag='-shared' | |
6909 else | |
6910 # not using gcc | |
6911 if test "$host_cpu" = ia64; then | |
6912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
6913 # chokes on -Wl,-G. The following line is correct: | |
6914 shared_flag='-G' | |
6915 else | |
6916 if test "$aix_use_runtimelinking" = yes; then | |
6917 shared_flag='${wl}-G' | |
6918 else | |
6919 shared_flag='${wl}-bM:SRE' | |
6920 fi | |
6921 fi | |
6922 fi | |
6923 | |
6924 # It seems that -bexpall does not export symbols beginning with | |
6925 # underscore (_), so it is better to generate a list of symbols to export. | |
6926 always_export_symbols=yes | |
6927 if test "$aix_use_runtimelinking" = yes; then | |
6928 # Warning - without using the other runtime loading flags (-brtl), | |
6929 # -berok will link without error, but may produce a broken library. | |
6930 allow_undefined_flag='-berok' | |
6931 # Determine the default libpath from the value encoded in an empty executable. | |
6932 cat >conftest.$ac_ext <<_ACEOF | |
6933 /* confdefs.h. */ | |
6934 _ACEOF | |
6935 cat confdefs.h >>conftest.$ac_ext | |
6936 cat >>conftest.$ac_ext <<_ACEOF | |
6937 /* end confdefs.h. */ | |
6938 | |
6939 int | |
6940 main () | |
6941 { | |
6942 | |
6943 ; | |
6944 return 0; | |
6945 } | |
6946 _ACEOF | |
6947 rm -f conftest.$ac_objext conftest$ac_exeext | |
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6949 (eval $ac_link) 2>conftest.er1 | |
6950 ac_status=$? | |
6951 grep -v '^ *+' conftest.er1 >conftest.err | |
6952 rm -f conftest.er1 | |
6953 cat conftest.err >&5 | |
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6955 (exit $ac_status); } && | |
6956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6958 (eval $ac_try) 2>&5 | |
6959 ac_status=$? | |
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6961 (exit $ac_status); }; } && | |
6962 { ac_try='test -s conftest$ac_exeext' | |
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6964 (eval $ac_try) 2>&5 | |
6965 ac_status=$? | |
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6967 (exit $ac_status); }; }; then | |
6968 | |
6969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
6970 }'` | |
6971 # Check for a 64-bit object if we didn't find anything. | |
6972 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; } | |
6973 }'`; fi | |
6974 else | |
6975 echo "$as_me: failed program was:" >&5 | |
6976 sed 's/^/| /' conftest.$ac_ext >&5 | |
6977 | |
6978 fi | |
6979 rm -f conftest.err conftest.$ac_objext \ | |
6980 conftest$ac_exeext conftest.$ac_ext | |
6981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
6982 | |
6983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6984 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" | |
6985 else | |
6986 if test "$host_cpu" = ia64; then | |
6987 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
6988 allow_undefined_flag="-z nodefs" | |
6989 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" | |
6990 else | |
6991 # Determine the default libpath from the value encoded in an empty executable. | |
6992 cat >conftest.$ac_ext <<_ACEOF | |
6993 /* confdefs.h. */ | |
6994 _ACEOF | |
6995 cat confdefs.h >>conftest.$ac_ext | |
6996 cat >>conftest.$ac_ext <<_ACEOF | |
6997 /* end confdefs.h. */ | |
6998 | |
6999 int | |
7000 main () | |
7001 { | |
7002 | |
7003 ; | |
7004 return 0; | |
7005 } | |
7006 _ACEOF | |
7007 rm -f conftest.$ac_objext conftest$ac_exeext | |
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7009 (eval $ac_link) 2>conftest.er1 | |
7010 ac_status=$? | |
7011 grep -v '^ *+' conftest.er1 >conftest.err | |
7012 rm -f conftest.er1 | |
7013 cat conftest.err >&5 | |
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7015 (exit $ac_status); } && | |
7016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7018 (eval $ac_try) 2>&5 | |
7019 ac_status=$? | |
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7021 (exit $ac_status); }; } && | |
7022 { ac_try='test -s conftest$ac_exeext' | |
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7024 (eval $ac_try) 2>&5 | |
7025 ac_status=$? | |
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7027 (exit $ac_status); }; }; then | |
7028 | |
7029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7030 }'` | |
7031 # Check for a 64-bit object if we didn't find anything. | |
7032 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; } | |
7033 }'`; fi | |
7034 else | |
7035 echo "$as_me: failed program was:" >&5 | |
7036 sed 's/^/| /' conftest.$ac_ext >&5 | |
7037 | |
7038 fi | |
7039 rm -f conftest.err conftest.$ac_objext \ | |
7040 conftest$ac_exeext conftest.$ac_ext | |
7041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7042 | |
7043 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7044 # Warning - without using the other run time loading flags, | |
7045 # -berok will link without error, but may produce a broken library. | |
7046 no_undefined_flag=' ${wl}-bernotok' | |
7047 allow_undefined_flag=' ${wl}-berok' | |
7048 # -bexpall does not export symbols beginning with underscore (_) | |
7049 always_export_symbols=yes | |
7050 # Exported symbols can be pulled into shared objects from archives | |
7051 whole_archive_flag_spec=' ' | |
7052 archive_cmds_need_lc=yes | |
7053 # This is similar to how AIX traditionally builds it's shared libraries. | |
7054 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' | |
7055 fi | |
7056 fi | |
7057 ;; | |
7058 | |
7059 amigaos*) | |
7060 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)' | |
7061 hardcode_libdir_flag_spec='-L$libdir' | |
7062 hardcode_minus_L=yes | |
7063 # see comment about different semantics on the GNU ld section | |
7064 ld_shlibs=no | |
7065 ;; | |
7066 | |
7067 bsdi4*) | |
7068 export_dynamic_flag_spec=-rdynamic | |
7069 ;; | |
7070 | |
7071 cygwin* | mingw* | pw32*) | |
7072 # When not using gcc, we currently assume that we are using | |
7073 # Microsoft Visual C++. | |
7074 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7075 # no search path for DLLs. | |
7076 hardcode_libdir_flag_spec=' ' | |
7077 allow_undefined_flag=unsupported | |
7078 # Tell ltmain to make .lib files, not .a files. | |
7079 libext=lib | |
7080 # Tell ltmain to make .dll files, not .so files. | |
7081 shrext=".dll" | |
7082 # FIXME: Setting linknames here is a bad hack. | |
7083 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7084 # The linker will automatically build a .lib file if we build a DLL. | |
7085 old_archive_From_new_cmds='true' | |
7086 # FIXME: Should let the user specify the lib program. | |
7087 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
7088 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7089 enable_shared_with_static_runtimes=yes | |
7090 ;; | |
7091 | |
7092 darwin* | rhapsody*) | |
7093 if test "$GXX" = yes ; then | |
7094 archive_cmds_need_lc=no | |
7095 case "$host_os" in | |
7096 rhapsody* | darwin1.[012]) | |
7097 allow_undefined_flag='-undefined suppress' | |
7098 ;; | |
7099 *) # Darwin 1.3 on | |
7100 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
7101 allow_undefined_flag='-flat_namespace -undefined suppress' | |
7102 else | |
7103 case ${MACOSX_DEPLOYMENT_TARGET} in | |
7104 10.[012]) | |
7105 allow_undefined_flag='-flat_namespace -undefined suppress' | |
7106 ;; | |
7107 10.*) | |
7108 allow_undefined_flag='-undefined dynamic_lookup' | |
7109 ;; | |
7110 esac | |
7111 fi | |
7112 ;; | |
7113 esac | |
7114 lt_int_apple_cc_single_mod=no | |
7115 output_verbose_link_cmd='echo' | |
7116 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
7117 lt_int_apple_cc_single_mod=yes | |
7118 fi | |
7119 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
7120 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7121 else | |
7122 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' | |
7123 fi | |
7124 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
7125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
7126 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
7127 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}' | |
7128 else | |
7129 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}' | |
7130 fi | |
7131 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}' | |
7132 hardcode_direct=no | |
7133 hardcode_automatic=yes | |
7134 hardcode_shlibpath_var=unsupported | |
7135 whole_archive_flag_spec='-all_load $convenience' | |
7136 link_all_deplibs=yes | |
7137 else | |
7138 ld_shlibs=no | |
7139 fi | |
7140 ;; | |
7141 | |
7142 dgux*) | |
7143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7144 hardcode_libdir_flag_spec='-L$libdir' | |
7145 hardcode_shlibpath_var=no | |
7146 ;; | |
7147 | |
7148 freebsd1*) | |
7149 ld_shlibs=no | |
7150 ;; | |
7151 | |
7152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7153 # support. Future versions do this automatically, but an explicit c++rt0.o | |
7154 # does not break anything, and helps significantly (at the cost of a little | |
7155 # extra space). | |
7156 freebsd2.2*) | |
7157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7158 hardcode_libdir_flag_spec='-R$libdir' | |
7159 hardcode_direct=yes | |
7160 hardcode_shlibpath_var=no | |
7161 ;; | |
7162 | |
7163 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7164 freebsd2*) | |
7165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7166 hardcode_direct=yes | |
7167 hardcode_minus_L=yes | |
7168 hardcode_shlibpath_var=no | |
7169 ;; | |
7170 | |
7171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7172 freebsd* | kfreebsd*-gnu) | |
7173 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7174 hardcode_libdir_flag_spec='-R$libdir' | |
7175 hardcode_direct=yes | |
7176 hardcode_shlibpath_var=no | |
7177 ;; | |
7178 | |
7179 hpux9*) | |
7180 if test "$GCC" = yes; then | |
7181 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' | |
7182 else | |
7183 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' | |
7184 fi | |
7185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7186 hardcode_libdir_separator=: | |
7187 hardcode_direct=yes | |
7188 | |
7189 # hardcode_minus_L: Not really in the search PATH, | |
7190 # but as the default location of the library. | |
7191 hardcode_minus_L=yes | |
7192 export_dynamic_flag_spec='${wl}-E' | |
7193 ;; | |
7194 | |
7195 hpux10* | hpux11*) | |
7196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7197 case "$host_cpu" in | |
7198 hppa*64*|ia64*) | |
7199 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7200 ;; | |
7201 *) | |
7202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7203 ;; | |
7204 esac | |
7205 else | |
7206 case "$host_cpu" in | |
7207 hppa*64*|ia64*) | |
7208 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7209 ;; | |
7210 *) | |
7211 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7212 ;; | |
7213 esac | |
7214 fi | |
7215 if test "$with_gnu_ld" = no; then | |
7216 case "$host_cpu" in | |
7217 hppa*64*) | |
7218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7219 hardcode_libdir_flag_spec_ld='+b $libdir' | |
7220 hardcode_libdir_separator=: | |
7221 hardcode_direct=no | |
7222 hardcode_shlibpath_var=no | |
7223 ;; | |
7224 ia64*) | |
7225 hardcode_libdir_flag_spec='-L$libdir' | |
7226 hardcode_direct=no | |
7227 hardcode_shlibpath_var=no | |
7228 | |
7229 # hardcode_minus_L: Not really in the search PATH, | |
7230 # but as the default location of the library. | |
7231 hardcode_minus_L=yes | |
7232 ;; | |
7233 *) | |
7234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7235 hardcode_libdir_separator=: | |
7236 hardcode_direct=yes | |
7237 export_dynamic_flag_spec='${wl}-E' | |
7238 | |
7239 # hardcode_minus_L: Not really in the search PATH, | |
7240 # but as the default location of the library. | |
7241 hardcode_minus_L=yes | |
7242 ;; | |
7243 esac | |
7244 fi | |
7245 ;; | |
7246 | |
7247 irix5* | irix6* | nonstopux*) | |
7248 if test "$GCC" = yes; then | |
7249 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' | |
7250 else | |
7251 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' | |
7252 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7253 fi | |
7254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7255 hardcode_libdir_separator=: | |
7256 link_all_deplibs=yes | |
7257 ;; | |
7258 | |
7259 netbsd* | knetbsd*-gnu) | |
7260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7262 else | |
7263 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7264 fi | |
7265 hardcode_libdir_flag_spec='-R$libdir' | |
7266 hardcode_direct=yes | |
7267 hardcode_shlibpath_var=no | |
7268 ;; | |
7269 | |
7270 newsos6) | |
7271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7272 hardcode_direct=yes | |
7273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7274 hardcode_libdir_separator=: | |
7275 hardcode_shlibpath_var=no | |
7276 ;; | |
7277 | |
7278 openbsd*) | |
7279 hardcode_direct=yes | |
7280 hardcode_shlibpath_var=no | |
7281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7284 export_dynamic_flag_spec='${wl}-E' | |
7285 else | |
7286 case $host_os in | |
7287 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7289 hardcode_libdir_flag_spec='-R$libdir' | |
7290 ;; | |
7291 *) | |
7292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7294 ;; | |
7295 esac | |
7296 fi | |
7297 ;; | |
7298 | |
7299 os2*) | |
7300 hardcode_libdir_flag_spec='-L$libdir' | |
7301 hardcode_minus_L=yes | |
7302 allow_undefined_flag=unsupported | |
7303 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' | |
7304 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
7305 ;; | |
7306 | |
7307 osf3*) | |
7308 if test "$GCC" = yes; then | |
7309 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7310 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' | |
7311 else | |
7312 allow_undefined_flag=' -expect_unresolved \*' | |
7313 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' | |
7314 fi | |
7315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7316 hardcode_libdir_separator=: | |
7317 ;; | |
7318 | |
7319 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
7320 if test "$GCC" = yes; then | |
7321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
7322 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' | |
7323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7324 else | |
7325 allow_undefined_flag=' -expect_unresolved \*' | |
7326 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' | |
7327 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
7328 $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' | |
7329 | |
7330 # Both c and cxx compiler support -rpath directly | |
7331 hardcode_libdir_flag_spec='-rpath $libdir' | |
7332 fi | |
7333 hardcode_libdir_separator=: | |
7334 ;; | |
7335 | |
7336 sco3.2v5*) | |
7337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7338 hardcode_shlibpath_var=no | |
7339 export_dynamic_flag_spec='${wl}-Bexport' | |
7340 runpath_var=LD_RUN_PATH | |
7341 hardcode_runpath_var=yes | |
7342 ;; | |
7343 | |
7344 solaris*) | |
7345 no_undefined_flag=' -z text' | |
7346 if test "$GCC" = yes; then | |
7347 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7349 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
7350 else | |
7351 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7352 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7353 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7354 fi | |
7355 hardcode_libdir_flag_spec='-R$libdir' | |
7356 hardcode_shlibpath_var=no | |
7357 case $host_os in | |
7358 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
7359 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7360 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
7361 esac | |
7362 link_all_deplibs=yes | |
7363 ;; | |
7364 | |
7365 sunos4*) | |
7366 if test "x$host_vendor" = xsequent; then | |
7367 # Use $CC to link under sequent, because it throws in some extra .o | |
7368 # files that make .init and .fini sections work. | |
7369 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
7370 else | |
7371 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
7372 fi | |
7373 hardcode_libdir_flag_spec='-L$libdir' | |
7374 hardcode_direct=yes | |
7375 hardcode_minus_L=yes | |
7376 hardcode_shlibpath_var=no | |
7377 ;; | |
7378 | |
7379 sysv4) | |
7380 case $host_vendor in | |
7381 sni) | |
7382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7383 hardcode_direct=yes # is this really true??? | |
7384 ;; | |
7385 siemens) | |
7386 ## LD is ld it makes a PLAMLIB | |
7387 ## CC just makes a GrossModule. | |
7388 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7389 reload_cmds='$CC -r -o $output$reload_objs' | |
7390 hardcode_direct=no | |
7391 ;; | |
7392 motorola) | |
7393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7394 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
7395 ;; | |
7396 esac | |
7397 runpath_var='LD_RUN_PATH' | |
7398 hardcode_shlibpath_var=no | |
7399 ;; | |
7400 | |
7401 sysv4.3*) | |
7402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7403 hardcode_shlibpath_var=no | |
7404 export_dynamic_flag_spec='-Bexport' | |
7405 ;; | |
7406 | |
7407 sysv4*MP*) | |
7408 if test -d /usr/nec; then | |
7409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7410 hardcode_shlibpath_var=no | |
7411 runpath_var=LD_RUN_PATH | |
7412 hardcode_runpath_var=yes | |
7413 ld_shlibs=yes | |
7414 fi | |
7415 ;; | |
7416 | |
7417 sysv4.2uw2*) | |
7418 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
7419 hardcode_direct=yes | |
7420 hardcode_minus_L=no | |
7421 hardcode_shlibpath_var=no | |
7422 hardcode_runpath_var=yes | |
7423 runpath_var=LD_RUN_PATH | |
7424 ;; | |
7425 | |
7426 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
7427 no_undefined_flag='${wl}-z ${wl}text' | |
7428 if test "$GCC" = yes; then | |
7429 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7430 else | |
7431 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7432 fi | |
7433 runpath_var='LD_RUN_PATH' | |
7434 hardcode_shlibpath_var=no | |
7435 ;; | |
7436 | |
7437 sysv5*) | |
7438 no_undefined_flag=' -z text' | |
7439 # $CC -shared without GNU ld will not create a library from C++ | |
7440 # object files and a static libstdc++, better avoid it by now | |
7441 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7442 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
7443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
7444 hardcode_libdir_flag_spec= | |
7445 hardcode_shlibpath_var=no | |
7446 runpath_var='LD_RUN_PATH' | |
7447 ;; | |
7448 | |
7449 uts4*) | |
7450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7451 hardcode_libdir_flag_spec='-L$libdir' | |
7452 hardcode_shlibpath_var=no | |
7453 ;; | |
7454 | |
7455 *) | |
7456 ld_shlibs=no | |
7457 ;; | |
7458 esac | |
7459 fi | |
7460 | |
7461 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
7462 echo "${ECHO_T}$ld_shlibs" >&6 | |
7463 test "$ld_shlibs" = no && can_build_shared=no | |
7464 | |
7465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
7466 if test "$GCC" = yes; then | |
7467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
7468 fi | |
7469 | |
7470 # | |
7471 # Do we need to explicitly link libc? | |
7472 # | |
7473 case "x$archive_cmds_need_lc" in | |
7474 x|xyes) | |
7475 # Assume -lc should be added | |
7476 archive_cmds_need_lc=yes | |
7477 | |
7478 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7479 case $archive_cmds in | |
7480 *'~'*) | |
7481 # FIXME: we may have to deal with multi-command sequences. | |
7482 ;; | |
7483 '$CC '*) | |
7484 # Test whether the compiler implicitly links with -lc since on some | |
7485 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
7486 # to ld, don't add -lc before -lgcc. | |
7487 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
7488 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
7489 $rm conftest* | |
7490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7491 | |
7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7493 (eval $ac_compile) 2>&5 | |
7494 ac_status=$? | |
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7496 (exit $ac_status); } 2>conftest.err; then | |
7497 soname=conftest | |
7498 lib=conftest | |
7499 libobjs=conftest.$ac_objext | |
7500 deplibs= | |
7501 wl=$lt_prog_compiler_wl | |
7502 compiler_flags=-v | |
7503 linker_flags=-v | |
7504 verstring= | |
7505 output_objdir=. | |
7506 libname=conftest | |
7507 lt_save_allow_undefined_flag=$allow_undefined_flag | |
7508 allow_undefined_flag= | |
7509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
7510 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
7511 ac_status=$? | |
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7513 (exit $ac_status); } | |
7514 then | |
7515 archive_cmds_need_lc=no | |
7516 else | |
7517 archive_cmds_need_lc=yes | |
7518 fi | |
7519 allow_undefined_flag=$lt_save_allow_undefined_flag | |
7520 else | |
7521 cat conftest.err 1>&5 | |
7522 fi | |
7523 $rm conftest* | |
7524 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
7525 echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
7526 ;; | |
7527 esac | |
7528 fi | |
7529 ;; | |
7530 esac | |
7531 | |
7532 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
7533 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
7534 library_names_spec= | |
7535 libname_spec='lib$name' | |
7536 soname_spec= | |
7537 shrext=".so" | |
7538 postinstall_cmds= | |
7539 postuninstall_cmds= | |
7540 finish_cmds= | |
7541 finish_eval= | |
7542 shlibpath_var= | |
7543 shlibpath_overrides_runpath=unknown | |
7544 version_type=none | |
7545 dynamic_linker="$host_os ld.so" | |
7546 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
7547 if test "$GCC" = yes; then | |
7548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
7549 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
7550 # if the path contains ";" then we assume it to be the separator | |
7551 # otherwise default to the standard path separator (i.e. ":") - it is | |
7552 # assumed that no part of a normal pathname contains ";" but that should | |
7553 # okay in the real world where ";" in dirpaths is itself problematic. | |
7554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
7555 else | |
7556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
7557 fi | |
7558 else | |
7559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
7560 fi | |
7561 need_lib_prefix=unknown | |
7562 hardcode_into_libs=no | |
7563 | |
7564 # when you set need_version to no, make sure it does not cause -set_version | |
7565 # flags to be left without arguments | |
7566 need_version=unknown | |
7567 | |
7568 case $host_os in | |
7569 aix3*) | |
7570 version_type=linux | |
7571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
7572 shlibpath_var=LIBPATH | |
7573 | |
7574 # AIX 3 has no versioning support, so we append a major version to the name. | |
7575 soname_spec='${libname}${release}${shared_ext}$major' | |
7576 ;; | |
7577 | |
7578 aix4* | aix5*) | |
7579 version_type=linux | |
7580 need_lib_prefix=no | |
7581 need_version=no | |
7582 hardcode_into_libs=yes | |
7583 if test "$host_cpu" = ia64; then | |
7584 # AIX 5 supports IA64 | |
7585 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
7586 shlibpath_var=LD_LIBRARY_PATH | |
7587 else | |
7588 # With GCC up to 2.95.x, collect2 would create an import file | |
7589 # for dependence libraries. The import file would start with | |
7590 # the line `#! .'. This would cause the generated library to | |
7591 # depend on `.', always an invalid library. This was fixed in | |
7592 # development snapshots of GCC prior to 3.0. | |
7593 case $host_os in | |
7594 aix4 | aix4.[01] | aix4.[01].*) | |
7595 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
7596 echo ' yes ' | |
7597 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
7598 : | |
7599 else | |
7600 can_build_shared=no | |
7601 fi | |
7602 ;; | |
7603 esac | |
7604 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
7605 # soname into executable. Probably we can add versioning support to | |
7606 # collect2, so additional links can be useful in future. | |
7607 if test "$aix_use_runtimelinking" = yes; then | |
7608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
7609 # instead of lib<name>.a to let people know that these are not | |
7610 # typical AIX shared libraries. | |
7611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7612 else | |
7613 # We preserve .a as extension for shared libraries through AIX4.2 | |
7614 # and later when we are not doing run time linking. | |
7615 library_names_spec='${libname}${release}.a $libname.a' | |
7616 soname_spec='${libname}${release}${shared_ext}$major' | |
7617 fi | |
7618 shlibpath_var=LIBPATH | |
7619 fi | |
7620 ;; | |
7621 | |
7622 amigaos*) | |
7623 library_names_spec='$libname.ixlibrary $libname.a' | |
7624 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
7625 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' | |
7626 ;; | |
7627 | |
7628 beos*) | |
7629 library_names_spec='${libname}${shared_ext}' | |
7630 dynamic_linker="$host_os ld.so" | |
7631 shlibpath_var=LIBRARY_PATH | |
7632 ;; | |
7633 | |
7634 bsdi4*) | |
7635 version_type=linux | |
7636 need_version=no | |
7637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7638 soname_spec='${libname}${release}${shared_ext}$major' | |
7639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
7640 shlibpath_var=LD_LIBRARY_PATH | |
7641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
7642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
7643 # the default ld.so.conf also contains /usr/contrib/lib and | |
7644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
7645 # libtool to hard-code these into programs | |
7646 ;; | |
7647 | |
7648 cygwin* | mingw* | pw32*) | |
7649 version_type=windows | |
7650 shrext=".dll" | |
7651 need_version=no | |
7652 need_lib_prefix=no | |
7653 | |
7654 case $GCC,$host_os in | |
7655 yes,cygwin* | yes,mingw* | yes,pw32*) | |
7656 library_names_spec='$libname.dll.a' | |
7657 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
7658 postinstall_cmds='base_file=`basename \${file}`~ | |
7659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
7660 dldir=$destdir/`dirname \$dlpath`~ | |
7661 test -d \$dldir || mkdir -p \$dldir~ | |
7662 $install_prog $dir/$dlname \$dldir/$dlname' | |
7663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
7664 dlpath=$dir/\$dldll~ | |
7665 $rm \$dlpath' | |
7666 shlibpath_overrides_runpath=yes | |
7667 | |
7668 case $host_os in | |
7669 cygwin*) | |
7670 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
7671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7672 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
7673 ;; | |
7674 mingw*) | |
7675 # MinGW DLLs use traditional 'lib' prefix | |
7676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
7678 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
7679 # It is most probably a Windows format PATH printed by | |
7680 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
7681 # path with ; separators, and with drive letters. We can handle the | |
7682 # drive letters (cygwin fileutils understands them), so leave them, | |
7683 # especially as we might pass files found there to a mingw objdump, | |
7684 # which wouldn't understand a cygwinified path. Ahh. | |
7685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
7686 else | |
7687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
7688 fi | |
7689 ;; | |
7690 pw32*) | |
7691 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
7692 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
7693 ;; | |
7694 esac | |
7695 ;; | |
7696 | |
7697 *) | |
7698 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
7699 ;; | |
7700 esac | |
7701 dynamic_linker='Win32 ld.exe' | |
7702 # FIXME: first we should search . and the directory the executable is in | |
7703 shlibpath_var=PATH | |
7704 ;; | |
7705 | |
7706 darwin* | rhapsody*) | |
7707 dynamic_linker="$host_os dyld" | |
7708 version_type=darwin | |
7709 need_lib_prefix=no | |
7710 need_version=no | |
7711 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
7712 soname_spec='${libname}${release}${major}$shared_ext' | |
7713 shlibpath_overrides_runpath=yes | |
7714 shlibpath_var=DYLD_LIBRARY_PATH | |
7715 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
7716 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
7717 if test "$GCC" = yes; then | |
7718 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"` | |
7719 else | |
7720 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
7721 fi | |
7722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
7723 ;; | |
7724 | |
7725 dgux*) | |
7726 version_type=linux | |
7727 need_lib_prefix=no | |
7728 need_version=no | |
7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
7730 soname_spec='${libname}${release}${shared_ext}$major' | |
7731 shlibpath_var=LD_LIBRARY_PATH | |
7732 ;; | |
7733 | |
7734 freebsd1*) | |
7735 dynamic_linker=no | |
7736 ;; | |
7737 | |
7738 kfreebsd*-gnu) | |
7739 version_type=linux | |
7740 need_lib_prefix=no | |
7741 need_version=no | |
7742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
7743 soname_spec='${libname}${release}${shared_ext}$major' | |
7744 shlibpath_var=LD_LIBRARY_PATH | |
7745 shlibpath_overrides_runpath=no | |
7746 hardcode_into_libs=yes | |
7747 dynamic_linker='GNU ld.so' | |
7748 ;; | |
7749 | |
7750 freebsd*) | |
7751 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
7752 version_type=freebsd-$objformat | |
7753 case $version_type in | |
7754 freebsd-elf*) | |
7755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
7756 need_version=no | |
7757 need_lib_prefix=no | |
7758 ;; | |
7759 freebsd-*) | |
7760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
7761 need_version=yes | |
7762 ;; | |
7763 esac | |
7764 shlibpath_var=LD_LIBRARY_PATH | |
7765 case $host_os in | |
7766 freebsd2*) | |
7767 shlibpath_overrides_runpath=yes | |
7768 ;; | |
7769 freebsd3.01* | freebsdelf3.01*) | |
7770 shlibpath_overrides_runpath=yes | |
7771 hardcode_into_libs=yes | |
7772 ;; | |
7773 *) # from 3.2 on | |
7774 shlibpath_overrides_runpath=no | |
7775 hardcode_into_libs=yes | |
7776 ;; | |
7777 esac | |
7778 ;; | |
7779 | |
7780 gnu*) | |
7781 version_type=linux | |
7782 need_lib_prefix=no | |
7783 need_version=no | |
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
7785 soname_spec='${libname}${release}${shared_ext}$major' | |
7786 shlibpath_var=LD_LIBRARY_PATH | |
7787 hardcode_into_libs=yes | |
7788 ;; | |
7789 | |
7790 hpux9* | hpux10* | hpux11*) | |
7791 # Give a soname corresponding to the major version so that dld.sl refuses to | |
7792 # link against other versions. | |
7793 version_type=sunos | |
7794 need_lib_prefix=no | |
7795 need_version=no | |
7796 case "$host_cpu" in | |
7797 ia64*) | |
7798 shrext='.so' | |
7799 hardcode_into_libs=yes | |
7800 dynamic_linker="$host_os dld.so" | |
7801 shlibpath_var=LD_LIBRARY_PATH | |
7802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
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 if test "X$HPUX_IA64_MODE" = X32; then | |
7806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
7807 else | |
7808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
7809 fi | |
7810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7811 ;; | |
7812 hppa*64*) | |
7813 shrext='.sl' | |
7814 hardcode_into_libs=yes | |
7815 dynamic_linker="$host_os dld.sl" | |
7816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
7817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
7818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7819 soname_spec='${libname}${release}${shared_ext}$major' | |
7820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
7821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
7822 ;; | |
7823 *) | |
7824 shrext='.sl' | |
7825 dynamic_linker="$host_os dld.sl" | |
7826 shlibpath_var=SHLIB_PATH | |
7827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
7828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7829 soname_spec='${libname}${release}${shared_ext}$major' | |
7830 ;; | |
7831 esac | |
7832 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
7833 postinstall_cmds='chmod 555 $lib' | |
7834 ;; | |
7835 | |
7836 irix5* | irix6* | nonstopux*) | |
7837 case $host_os in | |
7838 nonstopux*) version_type=nonstopux ;; | |
7839 *) | |
7840 if test "$lt_cv_prog_gnu_ld" = yes; then | |
7841 version_type=linux | |
7842 else | |
7843 version_type=irix | |
7844 fi ;; | |
7845 esac | |
7846 need_lib_prefix=no | |
7847 need_version=no | |
7848 soname_spec='${libname}${release}${shared_ext}$major' | |
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
7850 case $host_os in | |
7851 irix5* | nonstopux*) | |
7852 libsuff= shlibsuff= | |
7853 ;; | |
7854 *) | |
7855 case $LD in # libtool.m4 will add one of these switches to LD | |
7856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
7857 libsuff= shlibsuff= libmagic=32-bit;; | |
7858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
7859 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
7860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
7861 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
7862 *) libsuff= shlibsuff= libmagic=never-match;; | |
7863 esac | |
7864 ;; | |
7865 esac | |
7866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
7867 shlibpath_overrides_runpath=no | |
7868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
7869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
7870 hardcode_into_libs=yes | |
7871 ;; | |
7872 | |
7873 # No shared lib support for Linux oldld, aout, or coff. | |
7874 linux*oldld* | linux*aout* | linux*coff*) | |
7875 dynamic_linker=no | |
7876 ;; | |
7877 | |
7878 # This must be Linux ELF. | |
7879 linux*) | |
7880 version_type=linux | |
7881 need_lib_prefix=no | |
7882 need_version=no | |
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7884 soname_spec='${libname}${release}${shared_ext}$major' | |
7885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
7886 shlibpath_var=LD_LIBRARY_PATH | |
7887 shlibpath_overrides_runpath=no | |
7888 # This implies no fast_install, which is unacceptable. | |
7889 # Some rework will be needed to allow for fast_install | |
7890 # before this can be enabled. | |
7891 hardcode_into_libs=yes | |
7892 | |
7893 # Append ld.so.conf contents to the search path | |
7894 if test -f /etc/ld.so.conf; then | |
7895 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
7896 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
7897 fi | |
7898 | |
7899 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
7900 # powerpc, because MkLinux only supported shared libraries with the | |
7901 # GNU dynamic linker. Since this was broken with cross compilers, | |
7902 # most powerpc-linux boxes support dynamic linking these days and | |
7903 # people can always --disable-shared, the test was removed, and we | |
7904 # assume the GNU/Linux dynamic linker is in use. | |
7905 dynamic_linker='GNU/Linux ld.so' | |
7906 ;; | |
7907 | |
7908 knetbsd*-gnu) | |
7909 version_type=linux | |
7910 need_lib_prefix=no | |
7911 need_version=no | |
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
7913 soname_spec='${libname}${release}${shared_ext}$major' | |
7914 shlibpath_var=LD_LIBRARY_PATH | |
7915 shlibpath_overrides_runpath=no | |
7916 hardcode_into_libs=yes | |
7917 dynamic_linker='GNU ld.so' | |
7918 ;; | |
7919 | |
7920 netbsd*) | |
7921 version_type=sunos | |
7922 need_lib_prefix=no | |
7923 need_version=no | |
7924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
7926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7927 dynamic_linker='NetBSD (a.out) ld.so' | |
7928 else | |
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
7930 soname_spec='${libname}${release}${shared_ext}$major' | |
7931 dynamic_linker='NetBSD ld.elf_so' | |
7932 fi | |
7933 shlibpath_var=LD_LIBRARY_PATH | |
7934 shlibpath_overrides_runpath=yes | |
7935 hardcode_into_libs=yes | |
7936 ;; | |
7937 | |
7938 newsos6) | |
7939 version_type=linux | |
7940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7941 shlibpath_var=LD_LIBRARY_PATH | |
7942 shlibpath_overrides_runpath=yes | |
7943 ;; | |
7944 | |
7945 nto-qnx*) | |
7946 version_type=linux | |
7947 need_lib_prefix=no | |
7948 need_version=no | |
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7950 soname_spec='${libname}${release}${shared_ext}$major' | |
7951 shlibpath_var=LD_LIBRARY_PATH | |
7952 shlibpath_overrides_runpath=yes | |
7953 ;; | |
7954 | |
7955 openbsd*) | |
7956 version_type=sunos | |
7957 need_lib_prefix=no | |
7958 need_version=yes | |
7959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
7960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
7961 shlibpath_var=LD_LIBRARY_PATH | |
7962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7963 case $host_os in | |
7964 openbsd2.[89] | openbsd2.[89].*) | |
7965 shlibpath_overrides_runpath=no | |
7966 ;; | |
7967 *) | |
7968 shlibpath_overrides_runpath=yes | |
7969 ;; | |
7970 esac | |
7971 else | |
7972 shlibpath_overrides_runpath=yes | |
7973 fi | |
7974 ;; | |
7975 | |
7976 os2*) | |
7977 libname_spec='$name' | |
7978 shrext=".dll" | |
7979 need_lib_prefix=no | |
7980 library_names_spec='$libname${shared_ext} $libname.a' | |
7981 dynamic_linker='OS/2 ld.exe' | |
7982 shlibpath_var=LIBPATH | |
7983 ;; | |
7984 | |
7985 osf3* | osf4* | osf5*) | |
7986 version_type=osf | |
7987 need_lib_prefix=no | |
7988 need_version=no | |
7989 soname_spec='${libname}${release}${shared_ext}$major' | |
7990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
7991 shlibpath_var=LD_LIBRARY_PATH | |
7992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
7993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
7994 ;; | |
7995 | |
7996 sco3.2v5*) | |
7997 version_type=osf | |
7998 soname_spec='${libname}${release}${shared_ext}$major' | |
7999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8000 shlibpath_var=LD_LIBRARY_PATH | |
8001 ;; | |
8002 | |
8003 solaris*) | |
8004 version_type=linux | |
8005 need_lib_prefix=no | |
8006 need_version=no | |
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8008 soname_spec='${libname}${release}${shared_ext}$major' | |
8009 shlibpath_var=LD_LIBRARY_PATH | |
8010 shlibpath_overrides_runpath=yes | |
8011 hardcode_into_libs=yes | |
8012 # ldd complains unless libraries are executable | |
8013 postinstall_cmds='chmod +x $lib' | |
8014 ;; | |
8015 | |
8016 sunos4*) | |
8017 version_type=sunos | |
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
8020 shlibpath_var=LD_LIBRARY_PATH | |
8021 shlibpath_overrides_runpath=yes | |
8022 if test "$with_gnu_ld" = yes; then | |
8023 need_lib_prefix=no | |
8024 fi | |
8025 need_version=yes | |
8026 ;; | |
8027 | |
8028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8029 version_type=linux | |
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8031 soname_spec='${libname}${release}${shared_ext}$major' | |
8032 shlibpath_var=LD_LIBRARY_PATH | |
8033 case $host_vendor in | |
8034 sni) | |
8035 shlibpath_overrides_runpath=no | |
8036 need_lib_prefix=no | |
8037 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8038 runpath_var=LD_RUN_PATH | |
8039 ;; | |
8040 siemens) | |
8041 need_lib_prefix=no | |
8042 ;; | |
8043 motorola) | |
8044 need_lib_prefix=no | |
8045 need_version=no | |
8046 shlibpath_overrides_runpath=no | |
8047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8048 ;; | |
8049 esac | |
8050 ;; | |
8051 | |
8052 sysv4*MP*) | |
8053 if test -d /usr/nec ;then | |
8054 version_type=linux | |
8055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
8056 soname_spec='$libname${shared_ext}.$major' | |
8057 shlibpath_var=LD_LIBRARY_PATH | |
8058 fi | |
8059 ;; | |
8060 | |
8061 uts4*) | |
8062 version_type=linux | |
8063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8064 soname_spec='${libname}${release}${shared_ext}$major' | |
8065 shlibpath_var=LD_LIBRARY_PATH | |
8066 ;; | |
8067 | |
8068 *) | |
8069 dynamic_linker=no | |
8070 ;; | |
8071 esac | |
8072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
8073 echo "${ECHO_T}$dynamic_linker" >&6 | |
8074 test "$dynamic_linker" = no && can_build_shared=no | |
8075 | |
8076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
8077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
8078 hardcode_action= | |
8079 if test -n "$hardcode_libdir_flag_spec" || \ | |
8080 test -n "$runpath_var " || \ | |
8081 test "X$hardcode_automatic"="Xyes" ; then | |
8082 | |
8083 # We can hardcode non-existant directories. | |
8084 if test "$hardcode_direct" != no && | |
8085 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
8086 # have to relink, otherwise we might link with an installed library | |
8087 # when we should be linking with a yet-to-be-installed one | |
8088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
8089 test "$hardcode_minus_L" != no; then | |
8090 # Linking always hardcodes the temporary library directory. | |
8091 hardcode_action=relink | |
8092 else | |
8093 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8094 hardcode_action=immediate | |
8095 fi | |
8096 else | |
8097 # We cannot hardcode anything, or else we can only hardcode existing | |
8098 # directories. | |
8099 hardcode_action=unsupported | |
8100 fi | |
8101 echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
8102 echo "${ECHO_T}$hardcode_action" >&6 | |
8103 | |
8104 if test "$hardcode_action" = relink; then | |
8105 # Fast installation is not supported | |
8106 enable_fast_install=no | |
8107 elif test "$shlibpath_overrides_runpath" = yes || | |
8108 test "$enable_shared" = no; then | |
8109 # Fast installation is not necessary | |
8110 enable_fast_install=needless | |
8111 fi | |
8112 | |
8113 striplib= | |
8114 old_striplib= | |
8115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
8116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
8117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
8118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
8119 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8120 echo "$as_me:$LINENO: result: yes" >&5 | |
8121 echo "${ECHO_T}yes" >&6 | |
8122 else | |
8123 # FIXME - insert some real tests, host_os isn't really good enough | |
8124 case $host_os in | |
8125 darwin*) | |
8126 if test -n "$STRIP" ; then | |
8127 striplib="$STRIP -x" | |
8128 echo "$as_me:$LINENO: result: yes" >&5 | |
8129 echo "${ECHO_T}yes" >&6 | |
8130 else | |
8131 echo "$as_me:$LINENO: result: no" >&5 | |
8132 echo "${ECHO_T}no" >&6 | |
8133 fi | |
8134 ;; | |
8135 *) | |
8136 echo "$as_me:$LINENO: result: no" >&5 | |
8137 echo "${ECHO_T}no" >&6 | |
8138 ;; | |
8139 esac | |
8140 fi | |
8141 | |
8142 if test "x$enable_dlopen" != xyes; then | |
8143 enable_dlopen=unknown | |
8144 enable_dlopen_self=unknown | |
8145 enable_dlopen_self_static=unknown | |
8146 else | |
8147 lt_cv_dlopen=no | |
8148 lt_cv_dlopen_libs= | |
8149 | |
8150 case $host_os in | |
8151 beos*) | |
8152 lt_cv_dlopen="load_add_on" | |
8153 lt_cv_dlopen_libs= | |
8154 lt_cv_dlopen_self=yes | |
8155 ;; | |
8156 | |
8157 mingw* | pw32*) | |
8158 lt_cv_dlopen="LoadLibrary" | |
8159 lt_cv_dlopen_libs= | |
8160 ;; | |
8161 | |
8162 cygwin*) | |
8163 lt_cv_dlopen="dlopen" | |
8164 lt_cv_dlopen_libs= | |
8165 ;; | |
8166 | |
8167 darwin*) | |
8168 # if libdl is installed we need to link against it | |
8169 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8170 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8172 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8173 else | |
8174 ac_check_lib_save_LIBS=$LIBS | |
8175 LIBS="-ldl $LIBS" | |
8176 cat >conftest.$ac_ext <<_ACEOF | |
8177 /* confdefs.h. */ | |
8178 _ACEOF | |
8179 cat confdefs.h >>conftest.$ac_ext | |
8180 cat >>conftest.$ac_ext <<_ACEOF | |
8181 /* end confdefs.h. */ | |
8182 | |
8183 /* Override any gcc2 internal prototype to avoid an error. */ | |
8184 #ifdef __cplusplus | |
8185 extern "C" | |
8186 #endif | |
8187 /* We use char because int might match the return type of a gcc2 | |
8188 builtin and then its argument prototype would still apply. */ | |
8189 char dlopen (); | |
8190 int | |
8191 main () | |
8192 { | |
8193 dlopen (); | |
8194 ; | |
8195 return 0; | |
8196 } | |
8197 _ACEOF | |
8198 rm -f conftest.$ac_objext conftest$ac_exeext | |
8199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8200 (eval $ac_link) 2>conftest.er1 | |
8201 ac_status=$? | |
8202 grep -v '^ *+' conftest.er1 >conftest.err | |
8203 rm -f conftest.er1 | |
8204 cat conftest.err >&5 | |
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8206 (exit $ac_status); } && | |
8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8209 (eval $ac_try) 2>&5 | |
8210 ac_status=$? | |
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8212 (exit $ac_status); }; } && | |
8213 { ac_try='test -s conftest$ac_exeext' | |
8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8215 (eval $ac_try) 2>&5 | |
8216 ac_status=$? | |
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8218 (exit $ac_status); }; }; then | |
8219 ac_cv_lib_dl_dlopen=yes | |
8220 else | |
8221 echo "$as_me: failed program was:" >&5 | |
8222 sed 's/^/| /' conftest.$ac_ext >&5 | |
8223 | |
8224 ac_cv_lib_dl_dlopen=no | |
8225 fi | |
8226 rm -f conftest.err conftest.$ac_objext \ | |
8227 conftest$ac_exeext conftest.$ac_ext | |
8228 LIBS=$ac_check_lib_save_LIBS | |
8229 fi | |
8230 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8231 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8232 if test $ac_cv_lib_dl_dlopen = yes; then | |
8233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8234 else | |
8235 | |
8236 lt_cv_dlopen="dyld" | |
8237 lt_cv_dlopen_libs= | |
8238 lt_cv_dlopen_self=yes | |
8239 | |
8240 fi | |
8241 | |
8242 ;; | |
8243 | |
8244 *) | |
8245 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
8246 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
8247 if test "${ac_cv_func_shl_load+set}" = set; then | |
8248 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8249 else | |
8250 cat >conftest.$ac_ext <<_ACEOF | |
8251 /* confdefs.h. */ | |
8252 _ACEOF | |
8253 cat confdefs.h >>conftest.$ac_ext | |
8254 cat >>conftest.$ac_ext <<_ACEOF | |
8255 /* end confdefs.h. */ | |
8256 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
8257 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8258 #define shl_load innocuous_shl_load | |
8259 | |
8260 /* System header to define __stub macros and hopefully few prototypes, | |
8261 which can conflict with char shl_load (); below. | |
8262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8263 <limits.h> exists even on freestanding compilers. */ | |
8264 | |
8265 #ifdef __STDC__ | |
8266 # include <limits.h> | |
8267 #else | |
8268 # include <assert.h> | |
8269 #endif | |
8270 | |
8271 #undef shl_load | |
8272 | |
8273 /* Override any gcc2 internal prototype to avoid an error. */ | |
8274 #ifdef __cplusplus | |
8275 extern "C" | |
8276 { | |
8277 #endif | |
8278 /* We use char because int might match the return type of a gcc2 | |
8279 builtin and then its argument prototype would still apply. */ | |
8280 char shl_load (); | |
8281 /* The GNU C library defines this for functions which it implements | |
8282 to always fail with ENOSYS. Some functions are actually named | |
8283 something starting with __ and the normal name is an alias. */ | |
8284 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
8285 choke me | |
8286 #else | |
8287 char (*f) () = shl_load; | |
8288 #endif | |
8289 #ifdef __cplusplus | |
8290 } | |
8291 #endif | |
8292 | |
8293 int | |
8294 main () | |
8295 { | |
8296 return f != shl_load; | |
8297 ; | |
8298 return 0; | |
8299 } | |
8300 _ACEOF | |
8301 rm -f conftest.$ac_objext conftest$ac_exeext | |
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8303 (eval $ac_link) 2>conftest.er1 | |
8304 ac_status=$? | |
8305 grep -v '^ *+' conftest.er1 >conftest.err | |
8306 rm -f conftest.er1 | |
8307 cat conftest.err >&5 | |
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8309 (exit $ac_status); } && | |
8310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8312 (eval $ac_try) 2>&5 | |
8313 ac_status=$? | |
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8315 (exit $ac_status); }; } && | |
8316 { ac_try='test -s conftest$ac_exeext' | |
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8318 (eval $ac_try) 2>&5 | |
8319 ac_status=$? | |
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8321 (exit $ac_status); }; }; then | |
8322 ac_cv_func_shl_load=yes | |
8323 else | |
8324 echo "$as_me: failed program was:" >&5 | |
8325 sed 's/^/| /' conftest.$ac_ext >&5 | |
8326 | |
8327 ac_cv_func_shl_load=no | |
8328 fi | |
8329 rm -f conftest.err conftest.$ac_objext \ | |
8330 conftest$ac_exeext conftest.$ac_ext | |
8331 fi | |
8332 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
8333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
8334 if test $ac_cv_func_shl_load = yes; then | |
8335 lt_cv_dlopen="shl_load" | |
8336 else | |
8337 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
8338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
8339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
8340 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8341 else | |
8342 ac_check_lib_save_LIBS=$LIBS | |
8343 LIBS="-ldld $LIBS" | |
8344 cat >conftest.$ac_ext <<_ACEOF | |
8345 /* confdefs.h. */ | |
8346 _ACEOF | |
8347 cat confdefs.h >>conftest.$ac_ext | |
8348 cat >>conftest.$ac_ext <<_ACEOF | |
8349 /* end confdefs.h. */ | |
8350 | |
8351 /* Override any gcc2 internal prototype to avoid an error. */ | |
8352 #ifdef __cplusplus | |
8353 extern "C" | |
8354 #endif | |
8355 /* We use char because int might match the return type of a gcc2 | |
8356 builtin and then its argument prototype would still apply. */ | |
8357 char shl_load (); | |
8358 int | |
8359 main () | |
8360 { | |
8361 shl_load (); | |
8362 ; | |
8363 return 0; | |
8364 } | |
8365 _ACEOF | |
8366 rm -f conftest.$ac_objext conftest$ac_exeext | |
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8368 (eval $ac_link) 2>conftest.er1 | |
8369 ac_status=$? | |
8370 grep -v '^ *+' conftest.er1 >conftest.err | |
8371 rm -f conftest.er1 | |
8372 cat conftest.err >&5 | |
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8374 (exit $ac_status); } && | |
8375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8377 (eval $ac_try) 2>&5 | |
8378 ac_status=$? | |
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8380 (exit $ac_status); }; } && | |
8381 { ac_try='test -s conftest$ac_exeext' | |
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8383 (eval $ac_try) 2>&5 | |
8384 ac_status=$? | |
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8386 (exit $ac_status); }; }; then | |
8387 ac_cv_lib_dld_shl_load=yes | |
8388 else | |
8389 echo "$as_me: failed program was:" >&5 | |
8390 sed 's/^/| /' conftest.$ac_ext >&5 | |
8391 | |
8392 ac_cv_lib_dld_shl_load=no | |
8393 fi | |
8394 rm -f conftest.err conftest.$ac_objext \ | |
8395 conftest$ac_exeext conftest.$ac_ext | |
8396 LIBS=$ac_check_lib_save_LIBS | |
8397 fi | |
8398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
8399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
8400 if test $ac_cv_lib_dld_shl_load = yes; then | |
8401 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
8402 else | |
8403 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
8404 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
8405 if test "${ac_cv_func_dlopen+set}" = set; then | |
8406 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8407 else | |
8408 cat >conftest.$ac_ext <<_ACEOF | |
8409 /* confdefs.h. */ | |
8410 _ACEOF | |
8411 cat confdefs.h >>conftest.$ac_ext | |
8412 cat >>conftest.$ac_ext <<_ACEOF | |
8413 /* end confdefs.h. */ | |
8414 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
8415 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8416 #define dlopen innocuous_dlopen | |
8417 | |
8418 /* System header to define __stub macros and hopefully few prototypes, | |
8419 which can conflict with char dlopen (); below. | |
8420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8421 <limits.h> exists even on freestanding compilers. */ | |
8422 | |
8423 #ifdef __STDC__ | |
8424 # include <limits.h> | |
8425 #else | |
8426 # include <assert.h> | |
8427 #endif | |
8428 | |
8429 #undef dlopen | |
8430 | |
8431 /* Override any gcc2 internal prototype to avoid an error. */ | |
8432 #ifdef __cplusplus | |
8433 extern "C" | |
8434 { | |
8435 #endif | |
8436 /* We use char because int might match the return type of a gcc2 | |
8437 builtin and then its argument prototype would still apply. */ | |
8438 char dlopen (); | |
8439 /* The GNU C library defines this for functions which it implements | |
8440 to always fail with ENOSYS. Some functions are actually named | |
8441 something starting with __ and the normal name is an alias. */ | |
8442 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
8443 choke me | |
8444 #else | |
8445 char (*f) () = dlopen; | |
8446 #endif | |
8447 #ifdef __cplusplus | |
8448 } | |
8449 #endif | |
8450 | |
8451 int | |
8452 main () | |
8453 { | |
8454 return f != dlopen; | |
8455 ; | |
8456 return 0; | |
8457 } | |
8458 _ACEOF | |
8459 rm -f conftest.$ac_objext conftest$ac_exeext | |
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8461 (eval $ac_link) 2>conftest.er1 | |
8462 ac_status=$? | |
8463 grep -v '^ *+' conftest.er1 >conftest.err | |
8464 rm -f conftest.er1 | |
8465 cat conftest.err >&5 | |
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8467 (exit $ac_status); } && | |
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8470 (eval $ac_try) 2>&5 | |
8471 ac_status=$? | |
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8473 (exit $ac_status); }; } && | |
8474 { ac_try='test -s conftest$ac_exeext' | |
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8476 (eval $ac_try) 2>&5 | |
8477 ac_status=$? | |
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8479 (exit $ac_status); }; }; then | |
8480 ac_cv_func_dlopen=yes | |
8481 else | |
8482 echo "$as_me: failed program was:" >&5 | |
8483 sed 's/^/| /' conftest.$ac_ext >&5 | |
8484 | |
8485 ac_cv_func_dlopen=no | |
8486 fi | |
8487 rm -f conftest.err conftest.$ac_objext \ | |
8488 conftest$ac_exeext conftest.$ac_ext | |
8489 fi | |
8490 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
8491 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
8492 if test $ac_cv_func_dlopen = yes; then | |
8493 lt_cv_dlopen="dlopen" | |
8494 else | |
8495 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8496 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8497 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8498 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8499 else | |
8500 ac_check_lib_save_LIBS=$LIBS | |
8501 LIBS="-ldl $LIBS" | |
8502 cat >conftest.$ac_ext <<_ACEOF | |
8503 /* confdefs.h. */ | |
8504 _ACEOF | |
8505 cat confdefs.h >>conftest.$ac_ext | |
8506 cat >>conftest.$ac_ext <<_ACEOF | |
8507 /* end confdefs.h. */ | |
8508 | |
8509 /* Override any gcc2 internal prototype to avoid an error. */ | |
8510 #ifdef __cplusplus | |
8511 extern "C" | |
8512 #endif | |
8513 /* We use char because int might match the return type of a gcc2 | |
8514 builtin and then its argument prototype would still apply. */ | |
8515 char dlopen (); | |
8516 int | |
8517 main () | |
8518 { | |
8519 dlopen (); | |
8520 ; | |
8521 return 0; | |
8522 } | |
8523 _ACEOF | |
8524 rm -f conftest.$ac_objext conftest$ac_exeext | |
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8526 (eval $ac_link) 2>conftest.er1 | |
8527 ac_status=$? | |
8528 grep -v '^ *+' conftest.er1 >conftest.err | |
8529 rm -f conftest.er1 | |
8530 cat conftest.err >&5 | |
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8532 (exit $ac_status); } && | |
8533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8535 (eval $ac_try) 2>&5 | |
8536 ac_status=$? | |
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8538 (exit $ac_status); }; } && | |
8539 { ac_try='test -s conftest$ac_exeext' | |
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8541 (eval $ac_try) 2>&5 | |
8542 ac_status=$? | |
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8544 (exit $ac_status); }; }; then | |
8545 ac_cv_lib_dl_dlopen=yes | |
8546 else | |
8547 echo "$as_me: failed program was:" >&5 | |
8548 sed 's/^/| /' conftest.$ac_ext >&5 | |
8549 | |
8550 ac_cv_lib_dl_dlopen=no | |
8551 fi | |
8552 rm -f conftest.err conftest.$ac_objext \ | |
8553 conftest$ac_exeext conftest.$ac_ext | |
8554 LIBS=$ac_check_lib_save_LIBS | |
8555 fi | |
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8558 if test $ac_cv_lib_dl_dlopen = yes; then | |
8559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8560 else | |
8561 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
8562 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
8563 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
8564 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8565 else | |
8566 ac_check_lib_save_LIBS=$LIBS | |
8567 LIBS="-lsvld $LIBS" | |
8568 cat >conftest.$ac_ext <<_ACEOF | |
8569 /* confdefs.h. */ | |
8570 _ACEOF | |
8571 cat confdefs.h >>conftest.$ac_ext | |
8572 cat >>conftest.$ac_ext <<_ACEOF | |
8573 /* end confdefs.h. */ | |
8574 | |
8575 /* Override any gcc2 internal prototype to avoid an error. */ | |
8576 #ifdef __cplusplus | |
8577 extern "C" | |
8578 #endif | |
8579 /* We use char because int might match the return type of a gcc2 | |
8580 builtin and then its argument prototype would still apply. */ | |
8581 char dlopen (); | |
8582 int | |
8583 main () | |
8584 { | |
8585 dlopen (); | |
8586 ; | |
8587 return 0; | |
8588 } | |
8589 _ACEOF | |
8590 rm -f conftest.$ac_objext conftest$ac_exeext | |
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8592 (eval $ac_link) 2>conftest.er1 | |
8593 ac_status=$? | |
8594 grep -v '^ *+' conftest.er1 >conftest.err | |
8595 rm -f conftest.er1 | |
8596 cat conftest.err >&5 | |
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8598 (exit $ac_status); } && | |
8599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8601 (eval $ac_try) 2>&5 | |
8602 ac_status=$? | |
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8604 (exit $ac_status); }; } && | |
8605 { ac_try='test -s conftest$ac_exeext' | |
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8607 (eval $ac_try) 2>&5 | |
8608 ac_status=$? | |
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8610 (exit $ac_status); }; }; then | |
8611 ac_cv_lib_svld_dlopen=yes | |
8612 else | |
8613 echo "$as_me: failed program was:" >&5 | |
8614 sed 's/^/| /' conftest.$ac_ext >&5 | |
8615 | |
8616 ac_cv_lib_svld_dlopen=no | |
8617 fi | |
8618 rm -f conftest.err conftest.$ac_objext \ | |
8619 conftest$ac_exeext conftest.$ac_ext | |
8620 LIBS=$ac_check_lib_save_LIBS | |
8621 fi | |
8622 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
8623 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
8624 if test $ac_cv_lib_svld_dlopen = yes; then | |
8625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
8626 else | |
8627 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
8628 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
8629 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
8630 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8631 else | |
8632 ac_check_lib_save_LIBS=$LIBS | |
8633 LIBS="-ldld $LIBS" | |
8634 cat >conftest.$ac_ext <<_ACEOF | |
8635 /* confdefs.h. */ | |
8636 _ACEOF | |
8637 cat confdefs.h >>conftest.$ac_ext | |
8638 cat >>conftest.$ac_ext <<_ACEOF | |
8639 /* end confdefs.h. */ | |
8640 | |
8641 /* Override any gcc2 internal prototype to avoid an error. */ | |
8642 #ifdef __cplusplus | |
8643 extern "C" | |
8644 #endif | |
8645 /* We use char because int might match the return type of a gcc2 | |
8646 builtin and then its argument prototype would still apply. */ | |
8647 char dld_link (); | |
8648 int | |
8649 main () | |
8650 { | |
8651 dld_link (); | |
8652 ; | |
8653 return 0; | |
8654 } | |
8655 _ACEOF | |
8656 rm -f conftest.$ac_objext conftest$ac_exeext | |
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8658 (eval $ac_link) 2>conftest.er1 | |
8659 ac_status=$? | |
8660 grep -v '^ *+' conftest.er1 >conftest.err | |
8661 rm -f conftest.er1 | |
8662 cat conftest.err >&5 | |
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8664 (exit $ac_status); } && | |
8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8667 (eval $ac_try) 2>&5 | |
8668 ac_status=$? | |
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8670 (exit $ac_status); }; } && | |
8671 { ac_try='test -s conftest$ac_exeext' | |
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8673 (eval $ac_try) 2>&5 | |
8674 ac_status=$? | |
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8676 (exit $ac_status); }; }; then | |
8677 ac_cv_lib_dld_dld_link=yes | |
8678 else | |
8679 echo "$as_me: failed program was:" >&5 | |
8680 sed 's/^/| /' conftest.$ac_ext >&5 | |
8681 | |
8682 ac_cv_lib_dld_dld_link=no | |
8683 fi | |
8684 rm -f conftest.err conftest.$ac_objext \ | |
8685 conftest$ac_exeext conftest.$ac_ext | |
8686 LIBS=$ac_check_lib_save_LIBS | |
8687 fi | |
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
8689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
8690 if test $ac_cv_lib_dld_dld_link = yes; then | |
8691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
8692 fi | |
8693 | |
8694 | |
8695 fi | |
8696 | |
8697 | |
8698 fi | |
8699 | |
8700 | |
8701 fi | |
8702 | |
8703 | |
8704 fi | |
8705 | |
8706 | |
8707 fi | |
8708 | |
8709 ;; | |
8710 esac | |
8711 | |
8712 if test "x$lt_cv_dlopen" != xno; then | |
8713 enable_dlopen=yes | |
8714 else | |
8715 enable_dlopen=no | |
8716 fi | |
8717 | |
8718 case $lt_cv_dlopen in | |
8719 dlopen) | |
8720 save_CPPFLAGS="$CPPFLAGS" | |
8721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
8722 | |
8723 save_LDFLAGS="$LDFLAGS" | |
8724 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
8725 | |
8726 save_LIBS="$LIBS" | |
8727 LIBS="$lt_cv_dlopen_libs $LIBS" | |
8728 | |
8729 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
8730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
8731 if test "${lt_cv_dlopen_self+set}" = set; then | |
8732 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8733 else | |
8734 if test "$cross_compiling" = yes; then : | |
8735 lt_cv_dlopen_self=cross | |
8736 else | |
8737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8738 lt_status=$lt_dlunknown | |
8739 cat > conftest.$ac_ext <<EOF | |
8740 #line 8740 "configure" | |
8741 #include "confdefs.h" | |
8742 | |
8743 #if HAVE_DLFCN_H | |
8744 #include <dlfcn.h> | |
8745 #endif | |
8746 | |
8747 #include <stdio.h> | |
8748 | |
8749 #ifdef RTLD_GLOBAL | |
8750 # define LT_DLGLOBAL RTLD_GLOBAL | |
8751 #else | |
8752 # ifdef DL_GLOBAL | |
8753 # define LT_DLGLOBAL DL_GLOBAL | |
8754 # else | |
8755 # define LT_DLGLOBAL 0 | |
8756 # endif | |
8757 #endif | |
8758 | |
8759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8760 find out it does not work in some platform. */ | |
8761 #ifndef LT_DLLAZY_OR_NOW | |
8762 # ifdef RTLD_LAZY | |
8763 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8764 # else | |
8765 # ifdef DL_LAZY | |
8766 # define LT_DLLAZY_OR_NOW DL_LAZY | |
8767 # else | |
8768 # ifdef RTLD_NOW | |
8769 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8770 # else | |
8771 # ifdef DL_NOW | |
8772 # define LT_DLLAZY_OR_NOW DL_NOW | |
8773 # else | |
8774 # define LT_DLLAZY_OR_NOW 0 | |
8775 # endif | |
8776 # endif | |
8777 # endif | |
8778 # endif | |
8779 #endif | |
8780 | |
8781 #ifdef __cplusplus | |
8782 extern "C" void exit (int); | |
8783 #endif | |
8784 | |
8785 void fnord() { int i=42;} | |
8786 int main () | |
8787 { | |
8788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8789 int status = $lt_dlunknown; | |
8790 | |
8791 if (self) | |
8792 { | |
8793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8795 /* dlclose (self); */ | |
8796 } | |
8797 | |
8798 exit (status); | |
8799 } | |
8800 EOF | |
8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8802 (eval $ac_link) 2>&5 | |
8803 ac_status=$? | |
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8806 (./conftest; exit; ) 2>/dev/null | |
8807 lt_status=$? | |
8808 case x$lt_status in | |
8809 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
8810 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
8811 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
8812 esac | |
8813 else : | |
8814 # compilation failed | |
8815 lt_cv_dlopen_self=no | |
8816 fi | |
8817 fi | |
8818 rm -fr conftest* | |
8819 | |
8820 | |
8821 fi | |
8822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
8823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
8824 | |
8825 if test "x$lt_cv_dlopen_self" = xyes; then | |
8826 LDFLAGS="$LDFLAGS $link_static_flag" | |
8827 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
8828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
8829 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
8830 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8831 else | |
8832 if test "$cross_compiling" = yes; then : | |
8833 lt_cv_dlopen_self_static=cross | |
8834 else | |
8835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
8836 lt_status=$lt_dlunknown | |
8837 cat > conftest.$ac_ext <<EOF | |
8838 #line 8838 "configure" | |
8839 #include "confdefs.h" | |
8840 | |
8841 #if HAVE_DLFCN_H | |
8842 #include <dlfcn.h> | |
8843 #endif | |
8844 | |
8845 #include <stdio.h> | |
8846 | |
8847 #ifdef RTLD_GLOBAL | |
8848 # define LT_DLGLOBAL RTLD_GLOBAL | |
8849 #else | |
8850 # ifdef DL_GLOBAL | |
8851 # define LT_DLGLOBAL DL_GLOBAL | |
8852 # else | |
8853 # define LT_DLGLOBAL 0 | |
8854 # endif | |
8855 #endif | |
8856 | |
8857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
8858 find out it does not work in some platform. */ | |
8859 #ifndef LT_DLLAZY_OR_NOW | |
8860 # ifdef RTLD_LAZY | |
8861 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
8862 # else | |
8863 # ifdef DL_LAZY | |
8864 # define LT_DLLAZY_OR_NOW DL_LAZY | |
8865 # else | |
8866 # ifdef RTLD_NOW | |
8867 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
8868 # else | |
8869 # ifdef DL_NOW | |
8870 # define LT_DLLAZY_OR_NOW DL_NOW | |
8871 # else | |
8872 # define LT_DLLAZY_OR_NOW 0 | |
8873 # endif | |
8874 # endif | |
8875 # endif | |
8876 # endif | |
8877 #endif | |
8878 | |
8879 #ifdef __cplusplus | |
8880 extern "C" void exit (int); | |
8881 #endif | |
8882 | |
8883 void fnord() { int i=42;} | |
8884 int main () | |
8885 { | |
8886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
8887 int status = $lt_dlunknown; | |
8888 | |
8889 if (self) | |
8890 { | |
8891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
8892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
8893 /* dlclose (self); */ | |
8894 } | |
8895 | |
8896 exit (status); | |
8897 } | |
8898 EOF | |
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8900 (eval $ac_link) 2>&5 | |
8901 ac_status=$? | |
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
8904 (./conftest; exit; ) 2>/dev/null | |
8905 lt_status=$? | |
8906 case x$lt_status in | |
8907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
8908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
8909 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
8910 esac | |
8911 else : | |
8912 # compilation failed | |
8913 lt_cv_dlopen_self_static=no | |
8914 fi | |
8915 fi | |
8916 rm -fr conftest* | |
8917 | |
8918 | |
8919 fi | |
8920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
8921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
8922 fi | |
8923 | |
8924 CPPFLAGS="$save_CPPFLAGS" | |
8925 LDFLAGS="$save_LDFLAGS" | |
8926 LIBS="$save_LIBS" | |
8927 ;; | |
8928 esac | |
8929 | |
8930 case $lt_cv_dlopen_self in | |
8931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
8932 *) enable_dlopen_self=unknown ;; | |
8933 esac | |
8934 | |
8935 case $lt_cv_dlopen_self_static in | |
8936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
8937 *) enable_dlopen_self_static=unknown ;; | |
8938 esac | |
8939 fi | |
8940 | |
8941 | |
8942 # Report which librarie types wil actually be built | |
8943 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
8944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
8945 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
8946 echo "${ECHO_T}$can_build_shared" >&6 | |
8947 | |
8948 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
8949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
8950 test "$can_build_shared" = "no" && enable_shared=no | |
8951 | |
8952 # On AIX, shared libraries and static libraries use the same namespace, and | |
8953 # are all built from PIC. | |
8954 case "$host_os" in | |
8955 aix3*) | |
8956 test "$enable_shared" = yes && enable_static=no | |
8957 if test -n "$RANLIB"; then | |
8958 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
8959 postinstall_cmds='$RANLIB $lib' | |
8960 fi | |
8961 ;; | |
8962 | |
8963 aix4*) | |
8964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
8965 test "$enable_shared" = yes && enable_static=no | |
8966 fi | |
8967 ;; | |
8968 darwin* | rhapsody*) | |
8969 if test "$GCC" = yes; then | |
8970 archive_cmds_need_lc=no | |
8971 case "$host_os" in | |
8972 rhapsody* | darwin1.[012]) | |
8973 allow_undefined_flag='-undefined suppress' | |
8974 ;; | |
8975 *) # Darwin 1.3 on | |
8976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
8977 allow_undefined_flag='-flat_namespace -undefined suppress' | |
8978 else | |
8979 case ${MACOSX_DEPLOYMENT_TARGET} in | |
8980 10.[012]) | |
8981 allow_undefined_flag='-flat_namespace -undefined suppress' | |
8982 ;; | |
8983 10.*) | |
8984 allow_undefined_flag='-undefined dynamic_lookup' | |
8985 ;; | |
8986 esac | |
8987 fi | |
8988 ;; | |
8989 esac | |
8990 output_verbose_link_cmd='echo' | |
8991 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | |
8992 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8993 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
8994 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}' | |
8995 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}' | |
8996 hardcode_direct=no | |
8997 hardcode_automatic=yes | |
8998 hardcode_shlibpath_var=unsupported | |
8999 whole_archive_flag_spec='-all_load $convenience' | |
9000 link_all_deplibs=yes | |
9001 else | |
9002 ld_shlibs=no | |
9003 fi | |
9004 ;; | |
9005 esac | |
9006 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
9007 echo "${ECHO_T}$enable_shared" >&6 | |
9008 | |
9009 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
9010 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
9011 # Make sure either enable_shared or enable_static is yes. | |
9012 test "$enable_shared" = yes || enable_static=yes | |
9013 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
9014 echo "${ECHO_T}$enable_static" >&6 | |
9015 | |
9016 # The else clause should only fire when bootstrapping the | |
9017 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
9018 # with your package, and you will get complaints that there are | |
9019 # no rules to generate ltmain.sh. | |
9020 if test -f "$ltmain"; then | |
9021 # See if we are running on zsh, and set the options which allow our commands through | |
9022 # without removal of \ escapes. | |
9023 if test -n "${ZSH_VERSION+set}" ; then | |
9024 setopt NO_GLOB_SUBST | |
9025 fi | |
9026 # Now quote all the things that may contain metacharacters while being | |
9027 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
9028 # variables and quote the copies for generation of the libtool script. | |
9029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
9030 SED SHELL STRIP \ | |
9031 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
9032 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
9033 deplibs_check_method reload_flag reload_cmds need_locks \ | |
9034 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
9035 lt_cv_sys_global_symbol_to_c_name_address \ | |
9036 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
9037 old_postinstall_cmds old_postuninstall_cmds \ | |
9038 compiler \ | |
9039 CC \ | |
9040 LD \ | |
9041 lt_prog_compiler_wl \ | |
9042 lt_prog_compiler_pic \ | |
9043 lt_prog_compiler_static \ | |
9044 lt_prog_compiler_no_builtin_flag \ | |
9045 export_dynamic_flag_spec \ | |
9046 thread_safe_flag_spec \ | |
9047 whole_archive_flag_spec \ | |
9048 enable_shared_with_static_runtimes \ | |
9049 old_archive_cmds \ | |
9050 old_archive_from_new_cmds \ | |
9051 predep_objects \ | |
9052 postdep_objects \ | |
9053 predeps \ | |
9054 postdeps \ | |
9055 compiler_lib_search_path \ | |
9056 archive_cmds \ | |
9057 archive_expsym_cmds \ | |
9058 postinstall_cmds \ | |
9059 postuninstall_cmds \ | |
9060 old_archive_from_expsyms_cmds \ | |
9061 allow_undefined_flag \ | |
9062 no_undefined_flag \ | |
9063 export_symbols_cmds \ | |
9064 hardcode_libdir_flag_spec \ | |
9065 hardcode_libdir_flag_spec_ld \ | |
9066 hardcode_libdir_separator \ | |
9067 hardcode_automatic \ | |
9068 module_cmds \ | |
9069 module_expsym_cmds \ | |
9070 lt_cv_prog_compiler_c_o \ | |
9071 exclude_expsyms \ | |
9072 include_expsyms; do | |
9073 | |
9074 case $var in | |
9075 old_archive_cmds | \ | |
9076 old_archive_from_new_cmds | \ | |
9077 archive_cmds | \ | |
9078 archive_expsym_cmds | \ | |
9079 module_cmds | \ | |
9080 module_expsym_cmds | \ | |
9081 old_archive_from_expsyms_cmds | \ | |
9082 export_symbols_cmds | \ | |
9083 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
9084 postinstall_cmds | postuninstall_cmds | \ | |
9085 old_postinstall_cmds | old_postuninstall_cmds | \ | |
9086 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
9087 # Double-quote double-evaled strings. | |
9088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
9089 ;; | |
9090 *) | |
9091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
9092 ;; | |
9093 esac | |
9094 done | |
9095 | |
9096 case $lt_echo in | |
9097 *'\$0 --fallback-echo"') | |
9098 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
9099 ;; | |
9100 esac | |
9101 | |
9102 cfgfile="${ofile}T" | |
9103 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
9104 $rm -f "$cfgfile" | |
9105 { echo "$as_me:$LINENO: creating $ofile" >&5 | |
9106 echo "$as_me: creating $ofile" >&6;} | |
9107 | |
9108 cat <<__EOF__ >> "$cfgfile" | |
9109 #! $SHELL | |
9110 | |
9111 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
9112 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
9113 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9114 # | |
9115 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
9116 # Free Software Foundation, Inc. | |
9117 # | |
9118 # This file is part of GNU Libtool: | |
9119 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
9120 # | |
9121 # This program is free software; you can redistribute it and/or modify | |
9122 # it under the terms of the GNU General Public License as published by | |
9123 # the Free Software Foundation; either version 2 of the License, or | |
9124 # (at your option) any later version. | |
9125 # | |
9126 # This program is distributed in the hope that it will be useful, but | |
9127 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9128 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9129 # General Public License for more details. | |
9130 # | |
9131 # You should have received a copy of the GNU General Public License | |
9132 # along with this program; if not, write to the Free Software | |
9133 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
9134 # | |
9135 # As a special exception to the GNU General Public License, if you | |
9136 # distribute this file as part of a program that contains a | |
9137 # configuration script generated by Autoconf, you may include it under | |
9138 # the same distribution terms that you use for the rest of that program. | |
9139 | |
9140 # A sed program that does not truncate output. | |
9141 SED=$lt_SED | |
9142 | |
9143 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
9144 Xsed="$SED -e s/^X//" | |
9145 | |
9146 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
9147 # if CDPATH is set. | |
9148 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
9149 | |
9150 # The names of the tagged configurations supported by this script. | |
9151 available_tags= | |
9152 | |
9153 # ### BEGIN LIBTOOL CONFIG | |
9154 | |
9155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9156 | |
9157 # Shell to use when invoking shell scripts. | |
9158 SHELL=$lt_SHELL | |
9159 | |
9160 # Whether or not to build shared libraries. | |
9161 build_libtool_libs=$enable_shared | |
9162 | |
9163 # Whether or not to build static libraries. | |
9164 build_old_libs=$enable_static | |
9165 | |
9166 # Whether or not to add -lc for building shared libraries. | |
9167 build_libtool_need_lc=$archive_cmds_need_lc | |
9168 | |
9169 # Whether or not to disallow shared libs when runtime libs are static | |
9170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
9171 | |
9172 # Whether or not to optimize for fast installation. | |
9173 fast_install=$enable_fast_install | |
9174 | |
9175 # The host system. | |
9176 host_alias=$host_alias | |
9177 host=$host | |
9178 | |
9179 # An echo program that does not interpret backslashes. | |
9180 echo=$lt_echo | |
9181 | |
9182 # The archiver. | |
9183 AR=$lt_AR | |
9184 AR_FLAGS=$lt_AR_FLAGS | |
9185 | |
9186 # A C compiler. | |
9187 LTCC=$lt_LTCC | |
9188 | |
9189 # A language-specific compiler. | |
9190 CC=$lt_compiler | |
9191 | |
9192 # Is the compiler the GNU C compiler? | |
9193 with_gcc=$GCC | |
9194 | |
9195 # An ERE matcher. | |
9196 EGREP=$lt_EGREP | |
9197 | |
9198 # The linker used to build libraries. | |
9199 LD=$lt_LD | |
9200 | |
9201 # Whether we need hard or soft links. | |
9202 LN_S=$lt_LN_S | |
9203 | |
9204 # A BSD-compatible nm program. | |
9205 NM=$lt_NM | |
9206 | |
9207 # A symbol stripping program | |
9208 STRIP=$lt_STRIP | |
9209 | |
9210 # Used to examine libraries when file_magic_cmd begins "file" | |
9211 MAGIC_CMD=$MAGIC_CMD | |
9212 | |
9213 # Used on cygwin: DLL creation program. | |
9214 DLLTOOL="$DLLTOOL" | |
9215 | |
9216 # Used on cygwin: object dumper. | |
9217 OBJDUMP="$OBJDUMP" | |
9218 | |
9219 # Used on cygwin: assembler. | |
9220 AS="$AS" | |
9221 | |
9222 # The name of the directory that contains temporary libtool files. | |
9223 objdir=$objdir | |
9224 | |
9225 # How to create reloadable object files. | |
9226 reload_flag=$lt_reload_flag | |
9227 reload_cmds=$lt_reload_cmds | |
9228 | |
9229 # How to pass a linker flag through the compiler. | |
9230 wl=$lt_lt_prog_compiler_wl | |
9231 | |
9232 # Object file suffix (normally "o"). | |
9233 objext="$ac_objext" | |
9234 | |
9235 # Old archive suffix (normally "a"). | |
9236 libext="$libext" | |
9237 | |
9238 # Shared library suffix (normally ".so"). | |
9239 shrext='$shrext' | |
9240 | |
9241 # Executable file suffix (normally ""). | |
9242 exeext="$exeext" | |
9243 | |
9244 # Additional compiler flags for building library objects. | |
9245 pic_flag=$lt_lt_prog_compiler_pic | |
9246 pic_mode=$pic_mode | |
9247 | |
9248 # What is the maximum length of a command? | |
9249 max_cmd_len=$lt_cv_sys_max_cmd_len | |
9250 | |
9251 # Does compiler simultaneously support -c and -o options? | |
9252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
9253 | |
9254 # Must we lock files when doing compilation ? | |
9255 need_locks=$lt_need_locks | |
9256 | |
9257 # Do we need the lib prefix for modules? | |
9258 need_lib_prefix=$need_lib_prefix | |
9259 | |
9260 # Do we need a version for libraries? | |
9261 need_version=$need_version | |
9262 | |
9263 # Whether dlopen is supported. | |
9264 dlopen_support=$enable_dlopen | |
9265 | |
9266 # Whether dlopen of programs is supported. | |
9267 dlopen_self=$enable_dlopen_self | |
9268 | |
9269 # Whether dlopen of statically linked programs is supported. | |
9270 dlopen_self_static=$enable_dlopen_self_static | |
9271 | |
9272 # Compiler flag to prevent dynamic linking. | |
9273 link_static_flag=$lt_lt_prog_compiler_static | |
9274 | |
9275 # Compiler flag to turn off builtin functions. | |
9276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
9277 | |
9278 # Compiler flag to allow reflexive dlopens. | |
9279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
9280 | |
9281 # Compiler flag to generate shared objects directly from archives. | |
9282 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
9283 | |
9284 # Compiler flag to generate thread-safe objects. | |
9285 thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
9286 | |
9287 # Library versioning type. | |
9288 version_type=$version_type | |
9289 | |
9290 # Format of library name prefix. | |
9291 libname_spec=$lt_libname_spec | |
9292 | |
9293 # List of archive names. First name is the real one, the rest are links. | |
9294 # The last name is the one that the linker finds with -lNAME. | |
9295 library_names_spec=$lt_library_names_spec | |
9296 | |
9297 # The coded name of the library, if different from the real name. | |
9298 soname_spec=$lt_soname_spec | |
9299 | |
9300 # Commands used to build and install an old-style archive. | |
9301 RANLIB=$lt_RANLIB | |
9302 old_archive_cmds=$lt_old_archive_cmds | |
9303 old_postinstall_cmds=$lt_old_postinstall_cmds | |
9304 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
9305 | |
9306 # Create an old-style archive from a shared archive. | |
9307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
9308 | |
9309 # Create a temporary old-style archive to link instead of a shared archive. | |
9310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
9311 | |
9312 # Commands used to build and install a shared archive. | |
9313 archive_cmds=$lt_archive_cmds | |
9314 archive_expsym_cmds=$lt_archive_expsym_cmds | |
9315 postinstall_cmds=$lt_postinstall_cmds | |
9316 postuninstall_cmds=$lt_postuninstall_cmds | |
9317 | |
9318 # Commands used to build a loadable module (assumed same as above if empty) | |
9319 module_cmds=$lt_module_cmds | |
9320 module_expsym_cmds=$lt_module_expsym_cmds | |
9321 | |
9322 # Commands to strip libraries. | |
9323 old_striplib=$lt_old_striplib | |
9324 striplib=$lt_striplib | |
9325 | |
9326 # Dependencies to place before the objects being linked to create a | |
9327 # shared library. | |
9328 predep_objects=$lt_predep_objects | |
9329 | |
9330 # Dependencies to place after the objects being linked to create a | |
9331 # shared library. | |
9332 postdep_objects=$lt_postdep_objects | |
9333 | |
9334 # Dependencies to place before the objects being linked to create a | |
9335 # shared library. | |
9336 predeps=$lt_predeps | |
9337 | |
9338 # Dependencies to place after the objects being linked to create a | |
9339 # shared library. | |
9340 postdeps=$lt_postdeps | |
9341 | |
9342 # The library search path used internally by the compiler when linking | |
9343 # a shared library. | |
9344 compiler_lib_search_path=$lt_compiler_lib_search_path | |
9345 | |
9346 # Method to check whether dependent libraries are shared objects. | |
9347 deplibs_check_method=$lt_deplibs_check_method | |
9348 | |
9349 # Command to use when deplibs_check_method == file_magic. | |
9350 file_magic_cmd=$lt_file_magic_cmd | |
9351 | |
9352 # Flag that allows shared libraries with undefined symbols to be built. | |
9353 allow_undefined_flag=$lt_allow_undefined_flag | |
9354 | |
9355 # Flag that forces no undefined symbols. | |
9356 no_undefined_flag=$lt_no_undefined_flag | |
9357 | |
9358 # Commands used to finish a libtool library installation in a directory. | |
9359 finish_cmds=$lt_finish_cmds | |
9360 | |
9361 # Same as above, but a single script fragment to be evaled but not shown. | |
9362 finish_eval=$lt_finish_eval | |
9363 | |
9364 # Take the output of nm and produce a listing of raw symbols and C names. | |
9365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
9366 | |
9367 # Transform the output of nm in a proper C declaration | |
9368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
9369 | |
9370 # Transform the output of nm in a C name address pair | |
9371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
9372 | |
9373 # This is the shared library runtime path variable. | |
9374 runpath_var=$runpath_var | |
9375 | |
9376 # This is the shared library path variable. | |
9377 shlibpath_var=$shlibpath_var | |
9378 | |
9379 # Is shlibpath searched before the hard-coded library search path? | |
9380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
9381 | |
9382 # How to hardcode a shared library path into an executable. | |
9383 hardcode_action=$hardcode_action | |
9384 | |
9385 # Whether we should hardcode library paths into libraries. | |
9386 hardcode_into_libs=$hardcode_into_libs | |
9387 | |
9388 # Flag to hardcode \$libdir into a binary during linking. | |
9389 # This must work even if \$libdir does not exist. | |
9390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
9391 | |
9392 # If ld is used when linking, flag to hardcode \$libdir into | |
9393 # a binary during linking. This must work even if \$libdir does | |
9394 # not exist. | |
9395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
9396 | |
9397 # Whether we need a single -rpath flag with a separated argument. | |
9398 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
9399 | |
9400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
9401 # resulting binary. | |
9402 hardcode_direct=$hardcode_direct | |
9403 | |
9404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
9405 # resulting binary. | |
9406 hardcode_minus_L=$hardcode_minus_L | |
9407 | |
9408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
9409 # the resulting binary. | |
9410 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
9411 | |
9412 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
9413 # and all subsequent libraries and executables linked against it. | |
9414 hardcode_automatic=$hardcode_automatic | |
9415 | |
9416 # Variables whose values should be saved in libtool wrapper scripts and | |
9417 # restored at relink time. | |
9418 variables_saved_for_relink="$variables_saved_for_relink" | |
9419 | |
9420 # Whether libtool must link a program against all its dependency libraries. | |
9421 link_all_deplibs=$link_all_deplibs | |
9422 | |
9423 # Compile-time system search path for libraries | |
9424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
9425 | |
9426 # Run-time system search path for libraries | |
9427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
9428 | |
9429 # Fix the shell variable \$srcfile for the compiler. | |
9430 fix_srcfile_path="$fix_srcfile_path" | |
9431 | |
9432 # Set to yes if exported symbols are required. | |
9433 always_export_symbols=$always_export_symbols | |
9434 | |
9435 # The commands to list exported symbols. | |
9436 export_symbols_cmds=$lt_export_symbols_cmds | |
9437 | |
9438 # The commands to extract the exported symbol list from a shared archive. | |
9439 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
9440 | |
9441 # Symbols that should not be listed in the preloaded symbols. | |
9442 exclude_expsyms=$lt_exclude_expsyms | |
9443 | |
9444 # Symbols that must always be exported. | |
9445 include_expsyms=$lt_include_expsyms | |
9446 | |
9447 # ### END LIBTOOL CONFIG | |
9448 | |
9449 __EOF__ | |
9450 | |
9451 | |
9452 case $host_os in | |
9453 aix3*) | |
9454 cat <<\EOF >> "$cfgfile" | |
9455 | |
9456 # AIX sometimes has problems with the GCC collect2 program. For some | |
9457 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9458 # vanish in a puff of smoke. | |
9459 if test "X${COLLECT_NAMES+set}" != Xset; then | |
9460 COLLECT_NAMES= | |
9461 export COLLECT_NAMES | |
9462 fi | |
9463 EOF | |
9464 ;; | |
9465 esac | |
9466 | |
9467 # We use sed instead of cat because bash on DJGPP gets confused if | |
9468 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
9469 # text mode, it properly converts lines to CR/LF. This bash problem | |
9470 # is reportedly fixed, but why not run on old versions too? | |
9471 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
9472 | |
9473 mv -f "$cfgfile" "$ofile" || \ | |
9474 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
9475 chmod +x "$ofile" | |
9476 | |
9477 else | |
9478 # If there is no Makefile yet, we rely on a make rule to execute | |
9479 # `config.status --recheck' to rerun these tests and create the | |
9480 # libtool script then. | |
9481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
9482 if test -f "$ltmain_in"; then | |
9483 test -f Makefile && make "$ltmain" | |
9484 fi | |
9485 fi | |
9486 | |
9487 | |
9488 ac_ext=c | |
9489 ac_cpp='$CPP $CPPFLAGS' | |
9490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9492 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9493 | |
9494 CC="$lt_save_CC" | |
9495 | |
9496 | |
9497 # Check whether --with-tags or --without-tags was given. | |
9498 if test "${with_tags+set}" = set; then | |
9499 withval="$with_tags" | |
9500 tagnames="$withval" | |
9501 fi; | |
9502 | |
9503 if test -f "$ltmain" && test -n "$tagnames"; then | |
9504 if test ! -f "${ofile}"; then | |
9505 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
9506 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
9507 fi | |
9508 | |
9509 if test -z "$LTCC"; then | |
9510 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
9511 if test -z "$LTCC"; then | |
9512 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
9513 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
9514 else | |
9515 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
9516 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
9517 fi | |
9518 fi | |
9519 | |
9520 # Extract list of available tagged configurations in $ofile. | |
9521 # Note that this assumes the entire list is on one line. | |
9522 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
9523 | |
9524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9525 for tagname in $tagnames; do | |
9526 IFS="$lt_save_ifs" | |
9527 # Check whether tagname contains only valid characters | |
9528 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
9529 "") ;; | |
9530 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
9531 echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
9532 { (exit 1); exit 1; }; } | |
9533 ;; | |
9534 esac | |
9535 | |
9536 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
9537 then | |
9538 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
9539 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
9540 { (exit 1); exit 1; }; } | |
9541 fi | |
9542 | |
9543 # Update the list of available tags. | |
9544 if test -n "$tagname"; then | |
9545 echo appending configuration tag \"$tagname\" to $ofile | |
9546 | |
9547 case $tagname in | |
9548 CXX) | |
9549 if test -n "$CXX" && test "X$CXX" != "Xno"; then | |
9550 ac_ext=cc | |
9551 ac_cpp='$CXXCPP $CPPFLAGS' | |
9552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9555 | |
9556 | |
9557 | |
9558 | |
9559 archive_cmds_need_lc_CXX=no | |
9560 allow_undefined_flag_CXX= | |
9561 always_export_symbols_CXX=no | |
9562 archive_expsym_cmds_CXX= | |
9563 export_dynamic_flag_spec_CXX= | |
9564 hardcode_direct_CXX=no | |
9565 hardcode_libdir_flag_spec_CXX= | |
9566 hardcode_libdir_flag_spec_ld_CXX= | |
9567 hardcode_libdir_separator_CXX= | |
9568 hardcode_minus_L_CXX=no | |
9569 hardcode_automatic_CXX=no | |
9570 module_cmds_CXX= | |
9571 module_expsym_cmds_CXX= | |
9572 link_all_deplibs_CXX=unknown | |
9573 old_archive_cmds_CXX=$old_archive_cmds | |
9574 no_undefined_flag_CXX= | |
9575 whole_archive_flag_spec_CXX= | |
9576 enable_shared_with_static_runtimes_CXX=no | |
9577 | |
9578 # Dependencies to place before and after the object being linked: | |
9579 predep_objects_CXX= | |
9580 postdep_objects_CXX= | |
9581 predeps_CXX= | |
9582 postdeps_CXX= | |
9583 compiler_lib_search_path_CXX= | |
9584 | |
9585 # Source file extension for C++ test sources. | |
9586 ac_ext=cc | |
9587 | |
9588 # Object file extension for compiled C++ test sources. | |
9589 objext=o | |
9590 objext_CXX=$objext | |
9591 | |
9592 # Code to be used in simple compile tests | |
9593 lt_simple_compile_test_code="int some_variable = 0;\n" | |
9594 | |
9595 # Code to be used in simple link tests | |
9596 lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | |
9597 | |
9598 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
9599 | |
9600 # If no C compiler was specified, use CC. | |
9601 LTCC=${LTCC-"$CC"} | |
9602 | |
9603 # Allow CC to be a program name with arguments. | |
9604 compiler=$CC | |
9605 | |
9606 | |
9607 # Allow CC to be a program name with arguments. | |
9608 lt_save_CC=$CC | |
9609 lt_save_LD=$LD | |
9610 lt_save_GCC=$GCC | |
9611 GCC=$GXX | |
9612 lt_save_with_gnu_ld=$with_gnu_ld | |
9613 lt_save_path_LD=$lt_cv_path_LD | |
9614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
9615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9616 else | |
9617 unset lt_cv_prog_gnu_ld | |
9618 fi | |
9619 if test -n "${lt_cv_path_LDCXX+set}"; then | |
9620 lt_cv_path_LD=$lt_cv_path_LDCXX | |
9621 else | |
9622 unset lt_cv_path_LD | |
9623 fi | |
9624 test -z "${LDCXX+set}" || LD=$LDCXX | |
9625 CC=${CXX-"c++"} | |
9626 compiler=$CC | |
9627 compiler_CXX=$CC | |
9628 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
9629 | |
9630 # We don't want -fno-exception wen compiling C++ code, so set the | |
9631 # no_builtin_flag separately | |
9632 if test "$GXX" = yes; then | |
9633 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
9634 else | |
9635 lt_prog_compiler_no_builtin_flag_CXX= | |
9636 fi | |
9637 | |
9638 if test "$GXX" = yes; then | |
9639 # Set up default GNU C++ configuration | |
9640 | |
9641 | |
9642 # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
9643 if test "${with_gnu_ld+set}" = set; then | |
9644 withval="$with_gnu_ld" | |
9645 test "$withval" = no || with_gnu_ld=yes | |
9646 else | |
9647 with_gnu_ld=no | |
9648 fi; | |
9649 ac_prog=ld | |
9650 if test "$GCC" = yes; then | |
9651 # Check if gcc -print-prog-name=ld gives a path. | |
9652 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
9653 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
9654 case $host in | |
9655 *-*-mingw*) | |
9656 # gcc leaves a trailing carriage return which upsets mingw | |
9657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
9658 *) | |
9659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
9660 esac | |
9661 case $ac_prog in | |
9662 # Accept absolute paths. | |
9663 [\\/]* | ?:[\\/]*) | |
9664 re_direlt='/[^/][^/]*/\.\./' | |
9665 # Canonicalize the pathname of ld | |
9666 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
9667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
9668 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
9669 done | |
9670 test -z "$LD" && LD="$ac_prog" | |
9671 ;; | |
9672 "") | |
9673 # If it fails, then pretend we aren't using GCC. | |
9674 ac_prog=ld | |
9675 ;; | |
9676 *) | |
9677 # If it is relative, then search for the first ld in PATH. | |
9678 with_gnu_ld=unknown | |
9679 ;; | |
9680 esac | |
9681 elif test "$with_gnu_ld" = yes; then | |
9682 echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
9683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
9684 else | |
9685 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
9686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
9687 fi | |
9688 if test "${lt_cv_path_LD+set}" = set; then | |
9689 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9690 else | |
9691 if test -z "$LD"; then | |
9692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9693 for ac_dir in $PATH; do | |
9694 IFS="$lt_save_ifs" | |
9695 test -z "$ac_dir" && ac_dir=. | |
9696 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
9697 lt_cv_path_LD="$ac_dir/$ac_prog" | |
9698 # Check to see if the program is GNU ld. I'd rather use --version, | |
9699 # but apparently some GNU ld's only accept -v. | |
9700 # Break only if it was the GNU/non-GNU ld that we prefer. | |
9701 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
9702 *GNU* | *'with BFD'*) | |
9703 test "$with_gnu_ld" != no && break | |
9704 ;; | |
9705 *) | |
9706 test "$with_gnu_ld" != yes && break | |
9707 ;; | |
9708 esac | |
9709 fi | |
9710 done | |
9711 IFS="$lt_save_ifs" | |
9712 else | |
9713 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9714 fi | |
9715 fi | |
9716 | |
9717 LD="$lt_cv_path_LD" | |
9718 if test -n "$LD"; then | |
9719 echo "$as_me:$LINENO: result: $LD" >&5 | |
9720 echo "${ECHO_T}$LD" >&6 | |
9721 else | |
9722 echo "$as_me:$LINENO: result: no" >&5 | |
9723 echo "${ECHO_T}no" >&6 | |
9724 fi | |
9725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
9726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
9727 { (exit 1); exit 1; }; } | |
9728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
9729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
9730 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
9731 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9732 else | |
9733 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
9734 case `$LD -v 2>&1 </dev/null` in | |
9735 *GNU* | *'with BFD'*) | |
9736 lt_cv_prog_gnu_ld=yes | |
9737 ;; | |
9738 *) | |
9739 lt_cv_prog_gnu_ld=no | |
9740 ;; | |
9741 esac | |
9742 fi | |
9743 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
9744 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
9745 with_gnu_ld=$lt_cv_prog_gnu_ld | |
9746 | |
9747 | |
9748 | |
9749 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
9750 # archiving commands below assume that GNU ld is being used. | |
9751 if test "$with_gnu_ld" = yes; then | |
9752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9753 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' | |
9754 | |
9755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
9756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9757 | |
9758 # If archive_cmds runs LD, not CC, wlarc should be empty | |
9759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
9760 # investigate it a little bit more. (MM) | |
9761 wlarc='${wl}' | |
9762 | |
9763 # ancient GNU ld didn't support --whole-archive et. al. | |
9764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
9765 grep 'no-whole-archive' > /dev/null; then | |
9766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9767 else | |
9768 whole_archive_flag_spec_CXX= | |
9769 fi | |
9770 else | |
9771 with_gnu_ld=no | |
9772 wlarc= | |
9773 | |
9774 # A generic and very simple default shared library creation | |
9775 # command for GNU C++ for the case where it uses the native | |
9776 # linker, instead of GNU ld. If possible, this setting should | |
9777 # overridden to take advantage of the native linker features on | |
9778 # the platform it is being used on. | |
9779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
9780 fi | |
9781 | |
9782 # Commands to make compiler produce verbose output that lists | |
9783 # what "hidden" libraries, object files and flags are used when | |
9784 # linking a shared library. | |
9785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
9786 | |
9787 else | |
9788 GXX=no | |
9789 with_gnu_ld=no | |
9790 wlarc= | |
9791 fi | |
9792 | |
9793 # PORTME: fill in a description of your system's C++ link characteristics | |
9794 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
9796 ld_shlibs_CXX=yes | |
9797 case $host_os in | |
9798 aix3*) | |
9799 # FIXME: insert proper C++ library support | |
9800 ld_shlibs_CXX=no | |
9801 ;; | |
9802 aix4* | aix5*) | |
9803 if test "$host_cpu" = ia64; then | |
9804 # On IA64, the linker does run time linking by default, so we don't | |
9805 # have to do anything special. | |
9806 aix_use_runtimelinking=no | |
9807 exp_sym_flag='-Bexport' | |
9808 no_entry_flag="" | |
9809 else | |
9810 aix_use_runtimelinking=no | |
9811 | |
9812 # Test if we are trying to use run time linking or normal | |
9813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9814 # need to do runtime linking. | |
9815 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
9816 for ld_flag in $LDFLAGS; do | |
9817 case $ld_flag in | |
9818 *-brtl*) | |
9819 aix_use_runtimelinking=yes | |
9820 break | |
9821 ;; | |
9822 esac | |
9823 done | |
9824 esac | |
9825 | |
9826 exp_sym_flag='-bexport' | |
9827 no_entry_flag='-bnoentry' | |
9828 fi | |
9829 | |
9830 # When large executables or shared objects are built, AIX ld can | |
9831 # have problems creating the table of contents. If linking a library | |
9832 # or program results in "error TOC overflow" add -mminimal-toc to | |
9833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9835 | |
9836 archive_cmds_CXX='' | |
9837 hardcode_direct_CXX=yes | |
9838 hardcode_libdir_separator_CXX=':' | |
9839 link_all_deplibs_CXX=yes | |
9840 | |
9841 if test "$GXX" = yes; then | |
9842 case $host_os in aix4.012|aix4.012.*) | |
9843 # We only want to do this on AIX 4.2 and lower, the check | |
9844 # below for broken collect2 doesn't work under 4.3+ | |
9845 collect2name=`${CC} -print-prog-name=collect2` | |
9846 if test -f "$collect2name" && \ | |
9847 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
9848 then | |
9849 # We have reworked collect2 | |
9850 hardcode_direct_CXX=yes | |
9851 else | |
9852 # We have old collect2 | |
9853 hardcode_direct_CXX=unsupported | |
9854 # It fails to find uninstalled libraries when the uninstalled | |
9855 # path is not listed in the libpath. Setting hardcode_minus_L | |
9856 # to unsupported forces relinking | |
9857 hardcode_minus_L_CXX=yes | |
9858 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
9859 hardcode_libdir_separator_CXX= | |
9860 fi | |
9861 esac | |
9862 shared_flag='-shared' | |
9863 else | |
9864 # not using gcc | |
9865 if test "$host_cpu" = ia64; then | |
9866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9867 # chokes on -Wl,-G. The following line is correct: | |
9868 shared_flag='-G' | |
9869 else | |
9870 if test "$aix_use_runtimelinking" = yes; then | |
9871 shared_flag='${wl}-G' | |
9872 else | |
9873 shared_flag='${wl}-bM:SRE' | |
9874 fi | |
9875 fi | |
9876 fi | |
9877 | |
9878 # It seems that -bexpall does not export symbols beginning with | |
9879 # underscore (_), so it is better to generate a list of symbols to export. | |
9880 always_export_symbols_CXX=yes | |
9881 if test "$aix_use_runtimelinking" = yes; then | |
9882 # Warning - without using the other runtime loading flags (-brtl), | |
9883 # -berok will link without error, but may produce a broken library. | |
9884 allow_undefined_flag_CXX='-berok' | |
9885 # Determine the default libpath from the value encoded in an empty executable. | |
9886 cat >conftest.$ac_ext <<_ACEOF | |
9887 /* confdefs.h. */ | |
9888 _ACEOF | |
9889 cat confdefs.h >>conftest.$ac_ext | |
9890 cat >>conftest.$ac_ext <<_ACEOF | |
9891 /* end confdefs.h. */ | |
9892 | |
9893 int | |
9894 main () | |
9895 { | |
9896 | |
9897 ; | |
9898 return 0; | |
9899 } | |
9900 _ACEOF | |
9901 rm -f conftest.$ac_objext conftest$ac_exeext | |
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9903 (eval $ac_link) 2>conftest.er1 | |
9904 ac_status=$? | |
9905 grep -v '^ *+' conftest.er1 >conftest.err | |
9906 rm -f conftest.er1 | |
9907 cat conftest.err >&5 | |
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9909 (exit $ac_status); } && | |
9910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9912 (eval $ac_try) 2>&5 | |
9913 ac_status=$? | |
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9915 (exit $ac_status); }; } && | |
9916 { ac_try='test -s conftest$ac_exeext' | |
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9918 (eval $ac_try) 2>&5 | |
9919 ac_status=$? | |
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9921 (exit $ac_status); }; }; then | |
9922 | |
9923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9924 }'` | |
9925 # Check for a 64-bit object if we didn't find anything. | |
9926 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; } | |
9927 }'`; fi | |
9928 else | |
9929 echo "$as_me: failed program was:" >&5 | |
9930 sed 's/^/| /' conftest.$ac_ext >&5 | |
9931 | |
9932 fi | |
9933 rm -f conftest.err conftest.$ac_objext \ | |
9934 conftest$ac_exeext conftest.$ac_ext | |
9935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9936 | |
9937 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9938 | |
9939 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" | |
9940 else | |
9941 if test "$host_cpu" = ia64; then | |
9942 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
9943 allow_undefined_flag_CXX="-z nodefs" | |
9944 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" | |
9945 else | |
9946 # Determine the default libpath from the value encoded in an empty executable. | |
9947 cat >conftest.$ac_ext <<_ACEOF | |
9948 /* confdefs.h. */ | |
9949 _ACEOF | |
9950 cat confdefs.h >>conftest.$ac_ext | |
9951 cat >>conftest.$ac_ext <<_ACEOF | |
9952 /* end confdefs.h. */ | |
9953 | |
9954 int | |
9955 main () | |
9956 { | |
9957 | |
9958 ; | |
9959 return 0; | |
9960 } | |
9961 _ACEOF | |
9962 rm -f conftest.$ac_objext conftest$ac_exeext | |
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9964 (eval $ac_link) 2>conftest.er1 | |
9965 ac_status=$? | |
9966 grep -v '^ *+' conftest.er1 >conftest.err | |
9967 rm -f conftest.er1 | |
9968 cat conftest.err >&5 | |
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9970 (exit $ac_status); } && | |
9971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9973 (eval $ac_try) 2>&5 | |
9974 ac_status=$? | |
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9976 (exit $ac_status); }; } && | |
9977 { ac_try='test -s conftest$ac_exeext' | |
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9979 (eval $ac_try) 2>&5 | |
9980 ac_status=$? | |
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9982 (exit $ac_status); }; }; then | |
9983 | |
9984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9985 }'` | |
9986 # Check for a 64-bit object if we didn't find anything. | |
9987 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; } | |
9988 }'`; fi | |
9989 else | |
9990 echo "$as_me: failed program was:" >&5 | |
9991 sed 's/^/| /' conftest.$ac_ext >&5 | |
9992 | |
9993 fi | |
9994 rm -f conftest.err conftest.$ac_objext \ | |
9995 conftest$ac_exeext conftest.$ac_ext | |
9996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9997 | |
9998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9999 # Warning - without using the other run time loading flags, | |
10000 # -berok will link without error, but may produce a broken library. | |
10001 no_undefined_flag_CXX=' ${wl}-bernotok' | |
10002 allow_undefined_flag_CXX=' ${wl}-berok' | |
10003 # -bexpall does not export symbols beginning with underscore (_) | |
10004 always_export_symbols_CXX=yes | |
10005 # Exported symbols can be pulled into shared objects from archives | |
10006 whole_archive_flag_spec_CXX=' ' | |
10007 archive_cmds_need_lc_CXX=yes | |
10008 # This is similar to how AIX traditionally builds it's shared libraries. | |
10009 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' | |
10010 fi | |
10011 fi | |
10012 ;; | |
10013 chorus*) | |
10014 case $cc_basename in | |
10015 *) | |
10016 # FIXME: insert proper C++ library support | |
10017 ld_shlibs_CXX=no | |
10018 ;; | |
10019 esac | |
10020 ;; | |
10021 | |
10022 cygwin* | mingw* | pw32*) | |
10023 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
10024 # as there is no search path for DLLs. | |
10025 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10026 allow_undefined_flag_CXX=unsupported | |
10027 always_export_symbols_CXX=no | |
10028 enable_shared_with_static_runtimes_CXX=yes | |
10029 | |
10030 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
10031 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' | |
10032 # If the export-symbols file already is a .def file (1st line | |
10033 # is EXPORTS), use it as is; otherwise, prepend... | |
10034 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10035 cp $export_symbols $output_objdir/$soname.def; | |
10036 else | |
10037 echo EXPORTS > $output_objdir/$soname.def; | |
10038 cat $export_symbols >> $output_objdir/$soname.def; | |
10039 fi~ | |
10040 $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' | |
10041 else | |
10042 ld_shlibs_CXX=no | |
10043 fi | |
10044 ;; | |
10045 | |
10046 darwin* | rhapsody*) | |
10047 if test "$GXX" = yes; then | |
10048 archive_cmds_need_lc_CXX=no | |
10049 case "$host_os" in | |
10050 rhapsody* | darwin1.[012]) | |
10051 allow_undefined_flag_CXX='-undefined suppress' | |
10052 ;; | |
10053 *) # Darwin 1.3 on | |
10054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10055 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | |
10056 else | |
10057 case ${MACOSX_DEPLOYMENT_TARGET} in | |
10058 10.[012]) | |
10059 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | |
10060 ;; | |
10061 10.*) | |
10062 allow_undefined_flag_CXX='-undefined dynamic_lookup' | |
10063 ;; | |
10064 esac | |
10065 fi | |
10066 ;; | |
10067 esac | |
10068 lt_int_apple_cc_single_mod=no | |
10069 output_verbose_link_cmd='echo' | |
10070 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
10071 lt_int_apple_cc_single_mod=yes | |
10072 fi | |
10073 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10074 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10075 else | |
10076 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' | |
10077 fi | |
10078 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10079 | |
10080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
10081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10082 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}' | |
10083 else | |
10084 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}' | |
10085 fi | |
10086 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}' | |
10087 hardcode_direct_CXX=no | |
10088 hardcode_automatic_CXX=yes | |
10089 hardcode_shlibpath_var_CXX=unsupported | |
10090 whole_archive_flag_spec_CXX='-all_load $convenience' | |
10091 link_all_deplibs_CXX=yes | |
10092 else | |
10093 ld_shlibs_CXX=no | |
10094 fi | |
10095 ;; | |
10096 | |
10097 dgux*) | |
10098 case $cc_basename in | |
10099 ec++) | |
10100 # FIXME: insert proper C++ library support | |
10101 ld_shlibs_CXX=no | |
10102 ;; | |
10103 ghcx) | |
10104 # Green Hills C++ Compiler | |
10105 # FIXME: insert proper C++ library support | |
10106 ld_shlibs_CXX=no | |
10107 ;; | |
10108 *) | |
10109 # FIXME: insert proper C++ library support | |
10110 ld_shlibs_CXX=no | |
10111 ;; | |
10112 esac | |
10113 ;; | |
10114 freebsd12*) | |
10115 # C++ shared libraries reported to be fairly broken before switch to ELF | |
10116 ld_shlibs_CXX=no | |
10117 ;; | |
10118 freebsd-elf*) | |
10119 archive_cmds_need_lc_CXX=no | |
10120 ;; | |
10121 freebsd* | kfreebsd*-gnu) | |
10122 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
10123 # conventions | |
10124 ld_shlibs_CXX=yes | |
10125 ;; | |
10126 gnu*) | |
10127 ;; | |
10128 hpux9*) | |
10129 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10130 hardcode_libdir_separator_CXX=: | |
10131 export_dynamic_flag_spec_CXX='${wl}-E' | |
10132 hardcode_direct_CXX=yes | |
10133 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10134 # but as the default | |
10135 # location of the library. | |
10136 | |
10137 case $cc_basename in | |
10138 CC) | |
10139 # FIXME: insert proper C++ library support | |
10140 ld_shlibs_CXX=no | |
10141 ;; | |
10142 aCC) | |
10143 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' | |
10144 # Commands to make compiler produce verbose output that lists | |
10145 # what "hidden" libraries, object files and flags are used when | |
10146 # linking a shared library. | |
10147 # | |
10148 # There doesn't appear to be a way to prevent this compiler from | |
10149 # explicitly linking system object files so we need to strip them | |
10150 # from the output so that they don't get included in the library | |
10151 # dependencies. | |
10152 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' | |
10153 ;; | |
10154 *) | |
10155 if test "$GXX" = yes; then | |
10156 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' | |
10157 else | |
10158 # FIXME: insert proper C++ library support | |
10159 ld_shlibs_CXX=no | |
10160 fi | |
10161 ;; | |
10162 esac | |
10163 ;; | |
10164 hpux10*|hpux11*) | |
10165 if test $with_gnu_ld = no; then | |
10166 case "$host_cpu" in | |
10167 hppa*64*) | |
10168 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10169 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
10170 hardcode_libdir_separator_CXX=: | |
10171 ;; | |
10172 ia64*) | |
10173 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10174 ;; | |
10175 *) | |
10176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10177 hardcode_libdir_separator_CXX=: | |
10178 export_dynamic_flag_spec_CXX='${wl}-E' | |
10179 ;; | |
10180 esac | |
10181 fi | |
10182 case "$host_cpu" in | |
10183 hppa*64*) | |
10184 hardcode_direct_CXX=no | |
10185 hardcode_shlibpath_var_CXX=no | |
10186 ;; | |
10187 ia64*) | |
10188 hardcode_direct_CXX=no | |
10189 hardcode_shlibpath_var_CXX=no | |
10190 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10191 # but as the default | |
10192 # location of the library. | |
10193 ;; | |
10194 *) | |
10195 hardcode_direct_CXX=yes | |
10196 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10197 # but as the default | |
10198 # location of the library. | |
10199 ;; | |
10200 esac | |
10201 | |
10202 case $cc_basename in | |
10203 CC) | |
10204 # FIXME: insert proper C++ library support | |
10205 ld_shlibs_CXX=no | |
10206 ;; | |
10207 aCC) | |
10208 case "$host_cpu" in | |
10209 hppa*64*|ia64*) | |
10210 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
10211 ;; | |
10212 *) | |
10213 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10214 ;; | |
10215 esac | |
10216 # Commands to make compiler produce verbose output that lists | |
10217 # what "hidden" libraries, object files and flags are used when | |
10218 # linking a shared library. | |
10219 # | |
10220 # There doesn't appear to be a way to prevent this compiler from | |
10221 # explicitly linking system object files so we need to strip them | |
10222 # from the output so that they don't get included in the library | |
10223 # dependencies. | |
10224 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' | |
10225 ;; | |
10226 *) | |
10227 if test "$GXX" = yes; then | |
10228 if test $with_gnu_ld = no; then | |
10229 case "$host_cpu" in | |
10230 ia64*|hppa*64*) | |
10231 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
10232 ;; | |
10233 *) | |
10234 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' | |
10235 ;; | |
10236 esac | |
10237 fi | |
10238 else | |
10239 # FIXME: insert proper C++ library support | |
10240 ld_shlibs_CXX=no | |
10241 fi | |
10242 ;; | |
10243 esac | |
10244 ;; | |
10245 irix5* | irix6*) | |
10246 case $cc_basename in | |
10247 CC) | |
10248 # SGI C++ | |
10249 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' | |
10250 | |
10251 # Archives containing C++ object files must be created using | |
10252 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
10253 # necessary to make sure instantiated templates are included | |
10254 # in the archive. | |
10255 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
10256 ;; | |
10257 *) | |
10258 if test "$GXX" = yes; then | |
10259 if test "$with_gnu_ld" = no; then | |
10260 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' | |
10261 else | |
10262 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' | |
10263 fi | |
10264 fi | |
10265 link_all_deplibs_CXX=yes | |
10266 ;; | |
10267 esac | |
10268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10269 hardcode_libdir_separator_CXX=: | |
10270 ;; | |
10271 linux*) | |
10272 case $cc_basename in | |
10273 KCC) | |
10274 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10275 | |
10276 # KCC will only create a shared library if the output file | |
10277 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10278 # to its proper name (with version) after linking. | |
10279 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' | |
10280 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' | |
10281 # Commands to make compiler produce verbose output that lists | |
10282 # what "hidden" libraries, object files and flags are used when | |
10283 # linking a shared library. | |
10284 # | |
10285 # There doesn't appear to be a way to prevent this compiler from | |
10286 # explicitly linking system object files so we need to strip them | |
10287 # from the output so that they don't get included in the library | |
10288 # dependencies. | |
10289 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' | |
10290 | |
10291 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
10292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10293 | |
10294 # Archives containing C++ object files must be created using | |
10295 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10296 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10297 ;; | |
10298 icpc) | |
10299 # Intel C++ | |
10300 with_gnu_ld=yes | |
10301 archive_cmds_need_lc_CXX=no | |
10302 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10303 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' | |
10304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10306 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10307 ;; | |
10308 cxx) | |
10309 # Compaq C++ | |
10310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10311 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' | |
10312 | |
10313 runpath_var=LD_RUN_PATH | |
10314 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10315 hardcode_libdir_separator_CXX=: | |
10316 | |
10317 # Commands to make compiler produce verbose output that lists | |
10318 # what "hidden" libraries, object files and flags are used when | |
10319 # linking a shared library. | |
10320 # | |
10321 # There doesn't appear to be a way to prevent this compiler from | |
10322 # explicitly linking system object files so we need to strip them | |
10323 # from the output so that they don't get included in the library | |
10324 # dependencies. | |
10325 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' | |
10326 ;; | |
10327 esac | |
10328 ;; | |
10329 lynxos*) | |
10330 # FIXME: insert proper C++ library support | |
10331 ld_shlibs_CXX=no | |
10332 ;; | |
10333 m88k*) | |
10334 # FIXME: insert proper C++ library support | |
10335 ld_shlibs_CXX=no | |
10336 ;; | |
10337 mvs*) | |
10338 case $cc_basename in | |
10339 cxx) | |
10340 # FIXME: insert proper C++ library support | |
10341 ld_shlibs_CXX=no | |
10342 ;; | |
10343 *) | |
10344 # FIXME: insert proper C++ library support | |
10345 ld_shlibs_CXX=no | |
10346 ;; | |
10347 esac | |
10348 ;; | |
10349 netbsd* | knetbsd*-gnu) | |
10350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10351 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
10352 wlarc= | |
10353 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10354 hardcode_direct_CXX=yes | |
10355 hardcode_shlibpath_var_CXX=no | |
10356 fi | |
10357 # Workaround some broken pre-1.5 toolchains | |
10358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
10359 ;; | |
10360 osf3*) | |
10361 case $cc_basename in | |
10362 KCC) | |
10363 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10364 | |
10365 # KCC will only create a shared library if the output file | |
10366 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10367 # to its proper name (with version) after linking. | |
10368 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' | |
10369 | |
10370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10371 hardcode_libdir_separator_CXX=: | |
10372 | |
10373 # Archives containing C++ object files must be created using | |
10374 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
10375 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
10376 | |
10377 ;; | |
10378 RCC) | |
10379 # Rational C++ 2.4.1 | |
10380 # FIXME: insert proper C++ library support | |
10381 ld_shlibs_CXX=no | |
10382 ;; | |
10383 cxx) | |
10384 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10385 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' | |
10386 | |
10387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10388 hardcode_libdir_separator_CXX=: | |
10389 | |
10390 # Commands to make compiler produce verbose output that lists | |
10391 # what "hidden" libraries, object files and flags are used when | |
10392 # linking a shared library. | |
10393 # | |
10394 # There doesn't appear to be a way to prevent this compiler from | |
10395 # explicitly linking system object files so we need to strip them | |
10396 # from the output so that they don't get included in the library | |
10397 # dependencies. | |
10398 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' | |
10399 ;; | |
10400 *) | |
10401 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10402 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10403 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' | |
10404 | |
10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10406 hardcode_libdir_separator_CXX=: | |
10407 | |
10408 # Commands to make compiler produce verbose output that lists | |
10409 # what "hidden" libraries, object files and flags are used when | |
10410 # linking a shared library. | |
10411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10412 | |
10413 else | |
10414 # FIXME: insert proper C++ library support | |
10415 ld_shlibs_CXX=no | |
10416 fi | |
10417 ;; | |
10418 esac | |
10419 ;; | |
10420 osf4* | osf5*) | |
10421 case $cc_basename in | |
10422 KCC) | |
10423 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
10424 | |
10425 # KCC will only create a shared library if the output file | |
10426 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
10427 # to its proper name (with version) after linking. | |
10428 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' | |
10429 | |
10430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
10431 hardcode_libdir_separator_CXX=: | |
10432 | |
10433 # Archives containing C++ object files must be created using | |
10434 # the KAI C++ compiler. | |
10435 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
10436 ;; | |
10437 RCC) | |
10438 # Rational C++ 2.4.1 | |
10439 # FIXME: insert proper C++ library support | |
10440 ld_shlibs_CXX=no | |
10441 ;; | |
10442 cxx) | |
10443 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
10444 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' | |
10445 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
10446 echo "-hidden">> $lib.exp~ | |
10447 $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~ | |
10448 $rm $lib.exp' | |
10449 | |
10450 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
10451 hardcode_libdir_separator_CXX=: | |
10452 | |
10453 # Commands to make compiler produce verbose output that lists | |
10454 # what "hidden" libraries, object files and flags are used when | |
10455 # linking a shared library. | |
10456 # | |
10457 # There doesn't appear to be a way to prevent this compiler from | |
10458 # explicitly linking system object files so we need to strip them | |
10459 # from the output so that they don't get included in the library | |
10460 # dependencies. | |
10461 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' | |
10462 ;; | |
10463 *) | |
10464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
10466 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' | |
10467 | |
10468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
10469 hardcode_libdir_separator_CXX=: | |
10470 | |
10471 # Commands to make compiler produce verbose output that lists | |
10472 # what "hidden" libraries, object files and flags are used when | |
10473 # linking a shared library. | |
10474 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10475 | |
10476 else | |
10477 # FIXME: insert proper C++ library support | |
10478 ld_shlibs_CXX=no | |
10479 fi | |
10480 ;; | |
10481 esac | |
10482 ;; | |
10483 psos*) | |
10484 # FIXME: insert proper C++ library support | |
10485 ld_shlibs_CXX=no | |
10486 ;; | |
10487 sco*) | |
10488 archive_cmds_need_lc_CXX=no | |
10489 case $cc_basename in | |
10490 CC) | |
10491 # FIXME: insert proper C++ library support | |
10492 ld_shlibs_CXX=no | |
10493 ;; | |
10494 *) | |
10495 # FIXME: insert proper C++ library support | |
10496 ld_shlibs_CXX=no | |
10497 ;; | |
10498 esac | |
10499 ;; | |
10500 sunos4*) | |
10501 case $cc_basename in | |
10502 CC) | |
10503 # Sun C++ 4.x | |
10504 # FIXME: insert proper C++ library support | |
10505 ld_shlibs_CXX=no | |
10506 ;; | |
10507 lcc) | |
10508 # Lucid | |
10509 # FIXME: insert proper C++ library support | |
10510 ld_shlibs_CXX=no | |
10511 ;; | |
10512 *) | |
10513 # FIXME: insert proper C++ library support | |
10514 ld_shlibs_CXX=no | |
10515 ;; | |
10516 esac | |
10517 ;; | |
10518 solaris*) | |
10519 case $cc_basename in | |
10520 CC) | |
10521 # Sun C++ 4.2, 5.x and Centerline C++ | |
10522 no_undefined_flag_CXX=' -zdefs' | |
10523 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
10524 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10525 $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' | |
10526 | |
10527 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
10528 hardcode_shlibpath_var_CXX=no | |
10529 case $host_os in | |
10530 solaris2.0-5 | solaris2.0-5.*) ;; | |
10531 *) | |
10532 # The C++ compiler is used as linker so we must use $wl | |
10533 # flag to pass the commands to the underlying system | |
10534 # linker. | |
10535 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10536 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10537 ;; | |
10538 esac | |
10539 link_all_deplibs_CXX=yes | |
10540 | |
10541 # Commands to make compiler produce verbose output that lists | |
10542 # what "hidden" libraries, object files and flags are used when | |
10543 # linking a shared library. | |
10544 # | |
10545 # There doesn't appear to be a way to prevent this compiler from | |
10546 # explicitly linking system object files so we need to strip them | |
10547 # from the output so that they don't get included in the library | |
10548 # dependencies. | |
10549 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' | |
10550 | |
10551 # Archives containing C++ object files must be created using | |
10552 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
10553 # necessary to make sure instantiated templates are included | |
10554 # in the archive. | |
10555 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
10556 ;; | |
10557 gcx) | |
10558 # Green Hills C++ Compiler | |
10559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10560 | |
10561 # The C++ compiler must be used to create the archive. | |
10562 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
10563 ;; | |
10564 *) | |
10565 # GNU C++ compiler with Solaris linker | |
10566 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
10567 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
10568 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
10569 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10570 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10571 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10572 | |
10573 # Commands to make compiler produce verbose output that lists | |
10574 # what "hidden" libraries, object files and flags are used when | |
10575 # linking a shared library. | |
10576 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
10577 else | |
10578 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
10579 # platform. | |
10580 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
10581 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10582 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
10583 | |
10584 # Commands to make compiler produce verbose output that lists | |
10585 # what "hidden" libraries, object files and flags are used when | |
10586 # linking a shared library. | |
10587 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
10588 fi | |
10589 | |
10590 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
10591 fi | |
10592 ;; | |
10593 esac | |
10594 ;; | |
10595 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
10596 archive_cmds_need_lc_CXX=no | |
10597 ;; | |
10598 tandem*) | |
10599 case $cc_basename in | |
10600 NCC) | |
10601 # NonStop-UX NCC 3.20 | |
10602 # FIXME: insert proper C++ library support | |
10603 ld_shlibs_CXX=no | |
10604 ;; | |
10605 *) | |
10606 # FIXME: insert proper C++ library support | |
10607 ld_shlibs_CXX=no | |
10608 ;; | |
10609 esac | |
10610 ;; | |
10611 vxworks*) | |
10612 # FIXME: insert proper C++ library support | |
10613 ld_shlibs_CXX=no | |
10614 ;; | |
10615 *) | |
10616 # FIXME: insert proper C++ library support | |
10617 ld_shlibs_CXX=no | |
10618 ;; | |
10619 esac | |
10620 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
10621 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
10622 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
10623 | |
10624 GCC_CXX="$GXX" | |
10625 LD_CXX="$LD" | |
10626 | |
10627 | |
10628 cat > conftest.$ac_ext <<EOF | |
10629 class Foo | |
10630 { | |
10631 public: | |
10632 Foo (void) { a = 0; } | |
10633 private: | |
10634 int a; | |
10635 }; | |
10636 EOF | |
10637 | |
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10639 (eval $ac_compile) 2>&5 | |
10640 ac_status=$? | |
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10642 (exit $ac_status); }; then | |
10643 # Parse the compiler output and extract the necessary | |
10644 # objects, libraries and library flags. | |
10645 | |
10646 # Sentinel used to keep track of whether or not we are before | |
10647 # the conftest object file. | |
10648 pre_test_object_deps_done=no | |
10649 | |
10650 # The `*' in the case matches for architectures that use `case' in | |
10651 # $output_verbose_cmd can trigger glob expansion during the loop | |
10652 # eval without this substitution. | |
10653 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
10654 | |
10655 for p in `eval $output_verbose_link_cmd`; do | |
10656 case $p in | |
10657 | |
10658 -L* | -R* | -l*) | |
10659 # Some compilers place space between "-{L,R}" and the path. | |
10660 # Remove the space. | |
10661 if test $p = "-L" \ | |
10662 || test $p = "-R"; then | |
10663 prev=$p | |
10664 continue | |
10665 else | |
10666 prev= | |
10667 fi | |
10668 | |
10669 if test "$pre_test_object_deps_done" = no; then | |
10670 case $p in | |
10671 -L* | -R*) | |
10672 # Internal compiler library paths should come after those | |
10673 # provided the user. The postdeps already come after the | |
10674 # user supplied libs so there is no need to process them. | |
10675 if test -z "$compiler_lib_search_path_CXX"; then | |
10676 compiler_lib_search_path_CXX="${prev}${p}" | |
10677 else | |
10678 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
10679 fi | |
10680 ;; | |
10681 # The "-l" case would never come before the object being | |
10682 # linked, so don't bother handling this case. | |
10683 esac | |
10684 else | |
10685 if test -z "$postdeps_CXX"; then | |
10686 postdeps_CXX="${prev}${p}" | |
10687 else | |
10688 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
10689 fi | |
10690 fi | |
10691 ;; | |
10692 | |
10693 *.$objext) | |
10694 # This assumes that the test object file only shows up | |
10695 # once in the compiler output. | |
10696 if test "$p" = "conftest.$objext"; then | |
10697 pre_test_object_deps_done=yes | |
10698 continue | |
10699 fi | |
10700 | |
10701 if test "$pre_test_object_deps_done" = no; then | |
10702 if test -z "$predep_objects_CXX"; then | |
10703 predep_objects_CXX="$p" | |
10704 else | |
10705 predep_objects_CXX="$predep_objects_CXX $p" | |
10706 fi | |
10707 else | |
10708 if test -z "$postdep_objects_CXX"; then | |
10709 postdep_objects_CXX="$p" | |
10710 else | |
10711 postdep_objects_CXX="$postdep_objects_CXX $p" | |
10712 fi | |
10713 fi | |
10714 ;; | |
10715 | |
10716 *) ;; # Ignore the rest. | |
10717 | |
10718 esac | |
10719 done | |
10720 | |
10721 # Clean up. | |
10722 rm -f a.out a.exe | |
10723 else | |
10724 echo "libtool.m4: error: problem compiling CXX test program" | |
10725 fi | |
10726 | |
10727 $rm -f confest.$objext | |
10728 | |
10729 case " $postdeps_CXX " in | |
10730 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
10731 esac | |
10732 | |
10733 lt_prog_compiler_wl_CXX= | |
10734 lt_prog_compiler_pic_CXX= | |
10735 lt_prog_compiler_static_CXX= | |
10736 | |
10737 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
10738 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
10739 | |
10740 # C++ specific cases for pic, static, wl, etc. | |
10741 if test "$GXX" = yes; then | |
10742 lt_prog_compiler_wl_CXX='-Wl,' | |
10743 lt_prog_compiler_static_CXX='-static' | |
10744 | |
10745 case $host_os in | |
10746 aix*) | |
10747 # All AIX code is PIC. | |
10748 if test "$host_cpu" = ia64; then | |
10749 # AIX 5 now supports IA64 processor | |
10750 lt_prog_compiler_static_CXX='-Bstatic' | |
10751 fi | |
10752 ;; | |
10753 amigaos*) | |
10754 # FIXME: we need at least 68020 code to build shared libraries, but | |
10755 # adding the `-m68020' flag to GCC prevents building anything better, | |
10756 # like `-m68040'. | |
10757 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
10758 ;; | |
10759 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
10760 # PIC is the default for these OSes. | |
10761 ;; | |
10762 mingw* | os2* | pw32*) | |
10763 # This hack is so that the source file can tell whether it is being | |
10764 # built for inclusion in a dll (and should export symbols for example). | |
10765 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
10766 ;; | |
10767 darwin* | rhapsody*) | |
10768 # PIC is the default on this platform | |
10769 # Common symbols not allowed in MH_DYLIB files | |
10770 lt_prog_compiler_pic_CXX='-fno-common' | |
10771 ;; | |
10772 *djgpp*) | |
10773 # DJGPP does not support shared libraries at all | |
10774 lt_prog_compiler_pic_CXX= | |
10775 ;; | |
10776 sysv4*MP*) | |
10777 if test -d /usr/nec; then | |
10778 lt_prog_compiler_pic_CXX=-Kconform_pic | |
10779 fi | |
10780 ;; | |
10781 hpux*) | |
10782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10783 # not for PA HP-UX. | |
10784 case "$host_cpu" in | |
10785 hppa*64*|ia64*) | |
10786 ;; | |
10787 *) | |
10788 lt_prog_compiler_pic_CXX='-fPIC' | |
10789 ;; | |
10790 esac | |
10791 ;; | |
10792 *) | |
10793 lt_prog_compiler_pic_CXX='-fPIC' | |
10794 ;; | |
10795 esac | |
10796 else | |
10797 case $host_os in | |
10798 aix4* | aix5*) | |
10799 # All AIX code is PIC. | |
10800 if test "$host_cpu" = ia64; then | |
10801 # AIX 5 now supports IA64 processor | |
10802 lt_prog_compiler_static_CXX='-Bstatic' | |
10803 else | |
10804 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
10805 fi | |
10806 ;; | |
10807 chorus*) | |
10808 case $cc_basename in | |
10809 cxch68) | |
10810 # Green Hills C++ Compiler | |
10811 # _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" | |
10812 ;; | |
10813 esac | |
10814 ;; | |
10815 dgux*) | |
10816 case $cc_basename in | |
10817 ec++) | |
10818 lt_prog_compiler_pic_CXX='-KPIC' | |
10819 ;; | |
10820 ghcx) | |
10821 # Green Hills C++ Compiler | |
10822 lt_prog_compiler_pic_CXX='-pic' | |
10823 ;; | |
10824 *) | |
10825 ;; | |
10826 esac | |
10827 ;; | |
10828 freebsd* | kfreebsd*-gnu) | |
10829 # FreeBSD uses GNU C++ | |
10830 ;; | |
10831 hpux9* | hpux10* | hpux11*) | |
10832 case $cc_basename in | |
10833 CC) | |
10834 lt_prog_compiler_wl_CXX='-Wl,' | |
10835 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
10836 if test "$host_cpu" != ia64; then | |
10837 lt_prog_compiler_pic_CXX='+Z' | |
10838 fi | |
10839 ;; | |
10840 aCC) | |
10841 lt_prog_compiler_wl_CXX='-Wl,' | |
10842 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
10843 case "$host_cpu" in | |
10844 hppa*64*|ia64*) | |
10845 # +Z the default | |
10846 ;; | |
10847 *) | |
10848 lt_prog_compiler_pic_CXX='+Z' | |
10849 ;; | |
10850 esac | |
10851 ;; | |
10852 *) | |
10853 ;; | |
10854 esac | |
10855 ;; | |
10856 irix5* | irix6* | nonstopux*) | |
10857 case $cc_basename in | |
10858 CC) | |
10859 lt_prog_compiler_wl_CXX='-Wl,' | |
10860 lt_prog_compiler_static_CXX='-non_shared' | |
10861 # CC pic flag -KPIC is the default. | |
10862 ;; | |
10863 *) | |
10864 ;; | |
10865 esac | |
10866 ;; | |
10867 linux*) | |
10868 case $cc_basename in | |
10869 KCC) | |
10870 # KAI C++ Compiler | |
10871 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
10872 lt_prog_compiler_pic_CXX='-fPIC' | |
10873 ;; | |
10874 icpc) | |
10875 # Intel C++ | |
10876 lt_prog_compiler_wl_CXX='-Wl,' | |
10877 lt_prog_compiler_pic_CXX='-KPIC' | |
10878 lt_prog_compiler_static_CXX='-static' | |
10879 ;; | |
10880 cxx) | |
10881 # Compaq C++ | |
10882 # Make sure the PIC flag is empty. It appears that all Alpha | |
10883 # Linux and Compaq Tru64 Unix objects are PIC. | |
10884 lt_prog_compiler_pic_CXX= | |
10885 lt_prog_compiler_static_CXX='-non_shared' | |
10886 ;; | |
10887 *) | |
10888 ;; | |
10889 esac | |
10890 ;; | |
10891 lynxos*) | |
10892 ;; | |
10893 m88k*) | |
10894 ;; | |
10895 mvs*) | |
10896 case $cc_basename in | |
10897 cxx) | |
10898 lt_prog_compiler_pic_CXX='-W c,exportall' | |
10899 ;; | |
10900 *) | |
10901 ;; | |
10902 esac | |
10903 ;; | |
10904 netbsd* | knetbsd*-gnu) | |
10905 ;; | |
10906 osf3* | osf4* | osf5*) | |
10907 case $cc_basename in | |
10908 KCC) | |
10909 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
10910 ;; | |
10911 RCC) | |
10912 # Rational C++ 2.4.1 | |
10913 lt_prog_compiler_pic_CXX='-pic' | |
10914 ;; | |
10915 cxx) | |
10916 # Digital/Compaq C++ | |
10917 lt_prog_compiler_wl_CXX='-Wl,' | |
10918 # Make sure the PIC flag is empty. It appears that all Alpha | |
10919 # Linux and Compaq Tru64 Unix objects are PIC. | |
10920 lt_prog_compiler_pic_CXX= | |
10921 lt_prog_compiler_static_CXX='-non_shared' | |
10922 ;; | |
10923 *) | |
10924 ;; | |
10925 esac | |
10926 ;; | |
10927 psos*) | |
10928 ;; | |
10929 sco*) | |
10930 case $cc_basename in | |
10931 CC) | |
10932 lt_prog_compiler_pic_CXX='-fPIC' | |
10933 ;; | |
10934 *) | |
10935 ;; | |
10936 esac | |
10937 ;; | |
10938 solaris*) | |
10939 case $cc_basename in | |
10940 CC) | |
10941 # Sun C++ 4.2, 5.x and Centerline C++ | |
10942 lt_prog_compiler_pic_CXX='-KPIC' | |
10943 lt_prog_compiler_static_CXX='-Bstatic' | |
10944 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
10945 ;; | |
10946 gcx) | |
10947 # Green Hills C++ Compiler | |
10948 lt_prog_compiler_pic_CXX='-PIC' | |
10949 ;; | |
10950 *) | |
10951 ;; | |
10952 esac | |
10953 ;; | |
10954 sunos4*) | |
10955 case $cc_basename in | |
10956 CC) | |
10957 # Sun C++ 4.x | |
10958 lt_prog_compiler_pic_CXX='-pic' | |
10959 lt_prog_compiler_static_CXX='-Bstatic' | |
10960 ;; | |
10961 lcc) | |
10962 # Lucid | |
10963 lt_prog_compiler_pic_CXX='-pic' | |
10964 ;; | |
10965 *) | |
10966 ;; | |
10967 esac | |
10968 ;; | |
10969 tandem*) | |
10970 case $cc_basename in | |
10971 NCC) | |
10972 # NonStop-UX NCC 3.20 | |
10973 lt_prog_compiler_pic_CXX='-KPIC' | |
10974 ;; | |
10975 *) | |
10976 ;; | |
10977 esac | |
10978 ;; | |
10979 unixware*) | |
10980 ;; | |
10981 vxworks*) | |
10982 ;; | |
10983 *) | |
10984 lt_prog_compiler_can_build_shared_CXX=no | |
10985 ;; | |
10986 esac | |
10987 fi | |
10988 | |
10989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
10990 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
10991 | |
10992 # | |
10993 # Check to make sure the PIC flag actually works. | |
10994 # | |
10995 if test -n "$lt_prog_compiler_pic_CXX"; then | |
10996 | |
10997 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
10998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
10999 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
11000 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11001 else | |
11002 lt_prog_compiler_pic_works_CXX=no | |
11003 ac_outfile=conftest.$ac_objext | |
11004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11005 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
11006 # Insert the option either (1) after the last *FLAGS variable, or | |
11007 # (2) before a word containing "conftest.", or (3) at the end. | |
11008 # Note that $ac_compile itself does not contain backslashes and begins | |
11009 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11010 # The option is referenced via a variable to avoid confusing sed. | |
11011 lt_compile=`echo "$ac_compile" | $SED \ | |
11012 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
11013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11014 -e 's:$: $lt_compiler_flag:'` | |
11015 (eval echo "\"\$as_me:11015: $lt_compile\"" >&5) | |
11016 (eval "$lt_compile" 2>conftest.err) | |
11017 ac_status=$? | |
11018 cat conftest.err >&5 | |
11019 echo "$as_me:11019: \$? = $ac_status" >&5 | |
11020 if (exit $ac_status) && test -s "$ac_outfile"; then | |
11021 # The compiler can only warn and ignore the option if not recognized | |
11022 # So say no if there are warnings | |
11023 if test ! -s conftest.err; then | |
11024 lt_prog_compiler_pic_works_CXX=yes | |
11025 fi | |
11026 fi | |
11027 $rm conftest* | |
11028 | |
11029 fi | |
11030 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
11031 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
11032 | |
11033 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
11034 case $lt_prog_compiler_pic_CXX in | |
11035 "" | " "*) ;; | |
11036 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
11037 esac | |
11038 else | |
11039 lt_prog_compiler_pic_CXX= | |
11040 lt_prog_compiler_can_build_shared_CXX=no | |
11041 fi | |
11042 | |
11043 fi | |
11044 case "$host_os" in | |
11045 # For platforms which do not support PIC, -DPIC is meaningless: | |
11046 *djgpp*) | |
11047 lt_prog_compiler_pic_CXX= | |
11048 ;; | |
11049 *) | |
11050 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
11051 ;; | |
11052 esac | |
11053 | |
11054 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
11056 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
11057 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11058 else | |
11059 lt_cv_prog_compiler_c_o_CXX=no | |
11060 $rm -r conftest 2>/dev/null | |
11061 mkdir conftest | |
11062 cd conftest | |
11063 mkdir out | |
11064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11065 | |
11066 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11067 # Insert the option either (1) after the last *FLAGS variable, or | |
11068 # (2) before a word containing "conftest.", or (3) at the end. | |
11069 # Note that $ac_compile itself does not contain backslashes and begins | |
11070 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11071 lt_compile=`echo "$ac_compile" | $SED \ | |
11072 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
11073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11074 -e 's:$: $lt_compiler_flag:'` | |
11075 (eval echo "\"\$as_me:11075: $lt_compile\"" >&5) | |
11076 (eval "$lt_compile" 2>out/conftest.err) | |
11077 ac_status=$? | |
11078 cat out/conftest.err >&5 | |
11079 echo "$as_me:11079: \$? = $ac_status" >&5 | |
11080 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
11081 then | |
11082 # The compiler can only warn and ignore the option if not recognized | |
11083 # So say no if there are warnings | |
11084 if test ! -s out/conftest.err; then | |
11085 lt_cv_prog_compiler_c_o_CXX=yes | |
11086 fi | |
11087 fi | |
11088 chmod u+w . | |
11089 $rm conftest* | |
11090 # SGI C++ compiler will create directory out/ii_files/ for | |
11091 # template instantiation | |
11092 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
11093 $rm out/* && rmdir out | |
11094 cd .. | |
11095 rmdir conftest | |
11096 $rm conftest* | |
11097 | |
11098 fi | |
11099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
11100 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
11101 | |
11102 | |
11103 hard_links="nottested" | |
11104 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
11105 # do not overwrite the value of need_locks provided by the user | |
11106 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
11107 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
11108 hard_links=yes | |
11109 $rm conftest* | |
11110 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11111 touch conftest.a | |
11112 ln conftest.a conftest.b 2>&5 || hard_links=no | |
11113 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11114 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
11115 echo "${ECHO_T}$hard_links" >&6 | |
11116 if test "$hard_links" = no; then | |
11117 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
11118 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
11119 need_locks=warn | |
11120 fi | |
11121 else | |
11122 need_locks=no | |
11123 fi | |
11124 | |
11125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
11127 | |
11128 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11129 case $host_os in | |
11130 aix4* | aix5*) | |
11131 # If we're using GNU nm, then we don't want the "-C" option. | |
11132 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11133 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
11134 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' | |
11135 else | |
11136 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' | |
11137 fi | |
11138 ;; | |
11139 pw32*) | |
11140 export_symbols_cmds_CXX="$ltdll_cmds" | |
11141 ;; | |
11142 cygwin* | mingw*) | |
11143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
11144 ;; | |
11145 *) | |
11146 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11147 ;; | |
11148 esac | |
11149 | |
11150 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11151 echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11152 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11153 | |
11154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11155 if test "$GCC" = yes; then | |
11156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11157 fi | |
11158 | |
11159 # | |
11160 # Do we need to explicitly link libc? | |
11161 # | |
11162 case "x$archive_cmds_need_lc_CXX" in | |
11163 x|xyes) | |
11164 # Assume -lc should be added | |
11165 archive_cmds_need_lc_CXX=yes | |
11166 | |
11167 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11168 case $archive_cmds_CXX in | |
11169 *'~'*) | |
11170 # FIXME: we may have to deal with multi-command sequences. | |
11171 ;; | |
11172 '$CC '*) | |
11173 # Test whether the compiler implicitly links with -lc since on some | |
11174 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11175 # to ld, don't add -lc before -lgcc. | |
11176 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
11177 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
11178 $rm conftest* | |
11179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11180 | |
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11182 (eval $ac_compile) 2>&5 | |
11183 ac_status=$? | |
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11185 (exit $ac_status); } 2>conftest.err; then | |
11186 soname=conftest | |
11187 lib=conftest | |
11188 libobjs=conftest.$ac_objext | |
11189 deplibs= | |
11190 wl=$lt_prog_compiler_wl_CXX | |
11191 compiler_flags=-v | |
11192 linker_flags=-v | |
11193 verstring= | |
11194 output_objdir=. | |
11195 libname=conftest | |
11196 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
11197 allow_undefined_flag_CXX= | |
11198 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
11199 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11200 ac_status=$? | |
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11202 (exit $ac_status); } | |
11203 then | |
11204 archive_cmds_need_lc_CXX=no | |
11205 else | |
11206 archive_cmds_need_lc_CXX=yes | |
11207 fi | |
11208 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
11209 else | |
11210 cat conftest.err 1>&5 | |
11211 fi | |
11212 $rm conftest* | |
11213 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
11214 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
11215 ;; | |
11216 esac | |
11217 fi | |
11218 ;; | |
11219 esac | |
11220 | |
11221 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
11222 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
11223 library_names_spec= | |
11224 libname_spec='lib$name' | |
11225 soname_spec= | |
11226 shrext=".so" | |
11227 postinstall_cmds= | |
11228 postuninstall_cmds= | |
11229 finish_cmds= | |
11230 finish_eval= | |
11231 shlibpath_var= | |
11232 shlibpath_overrides_runpath=unknown | |
11233 version_type=none | |
11234 dynamic_linker="$host_os ld.so" | |
11235 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11236 if test "$GCC" = yes; then | |
11237 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11238 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
11239 # if the path contains ";" then we assume it to be the separator | |
11240 # otherwise default to the standard path separator (i.e. ":") - it is | |
11241 # assumed that no part of a normal pathname contains ";" but that should | |
11242 # okay in the real world where ";" in dirpaths is itself problematic. | |
11243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11244 else | |
11245 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11246 fi | |
11247 else | |
11248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11249 fi | |
11250 need_lib_prefix=unknown | |
11251 hardcode_into_libs=no | |
11252 | |
11253 # when you set need_version to no, make sure it does not cause -set_version | |
11254 # flags to be left without arguments | |
11255 need_version=unknown | |
11256 | |
11257 case $host_os in | |
11258 aix3*) | |
11259 version_type=linux | |
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11261 shlibpath_var=LIBPATH | |
11262 | |
11263 # AIX 3 has no versioning support, so we append a major version to the name. | |
11264 soname_spec='${libname}${release}${shared_ext}$major' | |
11265 ;; | |
11266 | |
11267 aix4* | aix5*) | |
11268 version_type=linux | |
11269 need_lib_prefix=no | |
11270 need_version=no | |
11271 hardcode_into_libs=yes | |
11272 if test "$host_cpu" = ia64; then | |
11273 # AIX 5 supports IA64 | |
11274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11275 shlibpath_var=LD_LIBRARY_PATH | |
11276 else | |
11277 # With GCC up to 2.95.x, collect2 would create an import file | |
11278 # for dependence libraries. The import file would start with | |
11279 # the line `#! .'. This would cause the generated library to | |
11280 # depend on `.', always an invalid library. This was fixed in | |
11281 # development snapshots of GCC prior to 3.0. | |
11282 case $host_os in | |
11283 aix4 | aix4.[01] | aix4.[01].*) | |
11284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11285 echo ' yes ' | |
11286 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
11287 : | |
11288 else | |
11289 can_build_shared=no | |
11290 fi | |
11291 ;; | |
11292 esac | |
11293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11294 # soname into executable. Probably we can add versioning support to | |
11295 # collect2, so additional links can be useful in future. | |
11296 if test "$aix_use_runtimelinking" = yes; then | |
11297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11298 # instead of lib<name>.a to let people know that these are not | |
11299 # typical AIX shared libraries. | |
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11301 else | |
11302 # We preserve .a as extension for shared libraries through AIX4.2 | |
11303 # and later when we are not doing run time linking. | |
11304 library_names_spec='${libname}${release}.a $libname.a' | |
11305 soname_spec='${libname}${release}${shared_ext}$major' | |
11306 fi | |
11307 shlibpath_var=LIBPATH | |
11308 fi | |
11309 ;; | |
11310 | |
11311 amigaos*) | |
11312 library_names_spec='$libname.ixlibrary $libname.a' | |
11313 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11314 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' | |
11315 ;; | |
11316 | |
11317 beos*) | |
11318 library_names_spec='${libname}${shared_ext}' | |
11319 dynamic_linker="$host_os ld.so" | |
11320 shlibpath_var=LIBRARY_PATH | |
11321 ;; | |
11322 | |
11323 bsdi4*) | |
11324 version_type=linux | |
11325 need_version=no | |
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11327 soname_spec='${libname}${release}${shared_ext}$major' | |
11328 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11329 shlibpath_var=LD_LIBRARY_PATH | |
11330 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11331 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11332 # the default ld.so.conf also contains /usr/contrib/lib and | |
11333 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11334 # libtool to hard-code these into programs | |
11335 ;; | |
11336 | |
11337 cygwin* | mingw* | pw32*) | |
11338 version_type=windows | |
11339 shrext=".dll" | |
11340 need_version=no | |
11341 need_lib_prefix=no | |
11342 | |
11343 case $GCC,$host_os in | |
11344 yes,cygwin* | yes,mingw* | yes,pw32*) | |
11345 library_names_spec='$libname.dll.a' | |
11346 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11347 postinstall_cmds='base_file=`basename \${file}`~ | |
11348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
11349 dldir=$destdir/`dirname \$dlpath`~ | |
11350 test -d \$dldir || mkdir -p \$dldir~ | |
11351 $install_prog $dir/$dlname \$dldir/$dlname' | |
11352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11353 dlpath=$dir/\$dldll~ | |
11354 $rm \$dlpath' | |
11355 shlibpath_overrides_runpath=yes | |
11356 | |
11357 case $host_os in | |
11358 cygwin*) | |
11359 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11361 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
11362 ;; | |
11363 mingw*) | |
11364 # MinGW DLLs use traditional 'lib' prefix | |
11365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11367 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
11368 # It is most probably a Windows format PATH printed by | |
11369 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
11370 # path with ; separators, and with drive letters. We can handle the | |
11371 # drive letters (cygwin fileutils understands them), so leave them, | |
11372 # especially as we might pass files found there to a mingw objdump, | |
11373 # which wouldn't understand a cygwinified path. Ahh. | |
11374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11375 else | |
11376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11377 fi | |
11378 ;; | |
11379 pw32*) | |
11380 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11381 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
11382 ;; | |
11383 esac | |
11384 ;; | |
11385 | |
11386 *) | |
11387 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11388 ;; | |
11389 esac | |
11390 dynamic_linker='Win32 ld.exe' | |
11391 # FIXME: first we should search . and the directory the executable is in | |
11392 shlibpath_var=PATH | |
11393 ;; | |
11394 | |
11395 darwin* | rhapsody*) | |
11396 dynamic_linker="$host_os dyld" | |
11397 version_type=darwin | |
11398 need_lib_prefix=no | |
11399 need_version=no | |
11400 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11401 soname_spec='${libname}${release}${major}$shared_ext' | |
11402 shlibpath_overrides_runpath=yes | |
11403 shlibpath_var=DYLD_LIBRARY_PATH | |
11404 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
11405 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
11406 if test "$GCC" = yes; then | |
11407 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"` | |
11408 else | |
11409 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
11410 fi | |
11411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11412 ;; | |
11413 | |
11414 dgux*) | |
11415 version_type=linux | |
11416 need_lib_prefix=no | |
11417 need_version=no | |
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11419 soname_spec='${libname}${release}${shared_ext}$major' | |
11420 shlibpath_var=LD_LIBRARY_PATH | |
11421 ;; | |
11422 | |
11423 freebsd1*) | |
11424 dynamic_linker=no | |
11425 ;; | |
11426 | |
11427 kfreebsd*-gnu) | |
11428 version_type=linux | |
11429 need_lib_prefix=no | |
11430 need_version=no | |
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11432 soname_spec='${libname}${release}${shared_ext}$major' | |
11433 shlibpath_var=LD_LIBRARY_PATH | |
11434 shlibpath_overrides_runpath=no | |
11435 hardcode_into_libs=yes | |
11436 dynamic_linker='GNU ld.so' | |
11437 ;; | |
11438 | |
11439 freebsd*) | |
11440 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
11441 version_type=freebsd-$objformat | |
11442 case $version_type in | |
11443 freebsd-elf*) | |
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11445 need_version=no | |
11446 need_lib_prefix=no | |
11447 ;; | |
11448 freebsd-*) | |
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11450 need_version=yes | |
11451 ;; | |
11452 esac | |
11453 shlibpath_var=LD_LIBRARY_PATH | |
11454 case $host_os in | |
11455 freebsd2*) | |
11456 shlibpath_overrides_runpath=yes | |
11457 ;; | |
11458 freebsd3.01* | freebsdelf3.01*) | |
11459 shlibpath_overrides_runpath=yes | |
11460 hardcode_into_libs=yes | |
11461 ;; | |
11462 *) # from 3.2 on | |
11463 shlibpath_overrides_runpath=no | |
11464 hardcode_into_libs=yes | |
11465 ;; | |
11466 esac | |
11467 ;; | |
11468 | |
11469 gnu*) | |
11470 version_type=linux | |
11471 need_lib_prefix=no | |
11472 need_version=no | |
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11474 soname_spec='${libname}${release}${shared_ext}$major' | |
11475 shlibpath_var=LD_LIBRARY_PATH | |
11476 hardcode_into_libs=yes | |
11477 ;; | |
11478 | |
11479 hpux9* | hpux10* | hpux11*) | |
11480 # Give a soname corresponding to the major version so that dld.sl refuses to | |
11481 # link against other versions. | |
11482 version_type=sunos | |
11483 need_lib_prefix=no | |
11484 need_version=no | |
11485 case "$host_cpu" in | |
11486 ia64*) | |
11487 shrext='.so' | |
11488 hardcode_into_libs=yes | |
11489 dynamic_linker="$host_os dld.so" | |
11490 shlibpath_var=LD_LIBRARY_PATH | |
11491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
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 if test "X$HPUX_IA64_MODE" = X32; then | |
11495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11496 else | |
11497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11498 fi | |
11499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11500 ;; | |
11501 hppa*64*) | |
11502 shrext='.sl' | |
11503 hardcode_into_libs=yes | |
11504 dynamic_linker="$host_os dld.sl" | |
11505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11508 soname_spec='${libname}${release}${shared_ext}$major' | |
11509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11511 ;; | |
11512 *) | |
11513 shrext='.sl' | |
11514 dynamic_linker="$host_os dld.sl" | |
11515 shlibpath_var=SHLIB_PATH | |
11516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11518 soname_spec='${libname}${release}${shared_ext}$major' | |
11519 ;; | |
11520 esac | |
11521 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
11522 postinstall_cmds='chmod 555 $lib' | |
11523 ;; | |
11524 | |
11525 irix5* | irix6* | nonstopux*) | |
11526 case $host_os in | |
11527 nonstopux*) version_type=nonstopux ;; | |
11528 *) | |
11529 if test "$lt_cv_prog_gnu_ld" = yes; then | |
11530 version_type=linux | |
11531 else | |
11532 version_type=irix | |
11533 fi ;; | |
11534 esac | |
11535 need_lib_prefix=no | |
11536 need_version=no | |
11537 soname_spec='${libname}${release}${shared_ext}$major' | |
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11539 case $host_os in | |
11540 irix5* | nonstopux*) | |
11541 libsuff= shlibsuff= | |
11542 ;; | |
11543 *) | |
11544 case $LD in # libtool.m4 will add one of these switches to LD | |
11545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11546 libsuff= shlibsuff= libmagic=32-bit;; | |
11547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11548 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11550 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11551 *) libsuff= shlibsuff= libmagic=never-match;; | |
11552 esac | |
11553 ;; | |
11554 esac | |
11555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11556 shlibpath_overrides_runpath=no | |
11557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11559 hardcode_into_libs=yes | |
11560 ;; | |
11561 | |
11562 # No shared lib support for Linux oldld, aout, or coff. | |
11563 linux*oldld* | linux*aout* | linux*coff*) | |
11564 dynamic_linker=no | |
11565 ;; | |
11566 | |
11567 # This must be Linux ELF. | |
11568 linux*) | |
11569 version_type=linux | |
11570 need_lib_prefix=no | |
11571 need_version=no | |
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11573 soname_spec='${libname}${release}${shared_ext}$major' | |
11574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11575 shlibpath_var=LD_LIBRARY_PATH | |
11576 shlibpath_overrides_runpath=no | |
11577 # This implies no fast_install, which is unacceptable. | |
11578 # Some rework will be needed to allow for fast_install | |
11579 # before this can be enabled. | |
11580 hardcode_into_libs=yes | |
11581 | |
11582 # Append ld.so.conf contents to the search path | |
11583 if test -f /etc/ld.so.conf; then | |
11584 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
11585 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
11586 fi | |
11587 | |
11588 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11589 # powerpc, because MkLinux only supported shared libraries with the | |
11590 # GNU dynamic linker. Since this was broken with cross compilers, | |
11591 # most powerpc-linux boxes support dynamic linking these days and | |
11592 # people can always --disable-shared, the test was removed, and we | |
11593 # assume the GNU/Linux dynamic linker is in use. | |
11594 dynamic_linker='GNU/Linux ld.so' | |
11595 ;; | |
11596 | |
11597 knetbsd*-gnu) | |
11598 version_type=linux | |
11599 need_lib_prefix=no | |
11600 need_version=no | |
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11602 soname_spec='${libname}${release}${shared_ext}$major' | |
11603 shlibpath_var=LD_LIBRARY_PATH | |
11604 shlibpath_overrides_runpath=no | |
11605 hardcode_into_libs=yes | |
11606 dynamic_linker='GNU ld.so' | |
11607 ;; | |
11608 | |
11609 netbsd*) | |
11610 version_type=sunos | |
11611 need_lib_prefix=no | |
11612 need_version=no | |
11613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11616 dynamic_linker='NetBSD (a.out) ld.so' | |
11617 else | |
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11619 soname_spec='${libname}${release}${shared_ext}$major' | |
11620 dynamic_linker='NetBSD ld.elf_so' | |
11621 fi | |
11622 shlibpath_var=LD_LIBRARY_PATH | |
11623 shlibpath_overrides_runpath=yes | |
11624 hardcode_into_libs=yes | |
11625 ;; | |
11626 | |
11627 newsos6) | |
11628 version_type=linux | |
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11630 shlibpath_var=LD_LIBRARY_PATH | |
11631 shlibpath_overrides_runpath=yes | |
11632 ;; | |
11633 | |
11634 nto-qnx*) | |
11635 version_type=linux | |
11636 need_lib_prefix=no | |
11637 need_version=no | |
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11639 soname_spec='${libname}${release}${shared_ext}$major' | |
11640 shlibpath_var=LD_LIBRARY_PATH | |
11641 shlibpath_overrides_runpath=yes | |
11642 ;; | |
11643 | |
11644 openbsd*) | |
11645 version_type=sunos | |
11646 need_lib_prefix=no | |
11647 need_version=yes | |
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11650 shlibpath_var=LD_LIBRARY_PATH | |
11651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11652 case $host_os in | |
11653 openbsd2.[89] | openbsd2.[89].*) | |
11654 shlibpath_overrides_runpath=no | |
11655 ;; | |
11656 *) | |
11657 shlibpath_overrides_runpath=yes | |
11658 ;; | |
11659 esac | |
11660 else | |
11661 shlibpath_overrides_runpath=yes | |
11662 fi | |
11663 ;; | |
11664 | |
11665 os2*) | |
11666 libname_spec='$name' | |
11667 shrext=".dll" | |
11668 need_lib_prefix=no | |
11669 library_names_spec='$libname${shared_ext} $libname.a' | |
11670 dynamic_linker='OS/2 ld.exe' | |
11671 shlibpath_var=LIBPATH | |
11672 ;; | |
11673 | |
11674 osf3* | osf4* | osf5*) | |
11675 version_type=osf | |
11676 need_lib_prefix=no | |
11677 need_version=no | |
11678 soname_spec='${libname}${release}${shared_ext}$major' | |
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11680 shlibpath_var=LD_LIBRARY_PATH | |
11681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11683 ;; | |
11684 | |
11685 sco3.2v5*) | |
11686 version_type=osf | |
11687 soname_spec='${libname}${release}${shared_ext}$major' | |
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11689 shlibpath_var=LD_LIBRARY_PATH | |
11690 ;; | |
11691 | |
11692 solaris*) | |
11693 version_type=linux | |
11694 need_lib_prefix=no | |
11695 need_version=no | |
11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11697 soname_spec='${libname}${release}${shared_ext}$major' | |
11698 shlibpath_var=LD_LIBRARY_PATH | |
11699 shlibpath_overrides_runpath=yes | |
11700 hardcode_into_libs=yes | |
11701 # ldd complains unless libraries are executable | |
11702 postinstall_cmds='chmod +x $lib' | |
11703 ;; | |
11704 | |
11705 sunos4*) | |
11706 version_type=sunos | |
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11709 shlibpath_var=LD_LIBRARY_PATH | |
11710 shlibpath_overrides_runpath=yes | |
11711 if test "$with_gnu_ld" = yes; then | |
11712 need_lib_prefix=no | |
11713 fi | |
11714 need_version=yes | |
11715 ;; | |
11716 | |
11717 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11718 version_type=linux | |
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11720 soname_spec='${libname}${release}${shared_ext}$major' | |
11721 shlibpath_var=LD_LIBRARY_PATH | |
11722 case $host_vendor in | |
11723 sni) | |
11724 shlibpath_overrides_runpath=no | |
11725 need_lib_prefix=no | |
11726 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11727 runpath_var=LD_RUN_PATH | |
11728 ;; | |
11729 siemens) | |
11730 need_lib_prefix=no | |
11731 ;; | |
11732 motorola) | |
11733 need_lib_prefix=no | |
11734 need_version=no | |
11735 shlibpath_overrides_runpath=no | |
11736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11737 ;; | |
11738 esac | |
11739 ;; | |
11740 | |
11741 sysv4*MP*) | |
11742 if test -d /usr/nec ;then | |
11743 version_type=linux | |
11744 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11745 soname_spec='$libname${shared_ext}.$major' | |
11746 shlibpath_var=LD_LIBRARY_PATH | |
11747 fi | |
11748 ;; | |
11749 | |
11750 uts4*) | |
11751 version_type=linux | |
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11753 soname_spec='${libname}${release}${shared_ext}$major' | |
11754 shlibpath_var=LD_LIBRARY_PATH | |
11755 ;; | |
11756 | |
11757 *) | |
11758 dynamic_linker=no | |
11759 ;; | |
11760 esac | |
11761 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
11762 echo "${ECHO_T}$dynamic_linker" >&6 | |
11763 test "$dynamic_linker" = no && can_build_shared=no | |
11764 | |
11765 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
11766 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
11767 hardcode_action_CXX= | |
11768 if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
11769 test -n "$runpath_var CXX" || \ | |
11770 test "X$hardcode_automatic_CXX"="Xyes" ; then | |
11771 | |
11772 # We can hardcode non-existant directories. | |
11773 if test "$hardcode_direct_CXX" != no && | |
11774 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11775 # have to relink, otherwise we might link with an installed library | |
11776 # when we should be linking with a yet-to-be-installed one | |
11777 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
11778 test "$hardcode_minus_L_CXX" != no; then | |
11779 # Linking always hardcodes the temporary library directory. | |
11780 hardcode_action_CXX=relink | |
11781 else | |
11782 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11783 hardcode_action_CXX=immediate | |
11784 fi | |
11785 else | |
11786 # We cannot hardcode anything, or else we can only hardcode existing | |
11787 # directories. | |
11788 hardcode_action_CXX=unsupported | |
11789 fi | |
11790 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
11791 echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
11792 | |
11793 if test "$hardcode_action_CXX" = relink; then | |
11794 # Fast installation is not supported | |
11795 enable_fast_install=no | |
11796 elif test "$shlibpath_overrides_runpath" = yes || | |
11797 test "$enable_shared" = no; then | |
11798 # Fast installation is not necessary | |
11799 enable_fast_install=needless | |
11800 fi | |
11801 | |
11802 striplib= | |
11803 old_striplib= | |
11804 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11805 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
11806 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
11807 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11808 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11809 echo "$as_me:$LINENO: result: yes" >&5 | |
11810 echo "${ECHO_T}yes" >&6 | |
11811 else | |
11812 # FIXME - insert some real tests, host_os isn't really good enough | |
11813 case $host_os in | |
11814 darwin*) | |
11815 if test -n "$STRIP" ; then | |
11816 striplib="$STRIP -x" | |
11817 echo "$as_me:$LINENO: result: yes" >&5 | |
11818 echo "${ECHO_T}yes" >&6 | |
11819 else | |
11820 echo "$as_me:$LINENO: result: no" >&5 | |
11821 echo "${ECHO_T}no" >&6 | |
11822 fi | |
11823 ;; | |
11824 *) | |
11825 echo "$as_me:$LINENO: result: no" >&5 | |
11826 echo "${ECHO_T}no" >&6 | |
11827 ;; | |
11828 esac | |
11829 fi | |
11830 | |
11831 if test "x$enable_dlopen" != xyes; then | |
11832 enable_dlopen=unknown | |
11833 enable_dlopen_self=unknown | |
11834 enable_dlopen_self_static=unknown | |
11835 else | |
11836 lt_cv_dlopen=no | |
11837 lt_cv_dlopen_libs= | |
11838 | |
11839 case $host_os in | |
11840 beos*) | |
11841 lt_cv_dlopen="load_add_on" | |
11842 lt_cv_dlopen_libs= | |
11843 lt_cv_dlopen_self=yes | |
11844 ;; | |
11845 | |
11846 mingw* | pw32*) | |
11847 lt_cv_dlopen="LoadLibrary" | |
11848 lt_cv_dlopen_libs= | |
11849 ;; | |
11850 | |
11851 cygwin*) | |
11852 lt_cv_dlopen="dlopen" | |
11853 lt_cv_dlopen_libs= | |
11854 ;; | |
11855 | |
11856 darwin*) | |
11857 # if libdl is installed we need to link against it | |
11858 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11859 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11860 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11861 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11862 else | |
11863 ac_check_lib_save_LIBS=$LIBS | |
11864 LIBS="-ldl $LIBS" | |
11865 cat >conftest.$ac_ext <<_ACEOF | |
11866 /* confdefs.h. */ | |
11867 _ACEOF | |
11868 cat confdefs.h >>conftest.$ac_ext | |
11869 cat >>conftest.$ac_ext <<_ACEOF | |
11870 /* end confdefs.h. */ | |
11871 | |
11872 /* Override any gcc2 internal prototype to avoid an error. */ | |
11873 #ifdef __cplusplus | |
11874 extern "C" | |
11875 #endif | |
11876 /* We use char because int might match the return type of a gcc2 | |
11877 builtin and then its argument prototype would still apply. */ | |
11878 char dlopen (); | |
11879 int | |
11880 main () | |
11881 { | |
11882 dlopen (); | |
11883 ; | |
11884 return 0; | |
11885 } | |
11886 _ACEOF | |
11887 rm -f conftest.$ac_objext conftest$ac_exeext | |
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11889 (eval $ac_link) 2>conftest.er1 | |
11890 ac_status=$? | |
11891 grep -v '^ *+' conftest.er1 >conftest.err | |
11892 rm -f conftest.er1 | |
11893 cat conftest.err >&5 | |
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11895 (exit $ac_status); } && | |
11896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11898 (eval $ac_try) 2>&5 | |
11899 ac_status=$? | |
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11901 (exit $ac_status); }; } && | |
11902 { ac_try='test -s conftest$ac_exeext' | |
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11904 (eval $ac_try) 2>&5 | |
11905 ac_status=$? | |
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11907 (exit $ac_status); }; }; then | |
11908 ac_cv_lib_dl_dlopen=yes | |
11909 else | |
11910 echo "$as_me: failed program was:" >&5 | |
11911 sed 's/^/| /' conftest.$ac_ext >&5 | |
11912 | |
11913 ac_cv_lib_dl_dlopen=no | |
11914 fi | |
11915 rm -f conftest.err conftest.$ac_objext \ | |
11916 conftest$ac_exeext conftest.$ac_ext | |
11917 LIBS=$ac_check_lib_save_LIBS | |
11918 fi | |
11919 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11920 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11921 if test $ac_cv_lib_dl_dlopen = yes; then | |
11922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11923 else | |
11924 | |
11925 lt_cv_dlopen="dyld" | |
11926 lt_cv_dlopen_libs= | |
11927 lt_cv_dlopen_self=yes | |
11928 | |
11929 fi | |
11930 | |
11931 ;; | |
11932 | |
11933 *) | |
11934 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
11935 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
11936 if test "${ac_cv_func_shl_load+set}" = set; then | |
11937 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11938 else | |
11939 cat >conftest.$ac_ext <<_ACEOF | |
11940 /* confdefs.h. */ | |
11941 _ACEOF | |
11942 cat confdefs.h >>conftest.$ac_ext | |
11943 cat >>conftest.$ac_ext <<_ACEOF | |
11944 /* end confdefs.h. */ | |
11945 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
11946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11947 #define shl_load innocuous_shl_load | |
11948 | |
11949 /* System header to define __stub macros and hopefully few prototypes, | |
11950 which can conflict with char shl_load (); below. | |
11951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11952 <limits.h> exists even on freestanding compilers. */ | |
11953 | |
11954 #ifdef __STDC__ | |
11955 # include <limits.h> | |
11956 #else | |
11957 # include <assert.h> | |
11958 #endif | |
11959 | |
11960 #undef shl_load | |
11961 | |
11962 /* Override any gcc2 internal prototype to avoid an error. */ | |
11963 #ifdef __cplusplus | |
11964 extern "C" | |
11965 { | |
11966 #endif | |
11967 /* We use char because int might match the return type of a gcc2 | |
11968 builtin and then its argument prototype would still apply. */ | |
11969 char shl_load (); | |
11970 /* The GNU C library defines this for functions which it implements | |
11971 to always fail with ENOSYS. Some functions are actually named | |
11972 something starting with __ and the normal name is an alias. */ | |
11973 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
11974 choke me | |
11975 #else | |
11976 char (*f) () = shl_load; | |
11977 #endif | |
11978 #ifdef __cplusplus | |
11979 } | |
11980 #endif | |
11981 | |
11982 int | |
11983 main () | |
11984 { | |
11985 return f != shl_load; | |
11986 ; | |
11987 return 0; | |
11988 } | |
11989 _ACEOF | |
11990 rm -f conftest.$ac_objext conftest$ac_exeext | |
11991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11992 (eval $ac_link) 2>conftest.er1 | |
11993 ac_status=$? | |
11994 grep -v '^ *+' conftest.er1 >conftest.err | |
11995 rm -f conftest.er1 | |
11996 cat conftest.err >&5 | |
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11998 (exit $ac_status); } && | |
11999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12001 (eval $ac_try) 2>&5 | |
12002 ac_status=$? | |
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12004 (exit $ac_status); }; } && | |
12005 { ac_try='test -s conftest$ac_exeext' | |
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12007 (eval $ac_try) 2>&5 | |
12008 ac_status=$? | |
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12010 (exit $ac_status); }; }; then | |
12011 ac_cv_func_shl_load=yes | |
12012 else | |
12013 echo "$as_me: failed program was:" >&5 | |
12014 sed 's/^/| /' conftest.$ac_ext >&5 | |
12015 | |
12016 ac_cv_func_shl_load=no | |
12017 fi | |
12018 rm -f conftest.err conftest.$ac_objext \ | |
12019 conftest$ac_exeext conftest.$ac_ext | |
12020 fi | |
12021 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
12022 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
12023 if test $ac_cv_func_shl_load = yes; then | |
12024 lt_cv_dlopen="shl_load" | |
12025 else | |
12026 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
12027 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
12028 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
12029 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12030 else | |
12031 ac_check_lib_save_LIBS=$LIBS | |
12032 LIBS="-ldld $LIBS" | |
12033 cat >conftest.$ac_ext <<_ACEOF | |
12034 /* confdefs.h. */ | |
12035 _ACEOF | |
12036 cat confdefs.h >>conftest.$ac_ext | |
12037 cat >>conftest.$ac_ext <<_ACEOF | |
12038 /* end confdefs.h. */ | |
12039 | |
12040 /* Override any gcc2 internal prototype to avoid an error. */ | |
12041 #ifdef __cplusplus | |
12042 extern "C" | |
12043 #endif | |
12044 /* We use char because int might match the return type of a gcc2 | |
12045 builtin and then its argument prototype would still apply. */ | |
12046 char shl_load (); | |
12047 int | |
12048 main () | |
12049 { | |
12050 shl_load (); | |
12051 ; | |
12052 return 0; | |
12053 } | |
12054 _ACEOF | |
12055 rm -f conftest.$ac_objext conftest$ac_exeext | |
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12057 (eval $ac_link) 2>conftest.er1 | |
12058 ac_status=$? | |
12059 grep -v '^ *+' conftest.er1 >conftest.err | |
12060 rm -f conftest.er1 | |
12061 cat conftest.err >&5 | |
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12063 (exit $ac_status); } && | |
12064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12066 (eval $ac_try) 2>&5 | |
12067 ac_status=$? | |
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12069 (exit $ac_status); }; } && | |
12070 { ac_try='test -s conftest$ac_exeext' | |
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12072 (eval $ac_try) 2>&5 | |
12073 ac_status=$? | |
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12075 (exit $ac_status); }; }; then | |
12076 ac_cv_lib_dld_shl_load=yes | |
12077 else | |
12078 echo "$as_me: failed program was:" >&5 | |
12079 sed 's/^/| /' conftest.$ac_ext >&5 | |
12080 | |
12081 ac_cv_lib_dld_shl_load=no | |
12082 fi | |
12083 rm -f conftest.err conftest.$ac_objext \ | |
12084 conftest$ac_exeext conftest.$ac_ext | |
12085 LIBS=$ac_check_lib_save_LIBS | |
12086 fi | |
12087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
12088 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
12089 if test $ac_cv_lib_dld_shl_load = yes; then | |
12090 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
12091 else | |
12092 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
12093 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
12094 if test "${ac_cv_func_dlopen+set}" = set; then | |
12095 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12096 else | |
12097 cat >conftest.$ac_ext <<_ACEOF | |
12098 /* confdefs.h. */ | |
12099 _ACEOF | |
12100 cat confdefs.h >>conftest.$ac_ext | |
12101 cat >>conftest.$ac_ext <<_ACEOF | |
12102 /* end confdefs.h. */ | |
12103 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
12104 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12105 #define dlopen innocuous_dlopen | |
12106 | |
12107 /* System header to define __stub macros and hopefully few prototypes, | |
12108 which can conflict with char dlopen (); below. | |
12109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12110 <limits.h> exists even on freestanding compilers. */ | |
12111 | |
12112 #ifdef __STDC__ | |
12113 # include <limits.h> | |
12114 #else | |
12115 # include <assert.h> | |
12116 #endif | |
12117 | |
12118 #undef dlopen | |
12119 | |
12120 /* Override any gcc2 internal prototype to avoid an error. */ | |
12121 #ifdef __cplusplus | |
12122 extern "C" | |
12123 { | |
12124 #endif | |
12125 /* We use char because int might match the return type of a gcc2 | |
12126 builtin and then its argument prototype would still apply. */ | |
12127 char dlopen (); | |
12128 /* The GNU C library defines this for functions which it implements | |
12129 to always fail with ENOSYS. Some functions are actually named | |
12130 something starting with __ and the normal name is an alias. */ | |
12131 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
12132 choke me | |
12133 #else | |
12134 char (*f) () = dlopen; | |
12135 #endif | |
12136 #ifdef __cplusplus | |
12137 } | |
12138 #endif | |
12139 | |
12140 int | |
12141 main () | |
12142 { | |
12143 return f != dlopen; | |
12144 ; | |
12145 return 0; | |
12146 } | |
12147 _ACEOF | |
12148 rm -f conftest.$ac_objext conftest$ac_exeext | |
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12150 (eval $ac_link) 2>conftest.er1 | |
12151 ac_status=$? | |
12152 grep -v '^ *+' conftest.er1 >conftest.err | |
12153 rm -f conftest.er1 | |
12154 cat conftest.err >&5 | |
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12156 (exit $ac_status); } && | |
12157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12159 (eval $ac_try) 2>&5 | |
12160 ac_status=$? | |
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12162 (exit $ac_status); }; } && | |
12163 { ac_try='test -s conftest$ac_exeext' | |
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12165 (eval $ac_try) 2>&5 | |
12166 ac_status=$? | |
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12168 (exit $ac_status); }; }; then | |
12169 ac_cv_func_dlopen=yes | |
12170 else | |
12171 echo "$as_me: failed program was:" >&5 | |
12172 sed 's/^/| /' conftest.$ac_ext >&5 | |
12173 | |
12174 ac_cv_func_dlopen=no | |
12175 fi | |
12176 rm -f conftest.err conftest.$ac_objext \ | |
12177 conftest$ac_exeext conftest.$ac_ext | |
12178 fi | |
12179 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
12180 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
12181 if test $ac_cv_func_dlopen = yes; then | |
12182 lt_cv_dlopen="dlopen" | |
12183 else | |
12184 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
12185 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
12186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
12187 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12188 else | |
12189 ac_check_lib_save_LIBS=$LIBS | |
12190 LIBS="-ldl $LIBS" | |
12191 cat >conftest.$ac_ext <<_ACEOF | |
12192 /* confdefs.h. */ | |
12193 _ACEOF | |
12194 cat confdefs.h >>conftest.$ac_ext | |
12195 cat >>conftest.$ac_ext <<_ACEOF | |
12196 /* end confdefs.h. */ | |
12197 | |
12198 /* Override any gcc2 internal prototype to avoid an error. */ | |
12199 #ifdef __cplusplus | |
12200 extern "C" | |
12201 #endif | |
12202 /* We use char because int might match the return type of a gcc2 | |
12203 builtin and then its argument prototype would still apply. */ | |
12204 char dlopen (); | |
12205 int | |
12206 main () | |
12207 { | |
12208 dlopen (); | |
12209 ; | |
12210 return 0; | |
12211 } | |
12212 _ACEOF | |
12213 rm -f conftest.$ac_objext conftest$ac_exeext | |
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12215 (eval $ac_link) 2>conftest.er1 | |
12216 ac_status=$? | |
12217 grep -v '^ *+' conftest.er1 >conftest.err | |
12218 rm -f conftest.er1 | |
12219 cat conftest.err >&5 | |
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12221 (exit $ac_status); } && | |
12222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12224 (eval $ac_try) 2>&5 | |
12225 ac_status=$? | |
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 (exit $ac_status); }; } && | |
12228 { ac_try='test -s conftest$ac_exeext' | |
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12230 (eval $ac_try) 2>&5 | |
12231 ac_status=$? | |
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12233 (exit $ac_status); }; }; then | |
12234 ac_cv_lib_dl_dlopen=yes | |
12235 else | |
12236 echo "$as_me: failed program was:" >&5 | |
12237 sed 's/^/| /' conftest.$ac_ext >&5 | |
12238 | |
12239 ac_cv_lib_dl_dlopen=no | |
12240 fi | |
12241 rm -f conftest.err conftest.$ac_objext \ | |
12242 conftest$ac_exeext conftest.$ac_ext | |
12243 LIBS=$ac_check_lib_save_LIBS | |
12244 fi | |
12245 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
12246 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
12247 if test $ac_cv_lib_dl_dlopen = yes; then | |
12248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12249 else | |
12250 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
12251 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
12252 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
12253 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12254 else | |
12255 ac_check_lib_save_LIBS=$LIBS | |
12256 LIBS="-lsvld $LIBS" | |
12257 cat >conftest.$ac_ext <<_ACEOF | |
12258 /* confdefs.h. */ | |
12259 _ACEOF | |
12260 cat confdefs.h >>conftest.$ac_ext | |
12261 cat >>conftest.$ac_ext <<_ACEOF | |
12262 /* end confdefs.h. */ | |
12263 | |
12264 /* Override any gcc2 internal prototype to avoid an error. */ | |
12265 #ifdef __cplusplus | |
12266 extern "C" | |
12267 #endif | |
12268 /* We use char because int might match the return type of a gcc2 | |
12269 builtin and then its argument prototype would still apply. */ | |
12270 char dlopen (); | |
12271 int | |
12272 main () | |
12273 { | |
12274 dlopen (); | |
12275 ; | |
12276 return 0; | |
12277 } | |
12278 _ACEOF | |
12279 rm -f conftest.$ac_objext conftest$ac_exeext | |
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12281 (eval $ac_link) 2>conftest.er1 | |
12282 ac_status=$? | |
12283 grep -v '^ *+' conftest.er1 >conftest.err | |
12284 rm -f conftest.er1 | |
12285 cat conftest.err >&5 | |
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 (exit $ac_status); } && | |
12288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12290 (eval $ac_try) 2>&5 | |
12291 ac_status=$? | |
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12293 (exit $ac_status); }; } && | |
12294 { ac_try='test -s conftest$ac_exeext' | |
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12296 (eval $ac_try) 2>&5 | |
12297 ac_status=$? | |
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12299 (exit $ac_status); }; }; then | |
12300 ac_cv_lib_svld_dlopen=yes | |
12301 else | |
12302 echo "$as_me: failed program was:" >&5 | |
12303 sed 's/^/| /' conftest.$ac_ext >&5 | |
12304 | |
12305 ac_cv_lib_svld_dlopen=no | |
12306 fi | |
12307 rm -f conftest.err conftest.$ac_objext \ | |
12308 conftest$ac_exeext conftest.$ac_ext | |
12309 LIBS=$ac_check_lib_save_LIBS | |
12310 fi | |
12311 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
12312 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
12313 if test $ac_cv_lib_svld_dlopen = yes; then | |
12314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12315 else | |
12316 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
12317 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
12318 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
12319 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12320 else | |
12321 ac_check_lib_save_LIBS=$LIBS | |
12322 LIBS="-ldld $LIBS" | |
12323 cat >conftest.$ac_ext <<_ACEOF | |
12324 /* confdefs.h. */ | |
12325 _ACEOF | |
12326 cat confdefs.h >>conftest.$ac_ext | |
12327 cat >>conftest.$ac_ext <<_ACEOF | |
12328 /* end confdefs.h. */ | |
12329 | |
12330 /* Override any gcc2 internal prototype to avoid an error. */ | |
12331 #ifdef __cplusplus | |
12332 extern "C" | |
12333 #endif | |
12334 /* We use char because int might match the return type of a gcc2 | |
12335 builtin and then its argument prototype would still apply. */ | |
12336 char dld_link (); | |
12337 int | |
12338 main () | |
12339 { | |
12340 dld_link (); | |
12341 ; | |
12342 return 0; | |
12343 } | |
12344 _ACEOF | |
12345 rm -f conftest.$ac_objext conftest$ac_exeext | |
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12347 (eval $ac_link) 2>conftest.er1 | |
12348 ac_status=$? | |
12349 grep -v '^ *+' conftest.er1 >conftest.err | |
12350 rm -f conftest.er1 | |
12351 cat conftest.err >&5 | |
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12353 (exit $ac_status); } && | |
12354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12356 (eval $ac_try) 2>&5 | |
12357 ac_status=$? | |
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12359 (exit $ac_status); }; } && | |
12360 { ac_try='test -s conftest$ac_exeext' | |
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12362 (eval $ac_try) 2>&5 | |
12363 ac_status=$? | |
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12365 (exit $ac_status); }; }; then | |
12366 ac_cv_lib_dld_dld_link=yes | |
12367 else | |
12368 echo "$as_me: failed program was:" >&5 | |
12369 sed 's/^/| /' conftest.$ac_ext >&5 | |
12370 | |
12371 ac_cv_lib_dld_dld_link=no | |
12372 fi | |
12373 rm -f conftest.err conftest.$ac_objext \ | |
12374 conftest$ac_exeext conftest.$ac_ext | |
12375 LIBS=$ac_check_lib_save_LIBS | |
12376 fi | |
12377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
12378 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
12379 if test $ac_cv_lib_dld_dld_link = yes; then | |
12380 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
12381 fi | |
12382 | |
12383 | |
12384 fi | |
12385 | |
12386 | |
12387 fi | |
12388 | |
12389 | |
12390 fi | |
12391 | |
12392 | |
12393 fi | |
12394 | |
12395 | |
12396 fi | |
12397 | |
12398 ;; | |
12399 esac | |
12400 | |
12401 if test "x$lt_cv_dlopen" != xno; then | |
12402 enable_dlopen=yes | |
12403 else | |
12404 enable_dlopen=no | |
12405 fi | |
12406 | |
12407 case $lt_cv_dlopen in | |
12408 dlopen) | |
12409 save_CPPFLAGS="$CPPFLAGS" | |
12410 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12411 | |
12412 save_LDFLAGS="$LDFLAGS" | |
12413 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12414 | |
12415 save_LIBS="$LIBS" | |
12416 LIBS="$lt_cv_dlopen_libs $LIBS" | |
12417 | |
12418 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
12419 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
12420 if test "${lt_cv_dlopen_self+set}" = set; then | |
12421 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12422 else | |
12423 if test "$cross_compiling" = yes; then : | |
12424 lt_cv_dlopen_self=cross | |
12425 else | |
12426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12427 lt_status=$lt_dlunknown | |
12428 cat > conftest.$ac_ext <<EOF | |
12429 #line 12429 "configure" | |
12430 #include "confdefs.h" | |
12431 | |
12432 #if HAVE_DLFCN_H | |
12433 #include <dlfcn.h> | |
12434 #endif | |
12435 | |
12436 #include <stdio.h> | |
12437 | |
12438 #ifdef RTLD_GLOBAL | |
12439 # define LT_DLGLOBAL RTLD_GLOBAL | |
12440 #else | |
12441 # ifdef DL_GLOBAL | |
12442 # define LT_DLGLOBAL DL_GLOBAL | |
12443 # else | |
12444 # define LT_DLGLOBAL 0 | |
12445 # endif | |
12446 #endif | |
12447 | |
12448 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12449 find out it does not work in some platform. */ | |
12450 #ifndef LT_DLLAZY_OR_NOW | |
12451 # ifdef RTLD_LAZY | |
12452 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12453 # else | |
12454 # ifdef DL_LAZY | |
12455 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12456 # else | |
12457 # ifdef RTLD_NOW | |
12458 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12459 # else | |
12460 # ifdef DL_NOW | |
12461 # define LT_DLLAZY_OR_NOW DL_NOW | |
12462 # else | |
12463 # define LT_DLLAZY_OR_NOW 0 | |
12464 # endif | |
12465 # endif | |
12466 # endif | |
12467 # endif | |
12468 #endif | |
12469 | |
12470 #ifdef __cplusplus | |
12471 extern "C" void exit (int); | |
12472 #endif | |
12473 | |
12474 void fnord() { int i=42;} | |
12475 int main () | |
12476 { | |
12477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12478 int status = $lt_dlunknown; | |
12479 | |
12480 if (self) | |
12481 { | |
12482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12484 /* dlclose (self); */ | |
12485 } | |
12486 | |
12487 exit (status); | |
12488 } | |
12489 EOF | |
12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12491 (eval $ac_link) 2>&5 | |
12492 ac_status=$? | |
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12494 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12495 (./conftest; exit; ) 2>/dev/null | |
12496 lt_status=$? | |
12497 case x$lt_status in | |
12498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12500 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
12501 esac | |
12502 else : | |
12503 # compilation failed | |
12504 lt_cv_dlopen_self=no | |
12505 fi | |
12506 fi | |
12507 rm -fr conftest* | |
12508 | |
12509 | |
12510 fi | |
12511 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
12512 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
12513 | |
12514 if test "x$lt_cv_dlopen_self" = xyes; then | |
12515 LDFLAGS="$LDFLAGS $link_static_flag" | |
12516 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
12517 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
12518 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
12519 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12520 else | |
12521 if test "$cross_compiling" = yes; then : | |
12522 lt_cv_dlopen_self_static=cross | |
12523 else | |
12524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12525 lt_status=$lt_dlunknown | |
12526 cat > conftest.$ac_ext <<EOF | |
12527 #line 12527 "configure" | |
12528 #include "confdefs.h" | |
12529 | |
12530 #if HAVE_DLFCN_H | |
12531 #include <dlfcn.h> | |
12532 #endif | |
12533 | |
12534 #include <stdio.h> | |
12535 | |
12536 #ifdef RTLD_GLOBAL | |
12537 # define LT_DLGLOBAL RTLD_GLOBAL | |
12538 #else | |
12539 # ifdef DL_GLOBAL | |
12540 # define LT_DLGLOBAL DL_GLOBAL | |
12541 # else | |
12542 # define LT_DLGLOBAL 0 | |
12543 # endif | |
12544 #endif | |
12545 | |
12546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12547 find out it does not work in some platform. */ | |
12548 #ifndef LT_DLLAZY_OR_NOW | |
12549 # ifdef RTLD_LAZY | |
12550 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12551 # else | |
12552 # ifdef DL_LAZY | |
12553 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12554 # else | |
12555 # ifdef RTLD_NOW | |
12556 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12557 # else | |
12558 # ifdef DL_NOW | |
12559 # define LT_DLLAZY_OR_NOW DL_NOW | |
12560 # else | |
12561 # define LT_DLLAZY_OR_NOW 0 | |
12562 # endif | |
12563 # endif | |
12564 # endif | |
12565 # endif | |
12566 #endif | |
12567 | |
12568 #ifdef __cplusplus | |
12569 extern "C" void exit (int); | |
12570 #endif | |
12571 | |
12572 void fnord() { int i=42;} | |
12573 int main () | |
12574 { | |
12575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12576 int status = $lt_dlunknown; | |
12577 | |
12578 if (self) | |
12579 { | |
12580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12582 /* dlclose (self); */ | |
12583 } | |
12584 | |
12585 exit (status); | |
12586 } | |
12587 EOF | |
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12589 (eval $ac_link) 2>&5 | |
12590 ac_status=$? | |
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12593 (./conftest; exit; ) 2>/dev/null | |
12594 lt_status=$? | |
12595 case x$lt_status in | |
12596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12598 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
12599 esac | |
12600 else : | |
12601 # compilation failed | |
12602 lt_cv_dlopen_self_static=no | |
12603 fi | |
12604 fi | |
12605 rm -fr conftest* | |
12606 | |
12607 | |
12608 fi | |
12609 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
12610 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
12611 fi | |
12612 | |
12613 CPPFLAGS="$save_CPPFLAGS" | |
12614 LDFLAGS="$save_LDFLAGS" | |
12615 LIBS="$save_LIBS" | |
12616 ;; | |
12617 esac | |
12618 | |
12619 case $lt_cv_dlopen_self in | |
12620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12621 *) enable_dlopen_self=unknown ;; | |
12622 esac | |
12623 | |
12624 case $lt_cv_dlopen_self_static in | |
12625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12626 *) enable_dlopen_self_static=unknown ;; | |
12627 esac | |
12628 fi | |
12629 | |
12630 | |
12631 # The else clause should only fire when bootstrapping the | |
12632 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12633 # with your package, and you will get complaints that there are | |
12634 # no rules to generate ltmain.sh. | |
12635 if test -f "$ltmain"; then | |
12636 # See if we are running on zsh, and set the options which allow our commands through | |
12637 # without removal of \ escapes. | |
12638 if test -n "${ZSH_VERSION+set}" ; then | |
12639 setopt NO_GLOB_SUBST | |
12640 fi | |
12641 # Now quote all the things that may contain metacharacters while being | |
12642 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12643 # variables and quote the copies for generation of the libtool script. | |
12644 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
12645 SED SHELL STRIP \ | |
12646 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12647 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12648 deplibs_check_method reload_flag reload_cmds need_locks \ | |
12649 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12650 lt_cv_sys_global_symbol_to_c_name_address \ | |
12651 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12652 old_postinstall_cmds old_postuninstall_cmds \ | |
12653 compiler_CXX \ | |
12654 CC_CXX \ | |
12655 LD_CXX \ | |
12656 lt_prog_compiler_wl_CXX \ | |
12657 lt_prog_compiler_pic_CXX \ | |
12658 lt_prog_compiler_static_CXX \ | |
12659 lt_prog_compiler_no_builtin_flag_CXX \ | |
12660 export_dynamic_flag_spec_CXX \ | |
12661 thread_safe_flag_spec_CXX \ | |
12662 whole_archive_flag_spec_CXX \ | |
12663 enable_shared_with_static_runtimes_CXX \ | |
12664 old_archive_cmds_CXX \ | |
12665 old_archive_from_new_cmds_CXX \ | |
12666 predep_objects_CXX \ | |
12667 postdep_objects_CXX \ | |
12668 predeps_CXX \ | |
12669 postdeps_CXX \ | |
12670 compiler_lib_search_path_CXX \ | |
12671 archive_cmds_CXX \ | |
12672 archive_expsym_cmds_CXX \ | |
12673 postinstall_cmds_CXX \ | |
12674 postuninstall_cmds_CXX \ | |
12675 old_archive_from_expsyms_cmds_CXX \ | |
12676 allow_undefined_flag_CXX \ | |
12677 no_undefined_flag_CXX \ | |
12678 export_symbols_cmds_CXX \ | |
12679 hardcode_libdir_flag_spec_CXX \ | |
12680 hardcode_libdir_flag_spec_ld_CXX \ | |
12681 hardcode_libdir_separator_CXX \ | |
12682 hardcode_automatic_CXX \ | |
12683 module_cmds_CXX \ | |
12684 module_expsym_cmds_CXX \ | |
12685 lt_cv_prog_compiler_c_o_CXX \ | |
12686 exclude_expsyms_CXX \ | |
12687 include_expsyms_CXX; do | |
12688 | |
12689 case $var in | |
12690 old_archive_cmds_CXX | \ | |
12691 old_archive_from_new_cmds_CXX | \ | |
12692 archive_cmds_CXX | \ | |
12693 archive_expsym_cmds_CXX | \ | |
12694 module_cmds_CXX | \ | |
12695 module_expsym_cmds_CXX | \ | |
12696 old_archive_from_expsyms_cmds_CXX | \ | |
12697 export_symbols_cmds_CXX | \ | |
12698 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12699 postinstall_cmds | postuninstall_cmds | \ | |
12700 old_postinstall_cmds | old_postuninstall_cmds | \ | |
12701 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12702 # Double-quote double-evaled strings. | |
12703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12704 ;; | |
12705 *) | |
12706 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12707 ;; | |
12708 esac | |
12709 done | |
12710 | |
12711 case $lt_echo in | |
12712 *'\$0 --fallback-echo"') | |
12713 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12714 ;; | |
12715 esac | |
12716 | |
12717 cfgfile="$ofile" | |
12718 | |
12719 cat <<__EOF__ >> "$cfgfile" | |
12720 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
12721 | |
12722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12723 | |
12724 # Shell to use when invoking shell scripts. | |
12725 SHELL=$lt_SHELL | |
12726 | |
12727 # Whether or not to build shared libraries. | |
12728 build_libtool_libs=$enable_shared | |
12729 | |
12730 # Whether or not to build static libraries. | |
12731 build_old_libs=$enable_static | |
12732 | |
12733 # Whether or not to add -lc for building shared libraries. | |
12734 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
12735 | |
12736 # Whether or not to disallow shared libs when runtime libs are static | |
12737 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
12738 | |
12739 # Whether or not to optimize for fast installation. | |
12740 fast_install=$enable_fast_install | |
12741 | |
12742 # The host system. | |
12743 host_alias=$host_alias | |
12744 host=$host | |
12745 | |
12746 # An echo program that does not interpret backslashes. | |
12747 echo=$lt_echo | |
12748 | |
12749 # The archiver. | |
12750 AR=$lt_AR | |
12751 AR_FLAGS=$lt_AR_FLAGS | |
12752 | |
12753 # A C compiler. | |
12754 LTCC=$lt_LTCC | |
12755 | |
12756 # A language-specific compiler. | |
12757 CC=$lt_compiler_CXX | |
12758 | |
12759 # Is the compiler the GNU C compiler? | |
12760 with_gcc=$GCC_CXX | |
12761 | |
12762 # An ERE matcher. | |
12763 EGREP=$lt_EGREP | |
12764 | |
12765 # The linker used to build libraries. | |
12766 LD=$lt_LD_CXX | |
12767 | |
12768 # Whether we need hard or soft links. | |
12769 LN_S=$lt_LN_S | |
12770 | |
12771 # A BSD-compatible nm program. | |
12772 NM=$lt_NM | |
12773 | |
12774 # A symbol stripping program | |
12775 STRIP=$lt_STRIP | |
12776 | |
12777 # Used to examine libraries when file_magic_cmd begins "file" | |
12778 MAGIC_CMD=$MAGIC_CMD | |
12779 | |
12780 # Used on cygwin: DLL creation program. | |
12781 DLLTOOL="$DLLTOOL" | |
12782 | |
12783 # Used on cygwin: object dumper. | |
12784 OBJDUMP="$OBJDUMP" | |
12785 | |
12786 # Used on cygwin: assembler. | |
12787 AS="$AS" | |
12788 | |
12789 # The name of the directory that contains temporary libtool files. | |
12790 objdir=$objdir | |
12791 | |
12792 # How to create reloadable object files. | |
12793 reload_flag=$lt_reload_flag | |
12794 reload_cmds=$lt_reload_cmds | |
12795 | |
12796 # How to pass a linker flag through the compiler. | |
12797 wl=$lt_lt_prog_compiler_wl_CXX | |
12798 | |
12799 # Object file suffix (normally "o"). | |
12800 objext="$ac_objext" | |
12801 | |
12802 # Old archive suffix (normally "a"). | |
12803 libext="$libext" | |
12804 | |
12805 # Shared library suffix (normally ".so"). | |
12806 shrext='$shrext' | |
12807 | |
12808 # Executable file suffix (normally ""). | |
12809 exeext="$exeext" | |
12810 | |
12811 # Additional compiler flags for building library objects. | |
12812 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
12813 pic_mode=$pic_mode | |
12814 | |
12815 # What is the maximum length of a command? | |
12816 max_cmd_len=$lt_cv_sys_max_cmd_len | |
12817 | |
12818 # Does compiler simultaneously support -c and -o options? | |
12819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
12820 | |
12821 # Must we lock files when doing compilation ? | |
12822 need_locks=$lt_need_locks | |
12823 | |
12824 # Do we need the lib prefix for modules? | |
12825 need_lib_prefix=$need_lib_prefix | |
12826 | |
12827 # Do we need a version for libraries? | |
12828 need_version=$need_version | |
12829 | |
12830 # Whether dlopen is supported. | |
12831 dlopen_support=$enable_dlopen | |
12832 | |
12833 # Whether dlopen of programs is supported. | |
12834 dlopen_self=$enable_dlopen_self | |
12835 | |
12836 # Whether dlopen of statically linked programs is supported. | |
12837 dlopen_self_static=$enable_dlopen_self_static | |
12838 | |
12839 # Compiler flag to prevent dynamic linking. | |
12840 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
12841 | |
12842 # Compiler flag to turn off builtin functions. | |
12843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
12844 | |
12845 # Compiler flag to allow reflexive dlopens. | |
12846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
12847 | |
12848 # Compiler flag to generate shared objects directly from archives. | |
12849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
12850 | |
12851 # Compiler flag to generate thread-safe objects. | |
12852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
12853 | |
12854 # Library versioning type. | |
12855 version_type=$version_type | |
12856 | |
12857 # Format of library name prefix. | |
12858 libname_spec=$lt_libname_spec | |
12859 | |
12860 # List of archive names. First name is the real one, the rest are links. | |
12861 # The last name is the one that the linker finds with -lNAME. | |
12862 library_names_spec=$lt_library_names_spec | |
12863 | |
12864 # The coded name of the library, if different from the real name. | |
12865 soname_spec=$lt_soname_spec | |
12866 | |
12867 # Commands used to build and install an old-style archive. | |
12868 RANLIB=$lt_RANLIB | |
12869 old_archive_cmds=$lt_old_archive_cmds_CXX | |
12870 old_postinstall_cmds=$lt_old_postinstall_cmds | |
12871 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12872 | |
12873 # Create an old-style archive from a shared archive. | |
12874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
12875 | |
12876 # Create a temporary old-style archive to link instead of a shared archive. | |
12877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
12878 | |
12879 # Commands used to build and install a shared archive. | |
12880 archive_cmds=$lt_archive_cmds_CXX | |
12881 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
12882 postinstall_cmds=$lt_postinstall_cmds | |
12883 postuninstall_cmds=$lt_postuninstall_cmds | |
12884 | |
12885 # Commands used to build a loadable module (assumed same as above if empty) | |
12886 module_cmds=$lt_module_cmds_CXX | |
12887 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
12888 | |
12889 # Commands to strip libraries. | |
12890 old_striplib=$lt_old_striplib | |
12891 striplib=$lt_striplib | |
12892 | |
12893 # Dependencies to place before the objects being linked to create a | |
12894 # shared library. | |
12895 predep_objects=$lt_predep_objects_CXX | |
12896 | |
12897 # Dependencies to place after the objects being linked to create a | |
12898 # shared library. | |
12899 postdep_objects=$lt_postdep_objects_CXX | |
12900 | |
12901 # Dependencies to place before the objects being linked to create a | |
12902 # shared library. | |
12903 predeps=$lt_predeps_CXX | |
12904 | |
12905 # Dependencies to place after the objects being linked to create a | |
12906 # shared library. | |
12907 postdeps=$lt_postdeps_CXX | |
12908 | |
12909 # The library search path used internally by the compiler when linking | |
12910 # a shared library. | |
12911 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
12912 | |
12913 # Method to check whether dependent libraries are shared objects. | |
12914 deplibs_check_method=$lt_deplibs_check_method | |
12915 | |
12916 # Command to use when deplibs_check_method == file_magic. | |
12917 file_magic_cmd=$lt_file_magic_cmd | |
12918 | |
12919 # Flag that allows shared libraries with undefined symbols to be built. | |
12920 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
12921 | |
12922 # Flag that forces no undefined symbols. | |
12923 no_undefined_flag=$lt_no_undefined_flag_CXX | |
12924 | |
12925 # Commands used to finish a libtool library installation in a directory. | |
12926 finish_cmds=$lt_finish_cmds | |
12927 | |
12928 # Same as above, but a single script fragment to be evaled but not shown. | |
12929 finish_eval=$lt_finish_eval | |
12930 | |
12931 # Take the output of nm and produce a listing of raw symbols and C names. | |
12932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
12933 | |
12934 # Transform the output of nm in a proper C declaration | |
12935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
12936 | |
12937 # Transform the output of nm in a C name address pair | |
12938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12939 | |
12940 # This is the shared library runtime path variable. | |
12941 runpath_var=$runpath_var | |
12942 | |
12943 # This is the shared library path variable. | |
12944 shlibpath_var=$shlibpath_var | |
12945 | |
12946 # Is shlibpath searched before the hard-coded library search path? | |
12947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12948 | |
12949 # How to hardcode a shared library path into an executable. | |
12950 hardcode_action=$hardcode_action_CXX | |
12951 | |
12952 # Whether we should hardcode library paths into libraries. | |
12953 hardcode_into_libs=$hardcode_into_libs | |
12954 | |
12955 # Flag to hardcode \$libdir into a binary during linking. | |
12956 # This must work even if \$libdir does not exist. | |
12957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
12958 | |
12959 # If ld is used when linking, flag to hardcode \$libdir into | |
12960 # a binary during linking. This must work even if \$libdir does | |
12961 # not exist. | |
12962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
12963 | |
12964 # Whether we need a single -rpath flag with a separated argument. | |
12965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
12966 | |
12967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
12968 # resulting binary. | |
12969 hardcode_direct=$hardcode_direct_CXX | |
12970 | |
12971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
12972 # resulting binary. | |
12973 hardcode_minus_L=$hardcode_minus_L_CXX | |
12974 | |
12975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
12976 # the resulting binary. | |
12977 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
12978 | |
12979 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
12980 # and all subsequent libraries and executables linked against it. | |
12981 hardcode_automatic=$hardcode_automatic_CXX | |
12982 | |
12983 # Variables whose values should be saved in libtool wrapper scripts and | |
12984 # restored at relink time. | |
12985 variables_saved_for_relink="$variables_saved_for_relink" | |
12986 | |
12987 # Whether libtool must link a program against all its dependency libraries. | |
12988 link_all_deplibs=$link_all_deplibs_CXX | |
12989 | |
12990 # Compile-time system search path for libraries | |
12991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
12992 | |
12993 # Run-time system search path for libraries | |
12994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
12995 | |
12996 # Fix the shell variable \$srcfile for the compiler. | |
12997 fix_srcfile_path="$fix_srcfile_path_CXX" | |
12998 | |
12999 # Set to yes if exported symbols are required. | |
13000 always_export_symbols=$always_export_symbols_CXX | |
13001 | |
13002 # The commands to list exported symbols. | |
13003 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13004 | |
13005 # The commands to extract the exported symbol list from a shared archive. | |
13006 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13007 | |
13008 # Symbols that should not be listed in the preloaded symbols. | |
13009 exclude_expsyms=$lt_exclude_expsyms_CXX | |
13010 | |
13011 # Symbols that must always be exported. | |
13012 include_expsyms=$lt_include_expsyms_CXX | |
13013 | |
13014 # ### END LIBTOOL TAG CONFIG: $tagname | |
13015 | |
13016 __EOF__ | |
13017 | |
13018 | |
13019 else | |
13020 # If there is no Makefile yet, we rely on a make rule to execute | |
13021 # `config.status --recheck' to rerun these tests and create the | |
13022 # libtool script then. | |
13023 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13024 if test -f "$ltmain_in"; then | |
13025 test -f Makefile && make "$ltmain" | |
13026 fi | |
13027 fi | |
13028 | |
13029 | |
13030 ac_ext=c | |
13031 ac_cpp='$CPP $CPPFLAGS' | |
13032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13034 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13035 | |
13036 CC=$lt_save_CC | |
13037 LDCXX=$LD | |
13038 LD=$lt_save_LD | |
13039 GCC=$lt_save_GCC | |
13040 with_gnu_ldcxx=$with_gnu_ld | |
13041 with_gnu_ld=$lt_save_with_gnu_ld | |
13042 lt_cv_path_LDCXX=$lt_cv_path_LD | |
13043 lt_cv_path_LD=$lt_save_path_LD | |
13044 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13045 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13046 | |
13047 else | |
13048 tagname="" | |
13049 fi | |
13050 ;; | |
13051 | |
13052 F77) | |
13053 if test -n "$F77" && test "X$F77" != "Xno"; then | |
13054 | |
13055 ac_ext=f | |
13056 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13057 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13058 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13059 | |
13060 | |
13061 archive_cmds_need_lc_F77=no | |
13062 allow_undefined_flag_F77= | |
13063 always_export_symbols_F77=no | |
13064 archive_expsym_cmds_F77= | |
13065 export_dynamic_flag_spec_F77= | |
13066 hardcode_direct_F77=no | |
13067 hardcode_libdir_flag_spec_F77= | |
13068 hardcode_libdir_flag_spec_ld_F77= | |
13069 hardcode_libdir_separator_F77= | |
13070 hardcode_minus_L_F77=no | |
13071 hardcode_automatic_F77=no | |
13072 module_cmds_F77= | |
13073 module_expsym_cmds_F77= | |
13074 link_all_deplibs_F77=unknown | |
13075 old_archive_cmds_F77=$old_archive_cmds | |
13076 no_undefined_flag_F77= | |
13077 whole_archive_flag_spec_F77= | |
13078 enable_shared_with_static_runtimes_F77=no | |
13079 | |
13080 # Source file extension for f77 test sources. | |
13081 ac_ext=f | |
13082 | |
13083 # Object file extension for compiled f77 test sources. | |
13084 objext=o | |
13085 objext_F77=$objext | |
13086 | |
13087 # Code to be used in simple compile tests | |
13088 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13089 | |
13090 # Code to be used in simple link tests | |
13091 lt_simple_link_test_code=" program t\n end\n" | |
13092 | |
13093 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13094 | |
13095 # If no C compiler was specified, use CC. | |
13096 LTCC=${LTCC-"$CC"} | |
13097 | |
13098 # Allow CC to be a program name with arguments. | |
13099 compiler=$CC | |
13100 | |
13101 | |
13102 # Allow CC to be a program name with arguments. | |
13103 lt_save_CC="$CC" | |
13104 CC=${F77-"f77"} | |
13105 compiler=$CC | |
13106 compiler_F77=$CC | |
13107 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
13108 | |
13109 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13110 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
13111 echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13112 echo "${ECHO_T}$can_build_shared" >&6 | |
13113 | |
13114 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13115 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
13116 test "$can_build_shared" = "no" && enable_shared=no | |
13117 | |
13118 # On AIX, shared libraries and static libraries use the same namespace, and | |
13119 # are all built from PIC. | |
13120 case "$host_os" in | |
13121 aix3*) | |
13122 test "$enable_shared" = yes && enable_static=no | |
13123 if test -n "$RANLIB"; then | |
13124 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13125 postinstall_cmds='$RANLIB $lib' | |
13126 fi | |
13127 ;; | |
13128 aix4*) | |
13129 test "$enable_shared" = yes && enable_static=no | |
13130 ;; | |
13131 esac | |
13132 echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13133 echo "${ECHO_T}$enable_shared" >&6 | |
13134 | |
13135 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13136 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
13137 # Make sure either enable_shared or enable_static is yes. | |
13138 test "$enable_shared" = yes || enable_static=yes | |
13139 echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13140 echo "${ECHO_T}$enable_static" >&6 | |
13141 | |
13142 test "$ld_shlibs_F77" = no && can_build_shared=no | |
13143 | |
13144 GCC_F77="$G77" | |
13145 LD_F77="$LD" | |
13146 | |
13147 lt_prog_compiler_wl_F77= | |
13148 lt_prog_compiler_pic_F77= | |
13149 lt_prog_compiler_static_F77= | |
13150 | |
13151 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13152 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
13153 | |
13154 if test "$GCC" = yes; then | |
13155 lt_prog_compiler_wl_F77='-Wl,' | |
13156 lt_prog_compiler_static_F77='-static' | |
13157 | |
13158 case $host_os in | |
13159 aix*) | |
13160 # All AIX code is PIC. | |
13161 if test "$host_cpu" = ia64; then | |
13162 # AIX 5 now supports IA64 processor | |
13163 lt_prog_compiler_static_F77='-Bstatic' | |
13164 fi | |
13165 ;; | |
13166 | |
13167 amigaos*) | |
13168 # FIXME: we need at least 68020 code to build shared libraries, but | |
13169 # adding the `-m68020' flag to GCC prevents building anything better, | |
13170 # like `-m68040'. | |
13171 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13172 ;; | |
13173 | |
13174 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13175 # PIC is the default for these OSes. | |
13176 ;; | |
13177 | |
13178 mingw* | pw32* | os2*) | |
13179 # This hack is so that the source file can tell whether it is being | |
13180 # built for inclusion in a dll (and should export symbols for example). | |
13181 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13182 ;; | |
13183 | |
13184 darwin* | rhapsody*) | |
13185 # PIC is the default on this platform | |
13186 # Common symbols not allowed in MH_DYLIB files | |
13187 lt_prog_compiler_pic_F77='-fno-common' | |
13188 ;; | |
13189 | |
13190 msdosdjgpp*) | |
13191 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13192 # on systems that don't support them. | |
13193 lt_prog_compiler_can_build_shared_F77=no | |
13194 enable_shared=no | |
13195 ;; | |
13196 | |
13197 sysv4*MP*) | |
13198 if test -d /usr/nec; then | |
13199 lt_prog_compiler_pic_F77=-Kconform_pic | |
13200 fi | |
13201 ;; | |
13202 | |
13203 hpux*) | |
13204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13205 # not for PA HP-UX. | |
13206 case "$host_cpu" in | |
13207 hppa*64*|ia64*) | |
13208 # +Z the default | |
13209 ;; | |
13210 *) | |
13211 lt_prog_compiler_pic_F77='-fPIC' | |
13212 ;; | |
13213 esac | |
13214 ;; | |
13215 | |
13216 *) | |
13217 lt_prog_compiler_pic_F77='-fPIC' | |
13218 ;; | |
13219 esac | |
13220 else | |
13221 # PORTME Check for flag to pass linker flags through the system compiler. | |
13222 case $host_os in | |
13223 aix*) | |
13224 lt_prog_compiler_wl_F77='-Wl,' | |
13225 if test "$host_cpu" = ia64; then | |
13226 # AIX 5 now supports IA64 processor | |
13227 lt_prog_compiler_static_F77='-Bstatic' | |
13228 else | |
13229 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13230 fi | |
13231 ;; | |
13232 | |
13233 mingw* | pw32* | os2*) | |
13234 # This hack is so that the source file can tell whether it is being | |
13235 # built for inclusion in a dll (and should export symbols for example). | |
13236 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13237 ;; | |
13238 | |
13239 hpux9* | hpux10* | hpux11*) | |
13240 lt_prog_compiler_wl_F77='-Wl,' | |
13241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13242 # not for PA HP-UX. | |
13243 case "$host_cpu" in | |
13244 hppa*64*|ia64*) | |
13245 # +Z the default | |
13246 ;; | |
13247 *) | |
13248 lt_prog_compiler_pic_F77='+Z' | |
13249 ;; | |
13250 esac | |
13251 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13252 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13253 ;; | |
13254 | |
13255 irix5* | irix6* | nonstopux*) | |
13256 lt_prog_compiler_wl_F77='-Wl,' | |
13257 # PIC (with -KPIC) is the default. | |
13258 lt_prog_compiler_static_F77='-non_shared' | |
13259 ;; | |
13260 | |
13261 newsos6) | |
13262 lt_prog_compiler_pic_F77='-KPIC' | |
13263 lt_prog_compiler_static_F77='-Bstatic' | |
13264 ;; | |
13265 | |
13266 linux*) | |
13267 case $CC in | |
13268 icc* | ecc*) | |
13269 lt_prog_compiler_wl_F77='-Wl,' | |
13270 lt_prog_compiler_pic_F77='-KPIC' | |
13271 lt_prog_compiler_static_F77='-static' | |
13272 ;; | |
13273 ccc*) | |
13274 lt_prog_compiler_wl_F77='-Wl,' | |
13275 # All Alpha code is PIC. | |
13276 lt_prog_compiler_static_F77='-non_shared' | |
13277 ;; | |
13278 esac | |
13279 ;; | |
13280 | |
13281 osf3* | osf4* | osf5*) | |
13282 lt_prog_compiler_wl_F77='-Wl,' | |
13283 # All OSF/1 code is PIC. | |
13284 lt_prog_compiler_static_F77='-non_shared' | |
13285 ;; | |
13286 | |
13287 sco3.2v5*) | |
13288 lt_prog_compiler_pic_F77='-Kpic' | |
13289 lt_prog_compiler_static_F77='-dn' | |
13290 ;; | |
13291 | |
13292 solaris*) | |
13293 lt_prog_compiler_wl_F77='-Wl,' | |
13294 lt_prog_compiler_pic_F77='-KPIC' | |
13295 lt_prog_compiler_static_F77='-Bstatic' | |
13296 ;; | |
13297 | |
13298 sunos4*) | |
13299 lt_prog_compiler_wl_F77='-Qoption ld ' | |
13300 lt_prog_compiler_pic_F77='-PIC' | |
13301 lt_prog_compiler_static_F77='-Bstatic' | |
13302 ;; | |
13303 | |
13304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13305 lt_prog_compiler_wl_F77='-Wl,' | |
13306 lt_prog_compiler_pic_F77='-KPIC' | |
13307 lt_prog_compiler_static_F77='-Bstatic' | |
13308 ;; | |
13309 | |
13310 sysv4*MP*) | |
13311 if test -d /usr/nec ;then | |
13312 lt_prog_compiler_pic_F77='-Kconform_pic' | |
13313 lt_prog_compiler_static_F77='-Bstatic' | |
13314 fi | |
13315 ;; | |
13316 | |
13317 uts4*) | |
13318 lt_prog_compiler_pic_F77='-pic' | |
13319 lt_prog_compiler_static_F77='-Bstatic' | |
13320 ;; | |
13321 | |
13322 *) | |
13323 lt_prog_compiler_can_build_shared_F77=no | |
13324 ;; | |
13325 esac | |
13326 fi | |
13327 | |
13328 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13329 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | |
13330 | |
13331 # | |
13332 # Check to make sure the PIC flag actually works. | |
13333 # | |
13334 if test -n "$lt_prog_compiler_pic_F77"; then | |
13335 | |
13336 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
13337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | |
13338 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13339 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13340 else | |
13341 lt_prog_compiler_pic_works_F77=no | |
13342 ac_outfile=conftest.$ac_objext | |
13343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13344 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13345 # Insert the option either (1) after the last *FLAGS variable, or | |
13346 # (2) before a word containing "conftest.", or (3) at the end. | |
13347 # Note that $ac_compile itself does not contain backslashes and begins | |
13348 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13349 # The option is referenced via a variable to avoid confusing sed. | |
13350 lt_compile=`echo "$ac_compile" | $SED \ | |
13351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
13352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13353 -e 's:$: $lt_compiler_flag:'` | |
13354 (eval echo "\"\$as_me:13354: $lt_compile\"" >&5) | |
13355 (eval "$lt_compile" 2>conftest.err) | |
13356 ac_status=$? | |
13357 cat conftest.err >&5 | |
13358 echo "$as_me:13358: \$? = $ac_status" >&5 | |
13359 if (exit $ac_status) && test -s "$ac_outfile"; then | |
13360 # The compiler can only warn and ignore the option if not recognized | |
13361 # So say no if there are warnings | |
13362 if test ! -s conftest.err; then | |
13363 lt_prog_compiler_pic_works_F77=yes | |
13364 fi | |
13365 fi | |
13366 $rm conftest* | |
13367 | |
13368 fi | |
13369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13370 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | |
13371 | |
13372 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13373 case $lt_prog_compiler_pic_F77 in | |
13374 "" | " "*) ;; | |
13375 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13376 esac | |
13377 else | |
13378 lt_prog_compiler_pic_F77= | |
13379 lt_prog_compiler_can_build_shared_F77=no | |
13380 fi | |
13381 | |
13382 fi | |
13383 case "$host_os" in | |
13384 # For platforms which do not support PIC, -DPIC is meaningless: | |
13385 *djgpp*) | |
13386 lt_prog_compiler_pic_F77= | |
13387 ;; | |
13388 *) | |
13389 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13390 ;; | |
13391 esac | |
13392 | |
13393 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13394 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13395 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
13396 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13397 else | |
13398 lt_cv_prog_compiler_c_o_F77=no | |
13399 $rm -r conftest 2>/dev/null | |
13400 mkdir conftest | |
13401 cd conftest | |
13402 mkdir out | |
13403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13404 | |
13405 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13406 # Insert the option either (1) after the last *FLAGS variable, or | |
13407 # (2) before a word containing "conftest.", or (3) at the end. | |
13408 # Note that $ac_compile itself does not contain backslashes and begins | |
13409 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13410 lt_compile=`echo "$ac_compile" | $SED \ | |
13411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
13412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13413 -e 's:$: $lt_compiler_flag:'` | |
13414 (eval echo "\"\$as_me:13414: $lt_compile\"" >&5) | |
13415 (eval "$lt_compile" 2>out/conftest.err) | |
13416 ac_status=$? | |
13417 cat out/conftest.err >&5 | |
13418 echo "$as_me:13418: \$? = $ac_status" >&5 | |
13419 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13420 then | |
13421 # The compiler can only warn and ignore the option if not recognized | |
13422 # So say no if there are warnings | |
13423 if test ! -s out/conftest.err; then | |
13424 lt_cv_prog_compiler_c_o_F77=yes | |
13425 fi | |
13426 fi | |
13427 chmod u+w . | |
13428 $rm conftest* | |
13429 # SGI C++ compiler will create directory out/ii_files/ for | |
13430 # template instantiation | |
13431 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13432 $rm out/* && rmdir out | |
13433 cd .. | |
13434 rmdir conftest | |
13435 $rm conftest* | |
13436 | |
13437 fi | |
13438 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
13439 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | |
13440 | |
13441 | |
13442 hard_links="nottested" | |
13443 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
13444 # do not overwrite the value of need_locks provided by the user | |
13445 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13446 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13447 hard_links=yes | |
13448 $rm conftest* | |
13449 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13450 touch conftest.a | |
13451 ln conftest.a conftest.b 2>&5 || hard_links=no | |
13452 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13453 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13454 echo "${ECHO_T}$hard_links" >&6 | |
13455 if test "$hard_links" = no; then | |
13456 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13457 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13458 need_locks=warn | |
13459 fi | |
13460 else | |
13461 need_locks=no | |
13462 fi | |
13463 | |
13464 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13465 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
13466 | |
13467 runpath_var= | |
13468 allow_undefined_flag_F77= | |
13469 enable_shared_with_static_runtimes_F77=no | |
13470 archive_cmds_F77= | |
13471 archive_expsym_cmds_F77= | |
13472 old_archive_From_new_cmds_F77= | |
13473 old_archive_from_expsyms_cmds_F77= | |
13474 export_dynamic_flag_spec_F77= | |
13475 whole_archive_flag_spec_F77= | |
13476 thread_safe_flag_spec_F77= | |
13477 hardcode_libdir_flag_spec_F77= | |
13478 hardcode_libdir_flag_spec_ld_F77= | |
13479 hardcode_libdir_separator_F77= | |
13480 hardcode_direct_F77=no | |
13481 hardcode_minus_L_F77=no | |
13482 hardcode_shlibpath_var_F77=unsupported | |
13483 link_all_deplibs_F77=unknown | |
13484 hardcode_automatic_F77=no | |
13485 module_cmds_F77= | |
13486 module_expsym_cmds_F77= | |
13487 always_export_symbols_F77=no | |
13488 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13489 # include_expsyms should be a list of space-separated symbols to be *always* | |
13490 # included in the symbol list | |
13491 include_expsyms_F77= | |
13492 # exclude_expsyms can be an extended regexp of symbols to exclude | |
13493 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13495 # as well as any symbol that contains `d'. | |
13496 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
13497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
13498 # platforms (ab)use it in PIC code, but their linkers get confused if | |
13499 # the symbol is explicitly referenced. Since portable code cannot | |
13500 # rely on this symbol name, it's probably fine to never include it in | |
13501 # preloaded symbol tables. | |
13502 extract_expsyms_cmds= | |
13503 | |
13504 case $host_os in | |
13505 cygwin* | mingw* | pw32*) | |
13506 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
13507 # When not using gcc, we currently assume that we are using | |
13508 # Microsoft Visual C++. | |
13509 if test "$GCC" != yes; then | |
13510 with_gnu_ld=no | |
13511 fi | |
13512 ;; | |
13513 openbsd*) | |
13514 with_gnu_ld=no | |
13515 ;; | |
13516 esac | |
13517 | |
13518 ld_shlibs_F77=yes | |
13519 if test "$with_gnu_ld" = yes; then | |
13520 # If archive_cmds runs LD, not CC, wlarc should be empty | |
13521 wlarc='${wl}' | |
13522 | |
13523 # See if GNU ld supports shared libraries. | |
13524 case $host_os in | |
13525 aix3* | aix4* | aix5*) | |
13526 # On AIX/PPC, the GNU linker is very broken | |
13527 if test "$host_cpu" != ia64; then | |
13528 ld_shlibs_F77=no | |
13529 cat <<EOF 1>&2 | |
13530 | |
13531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
13532 *** to be unable to reliably create shared libraries on AIX. | |
13533 *** Therefore, libtool is disabling shared libraries support. If you | |
13534 *** really care for shared libraries, you may want to modify your PATH | |
13535 *** so that a non-GNU linker is found, and then restart. | |
13536 | |
13537 EOF | |
13538 fi | |
13539 ;; | |
13540 | |
13541 amigaos*) | |
13542 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)' | |
13543 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13544 hardcode_minus_L_F77=yes | |
13545 | |
13546 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
13547 # that the semantics of dynamic libraries on AmigaOS, at least up | |
13548 # to version 4, is to share data among multiple programs linked | |
13549 # with the same dynamic library. Since this doesn't match the | |
13550 # behavior of shared libraries on other platforms, we can't use | |
13551 # them. | |
13552 ld_shlibs_F77=no | |
13553 ;; | |
13554 | |
13555 beos*) | |
13556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13557 allow_undefined_flag_F77=unsupported | |
13558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13559 # support --undefined. This deserves some investigation. FIXME | |
13560 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13561 else | |
13562 ld_shlibs_F77=no | |
13563 fi | |
13564 ;; | |
13565 | |
13566 cygwin* | mingw* | pw32*) | |
13567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
13568 # as there is no search path for DLLs. | |
13569 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13570 allow_undefined_flag_F77=unsupported | |
13571 always_export_symbols_F77=no | |
13572 enable_shared_with_static_runtimes_F77=yes | |
13573 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
13574 | |
13575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
13577 # If the export-symbols file already is a .def file (1st line | |
13578 # is EXPORTS), use it as is; otherwise, prepend... | |
13579 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13580 cp $export_symbols $output_objdir/$soname.def; | |
13581 else | |
13582 echo EXPORTS > $output_objdir/$soname.def; | |
13583 cat $export_symbols >> $output_objdir/$soname.def; | |
13584 fi~ | |
13585 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
13586 else | |
13587 ld_shlibs=no | |
13588 fi | |
13589 ;; | |
13590 | |
13591 netbsd* | knetbsd*-gnu) | |
13592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13593 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13594 wlarc= | |
13595 else | |
13596 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13597 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13598 fi | |
13599 ;; | |
13600 | |
13601 solaris* | sysv5*) | |
13602 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
13603 ld_shlibs_F77=no | |
13604 cat <<EOF 1>&2 | |
13605 | |
13606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13607 *** create shared libraries on Solaris systems. Therefore, libtool | |
13608 *** is disabling shared libraries support. We urge you to upgrade GNU | |
13609 *** binutils to release 2.9.1 or newer. Another option is to modify | |
13610 *** your PATH or compiler configuration so that the native linker is | |
13611 *** used, and then restart. | |
13612 | |
13613 EOF | |
13614 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13615 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13616 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13617 else | |
13618 ld_shlibs_F77=no | |
13619 fi | |
13620 ;; | |
13621 | |
13622 sunos4*) | |
13623 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13624 wlarc= | |
13625 hardcode_direct_F77=yes | |
13626 hardcode_shlibpath_var_F77=no | |
13627 ;; | |
13628 | |
13629 linux*) | |
13630 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
13631 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13632 archive_cmds_F77="$tmp_archive_cmds" | |
13633 supports_anon_versioning=no | |
13634 case `$LD -v 2>/dev/null` in | |
13635 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
13636 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13637 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13638 *\ 2.11.*) ;; # other 2.11 versions | |
13639 *) supports_anon_versioning=yes ;; | |
13640 esac | |
13641 if test $supports_anon_versioning = yes; then | |
13642 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
13643 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13644 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13645 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13646 else | |
13647 archive_expsym_cmds_F77="$tmp_archive_cmds" | |
13648 fi | |
13649 else | |
13650 ld_shlibs_F77=no | |
13651 fi | |
13652 ;; | |
13653 | |
13654 *) | |
13655 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13657 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13658 else | |
13659 ld_shlibs_F77=no | |
13660 fi | |
13661 ;; | |
13662 esac | |
13663 | |
13664 if test "$ld_shlibs_F77" = yes; then | |
13665 runpath_var=LD_RUN_PATH | |
13666 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
13667 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
13668 # ancient GNU ld didn't support --whole-archive et. al. | |
13669 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
13670 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13671 else | |
13672 whole_archive_flag_spec_F77= | |
13673 fi | |
13674 fi | |
13675 else | |
13676 # PORTME fill in a description of your system's linker (not GNU ld) | |
13677 case $host_os in | |
13678 aix3*) | |
13679 allow_undefined_flag_F77=unsupported | |
13680 always_export_symbols_F77=yes | |
13681 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' | |
13682 # Note: this linker hardcodes the directories in LIBPATH if there | |
13683 # are no directories specified by -L. | |
13684 hardcode_minus_L_F77=yes | |
13685 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
13686 # Neither direct hardcoding nor static linking is supported with a | |
13687 # broken collect2. | |
13688 hardcode_direct_F77=unsupported | |
13689 fi | |
13690 ;; | |
13691 | |
13692 aix4* | aix5*) | |
13693 if test "$host_cpu" = ia64; then | |
13694 # On IA64, the linker does run time linking by default, so we don't | |
13695 # have to do anything special. | |
13696 aix_use_runtimelinking=no | |
13697 exp_sym_flag='-Bexport' | |
13698 no_entry_flag="" | |
13699 else | |
13700 # If we're using GNU nm, then we don't want the "-C" option. | |
13701 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13702 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
13703 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' | |
13704 else | |
13705 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' | |
13706 fi | |
13707 aix_use_runtimelinking=no | |
13708 | |
13709 # Test if we are trying to use run time linking or normal | |
13710 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13711 # need to do runtime linking. | |
13712 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
13713 for ld_flag in $LDFLAGS; do | |
13714 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13715 aix_use_runtimelinking=yes | |
13716 break | |
13717 fi | |
13718 done | |
13719 esac | |
13720 | |
13721 exp_sym_flag='-bexport' | |
13722 no_entry_flag='-bnoentry' | |
13723 fi | |
13724 | |
13725 # When large executables or shared objects are built, AIX ld can | |
13726 # have problems creating the table of contents. If linking a library | |
13727 # or program results in "error TOC overflow" add -mminimal-toc to | |
13728 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13729 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13730 | |
13731 archive_cmds_F77='' | |
13732 hardcode_direct_F77=yes | |
13733 hardcode_libdir_separator_F77=':' | |
13734 link_all_deplibs_F77=yes | |
13735 | |
13736 if test "$GCC" = yes; then | |
13737 case $host_os in aix4.012|aix4.012.*) | |
13738 # We only want to do this on AIX 4.2 and lower, the check | |
13739 # below for broken collect2 doesn't work under 4.3+ | |
13740 collect2name=`${CC} -print-prog-name=collect2` | |
13741 if test -f "$collect2name" && \ | |
13742 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
13743 then | |
13744 # We have reworked collect2 | |
13745 hardcode_direct_F77=yes | |
13746 else | |
13747 # We have old collect2 | |
13748 hardcode_direct_F77=unsupported | |
13749 # It fails to find uninstalled libraries when the uninstalled | |
13750 # path is not listed in the libpath. Setting hardcode_minus_L | |
13751 # to unsupported forces relinking | |
13752 hardcode_minus_L_F77=yes | |
13753 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13754 hardcode_libdir_separator_F77= | |
13755 fi | |
13756 esac | |
13757 shared_flag='-shared' | |
13758 else | |
13759 # not using gcc | |
13760 if test "$host_cpu" = ia64; then | |
13761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13762 # chokes on -Wl,-G. The following line is correct: | |
13763 shared_flag='-G' | |
13764 else | |
13765 if test "$aix_use_runtimelinking" = yes; then | |
13766 shared_flag='${wl}-G' | |
13767 else | |
13768 shared_flag='${wl}-bM:SRE' | |
13769 fi | |
13770 fi | |
13771 fi | |
13772 | |
13773 # It seems that -bexpall does not export symbols beginning with | |
13774 # underscore (_), so it is better to generate a list of symbols to export. | |
13775 always_export_symbols_F77=yes | |
13776 if test "$aix_use_runtimelinking" = yes; then | |
13777 # Warning - without using the other runtime loading flags (-brtl), | |
13778 # -berok will link without error, but may produce a broken library. | |
13779 allow_undefined_flag_F77='-berok' | |
13780 # Determine the default libpath from the value encoded in an empty executable. | |
13781 cat >conftest.$ac_ext <<_ACEOF | |
13782 program main | |
13783 | |
13784 end | |
13785 _ACEOF | |
13786 rm -f conftest.$ac_objext conftest$ac_exeext | |
13787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13788 (eval $ac_link) 2>conftest.er1 | |
13789 ac_status=$? | |
13790 grep -v '^ *+' conftest.er1 >conftest.err | |
13791 rm -f conftest.er1 | |
13792 cat conftest.err >&5 | |
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13794 (exit $ac_status); } && | |
13795 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13797 (eval $ac_try) 2>&5 | |
13798 ac_status=$? | |
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13800 (exit $ac_status); }; } && | |
13801 { ac_try='test -s conftest$ac_exeext' | |
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13803 (eval $ac_try) 2>&5 | |
13804 ac_status=$? | |
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13806 (exit $ac_status); }; }; then | |
13807 | |
13808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
13809 }'` | |
13810 # Check for a 64-bit object if we didn't find anything. | |
13811 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; } | |
13812 }'`; fi | |
13813 else | |
13814 echo "$as_me: failed program was:" >&5 | |
13815 sed 's/^/| /' conftest.$ac_ext >&5 | |
13816 | |
13817 fi | |
13818 rm -f conftest.err conftest.$ac_objext \ | |
13819 conftest$ac_exeext conftest.$ac_ext | |
13820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13821 | |
13822 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13823 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" | |
13824 else | |
13825 if test "$host_cpu" = ia64; then | |
13826 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
13827 allow_undefined_flag_F77="-z nodefs" | |
13828 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" | |
13829 else | |
13830 # Determine the default libpath from the value encoded in an empty executable. | |
13831 cat >conftest.$ac_ext <<_ACEOF | |
13832 program main | |
13833 | |
13834 end | |
13835 _ACEOF | |
13836 rm -f conftest.$ac_objext conftest$ac_exeext | |
13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13838 (eval $ac_link) 2>conftest.er1 | |
13839 ac_status=$? | |
13840 grep -v '^ *+' conftest.er1 >conftest.err | |
13841 rm -f conftest.er1 | |
13842 cat conftest.err >&5 | |
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13844 (exit $ac_status); } && | |
13845 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13847 (eval $ac_try) 2>&5 | |
13848 ac_status=$? | |
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13850 (exit $ac_status); }; } && | |
13851 { ac_try='test -s conftest$ac_exeext' | |
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13853 (eval $ac_try) 2>&5 | |
13854 ac_status=$? | |
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13856 (exit $ac_status); }; }; then | |
13857 | |
13858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
13859 }'` | |
13860 # Check for a 64-bit object if we didn't find anything. | |
13861 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; } | |
13862 }'`; fi | |
13863 else | |
13864 echo "$as_me: failed program was:" >&5 | |
13865 sed 's/^/| /' conftest.$ac_ext >&5 | |
13866 | |
13867 fi | |
13868 rm -f conftest.err conftest.$ac_objext \ | |
13869 conftest$ac_exeext conftest.$ac_ext | |
13870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13871 | |
13872 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13873 # Warning - without using the other run time loading flags, | |
13874 # -berok will link without error, but may produce a broken library. | |
13875 no_undefined_flag_F77=' ${wl}-bernotok' | |
13876 allow_undefined_flag_F77=' ${wl}-berok' | |
13877 # -bexpall does not export symbols beginning with underscore (_) | |
13878 always_export_symbols_F77=yes | |
13879 # Exported symbols can be pulled into shared objects from archives | |
13880 whole_archive_flag_spec_F77=' ' | |
13881 archive_cmds_need_lc_F77=yes | |
13882 # This is similar to how AIX traditionally builds it's shared libraries. | |
13883 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' | |
13884 fi | |
13885 fi | |
13886 ;; | |
13887 | |
13888 amigaos*) | |
13889 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)' | |
13890 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13891 hardcode_minus_L_F77=yes | |
13892 # see comment about different semantics on the GNU ld section | |
13893 ld_shlibs_F77=no | |
13894 ;; | |
13895 | |
13896 bsdi4*) | |
13897 export_dynamic_flag_spec_F77=-rdynamic | |
13898 ;; | |
13899 | |
13900 cygwin* | mingw* | pw32*) | |
13901 # When not using gcc, we currently assume that we are using | |
13902 # Microsoft Visual C++. | |
13903 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13904 # no search path for DLLs. | |
13905 hardcode_libdir_flag_spec_F77=' ' | |
13906 allow_undefined_flag_F77=unsupported | |
13907 # Tell ltmain to make .lib files, not .a files. | |
13908 libext=lib | |
13909 # Tell ltmain to make .dll files, not .so files. | |
13910 shrext=".dll" | |
13911 # FIXME: Setting linknames here is a bad hack. | |
13912 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
13913 # The linker will automatically build a .lib file if we build a DLL. | |
13914 old_archive_From_new_cmds_F77='true' | |
13915 # FIXME: Should let the user specify the lib program. | |
13916 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
13917 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
13918 enable_shared_with_static_runtimes_F77=yes | |
13919 ;; | |
13920 | |
13921 darwin* | rhapsody*) | |
13922 if test "$GXX" = yes ; then | |
13923 archive_cmds_need_lc_F77=no | |
13924 case "$host_os" in | |
13925 rhapsody* | darwin1.[012]) | |
13926 allow_undefined_flag_F77='-undefined suppress' | |
13927 ;; | |
13928 *) # Darwin 1.3 on | |
13929 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
13930 allow_undefined_flag_F77='-flat_namespace -undefined suppress' | |
13931 else | |
13932 case ${MACOSX_DEPLOYMENT_TARGET} in | |
13933 10.[012]) | |
13934 allow_undefined_flag_F77='-flat_namespace -undefined suppress' | |
13935 ;; | |
13936 10.*) | |
13937 allow_undefined_flag_F77='-undefined dynamic_lookup' | |
13938 ;; | |
13939 esac | |
13940 fi | |
13941 ;; | |
13942 esac | |
13943 lt_int_apple_cc_single_mod=no | |
13944 output_verbose_link_cmd='echo' | |
13945 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
13946 lt_int_apple_cc_single_mod=yes | |
13947 fi | |
13948 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
13949 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
13950 else | |
13951 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' | |
13952 fi | |
13953 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
13954 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
13955 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
13956 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}' | |
13957 else | |
13958 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}' | |
13959 fi | |
13960 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}' | |
13961 hardcode_direct_F77=no | |
13962 hardcode_automatic_F77=yes | |
13963 hardcode_shlibpath_var_F77=unsupported | |
13964 whole_archive_flag_spec_F77='-all_load $convenience' | |
13965 link_all_deplibs_F77=yes | |
13966 else | |
13967 ld_shlibs_F77=no | |
13968 fi | |
13969 ;; | |
13970 | |
13971 dgux*) | |
13972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13973 hardcode_libdir_flag_spec_F77='-L$libdir' | |
13974 hardcode_shlibpath_var_F77=no | |
13975 ;; | |
13976 | |
13977 freebsd1*) | |
13978 ld_shlibs_F77=no | |
13979 ;; | |
13980 | |
13981 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
13982 # support. Future versions do this automatically, but an explicit c++rt0.o | |
13983 # does not break anything, and helps significantly (at the cost of a little | |
13984 # extra space). | |
13985 freebsd2.2*) | |
13986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13987 hardcode_libdir_flag_spec_F77='-R$libdir' | |
13988 hardcode_direct_F77=yes | |
13989 hardcode_shlibpath_var_F77=no | |
13990 ;; | |
13991 | |
13992 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
13993 freebsd2*) | |
13994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13995 hardcode_direct_F77=yes | |
13996 hardcode_minus_L_F77=yes | |
13997 hardcode_shlibpath_var_F77=no | |
13998 ;; | |
13999 | |
14000 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14001 freebsd* | kfreebsd*-gnu) | |
14002 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14003 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14004 hardcode_direct_F77=yes | |
14005 hardcode_shlibpath_var_F77=no | |
14006 ;; | |
14007 | |
14008 hpux9*) | |
14009 if test "$GCC" = yes; then | |
14010 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' | |
14011 else | |
14012 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' | |
14013 fi | |
14014 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14015 hardcode_libdir_separator_F77=: | |
14016 hardcode_direct_F77=yes | |
14017 | |
14018 # hardcode_minus_L: Not really in the search PATH, | |
14019 # but as the default location of the library. | |
14020 hardcode_minus_L_F77=yes | |
14021 export_dynamic_flag_spec_F77='${wl}-E' | |
14022 ;; | |
14023 | |
14024 hpux10* | hpux11*) | |
14025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14026 case "$host_cpu" in | |
14027 hppa*64*|ia64*) | |
14028 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14029 ;; | |
14030 *) | |
14031 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14032 ;; | |
14033 esac | |
14034 else | |
14035 case "$host_cpu" in | |
14036 hppa*64*|ia64*) | |
14037 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14038 ;; | |
14039 *) | |
14040 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14041 ;; | |
14042 esac | |
14043 fi | |
14044 if test "$with_gnu_ld" = no; then | |
14045 case "$host_cpu" in | |
14046 hppa*64*) | |
14047 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14048 hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14049 hardcode_libdir_separator_F77=: | |
14050 hardcode_direct_F77=no | |
14051 hardcode_shlibpath_var_F77=no | |
14052 ;; | |
14053 ia64*) | |
14054 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14055 hardcode_direct_F77=no | |
14056 hardcode_shlibpath_var_F77=no | |
14057 | |
14058 # hardcode_minus_L: Not really in the search PATH, | |
14059 # but as the default location of the library. | |
14060 hardcode_minus_L_F77=yes | |
14061 ;; | |
14062 *) | |
14063 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14064 hardcode_libdir_separator_F77=: | |
14065 hardcode_direct_F77=yes | |
14066 export_dynamic_flag_spec_F77='${wl}-E' | |
14067 | |
14068 # hardcode_minus_L: Not really in the search PATH, | |
14069 # but as the default location of the library. | |
14070 hardcode_minus_L_F77=yes | |
14071 ;; | |
14072 esac | |
14073 fi | |
14074 ;; | |
14075 | |
14076 irix5* | irix6* | nonstopux*) | |
14077 if test "$GCC" = yes; then | |
14078 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' | |
14079 else | |
14080 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' | |
14081 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14082 fi | |
14083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14084 hardcode_libdir_separator_F77=: | |
14085 link_all_deplibs_F77=yes | |
14086 ;; | |
14087 | |
14088 netbsd* | knetbsd*-gnu) | |
14089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14091 else | |
14092 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14093 fi | |
14094 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14095 hardcode_direct_F77=yes | |
14096 hardcode_shlibpath_var_F77=no | |
14097 ;; | |
14098 | |
14099 newsos6) | |
14100 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14101 hardcode_direct_F77=yes | |
14102 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14103 hardcode_libdir_separator_F77=: | |
14104 hardcode_shlibpath_var_F77=no | |
14105 ;; | |
14106 | |
14107 openbsd*) | |
14108 hardcode_direct_F77=yes | |
14109 hardcode_shlibpath_var_F77=no | |
14110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14111 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14112 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14113 export_dynamic_flag_spec_F77='${wl}-E' | |
14114 else | |
14115 case $host_os in | |
14116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14117 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14118 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14119 ;; | |
14120 *) | |
14121 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14122 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14123 ;; | |
14124 esac | |
14125 fi | |
14126 ;; | |
14127 | |
14128 os2*) | |
14129 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14130 hardcode_minus_L_F77=yes | |
14131 allow_undefined_flag_F77=unsupported | |
14132 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' | |
14133 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
14134 ;; | |
14135 | |
14136 osf3*) | |
14137 if test "$GCC" = yes; then | |
14138 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14139 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' | |
14140 else | |
14141 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14142 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' | |
14143 fi | |
14144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14145 hardcode_libdir_separator_F77=: | |
14146 ;; | |
14147 | |
14148 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14149 if test "$GCC" = yes; then | |
14150 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14151 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' | |
14152 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14153 else | |
14154 allow_undefined_flag_F77=' -expect_unresolved \*' | |
14155 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' | |
14156 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~ | |
14157 $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' | |
14158 | |
14159 # Both c and cxx compiler support -rpath directly | |
14160 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14161 fi | |
14162 hardcode_libdir_separator_F77=: | |
14163 ;; | |
14164 | |
14165 sco3.2v5*) | |
14166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14167 hardcode_shlibpath_var_F77=no | |
14168 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
14169 runpath_var=LD_RUN_PATH | |
14170 hardcode_runpath_var=yes | |
14171 ;; | |
14172 | |
14173 solaris*) | |
14174 no_undefined_flag_F77=' -z text' | |
14175 if test "$GCC" = yes; then | |
14176 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14177 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14178 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
14179 else | |
14180 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14181 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14182 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14183 fi | |
14184 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14185 hardcode_shlibpath_var_F77=no | |
14186 case $host_os in | |
14187 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14188 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14189 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
14190 esac | |
14191 link_all_deplibs_F77=yes | |
14192 ;; | |
14193 | |
14194 sunos4*) | |
14195 if test "x$host_vendor" = xsequent; then | |
14196 # Use $CC to link under sequent, because it throws in some extra .o | |
14197 # files that make .init and .fini sections work. | |
14198 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14199 else | |
14200 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14201 fi | |
14202 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14203 hardcode_direct_F77=yes | |
14204 hardcode_minus_L_F77=yes | |
14205 hardcode_shlibpath_var_F77=no | |
14206 ;; | |
14207 | |
14208 sysv4) | |
14209 case $host_vendor in | |
14210 sni) | |
14211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14212 hardcode_direct_F77=yes # is this really true??? | |
14213 ;; | |
14214 siemens) | |
14215 ## LD is ld it makes a PLAMLIB | |
14216 ## CC just makes a GrossModule. | |
14217 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14218 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14219 hardcode_direct_F77=no | |
14220 ;; | |
14221 motorola) | |
14222 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14223 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
14224 ;; | |
14225 esac | |
14226 runpath_var='LD_RUN_PATH' | |
14227 hardcode_shlibpath_var_F77=no | |
14228 ;; | |
14229 | |
14230 sysv4.3*) | |
14231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14232 hardcode_shlibpath_var_F77=no | |
14233 export_dynamic_flag_spec_F77='-Bexport' | |
14234 ;; | |
14235 | |
14236 sysv4*MP*) | |
14237 if test -d /usr/nec; then | |
14238 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14239 hardcode_shlibpath_var_F77=no | |
14240 runpath_var=LD_RUN_PATH | |
14241 hardcode_runpath_var=yes | |
14242 ld_shlibs_F77=yes | |
14243 fi | |
14244 ;; | |
14245 | |
14246 sysv4.2uw2*) | |
14247 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14248 hardcode_direct_F77=yes | |
14249 hardcode_minus_L_F77=no | |
14250 hardcode_shlibpath_var_F77=no | |
14251 hardcode_runpath_var=yes | |
14252 runpath_var=LD_RUN_PATH | |
14253 ;; | |
14254 | |
14255 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
14256 no_undefined_flag_F77='${wl}-z ${wl}text' | |
14257 if test "$GCC" = yes; then | |
14258 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14259 else | |
14260 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14261 fi | |
14262 runpath_var='LD_RUN_PATH' | |
14263 hardcode_shlibpath_var_F77=no | |
14264 ;; | |
14265 | |
14266 sysv5*) | |
14267 no_undefined_flag_F77=' -z text' | |
14268 # $CC -shared without GNU ld will not create a library from C++ | |
14269 # object files and a static libstdc++, better avoid it by now | |
14270 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14271 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14273 hardcode_libdir_flag_spec_F77= | |
14274 hardcode_shlibpath_var_F77=no | |
14275 runpath_var='LD_RUN_PATH' | |
14276 ;; | |
14277 | |
14278 uts4*) | |
14279 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14280 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14281 hardcode_shlibpath_var_F77=no | |
14282 ;; | |
14283 | |
14284 *) | |
14285 ld_shlibs_F77=no | |
14286 ;; | |
14287 esac | |
14288 fi | |
14289 | |
14290 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
14291 echo "${ECHO_T}$ld_shlibs_F77" >&6 | |
14292 test "$ld_shlibs_F77" = no && can_build_shared=no | |
14293 | |
14294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14295 if test "$GCC" = yes; then | |
14296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14297 fi | |
14298 | |
14299 # | |
14300 # Do we need to explicitly link libc? | |
14301 # | |
14302 case "x$archive_cmds_need_lc_F77" in | |
14303 x|xyes) | |
14304 # Assume -lc should be added | |
14305 archive_cmds_need_lc_F77=yes | |
14306 | |
14307 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14308 case $archive_cmds_F77 in | |
14309 *'~'*) | |
14310 # FIXME: we may have to deal with multi-command sequences. | |
14311 ;; | |
14312 '$CC '*) | |
14313 # Test whether the compiler implicitly links with -lc since on some | |
14314 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14315 # to ld, don't add -lc before -lgcc. | |
14316 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14317 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
14318 $rm conftest* | |
14319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14320 | |
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14322 (eval $ac_compile) 2>&5 | |
14323 ac_status=$? | |
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14325 (exit $ac_status); } 2>conftest.err; then | |
14326 soname=conftest | |
14327 lib=conftest | |
14328 libobjs=conftest.$ac_objext | |
14329 deplibs= | |
14330 wl=$lt_prog_compiler_wl_F77 | |
14331 compiler_flags=-v | |
14332 linker_flags=-v | |
14333 verstring= | |
14334 output_objdir=. | |
14335 libname=conftest | |
14336 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
14337 allow_undefined_flag_F77= | |
14338 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14339 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14340 ac_status=$? | |
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14342 (exit $ac_status); } | |
14343 then | |
14344 archive_cmds_need_lc_F77=no | |
14345 else | |
14346 archive_cmds_need_lc_F77=yes | |
14347 fi | |
14348 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
14349 else | |
14350 cat conftest.err 1>&5 | |
14351 fi | |
14352 $rm conftest* | |
14353 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
14354 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | |
14355 ;; | |
14356 esac | |
14357 fi | |
14358 ;; | |
14359 esac | |
14360 | |
14361 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14362 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
14363 library_names_spec= | |
14364 libname_spec='lib$name' | |
14365 soname_spec= | |
14366 shrext=".so" | |
14367 postinstall_cmds= | |
14368 postuninstall_cmds= | |
14369 finish_cmds= | |
14370 finish_eval= | |
14371 shlibpath_var= | |
14372 shlibpath_overrides_runpath=unknown | |
14373 version_type=none | |
14374 dynamic_linker="$host_os ld.so" | |
14375 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14376 if test "$GCC" = yes; then | |
14377 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14378 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14379 # if the path contains ";" then we assume it to be the separator | |
14380 # otherwise default to the standard path separator (i.e. ":") - it is | |
14381 # assumed that no part of a normal pathname contains ";" but that should | |
14382 # okay in the real world where ";" in dirpaths is itself problematic. | |
14383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14384 else | |
14385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14386 fi | |
14387 else | |
14388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14389 fi | |
14390 need_lib_prefix=unknown | |
14391 hardcode_into_libs=no | |
14392 | |
14393 # when you set need_version to no, make sure it does not cause -set_version | |
14394 # flags to be left without arguments | |
14395 need_version=unknown | |
14396 | |
14397 case $host_os in | |
14398 aix3*) | |
14399 version_type=linux | |
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14401 shlibpath_var=LIBPATH | |
14402 | |
14403 # AIX 3 has no versioning support, so we append a major version to the name. | |
14404 soname_spec='${libname}${release}${shared_ext}$major' | |
14405 ;; | |
14406 | |
14407 aix4* | aix5*) | |
14408 version_type=linux | |
14409 need_lib_prefix=no | |
14410 need_version=no | |
14411 hardcode_into_libs=yes | |
14412 if test "$host_cpu" = ia64; then | |
14413 # AIX 5 supports IA64 | |
14414 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14415 shlibpath_var=LD_LIBRARY_PATH | |
14416 else | |
14417 # With GCC up to 2.95.x, collect2 would create an import file | |
14418 # for dependence libraries. The import file would start with | |
14419 # the line `#! .'. This would cause the generated library to | |
14420 # depend on `.', always an invalid library. This was fixed in | |
14421 # development snapshots of GCC prior to 3.0. | |
14422 case $host_os in | |
14423 aix4 | aix4.[01] | aix4.[01].*) | |
14424 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14425 echo ' yes ' | |
14426 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14427 : | |
14428 else | |
14429 can_build_shared=no | |
14430 fi | |
14431 ;; | |
14432 esac | |
14433 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14434 # soname into executable. Probably we can add versioning support to | |
14435 # collect2, so additional links can be useful in future. | |
14436 if test "$aix_use_runtimelinking" = yes; then | |
14437 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14438 # instead of lib<name>.a to let people know that these are not | |
14439 # typical AIX shared libraries. | |
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14441 else | |
14442 # We preserve .a as extension for shared libraries through AIX4.2 | |
14443 # and later when we are not doing run time linking. | |
14444 library_names_spec='${libname}${release}.a $libname.a' | |
14445 soname_spec='${libname}${release}${shared_ext}$major' | |
14446 fi | |
14447 shlibpath_var=LIBPATH | |
14448 fi | |
14449 ;; | |
14450 | |
14451 amigaos*) | |
14452 library_names_spec='$libname.ixlibrary $libname.a' | |
14453 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14454 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' | |
14455 ;; | |
14456 | |
14457 beos*) | |
14458 library_names_spec='${libname}${shared_ext}' | |
14459 dynamic_linker="$host_os ld.so" | |
14460 shlibpath_var=LIBRARY_PATH | |
14461 ;; | |
14462 | |
14463 bsdi4*) | |
14464 version_type=linux | |
14465 need_version=no | |
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14467 soname_spec='${libname}${release}${shared_ext}$major' | |
14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14469 shlibpath_var=LD_LIBRARY_PATH | |
14470 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14471 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14472 # the default ld.so.conf also contains /usr/contrib/lib and | |
14473 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14474 # libtool to hard-code these into programs | |
14475 ;; | |
14476 | |
14477 cygwin* | mingw* | pw32*) | |
14478 version_type=windows | |
14479 shrext=".dll" | |
14480 need_version=no | |
14481 need_lib_prefix=no | |
14482 | |
14483 case $GCC,$host_os in | |
14484 yes,cygwin* | yes,mingw* | yes,pw32*) | |
14485 library_names_spec='$libname.dll.a' | |
14486 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14487 postinstall_cmds='base_file=`basename \${file}`~ | |
14488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14489 dldir=$destdir/`dirname \$dlpath`~ | |
14490 test -d \$dldir || mkdir -p \$dldir~ | |
14491 $install_prog $dir/$dlname \$dldir/$dlname' | |
14492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14493 dlpath=$dir/\$dldll~ | |
14494 $rm \$dlpath' | |
14495 shlibpath_overrides_runpath=yes | |
14496 | |
14497 case $host_os in | |
14498 cygwin*) | |
14499 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14502 ;; | |
14503 mingw*) | |
14504 # MinGW DLLs use traditional 'lib' prefix | |
14505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14507 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14508 # It is most probably a Windows format PATH printed by | |
14509 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14510 # path with ; separators, and with drive letters. We can handle the | |
14511 # drive letters (cygwin fileutils understands them), so leave them, | |
14512 # especially as we might pass files found there to a mingw objdump, | |
14513 # which wouldn't understand a cygwinified path. Ahh. | |
14514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14515 else | |
14516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14517 fi | |
14518 ;; | |
14519 pw32*) | |
14520 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
14522 ;; | |
14523 esac | |
14524 ;; | |
14525 | |
14526 *) | |
14527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14528 ;; | |
14529 esac | |
14530 dynamic_linker='Win32 ld.exe' | |
14531 # FIXME: first we should search . and the directory the executable is in | |
14532 shlibpath_var=PATH | |
14533 ;; | |
14534 | |
14535 darwin* | rhapsody*) | |
14536 dynamic_linker="$host_os dyld" | |
14537 version_type=darwin | |
14538 need_lib_prefix=no | |
14539 need_version=no | |
14540 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14541 soname_spec='${libname}${release}${major}$shared_ext' | |
14542 shlibpath_overrides_runpath=yes | |
14543 shlibpath_var=DYLD_LIBRARY_PATH | |
14544 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
14545 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
14546 if test "$GCC" = yes; then | |
14547 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"` | |
14548 else | |
14549 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14550 fi | |
14551 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14552 ;; | |
14553 | |
14554 dgux*) | |
14555 version_type=linux | |
14556 need_lib_prefix=no | |
14557 need_version=no | |
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14559 soname_spec='${libname}${release}${shared_ext}$major' | |
14560 shlibpath_var=LD_LIBRARY_PATH | |
14561 ;; | |
14562 | |
14563 freebsd1*) | |
14564 dynamic_linker=no | |
14565 ;; | |
14566 | |
14567 kfreebsd*-gnu) | |
14568 version_type=linux | |
14569 need_lib_prefix=no | |
14570 need_version=no | |
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14572 soname_spec='${libname}${release}${shared_ext}$major' | |
14573 shlibpath_var=LD_LIBRARY_PATH | |
14574 shlibpath_overrides_runpath=no | |
14575 hardcode_into_libs=yes | |
14576 dynamic_linker='GNU ld.so' | |
14577 ;; | |
14578 | |
14579 freebsd*) | |
14580 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
14581 version_type=freebsd-$objformat | |
14582 case $version_type in | |
14583 freebsd-elf*) | |
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14585 need_version=no | |
14586 need_lib_prefix=no | |
14587 ;; | |
14588 freebsd-*) | |
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14590 need_version=yes | |
14591 ;; | |
14592 esac | |
14593 shlibpath_var=LD_LIBRARY_PATH | |
14594 case $host_os in | |
14595 freebsd2*) | |
14596 shlibpath_overrides_runpath=yes | |
14597 ;; | |
14598 freebsd3.01* | freebsdelf3.01*) | |
14599 shlibpath_overrides_runpath=yes | |
14600 hardcode_into_libs=yes | |
14601 ;; | |
14602 *) # from 3.2 on | |
14603 shlibpath_overrides_runpath=no | |
14604 hardcode_into_libs=yes | |
14605 ;; | |
14606 esac | |
14607 ;; | |
14608 | |
14609 gnu*) | |
14610 version_type=linux | |
14611 need_lib_prefix=no | |
14612 need_version=no | |
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14614 soname_spec='${libname}${release}${shared_ext}$major' | |
14615 shlibpath_var=LD_LIBRARY_PATH | |
14616 hardcode_into_libs=yes | |
14617 ;; | |
14618 | |
14619 hpux9* | hpux10* | hpux11*) | |
14620 # Give a soname corresponding to the major version so that dld.sl refuses to | |
14621 # link against other versions. | |
14622 version_type=sunos | |
14623 need_lib_prefix=no | |
14624 need_version=no | |
14625 case "$host_cpu" in | |
14626 ia64*) | |
14627 shrext='.so' | |
14628 hardcode_into_libs=yes | |
14629 dynamic_linker="$host_os dld.so" | |
14630 shlibpath_var=LD_LIBRARY_PATH | |
14631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
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 if test "X$HPUX_IA64_MODE" = X32; then | |
14635 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14636 else | |
14637 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14638 fi | |
14639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14640 ;; | |
14641 hppa*64*) | |
14642 shrext='.sl' | |
14643 hardcode_into_libs=yes | |
14644 dynamic_linker="$host_os dld.sl" | |
14645 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14648 soname_spec='${libname}${release}${shared_ext}$major' | |
14649 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14651 ;; | |
14652 *) | |
14653 shrext='.sl' | |
14654 dynamic_linker="$host_os dld.sl" | |
14655 shlibpath_var=SHLIB_PATH | |
14656 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14658 soname_spec='${libname}${release}${shared_ext}$major' | |
14659 ;; | |
14660 esac | |
14661 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14662 postinstall_cmds='chmod 555 $lib' | |
14663 ;; | |
14664 | |
14665 irix5* | irix6* | nonstopux*) | |
14666 case $host_os in | |
14667 nonstopux*) version_type=nonstopux ;; | |
14668 *) | |
14669 if test "$lt_cv_prog_gnu_ld" = yes; then | |
14670 version_type=linux | |
14671 else | |
14672 version_type=irix | |
14673 fi ;; | |
14674 esac | |
14675 need_lib_prefix=no | |
14676 need_version=no | |
14677 soname_spec='${libname}${release}${shared_ext}$major' | |
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14679 case $host_os in | |
14680 irix5* | nonstopux*) | |
14681 libsuff= shlibsuff= | |
14682 ;; | |
14683 *) | |
14684 case $LD in # libtool.m4 will add one of these switches to LD | |
14685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14686 libsuff= shlibsuff= libmagic=32-bit;; | |
14687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14688 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14690 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14691 *) libsuff= shlibsuff= libmagic=never-match;; | |
14692 esac | |
14693 ;; | |
14694 esac | |
14695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14696 shlibpath_overrides_runpath=no | |
14697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14699 hardcode_into_libs=yes | |
14700 ;; | |
14701 | |
14702 # No shared lib support for Linux oldld, aout, or coff. | |
14703 linux*oldld* | linux*aout* | linux*coff*) | |
14704 dynamic_linker=no | |
14705 ;; | |
14706 | |
14707 # This must be Linux ELF. | |
14708 linux*) | |
14709 version_type=linux | |
14710 need_lib_prefix=no | |
14711 need_version=no | |
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14713 soname_spec='${libname}${release}${shared_ext}$major' | |
14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14715 shlibpath_var=LD_LIBRARY_PATH | |
14716 shlibpath_overrides_runpath=no | |
14717 # This implies no fast_install, which is unacceptable. | |
14718 # Some rework will be needed to allow for fast_install | |
14719 # before this can be enabled. | |
14720 hardcode_into_libs=yes | |
14721 | |
14722 # Append ld.so.conf contents to the search path | |
14723 if test -f /etc/ld.so.conf; then | |
14724 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
14725 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
14726 fi | |
14727 | |
14728 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14729 # powerpc, because MkLinux only supported shared libraries with the | |
14730 # GNU dynamic linker. Since this was broken with cross compilers, | |
14731 # most powerpc-linux boxes support dynamic linking these days and | |
14732 # people can always --disable-shared, the test was removed, and we | |
14733 # assume the GNU/Linux dynamic linker is in use. | |
14734 dynamic_linker='GNU/Linux ld.so' | |
14735 ;; | |
14736 | |
14737 knetbsd*-gnu) | |
14738 version_type=linux | |
14739 need_lib_prefix=no | |
14740 need_version=no | |
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14742 soname_spec='${libname}${release}${shared_ext}$major' | |
14743 shlibpath_var=LD_LIBRARY_PATH | |
14744 shlibpath_overrides_runpath=no | |
14745 hardcode_into_libs=yes | |
14746 dynamic_linker='GNU ld.so' | |
14747 ;; | |
14748 | |
14749 netbsd*) | |
14750 version_type=sunos | |
14751 need_lib_prefix=no | |
14752 need_version=no | |
14753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14756 dynamic_linker='NetBSD (a.out) ld.so' | |
14757 else | |
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14759 soname_spec='${libname}${release}${shared_ext}$major' | |
14760 dynamic_linker='NetBSD ld.elf_so' | |
14761 fi | |
14762 shlibpath_var=LD_LIBRARY_PATH | |
14763 shlibpath_overrides_runpath=yes | |
14764 hardcode_into_libs=yes | |
14765 ;; | |
14766 | |
14767 newsos6) | |
14768 version_type=linux | |
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14770 shlibpath_var=LD_LIBRARY_PATH | |
14771 shlibpath_overrides_runpath=yes | |
14772 ;; | |
14773 | |
14774 nto-qnx*) | |
14775 version_type=linux | |
14776 need_lib_prefix=no | |
14777 need_version=no | |
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14779 soname_spec='${libname}${release}${shared_ext}$major' | |
14780 shlibpath_var=LD_LIBRARY_PATH | |
14781 shlibpath_overrides_runpath=yes | |
14782 ;; | |
14783 | |
14784 openbsd*) | |
14785 version_type=sunos | |
14786 need_lib_prefix=no | |
14787 need_version=yes | |
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14790 shlibpath_var=LD_LIBRARY_PATH | |
14791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14792 case $host_os in | |
14793 openbsd2.[89] | openbsd2.[89].*) | |
14794 shlibpath_overrides_runpath=no | |
14795 ;; | |
14796 *) | |
14797 shlibpath_overrides_runpath=yes | |
14798 ;; | |
14799 esac | |
14800 else | |
14801 shlibpath_overrides_runpath=yes | |
14802 fi | |
14803 ;; | |
14804 | |
14805 os2*) | |
14806 libname_spec='$name' | |
14807 shrext=".dll" | |
14808 need_lib_prefix=no | |
14809 library_names_spec='$libname${shared_ext} $libname.a' | |
14810 dynamic_linker='OS/2 ld.exe' | |
14811 shlibpath_var=LIBPATH | |
14812 ;; | |
14813 | |
14814 osf3* | osf4* | osf5*) | |
14815 version_type=osf | |
14816 need_lib_prefix=no | |
14817 need_version=no | |
14818 soname_spec='${libname}${release}${shared_ext}$major' | |
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14820 shlibpath_var=LD_LIBRARY_PATH | |
14821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14823 ;; | |
14824 | |
14825 sco3.2v5*) | |
14826 version_type=osf | |
14827 soname_spec='${libname}${release}${shared_ext}$major' | |
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14829 shlibpath_var=LD_LIBRARY_PATH | |
14830 ;; | |
14831 | |
14832 solaris*) | |
14833 version_type=linux | |
14834 need_lib_prefix=no | |
14835 need_version=no | |
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14837 soname_spec='${libname}${release}${shared_ext}$major' | |
14838 shlibpath_var=LD_LIBRARY_PATH | |
14839 shlibpath_overrides_runpath=yes | |
14840 hardcode_into_libs=yes | |
14841 # ldd complains unless libraries are executable | |
14842 postinstall_cmds='chmod +x $lib' | |
14843 ;; | |
14844 | |
14845 sunos4*) | |
14846 version_type=sunos | |
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14849 shlibpath_var=LD_LIBRARY_PATH | |
14850 shlibpath_overrides_runpath=yes | |
14851 if test "$with_gnu_ld" = yes; then | |
14852 need_lib_prefix=no | |
14853 fi | |
14854 need_version=yes | |
14855 ;; | |
14856 | |
14857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
14858 version_type=linux | |
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14860 soname_spec='${libname}${release}${shared_ext}$major' | |
14861 shlibpath_var=LD_LIBRARY_PATH | |
14862 case $host_vendor in | |
14863 sni) | |
14864 shlibpath_overrides_runpath=no | |
14865 need_lib_prefix=no | |
14866 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
14867 runpath_var=LD_RUN_PATH | |
14868 ;; | |
14869 siemens) | |
14870 need_lib_prefix=no | |
14871 ;; | |
14872 motorola) | |
14873 need_lib_prefix=no | |
14874 need_version=no | |
14875 shlibpath_overrides_runpath=no | |
14876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14877 ;; | |
14878 esac | |
14879 ;; | |
14880 | |
14881 sysv4*MP*) | |
14882 if test -d /usr/nec ;then | |
14883 version_type=linux | |
14884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14885 soname_spec='$libname${shared_ext}.$major' | |
14886 shlibpath_var=LD_LIBRARY_PATH | |
14887 fi | |
14888 ;; | |
14889 | |
14890 uts4*) | |
14891 version_type=linux | |
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14893 soname_spec='${libname}${release}${shared_ext}$major' | |
14894 shlibpath_var=LD_LIBRARY_PATH | |
14895 ;; | |
14896 | |
14897 *) | |
14898 dynamic_linker=no | |
14899 ;; | |
14900 esac | |
14901 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
14902 echo "${ECHO_T}$dynamic_linker" >&6 | |
14903 test "$dynamic_linker" = no && can_build_shared=no | |
14904 | |
14905 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
14906 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
14907 hardcode_action_F77= | |
14908 if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
14909 test -n "$runpath_var F77" || \ | |
14910 test "X$hardcode_automatic_F77"="Xyes" ; then | |
14911 | |
14912 # We can hardcode non-existant directories. | |
14913 if test "$hardcode_direct_F77" != no && | |
14914 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14915 # have to relink, otherwise we might link with an installed library | |
14916 # when we should be linking with a yet-to-be-installed one | |
14917 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
14918 test "$hardcode_minus_L_F77" != no; then | |
14919 # Linking always hardcodes the temporary library directory. | |
14920 hardcode_action_F77=relink | |
14921 else | |
14922 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14923 hardcode_action_F77=immediate | |
14924 fi | |
14925 else | |
14926 # We cannot hardcode anything, or else we can only hardcode existing | |
14927 # directories. | |
14928 hardcode_action_F77=unsupported | |
14929 fi | |
14930 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
14931 echo "${ECHO_T}$hardcode_action_F77" >&6 | |
14932 | |
14933 if test "$hardcode_action_F77" = relink; then | |
14934 # Fast installation is not supported | |
14935 enable_fast_install=no | |
14936 elif test "$shlibpath_overrides_runpath" = yes || | |
14937 test "$enable_shared" = no; then | |
14938 # Fast installation is not necessary | |
14939 enable_fast_install=needless | |
14940 fi | |
14941 | |
14942 striplib= | |
14943 old_striplib= | |
14944 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
14945 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
14946 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
14947 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
14948 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
14949 echo "$as_me:$LINENO: result: yes" >&5 | |
14950 echo "${ECHO_T}yes" >&6 | |
14951 else | |
14952 # FIXME - insert some real tests, host_os isn't really good enough | |
14953 case $host_os in | |
14954 darwin*) | |
14955 if test -n "$STRIP" ; then | |
14956 striplib="$STRIP -x" | |
14957 echo "$as_me:$LINENO: result: yes" >&5 | |
14958 echo "${ECHO_T}yes" >&6 | |
14959 else | |
14960 echo "$as_me:$LINENO: result: no" >&5 | |
14961 echo "${ECHO_T}no" >&6 | |
14962 fi | |
14963 ;; | |
14964 *) | |
14965 echo "$as_me:$LINENO: result: no" >&5 | |
14966 echo "${ECHO_T}no" >&6 | |
14967 ;; | |
14968 esac | |
14969 fi | |
14970 | |
14971 | |
14972 | |
14973 # The else clause should only fire when bootstrapping the | |
14974 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
14975 # with your package, and you will get complaints that there are | |
14976 # no rules to generate ltmain.sh. | |
14977 if test -f "$ltmain"; then | |
14978 # See if we are running on zsh, and set the options which allow our commands through | |
14979 # without removal of \ escapes. | |
14980 if test -n "${ZSH_VERSION+set}" ; then | |
14981 setopt NO_GLOB_SUBST | |
14982 fi | |
14983 # Now quote all the things that may contain metacharacters while being | |
14984 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
14985 # variables and quote the copies for generation of the libtool script. | |
14986 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
14987 SED SHELL STRIP \ | |
14988 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
14989 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
14990 deplibs_check_method reload_flag reload_cmds need_locks \ | |
14991 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
14992 lt_cv_sys_global_symbol_to_c_name_address \ | |
14993 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
14994 old_postinstall_cmds old_postuninstall_cmds \ | |
14995 compiler_F77 \ | |
14996 CC_F77 \ | |
14997 LD_F77 \ | |
14998 lt_prog_compiler_wl_F77 \ | |
14999 lt_prog_compiler_pic_F77 \ | |
15000 lt_prog_compiler_static_F77 \ | |
15001 lt_prog_compiler_no_builtin_flag_F77 \ | |
15002 export_dynamic_flag_spec_F77 \ | |
15003 thread_safe_flag_spec_F77 \ | |
15004 whole_archive_flag_spec_F77 \ | |
15005 enable_shared_with_static_runtimes_F77 \ | |
15006 old_archive_cmds_F77 \ | |
15007 old_archive_from_new_cmds_F77 \ | |
15008 predep_objects_F77 \ | |
15009 postdep_objects_F77 \ | |
15010 predeps_F77 \ | |
15011 postdeps_F77 \ | |
15012 compiler_lib_search_path_F77 \ | |
15013 archive_cmds_F77 \ | |
15014 archive_expsym_cmds_F77 \ | |
15015 postinstall_cmds_F77 \ | |
15016 postuninstall_cmds_F77 \ | |
15017 old_archive_from_expsyms_cmds_F77 \ | |
15018 allow_undefined_flag_F77 \ | |
15019 no_undefined_flag_F77 \ | |
15020 export_symbols_cmds_F77 \ | |
15021 hardcode_libdir_flag_spec_F77 \ | |
15022 hardcode_libdir_flag_spec_ld_F77 \ | |
15023 hardcode_libdir_separator_F77 \ | |
15024 hardcode_automatic_F77 \ | |
15025 module_cmds_F77 \ | |
15026 module_expsym_cmds_F77 \ | |
15027 lt_cv_prog_compiler_c_o_F77 \ | |
15028 exclude_expsyms_F77 \ | |
15029 include_expsyms_F77; do | |
15030 | |
15031 case $var in | |
15032 old_archive_cmds_F77 | \ | |
15033 old_archive_from_new_cmds_F77 | \ | |
15034 archive_cmds_F77 | \ | |
15035 archive_expsym_cmds_F77 | \ | |
15036 module_cmds_F77 | \ | |
15037 module_expsym_cmds_F77 | \ | |
15038 old_archive_from_expsyms_cmds_F77 | \ | |
15039 export_symbols_cmds_F77 | \ | |
15040 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15041 postinstall_cmds | postuninstall_cmds | \ | |
15042 old_postinstall_cmds | old_postuninstall_cmds | \ | |
15043 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15044 # Double-quote double-evaled strings. | |
15045 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15046 ;; | |
15047 *) | |
15048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15049 ;; | |
15050 esac | |
15051 done | |
15052 | |
15053 case $lt_echo in | |
15054 *'\$0 --fallback-echo"') | |
15055 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15056 ;; | |
15057 esac | |
15058 | |
15059 cfgfile="$ofile" | |
15060 | |
15061 cat <<__EOF__ >> "$cfgfile" | |
15062 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15063 | |
15064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15065 | |
15066 # Shell to use when invoking shell scripts. | |
15067 SHELL=$lt_SHELL | |
15068 | |
15069 # Whether or not to build shared libraries. | |
15070 build_libtool_libs=$enable_shared | |
15071 | |
15072 # Whether or not to build static libraries. | |
15073 build_old_libs=$enable_static | |
15074 | |
15075 # Whether or not to add -lc for building shared libraries. | |
15076 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15077 | |
15078 # Whether or not to disallow shared libs when runtime libs are static | |
15079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15080 | |
15081 # Whether or not to optimize for fast installation. | |
15082 fast_install=$enable_fast_install | |
15083 | |
15084 # The host system. | |
15085 host_alias=$host_alias | |
15086 host=$host | |
15087 | |
15088 # An echo program that does not interpret backslashes. | |
15089 echo=$lt_echo | |
15090 | |
15091 # The archiver. | |
15092 AR=$lt_AR | |
15093 AR_FLAGS=$lt_AR_FLAGS | |
15094 | |
15095 # A C compiler. | |
15096 LTCC=$lt_LTCC | |
15097 | |
15098 # A language-specific compiler. | |
15099 CC=$lt_compiler_F77 | |
15100 | |
15101 # Is the compiler the GNU C compiler? | |
15102 with_gcc=$GCC_F77 | |
15103 | |
15104 # An ERE matcher. | |
15105 EGREP=$lt_EGREP | |
15106 | |
15107 # The linker used to build libraries. | |
15108 LD=$lt_LD_F77 | |
15109 | |
15110 # Whether we need hard or soft links. | |
15111 LN_S=$lt_LN_S | |
15112 | |
15113 # A BSD-compatible nm program. | |
15114 NM=$lt_NM | |
15115 | |
15116 # A symbol stripping program | |
15117 STRIP=$lt_STRIP | |
15118 | |
15119 # Used to examine libraries when file_magic_cmd begins "file" | |
15120 MAGIC_CMD=$MAGIC_CMD | |
15121 | |
15122 # Used on cygwin: DLL creation program. | |
15123 DLLTOOL="$DLLTOOL" | |
15124 | |
15125 # Used on cygwin: object dumper. | |
15126 OBJDUMP="$OBJDUMP" | |
15127 | |
15128 # Used on cygwin: assembler. | |
15129 AS="$AS" | |
15130 | |
15131 # The name of the directory that contains temporary libtool files. | |
15132 objdir=$objdir | |
15133 | |
15134 # How to create reloadable object files. | |
15135 reload_flag=$lt_reload_flag | |
15136 reload_cmds=$lt_reload_cmds | |
15137 | |
15138 # How to pass a linker flag through the compiler. | |
15139 wl=$lt_lt_prog_compiler_wl_F77 | |
15140 | |
15141 # Object file suffix (normally "o"). | |
15142 objext="$ac_objext" | |
15143 | |
15144 # Old archive suffix (normally "a"). | |
15145 libext="$libext" | |
15146 | |
15147 # Shared library suffix (normally ".so"). | |
15148 shrext='$shrext' | |
15149 | |
15150 # Executable file suffix (normally ""). | |
15151 exeext="$exeext" | |
15152 | |
15153 # Additional compiler flags for building library objects. | |
15154 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15155 pic_mode=$pic_mode | |
15156 | |
15157 # What is the maximum length of a command? | |
15158 max_cmd_len=$lt_cv_sys_max_cmd_len | |
15159 | |
15160 # Does compiler simultaneously support -c and -o options? | |
15161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15162 | |
15163 # Must we lock files when doing compilation ? | |
15164 need_locks=$lt_need_locks | |
15165 | |
15166 # Do we need the lib prefix for modules? | |
15167 need_lib_prefix=$need_lib_prefix | |
15168 | |
15169 # Do we need a version for libraries? | |
15170 need_version=$need_version | |
15171 | |
15172 # Whether dlopen is supported. | |
15173 dlopen_support=$enable_dlopen | |
15174 | |
15175 # Whether dlopen of programs is supported. | |
15176 dlopen_self=$enable_dlopen_self | |
15177 | |
15178 # Whether dlopen of statically linked programs is supported. | |
15179 dlopen_self_static=$enable_dlopen_self_static | |
15180 | |
15181 # Compiler flag to prevent dynamic linking. | |
15182 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15183 | |
15184 # Compiler flag to turn off builtin functions. | |
15185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15186 | |
15187 # Compiler flag to allow reflexive dlopens. | |
15188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15189 | |
15190 # Compiler flag to generate shared objects directly from archives. | |
15191 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15192 | |
15193 # Compiler flag to generate thread-safe objects. | |
15194 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15195 | |
15196 # Library versioning type. | |
15197 version_type=$version_type | |
15198 | |
15199 # Format of library name prefix. | |
15200 libname_spec=$lt_libname_spec | |
15201 | |
15202 # List of archive names. First name is the real one, the rest are links. | |
15203 # The last name is the one that the linker finds with -lNAME. | |
15204 library_names_spec=$lt_library_names_spec | |
15205 | |
15206 # The coded name of the library, if different from the real name. | |
15207 soname_spec=$lt_soname_spec | |
15208 | |
15209 # Commands used to build and install an old-style archive. | |
15210 RANLIB=$lt_RANLIB | |
15211 old_archive_cmds=$lt_old_archive_cmds_F77 | |
15212 old_postinstall_cmds=$lt_old_postinstall_cmds | |
15213 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15214 | |
15215 # Create an old-style archive from a shared archive. | |
15216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15217 | |
15218 # Create a temporary old-style archive to link instead of a shared archive. | |
15219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15220 | |
15221 # Commands used to build and install a shared archive. | |
15222 archive_cmds=$lt_archive_cmds_F77 | |
15223 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15224 postinstall_cmds=$lt_postinstall_cmds | |
15225 postuninstall_cmds=$lt_postuninstall_cmds | |
15226 | |
15227 # Commands used to build a loadable module (assumed same as above if empty) | |
15228 module_cmds=$lt_module_cmds_F77 | |
15229 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
15230 | |
15231 # Commands to strip libraries. | |
15232 old_striplib=$lt_old_striplib | |
15233 striplib=$lt_striplib | |
15234 | |
15235 # Dependencies to place before the objects being linked to create a | |
15236 # shared library. | |
15237 predep_objects=$lt_predep_objects_F77 | |
15238 | |
15239 # Dependencies to place after the objects being linked to create a | |
15240 # shared library. | |
15241 postdep_objects=$lt_postdep_objects_F77 | |
15242 | |
15243 # Dependencies to place before the objects being linked to create a | |
15244 # shared library. | |
15245 predeps=$lt_predeps_F77 | |
15246 | |
15247 # Dependencies to place after the objects being linked to create a | |
15248 # shared library. | |
15249 postdeps=$lt_postdeps_F77 | |
15250 | |
15251 # The library search path used internally by the compiler when linking | |
15252 # a shared library. | |
15253 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
15254 | |
15255 # Method to check whether dependent libraries are shared objects. | |
15256 deplibs_check_method=$lt_deplibs_check_method | |
15257 | |
15258 # Command to use when deplibs_check_method == file_magic. | |
15259 file_magic_cmd=$lt_file_magic_cmd | |
15260 | |
15261 # Flag that allows shared libraries with undefined symbols to be built. | |
15262 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
15263 | |
15264 # Flag that forces no undefined symbols. | |
15265 no_undefined_flag=$lt_no_undefined_flag_F77 | |
15266 | |
15267 # Commands used to finish a libtool library installation in a directory. | |
15268 finish_cmds=$lt_finish_cmds | |
15269 | |
15270 # Same as above, but a single script fragment to be evaled but not shown. | |
15271 finish_eval=$lt_finish_eval | |
15272 | |
15273 # Take the output of nm and produce a listing of raw symbols and C names. | |
15274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15275 | |
15276 # Transform the output of nm in a proper C declaration | |
15277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15278 | |
15279 # Transform the output of nm in a C name address pair | |
15280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15281 | |
15282 # This is the shared library runtime path variable. | |
15283 runpath_var=$runpath_var | |
15284 | |
15285 # This is the shared library path variable. | |
15286 shlibpath_var=$shlibpath_var | |
15287 | |
15288 # Is shlibpath searched before the hard-coded library search path? | |
15289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15290 | |
15291 # How to hardcode a shared library path into an executable. | |
15292 hardcode_action=$hardcode_action_F77 | |
15293 | |
15294 # Whether we should hardcode library paths into libraries. | |
15295 hardcode_into_libs=$hardcode_into_libs | |
15296 | |
15297 # Flag to hardcode \$libdir into a binary during linking. | |
15298 # This must work even if \$libdir does not exist. | |
15299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
15300 | |
15301 # If ld is used when linking, flag to hardcode \$libdir into | |
15302 # a binary during linking. This must work even if \$libdir does | |
15303 # not exist. | |
15304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
15305 | |
15306 # Whether we need a single -rpath flag with a separated argument. | |
15307 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
15308 | |
15309 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15310 # resulting binary. | |
15311 hardcode_direct=$hardcode_direct_F77 | |
15312 | |
15313 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15314 # resulting binary. | |
15315 hardcode_minus_L=$hardcode_minus_L_F77 | |
15316 | |
15317 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15318 # the resulting binary. | |
15319 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
15320 | |
15321 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15322 # and all subsequent libraries and executables linked against it. | |
15323 hardcode_automatic=$hardcode_automatic_F77 | |
15324 | |
15325 # Variables whose values should be saved in libtool wrapper scripts and | |
15326 # restored at relink time. | |
15327 variables_saved_for_relink="$variables_saved_for_relink" | |
15328 | |
15329 # Whether libtool must link a program against all its dependency libraries. | |
15330 link_all_deplibs=$link_all_deplibs_F77 | |
15331 | |
15332 # Compile-time system search path for libraries | |
15333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15334 | |
15335 # Run-time system search path for libraries | |
15336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15337 | |
15338 # Fix the shell variable \$srcfile for the compiler. | |
15339 fix_srcfile_path="$fix_srcfile_path_F77" | |
15340 | |
15341 # Set to yes if exported symbols are required. | |
15342 always_export_symbols=$always_export_symbols_F77 | |
15343 | |
15344 # The commands to list exported symbols. | |
15345 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
15346 | |
15347 # The commands to extract the exported symbol list from a shared archive. | |
15348 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15349 | |
15350 # Symbols that should not be listed in the preloaded symbols. | |
15351 exclude_expsyms=$lt_exclude_expsyms_F77 | |
15352 | |
15353 # Symbols that must always be exported. | |
15354 include_expsyms=$lt_include_expsyms_F77 | |
15355 | |
15356 # ### END LIBTOOL TAG CONFIG: $tagname | |
15357 | |
15358 __EOF__ | |
15359 | |
15360 | |
15361 else | |
15362 # If there is no Makefile yet, we rely on a make rule to execute | |
15363 # `config.status --recheck' to rerun these tests and create the | |
15364 # libtool script then. | |
15365 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15366 if test -f "$ltmain_in"; then | |
15367 test -f Makefile && make "$ltmain" | |
15368 fi | |
15369 fi | |
15370 | |
15371 | |
15372 ac_ext=c | |
15373 ac_cpp='$CPP $CPPFLAGS' | |
15374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15376 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15377 | |
15378 CC="$lt_save_CC" | |
15379 | |
15380 else | |
15381 tagname="" | |
15382 fi | |
15383 ;; | |
15384 | |
15385 GCJ) | |
15386 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
15387 | |
15388 | |
15389 | |
15390 # Source file extension for Java test sources. | |
15391 ac_ext=java | |
15392 | |
15393 # Object file extension for compiled Java test sources. | |
15394 objext=o | |
15395 objext_GCJ=$objext | |
15396 | |
15397 # Code to be used in simple compile tests | |
15398 lt_simple_compile_test_code="class foo {}\n" | |
15399 | |
15400 # Code to be used in simple link tests | |
15401 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | |
15402 | |
15403 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15404 | |
15405 # If no C compiler was specified, use CC. | |
15406 LTCC=${LTCC-"$CC"} | |
15407 | |
15408 # Allow CC to be a program name with arguments. | |
15409 compiler=$CC | |
15410 | |
15411 | |
15412 # Allow CC to be a program name with arguments. | |
15413 lt_save_CC="$CC" | |
15414 CC=${GCJ-"gcj"} | |
15415 compiler=$CC | |
15416 compiler_GCJ=$CC | |
15417 | |
15418 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
15419 archive_cmds_need_lc_GCJ=no | |
15420 | |
15421 | |
15422 lt_prog_compiler_no_builtin_flag_GCJ= | |
15423 | |
15424 if test "$GCC" = yes; then | |
15425 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
15426 | |
15427 | |
15428 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15429 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15430 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15431 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15432 else | |
15433 lt_cv_prog_compiler_rtti_exceptions=no | |
15434 ac_outfile=conftest.$ac_objext | |
15435 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15436 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
15437 # Insert the option either (1) after the last *FLAGS variable, or | |
15438 # (2) before a word containing "conftest.", or (3) at the end. | |
15439 # Note that $ac_compile itself does not contain backslashes and begins | |
15440 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15441 # The option is referenced via a variable to avoid confusing sed. | |
15442 lt_compile=`echo "$ac_compile" | $SED \ | |
15443 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
15444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15445 -e 's:$: $lt_compiler_flag:'` | |
15446 (eval echo "\"\$as_me:15446: $lt_compile\"" >&5) | |
15447 (eval "$lt_compile" 2>conftest.err) | |
15448 ac_status=$? | |
15449 cat conftest.err >&5 | |
15450 echo "$as_me:15450: \$? = $ac_status" >&5 | |
15451 if (exit $ac_status) && test -s "$ac_outfile"; then | |
15452 # The compiler can only warn and ignore the option if not recognized | |
15453 # So say no if there are warnings | |
15454 if test ! -s conftest.err; then | |
15455 lt_cv_prog_compiler_rtti_exceptions=yes | |
15456 fi | |
15457 fi | |
15458 $rm conftest* | |
15459 | |
15460 fi | |
15461 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15462 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15463 | |
15464 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15465 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
15466 else | |
15467 : | |
15468 fi | |
15469 | |
15470 fi | |
15471 | |
15472 lt_prog_compiler_wl_GCJ= | |
15473 lt_prog_compiler_pic_GCJ= | |
15474 lt_prog_compiler_static_GCJ= | |
15475 | |
15476 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15478 | |
15479 if test "$GCC" = yes; then | |
15480 lt_prog_compiler_wl_GCJ='-Wl,' | |
15481 lt_prog_compiler_static_GCJ='-static' | |
15482 | |
15483 case $host_os in | |
15484 aix*) | |
15485 # All AIX code is PIC. | |
15486 if test "$host_cpu" = ia64; then | |
15487 # AIX 5 now supports IA64 processor | |
15488 lt_prog_compiler_static_GCJ='-Bstatic' | |
15489 fi | |
15490 ;; | |
15491 | |
15492 amigaos*) | |
15493 # FIXME: we need at least 68020 code to build shared libraries, but | |
15494 # adding the `-m68020' flag to GCC prevents building anything better, | |
15495 # like `-m68040'. | |
15496 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
15497 ;; | |
15498 | |
15499 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15500 # PIC is the default for these OSes. | |
15501 ;; | |
15502 | |
15503 mingw* | pw32* | os2*) | |
15504 # This hack is so that the source file can tell whether it is being | |
15505 # built for inclusion in a dll (and should export symbols for example). | |
15506 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15507 ;; | |
15508 | |
15509 darwin* | rhapsody*) | |
15510 # PIC is the default on this platform | |
15511 # Common symbols not allowed in MH_DYLIB files | |
15512 lt_prog_compiler_pic_GCJ='-fno-common' | |
15513 ;; | |
15514 | |
15515 msdosdjgpp*) | |
15516 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15517 # on systems that don't support them. | |
15518 lt_prog_compiler_can_build_shared_GCJ=no | |
15519 enable_shared=no | |
15520 ;; | |
15521 | |
15522 sysv4*MP*) | |
15523 if test -d /usr/nec; then | |
15524 lt_prog_compiler_pic_GCJ=-Kconform_pic | |
15525 fi | |
15526 ;; | |
15527 | |
15528 hpux*) | |
15529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15530 # not for PA HP-UX. | |
15531 case "$host_cpu" in | |
15532 hppa*64*|ia64*) | |
15533 # +Z the default | |
15534 ;; | |
15535 *) | |
15536 lt_prog_compiler_pic_GCJ='-fPIC' | |
15537 ;; | |
15538 esac | |
15539 ;; | |
15540 | |
15541 *) | |
15542 lt_prog_compiler_pic_GCJ='-fPIC' | |
15543 ;; | |
15544 esac | |
15545 else | |
15546 # PORTME Check for flag to pass linker flags through the system compiler. | |
15547 case $host_os in | |
15548 aix*) | |
15549 lt_prog_compiler_wl_GCJ='-Wl,' | |
15550 if test "$host_cpu" = ia64; then | |
15551 # AIX 5 now supports IA64 processor | |
15552 lt_prog_compiler_static_GCJ='-Bstatic' | |
15553 else | |
15554 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
15555 fi | |
15556 ;; | |
15557 | |
15558 mingw* | pw32* | os2*) | |
15559 # This hack is so that the source file can tell whether it is being | |
15560 # built for inclusion in a dll (and should export symbols for example). | |
15561 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15562 ;; | |
15563 | |
15564 hpux9* | hpux10* | hpux11*) | |
15565 lt_prog_compiler_wl_GCJ='-Wl,' | |
15566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15567 # not for PA HP-UX. | |
15568 case "$host_cpu" in | |
15569 hppa*64*|ia64*) | |
15570 # +Z the default | |
15571 ;; | |
15572 *) | |
15573 lt_prog_compiler_pic_GCJ='+Z' | |
15574 ;; | |
15575 esac | |
15576 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
15577 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
15578 ;; | |
15579 | |
15580 irix5* | irix6* | nonstopux*) | |
15581 lt_prog_compiler_wl_GCJ='-Wl,' | |
15582 # PIC (with -KPIC) is the default. | |
15583 lt_prog_compiler_static_GCJ='-non_shared' | |
15584 ;; | |
15585 | |
15586 newsos6) | |
15587 lt_prog_compiler_pic_GCJ='-KPIC' | |
15588 lt_prog_compiler_static_GCJ='-Bstatic' | |
15589 ;; | |
15590 | |
15591 linux*) | |
15592 case $CC in | |
15593 icc* | ecc*) | |
15594 lt_prog_compiler_wl_GCJ='-Wl,' | |
15595 lt_prog_compiler_pic_GCJ='-KPIC' | |
15596 lt_prog_compiler_static_GCJ='-static' | |
15597 ;; | |
15598 ccc*) | |
15599 lt_prog_compiler_wl_GCJ='-Wl,' | |
15600 # All Alpha code is PIC. | |
15601 lt_prog_compiler_static_GCJ='-non_shared' | |
15602 ;; | |
15603 esac | |
15604 ;; | |
15605 | |
15606 osf3* | osf4* | osf5*) | |
15607 lt_prog_compiler_wl_GCJ='-Wl,' | |
15608 # All OSF/1 code is PIC. | |
15609 lt_prog_compiler_static_GCJ='-non_shared' | |
15610 ;; | |
15611 | |
15612 sco3.2v5*) | |
15613 lt_prog_compiler_pic_GCJ='-Kpic' | |
15614 lt_prog_compiler_static_GCJ='-dn' | |
15615 ;; | |
15616 | |
15617 solaris*) | |
15618 lt_prog_compiler_wl_GCJ='-Wl,' | |
15619 lt_prog_compiler_pic_GCJ='-KPIC' | |
15620 lt_prog_compiler_static_GCJ='-Bstatic' | |
15621 ;; | |
15622 | |
15623 sunos4*) | |
15624 lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
15625 lt_prog_compiler_pic_GCJ='-PIC' | |
15626 lt_prog_compiler_static_GCJ='-Bstatic' | |
15627 ;; | |
15628 | |
15629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15630 lt_prog_compiler_wl_GCJ='-Wl,' | |
15631 lt_prog_compiler_pic_GCJ='-KPIC' | |
15632 lt_prog_compiler_static_GCJ='-Bstatic' | |
15633 ;; | |
15634 | |
15635 sysv4*MP*) | |
15636 if test -d /usr/nec ;then | |
15637 lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
15638 lt_prog_compiler_static_GCJ='-Bstatic' | |
15639 fi | |
15640 ;; | |
15641 | |
15642 uts4*) | |
15643 lt_prog_compiler_pic_GCJ='-pic' | |
15644 lt_prog_compiler_static_GCJ='-Bstatic' | |
15645 ;; | |
15646 | |
15647 *) | |
15648 lt_prog_compiler_can_build_shared_GCJ=no | |
15649 ;; | |
15650 esac | |
15651 fi | |
15652 | |
15653 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
15654 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
15655 | |
15656 # | |
15657 # Check to make sure the PIC flag actually works. | |
15658 # | |
15659 if test -n "$lt_prog_compiler_pic_GCJ"; then | |
15660 | |
15661 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
15662 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
15663 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
15664 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15665 else | |
15666 lt_prog_compiler_pic_works_GCJ=no | |
15667 ac_outfile=conftest.$ac_objext | |
15668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15669 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
15670 # Insert the option either (1) after the last *FLAGS variable, or | |
15671 # (2) before a word containing "conftest.", or (3) at the end. | |
15672 # Note that $ac_compile itself does not contain backslashes and begins | |
15673 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15674 # The option is referenced via a variable to avoid confusing sed. | |
15675 lt_compile=`echo "$ac_compile" | $SED \ | |
15676 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
15677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15678 -e 's:$: $lt_compiler_flag:'` | |
15679 (eval echo "\"\$as_me:15679: $lt_compile\"" >&5) | |
15680 (eval "$lt_compile" 2>conftest.err) | |
15681 ac_status=$? | |
15682 cat conftest.err >&5 | |
15683 echo "$as_me:15683: \$? = $ac_status" >&5 | |
15684 if (exit $ac_status) && test -s "$ac_outfile"; then | |
15685 # The compiler can only warn and ignore the option if not recognized | |
15686 # So say no if there are warnings | |
15687 if test ! -s conftest.err; then | |
15688 lt_prog_compiler_pic_works_GCJ=yes | |
15689 fi | |
15690 fi | |
15691 $rm conftest* | |
15692 | |
15693 fi | |
15694 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
15695 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
15696 | |
15697 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
15698 case $lt_prog_compiler_pic_GCJ in | |
15699 "" | " "*) ;; | |
15700 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
15701 esac | |
15702 else | |
15703 lt_prog_compiler_pic_GCJ= | |
15704 lt_prog_compiler_can_build_shared_GCJ=no | |
15705 fi | |
15706 | |
15707 fi | |
15708 case "$host_os" in | |
15709 # For platforms which do not support PIC, -DPIC is meaningless: | |
15710 *djgpp*) | |
15711 lt_prog_compiler_pic_GCJ= | |
15712 ;; | |
15713 *) | |
15714 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
15715 ;; | |
15716 esac | |
15717 | |
15718 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15719 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
15720 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
15721 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15722 else | |
15723 lt_cv_prog_compiler_c_o_GCJ=no | |
15724 $rm -r conftest 2>/dev/null | |
15725 mkdir conftest | |
15726 cd conftest | |
15727 mkdir out | |
15728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15729 | |
15730 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15731 # Insert the option either (1) after the last *FLAGS variable, or | |
15732 # (2) before a word containing "conftest.", or (3) at the end. | |
15733 # Note that $ac_compile itself does not contain backslashes and begins | |
15734 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15735 lt_compile=`echo "$ac_compile" | $SED \ | |
15736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | |
15737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15738 -e 's:$: $lt_compiler_flag:'` | |
15739 (eval echo "\"\$as_me:15739: $lt_compile\"" >&5) | |
15740 (eval "$lt_compile" 2>out/conftest.err) | |
15741 ac_status=$? | |
15742 cat out/conftest.err >&5 | |
15743 echo "$as_me:15743: \$? = $ac_status" >&5 | |
15744 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15745 then | |
15746 # The compiler can only warn and ignore the option if not recognized | |
15747 # So say no if there are warnings | |
15748 if test ! -s out/conftest.err; then | |
15749 lt_cv_prog_compiler_c_o_GCJ=yes | |
15750 fi | |
15751 fi | |
15752 chmod u+w . | |
15753 $rm conftest* | |
15754 # SGI C++ compiler will create directory out/ii_files/ for | |
15755 # template instantiation | |
15756 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
15757 $rm out/* && rmdir out | |
15758 cd .. | |
15759 rmdir conftest | |
15760 $rm conftest* | |
15761 | |
15762 fi | |
15763 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
15764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
15765 | |
15766 | |
15767 hard_links="nottested" | |
15768 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
15769 # do not overwrite the value of need_locks provided by the user | |
15770 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
15771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
15772 hard_links=yes | |
15773 $rm conftest* | |
15774 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15775 touch conftest.a | |
15776 ln conftest.a conftest.b 2>&5 || hard_links=no | |
15777 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15778 echo "$as_me:$LINENO: result: $hard_links" >&5 | |
15779 echo "${ECHO_T}$hard_links" >&6 | |
15780 if test "$hard_links" = no; then | |
15781 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
15782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
15783 need_locks=warn | |
15784 fi | |
15785 else | |
15786 need_locks=no | |
15787 fi | |
15788 | |
15789 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
15791 | |
15792 runpath_var= | |
15793 allow_undefined_flag_GCJ= | |
15794 enable_shared_with_static_runtimes_GCJ=no | |
15795 archive_cmds_GCJ= | |
15796 archive_expsym_cmds_GCJ= | |
15797 old_archive_From_new_cmds_GCJ= | |
15798 old_archive_from_expsyms_cmds_GCJ= | |
15799 export_dynamic_flag_spec_GCJ= | |
15800 whole_archive_flag_spec_GCJ= | |
15801 thread_safe_flag_spec_GCJ= | |
15802 hardcode_libdir_flag_spec_GCJ= | |
15803 hardcode_libdir_flag_spec_ld_GCJ= | |
15804 hardcode_libdir_separator_GCJ= | |
15805 hardcode_direct_GCJ=no | |
15806 hardcode_minus_L_GCJ=no | |
15807 hardcode_shlibpath_var_GCJ=unsupported | |
15808 link_all_deplibs_GCJ=unknown | |
15809 hardcode_automatic_GCJ=no | |
15810 module_cmds_GCJ= | |
15811 module_expsym_cmds_GCJ= | |
15812 always_export_symbols_GCJ=no | |
15813 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15814 # include_expsyms should be a list of space-separated symbols to be *always* | |
15815 # included in the symbol list | |
15816 include_expsyms_GCJ= | |
15817 # exclude_expsyms can be an extended regexp of symbols to exclude | |
15818 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
15819 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
15820 # as well as any symbol that contains `d'. | |
15821 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
15822 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
15823 # platforms (ab)use it in PIC code, but their linkers get confused if | |
15824 # the symbol is explicitly referenced. Since portable code cannot | |
15825 # rely on this symbol name, it's probably fine to never include it in | |
15826 # preloaded symbol tables. | |
15827 extract_expsyms_cmds= | |
15828 | |
15829 case $host_os in | |
15830 cygwin* | mingw* | pw32*) | |
15831 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
15832 # When not using gcc, we currently assume that we are using | |
15833 # Microsoft Visual C++. | |
15834 if test "$GCC" != yes; then | |
15835 with_gnu_ld=no | |
15836 fi | |
15837 ;; | |
15838 openbsd*) | |
15839 with_gnu_ld=no | |
15840 ;; | |
15841 esac | |
15842 | |
15843 ld_shlibs_GCJ=yes | |
15844 if test "$with_gnu_ld" = yes; then | |
15845 # If archive_cmds runs LD, not CC, wlarc should be empty | |
15846 wlarc='${wl}' | |
15847 | |
15848 # See if GNU ld supports shared libraries. | |
15849 case $host_os in | |
15850 aix3* | aix4* | aix5*) | |
15851 # On AIX/PPC, the GNU linker is very broken | |
15852 if test "$host_cpu" != ia64; then | |
15853 ld_shlibs_GCJ=no | |
15854 cat <<EOF 1>&2 | |
15855 | |
15856 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
15857 *** to be unable to reliably create shared libraries on AIX. | |
15858 *** Therefore, libtool is disabling shared libraries support. If you | |
15859 *** really care for shared libraries, you may want to modify your PATH | |
15860 *** so that a non-GNU linker is found, and then restart. | |
15861 | |
15862 EOF | |
15863 fi | |
15864 ;; | |
15865 | |
15866 amigaos*) | |
15867 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)' | |
15868 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
15869 hardcode_minus_L_GCJ=yes | |
15870 | |
15871 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
15872 # that the semantics of dynamic libraries on AmigaOS, at least up | |
15873 # to version 4, is to share data among multiple programs linked | |
15874 # with the same dynamic library. Since this doesn't match the | |
15875 # behavior of shared libraries on other platforms, we can't use | |
15876 # them. | |
15877 ld_shlibs_GCJ=no | |
15878 ;; | |
15879 | |
15880 beos*) | |
15881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15882 allow_undefined_flag_GCJ=unsupported | |
15883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
15884 # support --undefined. This deserves some investigation. FIXME | |
15885 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15886 else | |
15887 ld_shlibs_GCJ=no | |
15888 fi | |
15889 ;; | |
15890 | |
15891 cygwin* | mingw* | pw32*) | |
15892 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
15893 # as there is no search path for DLLs. | |
15894 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
15895 allow_undefined_flag_GCJ=unsupported | |
15896 always_export_symbols_GCJ=no | |
15897 enable_shared_with_static_runtimes_GCJ=yes | |
15898 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
15899 | |
15900 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
15901 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
15902 # If the export-symbols file already is a .def file (1st line | |
15903 # is EXPORTS), use it as is; otherwise, prepend... | |
15904 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
15905 cp $export_symbols $output_objdir/$soname.def; | |
15906 else | |
15907 echo EXPORTS > $output_objdir/$soname.def; | |
15908 cat $export_symbols >> $output_objdir/$soname.def; | |
15909 fi~ | |
15910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | |
15911 else | |
15912 ld_shlibs=no | |
15913 fi | |
15914 ;; | |
15915 | |
15916 netbsd* | knetbsd*-gnu) | |
15917 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15918 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
15919 wlarc= | |
15920 else | |
15921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15923 fi | |
15924 ;; | |
15925 | |
15926 solaris* | sysv5*) | |
15927 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
15928 ld_shlibs_GCJ=no | |
15929 cat <<EOF 1>&2 | |
15930 | |
15931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
15932 *** create shared libraries on Solaris systems. Therefore, libtool | |
15933 *** is disabling shared libraries support. We urge you to upgrade GNU | |
15934 *** binutils to release 2.9.1 or newer. Another option is to modify | |
15935 *** your PATH or compiler configuration so that the native linker is | |
15936 *** used, and then restart. | |
15937 | |
15938 EOF | |
15939 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15941 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15942 else | |
15943 ld_shlibs_GCJ=no | |
15944 fi | |
15945 ;; | |
15946 | |
15947 sunos4*) | |
15948 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15949 wlarc= | |
15950 hardcode_direct_GCJ=yes | |
15951 hardcode_shlibpath_var_GCJ=no | |
15952 ;; | |
15953 | |
15954 linux*) | |
15955 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
15956 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15957 archive_cmds_GCJ="$tmp_archive_cmds" | |
15958 supports_anon_versioning=no | |
15959 case `$LD -v 2>/dev/null` in | |
15960 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
15961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
15962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
15963 *\ 2.11.*) ;; # other 2.11 versions | |
15964 *) supports_anon_versioning=yes ;; | |
15965 esac | |
15966 if test $supports_anon_versioning = yes; then | |
15967 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
15968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
15969 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
15970 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
15971 else | |
15972 archive_expsym_cmds_GCJ="$tmp_archive_cmds" | |
15973 fi | |
15974 else | |
15975 ld_shlibs_GCJ=no | |
15976 fi | |
15977 ;; | |
15978 | |
15979 *) | |
15980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
15981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15983 else | |
15984 ld_shlibs_GCJ=no | |
15985 fi | |
15986 ;; | |
15987 esac | |
15988 | |
15989 if test "$ld_shlibs_GCJ" = yes; then | |
15990 runpath_var=LD_RUN_PATH | |
15991 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
15992 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
15993 # ancient GNU ld didn't support --whole-archive et. al. | |
15994 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
15995 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
15996 else | |
15997 whole_archive_flag_spec_GCJ= | |
15998 fi | |
15999 fi | |
16000 else | |
16001 # PORTME fill in a description of your system's linker (not GNU ld) | |
16002 case $host_os in | |
16003 aix3*) | |
16004 allow_undefined_flag_GCJ=unsupported | |
16005 always_export_symbols_GCJ=yes | |
16006 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' | |
16007 # Note: this linker hardcodes the directories in LIBPATH if there | |
16008 # are no directories specified by -L. | |
16009 hardcode_minus_L_GCJ=yes | |
16010 if test "$GCC" = yes && test -z "$link_static_flag"; then | |
16011 # Neither direct hardcoding nor static linking is supported with a | |
16012 # broken collect2. | |
16013 hardcode_direct_GCJ=unsupported | |
16014 fi | |
16015 ;; | |
16016 | |
16017 aix4* | aix5*) | |
16018 if test "$host_cpu" = ia64; then | |
16019 # On IA64, the linker does run time linking by default, so we don't | |
16020 # have to do anything special. | |
16021 aix_use_runtimelinking=no | |
16022 exp_sym_flag='-Bexport' | |
16023 no_entry_flag="" | |
16024 else | |
16025 # If we're using GNU nm, then we don't want the "-C" option. | |
16026 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16027 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16028 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' | |
16029 else | |
16030 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' | |
16031 fi | |
16032 aix_use_runtimelinking=no | |
16033 | |
16034 # Test if we are trying to use run time linking or normal | |
16035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16036 # need to do runtime linking. | |
16037 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16038 for ld_flag in $LDFLAGS; do | |
16039 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16040 aix_use_runtimelinking=yes | |
16041 break | |
16042 fi | |
16043 done | |
16044 esac | |
16045 | |
16046 exp_sym_flag='-bexport' | |
16047 no_entry_flag='-bnoentry' | |
16048 fi | |
16049 | |
16050 # When large executables or shared objects are built, AIX ld can | |
16051 # have problems creating the table of contents. If linking a library | |
16052 # or program results in "error TOC overflow" add -mminimal-toc to | |
16053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16055 | |
16056 archive_cmds_GCJ='' | |
16057 hardcode_direct_GCJ=yes | |
16058 hardcode_libdir_separator_GCJ=':' | |
16059 link_all_deplibs_GCJ=yes | |
16060 | |
16061 if test "$GCC" = yes; then | |
16062 case $host_os in aix4.012|aix4.012.*) | |
16063 # We only want to do this on AIX 4.2 and lower, the check | |
16064 # below for broken collect2 doesn't work under 4.3+ | |
16065 collect2name=`${CC} -print-prog-name=collect2` | |
16066 if test -f "$collect2name" && \ | |
16067 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16068 then | |
16069 # We have reworked collect2 | |
16070 hardcode_direct_GCJ=yes | |
16071 else | |
16072 # We have old collect2 | |
16073 hardcode_direct_GCJ=unsupported | |
16074 # It fails to find uninstalled libraries when the uninstalled | |
16075 # path is not listed in the libpath. Setting hardcode_minus_L | |
16076 # to unsupported forces relinking | |
16077 hardcode_minus_L_GCJ=yes | |
16078 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16079 hardcode_libdir_separator_GCJ= | |
16080 fi | |
16081 esac | |
16082 shared_flag='-shared' | |
16083 else | |
16084 # not using gcc | |
16085 if test "$host_cpu" = ia64; then | |
16086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16087 # chokes on -Wl,-G. The following line is correct: | |
16088 shared_flag='-G' | |
16089 else | |
16090 if test "$aix_use_runtimelinking" = yes; then | |
16091 shared_flag='${wl}-G' | |
16092 else | |
16093 shared_flag='${wl}-bM:SRE' | |
16094 fi | |
16095 fi | |
16096 fi | |
16097 | |
16098 # It seems that -bexpall does not export symbols beginning with | |
16099 # underscore (_), so it is better to generate a list of symbols to export. | |
16100 always_export_symbols_GCJ=yes | |
16101 if test "$aix_use_runtimelinking" = yes; then | |
16102 # Warning - without using the other runtime loading flags (-brtl), | |
16103 # -berok will link without error, but may produce a broken library. | |
16104 allow_undefined_flag_GCJ='-berok' | |
16105 # Determine the default libpath from the value encoded in an empty executable. | |
16106 cat >conftest.$ac_ext <<_ACEOF | |
16107 /* confdefs.h. */ | |
16108 _ACEOF | |
16109 cat confdefs.h >>conftest.$ac_ext | |
16110 cat >>conftest.$ac_ext <<_ACEOF | |
16111 /* end confdefs.h. */ | |
16112 | |
16113 int | |
16114 main () | |
16115 { | |
16116 | |
16117 ; | |
16118 return 0; | |
16119 } | |
16120 _ACEOF | |
16121 rm -f conftest.$ac_objext conftest$ac_exeext | |
16122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16123 (eval $ac_link) 2>conftest.er1 | |
16124 ac_status=$? | |
16125 grep -v '^ *+' conftest.er1 >conftest.err | |
16126 rm -f conftest.er1 | |
16127 cat conftest.err >&5 | |
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16129 (exit $ac_status); } && | |
16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16132 (eval $ac_try) 2>&5 | |
16133 ac_status=$? | |
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16135 (exit $ac_status); }; } && | |
16136 { ac_try='test -s conftest$ac_exeext' | |
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16138 (eval $ac_try) 2>&5 | |
16139 ac_status=$? | |
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16141 (exit $ac_status); }; }; then | |
16142 | |
16143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16144 }'` | |
16145 # Check for a 64-bit object if we didn't find anything. | |
16146 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; } | |
16147 }'`; fi | |
16148 else | |
16149 echo "$as_me: failed program was:" >&5 | |
16150 sed 's/^/| /' conftest.$ac_ext >&5 | |
16151 | |
16152 fi | |
16153 rm -f conftest.err conftest.$ac_objext \ | |
16154 conftest$ac_exeext conftest.$ac_ext | |
16155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16156 | |
16157 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16158 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" | |
16159 else | |
16160 if test "$host_cpu" = ia64; then | |
16161 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
16162 allow_undefined_flag_GCJ="-z nodefs" | |
16163 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" | |
16164 else | |
16165 # Determine the default libpath from the value encoded in an empty executable. | |
16166 cat >conftest.$ac_ext <<_ACEOF | |
16167 /* confdefs.h. */ | |
16168 _ACEOF | |
16169 cat confdefs.h >>conftest.$ac_ext | |
16170 cat >>conftest.$ac_ext <<_ACEOF | |
16171 /* end confdefs.h. */ | |
16172 | |
16173 int | |
16174 main () | |
16175 { | |
16176 | |
16177 ; | |
16178 return 0; | |
16179 } | |
16180 _ACEOF | |
16181 rm -f conftest.$ac_objext conftest$ac_exeext | |
16182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16183 (eval $ac_link) 2>conftest.er1 | |
16184 ac_status=$? | |
16185 grep -v '^ *+' conftest.er1 >conftest.err | |
16186 rm -f conftest.er1 | |
16187 cat conftest.err >&5 | |
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16189 (exit $ac_status); } && | |
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16192 (eval $ac_try) 2>&5 | |
16193 ac_status=$? | |
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 (exit $ac_status); }; } && | |
16196 { ac_try='test -s conftest$ac_exeext' | |
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16198 (eval $ac_try) 2>&5 | |
16199 ac_status=$? | |
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16201 (exit $ac_status); }; }; then | |
16202 | |
16203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16204 }'` | |
16205 # Check for a 64-bit object if we didn't find anything. | |
16206 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; } | |
16207 }'`; fi | |
16208 else | |
16209 echo "$as_me: failed program was:" >&5 | |
16210 sed 's/^/| /' conftest.$ac_ext >&5 | |
16211 | |
16212 fi | |
16213 rm -f conftest.err conftest.$ac_objext \ | |
16214 conftest$ac_exeext conftest.$ac_ext | |
16215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16216 | |
16217 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16218 # Warning - without using the other run time loading flags, | |
16219 # -berok will link without error, but may produce a broken library. | |
16220 no_undefined_flag_GCJ=' ${wl}-bernotok' | |
16221 allow_undefined_flag_GCJ=' ${wl}-berok' | |
16222 # -bexpall does not export symbols beginning with underscore (_) | |
16223 always_export_symbols_GCJ=yes | |
16224 # Exported symbols can be pulled into shared objects from archives | |
16225 whole_archive_flag_spec_GCJ=' ' | |
16226 archive_cmds_need_lc_GCJ=yes | |
16227 # This is similar to how AIX traditionally builds it's shared libraries. | |
16228 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' | |
16229 fi | |
16230 fi | |
16231 ;; | |
16232 | |
16233 amigaos*) | |
16234 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)' | |
16235 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16236 hardcode_minus_L_GCJ=yes | |
16237 # see comment about different semantics on the GNU ld section | |
16238 ld_shlibs_GCJ=no | |
16239 ;; | |
16240 | |
16241 bsdi4*) | |
16242 export_dynamic_flag_spec_GCJ=-rdynamic | |
16243 ;; | |
16244 | |
16245 cygwin* | mingw* | pw32*) | |
16246 # When not using gcc, we currently assume that we are using | |
16247 # Microsoft Visual C++. | |
16248 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16249 # no search path for DLLs. | |
16250 hardcode_libdir_flag_spec_GCJ=' ' | |
16251 allow_undefined_flag_GCJ=unsupported | |
16252 # Tell ltmain to make .lib files, not .a files. | |
16253 libext=lib | |
16254 # Tell ltmain to make .dll files, not .so files. | |
16255 shrext=".dll" | |
16256 # FIXME: Setting linknames here is a bad hack. | |
16257 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16258 # The linker will automatically build a .lib file if we build a DLL. | |
16259 old_archive_From_new_cmds_GCJ='true' | |
16260 # FIXME: Should let the user specify the lib program. | |
16261 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16262 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
16263 enable_shared_with_static_runtimes_GCJ=yes | |
16264 ;; | |
16265 | |
16266 darwin* | rhapsody*) | |
16267 if test "$GXX" = yes ; then | |
16268 archive_cmds_need_lc_GCJ=no | |
16269 case "$host_os" in | |
16270 rhapsody* | darwin1.[012]) | |
16271 allow_undefined_flag_GCJ='-undefined suppress' | |
16272 ;; | |
16273 *) # Darwin 1.3 on | |
16274 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16275 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
16276 else | |
16277 case ${MACOSX_DEPLOYMENT_TARGET} in | |
16278 10.[012]) | |
16279 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
16280 ;; | |
16281 10.*) | |
16282 allow_undefined_flag_GCJ='-undefined dynamic_lookup' | |
16283 ;; | |
16284 esac | |
16285 fi | |
16286 ;; | |
16287 esac | |
16288 lt_int_apple_cc_single_mod=no | |
16289 output_verbose_link_cmd='echo' | |
16290 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
16291 lt_int_apple_cc_single_mod=yes | |
16292 fi | |
16293 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
16294 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16295 else | |
16296 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' | |
16297 fi | |
16298 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16299 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
16300 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
16301 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}' | |
16302 else | |
16303 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}' | |
16304 fi | |
16305 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}' | |
16306 hardcode_direct_GCJ=no | |
16307 hardcode_automatic_GCJ=yes | |
16308 hardcode_shlibpath_var_GCJ=unsupported | |
16309 whole_archive_flag_spec_GCJ='-all_load $convenience' | |
16310 link_all_deplibs_GCJ=yes | |
16311 else | |
16312 ld_shlibs_GCJ=no | |
16313 fi | |
16314 ;; | |
16315 | |
16316 dgux*) | |
16317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16318 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16319 hardcode_shlibpath_var_GCJ=no | |
16320 ;; | |
16321 | |
16322 freebsd1*) | |
16323 ld_shlibs_GCJ=no | |
16324 ;; | |
16325 | |
16326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16327 # support. Future versions do this automatically, but an explicit c++rt0.o | |
16328 # does not break anything, and helps significantly (at the cost of a little | |
16329 # extra space). | |
16330 freebsd2.2*) | |
16331 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16332 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16333 hardcode_direct_GCJ=yes | |
16334 hardcode_shlibpath_var_GCJ=no | |
16335 ;; | |
16336 | |
16337 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16338 freebsd2*) | |
16339 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16340 hardcode_direct_GCJ=yes | |
16341 hardcode_minus_L_GCJ=yes | |
16342 hardcode_shlibpath_var_GCJ=no | |
16343 ;; | |
16344 | |
16345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16346 freebsd* | kfreebsd*-gnu) | |
16347 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16348 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16349 hardcode_direct_GCJ=yes | |
16350 hardcode_shlibpath_var_GCJ=no | |
16351 ;; | |
16352 | |
16353 hpux9*) | |
16354 if test "$GCC" = yes; then | |
16355 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' | |
16356 else | |
16357 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' | |
16358 fi | |
16359 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16360 hardcode_libdir_separator_GCJ=: | |
16361 hardcode_direct_GCJ=yes | |
16362 | |
16363 # hardcode_minus_L: Not really in the search PATH, | |
16364 # but as the default location of the library. | |
16365 hardcode_minus_L_GCJ=yes | |
16366 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16367 ;; | |
16368 | |
16369 hpux10* | hpux11*) | |
16370 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16371 case "$host_cpu" in | |
16372 hppa*64*|ia64*) | |
16373 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16374 ;; | |
16375 *) | |
16376 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16377 ;; | |
16378 esac | |
16379 else | |
16380 case "$host_cpu" in | |
16381 hppa*64*|ia64*) | |
16382 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16383 ;; | |
16384 *) | |
16385 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16386 ;; | |
16387 esac | |
16388 fi | |
16389 if test "$with_gnu_ld" = no; then | |
16390 case "$host_cpu" in | |
16391 hppa*64*) | |
16392 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16393 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
16394 hardcode_libdir_separator_GCJ=: | |
16395 hardcode_direct_GCJ=no | |
16396 hardcode_shlibpath_var_GCJ=no | |
16397 ;; | |
16398 ia64*) | |
16399 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16400 hardcode_direct_GCJ=no | |
16401 hardcode_shlibpath_var_GCJ=no | |
16402 | |
16403 # hardcode_minus_L: Not really in the search PATH, | |
16404 # but as the default location of the library. | |
16405 hardcode_minus_L_GCJ=yes | |
16406 ;; | |
16407 *) | |
16408 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
16409 hardcode_libdir_separator_GCJ=: | |
16410 hardcode_direct_GCJ=yes | |
16411 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16412 | |
16413 # hardcode_minus_L: Not really in the search PATH, | |
16414 # but as the default location of the library. | |
16415 hardcode_minus_L_GCJ=yes | |
16416 ;; | |
16417 esac | |
16418 fi | |
16419 ;; | |
16420 | |
16421 irix5* | irix6* | nonstopux*) | |
16422 if test "$GCC" = yes; then | |
16423 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' | |
16424 else | |
16425 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' | |
16426 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
16427 fi | |
16428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16429 hardcode_libdir_separator_GCJ=: | |
16430 link_all_deplibs_GCJ=yes | |
16431 ;; | |
16432 | |
16433 netbsd* | knetbsd*-gnu) | |
16434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16435 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16436 else | |
16437 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16438 fi | |
16439 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16440 hardcode_direct_GCJ=yes | |
16441 hardcode_shlibpath_var_GCJ=no | |
16442 ;; | |
16443 | |
16444 newsos6) | |
16445 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16446 hardcode_direct_GCJ=yes | |
16447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16448 hardcode_libdir_separator_GCJ=: | |
16449 hardcode_shlibpath_var_GCJ=no | |
16450 ;; | |
16451 | |
16452 openbsd*) | |
16453 hardcode_direct_GCJ=yes | |
16454 hardcode_shlibpath_var_GCJ=no | |
16455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16456 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16458 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16459 else | |
16460 case $host_os in | |
16461 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16462 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16463 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16464 ;; | |
16465 *) | |
16466 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16468 ;; | |
16469 esac | |
16470 fi | |
16471 ;; | |
16472 | |
16473 os2*) | |
16474 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16475 hardcode_minus_L_GCJ=yes | |
16476 allow_undefined_flag_GCJ=unsupported | |
16477 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' | |
16478 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16479 ;; | |
16480 | |
16481 osf3*) | |
16482 if test "$GCC" = yes; then | |
16483 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
16484 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' | |
16485 else | |
16486 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
16487 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' | |
16488 fi | |
16489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16490 hardcode_libdir_separator_GCJ=: | |
16491 ;; | |
16492 | |
16493 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16494 if test "$GCC" = yes; then | |
16495 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
16496 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' | |
16497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
16498 else | |
16499 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
16500 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' | |
16501 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~ | |
16502 $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' | |
16503 | |
16504 # Both c and cxx compiler support -rpath directly | |
16505 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
16506 fi | |
16507 hardcode_libdir_separator_GCJ=: | |
16508 ;; | |
16509 | |
16510 sco3.2v5*) | |
16511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16512 hardcode_shlibpath_var_GCJ=no | |
16513 export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
16514 runpath_var=LD_RUN_PATH | |
16515 hardcode_runpath_var=yes | |
16516 ;; | |
16517 | |
16518 solaris*) | |
16519 no_undefined_flag_GCJ=' -z text' | |
16520 if test "$GCC" = yes; then | |
16521 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16522 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16523 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
16524 else | |
16525 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16526 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16528 fi | |
16529 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16530 hardcode_shlibpath_var_GCJ=no | |
16531 case $host_os in | |
16532 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16533 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
16534 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
16535 esac | |
16536 link_all_deplibs_GCJ=yes | |
16537 ;; | |
16538 | |
16539 sunos4*) | |
16540 if test "x$host_vendor" = xsequent; then | |
16541 # Use $CC to link under sequent, because it throws in some extra .o | |
16542 # files that make .init and .fini sections work. | |
16543 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
16544 else | |
16545 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
16546 fi | |
16547 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16548 hardcode_direct_GCJ=yes | |
16549 hardcode_minus_L_GCJ=yes | |
16550 hardcode_shlibpath_var_GCJ=no | |
16551 ;; | |
16552 | |
16553 sysv4) | |
16554 case $host_vendor in | |
16555 sni) | |
16556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16557 hardcode_direct_GCJ=yes # is this really true??? | |
16558 ;; | |
16559 siemens) | |
16560 ## LD is ld it makes a PLAMLIB | |
16561 ## CC just makes a GrossModule. | |
16562 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16563 reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
16564 hardcode_direct_GCJ=no | |
16565 ;; | |
16566 motorola) | |
16567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16568 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
16569 ;; | |
16570 esac | |
16571 runpath_var='LD_RUN_PATH' | |
16572 hardcode_shlibpath_var_GCJ=no | |
16573 ;; | |
16574 | |
16575 sysv4.3*) | |
16576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16577 hardcode_shlibpath_var_GCJ=no | |
16578 export_dynamic_flag_spec_GCJ='-Bexport' | |
16579 ;; | |
16580 | |
16581 sysv4*MP*) | |
16582 if test -d /usr/nec; then | |
16583 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16584 hardcode_shlibpath_var_GCJ=no | |
16585 runpath_var=LD_RUN_PATH | |
16586 hardcode_runpath_var=yes | |
16587 ld_shlibs_GCJ=yes | |
16588 fi | |
16589 ;; | |
16590 | |
16591 sysv4.2uw2*) | |
16592 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16593 hardcode_direct_GCJ=yes | |
16594 hardcode_minus_L_GCJ=no | |
16595 hardcode_shlibpath_var_GCJ=no | |
16596 hardcode_runpath_var=yes | |
16597 runpath_var=LD_RUN_PATH | |
16598 ;; | |
16599 | |
16600 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
16601 no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
16602 if test "$GCC" = yes; then | |
16603 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16604 else | |
16605 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16606 fi | |
16607 runpath_var='LD_RUN_PATH' | |
16608 hardcode_shlibpath_var_GCJ=no | |
16609 ;; | |
16610 | |
16611 sysv5*) | |
16612 no_undefined_flag_GCJ=' -z text' | |
16613 # $CC -shared without GNU ld will not create a library from C++ | |
16614 # object files and a static libstdc++, better avoid it by now | |
16615 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16616 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16618 hardcode_libdir_flag_spec_GCJ= | |
16619 hardcode_shlibpath_var_GCJ=no | |
16620 runpath_var='LD_RUN_PATH' | |
16621 ;; | |
16622 | |
16623 uts4*) | |
16624 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16625 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16626 hardcode_shlibpath_var_GCJ=no | |
16627 ;; | |
16628 | |
16629 *) | |
16630 ld_shlibs_GCJ=no | |
16631 ;; | |
16632 esac | |
16633 fi | |
16634 | |
16635 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
16636 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
16637 test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
16638 | |
16639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16640 if test "$GCC" = yes; then | |
16641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16642 fi | |
16643 | |
16644 # | |
16645 # Do we need to explicitly link libc? | |
16646 # | |
16647 case "x$archive_cmds_need_lc_GCJ" in | |
16648 x|xyes) | |
16649 # Assume -lc should be added | |
16650 archive_cmds_need_lc_GCJ=yes | |
16651 | |
16652 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
16653 case $archive_cmds_GCJ in | |
16654 *'~'*) | |
16655 # FIXME: we may have to deal with multi-command sequences. | |
16656 ;; | |
16657 '$CC '*) | |
16658 # Test whether the compiler implicitly links with -lc since on some | |
16659 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
16660 # to ld, don't add -lc before -lgcc. | |
16661 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
16662 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
16663 $rm conftest* | |
16664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16665 | |
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16667 (eval $ac_compile) 2>&5 | |
16668 ac_status=$? | |
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16670 (exit $ac_status); } 2>conftest.err; then | |
16671 soname=conftest | |
16672 lib=conftest | |
16673 libobjs=conftest.$ac_objext | |
16674 deplibs= | |
16675 wl=$lt_prog_compiler_wl_GCJ | |
16676 compiler_flags=-v | |
16677 linker_flags=-v | |
16678 verstring= | |
16679 output_objdir=. | |
16680 libname=conftest | |
16681 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
16682 allow_undefined_flag_GCJ= | |
16683 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
16684 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
16685 ac_status=$? | |
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16687 (exit $ac_status); } | |
16688 then | |
16689 archive_cmds_need_lc_GCJ=no | |
16690 else | |
16691 archive_cmds_need_lc_GCJ=yes | |
16692 fi | |
16693 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
16694 else | |
16695 cat conftest.err 1>&5 | |
16696 fi | |
16697 $rm conftest* | |
16698 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
16699 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
16700 ;; | |
16701 esac | |
16702 fi | |
16703 ;; | |
16704 esac | |
16705 | |
16706 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
16707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
16708 library_names_spec= | |
16709 libname_spec='lib$name' | |
16710 soname_spec= | |
16711 shrext=".so" | |
16712 postinstall_cmds= | |
16713 postuninstall_cmds= | |
16714 finish_cmds= | |
16715 finish_eval= | |
16716 shlibpath_var= | |
16717 shlibpath_overrides_runpath=unknown | |
16718 version_type=none | |
16719 dynamic_linker="$host_os ld.so" | |
16720 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
16721 if test "$GCC" = yes; then | |
16722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
16723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
16724 # if the path contains ";" then we assume it to be the separator | |
16725 # otherwise default to the standard path separator (i.e. ":") - it is | |
16726 # assumed that no part of a normal pathname contains ";" but that should | |
16727 # okay in the real world where ";" in dirpaths is itself problematic. | |
16728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
16729 else | |
16730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
16731 fi | |
16732 else | |
16733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
16734 fi | |
16735 need_lib_prefix=unknown | |
16736 hardcode_into_libs=no | |
16737 | |
16738 # when you set need_version to no, make sure it does not cause -set_version | |
16739 # flags to be left without arguments | |
16740 need_version=unknown | |
16741 | |
16742 case $host_os in | |
16743 aix3*) | |
16744 version_type=linux | |
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
16746 shlibpath_var=LIBPATH | |
16747 | |
16748 # AIX 3 has no versioning support, so we append a major version to the name. | |
16749 soname_spec='${libname}${release}${shared_ext}$major' | |
16750 ;; | |
16751 | |
16752 aix4* | aix5*) | |
16753 version_type=linux | |
16754 need_lib_prefix=no | |
16755 need_version=no | |
16756 hardcode_into_libs=yes | |
16757 if test "$host_cpu" = ia64; then | |
16758 # AIX 5 supports IA64 | |
16759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
16760 shlibpath_var=LD_LIBRARY_PATH | |
16761 else | |
16762 # With GCC up to 2.95.x, collect2 would create an import file | |
16763 # for dependence libraries. The import file would start with | |
16764 # the line `#! .'. This would cause the generated library to | |
16765 # depend on `.', always an invalid library. This was fixed in | |
16766 # development snapshots of GCC prior to 3.0. | |
16767 case $host_os in | |
16768 aix4 | aix4.[01] | aix4.[01].*) | |
16769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
16770 echo ' yes ' | |
16771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
16772 : | |
16773 else | |
16774 can_build_shared=no | |
16775 fi | |
16776 ;; | |
16777 esac | |
16778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
16779 # soname into executable. Probably we can add versioning support to | |
16780 # collect2, so additional links can be useful in future. | |
16781 if test "$aix_use_runtimelinking" = yes; then | |
16782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
16783 # instead of lib<name>.a to let people know that these are not | |
16784 # typical AIX shared libraries. | |
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16786 else | |
16787 # We preserve .a as extension for shared libraries through AIX4.2 | |
16788 # and later when we are not doing run time linking. | |
16789 library_names_spec='${libname}${release}.a $libname.a' | |
16790 soname_spec='${libname}${release}${shared_ext}$major' | |
16791 fi | |
16792 shlibpath_var=LIBPATH | |
16793 fi | |
16794 ;; | |
16795 | |
16796 amigaos*) | |
16797 library_names_spec='$libname.ixlibrary $libname.a' | |
16798 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
16799 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' | |
16800 ;; | |
16801 | |
16802 beos*) | |
16803 library_names_spec='${libname}${shared_ext}' | |
16804 dynamic_linker="$host_os ld.so" | |
16805 shlibpath_var=LIBRARY_PATH | |
16806 ;; | |
16807 | |
16808 bsdi4*) | |
16809 version_type=linux | |
16810 need_version=no | |
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16812 soname_spec='${libname}${release}${shared_ext}$major' | |
16813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
16814 shlibpath_var=LD_LIBRARY_PATH | |
16815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
16816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
16817 # the default ld.so.conf also contains /usr/contrib/lib and | |
16818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
16819 # libtool to hard-code these into programs | |
16820 ;; | |
16821 | |
16822 cygwin* | mingw* | pw32*) | |
16823 version_type=windows | |
16824 shrext=".dll" | |
16825 need_version=no | |
16826 need_lib_prefix=no | |
16827 | |
16828 case $GCC,$host_os in | |
16829 yes,cygwin* | yes,mingw* | yes,pw32*) | |
16830 library_names_spec='$libname.dll.a' | |
16831 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
16832 postinstall_cmds='base_file=`basename \${file}`~ | |
16833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
16834 dldir=$destdir/`dirname \$dlpath`~ | |
16835 test -d \$dldir || mkdir -p \$dldir~ | |
16836 $install_prog $dir/$dlname \$dldir/$dlname' | |
16837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
16838 dlpath=$dir/\$dldll~ | |
16839 $rm \$dlpath' | |
16840 shlibpath_overrides_runpath=yes | |
16841 | |
16842 case $host_os in | |
16843 cygwin*) | |
16844 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
16845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16846 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
16847 ;; | |
16848 mingw*) | |
16849 # MinGW DLLs use traditional 'lib' prefix | |
16850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
16852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
16853 # It is most probably a Windows format PATH printed by | |
16854 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
16855 # path with ; separators, and with drive letters. We can handle the | |
16856 # drive letters (cygwin fileutils understands them), so leave them, | |
16857 # especially as we might pass files found there to a mingw objdump, | |
16858 # which wouldn't understand a cygwinified path. Ahh. | |
16859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
16860 else | |
16861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
16862 fi | |
16863 ;; | |
16864 pw32*) | |
16865 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
16866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | |
16867 ;; | |
16868 esac | |
16869 ;; | |
16870 | |
16871 *) | |
16872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
16873 ;; | |
16874 esac | |
16875 dynamic_linker='Win32 ld.exe' | |
16876 # FIXME: first we should search . and the directory the executable is in | |
16877 shlibpath_var=PATH | |
16878 ;; | |
16879 | |
16880 darwin* | rhapsody*) | |
16881 dynamic_linker="$host_os dyld" | |
16882 version_type=darwin | |
16883 need_lib_prefix=no | |
16884 need_version=no | |
16885 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
16886 soname_spec='${libname}${release}${major}$shared_ext' | |
16887 shlibpath_overrides_runpath=yes | |
16888 shlibpath_var=DYLD_LIBRARY_PATH | |
16889 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
16890 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
16891 if test "$GCC" = yes; then | |
16892 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"` | |
16893 else | |
16894 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
16895 fi | |
16896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
16897 ;; | |
16898 | |
16899 dgux*) | |
16900 version_type=linux | |
16901 need_lib_prefix=no | |
16902 need_version=no | |
16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
16904 soname_spec='${libname}${release}${shared_ext}$major' | |
16905 shlibpath_var=LD_LIBRARY_PATH | |
16906 ;; | |
16907 | |
16908 freebsd1*) | |
16909 dynamic_linker=no | |
16910 ;; | |
16911 | |
16912 kfreebsd*-gnu) | |
16913 version_type=linux | |
16914 need_lib_prefix=no | |
16915 need_version=no | |
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
16917 soname_spec='${libname}${release}${shared_ext}$major' | |
16918 shlibpath_var=LD_LIBRARY_PATH | |
16919 shlibpath_overrides_runpath=no | |
16920 hardcode_into_libs=yes | |
16921 dynamic_linker='GNU ld.so' | |
16922 ;; | |
16923 | |
16924 freebsd*) | |
16925 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
16926 version_type=freebsd-$objformat | |
16927 case $version_type in | |
16928 freebsd-elf*) | |
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16930 need_version=no | |
16931 need_lib_prefix=no | |
16932 ;; | |
16933 freebsd-*) | |
16934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
16935 need_version=yes | |
16936 ;; | |
16937 esac | |
16938 shlibpath_var=LD_LIBRARY_PATH | |
16939 case $host_os in | |
16940 freebsd2*) | |
16941 shlibpath_overrides_runpath=yes | |
16942 ;; | |
16943 freebsd3.01* | freebsdelf3.01*) | |
16944 shlibpath_overrides_runpath=yes | |
16945 hardcode_into_libs=yes | |
16946 ;; | |
16947 *) # from 3.2 on | |
16948 shlibpath_overrides_runpath=no | |
16949 hardcode_into_libs=yes | |
16950 ;; | |
16951 esac | |
16952 ;; | |
16953 | |
16954 gnu*) | |
16955 version_type=linux | |
16956 need_lib_prefix=no | |
16957 need_version=no | |
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
16959 soname_spec='${libname}${release}${shared_ext}$major' | |
16960 shlibpath_var=LD_LIBRARY_PATH | |
16961 hardcode_into_libs=yes | |
16962 ;; | |
16963 | |
16964 hpux9* | hpux10* | hpux11*) | |
16965 # Give a soname corresponding to the major version so that dld.sl refuses to | |
16966 # link against other versions. | |
16967 version_type=sunos | |
16968 need_lib_prefix=no | |
16969 need_version=no | |
16970 case "$host_cpu" in | |
16971 ia64*) | |
16972 shrext='.so' | |
16973 hardcode_into_libs=yes | |
16974 dynamic_linker="$host_os dld.so" | |
16975 shlibpath_var=LD_LIBRARY_PATH | |
16976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
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 if test "X$HPUX_IA64_MODE" = X32; then | |
16980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
16981 else | |
16982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
16983 fi | |
16984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16985 ;; | |
16986 hppa*64*) | |
16987 shrext='.sl' | |
16988 hardcode_into_libs=yes | |
16989 dynamic_linker="$host_os dld.sl" | |
16990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
16991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16993 soname_spec='${libname}${release}${shared_ext}$major' | |
16994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
16995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16996 ;; | |
16997 *) | |
16998 shrext='.sl' | |
16999 dynamic_linker="$host_os dld.sl" | |
17000 shlibpath_var=SHLIB_PATH | |
17001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17003 soname_spec='${libname}${release}${shared_ext}$major' | |
17004 ;; | |
17005 esac | |
17006 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17007 postinstall_cmds='chmod 555 $lib' | |
17008 ;; | |
17009 | |
17010 irix5* | irix6* | nonstopux*) | |
17011 case $host_os in | |
17012 nonstopux*) version_type=nonstopux ;; | |
17013 *) | |
17014 if test "$lt_cv_prog_gnu_ld" = yes; then | |
17015 version_type=linux | |
17016 else | |
17017 version_type=irix | |
17018 fi ;; | |
17019 esac | |
17020 need_lib_prefix=no | |
17021 need_version=no | |
17022 soname_spec='${libname}${release}${shared_ext}$major' | |
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17024 case $host_os in | |
17025 irix5* | nonstopux*) | |
17026 libsuff= shlibsuff= | |
17027 ;; | |
17028 *) | |
17029 case $LD in # libtool.m4 will add one of these switches to LD | |
17030 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17031 libsuff= shlibsuff= libmagic=32-bit;; | |
17032 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17033 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17034 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17035 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17036 *) libsuff= shlibsuff= libmagic=never-match;; | |
17037 esac | |
17038 ;; | |
17039 esac | |
17040 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17041 shlibpath_overrides_runpath=no | |
17042 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17043 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17044 hardcode_into_libs=yes | |
17045 ;; | |
17046 | |
17047 # No shared lib support for Linux oldld, aout, or coff. | |
17048 linux*oldld* | linux*aout* | linux*coff*) | |
17049 dynamic_linker=no | |
17050 ;; | |
17051 | |
17052 # This must be Linux ELF. | |
17053 linux*) | |
17054 version_type=linux | |
17055 need_lib_prefix=no | |
17056 need_version=no | |
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17058 soname_spec='${libname}${release}${shared_ext}$major' | |
17059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17060 shlibpath_var=LD_LIBRARY_PATH | |
17061 shlibpath_overrides_runpath=no | |
17062 # This implies no fast_install, which is unacceptable. | |
17063 # Some rework will be needed to allow for fast_install | |
17064 # before this can be enabled. | |
17065 hardcode_into_libs=yes | |
17066 | |
17067 # Append ld.so.conf contents to the search path | |
17068 if test -f /etc/ld.so.conf; then | |
17069 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` | |
17070 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" | |
17071 fi | |
17072 | |
17073 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17074 # powerpc, because MkLinux only supported shared libraries with the | |
17075 # GNU dynamic linker. Since this was broken with cross compilers, | |
17076 # most powerpc-linux boxes support dynamic linking these days and | |
17077 # people can always --disable-shared, the test was removed, and we | |
17078 # assume the GNU/Linux dynamic linker is in use. | |
17079 dynamic_linker='GNU/Linux ld.so' | |
17080 ;; | |
17081 | |
17082 knetbsd*-gnu) | |
17083 version_type=linux | |
17084 need_lib_prefix=no | |
17085 need_version=no | |
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17087 soname_spec='${libname}${release}${shared_ext}$major' | |
17088 shlibpath_var=LD_LIBRARY_PATH | |
17089 shlibpath_overrides_runpath=no | |
17090 hardcode_into_libs=yes | |
17091 dynamic_linker='GNU ld.so' | |
17092 ;; | |
17093 | |
17094 netbsd*) | |
17095 version_type=sunos | |
17096 need_lib_prefix=no | |
17097 need_version=no | |
17098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17101 dynamic_linker='NetBSD (a.out) ld.so' | |
17102 else | |
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17104 soname_spec='${libname}${release}${shared_ext}$major' | |
17105 dynamic_linker='NetBSD ld.elf_so' | |
17106 fi | |
17107 shlibpath_var=LD_LIBRARY_PATH | |
17108 shlibpath_overrides_runpath=yes | |
17109 hardcode_into_libs=yes | |
17110 ;; | |
17111 | |
17112 newsos6) | |
17113 version_type=linux | |
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17115 shlibpath_var=LD_LIBRARY_PATH | |
17116 shlibpath_overrides_runpath=yes | |
17117 ;; | |
17118 | |
17119 nto-qnx*) | |
17120 version_type=linux | |
17121 need_lib_prefix=no | |
17122 need_version=no | |
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17124 soname_spec='${libname}${release}${shared_ext}$major' | |
17125 shlibpath_var=LD_LIBRARY_PATH | |
17126 shlibpath_overrides_runpath=yes | |
17127 ;; | |
17128 | |
17129 openbsd*) | |
17130 version_type=sunos | |
17131 need_lib_prefix=no | |
17132 need_version=yes | |
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17135 shlibpath_var=LD_LIBRARY_PATH | |
17136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17137 case $host_os in | |
17138 openbsd2.[89] | openbsd2.[89].*) | |
17139 shlibpath_overrides_runpath=no | |
17140 ;; | |
17141 *) | |
17142 shlibpath_overrides_runpath=yes | |
17143 ;; | |
17144 esac | |
17145 else | |
17146 shlibpath_overrides_runpath=yes | |
17147 fi | |
17148 ;; | |
17149 | |
17150 os2*) | |
17151 libname_spec='$name' | |
17152 shrext=".dll" | |
17153 need_lib_prefix=no | |
17154 library_names_spec='$libname${shared_ext} $libname.a' | |
17155 dynamic_linker='OS/2 ld.exe' | |
17156 shlibpath_var=LIBPATH | |
17157 ;; | |
17158 | |
17159 osf3* | osf4* | osf5*) | |
17160 version_type=osf | |
17161 need_lib_prefix=no | |
17162 need_version=no | |
17163 soname_spec='${libname}${release}${shared_ext}$major' | |
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17165 shlibpath_var=LD_LIBRARY_PATH | |
17166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17168 ;; | |
17169 | |
17170 sco3.2v5*) | |
17171 version_type=osf | |
17172 soname_spec='${libname}${release}${shared_ext}$major' | |
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17174 shlibpath_var=LD_LIBRARY_PATH | |
17175 ;; | |
17176 | |
17177 solaris*) | |
17178 version_type=linux | |
17179 need_lib_prefix=no | |
17180 need_version=no | |
17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17182 soname_spec='${libname}${release}${shared_ext}$major' | |
17183 shlibpath_var=LD_LIBRARY_PATH | |
17184 shlibpath_overrides_runpath=yes | |
17185 hardcode_into_libs=yes | |
17186 # ldd complains unless libraries are executable | |
17187 postinstall_cmds='chmod +x $lib' | |
17188 ;; | |
17189 | |
17190 sunos4*) | |
17191 version_type=sunos | |
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17194 shlibpath_var=LD_LIBRARY_PATH | |
17195 shlibpath_overrides_runpath=yes | |
17196 if test "$with_gnu_ld" = yes; then | |
17197 need_lib_prefix=no | |
17198 fi | |
17199 need_version=yes | |
17200 ;; | |
17201 | |
17202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
17203 version_type=linux | |
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17205 soname_spec='${libname}${release}${shared_ext}$major' | |
17206 shlibpath_var=LD_LIBRARY_PATH | |
17207 case $host_vendor in | |
17208 sni) | |
17209 shlibpath_overrides_runpath=no | |
17210 need_lib_prefix=no | |
17211 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17212 runpath_var=LD_RUN_PATH | |
17213 ;; | |
17214 siemens) | |
17215 need_lib_prefix=no | |
17216 ;; | |
17217 motorola) | |
17218 need_lib_prefix=no | |
17219 need_version=no | |
17220 shlibpath_overrides_runpath=no | |
17221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17222 ;; | |
17223 esac | |
17224 ;; | |
17225 | |
17226 sysv4*MP*) | |
17227 if test -d /usr/nec ;then | |
17228 version_type=linux | |
17229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17230 soname_spec='$libname${shared_ext}.$major' | |
17231 shlibpath_var=LD_LIBRARY_PATH | |
17232 fi | |
17233 ;; | |
17234 | |
17235 uts4*) | |
17236 version_type=linux | |
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17238 soname_spec='${libname}${release}${shared_ext}$major' | |
17239 shlibpath_var=LD_LIBRARY_PATH | |
17240 ;; | |
17241 | |
17242 *) | |
17243 dynamic_linker=no | |
17244 ;; | |
17245 esac | |
17246 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17247 echo "${ECHO_T}$dynamic_linker" >&6 | |
17248 test "$dynamic_linker" = no && can_build_shared=no | |
17249 | |
17250 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17251 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
17252 hardcode_action_GCJ= | |
17253 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
17254 test -n "$runpath_var GCJ" || \ | |
17255 test "X$hardcode_automatic_GCJ"="Xyes" ; then | |
17256 | |
17257 # We can hardcode non-existant directories. | |
17258 if test "$hardcode_direct_GCJ" != no && | |
17259 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17260 # have to relink, otherwise we might link with an installed library | |
17261 # when we should be linking with a yet-to-be-installed one | |
17262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
17263 test "$hardcode_minus_L_GCJ" != no; then | |
17264 # Linking always hardcodes the temporary library directory. | |
17265 hardcode_action_GCJ=relink | |
17266 else | |
17267 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17268 hardcode_action_GCJ=immediate | |
17269 fi | |
17270 else | |
17271 # We cannot hardcode anything, or else we can only hardcode existing | |
17272 # directories. | |
17273 hardcode_action_GCJ=unsupported | |
17274 fi | |
17275 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
17276 echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
17277 | |
17278 if test "$hardcode_action_GCJ" = relink; then | |
17279 # Fast installation is not supported | |
17280 enable_fast_install=no | |
17281 elif test "$shlibpath_overrides_runpath" = yes || | |
17282 test "$enable_shared" = no; then | |
17283 # Fast installation is not necessary | |
17284 enable_fast_install=needless | |
17285 fi | |
17286 | |
17287 striplib= | |
17288 old_striplib= | |
17289 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
17290 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
17291 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
17292 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
17293 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
17294 echo "$as_me:$LINENO: result: yes" >&5 | |
17295 echo "${ECHO_T}yes" >&6 | |
17296 else | |
17297 # FIXME - insert some real tests, host_os isn't really good enough | |
17298 case $host_os in | |
17299 darwin*) | |
17300 if test -n "$STRIP" ; then | |
17301 striplib="$STRIP -x" | |
17302 echo "$as_me:$LINENO: result: yes" >&5 | |
17303 echo "${ECHO_T}yes" >&6 | |
17304 else | |
17305 echo "$as_me:$LINENO: result: no" >&5 | |
17306 echo "${ECHO_T}no" >&6 | |
17307 fi | |
17308 ;; | |
17309 *) | |
17310 echo "$as_me:$LINENO: result: no" >&5 | |
17311 echo "${ECHO_T}no" >&6 | |
17312 ;; | |
17313 esac | |
17314 fi | |
17315 | |
17316 if test "x$enable_dlopen" != xyes; then | |
17317 enable_dlopen=unknown | |
17318 enable_dlopen_self=unknown | |
17319 enable_dlopen_self_static=unknown | |
17320 else | |
17321 lt_cv_dlopen=no | |
17322 lt_cv_dlopen_libs= | |
17323 | |
17324 case $host_os in | |
17325 beos*) | |
17326 lt_cv_dlopen="load_add_on" | |
17327 lt_cv_dlopen_libs= | |
17328 lt_cv_dlopen_self=yes | |
17329 ;; | |
17330 | |
17331 mingw* | pw32*) | |
17332 lt_cv_dlopen="LoadLibrary" | |
17333 lt_cv_dlopen_libs= | |
17334 ;; | |
17335 | |
17336 cygwin*) | |
17337 lt_cv_dlopen="dlopen" | |
17338 lt_cv_dlopen_libs= | |
17339 ;; | |
17340 | |
17341 darwin*) | |
17342 # if libdl is installed we need to link against it | |
17343 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
17344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
17345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
17346 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17347 else | |
17348 ac_check_lib_save_LIBS=$LIBS | |
17349 LIBS="-ldl $LIBS" | |
17350 cat >conftest.$ac_ext <<_ACEOF | |
17351 /* confdefs.h. */ | |
17352 _ACEOF | |
17353 cat confdefs.h >>conftest.$ac_ext | |
17354 cat >>conftest.$ac_ext <<_ACEOF | |
17355 /* end confdefs.h. */ | |
17356 | |
17357 /* Override any gcc2 internal prototype to avoid an error. */ | |
17358 #ifdef __cplusplus | |
17359 extern "C" | |
17360 #endif | |
17361 /* We use char because int might match the return type of a gcc2 | |
17362 builtin and then its argument prototype would still apply. */ | |
17363 char dlopen (); | |
17364 int | |
17365 main () | |
17366 { | |
17367 dlopen (); | |
17368 ; | |
17369 return 0; | |
17370 } | |
17371 _ACEOF | |
17372 rm -f conftest.$ac_objext conftest$ac_exeext | |
17373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17374 (eval $ac_link) 2>conftest.er1 | |
17375 ac_status=$? | |
17376 grep -v '^ *+' conftest.er1 >conftest.err | |
17377 rm -f conftest.er1 | |
17378 cat conftest.err >&5 | |
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17380 (exit $ac_status); } && | |
17381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17383 (eval $ac_try) 2>&5 | |
17384 ac_status=$? | |
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17386 (exit $ac_status); }; } && | |
17387 { ac_try='test -s conftest$ac_exeext' | |
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17389 (eval $ac_try) 2>&5 | |
17390 ac_status=$? | |
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17392 (exit $ac_status); }; }; then | |
17393 ac_cv_lib_dl_dlopen=yes | |
17394 else | |
17395 echo "$as_me: failed program was:" >&5 | |
17396 sed 's/^/| /' conftest.$ac_ext >&5 | |
17397 | |
17398 ac_cv_lib_dl_dlopen=no | |
17399 fi | |
17400 rm -f conftest.err conftest.$ac_objext \ | |
17401 conftest$ac_exeext conftest.$ac_ext | |
17402 LIBS=$ac_check_lib_save_LIBS | |
17403 fi | |
17404 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
17405 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
17406 if test $ac_cv_lib_dl_dlopen = yes; then | |
17407 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
17408 else | |
17409 | |
17410 lt_cv_dlopen="dyld" | |
17411 lt_cv_dlopen_libs= | |
17412 lt_cv_dlopen_self=yes | |
17413 | |
17414 fi | |
17415 | |
17416 ;; | |
17417 | |
17418 *) | |
17419 echo "$as_me:$LINENO: checking for shl_load" >&5 | |
17420 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
17421 if test "${ac_cv_func_shl_load+set}" = set; then | |
17422 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17423 else | |
17424 cat >conftest.$ac_ext <<_ACEOF | |
17425 /* confdefs.h. */ | |
17426 _ACEOF | |
17427 cat confdefs.h >>conftest.$ac_ext | |
17428 cat >>conftest.$ac_ext <<_ACEOF | |
17429 /* end confdefs.h. */ | |
17430 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17432 #define shl_load innocuous_shl_load | |
17433 | |
17434 /* System header to define __stub macros and hopefully few prototypes, | |
17435 which can conflict with char shl_load (); below. | |
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17437 <limits.h> exists even on freestanding compilers. */ | |
17438 | |
17439 #ifdef __STDC__ | |
17440 # include <limits.h> | |
17441 #else | |
17442 # include <assert.h> | |
17443 #endif | |
17444 | |
17445 #undef shl_load | |
17446 | |
17447 /* Override any gcc2 internal prototype to avoid an error. */ | |
17448 #ifdef __cplusplus | |
17449 extern "C" | |
17450 { | |
17451 #endif | |
17452 /* We use char because int might match the return type of a gcc2 | |
17453 builtin and then its argument prototype would still apply. */ | |
17454 char shl_load (); | |
17455 /* The GNU C library defines this for functions which it implements | |
17456 to always fail with ENOSYS. Some functions are actually named | |
17457 something starting with __ and the normal name is an alias. */ | |
17458 #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
17459 choke me | |
17460 #else | |
17461 char (*f) () = shl_load; | |
17462 #endif | |
17463 #ifdef __cplusplus | |
17464 } | |
17465 #endif | |
17466 | |
17467 int | |
17468 main () | |
17469 { | |
17470 return f != shl_load; | |
17471 ; | |
17472 return 0; | |
17473 } | |
17474 _ACEOF | |
17475 rm -f conftest.$ac_objext conftest$ac_exeext | |
17476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17477 (eval $ac_link) 2>conftest.er1 | |
17478 ac_status=$? | |
17479 grep -v '^ *+' conftest.er1 >conftest.err | |
17480 rm -f conftest.er1 | |
17481 cat conftest.err >&5 | |
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17483 (exit $ac_status); } && | |
17484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17486 (eval $ac_try) 2>&5 | |
17487 ac_status=$? | |
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17489 (exit $ac_status); }; } && | |
17490 { ac_try='test -s conftest$ac_exeext' | |
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17492 (eval $ac_try) 2>&5 | |
17493 ac_status=$? | |
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17495 (exit $ac_status); }; }; then | |
17496 ac_cv_func_shl_load=yes | |
17497 else | |
17498 echo "$as_me: failed program was:" >&5 | |
17499 sed 's/^/| /' conftest.$ac_ext >&5 | |
17500 | |
17501 ac_cv_func_shl_load=no | |
17502 fi | |
17503 rm -f conftest.err conftest.$ac_objext \ | |
17504 conftest$ac_exeext conftest.$ac_ext | |
17505 fi | |
17506 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
17507 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
17508 if test $ac_cv_func_shl_load = yes; then | |
17509 lt_cv_dlopen="shl_load" | |
17510 else | |
17511 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
17512 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
17513 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
17514 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17515 else | |
17516 ac_check_lib_save_LIBS=$LIBS | |
17517 LIBS="-ldld $LIBS" | |
17518 cat >conftest.$ac_ext <<_ACEOF | |
17519 /* confdefs.h. */ | |
17520 _ACEOF | |
17521 cat confdefs.h >>conftest.$ac_ext | |
17522 cat >>conftest.$ac_ext <<_ACEOF | |
17523 /* end confdefs.h. */ | |
17524 | |
17525 /* Override any gcc2 internal prototype to avoid an error. */ | |
17526 #ifdef __cplusplus | |
17527 extern "C" | |
17528 #endif | |
17529 /* We use char because int might match the return type of a gcc2 | |
17530 builtin and then its argument prototype would still apply. */ | |
17531 char shl_load (); | |
17532 int | |
17533 main () | |
17534 { | |
17535 shl_load (); | |
17536 ; | |
17537 return 0; | |
17538 } | |
17539 _ACEOF | |
17540 rm -f conftest.$ac_objext conftest$ac_exeext | |
17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17542 (eval $ac_link) 2>conftest.er1 | |
17543 ac_status=$? | |
17544 grep -v '^ *+' conftest.er1 >conftest.err | |
17545 rm -f conftest.er1 | |
17546 cat conftest.err >&5 | |
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17548 (exit $ac_status); } && | |
17549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17551 (eval $ac_try) 2>&5 | |
17552 ac_status=$? | |
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17554 (exit $ac_status); }; } && | |
17555 { ac_try='test -s conftest$ac_exeext' | |
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17557 (eval $ac_try) 2>&5 | |
17558 ac_status=$? | |
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17560 (exit $ac_status); }; }; then | |
17561 ac_cv_lib_dld_shl_load=yes | |
17562 else | |
17563 echo "$as_me: failed program was:" >&5 | |
17564 sed 's/^/| /' conftest.$ac_ext >&5 | |
17565 | |
17566 ac_cv_lib_dld_shl_load=no | |
17567 fi | |
17568 rm -f conftest.err conftest.$ac_objext \ | |
17569 conftest$ac_exeext conftest.$ac_ext | |
17570 LIBS=$ac_check_lib_save_LIBS | |
17571 fi | |
17572 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
17573 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
17574 if test $ac_cv_lib_dld_shl_load = yes; then | |
17575 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
17576 else | |
17577 echo "$as_me:$LINENO: checking for dlopen" >&5 | |
17578 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
17579 if test "${ac_cv_func_dlopen+set}" = set; then | |
17580 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17581 else | |
17582 cat >conftest.$ac_ext <<_ACEOF | |
17583 /* confdefs.h. */ | |
17584 _ACEOF | |
17585 cat confdefs.h >>conftest.$ac_ext | |
17586 cat >>conftest.$ac_ext <<_ACEOF | |
17587 /* end confdefs.h. */ | |
17588 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
17589 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17590 #define dlopen innocuous_dlopen | |
17591 | |
17592 /* System header to define __stub macros and hopefully few prototypes, | |
17593 which can conflict with char dlopen (); below. | |
17594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17595 <limits.h> exists even on freestanding compilers. */ | |
17596 | |
17597 #ifdef __STDC__ | |
17598 # include <limits.h> | |
17599 #else | |
17600 # include <assert.h> | |
17601 #endif | |
17602 | |
17603 #undef dlopen | |
17604 | |
17605 /* Override any gcc2 internal prototype to avoid an error. */ | |
17606 #ifdef __cplusplus | |
17607 extern "C" | |
17608 { | |
17609 #endif | |
17610 /* We use char because int might match the return type of a gcc2 | |
17611 builtin and then its argument prototype would still apply. */ | |
17612 char dlopen (); | |
17613 /* The GNU C library defines this for functions which it implements | |
17614 to always fail with ENOSYS. Some functions are actually named | |
17615 something starting with __ and the normal name is an alias. */ | |
17616 #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
17617 choke me | |
17618 #else | |
17619 char (*f) () = dlopen; | |
17620 #endif | |
17621 #ifdef __cplusplus | |
17622 } | |
17623 #endif | |
17624 | |
17625 int | |
17626 main () | |
17627 { | |
17628 return f != dlopen; | |
17629 ; | |
17630 return 0; | |
17631 } | |
17632 _ACEOF | |
17633 rm -f conftest.$ac_objext conftest$ac_exeext | |
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17635 (eval $ac_link) 2>conftest.er1 | |
17636 ac_status=$? | |
17637 grep -v '^ *+' conftest.er1 >conftest.err | |
17638 rm -f conftest.er1 | |
17639 cat conftest.err >&5 | |
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17641 (exit $ac_status); } && | |
17642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17644 (eval $ac_try) 2>&5 | |
17645 ac_status=$? | |
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17647 (exit $ac_status); }; } && | |
17648 { ac_try='test -s conftest$ac_exeext' | |
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17650 (eval $ac_try) 2>&5 | |
17651 ac_status=$? | |
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17653 (exit $ac_status); }; }; then | |
17654 ac_cv_func_dlopen=yes | |
17655 else | |
17656 echo "$as_me: failed program was:" >&5 | |
17657 sed 's/^/| /' conftest.$ac_ext >&5 | |
17658 | |
17659 ac_cv_func_dlopen=no | |
17660 fi | |
17661 rm -f conftest.err conftest.$ac_objext \ | |
17662 conftest$ac_exeext conftest.$ac_ext | |
17663 fi | |
17664 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
17665 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
17666 if test $ac_cv_func_dlopen = yes; then | |
17667 lt_cv_dlopen="dlopen" | |
17668 else | |
17669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
17670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
17671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
17672 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17673 else | |
17674 ac_check_lib_save_LIBS=$LIBS | |
17675 LIBS="-ldl $LIBS" | |
17676 cat >conftest.$ac_ext <<_ACEOF | |
17677 /* confdefs.h. */ | |
17678 _ACEOF | |
17679 cat confdefs.h >>conftest.$ac_ext | |
17680 cat >>conftest.$ac_ext <<_ACEOF | |
17681 /* end confdefs.h. */ | |
17682 | |
17683 /* Override any gcc2 internal prototype to avoid an error. */ | |
17684 #ifdef __cplusplus | |
17685 extern "C" | |
17686 #endif | |
17687 /* We use char because int might match the return type of a gcc2 | |
17688 builtin and then its argument prototype would still apply. */ | |
17689 char dlopen (); | |
17690 int | |
17691 main () | |
17692 { | |
17693 dlopen (); | |
17694 ; | |
17695 return 0; | |
17696 } | |
17697 _ACEOF | |
17698 rm -f conftest.$ac_objext conftest$ac_exeext | |
17699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17700 (eval $ac_link) 2>conftest.er1 | |
17701 ac_status=$? | |
17702 grep -v '^ *+' conftest.er1 >conftest.err | |
17703 rm -f conftest.er1 | |
17704 cat conftest.err >&5 | |
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17706 (exit $ac_status); } && | |
17707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17709 (eval $ac_try) 2>&5 | |
17710 ac_status=$? | |
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17712 (exit $ac_status); }; } && | |
17713 { ac_try='test -s conftest$ac_exeext' | |
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17715 (eval $ac_try) 2>&5 | |
17716 ac_status=$? | |
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17718 (exit $ac_status); }; }; then | |
17719 ac_cv_lib_dl_dlopen=yes | |
17720 else | |
17721 echo "$as_me: failed program was:" >&5 | |
17722 sed 's/^/| /' conftest.$ac_ext >&5 | |
17723 | |
17724 ac_cv_lib_dl_dlopen=no | |
17725 fi | |
17726 rm -f conftest.err conftest.$ac_objext \ | |
17727 conftest$ac_exeext conftest.$ac_ext | |
17728 LIBS=$ac_check_lib_save_LIBS | |
17729 fi | |
17730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
17731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
17732 if test $ac_cv_lib_dl_dlopen = yes; then | |
17733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
17734 else | |
17735 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
17736 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
17737 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
17738 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17739 else | |
17740 ac_check_lib_save_LIBS=$LIBS | |
17741 LIBS="-lsvld $LIBS" | |
17742 cat >conftest.$ac_ext <<_ACEOF | |
17743 /* confdefs.h. */ | |
17744 _ACEOF | |
17745 cat confdefs.h >>conftest.$ac_ext | |
17746 cat >>conftest.$ac_ext <<_ACEOF | |
17747 /* end confdefs.h. */ | |
17748 | |
17749 /* Override any gcc2 internal prototype to avoid an error. */ | |
17750 #ifdef __cplusplus | |
17751 extern "C" | |
17752 #endif | |
17753 /* We use char because int might match the return type of a gcc2 | |
17754 builtin and then its argument prototype would still apply. */ | |
17755 char dlopen (); | |
17756 int | |
17757 main () | |
17758 { | |
17759 dlopen (); | |
17760 ; | |
17761 return 0; | |
17762 } | |
17763 _ACEOF | |
17764 rm -f conftest.$ac_objext conftest$ac_exeext | |
17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17766 (eval $ac_link) 2>conftest.er1 | |
17767 ac_status=$? | |
17768 grep -v '^ *+' conftest.er1 >conftest.err | |
17769 rm -f conftest.er1 | |
17770 cat conftest.err >&5 | |
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17772 (exit $ac_status); } && | |
17773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17775 (eval $ac_try) 2>&5 | |
17776 ac_status=$? | |
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17778 (exit $ac_status); }; } && | |
17779 { ac_try='test -s conftest$ac_exeext' | |
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17781 (eval $ac_try) 2>&5 | |
17782 ac_status=$? | |
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17784 (exit $ac_status); }; }; then | |
17785 ac_cv_lib_svld_dlopen=yes | |
17786 else | |
17787 echo "$as_me: failed program was:" >&5 | |
17788 sed 's/^/| /' conftest.$ac_ext >&5 | |
17789 | |
17790 ac_cv_lib_svld_dlopen=no | |
17791 fi | |
17792 rm -f conftest.err conftest.$ac_objext \ | |
17793 conftest$ac_exeext conftest.$ac_ext | |
17794 LIBS=$ac_check_lib_save_LIBS | |
17795 fi | |
17796 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
17797 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
17798 if test $ac_cv_lib_svld_dlopen = yes; then | |
17799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
17800 else | |
17801 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
17802 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
17803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
17804 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17805 else | |
17806 ac_check_lib_save_LIBS=$LIBS | |
17807 LIBS="-ldld $LIBS" | |
17808 cat >conftest.$ac_ext <<_ACEOF | |
17809 /* confdefs.h. */ | |
17810 _ACEOF | |
17811 cat confdefs.h >>conftest.$ac_ext | |
17812 cat >>conftest.$ac_ext <<_ACEOF | |
17813 /* end confdefs.h. */ | |
17814 | |
17815 /* Override any gcc2 internal prototype to avoid an error. */ | |
17816 #ifdef __cplusplus | |
17817 extern "C" | |
17818 #endif | |
17819 /* We use char because int might match the return type of a gcc2 | |
17820 builtin and then its argument prototype would still apply. */ | |
17821 char dld_link (); | |
17822 int | |
17823 main () | |
17824 { | |
17825 dld_link (); | |
17826 ; | |
17827 return 0; | |
17828 } | |
17829 _ACEOF | |
17830 rm -f conftest.$ac_objext conftest$ac_exeext | |
17831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17832 (eval $ac_link) 2>conftest.er1 | |
17833 ac_status=$? | |
17834 grep -v '^ *+' conftest.er1 >conftest.err | |
17835 rm -f conftest.er1 | |
17836 cat conftest.err >&5 | |
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17838 (exit $ac_status); } && | |
17839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17841 (eval $ac_try) 2>&5 | |
17842 ac_status=$? | |
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17844 (exit $ac_status); }; } && | |
17845 { ac_try='test -s conftest$ac_exeext' | |
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17847 (eval $ac_try) 2>&5 | |
17848 ac_status=$? | |
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17850 (exit $ac_status); }; }; then | |
17851 ac_cv_lib_dld_dld_link=yes | |
17852 else | |
17853 echo "$as_me: failed program was:" >&5 | |
17854 sed 's/^/| /' conftest.$ac_ext >&5 | |
17855 | |
17856 ac_cv_lib_dld_dld_link=no | |
17857 fi | |
17858 rm -f conftest.err conftest.$ac_objext \ | |
17859 conftest$ac_exeext conftest.$ac_ext | |
17860 LIBS=$ac_check_lib_save_LIBS | |
17861 fi | |
17862 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
17863 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
17864 if test $ac_cv_lib_dld_dld_link = yes; then | |
17865 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
17866 fi | |
17867 | |
17868 | |
17869 fi | |
17870 | |
17871 | |
17872 fi | |
17873 | |
17874 | |
17875 fi | |
17876 | |
17877 | |
17878 fi | |
17879 | |
17880 | |
17881 fi | |
17882 | |
17883 ;; | |
17884 esac | |
17885 | |
17886 if test "x$lt_cv_dlopen" != xno; then | |
17887 enable_dlopen=yes | |
17888 else | |
17889 enable_dlopen=no | |
17890 fi | |
17891 | |
17892 case $lt_cv_dlopen in | |
17893 dlopen) | |
17894 save_CPPFLAGS="$CPPFLAGS" | |
17895 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
17896 | |
17897 save_LDFLAGS="$LDFLAGS" | |
17898 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
17899 | |
17900 save_LIBS="$LIBS" | |
17901 LIBS="$lt_cv_dlopen_libs $LIBS" | |
17902 | |
17903 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
17904 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
17905 if test "${lt_cv_dlopen_self+set}" = set; then | |
17906 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17907 else | |
17908 if test "$cross_compiling" = yes; then : | |
17909 lt_cv_dlopen_self=cross | |
17910 else | |
17911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
17912 lt_status=$lt_dlunknown | |
17913 cat > conftest.$ac_ext <<EOF | |
17914 #line 17914 "configure" | |
17915 #include "confdefs.h" | |
17916 | |
17917 #if HAVE_DLFCN_H | |
17918 #include <dlfcn.h> | |
17919 #endif | |
17920 | |
17921 #include <stdio.h> | |
17922 | |
17923 #ifdef RTLD_GLOBAL | |
17924 # define LT_DLGLOBAL RTLD_GLOBAL | |
17925 #else | |
17926 # ifdef DL_GLOBAL | |
17927 # define LT_DLGLOBAL DL_GLOBAL | |
17928 # else | |
17929 # define LT_DLGLOBAL 0 | |
17930 # endif | |
17931 #endif | |
17932 | |
17933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
17934 find out it does not work in some platform. */ | |
17935 #ifndef LT_DLLAZY_OR_NOW | |
17936 # ifdef RTLD_LAZY | |
17937 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
17938 # else | |
17939 # ifdef DL_LAZY | |
17940 # define LT_DLLAZY_OR_NOW DL_LAZY | |
17941 # else | |
17942 # ifdef RTLD_NOW | |
17943 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
17944 # else | |
17945 # ifdef DL_NOW | |
17946 # define LT_DLLAZY_OR_NOW DL_NOW | |
17947 # else | |
17948 # define LT_DLLAZY_OR_NOW 0 | |
17949 # endif | |
17950 # endif | |
17951 # endif | |
17952 # endif | |
17953 #endif | |
17954 | |
17955 #ifdef __cplusplus | |
17956 extern "C" void exit (int); | |
17957 #endif | |
17958 | |
17959 void fnord() { int i=42;} | |
17960 int main () | |
17961 { | |
17962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
17963 int status = $lt_dlunknown; | |
17964 | |
17965 if (self) | |
17966 { | |
17967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
17968 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
17969 /* dlclose (self); */ | |
17970 } | |
17971 | |
17972 exit (status); | |
17973 } | |
17974 EOF | |
17975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17976 (eval $ac_link) 2>&5 | |
17977 ac_status=$? | |
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17979 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
17980 (./conftest; exit; ) 2>/dev/null | |
17981 lt_status=$? | |
17982 case x$lt_status in | |
17983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
17984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
17985 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
17986 esac | |
17987 else : | |
17988 # compilation failed | |
17989 lt_cv_dlopen_self=no | |
17990 fi | |
17991 fi | |
17992 rm -fr conftest* | |
17993 | |
17994 | |
17995 fi | |
17996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
17997 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
17998 | |
17999 if test "x$lt_cv_dlopen_self" = xyes; then | |
18000 LDFLAGS="$LDFLAGS $link_static_flag" | |
18001 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
18002 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
18003 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
18004 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18005 else | |
18006 if test "$cross_compiling" = yes; then : | |
18007 lt_cv_dlopen_self_static=cross | |
18008 else | |
18009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
18010 lt_status=$lt_dlunknown | |
18011 cat > conftest.$ac_ext <<EOF | |
18012 #line 18012 "configure" | |
18013 #include "confdefs.h" | |
18014 | |
18015 #if HAVE_DLFCN_H | |
18016 #include <dlfcn.h> | |
18017 #endif | |
18018 | |
18019 #include <stdio.h> | |
18020 | |
18021 #ifdef RTLD_GLOBAL | |
18022 # define LT_DLGLOBAL RTLD_GLOBAL | |
18023 #else | |
18024 # ifdef DL_GLOBAL | |
18025 # define LT_DLGLOBAL DL_GLOBAL | |
18026 # else | |
18027 # define LT_DLGLOBAL 0 | |
18028 # endif | |
18029 #endif | |
18030 | |
18031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
18032 find out it does not work in some platform. */ | |
18033 #ifndef LT_DLLAZY_OR_NOW | |
18034 # ifdef RTLD_LAZY | |
18035 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
18036 # else | |
18037 # ifdef DL_LAZY | |
18038 # define LT_DLLAZY_OR_NOW DL_LAZY | |
18039 # else | |
18040 # ifdef RTLD_NOW | |
18041 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
18042 # else | |
18043 # ifdef DL_NOW | |
18044 # define LT_DLLAZY_OR_NOW DL_NOW | |
18045 # else | |
18046 # define LT_DLLAZY_OR_NOW 0 | |
18047 # endif | |
18048 # endif | |
18049 # endif | |
18050 # endif | |
18051 #endif | |
18052 | |
18053 #ifdef __cplusplus | |
18054 extern "C" void exit (int); | |
18055 #endif | |
18056 | |
18057 void fnord() { int i=42;} | |
18058 int main () | |
18059 { | |
18060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
18061 int status = $lt_dlunknown; | |
18062 | |
18063 if (self) | |
18064 { | |
18065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
18066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
18067 /* dlclose (self); */ | |
18068 } | |
18069 | |
18070 exit (status); | |
18071 } | |
18072 EOF | |
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18074 (eval $ac_link) 2>&5 | |
18075 ac_status=$? | |
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
18078 (./conftest; exit; ) 2>/dev/null | |
18079 lt_status=$? | |
18080 case x$lt_status in | |
18081 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
18082 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
18083 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
18084 esac | |
18085 else : | |
18086 # compilation failed | |
18087 lt_cv_dlopen_self_static=no | |
18088 fi | |
18089 fi | |
18090 rm -fr conftest* | |
18091 | |
18092 | |
18093 fi | |
18094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
18095 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
18096 fi | |
18097 | |
18098 CPPFLAGS="$save_CPPFLAGS" | |
18099 LDFLAGS="$save_LDFLAGS" | |
18100 LIBS="$save_LIBS" | |
18101 ;; | |
18102 esac | |
18103 | |
18104 case $lt_cv_dlopen_self in | |
18105 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
18106 *) enable_dlopen_self=unknown ;; | |
18107 esac | |
18108 | |
18109 case $lt_cv_dlopen_self_static in | |
18110 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
18111 *) enable_dlopen_self_static=unknown ;; | |
18112 esac | |
18113 fi | |
18114 | |
18115 | |
18116 # The else clause should only fire when bootstrapping the | |
18117 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18118 # with your package, and you will get complaints that there are | |
18119 # no rules to generate ltmain.sh. | |
18120 if test -f "$ltmain"; then | |
18121 # See if we are running on zsh, and set the options which allow our commands through | |
18122 # without removal of \ escapes. | |
18123 if test -n "${ZSH_VERSION+set}" ; then | |
18124 setopt NO_GLOB_SUBST | |
18125 fi | |
18126 # Now quote all the things that may contain metacharacters while being | |
18127 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18128 # variables and quote the copies for generation of the libtool script. | |
18129 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
18130 SED SHELL STRIP \ | |
18131 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18132 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18133 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18134 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18135 lt_cv_sys_global_symbol_to_c_name_address \ | |
18136 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18137 old_postinstall_cmds old_postuninstall_cmds \ | |
18138 compiler_GCJ \ | |
18139 CC_GCJ \ | |
18140 LD_GCJ \ | |
18141 lt_prog_compiler_wl_GCJ \ | |
18142 lt_prog_compiler_pic_GCJ \ | |
18143 lt_prog_compiler_static_GCJ \ | |
18144 lt_prog_compiler_no_builtin_flag_GCJ \ | |
18145 export_dynamic_flag_spec_GCJ \ | |
18146 thread_safe_flag_spec_GCJ \ | |
18147 whole_archive_flag_spec_GCJ \ | |
18148 enable_shared_with_static_runtimes_GCJ \ | |
18149 old_archive_cmds_GCJ \ | |
18150 old_archive_from_new_cmds_GCJ \ | |
18151 predep_objects_GCJ \ | |
18152 postdep_objects_GCJ \ | |
18153 predeps_GCJ \ | |
18154 postdeps_GCJ \ | |
18155 compiler_lib_search_path_GCJ \ | |
18156 archive_cmds_GCJ \ | |
18157 archive_expsym_cmds_GCJ \ | |
18158 postinstall_cmds_GCJ \ | |
18159 postuninstall_cmds_GCJ \ | |
18160 old_archive_from_expsyms_cmds_GCJ \ | |
18161 allow_undefined_flag_GCJ \ | |
18162 no_undefined_flag_GCJ \ | |
18163 export_symbols_cmds_GCJ \ | |
18164 hardcode_libdir_flag_spec_GCJ \ | |
18165 hardcode_libdir_flag_spec_ld_GCJ \ | |
18166 hardcode_libdir_separator_GCJ \ | |
18167 hardcode_automatic_GCJ \ | |
18168 module_cmds_GCJ \ | |
18169 module_expsym_cmds_GCJ \ | |
18170 lt_cv_prog_compiler_c_o_GCJ \ | |
18171 exclude_expsyms_GCJ \ | |
18172 include_expsyms_GCJ; do | |
18173 | |
18174 case $var in | |
18175 old_archive_cmds_GCJ | \ | |
18176 old_archive_from_new_cmds_GCJ | \ | |
18177 archive_cmds_GCJ | \ | |
18178 archive_expsym_cmds_GCJ | \ | |
18179 module_cmds_GCJ | \ | |
18180 module_expsym_cmds_GCJ | \ | |
18181 old_archive_from_expsyms_cmds_GCJ | \ | |
18182 export_symbols_cmds_GCJ | \ | |
18183 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18184 postinstall_cmds | postuninstall_cmds | \ | |
18185 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18186 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18187 # Double-quote double-evaled strings. | |
18188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18189 ;; | |
18190 *) | |
18191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18192 ;; | |
18193 esac | |
18194 done | |
18195 | |
18196 case $lt_echo in | |
18197 *'\$0 --fallback-echo"') | |
18198 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18199 ;; | |
18200 esac | |
18201 | |
18202 cfgfile="$ofile" | |
18203 | |
18204 cat <<__EOF__ >> "$cfgfile" | |
18205 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18206 | |
18207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18208 | |
18209 # Shell to use when invoking shell scripts. | |
18210 SHELL=$lt_SHELL | |
18211 | |
18212 # Whether or not to build shared libraries. | |
18213 build_libtool_libs=$enable_shared | |
18214 | |
18215 # Whether or not to build static libraries. | |
18216 build_old_libs=$enable_static | |
18217 | |
18218 # Whether or not to add -lc for building shared libraries. | |
18219 build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18220 | |
18221 # Whether or not to disallow shared libs when runtime libs are static | |
18222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18223 | |
18224 # Whether or not to optimize for fast installation. | |
18225 fast_install=$enable_fast_install | |
18226 | |
18227 # The host system. | |
18228 host_alias=$host_alias | |
18229 host=$host | |
18230 | |
18231 # An echo program that does not interpret backslashes. | |
18232 echo=$lt_echo | |
18233 | |
18234 # The archiver. | |
18235 AR=$lt_AR | |
18236 AR_FLAGS=$lt_AR_FLAGS | |
18237 | |
18238 # A C compiler. | |
18239 LTCC=$lt_LTCC | |
18240 | |
18241 # A language-specific compiler. | |
18242 CC=$lt_compiler_GCJ | |
18243 | |
18244 # Is the compiler the GNU C compiler? | |
18245 with_gcc=$GCC_GCJ | |
18246 | |
18247 # An ERE matcher. | |
18248 EGREP=$lt_EGREP | |
18249 | |
18250 # The linker used to build libraries. | |
18251 LD=$lt_LD_GCJ | |
18252 | |
18253 # Whether we need hard or soft links. | |
18254 LN_S=$lt_LN_S | |
18255 | |
18256 # A BSD-compatible nm program. | |
18257 NM=$lt_NM | |
18258 | |
18259 # A symbol stripping program | |
18260 STRIP=$lt_STRIP | |
18261 | |
18262 # Used to examine libraries when file_magic_cmd begins "file" | |
18263 MAGIC_CMD=$MAGIC_CMD | |
18264 | |
18265 # Used on cygwin: DLL creation program. | |
18266 DLLTOOL="$DLLTOOL" | |
18267 | |
18268 # Used on cygwin: object dumper. | |
18269 OBJDUMP="$OBJDUMP" | |
18270 | |
18271 # Used on cygwin: assembler. | |
18272 AS="$AS" | |
18273 | |
18274 # The name of the directory that contains temporary libtool files. | |
18275 objdir=$objdir | |
18276 | |
18277 # How to create reloadable object files. | |
18278 reload_flag=$lt_reload_flag | |
18279 reload_cmds=$lt_reload_cmds | |
18280 | |
18281 # How to pass a linker flag through the compiler. | |
18282 wl=$lt_lt_prog_compiler_wl_GCJ | |
18283 | |
18284 # Object file suffix (normally "o"). | |
18285 objext="$ac_objext" | |
18286 | |
18287 # Old archive suffix (normally "a"). | |
18288 libext="$libext" | |
18289 | |
18290 # Shared library suffix (normally ".so"). | |
18291 shrext='$shrext' | |
18292 | |
18293 # Executable file suffix (normally ""). | |
18294 exeext="$exeext" | |
18295 | |
18296 # Additional compiler flags for building library objects. | |
18297 pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18298 pic_mode=$pic_mode | |
18299 | |
18300 # What is the maximum length of a command? | |
18301 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18302 | |
18303 # Does compiler simultaneously support -c and -o options? | |
18304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18305 | |
18306 # Must we lock files when doing compilation ? | |
18307 need_locks=$lt_need_locks | |
18308 | |
18309 # Do we need the lib prefix for modules? | |
18310 need_lib_prefix=$need_lib_prefix | |
18311 | |
18312 # Do we need a version for libraries? | |
18313 need_version=$need_version | |
18314 | |
18315 # Whether dlopen is supported. | |
18316 dlopen_support=$enable_dlopen | |
18317 | |
18318 # Whether dlopen of programs is supported. | |
18319 dlopen_self=$enable_dlopen_self | |
18320 | |
18321 # Whether dlopen of statically linked programs is supported. | |
18322 dlopen_self_static=$enable_dlopen_self_static | |
18323 | |
18324 # Compiler flag to prevent dynamic linking. | |
18325 link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18326 | |
18327 # Compiler flag to turn off builtin functions. | |
18328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18329 | |
18330 # Compiler flag to allow reflexive dlopens. | |
18331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18332 | |
18333 # Compiler flag to generate shared objects directly from archives. | |
18334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18335 | |
18336 # Compiler flag to generate thread-safe objects. | |
18337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18338 | |
18339 # Library versioning type. | |
18340 version_type=$version_type | |
18341 | |
18342 # Format of library name prefix. | |
18343 libname_spec=$lt_libname_spec | |
18344 | |
18345 # List of archive names. First name is the real one, the rest are links. | |
18346 # The last name is the one that the linker finds with -lNAME. | |
18347 library_names_spec=$lt_library_names_spec | |
18348 | |
18349 # The coded name of the library, if different from the real name. | |
18350 soname_spec=$lt_soname_spec | |
18351 | |
18352 # Commands used to build and install an old-style archive. | |
18353 RANLIB=$lt_RANLIB | |
18354 old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18355 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18356 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18357 | |
18358 # Create an old-style archive from a shared archive. | |
18359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18360 | |
18361 # Create a temporary old-style archive to link instead of a shared archive. | |
18362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18363 | |
18364 # Commands used to build and install a shared archive. | |
18365 archive_cmds=$lt_archive_cmds_GCJ | |
18366 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18367 postinstall_cmds=$lt_postinstall_cmds | |
18368 postuninstall_cmds=$lt_postuninstall_cmds | |
18369 | |
18370 # Commands used to build a loadable module (assumed same as above if empty) | |
18371 module_cmds=$lt_module_cmds_GCJ | |
18372 module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18373 | |
18374 # Commands to strip libraries. | |
18375 old_striplib=$lt_old_striplib | |
18376 striplib=$lt_striplib | |
18377 | |
18378 # Dependencies to place before the objects being linked to create a | |
18379 # shared library. | |
18380 predep_objects=$lt_predep_objects_GCJ | |
18381 | |
18382 # Dependencies to place after the objects being linked to create a | |
18383 # shared library. | |
18384 postdep_objects=$lt_postdep_objects_GCJ | |
18385 | |
18386 # Dependencies to place before the objects being linked to create a | |
18387 # shared library. | |
18388 predeps=$lt_predeps_GCJ | |
18389 | |
18390 # Dependencies to place after the objects being linked to create a | |
18391 # shared library. | |
18392 postdeps=$lt_postdeps_GCJ | |
18393 | |
18394 # The library search path used internally by the compiler when linking | |
18395 # a shared library. | |
18396 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
18397 | |
18398 # Method to check whether dependent libraries are shared objects. | |
18399 deplibs_check_method=$lt_deplibs_check_method | |
18400 | |
18401 # Command to use when deplibs_check_method == file_magic. | |
18402 file_magic_cmd=$lt_file_magic_cmd | |
18403 | |
18404 # Flag that allows shared libraries with undefined symbols to be built. | |
18405 allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18406 | |
18407 # Flag that forces no undefined symbols. | |
18408 no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18409 | |
18410 # Commands used to finish a libtool library installation in a directory. | |
18411 finish_cmds=$lt_finish_cmds | |
18412 | |
18413 # Same as above, but a single script fragment to be evaled but not shown. | |
18414 finish_eval=$lt_finish_eval | |
18415 | |
18416 # Take the output of nm and produce a listing of raw symbols and C names. | |
18417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18418 | |
18419 # Transform the output of nm in a proper C declaration | |
18420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18421 | |
18422 # Transform the output of nm in a C name address pair | |
18423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18424 | |
18425 # This is the shared library runtime path variable. | |
18426 runpath_var=$runpath_var | |
18427 | |
18428 # This is the shared library path variable. | |
18429 shlibpath_var=$shlibpath_var | |
18430 | |
18431 # Is shlibpath searched before the hard-coded library search path? | |
18432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18433 | |
18434 # How to hardcode a shared library path into an executable. | |
18435 hardcode_action=$hardcode_action_GCJ | |
18436 | |
18437 # Whether we should hardcode library paths into libraries. | |
18438 hardcode_into_libs=$hardcode_into_libs | |
18439 | |
18440 # Flag to hardcode \$libdir into a binary during linking. | |
18441 # This must work even if \$libdir does not exist. | |
18442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
18443 | |
18444 # If ld is used when linking, flag to hardcode \$libdir into | |
18445 # a binary during linking. This must work even if \$libdir does | |
18446 # not exist. | |
18447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
18448 | |
18449 # Whether we need a single -rpath flag with a separated argument. | |
18450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
18451 | |
18452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18453 # resulting binary. | |
18454 hardcode_direct=$hardcode_direct_GCJ | |
18455 | |
18456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18457 # resulting binary. | |
18458 hardcode_minus_L=$hardcode_minus_L_GCJ | |
18459 | |
18460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18461 # the resulting binary. | |
18462 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
18463 | |
18464 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18465 # and all subsequent libraries and executables linked against it. | |
18466 hardcode_automatic=$hardcode_automatic_GCJ | |
18467 | |
18468 # Variables whose values should be saved in libtool wrapper scripts and | |
18469 # restored at relink time. | |
18470 variables_saved_for_relink="$variables_saved_for_relink" | |
18471 | |
18472 # Whether libtool must link a program against all its dependency libraries. | |
18473 link_all_deplibs=$link_all_deplibs_GCJ | |
18474 | |
18475 # Compile-time system search path for libraries | |
18476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18477 | |
18478 # Run-time system search path for libraries | |
18479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18480 | |
18481 # Fix the shell variable \$srcfile for the compiler. | |
18482 fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18483 | |
18484 # Set to yes if exported symbols are required. | |
18485 always_export_symbols=$always_export_symbols_GCJ | |
18486 | |
18487 # The commands to list exported symbols. | |
18488 export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18489 | |
18490 # The commands to extract the exported symbol list from a shared archive. | |
18491 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18492 | |
18493 # Symbols that should not be listed in the preloaded symbols. | |
18494 exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18495 | |
18496 # Symbols that must always be exported. | |
18497 include_expsyms=$lt_include_expsyms_GCJ | |
18498 | |
18499 # ### END LIBTOOL TAG CONFIG: $tagname | |
18500 | |
18501 __EOF__ | |
18502 | |
18503 | |
18504 else | |
18505 # If there is no Makefile yet, we rely on a make rule to execute | |
18506 # `config.status --recheck' to rerun these tests and create the | |
18507 # libtool script then. | |
18508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18509 if test -f "$ltmain_in"; then | |
18510 test -f Makefile && make "$ltmain" | |
18511 fi | |
18512 fi | |
18513 | |
18514 | |
18515 ac_ext=c | |
18516 ac_cpp='$CPP $CPPFLAGS' | |
18517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18519 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18520 | |
18521 CC="$lt_save_CC" | |
18522 | |
18523 else | |
18524 tagname="" | |
18525 fi | |
18526 ;; | |
18527 | |
18528 RC) | |
18529 | |
18530 | |
18531 | |
18532 # Source file extension for RC test sources. | |
18533 ac_ext=rc | |
18534 | |
18535 # Object file extension for compiled RC test sources. | |
18536 objext=o | |
18537 objext_RC=$objext | |
18538 | |
18539 # Code to be used in simple compile tests | |
18540 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18541 | |
18542 # Code to be used in simple link tests | |
18543 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18544 | |
18545 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18546 | |
18547 # If no C compiler was specified, use CC. | |
18548 LTCC=${LTCC-"$CC"} | |
18549 | |
18550 # Allow CC to be a program name with arguments. | |
18551 compiler=$CC | |
18552 | |
18553 | |
18554 # Allow CC to be a program name with arguments. | |
18555 lt_save_CC="$CC" | |
18556 CC=${RC-"windres"} | |
18557 compiler=$CC | |
18558 compiler_RC=$CC | |
18559 lt_cv_prog_compiler_c_o_RC=yes | |
18560 | |
18561 # The else clause should only fire when bootstrapping the | |
18562 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18563 # with your package, and you will get complaints that there are | |
18564 # no rules to generate ltmain.sh. | |
18565 if test -f "$ltmain"; then | |
18566 # See if we are running on zsh, and set the options which allow our commands through | |
18567 # without removal of \ escapes. | |
18568 if test -n "${ZSH_VERSION+set}" ; then | |
18569 setopt NO_GLOB_SUBST | |
18570 fi | |
18571 # Now quote all the things that may contain metacharacters while being | |
18572 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18573 # variables and quote the copies for generation of the libtool script. | |
18574 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | |
18575 SED SHELL STRIP \ | |
18576 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18577 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18578 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18579 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18580 lt_cv_sys_global_symbol_to_c_name_address \ | |
18581 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18582 old_postinstall_cmds old_postuninstall_cmds \ | |
18583 compiler_RC \ | |
18584 CC_RC \ | |
18585 LD_RC \ | |
18586 lt_prog_compiler_wl_RC \ | |
18587 lt_prog_compiler_pic_RC \ | |
18588 lt_prog_compiler_static_RC \ | |
18589 lt_prog_compiler_no_builtin_flag_RC \ | |
18590 export_dynamic_flag_spec_RC \ | |
18591 thread_safe_flag_spec_RC \ | |
18592 whole_archive_flag_spec_RC \ | |
18593 enable_shared_with_static_runtimes_RC \ | |
18594 old_archive_cmds_RC \ | |
18595 old_archive_from_new_cmds_RC \ | |
18596 predep_objects_RC \ | |
18597 postdep_objects_RC \ | |
18598 predeps_RC \ | |
18599 postdeps_RC \ | |
18600 compiler_lib_search_path_RC \ | |
18601 archive_cmds_RC \ | |
18602 archive_expsym_cmds_RC \ | |
18603 postinstall_cmds_RC \ | |
18604 postuninstall_cmds_RC \ | |
18605 old_archive_from_expsyms_cmds_RC \ | |
18606 allow_undefined_flag_RC \ | |
18607 no_undefined_flag_RC \ | |
18608 export_symbols_cmds_RC \ | |
18609 hardcode_libdir_flag_spec_RC \ | |
18610 hardcode_libdir_flag_spec_ld_RC \ | |
18611 hardcode_libdir_separator_RC \ | |
18612 hardcode_automatic_RC \ | |
18613 module_cmds_RC \ | |
18614 module_expsym_cmds_RC \ | |
18615 lt_cv_prog_compiler_c_o_RC \ | |
18616 exclude_expsyms_RC \ | |
18617 include_expsyms_RC; do | |
18618 | |
18619 case $var in | |
18620 old_archive_cmds_RC | \ | |
18621 old_archive_from_new_cmds_RC | \ | |
18622 archive_cmds_RC | \ | |
18623 archive_expsym_cmds_RC | \ | |
18624 module_cmds_RC | \ | |
18625 module_expsym_cmds_RC | \ | |
18626 old_archive_from_expsyms_cmds_RC | \ | |
18627 export_symbols_cmds_RC | \ | |
18628 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18629 postinstall_cmds | postuninstall_cmds | \ | |
18630 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18631 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18632 # Double-quote double-evaled strings. | |
18633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18634 ;; | |
18635 *) | |
18636 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18637 ;; | |
18638 esac | |
18639 done | |
18640 | |
18641 case $lt_echo in | |
18642 *'\$0 --fallback-echo"') | |
18643 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18644 ;; | |
18645 esac | |
18646 | |
18647 cfgfile="$ofile" | |
18648 | |
18649 cat <<__EOF__ >> "$cfgfile" | |
18650 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18651 | |
18652 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18653 | |
18654 # Shell to use when invoking shell scripts. | |
18655 SHELL=$lt_SHELL | |
18656 | |
18657 # Whether or not to build shared libraries. | |
18658 build_libtool_libs=$enable_shared | |
18659 | |
18660 # Whether or not to build static libraries. | |
18661 build_old_libs=$enable_static | |
18662 | |
18663 # Whether or not to add -lc for building shared libraries. | |
18664 build_libtool_need_lc=$archive_cmds_need_lc_RC | |
18665 | |
18666 # Whether or not to disallow shared libs when runtime libs are static | |
18667 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
18668 | |
18669 # Whether or not to optimize for fast installation. | |
18670 fast_install=$enable_fast_install | |
18671 | |
18672 # The host system. | |
18673 host_alias=$host_alias | |
18674 host=$host | |
18675 | |
18676 # An echo program that does not interpret backslashes. | |
18677 echo=$lt_echo | |
18678 | |
18679 # The archiver. | |
18680 AR=$lt_AR | |
18681 AR_FLAGS=$lt_AR_FLAGS | |
18682 | |
18683 # A C compiler. | |
18684 LTCC=$lt_LTCC | |
18685 | |
18686 # A language-specific compiler. | |
18687 CC=$lt_compiler_RC | |
18688 | |
18689 # Is the compiler the GNU C compiler? | |
18690 with_gcc=$GCC_RC | |
18691 | |
18692 # An ERE matcher. | |
18693 EGREP=$lt_EGREP | |
18694 | |
18695 # The linker used to build libraries. | |
18696 LD=$lt_LD_RC | |
18697 | |
18698 # Whether we need hard or soft links. | |
18699 LN_S=$lt_LN_S | |
18700 | |
18701 # A BSD-compatible nm program. | |
18702 NM=$lt_NM | |
18703 | |
18704 # A symbol stripping program | |
18705 STRIP=$lt_STRIP | |
18706 | |
18707 # Used to examine libraries when file_magic_cmd begins "file" | |
18708 MAGIC_CMD=$MAGIC_CMD | |
18709 | |
18710 # Used on cygwin: DLL creation program. | |
18711 DLLTOOL="$DLLTOOL" | |
18712 | |
18713 # Used on cygwin: object dumper. | |
18714 OBJDUMP="$OBJDUMP" | |
18715 | |
18716 # Used on cygwin: assembler. | |
18717 AS="$AS" | |
18718 | |
18719 # The name of the directory that contains temporary libtool files. | |
18720 objdir=$objdir | |
18721 | |
18722 # How to create reloadable object files. | |
18723 reload_flag=$lt_reload_flag | |
18724 reload_cmds=$lt_reload_cmds | |
18725 | |
18726 # How to pass a linker flag through the compiler. | |
18727 wl=$lt_lt_prog_compiler_wl_RC | |
18728 | |
18729 # Object file suffix (normally "o"). | |
18730 objext="$ac_objext" | |
18731 | |
18732 # Old archive suffix (normally "a"). | |
18733 libext="$libext" | |
18734 | |
18735 # Shared library suffix (normally ".so"). | |
18736 shrext='$shrext' | |
18737 | |
18738 # Executable file suffix (normally ""). | |
18739 exeext="$exeext" | |
18740 | |
18741 # Additional compiler flags for building library objects. | |
18742 pic_flag=$lt_lt_prog_compiler_pic_RC | |
18743 pic_mode=$pic_mode | |
18744 | |
18745 # What is the maximum length of a command? | |
18746 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18747 | |
18748 # Does compiler simultaneously support -c and -o options? | |
18749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
18750 | |
18751 # Must we lock files when doing compilation ? | |
18752 need_locks=$lt_need_locks | |
18753 | |
18754 # Do we need the lib prefix for modules? | |
18755 need_lib_prefix=$need_lib_prefix | |
18756 | |
18757 # Do we need a version for libraries? | |
18758 need_version=$need_version | |
18759 | |
18760 # Whether dlopen is supported. | |
18761 dlopen_support=$enable_dlopen | |
18762 | |
18763 # Whether dlopen of programs is supported. | |
18764 dlopen_self=$enable_dlopen_self | |
18765 | |
18766 # Whether dlopen of statically linked programs is supported. | |
18767 dlopen_self_static=$enable_dlopen_self_static | |
18768 | |
18769 # Compiler flag to prevent dynamic linking. | |
18770 link_static_flag=$lt_lt_prog_compiler_static_RC | |
18771 | |
18772 # Compiler flag to turn off builtin functions. | |
18773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
18774 | |
18775 # Compiler flag to allow reflexive dlopens. | |
18776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
18777 | |
18778 # Compiler flag to generate shared objects directly from archives. | |
18779 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
18780 | |
18781 # Compiler flag to generate thread-safe objects. | |
18782 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
18783 | |
18784 # Library versioning type. | |
18785 version_type=$version_type | |
18786 | |
18787 # Format of library name prefix. | |
18788 libname_spec=$lt_libname_spec | |
18789 | |
18790 # List of archive names. First name is the real one, the rest are links. | |
18791 # The last name is the one that the linker finds with -lNAME. | |
18792 library_names_spec=$lt_library_names_spec | |
18793 | |
18794 # The coded name of the library, if different from the real name. | |
18795 soname_spec=$lt_soname_spec | |
18796 | |
18797 # Commands used to build and install an old-style archive. | |
18798 RANLIB=$lt_RANLIB | |
18799 old_archive_cmds=$lt_old_archive_cmds_RC | |
18800 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18801 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18802 | |
18803 # Create an old-style archive from a shared archive. | |
18804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
18805 | |
18806 # Create a temporary old-style archive to link instead of a shared archive. | |
18807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
18808 | |
18809 # Commands used to build and install a shared archive. | |
18810 archive_cmds=$lt_archive_cmds_RC | |
18811 archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
18812 postinstall_cmds=$lt_postinstall_cmds | |
18813 postuninstall_cmds=$lt_postuninstall_cmds | |
18814 | |
18815 # Commands used to build a loadable module (assumed same as above if empty) | |
18816 module_cmds=$lt_module_cmds_RC | |
18817 module_expsym_cmds=$lt_module_expsym_cmds_RC | |
18818 | |
18819 # Commands to strip libraries. | |
18820 old_striplib=$lt_old_striplib | |
18821 striplib=$lt_striplib | |
18822 | |
18823 # Dependencies to place before the objects being linked to create a | |
18824 # shared library. | |
18825 predep_objects=$lt_predep_objects_RC | |
18826 | |
18827 # Dependencies to place after the objects being linked to create a | |
18828 # shared library. | |
18829 postdep_objects=$lt_postdep_objects_RC | |
18830 | |
18831 # Dependencies to place before the objects being linked to create a | |
18832 # shared library. | |
18833 predeps=$lt_predeps_RC | |
18834 | |
18835 # Dependencies to place after the objects being linked to create a | |
18836 # shared library. | |
18837 postdeps=$lt_postdeps_RC | |
18838 | |
18839 # The library search path used internally by the compiler when linking | |
18840 # a shared library. | |
18841 compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
18842 | |
18843 # Method to check whether dependent libraries are shared objects. | |
18844 deplibs_check_method=$lt_deplibs_check_method | |
18845 | |
18846 # Command to use when deplibs_check_method == file_magic. | |
18847 file_magic_cmd=$lt_file_magic_cmd | |
18848 | |
18849 # Flag that allows shared libraries with undefined symbols to be built. | |
18850 allow_undefined_flag=$lt_allow_undefined_flag_RC | |
18851 | |
18852 # Flag that forces no undefined symbols. | |
18853 no_undefined_flag=$lt_no_undefined_flag_RC | |
18854 | |
18855 # Commands used to finish a libtool library installation in a directory. | |
18856 finish_cmds=$lt_finish_cmds | |
18857 | |
18858 # Same as above, but a single script fragment to be evaled but not shown. | |
18859 finish_eval=$lt_finish_eval | |
18860 | |
18861 # Take the output of nm and produce a listing of raw symbols and C names. | |
18862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18863 | |
18864 # Transform the output of nm in a proper C declaration | |
18865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18866 | |
18867 # Transform the output of nm in a C name address pair | |
18868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18869 | |
18870 # This is the shared library runtime path variable. | |
18871 runpath_var=$runpath_var | |
18872 | |
18873 # This is the shared library path variable. | |
18874 shlibpath_var=$shlibpath_var | |
18875 | |
18876 # Is shlibpath searched before the hard-coded library search path? | |
18877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18878 | |
18879 # How to hardcode a shared library path into an executable. | |
18880 hardcode_action=$hardcode_action_RC | |
18881 | |
18882 # Whether we should hardcode library paths into libraries. | |
18883 hardcode_into_libs=$hardcode_into_libs | |
18884 | |
18885 # Flag to hardcode \$libdir into a binary during linking. | |
18886 # This must work even if \$libdir does not exist. | |
18887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
18888 | |
18889 # If ld is used when linking, flag to hardcode \$libdir into | |
18890 # a binary during linking. This must work even if \$libdir does | |
18891 # not exist. | |
18892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
18893 | |
18894 # Whether we need a single -rpath flag with a separated argument. | |
18895 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
18896 | |
18897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18898 # resulting binary. | |
18899 hardcode_direct=$hardcode_direct_RC | |
18900 | |
18901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18902 # resulting binary. | |
18903 hardcode_minus_L=$hardcode_minus_L_RC | |
18904 | |
18905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18906 # the resulting binary. | |
18907 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
18908 | |
18909 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18910 # and all subsequent libraries and executables linked against it. | |
18911 hardcode_automatic=$hardcode_automatic_RC | |
18912 | |
18913 # Variables whose values should be saved in libtool wrapper scripts and | |
18914 # restored at relink time. | |
18915 variables_saved_for_relink="$variables_saved_for_relink" | |
18916 | |
18917 # Whether libtool must link a program against all its dependency libraries. | |
18918 link_all_deplibs=$link_all_deplibs_RC | |
18919 | |
18920 # Compile-time system search path for libraries | |
18921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18922 | |
18923 # Run-time system search path for libraries | |
18924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18925 | |
18926 # Fix the shell variable \$srcfile for the compiler. | |
18927 fix_srcfile_path="$fix_srcfile_path_RC" | |
18928 | |
18929 # Set to yes if exported symbols are required. | |
18930 always_export_symbols=$always_export_symbols_RC | |
18931 | |
18932 # The commands to list exported symbols. | |
18933 export_symbols_cmds=$lt_export_symbols_cmds_RC | |
18934 | |
18935 # The commands to extract the exported symbol list from a shared archive. | |
18936 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18937 | |
18938 # Symbols that should not be listed in the preloaded symbols. | |
18939 exclude_expsyms=$lt_exclude_expsyms_RC | |
18940 | |
18941 # Symbols that must always be exported. | |
18942 include_expsyms=$lt_include_expsyms_RC | |
18943 | |
18944 # ### END LIBTOOL TAG CONFIG: $tagname | |
18945 | |
18946 __EOF__ | |
18947 | |
18948 | |
18949 else | |
18950 # If there is no Makefile yet, we rely on a make rule to execute | |
18951 # `config.status --recheck' to rerun these tests and create the | |
18952 # libtool script then. | |
18953 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18954 if test -f "$ltmain_in"; then | |
18955 test -f Makefile && make "$ltmain" | |
18956 fi | |
18957 fi | |
18958 | |
18959 | |
18960 ac_ext=c | |
18961 ac_cpp='$CPP $CPPFLAGS' | |
18962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18964 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18965 | |
18966 CC="$lt_save_CC" | |
18967 | |
18968 ;; | |
18969 | |
18970 *) | |
18971 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
18972 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
18973 { (exit 1); exit 1; }; } | |
18974 ;; | |
18975 esac | |
18976 | |
18977 # Append the new tag name to the list of available tags. | |
18978 if test -n "$tagname" ; then | |
18979 available_tags="$available_tags $tagname" | |
18980 fi | |
18981 fi | |
18982 done | |
18983 IFS="$lt_save_ifs" | |
18984 | |
18985 # Now substitute the updated list of available tags. | |
18986 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
18987 mv "${ofile}T" "$ofile" | |
18988 chmod +x "$ofile" | |
18989 else | |
18990 rm -f "${ofile}T" | |
18991 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
18992 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
18993 { (exit 1); exit 1; }; } | |
18994 fi | |
18995 fi | |
18996 | |
18997 | |
18998 | |
18999 # This can be used to rebuild libtool when needed | |
19000 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
19001 | |
19002 # Always use our own libtool. | |
19003 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
19004 | |
19005 # Prevent multiple expansion | |
19006 | |
19007 | |
19008 | |
19009 | |
19010 | |
19011 | |
19012 | |
19013 | |
19014 | |
19015 | |
19016 | |
19017 | |
19018 | |
19019 | |
19020 | |
19021 | |
19022 | |
19023 | |
19024 | |
19025 | |
19026 | |
19027 | |
19028 | |
19029 | |
19030 arch="" | |
19031 debug="" | |
19032 optimize="" | |
19033 profile="" | |
19034 | |
19035 set -- $CFLAGS | |
19036 CFLAGS="" | |
19037 | |
19038 if test "$GCC" = yes | |
19039 then | |
19040 CFLAGS="-Wall" | |
19041 fi | |
19042 | |
19043 while test $# -gt 0 | |
19044 do | |
19045 case "$1" in | |
19046 -Wall) | |
19047 if test "$GCC" = yes | |
19048 then | |
19049 : | |
19050 else | |
19051 CFLAGS="$CFLAGS $1" | |
19052 fi | |
19053 shift | |
19054 ;; | |
19055 -g) | |
19056 debug="-g" | |
19057 shift | |
19058 ;; | |
19059 -mno-cygwin) | |
19060 shift | |
19061 ;; | |
19062 -m*) | |
19063 arch="$arch $1" | |
19064 shift | |
19065 ;; | |
19066 -O2) | |
19067 optimize="-O" | |
19068 shift | |
19069 ;; | |
19070 -fomit-frame-pointer) | |
19071 shift | |
19072 ;; | |
19073 -O*|-f*) | |
19074 optimize="$optimize $1" | |
19075 shift | |
19076 ;; | |
19077 *) | |
19078 CFLAGS="$CFLAGS $1" | |
19079 shift | |
19080 ;; | |
19081 esac | |
19082 done | |
19083 | |
19084 if test "$GCC" = yes | |
19085 then | |
19086 if test -z "$arch" | |
19087 then | |
19088 case "$host" in | |
19089 i386-*) ;; | |
19090 i?86-*) arch="-march=i486" ;; | |
19091 arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;; | |
19092 armv4*-*) arch="-march=armv4 -mtune=strongarm" ;; | |
19093 powerpc-*) ;; | |
19094 mips*-agenda-*) arch="-mcpu=vr4100" ;; | |
19095 mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;; | |
19096 esac | |
19097 fi | |
19098 | |
19099 case "$optimize" in | |
19100 -O|"-O "*) | |
19101 optimize="-O" | |
19102 optimize="$optimize -fforce-mem" | |
19103 optimize="$optimize -fforce-addr" | |
19104 : #x optimize="$optimize -finline-functions" | |
19105 : #- optimize="$optimize -fstrength-reduce" | |
19106 optimize="$optimize -fthread-jumps" | |
19107 optimize="$optimize -fcse-follow-jumps" | |
19108 optimize="$optimize -fcse-skip-blocks" | |
19109 : #x optimize="$optimize -frerun-cse-after-loop" | |
19110 : #x optimize="$optimize -frerun-loop-opt" | |
19111 : #x optimize="$optimize -fgcse" | |
19112 optimize="$optimize -fexpensive-optimizations" | |
19113 optimize="$optimize -fregmove" | |
19114 : #* optimize="$optimize -fdelayed-branch" | |
19115 : #x optimize="$optimize -fschedule-insns" | |
19116 optimize="$optimize -fschedule-insns2" | |
19117 : #? optimize="$optimize -ffunction-sections" | |
19118 : #? optimize="$optimize -fcaller-saves" | |
19119 : #> optimize="$optimize -funroll-loops" | |
19120 : #> optimize="$optimize -funroll-all-loops" | |
19121 : #x optimize="$optimize -fmove-all-movables" | |
19122 : #x optimize="$optimize -freduce-all-givs" | |
19123 : #? optimize="$optimize -fstrict-aliasing" | |
19124 : #* optimize="$optimize -fstructure-noalias" | |
19125 | |
19126 case "$host" in | |
19127 arm*-*) | |
19128 optimize="$optimize -fstrength-reduce" | |
19129 ;; | |
19130 mips*-*) | |
19131 optimize="$optimize -fstrength-reduce" | |
19132 optimize="$optimize -finline-functions" | |
19133 ;; | |
19134 i?86-*) | |
19135 optimize="$optimize -fstrength-reduce" | |
19136 ;; | |
19137 powerpc-apple-*) | |
19138 # this triggers an internal compiler error with gcc2 | |
19139 : #optimize="$optimize -fstrength-reduce" | |
19140 | |
19141 # this is really only beneficial with gcc3 | |
19142 : #optimize="$optimize -finline-functions" | |
19143 ;; | |
19144 *) | |
19145 # this sometimes provokes bugs in gcc 2.95.2 | |
19146 : #optimize="$optimize -fstrength-reduce" | |
19147 ;; | |
19148 esac | |
19149 ;; | |
19150 esac | |
19151 fi | |
19152 | |
19153 case "$host" in | |
19154 mips*-agenda-*) | |
19155 | |
19156 cat >>confdefs.h <<\_ACEOF | |
19157 #define HAVE_MADD16_ASM 1 | |
19158 _ACEOF | |
19159 | |
19160 ;; | |
19161 mips*-luxsonor-*) | |
19162 | |
19163 cat >>confdefs.h <<\_ACEOF | |
19164 #define HAVE_MADD_ASM 1 | |
19165 _ACEOF | |
19166 | |
19167 ;; | |
19168 esac | |
19169 | |
19170 | |
19171 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
19172 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
19173 if test "${ac_cv_header_stdc+set}" = set; then | |
19174 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19175 else | |
19176 cat >conftest.$ac_ext <<_ACEOF | |
19177 /* confdefs.h. */ | |
19178 _ACEOF | |
19179 cat confdefs.h >>conftest.$ac_ext | |
19180 cat >>conftest.$ac_ext <<_ACEOF | |
19181 /* end confdefs.h. */ | |
19182 #include <stdlib.h> | |
19183 #include <stdarg.h> | |
19184 #include <string.h> | |
19185 #include <float.h> | |
19186 | |
19187 int | |
19188 main () | |
19189 { | |
19190 | |
19191 ; | |
19192 return 0; | |
19193 } | |
19194 _ACEOF | |
19195 rm -f conftest.$ac_objext | |
19196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19197 (eval $ac_compile) 2>conftest.er1 | |
19198 ac_status=$? | |
19199 grep -v '^ *+' conftest.er1 >conftest.err | |
19200 rm -f conftest.er1 | |
19201 cat conftest.err >&5 | |
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 (exit $ac_status); } && | |
19204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19206 (eval $ac_try) 2>&5 | |
19207 ac_status=$? | |
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19209 (exit $ac_status); }; } && | |
19210 { ac_try='test -s conftest.$ac_objext' | |
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19212 (eval $ac_try) 2>&5 | |
19213 ac_status=$? | |
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19215 (exit $ac_status); }; }; then | |
19216 ac_cv_header_stdc=yes | |
19217 else | |
19218 echo "$as_me: failed program was:" >&5 | |
19219 sed 's/^/| /' conftest.$ac_ext >&5 | |
19220 | |
19221 ac_cv_header_stdc=no | |
19222 fi | |
19223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19224 | |
19225 if test $ac_cv_header_stdc = yes; then | |
19226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
19227 cat >conftest.$ac_ext <<_ACEOF | |
19228 /* confdefs.h. */ | |
19229 _ACEOF | |
19230 cat confdefs.h >>conftest.$ac_ext | |
19231 cat >>conftest.$ac_ext <<_ACEOF | |
19232 /* end confdefs.h. */ | |
19233 #include <string.h> | |
19234 | |
19235 _ACEOF | |
19236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19237 $EGREP "memchr" >/dev/null 2>&1; then | |
19238 : | |
19239 else | |
19240 ac_cv_header_stdc=no | |
19241 fi | |
19242 rm -f conftest* | |
19243 | |
19244 fi | |
19245 | |
19246 if test $ac_cv_header_stdc = yes; then | |
19247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
19248 cat >conftest.$ac_ext <<_ACEOF | |
19249 /* confdefs.h. */ | |
19250 _ACEOF | |
19251 cat confdefs.h >>conftest.$ac_ext | |
19252 cat >>conftest.$ac_ext <<_ACEOF | |
19253 /* end confdefs.h. */ | |
19254 #include <stdlib.h> | |
19255 | |
19256 _ACEOF | |
19257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19258 $EGREP "free" >/dev/null 2>&1; then | |
19259 : | |
19260 else | |
19261 ac_cv_header_stdc=no | |
19262 fi | |
19263 rm -f conftest* | |
19264 | |
19265 fi | |
19266 | |
19267 if test $ac_cv_header_stdc = yes; then | |
19268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
19269 if test "$cross_compiling" = yes; then | |
19270 : | |
19271 else | |
19272 cat >conftest.$ac_ext <<_ACEOF | |
19273 /* confdefs.h. */ | |
19274 _ACEOF | |
19275 cat confdefs.h >>conftest.$ac_ext | |
19276 cat >>conftest.$ac_ext <<_ACEOF | |
19277 /* end confdefs.h. */ | |
19278 #include <ctype.h> | |
19279 #if ((' ' & 0x0FF) == 0x020) | |
19280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
19281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
19282 #else | |
19283 # define ISLOWER(c) \ | |
19284 (('a' <= (c) && (c) <= 'i') \ | |
19285 || ('j' <= (c) && (c) <= 'r') \ | |
19286 || ('s' <= (c) && (c) <= 'z')) | |
19287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
19288 #endif | |
19289 | |
19290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
19291 int | |
19292 main () | |
19293 { | |
19294 int i; | |
19295 for (i = 0; i < 256; i++) | |
19296 if (XOR (islower (i), ISLOWER (i)) | |
19297 || toupper (i) != TOUPPER (i)) | |
19298 exit(2); | |
19299 exit (0); | |
19300 } | |
19301 _ACEOF | |
19302 rm -f conftest$ac_exeext | |
19303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19304 (eval $ac_link) 2>&5 | |
19305 ac_status=$? | |
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19309 (eval $ac_try) 2>&5 | |
19310 ac_status=$? | |
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19312 (exit $ac_status); }; }; then | |
19313 : | |
19314 else | |
19315 echo "$as_me: program exited with status $ac_status" >&5 | |
19316 echo "$as_me: failed program was:" >&5 | |
19317 sed 's/^/| /' conftest.$ac_ext >&5 | |
19318 | |
19319 ( exit $ac_status ) | |
19320 ac_cv_header_stdc=no | |
19321 fi | |
19322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19323 fi | |
19324 fi | |
19325 fi | |
19326 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
19327 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
19328 if test $ac_cv_header_stdc = yes; then | |
19329 | |
19330 cat >>confdefs.h <<\_ACEOF | |
19331 #define STDC_HEADERS 1 | |
19332 _ACEOF | |
19333 | |
19334 fi | |
19335 | |
19336 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
19337 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
19338 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
19339 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19340 else | |
19341 cat >conftest.$ac_ext <<_ACEOF | |
19342 /* confdefs.h. */ | |
19343 _ACEOF | |
19344 cat confdefs.h >>conftest.$ac_ext | |
19345 cat >>conftest.$ac_ext <<_ACEOF | |
19346 /* end confdefs.h. */ | |
19347 #include <sys/types.h> | |
19348 #include <sys/wait.h> | |
19349 #ifndef WEXITSTATUS | |
19350 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
19351 #endif | |
19352 #ifndef WIFEXITED | |
19353 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
19354 #endif | |
19355 | |
19356 int | |
19357 main () | |
19358 { | |
19359 int s; | |
19360 wait (&s); | |
19361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
19362 ; | |
19363 return 0; | |
19364 } | |
19365 _ACEOF | |
19366 rm -f conftest.$ac_objext | |
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19368 (eval $ac_compile) 2>conftest.er1 | |
19369 ac_status=$? | |
19370 grep -v '^ *+' conftest.er1 >conftest.err | |
19371 rm -f conftest.er1 | |
19372 cat conftest.err >&5 | |
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19374 (exit $ac_status); } && | |
19375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19377 (eval $ac_try) 2>&5 | |
19378 ac_status=$? | |
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19380 (exit $ac_status); }; } && | |
19381 { ac_try='test -s conftest.$ac_objext' | |
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19383 (eval $ac_try) 2>&5 | |
19384 ac_status=$? | |
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19386 (exit $ac_status); }; }; then | |
19387 ac_cv_header_sys_wait_h=yes | |
19388 else | |
19389 echo "$as_me: failed program was:" >&5 | |
19390 sed 's/^/| /' conftest.$ac_ext >&5 | |
19391 | |
19392 ac_cv_header_sys_wait_h=no | |
19393 fi | |
19394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19395 fi | |
19396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
19397 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
19398 if test $ac_cv_header_sys_wait_h = yes; then | |
19399 | |
19400 cat >>confdefs.h <<\_ACEOF | |
19401 #define HAVE_SYS_WAIT_H 1 | |
19402 _ACEOF | |
19403 | |
19404 fi | |
19405 | |
19406 | |
19407 | |
19408 | |
19409 | |
19410 | |
19411 | |
19412 for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h | |
19413 do | |
19414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19415 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19416 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19418 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19419 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19420 fi | |
19421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19423 else | |
19424 # Is the header compilable? | |
19425 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19427 cat >conftest.$ac_ext <<_ACEOF | |
19428 /* confdefs.h. */ | |
19429 _ACEOF | |
19430 cat confdefs.h >>conftest.$ac_ext | |
19431 cat >>conftest.$ac_ext <<_ACEOF | |
19432 /* end confdefs.h. */ | |
19433 $ac_includes_default | |
19434 #include <$ac_header> | |
19435 _ACEOF | |
19436 rm -f conftest.$ac_objext | |
19437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19438 (eval $ac_compile) 2>conftest.er1 | |
19439 ac_status=$? | |
19440 grep -v '^ *+' conftest.er1 >conftest.err | |
19441 rm -f conftest.er1 | |
19442 cat conftest.err >&5 | |
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19444 (exit $ac_status); } && | |
19445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19447 (eval $ac_try) 2>&5 | |
19448 ac_status=$? | |
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19450 (exit $ac_status); }; } && | |
19451 { ac_try='test -s conftest.$ac_objext' | |
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19453 (eval $ac_try) 2>&5 | |
19454 ac_status=$? | |
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19456 (exit $ac_status); }; }; then | |
19457 ac_header_compiler=yes | |
19458 else | |
19459 echo "$as_me: failed program was:" >&5 | |
19460 sed 's/^/| /' conftest.$ac_ext >&5 | |
19461 | |
19462 ac_header_compiler=no | |
19463 fi | |
19464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19466 echo "${ECHO_T}$ac_header_compiler" >&6 | |
19467 | |
19468 # Is the header present? | |
19469 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19471 cat >conftest.$ac_ext <<_ACEOF | |
19472 /* confdefs.h. */ | |
19473 _ACEOF | |
19474 cat confdefs.h >>conftest.$ac_ext | |
19475 cat >>conftest.$ac_ext <<_ACEOF | |
19476 /* end confdefs.h. */ | |
19477 #include <$ac_header> | |
19478 _ACEOF | |
19479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19481 ac_status=$? | |
19482 grep -v '^ *+' conftest.er1 >conftest.err | |
19483 rm -f conftest.er1 | |
19484 cat conftest.err >&5 | |
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19486 (exit $ac_status); } >/dev/null; then | |
19487 if test -s conftest.err; then | |
19488 ac_cpp_err=$ac_c_preproc_warn_flag | |
19489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19490 else | |
19491 ac_cpp_err= | |
19492 fi | |
19493 else | |
19494 ac_cpp_err=yes | |
19495 fi | |
19496 if test -z "$ac_cpp_err"; then | |
19497 ac_header_preproc=yes | |
19498 else | |
19499 echo "$as_me: failed program was:" >&5 | |
19500 sed 's/^/| /' conftest.$ac_ext >&5 | |
19501 | |
19502 ac_header_preproc=no | |
19503 fi | |
19504 rm -f conftest.err conftest.$ac_ext | |
19505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19506 echo "${ECHO_T}$ac_header_preproc" >&6 | |
19507 | |
19508 # So? What about this header? | |
19509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19510 yes:no: ) | |
19511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19515 ac_header_preproc=yes | |
19516 ;; | |
19517 no:yes:* ) | |
19518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19530 ( | |
19531 cat <<\_ASBOX | |
19532 ## ----------------------------------- ## | |
19533 ## Report this to support@underbit.com ## | |
19534 ## ----------------------------------- ## | |
19535 _ASBOX | |
19536 ) | | |
19537 sed "s/^/$as_me: WARNING: /" >&2 | |
19538 ;; | |
19539 esac | |
19540 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19542 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19543 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19544 else | |
19545 eval "$as_ac_Header=\$ac_header_preproc" | |
19546 fi | |
19547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19549 | |
19550 fi | |
19551 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19552 cat >>confdefs.h <<_ACEOF | |
19553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19554 _ACEOF | |
19555 | |
19556 fi | |
19557 | |
19558 done | |
19559 | |
19560 | |
19561 | |
19562 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
19563 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
19564 if test "${ac_cv_c_const+set}" = set; then | |
19565 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19566 else | |
19567 cat >conftest.$ac_ext <<_ACEOF | |
19568 /* confdefs.h. */ | |
19569 _ACEOF | |
19570 cat confdefs.h >>conftest.$ac_ext | |
19571 cat >>conftest.$ac_ext <<_ACEOF | |
19572 /* end confdefs.h. */ | |
19573 | |
19574 int | |
19575 main () | |
19576 { | |
19577 /* FIXME: Include the comments suggested by Paul. */ | |
19578 #ifndef __cplusplus | |
19579 /* Ultrix mips cc rejects this. */ | |
19580 typedef int charset[2]; | |
19581 const charset x; | |
19582 /* SunOS 4.1.1 cc rejects this. */ | |
19583 char const *const *ccp; | |
19584 char **p; | |
19585 /* NEC SVR4.0.2 mips cc rejects this. */ | |
19586 struct point {int x, y;}; | |
19587 static struct point const zero = {0,0}; | |
19588 /* AIX XL C 1.02.0.0 rejects this. | |
19589 It does not let you subtract one const X* pointer from another in | |
19590 an arm of an if-expression whose if-part is not a constant | |
19591 expression */ | |
19592 const char *g = "string"; | |
19593 ccp = &g + (g ? g-g : 0); | |
19594 /* HPUX 7.0 cc rejects these. */ | |
19595 ++ccp; | |
19596 p = (char**) ccp; | |
19597 ccp = (char const *const *) p; | |
19598 { /* SCO 3.2v4 cc rejects this. */ | |
19599 char *t; | |
19600 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
19601 | |
19602 *t++ = 0; | |
19603 } | |
19604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
19605 int x[] = {25, 17}; | |
19606 const int *foo = &x[0]; | |
19607 ++foo; | |
19608 } | |
19609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
19610 typedef const int *iptr; | |
19611 iptr p = 0; | |
19612 ++p; | |
19613 } | |
19614 { /* AIX XL C 1.02.0.0 rejects this saying | |
19615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
19616 struct s { int j; const int *ap[3]; }; | |
19617 struct s *b; b->j = 5; | |
19618 } | |
19619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
19620 const int foo = 10; | |
19621 } | |
19622 #endif | |
19623 | |
19624 ; | |
19625 return 0; | |
19626 } | |
19627 _ACEOF | |
19628 rm -f conftest.$ac_objext | |
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19630 (eval $ac_compile) 2>conftest.er1 | |
19631 ac_status=$? | |
19632 grep -v '^ *+' conftest.er1 >conftest.err | |
19633 rm -f conftest.er1 | |
19634 cat conftest.err >&5 | |
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19636 (exit $ac_status); } && | |
19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19639 (eval $ac_try) 2>&5 | |
19640 ac_status=$? | |
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19642 (exit $ac_status); }; } && | |
19643 { ac_try='test -s conftest.$ac_objext' | |
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19645 (eval $ac_try) 2>&5 | |
19646 ac_status=$? | |
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19648 (exit $ac_status); }; }; then | |
19649 ac_cv_c_const=yes | |
19650 else | |
19651 echo "$as_me: failed program was:" >&5 | |
19652 sed 's/^/| /' conftest.$ac_ext >&5 | |
19653 | |
19654 ac_cv_c_const=no | |
19655 fi | |
19656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19657 fi | |
19658 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
19659 echo "${ECHO_T}$ac_cv_c_const" >&6 | |
19660 if test $ac_cv_c_const = no; then | |
19661 | |
19662 cat >>confdefs.h <<\_ACEOF | |
19663 #define const | |
19664 _ACEOF | |
19665 | |
19666 fi | |
19667 | |
19668 echo "$as_me:$LINENO: checking for inline" >&5 | |
19669 echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
19670 if test "${ac_cv_c_inline+set}" = set; then | |
19671 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19672 else | |
19673 ac_cv_c_inline=no | |
19674 for ac_kw in inline __inline__ __inline; do | |
19675 cat >conftest.$ac_ext <<_ACEOF | |
19676 /* confdefs.h. */ | |
19677 _ACEOF | |
19678 cat confdefs.h >>conftest.$ac_ext | |
19679 cat >>conftest.$ac_ext <<_ACEOF | |
19680 /* end confdefs.h. */ | |
19681 #ifndef __cplusplus | |
19682 typedef int foo_t; | |
19683 static $ac_kw foo_t static_foo () {return 0; } | |
19684 $ac_kw foo_t foo () {return 0; } | |
19685 #endif | |
19686 | |
19687 _ACEOF | |
19688 rm -f conftest.$ac_objext | |
19689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19690 (eval $ac_compile) 2>conftest.er1 | |
19691 ac_status=$? | |
19692 grep -v '^ *+' conftest.er1 >conftest.err | |
19693 rm -f conftest.er1 | |
19694 cat conftest.err >&5 | |
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19696 (exit $ac_status); } && | |
19697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19699 (eval $ac_try) 2>&5 | |
19700 ac_status=$? | |
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19702 (exit $ac_status); }; } && | |
19703 { ac_try='test -s conftest.$ac_objext' | |
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19705 (eval $ac_try) 2>&5 | |
19706 ac_status=$? | |
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19708 (exit $ac_status); }; }; then | |
19709 ac_cv_c_inline=$ac_kw; break | |
19710 else | |
19711 echo "$as_me: failed program was:" >&5 | |
19712 sed 's/^/| /' conftest.$ac_ext >&5 | |
19713 | |
19714 fi | |
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19716 done | |
19717 | |
19718 fi | |
19719 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
19720 echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
19721 | |
19722 | |
19723 case $ac_cv_c_inline in | |
19724 inline | yes) ;; | |
19725 *) | |
19726 case $ac_cv_c_inline in | |
19727 no) ac_val=;; | |
19728 *) ac_val=$ac_cv_c_inline;; | |
19729 esac | |
19730 cat >>confdefs.h <<_ACEOF | |
19731 #ifndef __cplusplus | |
19732 #define inline $ac_val | |
19733 #endif | |
19734 _ACEOF | |
19735 ;; | |
19736 esac | |
19737 | |
19738 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
19739 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
19740 if test "${ac_cv_c_bigendian+set}" = set; then | |
19741 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19742 else | |
19743 # See if sys/param.h defines the BYTE_ORDER macro. | |
19744 cat >conftest.$ac_ext <<_ACEOF | |
19745 /* confdefs.h. */ | |
19746 _ACEOF | |
19747 cat confdefs.h >>conftest.$ac_ext | |
19748 cat >>conftest.$ac_ext <<_ACEOF | |
19749 /* end confdefs.h. */ | |
19750 #include <sys/types.h> | |
19751 #include <sys/param.h> | |
19752 | |
19753 int | |
19754 main () | |
19755 { | |
19756 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
19757 bogus endian macros | |
19758 #endif | |
19759 | |
19760 ; | |
19761 return 0; | |
19762 } | |
19763 _ACEOF | |
19764 rm -f conftest.$ac_objext | |
19765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19766 (eval $ac_compile) 2>conftest.er1 | |
19767 ac_status=$? | |
19768 grep -v '^ *+' conftest.er1 >conftest.err | |
19769 rm -f conftest.er1 | |
19770 cat conftest.err >&5 | |
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19772 (exit $ac_status); } && | |
19773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19775 (eval $ac_try) 2>&5 | |
19776 ac_status=$? | |
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19778 (exit $ac_status); }; } && | |
19779 { ac_try='test -s conftest.$ac_objext' | |
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19781 (eval $ac_try) 2>&5 | |
19782 ac_status=$? | |
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19784 (exit $ac_status); }; }; then | |
19785 # It does; now see whether it defined to BIG_ENDIAN or not. | |
19786 cat >conftest.$ac_ext <<_ACEOF | |
19787 /* confdefs.h. */ | |
19788 _ACEOF | |
19789 cat confdefs.h >>conftest.$ac_ext | |
19790 cat >>conftest.$ac_ext <<_ACEOF | |
19791 /* end confdefs.h. */ | |
19792 #include <sys/types.h> | |
19793 #include <sys/param.h> | |
19794 | |
19795 int | |
19796 main () | |
19797 { | |
19798 #if BYTE_ORDER != BIG_ENDIAN | |
19799 not big endian | |
19800 #endif | |
19801 | |
19802 ; | |
19803 return 0; | |
19804 } | |
19805 _ACEOF | |
19806 rm -f conftest.$ac_objext | |
19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19808 (eval $ac_compile) 2>conftest.er1 | |
19809 ac_status=$? | |
19810 grep -v '^ *+' conftest.er1 >conftest.err | |
19811 rm -f conftest.er1 | |
19812 cat conftest.err >&5 | |
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19814 (exit $ac_status); } && | |
19815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19817 (eval $ac_try) 2>&5 | |
19818 ac_status=$? | |
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19820 (exit $ac_status); }; } && | |
19821 { ac_try='test -s conftest.$ac_objext' | |
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19823 (eval $ac_try) 2>&5 | |
19824 ac_status=$? | |
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19826 (exit $ac_status); }; }; then | |
19827 ac_cv_c_bigendian=yes | |
19828 else | |
19829 echo "$as_me: failed program was:" >&5 | |
19830 sed 's/^/| /' conftest.$ac_ext >&5 | |
19831 | |
19832 ac_cv_c_bigendian=no | |
19833 fi | |
19834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19835 else | |
19836 echo "$as_me: failed program was:" >&5 | |
19837 sed 's/^/| /' conftest.$ac_ext >&5 | |
19838 | |
19839 # It does not; compile a test program. | |
19840 if test "$cross_compiling" = yes; then | |
19841 # try to guess the endianness by grepping values into an object file | |
19842 ac_cv_c_bigendian=unknown | |
19843 cat >conftest.$ac_ext <<_ACEOF | |
19844 /* confdefs.h. */ | |
19845 _ACEOF | |
19846 cat confdefs.h >>conftest.$ac_ext | |
19847 cat >>conftest.$ac_ext <<_ACEOF | |
19848 /* end confdefs.h. */ | |
19849 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
19850 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
19851 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
19852 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
19853 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
19854 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
19855 int | |
19856 main () | |
19857 { | |
19858 _ascii (); _ebcdic (); | |
19859 ; | |
19860 return 0; | |
19861 } | |
19862 _ACEOF | |
19863 rm -f conftest.$ac_objext | |
19864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19865 (eval $ac_compile) 2>conftest.er1 | |
19866 ac_status=$? | |
19867 grep -v '^ *+' conftest.er1 >conftest.err | |
19868 rm -f conftest.er1 | |
19869 cat conftest.err >&5 | |
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19871 (exit $ac_status); } && | |
19872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19874 (eval $ac_try) 2>&5 | |
19875 ac_status=$? | |
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19877 (exit $ac_status); }; } && | |
19878 { ac_try='test -s conftest.$ac_objext' | |
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19880 (eval $ac_try) 2>&5 | |
19881 ac_status=$? | |
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19883 (exit $ac_status); }; }; then | |
19884 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
19885 ac_cv_c_bigendian=yes | |
19886 fi | |
19887 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
19888 if test "$ac_cv_c_bigendian" = unknown; then | |
19889 ac_cv_c_bigendian=no | |
19890 else | |
19891 # finding both strings is unlikely to happen, but who knows? | |
19892 ac_cv_c_bigendian=unknown | |
19893 fi | |
19894 fi | |
19895 else | |
19896 echo "$as_me: failed program was:" >&5 | |
19897 sed 's/^/| /' conftest.$ac_ext >&5 | |
19898 | |
19899 fi | |
19900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19901 else | |
19902 cat >conftest.$ac_ext <<_ACEOF | |
19903 /* confdefs.h. */ | |
19904 _ACEOF | |
19905 cat confdefs.h >>conftest.$ac_ext | |
19906 cat >>conftest.$ac_ext <<_ACEOF | |
19907 /* end confdefs.h. */ | |
19908 int | |
19909 main () | |
19910 { | |
19911 /* Are we little or big endian? From Harbison&Steele. */ | |
19912 union | |
19913 { | |
19914 long l; | |
19915 char c[sizeof (long)]; | |
19916 } u; | |
19917 u.l = 1; | |
19918 exit (u.c[sizeof (long) - 1] == 1); | |
19919 } | |
19920 _ACEOF | |
19921 rm -f conftest$ac_exeext | |
19922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19923 (eval $ac_link) 2>&5 | |
19924 ac_status=$? | |
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19928 (eval $ac_try) 2>&5 | |
19929 ac_status=$? | |
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19931 (exit $ac_status); }; }; then | |
19932 ac_cv_c_bigendian=no | |
19933 else | |
19934 echo "$as_me: program exited with status $ac_status" >&5 | |
19935 echo "$as_me: failed program was:" >&5 | |
19936 sed 's/^/| /' conftest.$ac_ext >&5 | |
19937 | |
19938 ( exit $ac_status ) | |
19939 ac_cv_c_bigendian=yes | |
19940 fi | |
19941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19942 fi | |
19943 fi | |
19944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19945 fi | |
19946 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
19947 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
19948 case $ac_cv_c_bigendian in | |
19949 yes) | |
19950 | |
19951 cat >>confdefs.h <<\_ACEOF | |
19952 #define WORDS_BIGENDIAN 1 | |
19953 _ACEOF | |
19954 ;; | |
19955 no) | |
19956 ;; | |
19957 *) | |
19958 { { echo "$as_me:$LINENO: error: unknown endianness | |
19959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
19960 echo "$as_me: error: unknown endianness | |
19961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
19962 { (exit 1); exit 1; }; } ;; | |
19963 esac | |
19964 | |
19965 echo "$as_me:$LINENO: checking for pid_t" >&5 | |
19966 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
19967 if test "${ac_cv_type_pid_t+set}" = set; then | |
19968 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19969 else | |
19970 cat >conftest.$ac_ext <<_ACEOF | |
19971 /* confdefs.h. */ | |
19972 _ACEOF | |
19973 cat confdefs.h >>conftest.$ac_ext | |
19974 cat >>conftest.$ac_ext <<_ACEOF | |
19975 /* end confdefs.h. */ | |
19976 $ac_includes_default | |
19977 int | |
19978 main () | |
19979 { | |
19980 if ((pid_t *) 0) | |
19981 return 0; | |
19982 if (sizeof (pid_t)) | |
19983 return 0; | |
19984 ; | |
19985 return 0; | |
19986 } | |
19987 _ACEOF | |
19988 rm -f conftest.$ac_objext | |
19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19990 (eval $ac_compile) 2>conftest.er1 | |
19991 ac_status=$? | |
19992 grep -v '^ *+' conftest.er1 >conftest.err | |
19993 rm -f conftest.er1 | |
19994 cat conftest.err >&5 | |
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19996 (exit $ac_status); } && | |
19997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19999 (eval $ac_try) 2>&5 | |
20000 ac_status=$? | |
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20002 (exit $ac_status); }; } && | |
20003 { ac_try='test -s conftest.$ac_objext' | |
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20005 (eval $ac_try) 2>&5 | |
20006 ac_status=$? | |
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20008 (exit $ac_status); }; }; then | |
20009 ac_cv_type_pid_t=yes | |
20010 else | |
20011 echo "$as_me: failed program was:" >&5 | |
20012 sed 's/^/| /' conftest.$ac_ext >&5 | |
20013 | |
20014 ac_cv_type_pid_t=no | |
20015 fi | |
20016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20017 fi | |
20018 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
20019 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
20020 if test $ac_cv_type_pid_t = yes; then | |
20021 : | |
20022 else | |
20023 | |
20024 cat >>confdefs.h <<_ACEOF | |
20025 #define pid_t int | |
20026 _ACEOF | |
20027 | |
20028 fi | |
20029 | |
20030 | |
20031 echo "$as_me:$LINENO: checking for int" >&5 | |
20032 echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
20033 if test "${ac_cv_type_int+set}" = set; then | |
20034 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20035 else | |
20036 cat >conftest.$ac_ext <<_ACEOF | |
20037 /* confdefs.h. */ | |
20038 _ACEOF | |
20039 cat confdefs.h >>conftest.$ac_ext | |
20040 cat >>conftest.$ac_ext <<_ACEOF | |
20041 /* end confdefs.h. */ | |
20042 $ac_includes_default | |
20043 int | |
20044 main () | |
20045 { | |
20046 if ((int *) 0) | |
20047 return 0; | |
20048 if (sizeof (int)) | |
20049 return 0; | |
20050 ; | |
20051 return 0; | |
20052 } | |
20053 _ACEOF | |
20054 rm -f conftest.$ac_objext | |
20055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20056 (eval $ac_compile) 2>conftest.er1 | |
20057 ac_status=$? | |
20058 grep -v '^ *+' conftest.er1 >conftest.err | |
20059 rm -f conftest.er1 | |
20060 cat conftest.err >&5 | |
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20062 (exit $ac_status); } && | |
20063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20065 (eval $ac_try) 2>&5 | |
20066 ac_status=$? | |
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20068 (exit $ac_status); }; } && | |
20069 { ac_try='test -s conftest.$ac_objext' | |
20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20071 (eval $ac_try) 2>&5 | |
20072 ac_status=$? | |
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20074 (exit $ac_status); }; }; then | |
20075 ac_cv_type_int=yes | |
20076 else | |
20077 echo "$as_me: failed program was:" >&5 | |
20078 sed 's/^/| /' conftest.$ac_ext >&5 | |
20079 | |
20080 ac_cv_type_int=no | |
20081 fi | |
20082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20083 fi | |
20084 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
20085 echo "${ECHO_T}$ac_cv_type_int" >&6 | |
20086 | |
20087 echo "$as_me:$LINENO: checking size of int" >&5 | |
20088 echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
20089 if test "${ac_cv_sizeof_int+set}" = set; then | |
20090 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20091 else | |
20092 if test "$ac_cv_type_int" = yes; then | |
20093 # The cast to unsigned long works around a bug in the HP C Compiler | |
20094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20096 # This bug is HP SR number 8606223364. | |
20097 if test "$cross_compiling" = yes; then | |
20098 # Depending upon the size, compute the lo and hi bounds. | |
20099 cat >conftest.$ac_ext <<_ACEOF | |
20100 /* confdefs.h. */ | |
20101 _ACEOF | |
20102 cat confdefs.h >>conftest.$ac_ext | |
20103 cat >>conftest.$ac_ext <<_ACEOF | |
20104 /* end confdefs.h. */ | |
20105 $ac_includes_default | |
20106 int | |
20107 main () | |
20108 { | |
20109 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
20110 test_array [0] = 0 | |
20111 | |
20112 ; | |
20113 return 0; | |
20114 } | |
20115 _ACEOF | |
20116 rm -f conftest.$ac_objext | |
20117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20118 (eval $ac_compile) 2>conftest.er1 | |
20119 ac_status=$? | |
20120 grep -v '^ *+' conftest.er1 >conftest.err | |
20121 rm -f conftest.er1 | |
20122 cat conftest.err >&5 | |
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20124 (exit $ac_status); } && | |
20125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20127 (eval $ac_try) 2>&5 | |
20128 ac_status=$? | |
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20130 (exit $ac_status); }; } && | |
20131 { ac_try='test -s conftest.$ac_objext' | |
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20133 (eval $ac_try) 2>&5 | |
20134 ac_status=$? | |
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20136 (exit $ac_status); }; }; then | |
20137 ac_lo=0 ac_mid=0 | |
20138 while :; do | |
20139 cat >conftest.$ac_ext <<_ACEOF | |
20140 /* confdefs.h. */ | |
20141 _ACEOF | |
20142 cat confdefs.h >>conftest.$ac_ext | |
20143 cat >>conftest.$ac_ext <<_ACEOF | |
20144 /* end confdefs.h. */ | |
20145 $ac_includes_default | |
20146 int | |
20147 main () | |
20148 { | |
20149 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
20150 test_array [0] = 0 | |
20151 | |
20152 ; | |
20153 return 0; | |
20154 } | |
20155 _ACEOF | |
20156 rm -f conftest.$ac_objext | |
20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20158 (eval $ac_compile) 2>conftest.er1 | |
20159 ac_status=$? | |
20160 grep -v '^ *+' conftest.er1 >conftest.err | |
20161 rm -f conftest.er1 | |
20162 cat conftest.err >&5 | |
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20164 (exit $ac_status); } && | |
20165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20167 (eval $ac_try) 2>&5 | |
20168 ac_status=$? | |
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20170 (exit $ac_status); }; } && | |
20171 { ac_try='test -s conftest.$ac_objext' | |
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20173 (eval $ac_try) 2>&5 | |
20174 ac_status=$? | |
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20176 (exit $ac_status); }; }; then | |
20177 ac_hi=$ac_mid; break | |
20178 else | |
20179 echo "$as_me: failed program was:" >&5 | |
20180 sed 's/^/| /' conftest.$ac_ext >&5 | |
20181 | |
20182 ac_lo=`expr $ac_mid + 1` | |
20183 if test $ac_lo -le $ac_mid; then | |
20184 ac_lo= ac_hi= | |
20185 break | |
20186 fi | |
20187 ac_mid=`expr 2 '*' $ac_mid + 1` | |
20188 fi | |
20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20190 done | |
20191 else | |
20192 echo "$as_me: failed program was:" >&5 | |
20193 sed 's/^/| /' conftest.$ac_ext >&5 | |
20194 | |
20195 cat >conftest.$ac_ext <<_ACEOF | |
20196 /* confdefs.h. */ | |
20197 _ACEOF | |
20198 cat confdefs.h >>conftest.$ac_ext | |
20199 cat >>conftest.$ac_ext <<_ACEOF | |
20200 /* end confdefs.h. */ | |
20201 $ac_includes_default | |
20202 int | |
20203 main () | |
20204 { | |
20205 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
20206 test_array [0] = 0 | |
20207 | |
20208 ; | |
20209 return 0; | |
20210 } | |
20211 _ACEOF | |
20212 rm -f conftest.$ac_objext | |
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20214 (eval $ac_compile) 2>conftest.er1 | |
20215 ac_status=$? | |
20216 grep -v '^ *+' conftest.er1 >conftest.err | |
20217 rm -f conftest.er1 | |
20218 cat conftest.err >&5 | |
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20220 (exit $ac_status); } && | |
20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20223 (eval $ac_try) 2>&5 | |
20224 ac_status=$? | |
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20226 (exit $ac_status); }; } && | |
20227 { ac_try='test -s conftest.$ac_objext' | |
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20229 (eval $ac_try) 2>&5 | |
20230 ac_status=$? | |
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20232 (exit $ac_status); }; }; then | |
20233 ac_hi=-1 ac_mid=-1 | |
20234 while :; do | |
20235 cat >conftest.$ac_ext <<_ACEOF | |
20236 /* confdefs.h. */ | |
20237 _ACEOF | |
20238 cat confdefs.h >>conftest.$ac_ext | |
20239 cat >>conftest.$ac_ext <<_ACEOF | |
20240 /* end confdefs.h. */ | |
20241 $ac_includes_default | |
20242 int | |
20243 main () | |
20244 { | |
20245 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
20246 test_array [0] = 0 | |
20247 | |
20248 ; | |
20249 return 0; | |
20250 } | |
20251 _ACEOF | |
20252 rm -f conftest.$ac_objext | |
20253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20254 (eval $ac_compile) 2>conftest.er1 | |
20255 ac_status=$? | |
20256 grep -v '^ *+' conftest.er1 >conftest.err | |
20257 rm -f conftest.er1 | |
20258 cat conftest.err >&5 | |
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20260 (exit $ac_status); } && | |
20261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20263 (eval $ac_try) 2>&5 | |
20264 ac_status=$? | |
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20266 (exit $ac_status); }; } && | |
20267 { ac_try='test -s conftest.$ac_objext' | |
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20269 (eval $ac_try) 2>&5 | |
20270 ac_status=$? | |
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20272 (exit $ac_status); }; }; then | |
20273 ac_lo=$ac_mid; break | |
20274 else | |
20275 echo "$as_me: failed program was:" >&5 | |
20276 sed 's/^/| /' conftest.$ac_ext >&5 | |
20277 | |
20278 ac_hi=`expr '(' $ac_mid ')' - 1` | |
20279 if test $ac_mid -le $ac_hi; then | |
20280 ac_lo= ac_hi= | |
20281 break | |
20282 fi | |
20283 ac_mid=`expr 2 '*' $ac_mid` | |
20284 fi | |
20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20286 done | |
20287 else | |
20288 echo "$as_me: failed program was:" >&5 | |
20289 sed 's/^/| /' conftest.$ac_ext >&5 | |
20290 | |
20291 ac_lo= ac_hi= | |
20292 fi | |
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20294 fi | |
20295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20296 # Binary search between lo and hi bounds. | |
20297 while test "x$ac_lo" != "x$ac_hi"; do | |
20298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20299 cat >conftest.$ac_ext <<_ACEOF | |
20300 /* confdefs.h. */ | |
20301 _ACEOF | |
20302 cat confdefs.h >>conftest.$ac_ext | |
20303 cat >>conftest.$ac_ext <<_ACEOF | |
20304 /* end confdefs.h. */ | |
20305 $ac_includes_default | |
20306 int | |
20307 main () | |
20308 { | |
20309 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
20310 test_array [0] = 0 | |
20311 | |
20312 ; | |
20313 return 0; | |
20314 } | |
20315 _ACEOF | |
20316 rm -f conftest.$ac_objext | |
20317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20318 (eval $ac_compile) 2>conftest.er1 | |
20319 ac_status=$? | |
20320 grep -v '^ *+' conftest.er1 >conftest.err | |
20321 rm -f conftest.er1 | |
20322 cat conftest.err >&5 | |
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20324 (exit $ac_status); } && | |
20325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20327 (eval $ac_try) 2>&5 | |
20328 ac_status=$? | |
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20330 (exit $ac_status); }; } && | |
20331 { ac_try='test -s conftest.$ac_objext' | |
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20333 (eval $ac_try) 2>&5 | |
20334 ac_status=$? | |
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20336 (exit $ac_status); }; }; then | |
20337 ac_hi=$ac_mid | |
20338 else | |
20339 echo "$as_me: failed program was:" >&5 | |
20340 sed 's/^/| /' conftest.$ac_ext >&5 | |
20341 | |
20342 ac_lo=`expr '(' $ac_mid ')' + 1` | |
20343 fi | |
20344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20345 done | |
20346 case $ac_lo in | |
20347 ?*) ac_cv_sizeof_int=$ac_lo;; | |
20348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
20349 See \`config.log' for more details." >&5 | |
20350 echo "$as_me: error: cannot compute sizeof (int), 77 | |
20351 See \`config.log' for more details." >&2;} | |
20352 { (exit 1); exit 1; }; } ;; | |
20353 esac | |
20354 else | |
20355 if test "$cross_compiling" = yes; then | |
20356 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
20357 echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
20358 { (exit 1); exit 1; }; } | |
20359 else | |
20360 cat >conftest.$ac_ext <<_ACEOF | |
20361 /* confdefs.h. */ | |
20362 _ACEOF | |
20363 cat confdefs.h >>conftest.$ac_ext | |
20364 cat >>conftest.$ac_ext <<_ACEOF | |
20365 /* end confdefs.h. */ | |
20366 $ac_includes_default | |
20367 long longval () { return (long) (sizeof (int)); } | |
20368 unsigned long ulongval () { return (long) (sizeof (int)); } | |
20369 #include <stdio.h> | |
20370 #include <stdlib.h> | |
20371 int | |
20372 main () | |
20373 { | |
20374 | |
20375 FILE *f = fopen ("conftest.val", "w"); | |
20376 if (! f) | |
20377 exit (1); | |
20378 if (((long) (sizeof (int))) < 0) | |
20379 { | |
20380 long i = longval (); | |
20381 if (i != ((long) (sizeof (int)))) | |
20382 exit (1); | |
20383 fprintf (f, "%ld\n", i); | |
20384 } | |
20385 else | |
20386 { | |
20387 unsigned long i = ulongval (); | |
20388 if (i != ((long) (sizeof (int)))) | |
20389 exit (1); | |
20390 fprintf (f, "%lu\n", i); | |
20391 } | |
20392 exit (ferror (f) || fclose (f) != 0); | |
20393 | |
20394 ; | |
20395 return 0; | |
20396 } | |
20397 _ACEOF | |
20398 rm -f conftest$ac_exeext | |
20399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20400 (eval $ac_link) 2>&5 | |
20401 ac_status=$? | |
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20405 (eval $ac_try) 2>&5 | |
20406 ac_status=$? | |
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20408 (exit $ac_status); }; }; then | |
20409 ac_cv_sizeof_int=`cat conftest.val` | |
20410 else | |
20411 echo "$as_me: program exited with status $ac_status" >&5 | |
20412 echo "$as_me: failed program was:" >&5 | |
20413 sed 's/^/| /' conftest.$ac_ext >&5 | |
20414 | |
20415 ( exit $ac_status ) | |
20416 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
20417 See \`config.log' for more details." >&5 | |
20418 echo "$as_me: error: cannot compute sizeof (int), 77 | |
20419 See \`config.log' for more details." >&2;} | |
20420 { (exit 1); exit 1; }; } | |
20421 fi | |
20422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20423 fi | |
20424 fi | |
20425 rm -f conftest.val | |
20426 else | |
20427 ac_cv_sizeof_int=0 | |
20428 fi | |
20429 fi | |
20430 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
20431 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
20432 cat >>confdefs.h <<_ACEOF | |
20433 #define SIZEOF_INT $ac_cv_sizeof_int | |
20434 _ACEOF | |
20435 | |
20436 | |
20437 echo "$as_me:$LINENO: checking for long" >&5 | |
20438 echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
20439 if test "${ac_cv_type_long+set}" = set; then | |
20440 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20441 else | |
20442 cat >conftest.$ac_ext <<_ACEOF | |
20443 /* confdefs.h. */ | |
20444 _ACEOF | |
20445 cat confdefs.h >>conftest.$ac_ext | |
20446 cat >>conftest.$ac_ext <<_ACEOF | |
20447 /* end confdefs.h. */ | |
20448 $ac_includes_default | |
20449 int | |
20450 main () | |
20451 { | |
20452 if ((long *) 0) | |
20453 return 0; | |
20454 if (sizeof (long)) | |
20455 return 0; | |
20456 ; | |
20457 return 0; | |
20458 } | |
20459 _ACEOF | |
20460 rm -f conftest.$ac_objext | |
20461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20462 (eval $ac_compile) 2>conftest.er1 | |
20463 ac_status=$? | |
20464 grep -v '^ *+' conftest.er1 >conftest.err | |
20465 rm -f conftest.er1 | |
20466 cat conftest.err >&5 | |
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20468 (exit $ac_status); } && | |
20469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20471 (eval $ac_try) 2>&5 | |
20472 ac_status=$? | |
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20474 (exit $ac_status); }; } && | |
20475 { ac_try='test -s conftest.$ac_objext' | |
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20477 (eval $ac_try) 2>&5 | |
20478 ac_status=$? | |
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20480 (exit $ac_status); }; }; then | |
20481 ac_cv_type_long=yes | |
20482 else | |
20483 echo "$as_me: failed program was:" >&5 | |
20484 sed 's/^/| /' conftest.$ac_ext >&5 | |
20485 | |
20486 ac_cv_type_long=no | |
20487 fi | |
20488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20489 fi | |
20490 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
20491 echo "${ECHO_T}$ac_cv_type_long" >&6 | |
20492 | |
20493 echo "$as_me:$LINENO: checking size of long" >&5 | |
20494 echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
20495 if test "${ac_cv_sizeof_long+set}" = set; then | |
20496 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20497 else | |
20498 if test "$ac_cv_type_long" = yes; then | |
20499 # The cast to unsigned long works around a bug in the HP C Compiler | |
20500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20502 # This bug is HP SR number 8606223364. | |
20503 if test "$cross_compiling" = yes; then | |
20504 # Depending upon the size, compute the lo and hi bounds. | |
20505 cat >conftest.$ac_ext <<_ACEOF | |
20506 /* confdefs.h. */ | |
20507 _ACEOF | |
20508 cat confdefs.h >>conftest.$ac_ext | |
20509 cat >>conftest.$ac_ext <<_ACEOF | |
20510 /* end confdefs.h. */ | |
20511 $ac_includes_default | |
20512 int | |
20513 main () | |
20514 { | |
20515 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
20516 test_array [0] = 0 | |
20517 | |
20518 ; | |
20519 return 0; | |
20520 } | |
20521 _ACEOF | |
20522 rm -f conftest.$ac_objext | |
20523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20524 (eval $ac_compile) 2>conftest.er1 | |
20525 ac_status=$? | |
20526 grep -v '^ *+' conftest.er1 >conftest.err | |
20527 rm -f conftest.er1 | |
20528 cat conftest.err >&5 | |
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20530 (exit $ac_status); } && | |
20531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20533 (eval $ac_try) 2>&5 | |
20534 ac_status=$? | |
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20536 (exit $ac_status); }; } && | |
20537 { ac_try='test -s conftest.$ac_objext' | |
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20539 (eval $ac_try) 2>&5 | |
20540 ac_status=$? | |
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20542 (exit $ac_status); }; }; then | |
20543 ac_lo=0 ac_mid=0 | |
20544 while :; do | |
20545 cat >conftest.$ac_ext <<_ACEOF | |
20546 /* confdefs.h. */ | |
20547 _ACEOF | |
20548 cat confdefs.h >>conftest.$ac_ext | |
20549 cat >>conftest.$ac_ext <<_ACEOF | |
20550 /* end confdefs.h. */ | |
20551 $ac_includes_default | |
20552 int | |
20553 main () | |
20554 { | |
20555 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
20556 test_array [0] = 0 | |
20557 | |
20558 ; | |
20559 return 0; | |
20560 } | |
20561 _ACEOF | |
20562 rm -f conftest.$ac_objext | |
20563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20564 (eval $ac_compile) 2>conftest.er1 | |
20565 ac_status=$? | |
20566 grep -v '^ *+' conftest.er1 >conftest.err | |
20567 rm -f conftest.er1 | |
20568 cat conftest.err >&5 | |
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20570 (exit $ac_status); } && | |
20571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20573 (eval $ac_try) 2>&5 | |
20574 ac_status=$? | |
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20576 (exit $ac_status); }; } && | |
20577 { ac_try='test -s conftest.$ac_objext' | |
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20579 (eval $ac_try) 2>&5 | |
20580 ac_status=$? | |
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20582 (exit $ac_status); }; }; then | |
20583 ac_hi=$ac_mid; break | |
20584 else | |
20585 echo "$as_me: failed program was:" >&5 | |
20586 sed 's/^/| /' conftest.$ac_ext >&5 | |
20587 | |
20588 ac_lo=`expr $ac_mid + 1` | |
20589 if test $ac_lo -le $ac_mid; then | |
20590 ac_lo= ac_hi= | |
20591 break | |
20592 fi | |
20593 ac_mid=`expr 2 '*' $ac_mid + 1` | |
20594 fi | |
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20596 done | |
20597 else | |
20598 echo "$as_me: failed program was:" >&5 | |
20599 sed 's/^/| /' conftest.$ac_ext >&5 | |
20600 | |
20601 cat >conftest.$ac_ext <<_ACEOF | |
20602 /* confdefs.h. */ | |
20603 _ACEOF | |
20604 cat confdefs.h >>conftest.$ac_ext | |
20605 cat >>conftest.$ac_ext <<_ACEOF | |
20606 /* end confdefs.h. */ | |
20607 $ac_includes_default | |
20608 int | |
20609 main () | |
20610 { | |
20611 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
20612 test_array [0] = 0 | |
20613 | |
20614 ; | |
20615 return 0; | |
20616 } | |
20617 _ACEOF | |
20618 rm -f conftest.$ac_objext | |
20619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20620 (eval $ac_compile) 2>conftest.er1 | |
20621 ac_status=$? | |
20622 grep -v '^ *+' conftest.er1 >conftest.err | |
20623 rm -f conftest.er1 | |
20624 cat conftest.err >&5 | |
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20626 (exit $ac_status); } && | |
20627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20629 (eval $ac_try) 2>&5 | |
20630 ac_status=$? | |
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20632 (exit $ac_status); }; } && | |
20633 { ac_try='test -s conftest.$ac_objext' | |
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20635 (eval $ac_try) 2>&5 | |
20636 ac_status=$? | |
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20638 (exit $ac_status); }; }; then | |
20639 ac_hi=-1 ac_mid=-1 | |
20640 while :; do | |
20641 cat >conftest.$ac_ext <<_ACEOF | |
20642 /* confdefs.h. */ | |
20643 _ACEOF | |
20644 cat confdefs.h >>conftest.$ac_ext | |
20645 cat >>conftest.$ac_ext <<_ACEOF | |
20646 /* end confdefs.h. */ | |
20647 $ac_includes_default | |
20648 int | |
20649 main () | |
20650 { | |
20651 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
20652 test_array [0] = 0 | |
20653 | |
20654 ; | |
20655 return 0; | |
20656 } | |
20657 _ACEOF | |
20658 rm -f conftest.$ac_objext | |
20659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20660 (eval $ac_compile) 2>conftest.er1 | |
20661 ac_status=$? | |
20662 grep -v '^ *+' conftest.er1 >conftest.err | |
20663 rm -f conftest.er1 | |
20664 cat conftest.err >&5 | |
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20666 (exit $ac_status); } && | |
20667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20669 (eval $ac_try) 2>&5 | |
20670 ac_status=$? | |
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20672 (exit $ac_status); }; } && | |
20673 { ac_try='test -s conftest.$ac_objext' | |
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20675 (eval $ac_try) 2>&5 | |
20676 ac_status=$? | |
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20678 (exit $ac_status); }; }; then | |
20679 ac_lo=$ac_mid; break | |
20680 else | |
20681 echo "$as_me: failed program was:" >&5 | |
20682 sed 's/^/| /' conftest.$ac_ext >&5 | |
20683 | |
20684 ac_hi=`expr '(' $ac_mid ')' - 1` | |
20685 if test $ac_mid -le $ac_hi; then | |
20686 ac_lo= ac_hi= | |
20687 break | |
20688 fi | |
20689 ac_mid=`expr 2 '*' $ac_mid` | |
20690 fi | |
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20692 done | |
20693 else | |
20694 echo "$as_me: failed program was:" >&5 | |
20695 sed 's/^/| /' conftest.$ac_ext >&5 | |
20696 | |
20697 ac_lo= ac_hi= | |
20698 fi | |
20699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20700 fi | |
20701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20702 # Binary search between lo and hi bounds. | |
20703 while test "x$ac_lo" != "x$ac_hi"; do | |
20704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20705 cat >conftest.$ac_ext <<_ACEOF | |
20706 /* confdefs.h. */ | |
20707 _ACEOF | |
20708 cat confdefs.h >>conftest.$ac_ext | |
20709 cat >>conftest.$ac_ext <<_ACEOF | |
20710 /* end confdefs.h. */ | |
20711 $ac_includes_default | |
20712 int | |
20713 main () | |
20714 { | |
20715 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
20716 test_array [0] = 0 | |
20717 | |
20718 ; | |
20719 return 0; | |
20720 } | |
20721 _ACEOF | |
20722 rm -f conftest.$ac_objext | |
20723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20724 (eval $ac_compile) 2>conftest.er1 | |
20725 ac_status=$? | |
20726 grep -v '^ *+' conftest.er1 >conftest.err | |
20727 rm -f conftest.er1 | |
20728 cat conftest.err >&5 | |
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20730 (exit $ac_status); } && | |
20731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20733 (eval $ac_try) 2>&5 | |
20734 ac_status=$? | |
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20736 (exit $ac_status); }; } && | |
20737 { ac_try='test -s conftest.$ac_objext' | |
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20739 (eval $ac_try) 2>&5 | |
20740 ac_status=$? | |
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20742 (exit $ac_status); }; }; then | |
20743 ac_hi=$ac_mid | |
20744 else | |
20745 echo "$as_me: failed program was:" >&5 | |
20746 sed 's/^/| /' conftest.$ac_ext >&5 | |
20747 | |
20748 ac_lo=`expr '(' $ac_mid ')' + 1` | |
20749 fi | |
20750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20751 done | |
20752 case $ac_lo in | |
20753 ?*) ac_cv_sizeof_long=$ac_lo;; | |
20754 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
20755 See \`config.log' for more details." >&5 | |
20756 echo "$as_me: error: cannot compute sizeof (long), 77 | |
20757 See \`config.log' for more details." >&2;} | |
20758 { (exit 1); exit 1; }; } ;; | |
20759 esac | |
20760 else | |
20761 if test "$cross_compiling" = yes; then | |
20762 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
20763 echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
20764 { (exit 1); exit 1; }; } | |
20765 else | |
20766 cat >conftest.$ac_ext <<_ACEOF | |
20767 /* confdefs.h. */ | |
20768 _ACEOF | |
20769 cat confdefs.h >>conftest.$ac_ext | |
20770 cat >>conftest.$ac_ext <<_ACEOF | |
20771 /* end confdefs.h. */ | |
20772 $ac_includes_default | |
20773 long longval () { return (long) (sizeof (long)); } | |
20774 unsigned long ulongval () { return (long) (sizeof (long)); } | |
20775 #include <stdio.h> | |
20776 #include <stdlib.h> | |
20777 int | |
20778 main () | |
20779 { | |
20780 | |
20781 FILE *f = fopen ("conftest.val", "w"); | |
20782 if (! f) | |
20783 exit (1); | |
20784 if (((long) (sizeof (long))) < 0) | |
20785 { | |
20786 long i = longval (); | |
20787 if (i != ((long) (sizeof (long)))) | |
20788 exit (1); | |
20789 fprintf (f, "%ld\n", i); | |
20790 } | |
20791 else | |
20792 { | |
20793 unsigned long i = ulongval (); | |
20794 if (i != ((long) (sizeof (long)))) | |
20795 exit (1); | |
20796 fprintf (f, "%lu\n", i); | |
20797 } | |
20798 exit (ferror (f) || fclose (f) != 0); | |
20799 | |
20800 ; | |
20801 return 0; | |
20802 } | |
20803 _ACEOF | |
20804 rm -f conftest$ac_exeext | |
20805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20806 (eval $ac_link) 2>&5 | |
20807 ac_status=$? | |
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20811 (eval $ac_try) 2>&5 | |
20812 ac_status=$? | |
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20814 (exit $ac_status); }; }; then | |
20815 ac_cv_sizeof_long=`cat conftest.val` | |
20816 else | |
20817 echo "$as_me: program exited with status $ac_status" >&5 | |
20818 echo "$as_me: failed program was:" >&5 | |
20819 sed 's/^/| /' conftest.$ac_ext >&5 | |
20820 | |
20821 ( exit $ac_status ) | |
20822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
20823 See \`config.log' for more details." >&5 | |
20824 echo "$as_me: error: cannot compute sizeof (long), 77 | |
20825 See \`config.log' for more details." >&2;} | |
20826 { (exit 1); exit 1; }; } | |
20827 fi | |
20828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20829 fi | |
20830 fi | |
20831 rm -f conftest.val | |
20832 else | |
20833 ac_cv_sizeof_long=0 | |
20834 fi | |
20835 fi | |
20836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
20837 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
20838 cat >>confdefs.h <<_ACEOF | |
20839 #define SIZEOF_LONG $ac_cv_sizeof_long | |
20840 _ACEOF | |
20841 | |
20842 | |
20843 echo "$as_me:$LINENO: checking for long long" >&5 | |
20844 echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20845 if test "${ac_cv_type_long_long+set}" = set; then | |
20846 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20847 else | |
20848 cat >conftest.$ac_ext <<_ACEOF | |
20849 /* confdefs.h. */ | |
20850 _ACEOF | |
20851 cat confdefs.h >>conftest.$ac_ext | |
20852 cat >>conftest.$ac_ext <<_ACEOF | |
20853 /* end confdefs.h. */ | |
20854 $ac_includes_default | |
20855 int | |
20856 main () | |
20857 { | |
20858 if ((long long *) 0) | |
20859 return 0; | |
20860 if (sizeof (long long)) | |
20861 return 0; | |
20862 ; | |
20863 return 0; | |
20864 } | |
20865 _ACEOF | |
20866 rm -f conftest.$ac_objext | |
20867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20868 (eval $ac_compile) 2>conftest.er1 | |
20869 ac_status=$? | |
20870 grep -v '^ *+' conftest.er1 >conftest.err | |
20871 rm -f conftest.er1 | |
20872 cat conftest.err >&5 | |
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20874 (exit $ac_status); } && | |
20875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20877 (eval $ac_try) 2>&5 | |
20878 ac_status=$? | |
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20880 (exit $ac_status); }; } && | |
20881 { ac_try='test -s conftest.$ac_objext' | |
20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20883 (eval $ac_try) 2>&5 | |
20884 ac_status=$? | |
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20886 (exit $ac_status); }; }; then | |
20887 ac_cv_type_long_long=yes | |
20888 else | |
20889 echo "$as_me: failed program was:" >&5 | |
20890 sed 's/^/| /' conftest.$ac_ext >&5 | |
20891 | |
20892 ac_cv_type_long_long=no | |
20893 fi | |
20894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20895 fi | |
20896 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20897 echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20898 | |
20899 echo "$as_me:$LINENO: checking size of long long" >&5 | |
20900 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20901 if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20902 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20903 else | |
20904 if test "$ac_cv_type_long_long" = yes; then | |
20905 # The cast to unsigned long works around a bug in the HP C Compiler | |
20906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20908 # This bug is HP SR number 8606223364. | |
20909 if test "$cross_compiling" = yes; then | |
20910 # Depending upon the size, compute the lo and hi bounds. | |
20911 cat >conftest.$ac_ext <<_ACEOF | |
20912 /* confdefs.h. */ | |
20913 _ACEOF | |
20914 cat confdefs.h >>conftest.$ac_ext | |
20915 cat >>conftest.$ac_ext <<_ACEOF | |
20916 /* end confdefs.h. */ | |
20917 $ac_includes_default | |
20918 int | |
20919 main () | |
20920 { | |
20921 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20922 test_array [0] = 0 | |
20923 | |
20924 ; | |
20925 return 0; | |
20926 } | |
20927 _ACEOF | |
20928 rm -f conftest.$ac_objext | |
20929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20930 (eval $ac_compile) 2>conftest.er1 | |
20931 ac_status=$? | |
20932 grep -v '^ *+' conftest.er1 >conftest.err | |
20933 rm -f conftest.er1 | |
20934 cat conftest.err >&5 | |
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20936 (exit $ac_status); } && | |
20937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20939 (eval $ac_try) 2>&5 | |
20940 ac_status=$? | |
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20942 (exit $ac_status); }; } && | |
20943 { ac_try='test -s conftest.$ac_objext' | |
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20945 (eval $ac_try) 2>&5 | |
20946 ac_status=$? | |
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20948 (exit $ac_status); }; }; then | |
20949 ac_lo=0 ac_mid=0 | |
20950 while :; do | |
20951 cat >conftest.$ac_ext <<_ACEOF | |
20952 /* confdefs.h. */ | |
20953 _ACEOF | |
20954 cat confdefs.h >>conftest.$ac_ext | |
20955 cat >>conftest.$ac_ext <<_ACEOF | |
20956 /* end confdefs.h. */ | |
20957 $ac_includes_default | |
20958 int | |
20959 main () | |
20960 { | |
20961 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20962 test_array [0] = 0 | |
20963 | |
20964 ; | |
20965 return 0; | |
20966 } | |
20967 _ACEOF | |
20968 rm -f conftest.$ac_objext | |
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20970 (eval $ac_compile) 2>conftest.er1 | |
20971 ac_status=$? | |
20972 grep -v '^ *+' conftest.er1 >conftest.err | |
20973 rm -f conftest.er1 | |
20974 cat conftest.err >&5 | |
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20976 (exit $ac_status); } && | |
20977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20979 (eval $ac_try) 2>&5 | |
20980 ac_status=$? | |
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20982 (exit $ac_status); }; } && | |
20983 { ac_try='test -s conftest.$ac_objext' | |
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20985 (eval $ac_try) 2>&5 | |
20986 ac_status=$? | |
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20988 (exit $ac_status); }; }; then | |
20989 ac_hi=$ac_mid; break | |
20990 else | |
20991 echo "$as_me: failed program was:" >&5 | |
20992 sed 's/^/| /' conftest.$ac_ext >&5 | |
20993 | |
20994 ac_lo=`expr $ac_mid + 1` | |
20995 if test $ac_lo -le $ac_mid; then | |
20996 ac_lo= ac_hi= | |
20997 break | |
20998 fi | |
20999 ac_mid=`expr 2 '*' $ac_mid + 1` | |
21000 fi | |
21001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21002 done | |
21003 else | |
21004 echo "$as_me: failed program was:" >&5 | |
21005 sed 's/^/| /' conftest.$ac_ext >&5 | |
21006 | |
21007 cat >conftest.$ac_ext <<_ACEOF | |
21008 /* confdefs.h. */ | |
21009 _ACEOF | |
21010 cat confdefs.h >>conftest.$ac_ext | |
21011 cat >>conftest.$ac_ext <<_ACEOF | |
21012 /* end confdefs.h. */ | |
21013 $ac_includes_default | |
21014 int | |
21015 main () | |
21016 { | |
21017 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
21018 test_array [0] = 0 | |
21019 | |
21020 ; | |
21021 return 0; | |
21022 } | |
21023 _ACEOF | |
21024 rm -f conftest.$ac_objext | |
21025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21026 (eval $ac_compile) 2>conftest.er1 | |
21027 ac_status=$? | |
21028 grep -v '^ *+' conftest.er1 >conftest.err | |
21029 rm -f conftest.er1 | |
21030 cat conftest.err >&5 | |
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21032 (exit $ac_status); } && | |
21033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21035 (eval $ac_try) 2>&5 | |
21036 ac_status=$? | |
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21038 (exit $ac_status); }; } && | |
21039 { ac_try='test -s conftest.$ac_objext' | |
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21041 (eval $ac_try) 2>&5 | |
21042 ac_status=$? | |
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21044 (exit $ac_status); }; }; then | |
21045 ac_hi=-1 ac_mid=-1 | |
21046 while :; do | |
21047 cat >conftest.$ac_ext <<_ACEOF | |
21048 /* confdefs.h. */ | |
21049 _ACEOF | |
21050 cat confdefs.h >>conftest.$ac_ext | |
21051 cat >>conftest.$ac_ext <<_ACEOF | |
21052 /* end confdefs.h. */ | |
21053 $ac_includes_default | |
21054 int | |
21055 main () | |
21056 { | |
21057 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
21058 test_array [0] = 0 | |
21059 | |
21060 ; | |
21061 return 0; | |
21062 } | |
21063 _ACEOF | |
21064 rm -f conftest.$ac_objext | |
21065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21066 (eval $ac_compile) 2>conftest.er1 | |
21067 ac_status=$? | |
21068 grep -v '^ *+' conftest.er1 >conftest.err | |
21069 rm -f conftest.er1 | |
21070 cat conftest.err >&5 | |
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21072 (exit $ac_status); } && | |
21073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21075 (eval $ac_try) 2>&5 | |
21076 ac_status=$? | |
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21078 (exit $ac_status); }; } && | |
21079 { ac_try='test -s conftest.$ac_objext' | |
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21081 (eval $ac_try) 2>&5 | |
21082 ac_status=$? | |
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21084 (exit $ac_status); }; }; then | |
21085 ac_lo=$ac_mid; break | |
21086 else | |
21087 echo "$as_me: failed program was:" >&5 | |
21088 sed 's/^/| /' conftest.$ac_ext >&5 | |
21089 | |
21090 ac_hi=`expr '(' $ac_mid ')' - 1` | |
21091 if test $ac_mid -le $ac_hi; then | |
21092 ac_lo= ac_hi= | |
21093 break | |
21094 fi | |
21095 ac_mid=`expr 2 '*' $ac_mid` | |
21096 fi | |
21097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21098 done | |
21099 else | |
21100 echo "$as_me: failed program was:" >&5 | |
21101 sed 's/^/| /' conftest.$ac_ext >&5 | |
21102 | |
21103 ac_lo= ac_hi= | |
21104 fi | |
21105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21106 fi | |
21107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21108 # Binary search between lo and hi bounds. | |
21109 while test "x$ac_lo" != "x$ac_hi"; do | |
21110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21111 cat >conftest.$ac_ext <<_ACEOF | |
21112 /* confdefs.h. */ | |
21113 _ACEOF | |
21114 cat confdefs.h >>conftest.$ac_ext | |
21115 cat >>conftest.$ac_ext <<_ACEOF | |
21116 /* end confdefs.h. */ | |
21117 $ac_includes_default | |
21118 int | |
21119 main () | |
21120 { | |
21121 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21122 test_array [0] = 0 | |
21123 | |
21124 ; | |
21125 return 0; | |
21126 } | |
21127 _ACEOF | |
21128 rm -f conftest.$ac_objext | |
21129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21130 (eval $ac_compile) 2>conftest.er1 | |
21131 ac_status=$? | |
21132 grep -v '^ *+' conftest.er1 >conftest.err | |
21133 rm -f conftest.er1 | |
21134 cat conftest.err >&5 | |
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21136 (exit $ac_status); } && | |
21137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21139 (eval $ac_try) 2>&5 | |
21140 ac_status=$? | |
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21142 (exit $ac_status); }; } && | |
21143 { ac_try='test -s conftest.$ac_objext' | |
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21145 (eval $ac_try) 2>&5 | |
21146 ac_status=$? | |
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21148 (exit $ac_status); }; }; then | |
21149 ac_hi=$ac_mid | |
21150 else | |
21151 echo "$as_me: failed program was:" >&5 | |
21152 sed 's/^/| /' conftest.$ac_ext >&5 | |
21153 | |
21154 ac_lo=`expr '(' $ac_mid ')' + 1` | |
21155 fi | |
21156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21157 done | |
21158 case $ac_lo in | |
21159 ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21160 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21161 See \`config.log' for more details." >&5 | |
21162 echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21163 See \`config.log' for more details." >&2;} | |
21164 { (exit 1); exit 1; }; } ;; | |
21165 esac | |
21166 else | |
21167 if test "$cross_compiling" = yes; then | |
21168 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 | |
21169 echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
21170 { (exit 1); exit 1; }; } | |
21171 else | |
21172 cat >conftest.$ac_ext <<_ACEOF | |
21173 /* confdefs.h. */ | |
21174 _ACEOF | |
21175 cat confdefs.h >>conftest.$ac_ext | |
21176 cat >>conftest.$ac_ext <<_ACEOF | |
21177 /* end confdefs.h. */ | |
21178 $ac_includes_default | |
21179 long longval () { return (long) (sizeof (long long)); } | |
21180 unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21181 #include <stdio.h> | |
21182 #include <stdlib.h> | |
21183 int | |
21184 main () | |
21185 { | |
21186 | |
21187 FILE *f = fopen ("conftest.val", "w"); | |
21188 if (! f) | |
21189 exit (1); | |
21190 if (((long) (sizeof (long long))) < 0) | |
21191 { | |
21192 long i = longval (); | |
21193 if (i != ((long) (sizeof (long long)))) | |
21194 exit (1); | |
21195 fprintf (f, "%ld\n", i); | |
21196 } | |
21197 else | |
21198 { | |
21199 unsigned long i = ulongval (); | |
21200 if (i != ((long) (sizeof (long long)))) | |
21201 exit (1); | |
21202 fprintf (f, "%lu\n", i); | |
21203 } | |
21204 exit (ferror (f) || fclose (f) != 0); | |
21205 | |
21206 ; | |
21207 return 0; | |
21208 } | |
21209 _ACEOF | |
21210 rm -f conftest$ac_exeext | |
21211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21212 (eval $ac_link) 2>&5 | |
21213 ac_status=$? | |
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21217 (eval $ac_try) 2>&5 | |
21218 ac_status=$? | |
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21220 (exit $ac_status); }; }; then | |
21221 ac_cv_sizeof_long_long=`cat conftest.val` | |
21222 else | |
21223 echo "$as_me: program exited with status $ac_status" >&5 | |
21224 echo "$as_me: failed program was:" >&5 | |
21225 sed 's/^/| /' conftest.$ac_ext >&5 | |
21226 | |
21227 ( exit $ac_status ) | |
21228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21229 See \`config.log' for more details." >&5 | |
21230 echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21231 See \`config.log' for more details." >&2;} | |
21232 { (exit 1); exit 1; }; } | |
21233 fi | |
21234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21235 fi | |
21236 fi | |
21237 rm -f conftest.val | |
21238 else | |
21239 ac_cv_sizeof_long_long=0 | |
21240 fi | |
21241 fi | |
21242 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21243 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21244 cat >>confdefs.h <<_ACEOF | |
21245 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21246 _ACEOF | |
21247 | |
21248 | |
21249 | |
21250 | |
21251 | |
21252 | |
21253 | |
21254 | |
21255 for ac_func in waitpid fcntl pipe fork | |
21256 do | |
21257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21258 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21260 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21261 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21262 else | |
21263 cat >conftest.$ac_ext <<_ACEOF | |
21264 /* confdefs.h. */ | |
21265 _ACEOF | |
21266 cat confdefs.h >>conftest.$ac_ext | |
21267 cat >>conftest.$ac_ext <<_ACEOF | |
21268 /* end confdefs.h. */ | |
21269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21270 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21271 #define $ac_func innocuous_$ac_func | |
21272 | |
21273 /* System header to define __stub macros and hopefully few prototypes, | |
21274 which can conflict with char $ac_func (); below. | |
21275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21276 <limits.h> exists even on freestanding compilers. */ | |
21277 | |
21278 #ifdef __STDC__ | |
21279 # include <limits.h> | |
21280 #else | |
21281 # include <assert.h> | |
21282 #endif | |
21283 | |
21284 #undef $ac_func | |
21285 | |
21286 /* Override any gcc2 internal prototype to avoid an error. */ | |
21287 #ifdef __cplusplus | |
21288 extern "C" | |
21289 { | |
21290 #endif | |
21291 /* We use char because int might match the return type of a gcc2 | |
21292 builtin and then its argument prototype would still apply. */ | |
21293 char $ac_func (); | |
21294 /* The GNU C library defines this for functions which it implements | |
21295 to always fail with ENOSYS. Some functions are actually named | |
21296 something starting with __ and the normal name is an alias. */ | |
21297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21298 choke me | |
21299 #else | |
21300 char (*f) () = $ac_func; | |
21301 #endif | |
21302 #ifdef __cplusplus | |
21303 } | |
21304 #endif | |
21305 | |
21306 int | |
21307 main () | |
21308 { | |
21309 return f != $ac_func; | |
21310 ; | |
21311 return 0; | |
21312 } | |
21313 _ACEOF | |
21314 rm -f conftest.$ac_objext conftest$ac_exeext | |
21315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21316 (eval $ac_link) 2>conftest.er1 | |
21317 ac_status=$? | |
21318 grep -v '^ *+' conftest.er1 >conftest.err | |
21319 rm -f conftest.er1 | |
21320 cat conftest.err >&5 | |
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21322 (exit $ac_status); } && | |
21323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21325 (eval $ac_try) 2>&5 | |
21326 ac_status=$? | |
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21328 (exit $ac_status); }; } && | |
21329 { ac_try='test -s conftest$ac_exeext' | |
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21331 (eval $ac_try) 2>&5 | |
21332 ac_status=$? | |
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21334 (exit $ac_status); }; }; then | |
21335 eval "$as_ac_var=yes" | |
21336 else | |
21337 echo "$as_me: failed program was:" >&5 | |
21338 sed 's/^/| /' conftest.$ac_ext >&5 | |
21339 | |
21340 eval "$as_ac_var=no" | |
21341 fi | |
21342 rm -f conftest.err conftest.$ac_objext \ | |
21343 conftest$ac_exeext conftest.$ac_ext | |
21344 fi | |
21345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21347 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21348 cat >>confdefs.h <<_ACEOF | |
21349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21350 _ACEOF | |
21351 | |
21352 fi | |
21353 done | |
21354 | |
21355 | |
21356 | |
21357 | |
21358 | |
21359 | |
21360 | |
21361 | |
21362 cat >confcache <<\_ACEOF | |
21363 # This file is a shell script that caches the results of configure | |
21364 # tests run on this system so they can be shared between configure | |
21365 # scripts and configure runs, see configure's option --config-cache. | |
21366 # It is not useful on other systems. If it contains results you don't | |
21367 # want to keep, you may remove or edit it. | |
21368 # | |
21369 # config.status only pays attention to the cache file if you give it | |
21370 # the --recheck option to rerun configure. | |
21371 # | |
21372 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21373 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21374 # following values. | |
21375 | |
21376 _ACEOF | |
21377 | |
21378 # The following way of writing the cache mishandles newlines in values, | |
21379 # but we know of no workaround that is simple, portable, and efficient. | |
21380 # So, don't put newlines in cache variables' values. | |
21381 # Ultrix sh set writes to stderr and can't be redirected directly, | |
21382 # and sets the high bit in the cache file unless we assign to the vars. | |
21383 { | |
21384 (set) 2>&1 | | |
21385 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21386 *ac_space=\ *) | |
21387 # `set' does not quote correctly, so add quotes (double-quote | |
21388 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21389 sed -n \ | |
21390 "s/'/'\\\\''/g; | |
21391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21392 ;; | |
21393 *) | |
21394 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21395 sed -n \ | |
21396 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
21397 ;; | |
21398 esac; | |
21399 } | | |
21400 sed ' | |
21401 t clear | |
21402 : clear | |
21403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21404 t end | |
21405 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21406 : end' >>confcache | |
21407 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21408 if test -w $cache_file; then | |
21409 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21410 cat confcache >$cache_file | |
21411 else | |
21412 echo "not updating unwritable cache $cache_file" | |
21413 fi | |
21414 fi | |
21415 rm -f confcache | |
21416 | |
21417 echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5 | |
21418 echo $ECHO_N "checking whether to optimize for speed or for accuracy... $ECHO_C" >&6 | |
21419 | |
21420 # Check whether --enable-speed or --disable-speed was given. | |
21421 if test "${enable_speed+set}" = set; then | |
21422 enableval="$enable_speed" | |
21423 | |
21424 case "$enableval" in | |
21425 yes) | |
21426 optimize_for="speed" | |
21427 | |
21428 cat >>confdefs.h <<\_ACEOF | |
21429 #define OPT_SPEED 1 | |
21430 _ACEOF | |
21431 | |
21432 ;; | |
21433 esac | |
21434 | |
21435 fi; | |
21436 | |
21437 # Check whether --enable-accuracy or --disable-accuracy was given. | |
21438 if test "${enable_accuracy+set}" = set; then | |
21439 enableval="$enable_accuracy" | |
21440 | |
21441 case "$enableval" in | |
21442 yes) | |
21443 if test "$optimize_for" = "speed" | |
21444 then | |
21445 optimize_for="both" | |
21446 else | |
21447 optimize_for="accuracy" | |
21448 fi | |
21449 | |
21450 cat >>confdefs.h <<\_ACEOF | |
21451 #define OPT_ACCURACY 1 | |
21452 _ACEOF | |
21453 | |
21454 ;; | |
21455 esac | |
21456 | |
21457 fi; | |
21458 | |
21459 echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5 | |
21460 echo "${ECHO_T}${optimize_for-default}" >&6 | |
21461 | |
21462 if test "$optimize_for" = "both" | |
21463 then | |
21464 { { echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5 | |
21465 echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;} | |
21466 { (exit 1); exit 1; }; } | |
21467 fi | |
21468 | |
21469 echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5 | |
21470 echo $ECHO_N "checking for architecture-specific fixed-point math routines... $ECHO_C" >&6 | |
21471 # Check whether --enable-fpm or --disable-fpm was given. | |
21472 if test "${enable_fpm+set}" = set; then | |
21473 enableval="$enable_fpm" | |
21474 | |
21475 case "$enableval" in | |
21476 yes) ;; | |
21477 no|default|approx) FPM="DEFAULT" ;; | |
21478 intel|i?86) FPM="INTEL" ;; | |
21479 arm) FPM="ARM" ;; | |
21480 mips) FPM="MIPS" ;; | |
21481 sparc) FPM="SPARC" ;; | |
21482 ppc|powerpc) FPM="PPC" ;; | |
21483 64bit) FPM="64BIT" ;; | |
21484 float) FPM="FLOAT" ;; | |
21485 *) | |
21486 echo "$as_me:$LINENO: result: failed" >&5 | |
21487 echo "${ECHO_T}failed" >&6 | |
21488 { { echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5 | |
21489 echo "$as_me: error: bad --enable-fpm option" >&2;} | |
21490 { (exit 1); exit 1; }; } | |
21491 ;; | |
21492 esac | |
21493 | |
21494 fi; | |
21495 | |
21496 if test -z "$FPM" && test "$GCC" = yes | |
21497 then | |
21498 case "$host" in | |
21499 i?86-*) FPM="INTEL" ;; | |
21500 arm*-*) FPM="ARM" ;; | |
21501 mips*-*) FPM="MIPS" ;; | |
21502 sparc*-*) FPM="SPARC" ;; | |
21503 powerpc*-*) FPM="PPC" ;; | |
21504 # FIXME: need to test for 64-bit long long... | |
21505 esac | |
21506 fi | |
21507 | |
21508 echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5 | |
21509 echo "${ECHO_T}${FPM=DEFAULT}" >&6 | |
21510 | |
21511 if test "$FPM" = "DEFAULT" | |
21512 then | |
21513 { echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5 | |
21514 echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;} | |
21515 fi | |
21516 | |
21517 FPM="-DFPM_$FPM" | |
21518 | |
21519 # Check whether --enable-sso or --disable-sso was given. | |
21520 if test "${enable_sso+set}" = set; then | |
21521 enableval="$enable_sso" | |
21522 | |
21523 case "$enableval" in | |
21524 yes) | |
21525 | |
21526 cat >>confdefs.h <<\_ACEOF | |
21527 #define OPT_SSO 1 | |
21528 _ACEOF | |
21529 | |
21530 ;; | |
21531 esac | |
21532 | |
21533 fi; | |
21534 | |
21535 # Check whether --enable-aso or --disable-aso was given. | |
21536 if test "${enable_aso+set}" = set; then | |
21537 enableval="$enable_aso" | |
21538 | |
21539 else | |
21540 enable_aso=yes | |
21541 fi; | |
21542 | |
21543 if test "$enable_aso" = yes | |
21544 then | |
21545 case "$host" in | |
21546 i?86-*) | |
21547 : #ASO="$ASO -DASO_INTERLEAVE1" | |
21548 ASO="$ASO -DASO_ZEROCHECK" | |
21549 : #not yet #ASO="$ASO -DASO_SYNTH" | |
21550 : #not yet #ASO_OBJS="synth_mmx.lo" | |
21551 ;; | |
21552 arm*-*) | |
21553 ASO="$ASO -DASO_INTERLEAVE1" | |
21554 ASO="$ASO -DASO_IMDCT" | |
21555 ASO_OBJS="imdct_l_arm.lo" | |
21556 ;; | |
21557 mips*-*) | |
21558 ASO="$ASO -DASO_INTERLEAVE2" | |
21559 ASO="$ASO -DASO_ZEROCHECK" | |
21560 ;; | |
21561 esac | |
21562 fi | |
21563 | |
21564 echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5 | |
21565 echo $ECHO_N "checking for ISO/IEC interpretation... $ECHO_C" >&6 | |
21566 # Check whether --enable-strict-iso or --disable-strict-iso was given. | |
21567 if test "${enable_strict_iso+set}" = set; then | |
21568 enableval="$enable_strict_iso" | |
21569 | |
21570 case "$enableval" in | |
21571 yes) | |
21572 | |
21573 cat >>confdefs.h <<\_ACEOF | |
21574 #define OPT_STRICT 1 | |
21575 _ACEOF | |
21576 | |
21577 interpretation="strict" | |
21578 ;; | |
21579 esac | |
21580 | |
21581 fi; | |
21582 echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5 | |
21583 echo "${ECHO_T}${interpretation-best accepted practices}" >&6 | |
21584 | |
21585 echo "$as_me:$LINENO: checking whether to enable profiling" >&5 | |
21586 echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6 | |
21587 # Check whether --enable-profiling or --disable-profiling was given. | |
21588 if test "${enable_profiling+set}" = set; then | |
21589 enableval="$enable_profiling" | |
21590 | |
21591 case "$enableval" in | |
21592 yes) profile="-pg" ;; | |
21593 esac | |
21594 | |
21595 fi; | |
21596 echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5 | |
21597 echo "${ECHO_T}${enable_profiling-no}" >&6 | |
21598 | |
21599 echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
21600 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
21601 # Check whether --enable-debugging or --disable-debugging was given. | |
21602 if test "${enable_debugging+set}" = set; then | |
21603 enableval="$enable_debugging" | |
21604 | |
21605 case "$enableval" in | |
21606 yes) | |
21607 | |
21608 cat >>confdefs.h <<\_ACEOF | |
21609 #define DEBUG 1 | |
21610 _ACEOF | |
21611 | |
21612 optimize="" | |
21613 ;; | |
21614 no) | |
21615 if test -n "$profile" | |
21616 then | |
21617 { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5 | |
21618 echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;} | |
21619 { (exit 1); exit 1; }; } | |
21620 fi | |
21621 | |
21622 | |
21623 cat >>confdefs.h <<\_ACEOF | |
21624 #define NDEBUG 1 | |
21625 _ACEOF | |
21626 | |
21627 debug="" | |
21628 if test "$GCC" = yes | |
21629 then | |
21630 optimize="$optimize -fomit-frame-pointer" | |
21631 fi | |
21632 ;; | |
21633 esac | |
21634 | |
21635 fi; | |
21636 echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5 | |
21637 echo "${ECHO_T}${enable_debugging-default}" >&6 | |
21638 | |
21639 echo "$as_me:$LINENO: checking whether to enable experimental code" >&5 | |
21640 echo $ECHO_N "checking whether to enable experimental code... $ECHO_C" >&6 | |
21641 # Check whether --enable-experimental or --disable-experimental was given. | |
21642 if test "${enable_experimental+set}" = set; then | |
21643 enableval="$enable_experimental" | |
21644 | |
21645 case "$enableval" in | |
21646 yes) | |
21647 | |
21648 cat >>confdefs.h <<\_ACEOF | |
21649 #define EXPERIMENTAL 1 | |
21650 _ACEOF | |
21651 | |
21652 ;; | |
21653 esac | |
21654 | |
21655 fi; | |
21656 echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5 | |
21657 echo "${ECHO_T}${enable_experimental-no}" >&6 | |
21658 | |
21659 | |
21660 test -n "$arch" && CFLAGS="$CFLAGS $arch" | |
21661 test -n "$debug" && CFLAGS="$CFLAGS $debug" | |
21662 test -n "$optimize" && CFLAGS="$CFLAGS $optimize" | |
21663 test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile" | |
21664 | |
21665 | |
21666 ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list" | |
21667 | |
21668 cat >confcache <<\_ACEOF | |
21669 # This file is a shell script that caches the results of configure | |
21670 # tests run on this system so they can be shared between configure | |
21671 # scripts and configure runs, see configure's option --config-cache. | |
21672 # It is not useful on other systems. If it contains results you don't | |
21673 # want to keep, you may remove or edit it. | |
21674 # | |
21675 # config.status only pays attention to the cache file if you give it | |
21676 # the --recheck option to rerun configure. | |
21677 # | |
21678 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21679 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21680 # following values. | |
21681 | |
21682 _ACEOF | |
21683 | |
21684 # The following way of writing the cache mishandles newlines in values, | |
21685 # but we know of no workaround that is simple, portable, and efficient. | |
21686 # So, don't put newlines in cache variables' values. | |
21687 # Ultrix sh set writes to stderr and can't be redirected directly, | |
21688 # and sets the high bit in the cache file unless we assign to the vars. | |
21689 { | |
21690 (set) 2>&1 | | |
21691 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21692 *ac_space=\ *) | |
21693 # `set' does not quote correctly, so add quotes (double-quote | |
21694 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21695 sed -n \ | |
21696 "s/'/'\\\\''/g; | |
21697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21698 ;; | |
21699 *) | |
21700 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21701 sed -n \ | |
21702 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
21703 ;; | |
21704 esac; | |
21705 } | | |
21706 sed ' | |
21707 t clear | |
21708 : clear | |
21709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21710 t end | |
21711 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21712 : end' >>confcache | |
21713 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21714 if test -w $cache_file; then | |
21715 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21716 cat confcache >$cache_file | |
21717 else | |
21718 echo "not updating unwritable cache $cache_file" | |
21719 fi | |
21720 fi | |
21721 rm -f confcache | |
21722 | |
21723 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21724 # Let make expand exec_prefix. | |
21725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21726 | |
21727 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
21728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21729 # trailing colons and then remove the whole line if VPATH becomes empty | |
21730 # (actually we leave an empty line to preserve line numbers). | |
21731 if test "x$srcdir" = x.; then | |
21732 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
21733 s/:*\$(srcdir):*/:/; | |
21734 s/:*\${srcdir}:*/:/; | |
21735 s/:*@srcdir@:*/:/; | |
21736 s/^\([^=]*=[ ]*\):*/\1/; | |
21737 s/:*$//; | |
21738 s/^[^=]*=[ ]*$//; | |
21739 }' | |
21740 fi | |
21741 | |
21742 DEFS=-DHAVE_CONFIG_H | |
21743 | |
21744 ac_libobjs= | |
21745 ac_ltlibobjs= | |
21746 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21747 # 1. Remove the extension, and $U if already installed. | |
21748 ac_i=`echo "$ac_i" | | |
21749 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21750 # 2. Add them. | |
21751 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21752 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21753 done | |
21754 LIBOBJS=$ac_libobjs | |
21755 | |
21756 LTLIBOBJS=$ac_ltlibobjs | |
21757 | |
21758 | |
21759 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
21760 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
21761 Usually this means the macro was only invoked conditionally." >&5 | |
21762 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
21763 Usually this means the macro was only invoked conditionally." >&2;} | |
21764 { (exit 1); exit 1; }; } | |
21765 fi | |
21766 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
21767 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
21768 Usually this means the macro was only invoked conditionally." >&5 | |
21769 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
21770 Usually this means the macro was only invoked conditionally." >&2;} | |
21771 { (exit 1); exit 1; }; } | |
21772 fi | |
21773 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
21774 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
21775 Usually this means the macro was only invoked conditionally." >&5 | |
21776 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
21777 Usually this means the macro was only invoked conditionally." >&2;} | |
21778 { (exit 1); exit 1; }; } | |
21779 fi | |
21780 | |
21781 : ${CONFIG_STATUS=./config.status} | |
21782 ac_clean_files_save=$ac_clean_files | |
21783 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21784 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21785 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21786 cat >$CONFIG_STATUS <<_ACEOF | |
21787 #! $SHELL | |
21788 # Generated by $as_me. | |
21789 # Run this file to recreate the current configuration. | |
21790 # Compiler output produced by configure, useful for debugging | |
21791 # configure, is in config.log if it exists. | |
21792 | |
21793 debug=false | |
21794 ac_cs_recheck=false | |
21795 ac_cs_silent=false | |
21796 SHELL=\${CONFIG_SHELL-$SHELL} | |
21797 _ACEOF | |
21798 | |
21799 cat >>$CONFIG_STATUS <<\_ACEOF | |
21800 ## --------------------- ## | |
21801 ## M4sh Initialization. ## | |
21802 ## --------------------- ## | |
21803 | |
21804 # Be Bourne compatible | |
21805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21806 emulate sh | |
21807 NULLCMD=: | |
21808 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21809 # is contrary to our usage. Disable this feature. | |
21810 alias -g '${1+"$@"}'='"$@"' | |
21811 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21812 set -o posix | |
21813 fi | |
21814 DUALCASE=1; export DUALCASE # for MKS sh | |
21815 | |
21816 # Support unset when possible. | |
21817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
21818 as_unset=unset | |
21819 else | |
21820 as_unset=false | |
21821 fi | |
21822 | |
21823 | |
21824 # Work around bugs in pre-3.0 UWIN ksh. | |
21825 $as_unset ENV MAIL MAILPATH | |
21826 PS1='$ ' | |
21827 PS2='> ' | |
21828 PS4='+ ' | |
21829 | |
21830 # NLS nuisances. | |
21831 for as_var in \ | |
21832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21834 LC_TELEPHONE LC_TIME | |
21835 do | |
21836 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21837 eval $as_var=C; export $as_var | |
21838 else | |
21839 $as_unset $as_var | |
21840 fi | |
21841 done | |
21842 | |
21843 # Required to use basename. | |
21844 if expr a : '\(a\)' >/dev/null 2>&1; then | |
21845 as_expr=expr | |
21846 else | |
21847 as_expr=false | |
21848 fi | |
21849 | |
21850 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21851 as_basename=basename | |
21852 else | |
21853 as_basename=false | |
21854 fi | |
21855 | |
21856 | |
21857 # Name of the executable. | |
21858 as_me=`$as_basename "$0" || | |
21859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21860 X"$0" : 'X\(//\)$' \| \ | |
21861 X"$0" : 'X\(/\)$' \| \ | |
21862 . : '\(.\)' 2>/dev/null || | |
21863 echo X/"$0" | | |
21864 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21865 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21866 /^X\/\(\/\).*/{ s//\1/; q; } | |
21867 s/.*/./; q'` | |
21868 | |
21869 | |
21870 # PATH needs CR, and LINENO needs CR and PATH. | |
21871 # Avoid depending upon Character Ranges. | |
21872 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21875 as_cr_digits='0123456789' | |
21876 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21877 | |
21878 # The user is always right. | |
21879 if test "${PATH_SEPARATOR+set}" != set; then | |
21880 echo "#! /bin/sh" >conf$$.sh | |
21881 echo "exit 0" >>conf$$.sh | |
21882 chmod +x conf$$.sh | |
21883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21884 PATH_SEPARATOR=';' | |
21885 else | |
21886 PATH_SEPARATOR=: | |
21887 fi | |
21888 rm -f conf$$.sh | |
21889 fi | |
21890 | |
21891 | |
21892 as_lineno_1=$LINENO | |
21893 as_lineno_2=$LINENO | |
21894 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21895 test "x$as_lineno_1" != "x$as_lineno_2" && | |
21896 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21897 # Find who we are. Look in the path if we contain no path at all | |
21898 # relative or not. | |
21899 case $0 in | |
21900 *[\\/]* ) as_myself=$0 ;; | |
21901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21902 for as_dir in $PATH | |
21903 do | |
21904 IFS=$as_save_IFS | |
21905 test -z "$as_dir" && as_dir=. | |
21906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21907 done | |
21908 | |
21909 ;; | |
21910 esac | |
21911 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21912 # in which case we are not to be found in the path. | |
21913 if test "x$as_myself" = x; then | |
21914 as_myself=$0 | |
21915 fi | |
21916 if test ! -f "$as_myself"; then | |
21917 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21918 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21919 { (exit 1); exit 1; }; } | |
21920 fi | |
21921 case $CONFIG_SHELL in | |
21922 '') | |
21923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21924 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21925 do | |
21926 IFS=$as_save_IFS | |
21927 test -z "$as_dir" && as_dir=. | |
21928 for as_base in sh bash ksh sh5; do | |
21929 case $as_dir in | |
21930 /*) | |
21931 if ("$as_dir/$as_base" -c ' | |
21932 as_lineno_1=$LINENO | |
21933 as_lineno_2=$LINENO | |
21934 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21935 test "x$as_lineno_1" != "x$as_lineno_2" && | |
21936 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
21937 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
21938 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
21939 CONFIG_SHELL=$as_dir/$as_base | |
21940 export CONFIG_SHELL | |
21941 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21942 fi;; | |
21943 esac | |
21944 done | |
21945 done | |
21946 ;; | |
21947 esac | |
21948 | |
21949 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21950 # uniformly replaced by the line number. The first 'sed' inserts a | |
21951 # line-number line before each line; the second 'sed' does the real | |
21952 # work. The second script uses 'N' to pair each line-number line | |
21953 # with the numbered line, and appends trailing '-' during | |
21954 # substitution so that $LINENO is not a special case at line end. | |
21955 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21956 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21957 sed '=' <$as_myself | | |
21958 sed ' | |
21959 N | |
21960 s,$,-, | |
21961 : loop | |
21962 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21963 t loop | |
21964 s,-$,, | |
21965 s,^['$as_cr_digits']*\n,, | |
21966 ' >$as_me.lineno && | |
21967 chmod +x $as_me.lineno || | |
21968 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21969 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21970 { (exit 1); exit 1; }; } | |
21971 | |
21972 # Don't try to exec as it changes $[0], causing all sort of problems | |
21973 # (the dirname of $[0] is not the place where we might find the | |
21974 # original and so on. Autoconf is especially sensible to this). | |
21975 . ./$as_me.lineno | |
21976 # Exit status is that of the last command. | |
21977 exit | |
21978 } | |
21979 | |
21980 | |
21981 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21982 *c*,-n*) ECHO_N= ECHO_C=' | |
21983 ' ECHO_T=' ' ;; | |
21984 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21985 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21986 esac | |
21987 | |
21988 if expr a : '\(a\)' >/dev/null 2>&1; then | |
21989 as_expr=expr | |
21990 else | |
21991 as_expr=false | |
21992 fi | |
21993 | |
21994 rm -f conf$$ conf$$.exe conf$$.file | |
21995 echo >conf$$.file | |
21996 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21997 # We could just check for DJGPP; but this test a) works b) is more generic | |
21998 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21999 if test -f conf$$.exe; then | |
22000 # Don't use ln at all; we don't have any links | |
22001 as_ln_s='cp -p' | |
22002 else | |
22003 as_ln_s='ln -s' | |
22004 fi | |
22005 elif ln conf$$.file conf$$ 2>/dev/null; then | |
22006 as_ln_s=ln | |
22007 else | |
22008 as_ln_s='cp -p' | |
22009 fi | |
22010 rm -f conf$$ conf$$.exe conf$$.file | |
22011 | |
22012 if mkdir -p . 2>/dev/null; then | |
22013 as_mkdir_p=: | |
22014 else | |
22015 test -d ./-p && rmdir ./-p | |
22016 as_mkdir_p=false | |
22017 fi | |
22018 | |
22019 as_executable_p="test -f" | |
22020 | |
22021 # Sed expression to map a string onto a valid CPP name. | |
22022 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22023 | |
22024 # Sed expression to map a string onto a valid variable name. | |
22025 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22026 | |
22027 | |
22028 # IFS | |
22029 # We need space, tab and new line, in precisely that order. | |
22030 as_nl=' | |
22031 ' | |
22032 IFS=" $as_nl" | |
22033 | |
22034 # CDPATH. | |
22035 $as_unset CDPATH | |
22036 | |
22037 exec 6>&1 | |
22038 | |
22039 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22040 # report actual input values of CONFIG_FILES etc. instead of their | |
22041 # values after options handling. Logging --version etc. is OK. | |
22042 exec 5>>config.log | |
22043 { | |
22044 echo | |
22045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22046 ## Running $as_me. ## | |
22047 _ASBOX | |
22048 } >&5 | |
22049 cat >&5 <<_CSEOF | |
22050 | |
22051 This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was | |
22052 generated by GNU Autoconf 2.59. Invocation command line was | |
22053 | |
22054 CONFIG_FILES = $CONFIG_FILES | |
22055 CONFIG_HEADERS = $CONFIG_HEADERS | |
22056 CONFIG_LINKS = $CONFIG_LINKS | |
22057 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22058 $ $0 $@ | |
22059 | |
22060 _CSEOF | |
22061 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22062 echo >&5 | |
22063 _ACEOF | |
22064 | |
22065 # Files that config.status was made for. | |
22066 if test -n "$ac_config_files"; then | |
22067 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
22068 fi | |
22069 | |
22070 if test -n "$ac_config_headers"; then | |
22071 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
22072 fi | |
22073 | |
22074 if test -n "$ac_config_links"; then | |
22075 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
22076 fi | |
22077 | |
22078 if test -n "$ac_config_commands"; then | |
22079 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22080 fi | |
22081 | |
22082 cat >>$CONFIG_STATUS <<\_ACEOF | |
22083 | |
22084 ac_cs_usage="\ | |
22085 \`$as_me' instantiates files from templates according to the | |
22086 current configuration. | |
22087 | |
22088 Usage: $0 [OPTIONS] [FILE]... | |
22089 | |
22090 -h, --help print this help, then exit | |
22091 -V, --version print version number, then exit | |
22092 -q, --quiet do not print progress messages | |
22093 -d, --debug don't remove temporary files | |
22094 --recheck update $as_me by reconfiguring in the same conditions | |
22095 --file=FILE[:TEMPLATE] | |
22096 instantiate the configuration file FILE | |
22097 --header=FILE[:TEMPLATE] | |
22098 instantiate the configuration header FILE | |
22099 | |
22100 Configuration files: | |
22101 $config_files | |
22102 | |
22103 Configuration headers: | |
22104 $config_headers | |
22105 | |
22106 Configuration commands: | |
22107 $config_commands | |
22108 | |
22109 Report bugs to <bug-autoconf@gnu.org>." | |
22110 _ACEOF | |
22111 | |
22112 cat >>$CONFIG_STATUS <<_ACEOF | |
22113 ac_cs_version="\\ | |
22114 MPEG Audio Decoder config.status 0.15.1b | |
22115 configured by $0, generated by GNU Autoconf 2.59, | |
22116 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22117 | |
22118 Copyright (C) 2003 Free Software Foundation, Inc. | |
22119 This config.status script is free software; the Free Software Foundation | |
22120 gives unlimited permission to copy, distribute and modify it." | |
22121 srcdir=$srcdir | |
22122 INSTALL="$INSTALL" | |
22123 _ACEOF | |
22124 | |
22125 cat >>$CONFIG_STATUS <<\_ACEOF | |
22126 # If no file are specified by the user, then we need to provide default | |
22127 # value. By we need to know if files were specified by the user. | |
22128 ac_need_defaults=: | |
22129 while test $# != 0 | |
22130 do | |
22131 case $1 in | |
22132 --*=*) | |
22133 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22134 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22135 ac_shift=: | |
22136 ;; | |
22137 -*) | |
22138 ac_option=$1 | |
22139 ac_optarg=$2 | |
22140 ac_shift=shift | |
22141 ;; | |
22142 *) # This is not an option, so the user has probably given explicit | |
22143 # arguments. | |
22144 ac_option=$1 | |
22145 ac_need_defaults=false;; | |
22146 esac | |
22147 | |
22148 case $ac_option in | |
22149 # Handling of the options. | |
22150 _ACEOF | |
22151 cat >>$CONFIG_STATUS <<\_ACEOF | |
22152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22153 ac_cs_recheck=: ;; | |
22154 --version | --vers* | -V ) | |
22155 echo "$ac_cs_version"; exit 0 ;; | |
22156 --he | --h) | |
22157 # Conflict between --help and --header | |
22158 { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22159 Try \`$0 --help' for more information." >&5 | |
22160 echo "$as_me: error: ambiguous option: $1 | |
22161 Try \`$0 --help' for more information." >&2;} | |
22162 { (exit 1); exit 1; }; };; | |
22163 --help | --hel | -h ) | |
22164 echo "$ac_cs_usage"; exit 0 ;; | |
22165 --debug | --d* | -d ) | |
22166 debug=: ;; | |
22167 --file | --fil | --fi | --f ) | |
22168 $ac_shift | |
22169 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22170 ac_need_defaults=false;; | |
22171 --header | --heade | --head | --hea ) | |
22172 $ac_shift | |
22173 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22174 ac_need_defaults=false;; | |
22175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22176 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22177 ac_cs_silent=: ;; | |
22178 | |
22179 # This is an error. | |
22180 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22181 Try \`$0 --help' for more information." >&5 | |
22182 echo "$as_me: error: unrecognized option: $1 | |
22183 Try \`$0 --help' for more information." >&2;} | |
22184 { (exit 1); exit 1; }; } ;; | |
22185 | |
22186 *) ac_config_targets="$ac_config_targets $1" ;; | |
22187 | |
22188 esac | |
22189 shift | |
22190 done | |
22191 | |
22192 ac_configure_extra_args= | |
22193 | |
22194 if $ac_cs_silent; then | |
22195 exec 6>/dev/null | |
22196 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22197 fi | |
22198 | |
22199 _ACEOF | |
22200 cat >>$CONFIG_STATUS <<_ACEOF | |
22201 if \$ac_cs_recheck; then | |
22202 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22203 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22204 fi | |
22205 | |
22206 _ACEOF | |
22207 | |
22208 cat >>$CONFIG_STATUS <<_ACEOF | |
22209 # | |
22210 # INIT-COMMANDS section. | |
22211 # | |
22212 | |
22213 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
22214 | |
22215 _ACEOF | |
22216 | |
22217 | |
22218 | |
22219 cat >>$CONFIG_STATUS <<\_ACEOF | |
22220 for ac_config_target in $ac_config_targets | |
22221 do | |
22222 case "$ac_config_target" in | |
22223 # Handling of arguments. | |
22224 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22225 "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;; | |
22226 "libmad.list" ) CONFIG_FILES="$CONFIG_FILES libmad.list" ;; | |
22227 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
22228 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
22229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22231 { (exit 1); exit 1; }; };; | |
22232 esac | |
22233 done | |
22234 | |
22235 # If the user did not use the arguments to specify the items to instantiate, | |
22236 # then the envvar interface is used. Set only those that are not. | |
22237 # We use the long form for the default assignment because of an extremely | |
22238 # bizarre bug on SunOS 4.1.3. | |
22239 if $ac_need_defaults; then | |
22240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22243 fi | |
22244 | |
22245 # Have a temporary directory for convenience. Make it in the build tree | |
22246 # simply because there is no reason to put it here, and in addition, | |
22247 # creating and moving files from /tmp can sometimes cause problems. | |
22248 # Create a temporary directory, and hook for its removal unless debugging. | |
22249 $debug || | |
22250 { | |
22251 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22252 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22253 } | |
22254 | |
22255 # Create a (secure) tmp directory for tmp files. | |
22256 | |
22257 { | |
22258 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
22259 test -n "$tmp" && test -d "$tmp" | |
22260 } || | |
22261 { | |
22262 tmp=./confstat$$-$RANDOM | |
22263 (umask 077 && mkdir $tmp) | |
22264 } || | |
22265 { | |
22266 echo "$me: cannot create a temporary directory in ." >&2 | |
22267 { (exit 1); exit 1; } | |
22268 } | |
22269 | |
22270 _ACEOF | |
22271 | |
22272 cat >>$CONFIG_STATUS <<_ACEOF | |
22273 | |
22274 # | |
22275 # CONFIG_FILES section. | |
22276 # | |
22277 | |
22278 # No need to generate the scripts if there are no CONFIG_FILES. | |
22279 # This happens for instance when ./config.status config.h | |
22280 if test -n "\$CONFIG_FILES"; then | |
22281 # Protect against being on the right side of a sed subst in config.status. | |
22282 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22283 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22284 s,@SHELL@,$SHELL,;t t | |
22285 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
22286 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22287 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22288 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22289 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22290 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
22291 s,@exec_prefix@,$exec_prefix,;t t | |
22292 s,@prefix@,$prefix,;t t | |
22293 s,@program_transform_name@,$program_transform_name,;t t | |
22294 s,@bindir@,$bindir,;t t | |
22295 s,@sbindir@,$sbindir,;t t | |
22296 s,@libexecdir@,$libexecdir,;t t | |
22297 s,@datadir@,$datadir,;t t | |
22298 s,@sysconfdir@,$sysconfdir,;t t | |
22299 s,@sharedstatedir@,$sharedstatedir,;t t | |
22300 s,@localstatedir@,$localstatedir,;t t | |
22301 s,@libdir@,$libdir,;t t | |
22302 s,@includedir@,$includedir,;t t | |
22303 s,@oldincludedir@,$oldincludedir,;t t | |
22304 s,@infodir@,$infodir,;t t | |
22305 s,@mandir@,$mandir,;t t | |
22306 s,@build_alias@,$build_alias,;t t | |
22307 s,@host_alias@,$host_alias,;t t | |
22308 s,@target_alias@,$target_alias,;t t | |
22309 s,@DEFS@,$DEFS,;t t | |
22310 s,@ECHO_C@,$ECHO_C,;t t | |
22311 s,@ECHO_N@,$ECHO_N,;t t | |
22312 s,@ECHO_T@,$ECHO_T,;t t | |
22313 s,@LIBS@,$LIBS,;t t | |
22314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
22317 s,@CYGPATH_W@,$CYGPATH_W,;t t | |
22318 s,@PACKAGE@,$PACKAGE,;t t | |
22319 s,@VERSION@,$VERSION,;t t | |
22320 s,@ACLOCAL@,$ACLOCAL,;t t | |
22321 s,@AUTOCONF@,$AUTOCONF,;t t | |
22322 s,@AUTOMAKE@,$AUTOMAKE,;t t | |
22323 s,@AUTOHEADER@,$AUTOHEADER,;t t | |
22324 s,@MAKEINFO@,$MAKEINFO,;t t | |
22325 s,@AMTAR@,$AMTAR,;t t | |
22326 s,@install_sh@,$install_sh,;t t | |
22327 s,@STRIP@,$STRIP,;t t | |
22328 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
22329 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
22330 s,@mkdir_p@,$mkdir_p,;t t | |
22331 s,@AWK@,$AWK,;t t | |
22332 s,@SET_MAKE@,$SET_MAKE,;t t | |
22333 s,@am__leading_dot@,$am__leading_dot,;t t | |
22334 s,@build@,$build,;t t | |
22335 s,@build_cpu@,$build_cpu,;t t | |
22336 s,@build_vendor@,$build_vendor,;t t | |
22337 s,@build_os@,$build_os,;t t | |
22338 s,@host@,$host,;t t | |
22339 s,@host_cpu@,$host_cpu,;t t | |
22340 s,@host_vendor@,$host_vendor,;t t | |
22341 s,@host_os@,$host_os,;t t | |
22342 s,@CC@,$CC,;t t | |
22343 s,@CFLAGS@,$CFLAGS,;t t | |
22344 s,@LDFLAGS@,$LDFLAGS,;t t | |
22345 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22346 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22347 s,@EXEEXT@,$EXEEXT,;t t | |
22348 s,@OBJEXT@,$OBJEXT,;t t | |
22349 s,@DEPDIR@,$DEPDIR,;t t | |
22350 s,@am__include@,$am__include,;t t | |
22351 s,@am__quote@,$am__quote,;t t | |
22352 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
22353 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
22354 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
22355 s,@CCDEPMODE@,$CCDEPMODE,;t t | |
22356 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
22357 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
22358 s,@CCAS@,$CCAS,;t t | |
22359 s,@CCASFLAGS@,$CCASFLAGS,;t t | |
22360 s,@EGREP@,$EGREP,;t t | |
22361 s,@LN_S@,$LN_S,;t t | |
22362 s,@ECHO@,$ECHO,;t t | |
22363 s,@AR@,$AR,;t t | |
22364 s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22365 s,@RANLIB@,$RANLIB,;t t | |
22366 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
22367 s,@CPP@,$CPP,;t t | |
22368 s,@CXX@,$CXX,;t t | |
22369 s,@CXXFLAGS@,$CXXFLAGS,;t t | |
22370 s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
22371 s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
22372 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
22373 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
22374 s,@CXXCPP@,$CXXCPP,;t t | |
22375 s,@F77@,$F77,;t t | |
22376 s,@FFLAGS@,$FFLAGS,;t t | |
22377 s,@ac_ct_F77@,$ac_ct_F77,;t t | |
22378 s,@LIBTOOL@,$LIBTOOL,;t t | |
22379 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t | |
22380 s,@FPM@,$FPM,;t t | |
22381 s,@ASO@,$ASO,;t t | |
22382 s,@ASO_OBJS@,$ASO_OBJS,;t t | |
22383 s,@LIBOBJS@,$LIBOBJS,;t t | |
22384 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
22385 CEOF | |
22386 | |
22387 _ACEOF | |
22388 | |
22389 cat >>$CONFIG_STATUS <<\_ACEOF | |
22390 # Split the substitutions into bite-sized pieces for seds with | |
22391 # small command number limits, like on Digital OSF/1 and HP-UX. | |
22392 ac_max_sed_lines=48 | |
22393 ac_sed_frag=1 # Number of current file. | |
22394 ac_beg=1 # First line for current file. | |
22395 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22396 ac_more_lines=: | |
22397 ac_sed_cmds= | |
22398 while $ac_more_lines; do | |
22399 if test $ac_beg -gt 1; then | |
22400 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22401 else | |
22402 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22403 fi | |
22404 if test ! -s $tmp/subs.frag; then | |
22405 ac_more_lines=false | |
22406 else | |
22407 # The purpose of the label and of the branching condition is to | |
22408 # speed up the sed processing (if there are no `@' at all, there | |
22409 # is no need to browse any of the substitutions). | |
22410 # These are the two extra sed commands mentioned above. | |
22411 (echo ':t | |
22412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22413 if test -z "$ac_sed_cmds"; then | |
22414 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22415 else | |
22416 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22417 fi | |
22418 ac_sed_frag=`expr $ac_sed_frag + 1` | |
22419 ac_beg=$ac_end | |
22420 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
22421 fi | |
22422 done | |
22423 if test -z "$ac_sed_cmds"; then | |
22424 ac_sed_cmds=cat | |
22425 fi | |
22426 fi # test -n "$CONFIG_FILES" | |
22427 | |
22428 _ACEOF | |
22429 cat >>$CONFIG_STATUS <<\_ACEOF | |
22430 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
22431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22432 case $ac_file in | |
22433 - | *:- | *:-:* ) # input from stdin | |
22434 cat >$tmp/stdin | |
22435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22439 * ) ac_file_in=$ac_file.in ;; | |
22440 esac | |
22441 | |
22442 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
22443 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22445 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22446 X"$ac_file" : 'X\(//\)$' \| \ | |
22447 X"$ac_file" : 'X\(/\)' \| \ | |
22448 . : '\(.\)' 2>/dev/null || | |
22449 echo X"$ac_file" | | |
22450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22451 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22452 /^X\(\/\/\)$/{ s//\1/; q; } | |
22453 /^X\(\/\).*/{ s//\1/; q; } | |
22454 s/.*/./; q'` | |
22455 { if $as_mkdir_p; then | |
22456 mkdir -p "$ac_dir" | |
22457 else | |
22458 as_dir="$ac_dir" | |
22459 as_dirs= | |
22460 while test ! -d "$as_dir"; do | |
22461 as_dirs="$as_dir $as_dirs" | |
22462 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22464 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22465 X"$as_dir" : 'X\(//\)$' \| \ | |
22466 X"$as_dir" : 'X\(/\)' \| \ | |
22467 . : '\(.\)' 2>/dev/null || | |
22468 echo X"$as_dir" | | |
22469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22470 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22471 /^X\(\/\/\)$/{ s//\1/; q; } | |
22472 /^X\(\/\).*/{ s//\1/; q; } | |
22473 s/.*/./; q'` | |
22474 done | |
22475 test ! -n "$as_dirs" || mkdir $as_dirs | |
22476 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22477 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22478 { (exit 1); exit 1; }; }; } | |
22479 | |
22480 ac_builddir=. | |
22481 | |
22482 if test "$ac_dir" != .; then | |
22483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22484 # A "../" for each directory in $ac_dir_suffix. | |
22485 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22486 else | |
22487 ac_dir_suffix= ac_top_builddir= | |
22488 fi | |
22489 | |
22490 case $srcdir in | |
22491 .) # No --srcdir option. We are building in place. | |
22492 ac_srcdir=. | |
22493 if test -z "$ac_top_builddir"; then | |
22494 ac_top_srcdir=. | |
22495 else | |
22496 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22497 fi ;; | |
22498 [\\/]* | ?:[\\/]* ) # Absolute path. | |
22499 ac_srcdir=$srcdir$ac_dir_suffix; | |
22500 ac_top_srcdir=$srcdir ;; | |
22501 *) # Relative path. | |
22502 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22503 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22504 esac | |
22505 | |
22506 # Do not use `cd foo && pwd` to compute absolute paths, because | |
22507 # the directories may not exist. | |
22508 case `pwd` in | |
22509 .) ac_abs_builddir="$ac_dir";; | |
22510 *) | |
22511 case "$ac_dir" in | |
22512 .) ac_abs_builddir=`pwd`;; | |
22513 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22514 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22515 esac;; | |
22516 esac | |
22517 case $ac_abs_builddir in | |
22518 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22519 *) | |
22520 case ${ac_top_builddir}. in | |
22521 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22522 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22523 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22524 esac;; | |
22525 esac | |
22526 case $ac_abs_builddir in | |
22527 .) ac_abs_srcdir=$ac_srcdir;; | |
22528 *) | |
22529 case $ac_srcdir in | |
22530 .) ac_abs_srcdir=$ac_abs_builddir;; | |
22531 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22532 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22533 esac;; | |
22534 esac | |
22535 case $ac_abs_builddir in | |
22536 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22537 *) | |
22538 case $ac_top_srcdir in | |
22539 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22540 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22541 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22542 esac;; | |
22543 esac | |
22544 | |
22545 | |
22546 case $INSTALL in | |
22547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22548 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
22549 esac | |
22550 | |
22551 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22552 # use $as_me), people would be surprised to read: | |
22553 # /* config.h. Generated by config.status. */ | |
22554 if test x"$ac_file" = x-; then | |
22555 configure_input= | |
22556 else | |
22557 configure_input="$ac_file. " | |
22558 fi | |
22559 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
22560 sed 's,.*/,,'` by configure." | |
22561 | |
22562 # First look for the input files in the build tree, otherwise in the | |
22563 # src tree. | |
22564 ac_file_inputs=`IFS=: | |
22565 for f in $ac_file_in; do | |
22566 case $f in | |
22567 -) echo $tmp/stdin ;; | |
22568 [\\/$]*) | |
22569 # Absolute (can't be DOS-style, as IFS=:) | |
22570 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22571 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22572 { (exit 1); exit 1; }; } | |
22573 echo "$f";; | |
22574 *) # Relative | |
22575 if test -f "$f"; then | |
22576 # Build tree | |
22577 echo "$f" | |
22578 elif test -f "$srcdir/$f"; then | |
22579 # Source tree | |
22580 echo "$srcdir/$f" | |
22581 else | |
22582 # /dev/null tree | |
22583 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22584 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22585 { (exit 1); exit 1; }; } | |
22586 fi;; | |
22587 esac | |
22588 done` || { (exit 1); exit 1; } | |
22589 | |
22590 if test x"$ac_file" != x-; then | |
22591 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22592 echo "$as_me: creating $ac_file" >&6;} | |
22593 rm -f "$ac_file" | |
22594 fi | |
22595 _ACEOF | |
22596 cat >>$CONFIG_STATUS <<_ACEOF | |
22597 sed "$ac_vpsub | |
22598 $extrasub | |
22599 _ACEOF | |
22600 cat >>$CONFIG_STATUS <<\_ACEOF | |
22601 :t | |
22602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22603 s,@configure_input@,$configure_input,;t t | |
22604 s,@srcdir@,$ac_srcdir,;t t | |
22605 s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
22606 s,@top_srcdir@,$ac_top_srcdir,;t t | |
22607 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
22608 s,@builddir@,$ac_builddir,;t t | |
22609 s,@abs_builddir@,$ac_abs_builddir,;t t | |
22610 s,@top_builddir@,$ac_top_builddir,;t t | |
22611 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
22612 s,@INSTALL@,$ac_INSTALL,;t t | |
22613 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22614 rm -f $tmp/stdin | |
22615 if test x"$ac_file" != x-; then | |
22616 mv $tmp/out $ac_file | |
22617 else | |
22618 cat $tmp/out | |
22619 rm -f $tmp/out | |
22620 fi | |
22621 | |
22622 done | |
22623 _ACEOF | |
22624 cat >>$CONFIG_STATUS <<\_ACEOF | |
22625 | |
22626 # | |
22627 # CONFIG_HEADER section. | |
22628 # | |
22629 | |
22630 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22631 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22632 # | |
22633 # ac_d sets the value in "#define NAME VALUE" lines. | |
22634 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
22635 ac_dB='[ ].*$,\1#\2' | |
22636 ac_dC=' ' | |
22637 ac_dD=',;t' | |
22638 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22639 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22640 ac_uB='$,\1#\2define\3' | |
22641 ac_uC=' ' | |
22642 ac_uD=',;t' | |
22643 | |
22644 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
22645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22646 case $ac_file in | |
22647 - | *:- | *:-:* ) # input from stdin | |
22648 cat >$tmp/stdin | |
22649 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22651 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22653 * ) ac_file_in=$ac_file.in ;; | |
22654 esac | |
22655 | |
22656 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22657 echo "$as_me: creating $ac_file" >&6;} | |
22658 | |
22659 # First look for the input files in the build tree, otherwise in the | |
22660 # src tree. | |
22661 ac_file_inputs=`IFS=: | |
22662 for f in $ac_file_in; do | |
22663 case $f in | |
22664 -) echo $tmp/stdin ;; | |
22665 [\\/$]*) | |
22666 # Absolute (can't be DOS-style, as IFS=:) | |
22667 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22668 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22669 { (exit 1); exit 1; }; } | |
22670 # Do quote $f, to prevent DOS paths from being IFS'd. | |
22671 echo "$f";; | |
22672 *) # Relative | |
22673 if test -f "$f"; then | |
22674 # Build tree | |
22675 echo "$f" | |
22676 elif test -f "$srcdir/$f"; then | |
22677 # Source tree | |
22678 echo "$srcdir/$f" | |
22679 else | |
22680 # /dev/null tree | |
22681 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22682 echo "$as_me: error: cannot find input file: $f" >&2;} | |
22683 { (exit 1); exit 1; }; } | |
22684 fi;; | |
22685 esac | |
22686 done` || { (exit 1); exit 1; } | |
22687 # Remove the trailing spaces. | |
22688 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
22689 | |
22690 _ACEOF | |
22691 | |
22692 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22693 # `conftest.undefs', that substitutes the proper values into | |
22694 # config.h.in to produce config.h. The first handles `#define' | |
22695 # templates, and the second `#undef' templates. | |
22696 # And first: Protect against being on the right side of a sed subst in | |
22697 # config.status. Protect against being in an unquoted here document | |
22698 # in config.status. | |
22699 rm -f conftest.defines conftest.undefs | |
22700 # Using a here document instead of a string reduces the quoting nightmare. | |
22701 # Putting comments in sed scripts is not portable. | |
22702 # | |
22703 # `end' is used to avoid that the second main sed command (meant for | |
22704 # 0-ary CPP macros) applies to n-ary macro definitions. | |
22705 # See the Autoconf documentation for `clear'. | |
22706 cat >confdef2sed.sed <<\_ACEOF | |
22707 s/[\\&,]/\\&/g | |
22708 s,[\\$`],\\&,g | |
22709 t clear | |
22710 : clear | |
22711 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
22712 t end | |
22713 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
22714 : end | |
22715 _ACEOF | |
22716 # If some macros were called several times there might be several times | |
22717 # the same #defines, which is useless. Nevertheless, we may not want to | |
22718 # sort them, since we want the *last* AC-DEFINE to be honored. | |
22719 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22720 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22721 rm -f confdef2sed.sed | |
22722 | |
22723 # This sed command replaces #undef with comments. This is necessary, for | |
22724 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22725 # on some systems where configure will not decide to define it. | |
22726 cat >>conftest.undefs <<\_ACEOF | |
22727 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
22728 _ACEOF | |
22729 | |
22730 # Break up conftest.defines because some shells have a limit on the size | |
22731 # of here documents, and old seds have small limits too (100 cmds). | |
22732 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
22733 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
22734 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
22735 echo ' :' >>$CONFIG_STATUS | |
22736 rm -f conftest.tail | |
22737 while grep . conftest.defines >/dev/null | |
22738 do | |
22739 # Write a limited-size here document to $tmp/defines.sed. | |
22740 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22741 # Speed up: don't consider the non `#define' lines. | |
22742 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
22743 # Work around the forget-to-reset-the-flag bug. | |
22744 echo 't clr' >>$CONFIG_STATUS | |
22745 echo ': clr' >>$CONFIG_STATUS | |
22746 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22747 echo 'CEOF | |
22748 sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22749 rm -f $tmp/in | |
22750 mv $tmp/out $tmp/in | |
22751 ' >>$CONFIG_STATUS | |
22752 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22753 rm -f conftest.defines | |
22754 mv conftest.tail conftest.defines | |
22755 done | |
22756 rm -f conftest.defines | |
22757 echo ' fi # grep' >>$CONFIG_STATUS | |
22758 echo >>$CONFIG_STATUS | |
22759 | |
22760 # Break up conftest.undefs because some shells have a limit on the size | |
22761 # of here documents, and old seds have small limits too (100 cmds). | |
22762 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
22763 rm -f conftest.tail | |
22764 while grep . conftest.undefs >/dev/null | |
22765 do | |
22766 # Write a limited-size here document to $tmp/undefs.sed. | |
22767 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22768 # Speed up: don't consider the non `#undef' | |
22769 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
22770 # Work around the forget-to-reset-the-flag bug. | |
22771 echo 't clr' >>$CONFIG_STATUS | |
22772 echo ': clr' >>$CONFIG_STATUS | |
22773 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
22774 echo 'CEOF | |
22775 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
22776 rm -f $tmp/in | |
22777 mv $tmp/out $tmp/in | |
22778 ' >>$CONFIG_STATUS | |
22779 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22780 rm -f conftest.undefs | |
22781 mv conftest.tail conftest.undefs | |
22782 done | |
22783 rm -f conftest.undefs | |
22784 | |
22785 cat >>$CONFIG_STATUS <<\_ACEOF | |
22786 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22787 # use $as_me), people would be surprised to read: | |
22788 # /* config.h. Generated by config.status. */ | |
22789 if test x"$ac_file" = x-; then | |
22790 echo "/* Generated by configure. */" >$tmp/config.h | |
22791 else | |
22792 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
22793 fi | |
22794 cat $tmp/in >>$tmp/config.h | |
22795 rm -f $tmp/in | |
22796 if test x"$ac_file" != x-; then | |
22797 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
22798 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22799 echo "$as_me: $ac_file is unchanged" >&6;} | |
22800 else | |
22801 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22803 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22804 X"$ac_file" : 'X\(//\)$' \| \ | |
22805 X"$ac_file" : 'X\(/\)' \| \ | |
22806 . : '\(.\)' 2>/dev/null || | |
22807 echo X"$ac_file" | | |
22808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22809 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22810 /^X\(\/\/\)$/{ s//\1/; q; } | |
22811 /^X\(\/\).*/{ s//\1/; q; } | |
22812 s/.*/./; q'` | |
22813 { if $as_mkdir_p; then | |
22814 mkdir -p "$ac_dir" | |
22815 else | |
22816 as_dir="$ac_dir" | |
22817 as_dirs= | |
22818 while test ! -d "$as_dir"; do | |
22819 as_dirs="$as_dir $as_dirs" | |
22820 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22822 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22823 X"$as_dir" : 'X\(//\)$' \| \ | |
22824 X"$as_dir" : 'X\(/\)' \| \ | |
22825 . : '\(.\)' 2>/dev/null || | |
22826 echo X"$as_dir" | | |
22827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22828 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22829 /^X\(\/\/\)$/{ s//\1/; q; } | |
22830 /^X\(\/\).*/{ s//\1/; q; } | |
22831 s/.*/./; q'` | |
22832 done | |
22833 test ! -n "$as_dirs" || mkdir $as_dirs | |
22834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22836 { (exit 1); exit 1; }; }; } | |
22837 | |
22838 rm -f $ac_file | |
22839 mv $tmp/config.h $ac_file | |
22840 fi | |
22841 else | |
22842 cat $tmp/config.h | |
22843 rm -f $tmp/config.h | |
22844 fi | |
22845 # Compute $ac_file's index in $config_headers. | |
22846 _am_stamp_count=1 | |
22847 for _am_header in $config_headers :; do | |
22848 case $_am_header in | |
22849 $ac_file | $ac_file:* ) | |
22850 break ;; | |
22851 * ) | |
22852 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22853 esac | |
22854 done | |
22855 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
22856 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22857 X$ac_file : 'X\(//\)[^/]' \| \ | |
22858 X$ac_file : 'X\(//\)$' \| \ | |
22859 X$ac_file : 'X\(/\)' \| \ | |
22860 . : '\(.\)' 2>/dev/null || | |
22861 echo X$ac_file | | |
22862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22863 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22864 /^X\(\/\/\)$/{ s//\1/; q; } | |
22865 /^X\(\/\).*/{ s//\1/; q; } | |
22866 s/.*/./; q'`/stamp-h$_am_stamp_count | |
22867 done | |
22868 _ACEOF | |
22869 cat >>$CONFIG_STATUS <<\_ACEOF | |
22870 | |
22871 # | |
22872 # CONFIG_COMMANDS section. | |
22873 # | |
22874 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22875 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22876 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22877 ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22878 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22879 X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22880 X"$ac_dest" : 'X\(//\)$' \| \ | |
22881 X"$ac_dest" : 'X\(/\)' \| \ | |
22882 . : '\(.\)' 2>/dev/null || | |
22883 echo X"$ac_dest" | | |
22884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22885 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22886 /^X\(\/\/\)$/{ s//\1/; q; } | |
22887 /^X\(\/\).*/{ s//\1/; q; } | |
22888 s/.*/./; q'` | |
22889 { if $as_mkdir_p; then | |
22890 mkdir -p "$ac_dir" | |
22891 else | |
22892 as_dir="$ac_dir" | |
22893 as_dirs= | |
22894 while test ! -d "$as_dir"; do | |
22895 as_dirs="$as_dir $as_dirs" | |
22896 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22898 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22899 X"$as_dir" : 'X\(//\)$' \| \ | |
22900 X"$as_dir" : 'X\(/\)' \| \ | |
22901 . : '\(.\)' 2>/dev/null || | |
22902 echo X"$as_dir" | | |
22903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22904 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22905 /^X\(\/\/\)$/{ s//\1/; q; } | |
22906 /^X\(\/\).*/{ s//\1/; q; } | |
22907 s/.*/./; q'` | |
22908 done | |
22909 test ! -n "$as_dirs" || mkdir $as_dirs | |
22910 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22912 { (exit 1); exit 1; }; }; } | |
22913 | |
22914 ac_builddir=. | |
22915 | |
22916 if test "$ac_dir" != .; then | |
22917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22918 # A "../" for each directory in $ac_dir_suffix. | |
22919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22920 else | |
22921 ac_dir_suffix= ac_top_builddir= | |
22922 fi | |
22923 | |
22924 case $srcdir in | |
22925 .) # No --srcdir option. We are building in place. | |
22926 ac_srcdir=. | |
22927 if test -z "$ac_top_builddir"; then | |
22928 ac_top_srcdir=. | |
22929 else | |
22930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22931 fi ;; | |
22932 [\\/]* | ?:[\\/]* ) # Absolute path. | |
22933 ac_srcdir=$srcdir$ac_dir_suffix; | |
22934 ac_top_srcdir=$srcdir ;; | |
22935 *) # Relative path. | |
22936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22937 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22938 esac | |
22939 | |
22940 # Do not use `cd foo && pwd` to compute absolute paths, because | |
22941 # the directories may not exist. | |
22942 case `pwd` in | |
22943 .) ac_abs_builddir="$ac_dir";; | |
22944 *) | |
22945 case "$ac_dir" in | |
22946 .) ac_abs_builddir=`pwd`;; | |
22947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22948 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22949 esac;; | |
22950 esac | |
22951 case $ac_abs_builddir in | |
22952 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22953 *) | |
22954 case ${ac_top_builddir}. in | |
22955 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22958 esac;; | |
22959 esac | |
22960 case $ac_abs_builddir in | |
22961 .) ac_abs_srcdir=$ac_srcdir;; | |
22962 *) | |
22963 case $ac_srcdir in | |
22964 .) ac_abs_srcdir=$ac_abs_builddir;; | |
22965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22967 esac;; | |
22968 esac | |
22969 case $ac_abs_builddir in | |
22970 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22971 *) | |
22972 case $ac_top_srcdir in | |
22973 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22976 esac;; | |
22977 esac | |
22978 | |
22979 | |
22980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22981 echo "$as_me: executing $ac_dest commands" >&6;} | |
22982 case $ac_dest in | |
22983 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
22984 # Strip MF so we end up with the name of the file. | |
22985 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22986 # Check whether this is an Automake generated Makefile or not. | |
22987 # We used to match only the files named `Makefile.in', but | |
22988 # some people rename them; so instead we look at the file content. | |
22989 # Grep'ing the first line is not enough: some people post-process | |
22990 # each Makefile.in and add a new line on top of each file to say so. | |
22991 # So let's grep whole file. | |
22992 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
22993 dirpart=`(dirname "$mf") 2>/dev/null || | |
22994 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22995 X"$mf" : 'X\(//\)[^/]' \| \ | |
22996 X"$mf" : 'X\(//\)$' \| \ | |
22997 X"$mf" : 'X\(/\)' \| \ | |
22998 . : '\(.\)' 2>/dev/null || | |
22999 echo X"$mf" | | |
23000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23001 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23002 /^X\(\/\/\)$/{ s//\1/; q; } | |
23003 /^X\(\/\).*/{ s//\1/; q; } | |
23004 s/.*/./; q'` | |
23005 else | |
23006 continue | |
23007 fi | |
23008 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
23009 # Extract the definition of DEP_FILES from the Makefile without | |
23010 # running `make'. | |
23011 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
23012 test -z "$DEPDIR" && continue | |
23013 # When using ansi2knr, U may be empty or an underscore; expand it | |
23014 U=`sed -n -e '/^U = / s///p' < "$mf"` | |
23015 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
23016 # We invoke sed twice because it is the simplest approach to | |
23017 # changing $(DEPDIR) to its actual value in the expansion. | |
23018 for file in `sed -n -e ' | |
23019 /^DEP_FILES = .*\\\\$/ { | |
23020 s/^DEP_FILES = // | |
23021 :loop | |
23022 s/\\\\$// | |
23023 p | |
23024 n | |
23025 /\\\\$/ b loop | |
23026 p | |
23027 } | |
23028 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
23029 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
23030 # Make sure the directory exists. | |
23031 test -f "$dirpart/$file" && continue | |
23032 fdir=`(dirname "$file") 2>/dev/null || | |
23033 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23034 X"$file" : 'X\(//\)[^/]' \| \ | |
23035 X"$file" : 'X\(//\)$' \| \ | |
23036 X"$file" : 'X\(/\)' \| \ | |
23037 . : '\(.\)' 2>/dev/null || | |
23038 echo X"$file" | | |
23039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23040 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23041 /^X\(\/\/\)$/{ s//\1/; q; } | |
23042 /^X\(\/\).*/{ s//\1/; q; } | |
23043 s/.*/./; q'` | |
23044 { if $as_mkdir_p; then | |
23045 mkdir -p $dirpart/$fdir | |
23046 else | |
23047 as_dir=$dirpart/$fdir | |
23048 as_dirs= | |
23049 while test ! -d "$as_dir"; do | |
23050 as_dirs="$as_dir $as_dirs" | |
23051 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23053 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23054 X"$as_dir" : 'X\(//\)$' \| \ | |
23055 X"$as_dir" : 'X\(/\)' \| \ | |
23056 . : '\(.\)' 2>/dev/null || | |
23057 echo X"$as_dir" | | |
23058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23059 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23060 /^X\(\/\/\)$/{ s//\1/; q; } | |
23061 /^X\(\/\).*/{ s//\1/; q; } | |
23062 s/.*/./; q'` | |
23063 done | |
23064 test ! -n "$as_dirs" || mkdir $as_dirs | |
23065 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
23066 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
23067 { (exit 1); exit 1; }; }; } | |
23068 | |
23069 # echo "creating $dirpart/$file" | |
23070 echo '# dummy' > "$dirpart/$file" | |
23071 done | |
23072 done | |
23073 ;; | |
23074 esac | |
23075 done | |
23076 _ACEOF | |
23077 | |
23078 cat >>$CONFIG_STATUS <<\_ACEOF | |
23079 | |
23080 { (exit 0); exit 0; } | |
23081 _ACEOF | |
23082 chmod +x $CONFIG_STATUS | |
23083 ac_clean_files=$ac_clean_files_save | |
23084 | |
23085 | |
23086 # configure is writing to config.log, and then calls config.status. | |
23087 # config.status does its own redirection, appending to config.log. | |
23088 # Unfortunately, on DOS this fails, as config.log is still kept open | |
23089 # by configure, so config.status won't be able to write to it; its | |
23090 # output is simply discarded. So we exec the FD to /dev/null, | |
23091 # effectively closing config.log, so it can be properly (re)opened and | |
23092 # appended to by config.status. When coming back to configure, we | |
23093 # need to make the FD available again. | |
23094 if test "$no_create" != yes; then | |
23095 ac_cs_success=: | |
23096 ac_config_status_args= | |
23097 test "$silent" = yes && | |
23098 ac_config_status_args="$ac_config_status_args --quiet" | |
23099 exec 5>/dev/null | |
23100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23101 exec 5>>config.log | |
23102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23103 # would make configure fail if this is the last instruction. | |
23104 $ac_cs_success || { (exit 1); exit 1; } | |
23105 fi | |
23106 |