Mercurial > email
comparison configure @ 0:33bf7ee17644
Initial import from some old code
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 03 Mar 2012 14:59:04 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:33bf7ee17644 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.68 for email 1.0. | |
4 # | |
5 # | |
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
8 # Foundation, Inc. | |
9 # | |
10 # | |
11 # This configure script is free software; the Free Software Foundation | |
12 # gives unlimited permission to copy, distribute and modify it. | |
13 ## -------------------- ## | |
14 ## M4sh Initialization. ## | |
15 ## -------------------- ## | |
16 | |
17 # Be more Bourne compatible | |
18 DUALCASE=1; export DUALCASE # for MKS sh | |
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 emulate sh | |
21 NULLCMD=: | |
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 # is contrary to our usage. Disable this feature. | |
24 alias -g '${1+"$@"}'='"$@"' | |
25 setopt NO_GLOB_SUBST | |
26 else | |
27 case `(set -o) 2>/dev/null` in #( | |
28 *posix*) : | |
29 set -o posix ;; #( | |
30 *) : | |
31 ;; | |
32 esac | |
33 fi | |
34 | |
35 | |
36 as_nl=' | |
37 ' | |
38 export as_nl | |
39 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 # but without wasting forks for bash or zsh. | |
45 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 as_echo='print -r --' | |
48 as_echo_n='print -rn --' | |
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 as_echo='printf %s\n' | |
51 as_echo_n='printf %s' | |
52 else | |
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 as_echo_n='/usr/ucb/echo -n' | |
56 else | |
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 as_echo_n_body='eval | |
59 arg=$1; | |
60 case $arg in #( | |
61 *"$as_nl"*) | |
62 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 esac; | |
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 ' | |
67 export as_echo_n_body | |
68 as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 fi | |
70 export as_echo_body | |
71 as_echo='sh -c $as_echo_body as_echo' | |
72 fi | |
73 | |
74 # The user is always right. | |
75 if test "${PATH_SEPARATOR+set}" != set; then | |
76 PATH_SEPARATOR=: | |
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 PATH_SEPARATOR=';' | |
80 } | |
81 fi | |
82 | |
83 | |
84 # IFS | |
85 # We need space, tab and new line, in precisely that order. Quoting is | |
86 # there to prevent editors from complaining about space-tab. | |
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 # splitting by setting IFS to empty value.) | |
89 IFS=" "" $as_nl" | |
90 | |
91 # Find who we are. Look in the path if we contain no directory separator. | |
92 as_myself= | |
93 case $0 in #(( | |
94 *[\\/]* ) as_myself=$0 ;; | |
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 for as_dir in $PATH | |
97 do | |
98 IFS=$as_save_IFS | |
99 test -z "$as_dir" && as_dir=. | |
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 done | |
102 IFS=$as_save_IFS | |
103 | |
104 ;; | |
105 esac | |
106 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 # in which case we are not to be found in the path. | |
108 if test "x$as_myself" = x; then | |
109 as_myself=$0 | |
110 fi | |
111 if test ! -f "$as_myself"; then | |
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 exit 1 | |
114 fi | |
115 | |
116 # Unset variables that we do not need and which cause bugs (e.g. in | |
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 # suppresses any "Segmentation fault" message there. '((' could | |
119 # trigger a bug in pdksh 5.2.14. | |
120 for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 do eval test x\${$as_var+set} = xset \ | |
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 done | |
124 PS1='$ ' | |
125 PS2='> ' | |
126 PS4='+ ' | |
127 | |
128 # NLS nuisances. | |
129 LC_ALL=C | |
130 export LC_ALL | |
131 LANGUAGE=C | |
132 export LANGUAGE | |
133 | |
134 # CDPATH. | |
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | |
137 if test "x$CONFIG_SHELL" = x; then | |
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
139 emulate sh | |
140 NULLCMD=: | |
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
142 # is contrary to our usage. Disable this feature. | |
143 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
144 setopt NO_GLOB_SUBST | |
145 else | |
146 case \`(set -o) 2>/dev/null\` in #( | |
147 *posix*) : | |
148 set -o posix ;; #( | |
149 *) : | |
150 ;; | |
151 esac | |
152 fi | |
153 " | |
154 as_required="as_fn_return () { (exit \$1); } | |
155 as_fn_success () { as_fn_return 0; } | |
156 as_fn_failure () { as_fn_return 1; } | |
157 as_fn_ret_success () { return 0; } | |
158 as_fn_ret_failure () { return 1; } | |
159 | |
160 exitcode=0 | |
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
166 | |
167 else | |
168 exitcode=1; echo positional parameters were not saved. | |
169 fi | |
170 test x\$exitcode = x0 || exit 1" | |
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
175 | |
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
180 PATH=/empty FPATH=/empty; export PATH FPATH | |
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
183 test \$(( 1 + 1 )) = 2 || exit 1" | |
184 if (eval "$as_required") 2>/dev/null; then : | |
185 as_have_required=yes | |
186 else | |
187 as_have_required=no | |
188 fi | |
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
190 | |
191 else | |
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
193 as_found=false | |
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
195 do | |
196 IFS=$as_save_IFS | |
197 test -z "$as_dir" && as_dir=. | |
198 as_found=: | |
199 case $as_dir in #( | |
200 /*) | |
201 for as_base in sh bash ksh sh5; do | |
202 # Try only shells that exist, to save several forks. | |
203 as_shell=$as_dir/$as_base | |
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
206 CONFIG_SHELL=$as_shell as_have_required=yes | |
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
208 break 2 | |
209 fi | |
210 fi | |
211 done;; | |
212 esac | |
213 as_found=false | |
214 done | |
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
217 CONFIG_SHELL=$SHELL as_have_required=yes | |
218 fi; } | |
219 IFS=$as_save_IFS | |
220 | |
221 | |
222 if test "x$CONFIG_SHELL" != x; then : | |
223 # We cannot yet assume a decent shell, so we have to provide a | |
224 # neutralization value for shells without unset; and this also | |
225 # works around shells that cannot unset nonexistent variables. | |
226 # Preserve -v and -x to the replacement shell. | |
227 BASH_ENV=/dev/null | |
228 ENV=/dev/null | |
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
230 export CONFIG_SHELL | |
231 case $- in # (((( | |
232 *v*x* | *x*v* ) as_opts=-vx ;; | |
233 *v* ) as_opts=-v ;; | |
234 *x* ) as_opts=-x ;; | |
235 * ) as_opts= ;; | |
236 esac | |
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
238 fi | |
239 | |
240 if test x$as_have_required = xno; then : | |
241 $as_echo "$0: This script requires a shell more modern than all" | |
242 $as_echo "$0: the shells that I found on your system." | |
243 if test x${ZSH_VERSION+set} = xset ; then | |
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
246 else | |
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
248 $0: including any error possibly output before this | |
249 $0: message. Then install a modern shell, or manually run | |
250 $0: the script under such a shell if you do have one." | |
251 fi | |
252 exit 1 | |
253 fi | |
254 fi | |
255 fi | |
256 SHELL=${CONFIG_SHELL-/bin/sh} | |
257 export SHELL | |
258 # Unset more variables known to interfere with behavior of common tools. | |
259 CLICOLOR_FORCE= GREP_OPTIONS= | |
260 unset CLICOLOR_FORCE GREP_OPTIONS | |
261 | |
262 ## --------------------- ## | |
263 ## M4sh Shell Functions. ## | |
264 ## --------------------- ## | |
265 # as_fn_unset VAR | |
266 # --------------- | |
267 # Portably unset VAR. | |
268 as_fn_unset () | |
269 { | |
270 { eval $1=; unset $1;} | |
271 } | |
272 as_unset=as_fn_unset | |
273 | |
274 # as_fn_set_status STATUS | |
275 # ----------------------- | |
276 # Set $? to STATUS, without forking. | |
277 as_fn_set_status () | |
278 { | |
279 return $1 | |
280 } # as_fn_set_status | |
281 | |
282 # as_fn_exit STATUS | |
283 # ----------------- | |
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
285 as_fn_exit () | |
286 { | |
287 set +e | |
288 as_fn_set_status $1 | |
289 exit $1 | |
290 } # as_fn_exit | |
291 | |
292 # as_fn_mkdir_p | |
293 # ------------- | |
294 # Create "$as_dir" as a directory, including parents if necessary. | |
295 as_fn_mkdir_p () | |
296 { | |
297 | |
298 case $as_dir in #( | |
299 -*) as_dir=./$as_dir;; | |
300 esac | |
301 test -d "$as_dir" || eval $as_mkdir_p || { | |
302 as_dirs= | |
303 while :; do | |
304 case $as_dir in #( | |
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
306 *) as_qdir=$as_dir;; | |
307 esac | |
308 as_dirs="'$as_qdir' $as_dirs" | |
309 as_dir=`$as_dirname -- "$as_dir" || | |
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
311 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
312 X"$as_dir" : 'X\(//\)$' \| \ | |
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
314 $as_echo X"$as_dir" | | |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
316 s//\1/ | |
317 q | |
318 } | |
319 /^X\(\/\/\)[^/].*/{ | |
320 s//\1/ | |
321 q | |
322 } | |
323 /^X\(\/\/\)$/{ | |
324 s//\1/ | |
325 q | |
326 } | |
327 /^X\(\/\).*/{ | |
328 s//\1/ | |
329 q | |
330 } | |
331 s/.*/./; q'` | |
332 test -d "$as_dir" && break | |
333 done | |
334 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
336 | |
337 | |
338 } # as_fn_mkdir_p | |
339 # as_fn_append VAR VALUE | |
340 # ---------------------- | |
341 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
342 # advantage of any shell optimizations that allow amortized linear growth over | |
343 # repeated appends, instead of the typical quadratic growth present in naive | |
344 # implementations. | |
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
346 eval 'as_fn_append () | |
347 { | |
348 eval $1+=\$2 | |
349 }' | |
350 else | |
351 as_fn_append () | |
352 { | |
353 eval $1=\$$1\$2 | |
354 } | |
355 fi # as_fn_append | |
356 | |
357 # as_fn_arith ARG... | |
358 # ------------------ | |
359 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
361 # must be portable across $(()) and expr. | |
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
363 eval 'as_fn_arith () | |
364 { | |
365 as_val=$(( $* )) | |
366 }' | |
367 else | |
368 as_fn_arith () | |
369 { | |
370 as_val=`expr "$@" || test $? -eq 1` | |
371 } | |
372 fi # as_fn_arith | |
373 | |
374 | |
375 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
376 # ---------------------------------------- | |
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
379 # script with STATUS, using 1 if that was 0. | |
380 as_fn_error () | |
381 { | |
382 as_status=$1; test $as_status -eq 0 && as_status=1 | |
383 if test "$4"; then | |
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
386 fi | |
387 $as_echo "$as_me: error: $2" >&2 | |
388 as_fn_exit $as_status | |
389 } # as_fn_error | |
390 | |
391 if expr a : '\(a\)' >/dev/null 2>&1 && | |
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
393 as_expr=expr | |
394 else | |
395 as_expr=false | |
396 fi | |
397 | |
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
399 as_basename=basename | |
400 else | |
401 as_basename=false | |
402 fi | |
403 | |
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
405 as_dirname=dirname | |
406 else | |
407 as_dirname=false | |
408 fi | |
409 | |
410 as_me=`$as_basename -- "$0" || | |
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
412 X"$0" : 'X\(//\)$' \| \ | |
413 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
414 $as_echo X/"$0" | | |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
416 s//\1/ | |
417 q | |
418 } | |
419 /^X\/\(\/\/\)$/{ | |
420 s//\1/ | |
421 q | |
422 } | |
423 /^X\/\(\/\).*/{ | |
424 s//\1/ | |
425 q | |
426 } | |
427 s/.*/./; q'` | |
428 | |
429 # Avoid depending upon Character Ranges. | |
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
433 as_cr_digits='0123456789' | |
434 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
435 | |
436 | |
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
442 sed -n ' | |
443 p | |
444 /[$]LINENO/= | |
445 ' <$as_myself | | |
446 sed ' | |
447 s/[$]LINENO.*/&-/ | |
448 t lineno | |
449 b | |
450 :lineno | |
451 N | |
452 :loop | |
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
454 t loop | |
455 s/-\n.*// | |
456 ' >$as_me.lineno && | |
457 chmod +x "$as_me.lineno" || | |
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
459 | |
460 # Don't try to exec as it changes $[0], causing all sort of problems | |
461 # (the dirname of $[0] is not the place where we might find the | |
462 # original and so on. Autoconf is especially sensitive to this). | |
463 . "./$as_me.lineno" | |
464 # Exit status is that of the last command. | |
465 exit | |
466 } | |
467 | |
468 ECHO_C= ECHO_N= ECHO_T= | |
469 case `echo -n x` in #((((( | |
470 -n*) | |
471 case `echo 'xy\c'` in | |
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
473 xy) ECHO_C='\c';; | |
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
475 ECHO_T=' ';; | |
476 esac;; | |
477 *) | |
478 ECHO_N='-n';; | |
479 esac | |
480 | |
481 rm -f conf$$ conf$$.exe conf$$.file | |
482 if test -d conf$$.dir; then | |
483 rm -f conf$$.dir/conf$$.file | |
484 else | |
485 rm -f conf$$.dir | |
486 mkdir conf$$.dir 2>/dev/null | |
487 fi | |
488 if (echo >conf$$.file) 2>/dev/null; then | |
489 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
490 as_ln_s='ln -s' | |
491 # ... but there are two gotchas: | |
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
494 # In both cases, we have to default to `cp -p'. | |
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
496 as_ln_s='cp -p' | |
497 elif ln conf$$.file conf$$ 2>/dev/null; then | |
498 as_ln_s=ln | |
499 else | |
500 as_ln_s='cp -p' | |
501 fi | |
502 else | |
503 as_ln_s='cp -p' | |
504 fi | |
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
506 rmdir conf$$.dir 2>/dev/null | |
507 | |
508 if mkdir -p . 2>/dev/null; then | |
509 as_mkdir_p='mkdir -p "$as_dir"' | |
510 else | |
511 test -d ./-p && rmdir ./-p | |
512 as_mkdir_p=false | |
513 fi | |
514 | |
515 if test -x / >/dev/null 2>&1; then | |
516 as_test_x='test -x' | |
517 else | |
518 if ls -dL / >/dev/null 2>&1; then | |
519 as_ls_L_option=L | |
520 else | |
521 as_ls_L_option= | |
522 fi | |
523 as_test_x=' | |
524 eval sh -c '\'' | |
525 if test -d "$1"; then | |
526 test -d "$1/."; | |
527 else | |
528 case $1 in #( | |
529 -*)set "./$1";; | |
530 esac; | |
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
532 ???[sx]*):;;*)false;;esac;fi | |
533 '\'' sh | |
534 ' | |
535 fi | |
536 as_executable_p=$as_test_x | |
537 | |
538 # Sed expression to map a string onto a valid CPP name. | |
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
540 | |
541 # Sed expression to map a string onto a valid variable name. | |
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
543 | |
544 SHELL=${CONFIG_SHELL-/bin/sh} | |
545 | |
546 | |
547 test -n "$DJDIR" || exec 7<&0 </dev/null | |
548 exec 6>&1 | |
549 | |
550 # Name of the host. | |
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
552 # so uname gets run too. | |
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
554 | |
555 # | |
556 # Initializations. | |
557 # | |
558 ac_default_prefix=/usr/local | |
559 ac_clean_files= | |
560 ac_config_libobj_dir=. | |
561 LIBOBJS= | |
562 cross_compiling=no | |
563 subdirs= | |
564 MFLAGS= | |
565 MAKEFLAGS= | |
566 | |
567 # Identity of this package. | |
568 PACKAGE_NAME='email' | |
569 PACKAGE_TARNAME='email' | |
570 PACKAGE_VERSION='1.0' | |
571 PACKAGE_STRING='email 1.0' | |
572 PACKAGE_BUGREPORT='' | |
573 PACKAGE_URL='' | |
574 | |
575 # Factoring default headers for most tests. | |
576 ac_includes_default="\ | |
577 #include <stdio.h> | |
578 #ifdef HAVE_SYS_TYPES_H | |
579 # include <sys/types.h> | |
580 #endif | |
581 #ifdef HAVE_SYS_STAT_H | |
582 # include <sys/stat.h> | |
583 #endif | |
584 #ifdef STDC_HEADERS | |
585 # include <stdlib.h> | |
586 # include <stddef.h> | |
587 #else | |
588 # ifdef HAVE_STDLIB_H | |
589 # include <stdlib.h> | |
590 # endif | |
591 #endif | |
592 #ifdef HAVE_STRING_H | |
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
594 # include <memory.h> | |
595 # endif | |
596 # include <string.h> | |
597 #endif | |
598 #ifdef HAVE_STRINGS_H | |
599 # include <strings.h> | |
600 #endif | |
601 #ifdef HAVE_INTTYPES_H | |
602 # include <inttypes.h> | |
603 #endif | |
604 #ifdef HAVE_STDINT_H | |
605 # include <stdint.h> | |
606 #endif | |
607 #ifdef HAVE_UNISTD_H | |
608 # include <unistd.h> | |
609 #endif" | |
610 | |
611 ac_subst_vars='am__EXEEXT_FALSE | |
612 am__EXEEXT_TRUE | |
613 LTLIBOBJS | |
614 LIBOBJS | |
615 URWEB_INC | |
616 URWEB_LIB | |
617 CPP | |
618 OTOOL64 | |
619 OTOOL | |
620 LIPO | |
621 NMEDIT | |
622 DSYMUTIL | |
623 MANIFEST_TOOL | |
624 RANLIB | |
625 ac_ct_AR | |
626 AR | |
627 DLLTOOL | |
628 OBJDUMP | |
629 LN_S | |
630 NM | |
631 ac_ct_DUMPBIN | |
632 DUMPBIN | |
633 LD | |
634 FGREP | |
635 EGREP | |
636 GREP | |
637 SED | |
638 host_os | |
639 host_vendor | |
640 host_cpu | |
641 host | |
642 build_os | |
643 build_vendor | |
644 build_cpu | |
645 build | |
646 LIBTOOL | |
647 am__fastdepCC_FALSE | |
648 am__fastdepCC_TRUE | |
649 CCDEPMODE | |
650 AMDEPBACKSLASH | |
651 AMDEP_FALSE | |
652 AMDEP_TRUE | |
653 am__quote | |
654 am__include | |
655 DEPDIR | |
656 OBJEXT | |
657 EXEEXT | |
658 ac_ct_CC | |
659 CPPFLAGS | |
660 LDFLAGS | |
661 CFLAGS | |
662 CC | |
663 am__untar | |
664 am__tar | |
665 AMTAR | |
666 am__leading_dot | |
667 SET_MAKE | |
668 AWK | |
669 mkdir_p | |
670 MKDIR_P | |
671 INSTALL_STRIP_PROGRAM | |
672 STRIP | |
673 install_sh | |
674 MAKEINFO | |
675 AUTOHEADER | |
676 AUTOMAKE | |
677 AUTOCONF | |
678 ACLOCAL | |
679 VERSION | |
680 PACKAGE | |
681 CYGPATH_W | |
682 am__isrc | |
683 INSTALL_DATA | |
684 INSTALL_SCRIPT | |
685 INSTALL_PROGRAM | |
686 target_alias | |
687 host_alias | |
688 build_alias | |
689 LIBS | |
690 ECHO_T | |
691 ECHO_N | |
692 ECHO_C | |
693 DEFS | |
694 mandir | |
695 localedir | |
696 libdir | |
697 psdir | |
698 pdfdir | |
699 dvidir | |
700 htmldir | |
701 infodir | |
702 docdir | |
703 oldincludedir | |
704 includedir | |
705 localstatedir | |
706 sharedstatedir | |
707 sysconfdir | |
708 datadir | |
709 datarootdir | |
710 libexecdir | |
711 sbindir | |
712 bindir | |
713 program_transform_name | |
714 prefix | |
715 exec_prefix | |
716 PACKAGE_URL | |
717 PACKAGE_BUGREPORT | |
718 PACKAGE_STRING | |
719 PACKAGE_VERSION | |
720 PACKAGE_TARNAME | |
721 PACKAGE_NAME | |
722 PATH_SEPARATOR | |
723 SHELL' | |
724 ac_subst_files='' | |
725 ac_user_opts=' | |
726 enable_option_checking | |
727 enable_dependency_tracking | |
728 enable_shared | |
729 enable_static | |
730 with_pic | |
731 enable_fast_install | |
732 with_gnu_ld | |
733 with_sysroot | |
734 enable_libtool_lock | |
735 ' | |
736 ac_precious_vars='build_alias | |
737 host_alias | |
738 target_alias | |
739 CC | |
740 CFLAGS | |
741 LDFLAGS | |
742 LIBS | |
743 CPPFLAGS | |
744 CPP' | |
745 | |
746 | |
747 # Initialize some variables set by options. | |
748 ac_init_help= | |
749 ac_init_version=false | |
750 ac_unrecognized_opts= | |
751 ac_unrecognized_sep= | |
752 # The variables have the same names as the options, with | |
753 # dashes changed to underlines. | |
754 cache_file=/dev/null | |
755 exec_prefix=NONE | |
756 no_create= | |
757 no_recursion= | |
758 prefix=NONE | |
759 program_prefix=NONE | |
760 program_suffix=NONE | |
761 program_transform_name=s,x,x, | |
762 silent= | |
763 site= | |
764 srcdir= | |
765 verbose= | |
766 x_includes=NONE | |
767 x_libraries=NONE | |
768 | |
769 # Installation directory options. | |
770 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
771 # and all the variables that are supposed to be based on exec_prefix | |
772 # by default will actually change. | |
773 # Use braces instead of parens because sh, perl, etc. also accept them. | |
774 # (The list follows the same order as the GNU Coding Standards.) | |
775 bindir='${exec_prefix}/bin' | |
776 sbindir='${exec_prefix}/sbin' | |
777 libexecdir='${exec_prefix}/libexec' | |
778 datarootdir='${prefix}/share' | |
779 datadir='${datarootdir}' | |
780 sysconfdir='${prefix}/etc' | |
781 sharedstatedir='${prefix}/com' | |
782 localstatedir='${prefix}/var' | |
783 includedir='${prefix}/include' | |
784 oldincludedir='/usr/include' | |
785 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
786 infodir='${datarootdir}/info' | |
787 htmldir='${docdir}' | |
788 dvidir='${docdir}' | |
789 pdfdir='${docdir}' | |
790 psdir='${docdir}' | |
791 libdir='${exec_prefix}/lib' | |
792 localedir='${datarootdir}/locale' | |
793 mandir='${datarootdir}/man' | |
794 | |
795 ac_prev= | |
796 ac_dashdash= | |
797 for ac_option | |
798 do | |
799 # If the previous option needs an argument, assign it. | |
800 if test -n "$ac_prev"; then | |
801 eval $ac_prev=\$ac_option | |
802 ac_prev= | |
803 continue | |
804 fi | |
805 | |
806 case $ac_option in | |
807 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
808 *=) ac_optarg= ;; | |
809 *) ac_optarg=yes ;; | |
810 esac | |
811 | |
812 # Accept the important Cygnus configure options, so we can diagnose typos. | |
813 | |
814 case $ac_dashdash$ac_option in | |
815 --) | |
816 ac_dashdash=yes ;; | |
817 | |
818 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
819 ac_prev=bindir ;; | |
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
821 bindir=$ac_optarg ;; | |
822 | |
823 -build | --build | --buil | --bui | --bu) | |
824 ac_prev=build_alias ;; | |
825 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
826 build_alias=$ac_optarg ;; | |
827 | |
828 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
830 ac_prev=cache_file ;; | |
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
833 cache_file=$ac_optarg ;; | |
834 | |
835 --config-cache | -C) | |
836 cache_file=config.cache ;; | |
837 | |
838 -datadir | --datadir | --datadi | --datad) | |
839 ac_prev=datadir ;; | |
840 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
841 datadir=$ac_optarg ;; | |
842 | |
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
844 | --dataroo | --dataro | --datar) | |
845 ac_prev=datarootdir ;; | |
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
848 datarootdir=$ac_optarg ;; | |
849 | |
850 -disable-* | --disable-*) | |
851 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
852 # Reject names that are not valid shell variable names. | |
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
854 as_fn_error $? "invalid feature name: $ac_useropt" | |
855 ac_useropt_orig=$ac_useropt | |
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
857 case $ac_user_opts in | |
858 *" | |
859 "enable_$ac_useropt" | |
860 "*) ;; | |
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
862 ac_unrecognized_sep=', ';; | |
863 esac | |
864 eval enable_$ac_useropt=no ;; | |
865 | |
866 -docdir | --docdir | --docdi | --doc | --do) | |
867 ac_prev=docdir ;; | |
868 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
869 docdir=$ac_optarg ;; | |
870 | |
871 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
872 ac_prev=dvidir ;; | |
873 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
874 dvidir=$ac_optarg ;; | |
875 | |
876 -enable-* | --enable-*) | |
877 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
878 # Reject names that are not valid shell variable names. | |
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
880 as_fn_error $? "invalid feature name: $ac_useropt" | |
881 ac_useropt_orig=$ac_useropt | |
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
883 case $ac_user_opts in | |
884 *" | |
885 "enable_$ac_useropt" | |
886 "*) ;; | |
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
888 ac_unrecognized_sep=', ';; | |
889 esac | |
890 eval enable_$ac_useropt=\$ac_optarg ;; | |
891 | |
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
894 | --exec | --exe | --ex) | |
895 ac_prev=exec_prefix ;; | |
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
898 | --exec=* | --exe=* | --ex=*) | |
899 exec_prefix=$ac_optarg ;; | |
900 | |
901 -gas | --gas | --ga | --g) | |
902 # Obsolete; use --with-gas. | |
903 with_gas=yes ;; | |
904 | |
905 -help | --help | --hel | --he | -h) | |
906 ac_init_help=long ;; | |
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
908 ac_init_help=recursive ;; | |
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
910 ac_init_help=short ;; | |
911 | |
912 -host | --host | --hos | --ho) | |
913 ac_prev=host_alias ;; | |
914 -host=* | --host=* | --hos=* | --ho=*) | |
915 host_alias=$ac_optarg ;; | |
916 | |
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
918 ac_prev=htmldir ;; | |
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
920 | --ht=*) | |
921 htmldir=$ac_optarg ;; | |
922 | |
923 -includedir | --includedir | --includedi | --included | --include \ | |
924 | --includ | --inclu | --incl | --inc) | |
925 ac_prev=includedir ;; | |
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
927 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
928 includedir=$ac_optarg ;; | |
929 | |
930 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
931 ac_prev=infodir ;; | |
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
933 infodir=$ac_optarg ;; | |
934 | |
935 -libdir | --libdir | --libdi | --libd) | |
936 ac_prev=libdir ;; | |
937 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
938 libdir=$ac_optarg ;; | |
939 | |
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
941 | --libexe | --libex | --libe) | |
942 ac_prev=libexecdir ;; | |
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
944 | --libexe=* | --libex=* | --libe=*) | |
945 libexecdir=$ac_optarg ;; | |
946 | |
947 -localedir | --localedir | --localedi | --localed | --locale) | |
948 ac_prev=localedir ;; | |
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
950 localedir=$ac_optarg ;; | |
951 | |
952 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
953 | --localstate | --localstat | --localsta | --localst | --locals) | |
954 ac_prev=localstatedir ;; | |
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
957 localstatedir=$ac_optarg ;; | |
958 | |
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
960 ac_prev=mandir ;; | |
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
962 mandir=$ac_optarg ;; | |
963 | |
964 -nfp | --nfp | --nf) | |
965 # Obsolete; use --without-fp. | |
966 with_fp=no ;; | |
967 | |
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
969 | --no-cr | --no-c | -n) | |
970 no_create=yes ;; | |
971 | |
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
974 no_recursion=yes ;; | |
975 | |
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
978 | --oldin | --oldi | --old | --ol | --o) | |
979 ac_prev=oldincludedir ;; | |
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
983 oldincludedir=$ac_optarg ;; | |
984 | |
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
986 ac_prev=prefix ;; | |
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
988 prefix=$ac_optarg ;; | |
989 | |
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
991 | --program-pre | --program-pr | --program-p) | |
992 ac_prev=program_prefix ;; | |
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
995 program_prefix=$ac_optarg ;; | |
996 | |
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
998 | --program-suf | --program-su | --program-s) | |
999 ac_prev=program_suffix ;; | |
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1002 program_suffix=$ac_optarg ;; | |
1003 | |
1004 -program-transform-name | --program-transform-name \ | |
1005 | --program-transform-nam | --program-transform-na \ | |
1006 | --program-transform-n | --program-transform- \ | |
1007 | --program-transform | --program-transfor \ | |
1008 | --program-transfo | --program-transf \ | |
1009 | --program-trans | --program-tran \ | |
1010 | --progr-tra | --program-tr | --program-t) | |
1011 ac_prev=program_transform_name ;; | |
1012 -program-transform-name=* | --program-transform-name=* \ | |
1013 | --program-transform-nam=* | --program-transform-na=* \ | |
1014 | --program-transform-n=* | --program-transform-=* \ | |
1015 | --program-transform=* | --program-transfor=* \ | |
1016 | --program-transfo=* | --program-transf=* \ | |
1017 | --program-trans=* | --program-tran=* \ | |
1018 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1019 program_transform_name=$ac_optarg ;; | |
1020 | |
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1022 ac_prev=pdfdir ;; | |
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1024 pdfdir=$ac_optarg ;; | |
1025 | |
1026 -psdir | --psdir | --psdi | --psd | --ps) | |
1027 ac_prev=psdir ;; | |
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1029 psdir=$ac_optarg ;; | |
1030 | |
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1032 | -silent | --silent | --silen | --sile | --sil) | |
1033 silent=yes ;; | |
1034 | |
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1036 ac_prev=sbindir ;; | |
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1038 | --sbi=* | --sb=*) | |
1039 sbindir=$ac_optarg ;; | |
1040 | |
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1043 | --sharedst | --shareds | --shared | --share | --shar \ | |
1044 | --sha | --sh) | |
1045 ac_prev=sharedstatedir ;; | |
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1049 | --sha=* | --sh=*) | |
1050 sharedstatedir=$ac_optarg ;; | |
1051 | |
1052 -site | --site | --sit) | |
1053 ac_prev=site ;; | |
1054 -site=* | --site=* | --sit=*) | |
1055 site=$ac_optarg ;; | |
1056 | |
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1058 ac_prev=srcdir ;; | |
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1060 srcdir=$ac_optarg ;; | |
1061 | |
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1063 | --syscon | --sysco | --sysc | --sys | --sy) | |
1064 ac_prev=sysconfdir ;; | |
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1067 sysconfdir=$ac_optarg ;; | |
1068 | |
1069 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1070 ac_prev=target_alias ;; | |
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1072 target_alias=$ac_optarg ;; | |
1073 | |
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1075 verbose=yes ;; | |
1076 | |
1077 -version | --version | --versio | --versi | --vers | -V) | |
1078 ac_init_version=: ;; | |
1079 | |
1080 -with-* | --with-*) | |
1081 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1082 # Reject names that are not valid shell variable names. | |
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1084 as_fn_error $? "invalid package name: $ac_useropt" | |
1085 ac_useropt_orig=$ac_useropt | |
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1087 case $ac_user_opts in | |
1088 *" | |
1089 "with_$ac_useropt" | |
1090 "*) ;; | |
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1092 ac_unrecognized_sep=', ';; | |
1093 esac | |
1094 eval with_$ac_useropt=\$ac_optarg ;; | |
1095 | |
1096 -without-* | --without-*) | |
1097 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1098 # Reject names that are not valid shell variable names. | |
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1100 as_fn_error $? "invalid package name: $ac_useropt" | |
1101 ac_useropt_orig=$ac_useropt | |
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1103 case $ac_user_opts in | |
1104 *" | |
1105 "with_$ac_useropt" | |
1106 "*) ;; | |
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1108 ac_unrecognized_sep=', ';; | |
1109 esac | |
1110 eval with_$ac_useropt=no ;; | |
1111 | |
1112 --x) | |
1113 # Obsolete; use --with-x. | |
1114 with_x=yes ;; | |
1115 | |
1116 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1117 | --x-incl | --x-inc | --x-in | --x-i) | |
1118 ac_prev=x_includes ;; | |
1119 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1120 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1121 x_includes=$ac_optarg ;; | |
1122 | |
1123 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1124 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1125 ac_prev=x_libraries ;; | |
1126 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1127 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1128 x_libraries=$ac_optarg ;; | |
1129 | |
1130 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1131 Try \`$0 --help' for more information" | |
1132 ;; | |
1133 | |
1134 *=*) | |
1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1136 # Reject names that are not valid shell variable names. | |
1137 case $ac_envvar in #( | |
1138 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1139 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1140 esac | |
1141 eval $ac_envvar=\$ac_optarg | |
1142 export $ac_envvar ;; | |
1143 | |
1144 *) | |
1145 # FIXME: should be removed in autoconf 3.0. | |
1146 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1148 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1150 ;; | |
1151 | |
1152 esac | |
1153 done | |
1154 | |
1155 if test -n "$ac_prev"; then | |
1156 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1157 as_fn_error $? "missing argument to $ac_option" | |
1158 fi | |
1159 | |
1160 if test -n "$ac_unrecognized_opts"; then | |
1161 case $enable_option_checking in | |
1162 no) ;; | |
1163 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1164 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1165 esac | |
1166 fi | |
1167 | |
1168 # Check all directory arguments for consistency. | |
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1170 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1172 libdir localedir mandir | |
1173 do | |
1174 eval ac_val=\$$ac_var | |
1175 # Remove trailing slashes. | |
1176 case $ac_val in | |
1177 */ ) | |
1178 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1179 eval $ac_var=\$ac_val;; | |
1180 esac | |
1181 # Be sure to have absolute directory names. | |
1182 case $ac_val in | |
1183 [\\/$]* | ?:[\\/]* ) continue;; | |
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1185 esac | |
1186 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1187 done | |
1188 | |
1189 # There might be people who depend on the old broken behavior: `$host' | |
1190 # used to hold the argument of --host etc. | |
1191 # FIXME: To remove some day. | |
1192 build=$build_alias | |
1193 host=$host_alias | |
1194 target=$target_alias | |
1195 | |
1196 # FIXME: To remove some day. | |
1197 if test "x$host_alias" != x; then | |
1198 if test "x$build_alias" = x; then | |
1199 cross_compiling=maybe | |
1200 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1201 If a cross compiler is detected then cross compile mode will be used" >&2 | |
1202 elif test "x$build_alias" != "x$host_alias"; then | |
1203 cross_compiling=yes | |
1204 fi | |
1205 fi | |
1206 | |
1207 ac_tool_prefix= | |
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1209 | |
1210 test "$silent" = yes && exec 6>/dev/null | |
1211 | |
1212 | |
1213 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1214 ac_ls_di=`ls -di .` && | |
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1216 as_fn_error $? "working directory cannot be determined" | |
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1218 as_fn_error $? "pwd does not report name of working directory" | |
1219 | |
1220 | |
1221 # Find the source files, if location was not specified. | |
1222 if test -z "$srcdir"; then | |
1223 ac_srcdir_defaulted=yes | |
1224 # Try the directory containing this script, then the parent directory. | |
1225 ac_confdir=`$as_dirname -- "$as_myself" || | |
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1227 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1228 X"$as_myself" : 'X\(//\)$' \| \ | |
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1230 $as_echo X"$as_myself" | | |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1232 s//\1/ | |
1233 q | |
1234 } | |
1235 /^X\(\/\/\)[^/].*/{ | |
1236 s//\1/ | |
1237 q | |
1238 } | |
1239 /^X\(\/\/\)$/{ | |
1240 s//\1/ | |
1241 q | |
1242 } | |
1243 /^X\(\/\).*/{ | |
1244 s//\1/ | |
1245 q | |
1246 } | |
1247 s/.*/./; q'` | |
1248 srcdir=$ac_confdir | |
1249 if test ! -r "$srcdir/$ac_unique_file"; then | |
1250 srcdir=.. | |
1251 fi | |
1252 else | |
1253 ac_srcdir_defaulted=no | |
1254 fi | |
1255 if test ! -r "$srcdir/$ac_unique_file"; then | |
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1257 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1258 fi | |
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1260 ac_abs_confdir=`( | |
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1262 pwd)` | |
1263 # When building in place, set srcdir=. | |
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1265 srcdir=. | |
1266 fi | |
1267 # Remove unnecessary trailing slashes from srcdir. | |
1268 # Double slashes in file names in object file debugging info | |
1269 # mess up M-x gdb in Emacs. | |
1270 case $srcdir in | |
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1272 esac | |
1273 for ac_var in $ac_precious_vars; do | |
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1275 eval ac_env_${ac_var}_value=\$${ac_var} | |
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1278 done | |
1279 | |
1280 # | |
1281 # Report the --help message. | |
1282 # | |
1283 if test "$ac_init_help" = "long"; then | |
1284 # Omit some internal or obsolete options to make the list less imposing. | |
1285 # This message is too long to be a string in the A/UX 3.1 sh. | |
1286 cat <<_ACEOF | |
1287 \`configure' configures email 1.0 to adapt to many kinds of systems. | |
1288 | |
1289 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1290 | |
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1292 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1293 | |
1294 Defaults for the options are specified in brackets. | |
1295 | |
1296 Configuration: | |
1297 -h, --help display this help and exit | |
1298 --help=short display options specific to this package | |
1299 --help=recursive display the short help of all the included packages | |
1300 -V, --version display version information and exit | |
1301 -q, --quiet, --silent do not print \`checking ...' messages | |
1302 --cache-file=FILE cache test results in FILE [disabled] | |
1303 -C, --config-cache alias for \`--cache-file=config.cache' | |
1304 -n, --no-create do not create output files | |
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1306 | |
1307 Installation directories: | |
1308 --prefix=PREFIX install architecture-independent files in PREFIX | |
1309 [$ac_default_prefix] | |
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1311 [PREFIX] | |
1312 | |
1313 By default, \`make install' will install all the files in | |
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1316 for instance \`--prefix=\$HOME'. | |
1317 | |
1318 For better control, use the options below. | |
1319 | |
1320 Fine tuning of the installation directories: | |
1321 --bindir=DIR user executables [EPREFIX/bin] | |
1322 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1323 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1327 --libdir=DIR object code libraries [EPREFIX/lib] | |
1328 --includedir=DIR C header files [PREFIX/include] | |
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1332 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1334 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/email] | |
1336 --htmldir=DIR html documentation [DOCDIR] | |
1337 --dvidir=DIR dvi documentation [DOCDIR] | |
1338 --pdfdir=DIR pdf documentation [DOCDIR] | |
1339 --psdir=DIR ps documentation [DOCDIR] | |
1340 _ACEOF | |
1341 | |
1342 cat <<\_ACEOF | |
1343 | |
1344 Program names: | |
1345 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1346 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1347 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1348 | |
1349 System types: | |
1350 --build=BUILD configure for building on BUILD [guessed] | |
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1352 _ACEOF | |
1353 fi | |
1354 | |
1355 if test -n "$ac_init_help"; then | |
1356 case $ac_init_help in | |
1357 short | recursive ) echo "Configuration of email 1.0:";; | |
1358 esac | |
1359 cat <<\_ACEOF | |
1360 | |
1361 Optional Features: | |
1362 --disable-option-checking ignore unrecognized --enable/--with options | |
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1365 --disable-dependency-tracking speeds up one-time build | |
1366 --enable-dependency-tracking do not reject slow dependency extractors | |
1367 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1368 --enable-static[=PKGS] build static libraries [default=yes] | |
1369 --enable-fast-install[=PKGS] | |
1370 optimize for fast installation [default=yes] | |
1371 --disable-libtool-lock avoid locking (might break parallel builds) | |
1372 | |
1373 Optional Packages: | |
1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1376 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1377 both] | |
1378 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1379 --with-sysroot=DIR Search for dependent libraries within DIR | |
1380 (or the compiler's sysroot if not specified). | |
1381 | |
1382 Some influential environment variables: | |
1383 CC C compiler command | |
1384 CFLAGS C compiler flags | |
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1386 nonstandard directory <lib dir> | |
1387 LIBS libraries to pass to the linker, e.g. -l<library> | |
1388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1389 you have headers in a nonstandard directory <include dir> | |
1390 CPP C preprocessor | |
1391 | |
1392 Use these variables to override the choices made by `configure' or to help | |
1393 it to find libraries and programs with nonstandard names/locations. | |
1394 | |
1395 Report bugs to the package provider. | |
1396 _ACEOF | |
1397 ac_status=$? | |
1398 fi | |
1399 | |
1400 if test "$ac_init_help" = "recursive"; then | |
1401 # If there are subdirs, report their specific --help. | |
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1403 test -d "$ac_dir" || | |
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1405 continue | |
1406 ac_builddir=. | |
1407 | |
1408 case "$ac_dir" in | |
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1410 *) | |
1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1412 # A ".." for each directory in $ac_dir_suffix. | |
1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1414 case $ac_top_builddir_sub in | |
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1417 esac ;; | |
1418 esac | |
1419 ac_abs_top_builddir=$ac_pwd | |
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1421 # for backward compatibility: | |
1422 ac_top_builddir=$ac_top_build_prefix | |
1423 | |
1424 case $srcdir in | |
1425 .) # We are building in place. | |
1426 ac_srcdir=. | |
1427 ac_top_srcdir=$ac_top_builddir_sub | |
1428 ac_abs_top_srcdir=$ac_pwd ;; | |
1429 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1430 ac_srcdir=$srcdir$ac_dir_suffix; | |
1431 ac_top_srcdir=$srcdir | |
1432 ac_abs_top_srcdir=$srcdir ;; | |
1433 *) # Relative name. | |
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1437 esac | |
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1439 | |
1440 cd "$ac_dir" || { ac_status=$?; continue; } | |
1441 # Check for guested configure. | |
1442 if test -f "$ac_srcdir/configure.gnu"; then | |
1443 echo && | |
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1445 elif test -f "$ac_srcdir/configure"; then | |
1446 echo && | |
1447 $SHELL "$ac_srcdir/configure" --help=recursive | |
1448 else | |
1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1450 fi || ac_status=$? | |
1451 cd "$ac_pwd" || { ac_status=$?; break; } | |
1452 done | |
1453 fi | |
1454 | |
1455 test -n "$ac_init_help" && exit $ac_status | |
1456 if $ac_init_version; then | |
1457 cat <<\_ACEOF | |
1458 email configure 1.0 | |
1459 generated by GNU Autoconf 2.68 | |
1460 | |
1461 Copyright (C) 2010 Free Software Foundation, Inc. | |
1462 This configure script is free software; the Free Software Foundation | |
1463 gives unlimited permission to copy, distribute and modify it. | |
1464 _ACEOF | |
1465 exit | |
1466 fi | |
1467 | |
1468 ## ------------------------ ## | |
1469 ## Autoconf initialization. ## | |
1470 ## ------------------------ ## | |
1471 | |
1472 # ac_fn_c_try_compile LINENO | |
1473 # -------------------------- | |
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1475 ac_fn_c_try_compile () | |
1476 { | |
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1478 rm -f conftest.$ac_objext | |
1479 if { { ac_try="$ac_compile" | |
1480 case "(($ac_try" in | |
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1482 *) ac_try_echo=$ac_try;; | |
1483 esac | |
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1485 $as_echo "$ac_try_echo"; } >&5 | |
1486 (eval "$ac_compile") 2>conftest.err | |
1487 ac_status=$? | |
1488 if test -s conftest.err; then | |
1489 grep -v '^ *+' conftest.err >conftest.er1 | |
1490 cat conftest.er1 >&5 | |
1491 mv -f conftest.er1 conftest.err | |
1492 fi | |
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1494 test $ac_status = 0; } && { | |
1495 test -z "$ac_c_werror_flag" || | |
1496 test ! -s conftest.err | |
1497 } && test -s conftest.$ac_objext; then : | |
1498 ac_retval=0 | |
1499 else | |
1500 $as_echo "$as_me: failed program was:" >&5 | |
1501 sed 's/^/| /' conftest.$ac_ext >&5 | |
1502 | |
1503 ac_retval=1 | |
1504 fi | |
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1506 as_fn_set_status $ac_retval | |
1507 | |
1508 } # ac_fn_c_try_compile | |
1509 | |
1510 # ac_fn_c_try_link LINENO | |
1511 # ----------------------- | |
1512 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1513 ac_fn_c_try_link () | |
1514 { | |
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1516 rm -f conftest.$ac_objext conftest$ac_exeext | |
1517 if { { ac_try="$ac_link" | |
1518 case "(($ac_try" in | |
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1520 *) ac_try_echo=$ac_try;; | |
1521 esac | |
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1523 $as_echo "$ac_try_echo"; } >&5 | |
1524 (eval "$ac_link") 2>conftest.err | |
1525 ac_status=$? | |
1526 if test -s conftest.err; then | |
1527 grep -v '^ *+' conftest.err >conftest.er1 | |
1528 cat conftest.er1 >&5 | |
1529 mv -f conftest.er1 conftest.err | |
1530 fi | |
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1532 test $ac_status = 0; } && { | |
1533 test -z "$ac_c_werror_flag" || | |
1534 test ! -s conftest.err | |
1535 } && test -s conftest$ac_exeext && { | |
1536 test "$cross_compiling" = yes || | |
1537 $as_test_x conftest$ac_exeext | |
1538 }; then : | |
1539 ac_retval=0 | |
1540 else | |
1541 $as_echo "$as_me: failed program was:" >&5 | |
1542 sed 's/^/| /' conftest.$ac_ext >&5 | |
1543 | |
1544 ac_retval=1 | |
1545 fi | |
1546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1548 # interfere with the next link command; also delete a directory that is | |
1549 # left behind by Apple's compiler. We do this before executing the actions. | |
1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1552 as_fn_set_status $ac_retval | |
1553 | |
1554 } # ac_fn_c_try_link | |
1555 | |
1556 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1557 # ------------------------------------------------------- | |
1558 # Tests whether HEADER exists and can be compiled using the include files in | |
1559 # INCLUDES, setting the cache variable VAR accordingly. | |
1560 ac_fn_c_check_header_compile () | |
1561 { | |
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1564 $as_echo_n "checking for $2... " >&6; } | |
1565 if eval \${$3+:} false; then : | |
1566 $as_echo_n "(cached) " >&6 | |
1567 else | |
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1569 /* end confdefs.h. */ | |
1570 $4 | |
1571 #include <$2> | |
1572 _ACEOF | |
1573 if ac_fn_c_try_compile "$LINENO"; then : | |
1574 eval "$3=yes" | |
1575 else | |
1576 eval "$3=no" | |
1577 fi | |
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1579 fi | |
1580 eval ac_res=\$$3 | |
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1582 $as_echo "$ac_res" >&6; } | |
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1584 | |
1585 } # ac_fn_c_check_header_compile | |
1586 | |
1587 # ac_fn_c_try_cpp LINENO | |
1588 # ---------------------- | |
1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1590 ac_fn_c_try_cpp () | |
1591 { | |
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1593 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1594 case "(($ac_try" in | |
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1596 *) ac_try_echo=$ac_try;; | |
1597 esac | |
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1599 $as_echo "$ac_try_echo"; } >&5 | |
1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1601 ac_status=$? | |
1602 if test -s conftest.err; then | |
1603 grep -v '^ *+' conftest.err >conftest.er1 | |
1604 cat conftest.er1 >&5 | |
1605 mv -f conftest.er1 conftest.err | |
1606 fi | |
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1608 test $ac_status = 0; } > conftest.i && { | |
1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1610 test ! -s conftest.err | |
1611 }; then : | |
1612 ac_retval=0 | |
1613 else | |
1614 $as_echo "$as_me: failed program was:" >&5 | |
1615 sed 's/^/| /' conftest.$ac_ext >&5 | |
1616 | |
1617 ac_retval=1 | |
1618 fi | |
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1620 as_fn_set_status $ac_retval | |
1621 | |
1622 } # ac_fn_c_try_cpp | |
1623 | |
1624 # ac_fn_c_try_run LINENO | |
1625 # ---------------------- | |
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1627 # that executables *can* be run. | |
1628 ac_fn_c_try_run () | |
1629 { | |
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1631 if { { ac_try="$ac_link" | |
1632 case "(($ac_try" in | |
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1634 *) ac_try_echo=$ac_try;; | |
1635 esac | |
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1637 $as_echo "$ac_try_echo"; } >&5 | |
1638 (eval "$ac_link") 2>&5 | |
1639 ac_status=$? | |
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1642 { { case "(($ac_try" in | |
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1644 *) ac_try_echo=$ac_try;; | |
1645 esac | |
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1647 $as_echo "$ac_try_echo"; } >&5 | |
1648 (eval "$ac_try") 2>&5 | |
1649 ac_status=$? | |
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1651 test $ac_status = 0; }; }; then : | |
1652 ac_retval=0 | |
1653 else | |
1654 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1655 $as_echo "$as_me: failed program was:" >&5 | |
1656 sed 's/^/| /' conftest.$ac_ext >&5 | |
1657 | |
1658 ac_retval=$ac_status | |
1659 fi | |
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1662 as_fn_set_status $ac_retval | |
1663 | |
1664 } # ac_fn_c_try_run | |
1665 | |
1666 # ac_fn_c_check_func LINENO FUNC VAR | |
1667 # ---------------------------------- | |
1668 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1669 ac_fn_c_check_func () | |
1670 { | |
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1673 $as_echo_n "checking for $2... " >&6; } | |
1674 if eval \${$3+:} false; then : | |
1675 $as_echo_n "(cached) " >&6 | |
1676 else | |
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1678 /* end confdefs.h. */ | |
1679 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1680 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1681 #define $2 innocuous_$2 | |
1682 | |
1683 /* System header to define __stub macros and hopefully few prototypes, | |
1684 which can conflict with char $2 (); below. | |
1685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1686 <limits.h> exists even on freestanding compilers. */ | |
1687 | |
1688 #ifdef __STDC__ | |
1689 # include <limits.h> | |
1690 #else | |
1691 # include <assert.h> | |
1692 #endif | |
1693 | |
1694 #undef $2 | |
1695 | |
1696 /* Override any GCC internal prototype to avoid an error. | |
1697 Use char because int might match the return type of a GCC | |
1698 builtin and then its argument prototype would still apply. */ | |
1699 #ifdef __cplusplus | |
1700 extern "C" | |
1701 #endif | |
1702 char $2 (); | |
1703 /* The GNU C library defines this for functions which it implements | |
1704 to always fail with ENOSYS. Some functions are actually named | |
1705 something starting with __ and the normal name is an alias. */ | |
1706 #if defined __stub_$2 || defined __stub___$2 | |
1707 choke me | |
1708 #endif | |
1709 | |
1710 int | |
1711 main () | |
1712 { | |
1713 return $2 (); | |
1714 ; | |
1715 return 0; | |
1716 } | |
1717 _ACEOF | |
1718 if ac_fn_c_try_link "$LINENO"; then : | |
1719 eval "$3=yes" | |
1720 else | |
1721 eval "$3=no" | |
1722 fi | |
1723 rm -f core conftest.err conftest.$ac_objext \ | |
1724 conftest$ac_exeext conftest.$ac_ext | |
1725 fi | |
1726 eval ac_res=\$$3 | |
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1728 $as_echo "$ac_res" >&6; } | |
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1730 | |
1731 } # ac_fn_c_check_func | |
1732 cat >config.log <<_ACEOF | |
1733 This file contains any messages produced by compilers while | |
1734 running configure, to aid debugging if configure makes a mistake. | |
1735 | |
1736 It was created by email $as_me 1.0, which was | |
1737 generated by GNU Autoconf 2.68. Invocation command line was | |
1738 | |
1739 $ $0 $@ | |
1740 | |
1741 _ACEOF | |
1742 exec 5>>config.log | |
1743 { | |
1744 cat <<_ASUNAME | |
1745 ## --------- ## | |
1746 ## Platform. ## | |
1747 ## --------- ## | |
1748 | |
1749 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1750 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1751 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1752 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1753 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1754 | |
1755 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1756 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1757 | |
1758 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1759 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1760 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1761 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1762 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1763 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1764 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1765 | |
1766 _ASUNAME | |
1767 | |
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1769 for as_dir in $PATH | |
1770 do | |
1771 IFS=$as_save_IFS | |
1772 test -z "$as_dir" && as_dir=. | |
1773 $as_echo "PATH: $as_dir" | |
1774 done | |
1775 IFS=$as_save_IFS | |
1776 | |
1777 } >&5 | |
1778 | |
1779 cat >&5 <<_ACEOF | |
1780 | |
1781 | |
1782 ## ----------- ## | |
1783 ## Core tests. ## | |
1784 ## ----------- ## | |
1785 | |
1786 _ACEOF | |
1787 | |
1788 | |
1789 # Keep a trace of the command line. | |
1790 # Strip out --no-create and --no-recursion so they do not pile up. | |
1791 # Strip out --silent because we don't want to record it for future runs. | |
1792 # Also quote any args containing shell meta-characters. | |
1793 # Make two passes to allow for proper duplicate-argument suppression. | |
1794 ac_configure_args= | |
1795 ac_configure_args0= | |
1796 ac_configure_args1= | |
1797 ac_must_keep_next=false | |
1798 for ac_pass in 1 2 | |
1799 do | |
1800 for ac_arg | |
1801 do | |
1802 case $ac_arg in | |
1803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1805 | -silent | --silent | --silen | --sile | --sil) | |
1806 continue ;; | |
1807 *\'*) | |
1808 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1809 esac | |
1810 case $ac_pass in | |
1811 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1812 2) | |
1813 as_fn_append ac_configure_args1 " '$ac_arg'" | |
1814 if test $ac_must_keep_next = true; then | |
1815 ac_must_keep_next=false # Got value, back to normal. | |
1816 else | |
1817 case $ac_arg in | |
1818 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1821 | -with-* | --with-* | -without-* | --without-* | --x) | |
1822 case "$ac_configure_args0 " in | |
1823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1824 esac | |
1825 ;; | |
1826 -* ) ac_must_keep_next=true ;; | |
1827 esac | |
1828 fi | |
1829 as_fn_append ac_configure_args " '$ac_arg'" | |
1830 ;; | |
1831 esac | |
1832 done | |
1833 done | |
1834 { ac_configure_args0=; unset ac_configure_args0;} | |
1835 { ac_configure_args1=; unset ac_configure_args1;} | |
1836 | |
1837 # When interrupted or exit'd, cleanup temporary files, and complete | |
1838 # config.log. We remove comments because anyway the quotes in there | |
1839 # would cause problems or look ugly. | |
1840 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1841 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1842 trap 'exit_status=$? | |
1843 # Save into config.log some information that might help in debugging. | |
1844 { | |
1845 echo | |
1846 | |
1847 $as_echo "## ---------------- ## | |
1848 ## Cache variables. ## | |
1849 ## ---------------- ##" | |
1850 echo | |
1851 # The following way of writing the cache mishandles newlines in values, | |
1852 ( | |
1853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1854 eval ac_val=\$$ac_var | |
1855 case $ac_val in #( | |
1856 *${as_nl}*) | |
1857 case $ac_var in #( | |
1858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1860 esac | |
1861 case $ac_var in #( | |
1862 _ | IFS | as_nl) ;; #( | |
1863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1864 *) { eval $ac_var=; unset $ac_var;} ;; | |
1865 esac ;; | |
1866 esac | |
1867 done | |
1868 (set) 2>&1 | | |
1869 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1870 *${as_nl}ac_space=\ *) | |
1871 sed -n \ | |
1872 "s/'\''/'\''\\\\'\'''\''/g; | |
1873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1874 ;; #( | |
1875 *) | |
1876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1877 ;; | |
1878 esac | | |
1879 sort | |
1880 ) | |
1881 echo | |
1882 | |
1883 $as_echo "## ----------------- ## | |
1884 ## Output variables. ## | |
1885 ## ----------------- ##" | |
1886 echo | |
1887 for ac_var in $ac_subst_vars | |
1888 do | |
1889 eval ac_val=\$$ac_var | |
1890 case $ac_val in | |
1891 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1892 esac | |
1893 $as_echo "$ac_var='\''$ac_val'\''" | |
1894 done | sort | |
1895 echo | |
1896 | |
1897 if test -n "$ac_subst_files"; then | |
1898 $as_echo "## ------------------- ## | |
1899 ## File substitutions. ## | |
1900 ## ------------------- ##" | |
1901 echo | |
1902 for ac_var in $ac_subst_files | |
1903 do | |
1904 eval ac_val=\$$ac_var | |
1905 case $ac_val in | |
1906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1907 esac | |
1908 $as_echo "$ac_var='\''$ac_val'\''" | |
1909 done | sort | |
1910 echo | |
1911 fi | |
1912 | |
1913 if test -s confdefs.h; then | |
1914 $as_echo "## ----------- ## | |
1915 ## confdefs.h. ## | |
1916 ## ----------- ##" | |
1917 echo | |
1918 cat confdefs.h | |
1919 echo | |
1920 fi | |
1921 test "$ac_signal" != 0 && | |
1922 $as_echo "$as_me: caught signal $ac_signal" | |
1923 $as_echo "$as_me: exit $exit_status" | |
1924 } >&5 | |
1925 rm -f core *.core core.conftest.* && | |
1926 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1927 exit $exit_status | |
1928 ' 0 | |
1929 for ac_signal in 1 2 13 15; do | |
1930 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1931 done | |
1932 ac_signal=0 | |
1933 | |
1934 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1935 rm -f -r conftest* confdefs.h | |
1936 | |
1937 $as_echo "/* confdefs.h */" > confdefs.h | |
1938 | |
1939 # Predefined preprocessor variables. | |
1940 | |
1941 cat >>confdefs.h <<_ACEOF | |
1942 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1943 _ACEOF | |
1944 | |
1945 cat >>confdefs.h <<_ACEOF | |
1946 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1947 _ACEOF | |
1948 | |
1949 cat >>confdefs.h <<_ACEOF | |
1950 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1951 _ACEOF | |
1952 | |
1953 cat >>confdefs.h <<_ACEOF | |
1954 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1955 _ACEOF | |
1956 | |
1957 cat >>confdefs.h <<_ACEOF | |
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1959 _ACEOF | |
1960 | |
1961 cat >>confdefs.h <<_ACEOF | |
1962 #define PACKAGE_URL "$PACKAGE_URL" | |
1963 _ACEOF | |
1964 | |
1965 | |
1966 # Let the site file select an alternate cache file if it wants to. | |
1967 # Prefer an explicitly selected file to automatically selected ones. | |
1968 ac_site_file1=NONE | |
1969 ac_site_file2=NONE | |
1970 if test -n "$CONFIG_SITE"; then | |
1971 # We do not want a PATH search for config.site. | |
1972 case $CONFIG_SITE in #(( | |
1973 -*) ac_site_file1=./$CONFIG_SITE;; | |
1974 */*) ac_site_file1=$CONFIG_SITE;; | |
1975 *) ac_site_file1=./$CONFIG_SITE;; | |
1976 esac | |
1977 elif test "x$prefix" != xNONE; then | |
1978 ac_site_file1=$prefix/share/config.site | |
1979 ac_site_file2=$prefix/etc/config.site | |
1980 else | |
1981 ac_site_file1=$ac_default_prefix/share/config.site | |
1982 ac_site_file2=$ac_default_prefix/etc/config.site | |
1983 fi | |
1984 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1985 do | |
1986 test "x$ac_site_file" = xNONE && continue | |
1987 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1989 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1990 sed 's/^/| /' "$ac_site_file" >&5 | |
1991 . "$ac_site_file" \ | |
1992 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1994 as_fn_error $? "failed to load site script $ac_site_file | |
1995 See \`config.log' for more details" "$LINENO" 5; } | |
1996 fi | |
1997 done | |
1998 | |
1999 if test -r "$cache_file"; then | |
2000 # Some versions of bash will fail to source /dev/null (special files | |
2001 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2002 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2004 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2005 case $cache_file in | |
2006 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2007 *) . "./$cache_file";; | |
2008 esac | |
2009 fi | |
2010 else | |
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2012 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2013 >$cache_file | |
2014 fi | |
2015 | |
2016 # Check that the precious variables saved in the cache have kept the same | |
2017 # value. | |
2018 ac_cache_corrupted=false | |
2019 for ac_var in $ac_precious_vars; do | |
2020 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2021 eval ac_new_set=\$ac_env_${ac_var}_set | |
2022 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2023 eval ac_new_val=\$ac_env_${ac_var}_value | |
2024 case $ac_old_set,$ac_new_set in | |
2025 set,) | |
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2027 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2028 ac_cache_corrupted=: ;; | |
2029 ,set) | |
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2031 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2032 ac_cache_corrupted=: ;; | |
2033 ,);; | |
2034 *) | |
2035 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2036 # differences in whitespace do not lead to failure. | |
2037 ac_old_val_w=`echo x $ac_old_val` | |
2038 ac_new_val_w=`echo x $ac_new_val` | |
2039 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2041 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2042 ac_cache_corrupted=: | |
2043 else | |
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2045 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2046 eval $ac_var=\$ac_old_val | |
2047 fi | |
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2049 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2051 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2052 fi;; | |
2053 esac | |
2054 # Pass precious variables to config.status. | |
2055 if test "$ac_new_set" = set; then | |
2056 case $ac_new_val in | |
2057 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2058 *) ac_arg=$ac_var=$ac_new_val ;; | |
2059 esac | |
2060 case " $ac_configure_args " in | |
2061 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2062 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2063 esac | |
2064 fi | |
2065 done | |
2066 if $ac_cache_corrupted; then | |
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2070 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2071 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2072 fi | |
2073 ## -------------------- ## | |
2074 ## Main body of script. ## | |
2075 ## -------------------- ## | |
2076 | |
2077 ac_ext=c | |
2078 ac_cpp='$CPP $CPPFLAGS' | |
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2082 | |
2083 | |
2084 am__api_version='1.11' | |
2085 | |
2086 ac_aux_dir= | |
2087 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2088 if test -f "$ac_dir/install-sh"; then | |
2089 ac_aux_dir=$ac_dir | |
2090 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2091 break | |
2092 elif test -f "$ac_dir/install.sh"; then | |
2093 ac_aux_dir=$ac_dir | |
2094 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2095 break | |
2096 elif test -f "$ac_dir/shtool"; then | |
2097 ac_aux_dir=$ac_dir | |
2098 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2099 break | |
2100 fi | |
2101 done | |
2102 if test -z "$ac_aux_dir"; then | |
2103 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2104 fi | |
2105 | |
2106 # These three variables are undocumented and unsupported, | |
2107 # and are intended to be withdrawn in a future Autoconf release. | |
2108 # They can cause serious problems if a builder's source tree is in a directory | |
2109 # whose full name contains unusual characters. | |
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2112 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2113 | |
2114 | |
2115 # Find a good install program. We prefer a C program (faster), | |
2116 # so one script is as good as another. But avoid the broken or | |
2117 # incompatible versions: | |
2118 # SysV /etc/install, /usr/sbin/install | |
2119 # SunOS /usr/etc/install | |
2120 # IRIX /sbin/install | |
2121 # AIX /bin/install | |
2122 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2123 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2124 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2125 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2126 # OS/2's system install, which has a completely different semantic | |
2127 # ./install, which can be erroneously created by make from ./install.sh. | |
2128 # Reject install programs that cannot install multiple files. | |
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2130 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2131 if test -z "$INSTALL"; then | |
2132 if ${ac_cv_path_install+:} false; then : | |
2133 $as_echo_n "(cached) " >&6 | |
2134 else | |
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2136 for as_dir in $PATH | |
2137 do | |
2138 IFS=$as_save_IFS | |
2139 test -z "$as_dir" && as_dir=. | |
2140 # Account for people who put trailing slashes in PATH elements. | |
2141 case $as_dir/ in #(( | |
2142 ./ | .// | /[cC]/* | \ | |
2143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2144 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2145 /usr/ucb/* ) ;; | |
2146 *) | |
2147 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2148 # Don't use installbsd from OSF since it installs stuff as root | |
2149 # by default. | |
2150 for ac_prog in ginstall scoinst install; do | |
2151 for ac_exec_ext in '' $ac_executable_extensions; do | |
2152 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2153 if test $ac_prog = install && | |
2154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2155 # AIX install. It has an incompatible calling convention. | |
2156 : | |
2157 elif test $ac_prog = install && | |
2158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2159 # program-specific install script used by HP pwplus--don't use. | |
2160 : | |
2161 else | |
2162 rm -rf conftest.one conftest.two conftest.dir | |
2163 echo one > conftest.one | |
2164 echo two > conftest.two | |
2165 mkdir conftest.dir | |
2166 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2167 test -s conftest.one && test -s conftest.two && | |
2168 test -s conftest.dir/conftest.one && | |
2169 test -s conftest.dir/conftest.two | |
2170 then | |
2171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2172 break 3 | |
2173 fi | |
2174 fi | |
2175 fi | |
2176 done | |
2177 done | |
2178 ;; | |
2179 esac | |
2180 | |
2181 done | |
2182 IFS=$as_save_IFS | |
2183 | |
2184 rm -rf conftest.one conftest.two conftest.dir | |
2185 | |
2186 fi | |
2187 if test "${ac_cv_path_install+set}" = set; then | |
2188 INSTALL=$ac_cv_path_install | |
2189 else | |
2190 # As a last resort, use the slow shell script. Don't cache a | |
2191 # value for INSTALL within a source directory, because that will | |
2192 # break other packages using the cache if that directory is | |
2193 # removed, or if the value is a relative name. | |
2194 INSTALL=$ac_install_sh | |
2195 fi | |
2196 fi | |
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2198 $as_echo "$INSTALL" >&6; } | |
2199 | |
2200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2201 # It thinks the first close brace ends the variable substitution. | |
2202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2203 | |
2204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2205 | |
2206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2207 | |
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2209 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2210 # Just in case | |
2211 sleep 1 | |
2212 echo timestamp > conftest.file | |
2213 # Reject unsafe characters in $srcdir or the absolute working directory | |
2214 # name. Accept space and tab only in the latter. | |
2215 am_lf=' | |
2216 ' | |
2217 case `pwd` in | |
2218 *[\\\"\#\$\&\'\`$am_lf]*) | |
2219 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2220 esac | |
2221 case $srcdir in | |
2222 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2223 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2224 esac | |
2225 | |
2226 # Do `set' in a subshell so we don't clobber the current shell's | |
2227 # arguments. Must try -L first in case configure is actually a | |
2228 # symlink; some systems play weird games with the mod time of symlinks | |
2229 # (eg FreeBSD returns the mod time of the symlink's containing | |
2230 # directory). | |
2231 if ( | |
2232 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2233 if test "$*" = "X"; then | |
2234 # -L didn't work. | |
2235 set X `ls -t "$srcdir/configure" conftest.file` | |
2236 fi | |
2237 rm -f conftest.file | |
2238 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2239 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2240 | |
2241 # If neither matched, then we have a broken ls. This can happen | |
2242 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2243 # broken ls alias from the environment. This has actually | |
2244 # happened. Such a system could not be considered "sane". | |
2245 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2246 alias in your environment" "$LINENO" 5 | |
2247 fi | |
2248 | |
2249 test "$2" = conftest.file | |
2250 ) | |
2251 then | |
2252 # Ok. | |
2253 : | |
2254 else | |
2255 as_fn_error $? "newly created file is older than distributed files! | |
2256 Check your system clock" "$LINENO" 5 | |
2257 fi | |
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2259 $as_echo "yes" >&6; } | |
2260 test "$program_prefix" != NONE && | |
2261 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2262 # Use a double $ so make ignores it. | |
2263 test "$program_suffix" != NONE && | |
2264 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2265 # Double any \ or $. | |
2266 # By default was `s,x,x', remove it if useless. | |
2267 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2268 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2269 | |
2270 # expand $ac_aux_dir to an absolute path | |
2271 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2272 | |
2273 if test x"${MISSING+set}" != xset; then | |
2274 case $am_aux_dir in | |
2275 *\ * | *\ *) | |
2276 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2277 *) | |
2278 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2279 esac | |
2280 fi | |
2281 # Use eval to expand $SHELL | |
2282 if eval "$MISSING --run true"; then | |
2283 am_missing_run="$MISSING --run " | |
2284 else | |
2285 am_missing_run= | |
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2287 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2288 fi | |
2289 | |
2290 if test x"${install_sh}" != xset; then | |
2291 case $am_aux_dir in | |
2292 *\ * | *\ *) | |
2293 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2294 *) | |
2295 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2296 esac | |
2297 fi | |
2298 | |
2299 # Installed binaries are usually stripped using `strip' when the user | |
2300 # run `make install-strip'. However `strip' might not be the right | |
2301 # tool to use in cross-compilation environments, therefore Automake | |
2302 # will honor the `STRIP' environment variable to overrule this program. | |
2303 if test "$cross_compiling" != no; then | |
2304 if test -n "$ac_tool_prefix"; then | |
2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2308 $as_echo_n "checking for $ac_word... " >&6; } | |
2309 if ${ac_cv_prog_STRIP+:} false; then : | |
2310 $as_echo_n "(cached) " >&6 | |
2311 else | |
2312 if test -n "$STRIP"; then | |
2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2314 else | |
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2316 for as_dir in $PATH | |
2317 do | |
2318 IFS=$as_save_IFS | |
2319 test -z "$as_dir" && as_dir=. | |
2320 for ac_exec_ext in '' $ac_executable_extensions; do | |
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2324 break 2 | |
2325 fi | |
2326 done | |
2327 done | |
2328 IFS=$as_save_IFS | |
2329 | |
2330 fi | |
2331 fi | |
2332 STRIP=$ac_cv_prog_STRIP | |
2333 if test -n "$STRIP"; then | |
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2335 $as_echo "$STRIP" >&6; } | |
2336 else | |
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2338 $as_echo "no" >&6; } | |
2339 fi | |
2340 | |
2341 | |
2342 fi | |
2343 if test -z "$ac_cv_prog_STRIP"; then | |
2344 ac_ct_STRIP=$STRIP | |
2345 # Extract the first word of "strip", so it can be a program name with args. | |
2346 set dummy strip; ac_word=$2 | |
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2348 $as_echo_n "checking for $ac_word... " >&6; } | |
2349 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2350 $as_echo_n "(cached) " >&6 | |
2351 else | |
2352 if test -n "$ac_ct_STRIP"; then | |
2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2354 else | |
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2356 for as_dir in $PATH | |
2357 do | |
2358 IFS=$as_save_IFS | |
2359 test -z "$as_dir" && as_dir=. | |
2360 for ac_exec_ext in '' $ac_executable_extensions; do | |
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2362 ac_cv_prog_ac_ct_STRIP="strip" | |
2363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2364 break 2 | |
2365 fi | |
2366 done | |
2367 done | |
2368 IFS=$as_save_IFS | |
2369 | |
2370 fi | |
2371 fi | |
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2373 if test -n "$ac_ct_STRIP"; then | |
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2375 $as_echo "$ac_ct_STRIP" >&6; } | |
2376 else | |
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2378 $as_echo "no" >&6; } | |
2379 fi | |
2380 | |
2381 if test "x$ac_ct_STRIP" = x; then | |
2382 STRIP=":" | |
2383 else | |
2384 case $cross_compiling:$ac_tool_warned in | |
2385 yes:) | |
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2388 ac_tool_warned=yes ;; | |
2389 esac | |
2390 STRIP=$ac_ct_STRIP | |
2391 fi | |
2392 else | |
2393 STRIP="$ac_cv_prog_STRIP" | |
2394 fi | |
2395 | |
2396 fi | |
2397 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2398 | |
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2400 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2401 if test -z "$MKDIR_P"; then | |
2402 if ${ac_cv_path_mkdir+:} false; then : | |
2403 $as_echo_n "(cached) " >&6 | |
2404 else | |
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2406 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2407 do | |
2408 IFS=$as_save_IFS | |
2409 test -z "$as_dir" && as_dir=. | |
2410 for ac_prog in mkdir gmkdir; do | |
2411 for ac_exec_ext in '' $ac_executable_extensions; do | |
2412 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2413 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2414 'mkdir (GNU coreutils) '* | \ | |
2415 'mkdir (coreutils) '* | \ | |
2416 'mkdir (fileutils) '4.1*) | |
2417 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2418 break 3;; | |
2419 esac | |
2420 done | |
2421 done | |
2422 done | |
2423 IFS=$as_save_IFS | |
2424 | |
2425 fi | |
2426 | |
2427 test -d ./--version && rmdir ./--version | |
2428 if test "${ac_cv_path_mkdir+set}" = set; then | |
2429 MKDIR_P="$ac_cv_path_mkdir -p" | |
2430 else | |
2431 # As a last resort, use the slow shell script. Don't cache a | |
2432 # value for MKDIR_P within a source directory, because that will | |
2433 # break other packages using the cache if that directory is | |
2434 # removed, or if the value is a relative name. | |
2435 MKDIR_P="$ac_install_sh -d" | |
2436 fi | |
2437 fi | |
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2439 $as_echo "$MKDIR_P" >&6; } | |
2440 | |
2441 mkdir_p="$MKDIR_P" | |
2442 case $mkdir_p in | |
2443 [\\/$]* | ?:[\\/]*) ;; | |
2444 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2445 esac | |
2446 | |
2447 for ac_prog in gawk mawk nawk awk | |
2448 do | |
2449 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2450 set dummy $ac_prog; ac_word=$2 | |
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2452 $as_echo_n "checking for $ac_word... " >&6; } | |
2453 if ${ac_cv_prog_AWK+:} false; then : | |
2454 $as_echo_n "(cached) " >&6 | |
2455 else | |
2456 if test -n "$AWK"; then | |
2457 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2458 else | |
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2460 for as_dir in $PATH | |
2461 do | |
2462 IFS=$as_save_IFS | |
2463 test -z "$as_dir" && as_dir=. | |
2464 for ac_exec_ext in '' $ac_executable_extensions; do | |
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2466 ac_cv_prog_AWK="$ac_prog" | |
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2468 break 2 | |
2469 fi | |
2470 done | |
2471 done | |
2472 IFS=$as_save_IFS | |
2473 | |
2474 fi | |
2475 fi | |
2476 AWK=$ac_cv_prog_AWK | |
2477 if test -n "$AWK"; then | |
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2479 $as_echo "$AWK" >&6; } | |
2480 else | |
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2482 $as_echo "no" >&6; } | |
2483 fi | |
2484 | |
2485 | |
2486 test -n "$AWK" && break | |
2487 done | |
2488 | |
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2490 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2491 set x ${MAKE-make} | |
2492 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2493 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2494 $as_echo_n "(cached) " >&6 | |
2495 else | |
2496 cat >conftest.make <<\_ACEOF | |
2497 SHELL = /bin/sh | |
2498 all: | |
2499 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2500 _ACEOF | |
2501 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2502 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2503 *@@@%%%=?*=@@@%%%*) | |
2504 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2505 *) | |
2506 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2507 esac | |
2508 rm -f conftest.make | |
2509 fi | |
2510 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2512 $as_echo "yes" >&6; } | |
2513 SET_MAKE= | |
2514 else | |
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2516 $as_echo "no" >&6; } | |
2517 SET_MAKE="MAKE=${MAKE-make}" | |
2518 fi | |
2519 | |
2520 rm -rf .tst 2>/dev/null | |
2521 mkdir .tst 2>/dev/null | |
2522 if test -d .tst; then | |
2523 am__leading_dot=. | |
2524 else | |
2525 am__leading_dot=_ | |
2526 fi | |
2527 rmdir .tst 2>/dev/null | |
2528 | |
2529 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2530 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2531 # is not polluted with repeated "-I." | |
2532 am__isrc=' -I$(srcdir)' | |
2533 # test to see if srcdir already configured | |
2534 if test -f $srcdir/config.status; then | |
2535 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2536 fi | |
2537 fi | |
2538 | |
2539 # test whether we have cygpath | |
2540 if test -z "$CYGPATH_W"; then | |
2541 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2542 CYGPATH_W='cygpath -w' | |
2543 else | |
2544 CYGPATH_W=echo | |
2545 fi | |
2546 fi | |
2547 | |
2548 | |
2549 # Define the identity of the package. | |
2550 PACKAGE='email' | |
2551 VERSION='1.0' | |
2552 | |
2553 | |
2554 cat >>confdefs.h <<_ACEOF | |
2555 #define PACKAGE "$PACKAGE" | |
2556 _ACEOF | |
2557 | |
2558 | |
2559 cat >>confdefs.h <<_ACEOF | |
2560 #define VERSION "$VERSION" | |
2561 _ACEOF | |
2562 | |
2563 # Some tools Automake needs. | |
2564 | |
2565 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2566 | |
2567 | |
2568 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2569 | |
2570 | |
2571 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2572 | |
2573 | |
2574 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2575 | |
2576 | |
2577 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2578 | |
2579 # We need awk for the "check" target. The system "awk" is bad on | |
2580 # some platforms. | |
2581 # Always define AMTAR for backward compatibility. | |
2582 | |
2583 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2584 | |
2585 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2586 | |
2587 | |
2588 | |
2589 | |
2590 | |
2591 ac_ext=c | |
2592 ac_cpp='$CPP $CPPFLAGS' | |
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2596 if test -n "$ac_tool_prefix"; then | |
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2598 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2600 $as_echo_n "checking for $ac_word... " >&6; } | |
2601 if ${ac_cv_prog_CC+:} false; then : | |
2602 $as_echo_n "(cached) " >&6 | |
2603 else | |
2604 if test -n "$CC"; then | |
2605 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2606 else | |
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2608 for as_dir in $PATH | |
2609 do | |
2610 IFS=$as_save_IFS | |
2611 test -z "$as_dir" && as_dir=. | |
2612 for ac_exec_ext in '' $ac_executable_extensions; do | |
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2616 break 2 | |
2617 fi | |
2618 done | |
2619 done | |
2620 IFS=$as_save_IFS | |
2621 | |
2622 fi | |
2623 fi | |
2624 CC=$ac_cv_prog_CC | |
2625 if test -n "$CC"; then | |
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2627 $as_echo "$CC" >&6; } | |
2628 else | |
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2630 $as_echo "no" >&6; } | |
2631 fi | |
2632 | |
2633 | |
2634 fi | |
2635 if test -z "$ac_cv_prog_CC"; then | |
2636 ac_ct_CC=$CC | |
2637 # Extract the first word of "gcc", so it can be a program name with args. | |
2638 set dummy gcc; ac_word=$2 | |
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2640 $as_echo_n "checking for $ac_word... " >&6; } | |
2641 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2642 $as_echo_n "(cached) " >&6 | |
2643 else | |
2644 if test -n "$ac_ct_CC"; then | |
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2646 else | |
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2648 for as_dir in $PATH | |
2649 do | |
2650 IFS=$as_save_IFS | |
2651 test -z "$as_dir" && as_dir=. | |
2652 for ac_exec_ext in '' $ac_executable_extensions; do | |
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2654 ac_cv_prog_ac_ct_CC="gcc" | |
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2656 break 2 | |
2657 fi | |
2658 done | |
2659 done | |
2660 IFS=$as_save_IFS | |
2661 | |
2662 fi | |
2663 fi | |
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2665 if test -n "$ac_ct_CC"; then | |
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2667 $as_echo "$ac_ct_CC" >&6; } | |
2668 else | |
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2670 $as_echo "no" >&6; } | |
2671 fi | |
2672 | |
2673 if test "x$ac_ct_CC" = x; then | |
2674 CC="" | |
2675 else | |
2676 case $cross_compiling:$ac_tool_warned in | |
2677 yes:) | |
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2680 ac_tool_warned=yes ;; | |
2681 esac | |
2682 CC=$ac_ct_CC | |
2683 fi | |
2684 else | |
2685 CC="$ac_cv_prog_CC" | |
2686 fi | |
2687 | |
2688 if test -z "$CC"; then | |
2689 if test -n "$ac_tool_prefix"; then | |
2690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2693 $as_echo_n "checking for $ac_word... " >&6; } | |
2694 if ${ac_cv_prog_CC+:} false; then : | |
2695 $as_echo_n "(cached) " >&6 | |
2696 else | |
2697 if test -n "$CC"; then | |
2698 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2699 else | |
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2701 for as_dir in $PATH | |
2702 do | |
2703 IFS=$as_save_IFS | |
2704 test -z "$as_dir" && as_dir=. | |
2705 for ac_exec_ext in '' $ac_executable_extensions; do | |
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2707 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2709 break 2 | |
2710 fi | |
2711 done | |
2712 done | |
2713 IFS=$as_save_IFS | |
2714 | |
2715 fi | |
2716 fi | |
2717 CC=$ac_cv_prog_CC | |
2718 if test -n "$CC"; then | |
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2720 $as_echo "$CC" >&6; } | |
2721 else | |
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2723 $as_echo "no" >&6; } | |
2724 fi | |
2725 | |
2726 | |
2727 fi | |
2728 fi | |
2729 if test -z "$CC"; then | |
2730 # Extract the first word of "cc", so it can be a program name with args. | |
2731 set dummy cc; ac_word=$2 | |
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2733 $as_echo_n "checking for $ac_word... " >&6; } | |
2734 if ${ac_cv_prog_CC+:} false; then : | |
2735 $as_echo_n "(cached) " >&6 | |
2736 else | |
2737 if test -n "$CC"; then | |
2738 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2739 else | |
2740 ac_prog_rejected=no | |
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2742 for as_dir in $PATH | |
2743 do | |
2744 IFS=$as_save_IFS | |
2745 test -z "$as_dir" && as_dir=. | |
2746 for ac_exec_ext in '' $ac_executable_extensions; do | |
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2749 ac_prog_rejected=yes | |
2750 continue | |
2751 fi | |
2752 ac_cv_prog_CC="cc" | |
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2754 break 2 | |
2755 fi | |
2756 done | |
2757 done | |
2758 IFS=$as_save_IFS | |
2759 | |
2760 if test $ac_prog_rejected = yes; then | |
2761 # We found a bogon in the path, so make sure we never use it. | |
2762 set dummy $ac_cv_prog_CC | |
2763 shift | |
2764 if test $# != 0; then | |
2765 # We chose a different compiler from the bogus one. | |
2766 # However, it has the same basename, so the bogon will be chosen | |
2767 # first if we set CC to just the basename; use the full file name. | |
2768 shift | |
2769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2770 fi | |
2771 fi | |
2772 fi | |
2773 fi | |
2774 CC=$ac_cv_prog_CC | |
2775 if test -n "$CC"; then | |
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2777 $as_echo "$CC" >&6; } | |
2778 else | |
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2780 $as_echo "no" >&6; } | |
2781 fi | |
2782 | |
2783 | |
2784 fi | |
2785 if test -z "$CC"; then | |
2786 if test -n "$ac_tool_prefix"; then | |
2787 for ac_prog in cl.exe | |
2788 do | |
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2792 $as_echo_n "checking for $ac_word... " >&6; } | |
2793 if ${ac_cv_prog_CC+:} false; then : | |
2794 $as_echo_n "(cached) " >&6 | |
2795 else | |
2796 if test -n "$CC"; then | |
2797 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2798 else | |
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2800 for as_dir in $PATH | |
2801 do | |
2802 IFS=$as_save_IFS | |
2803 test -z "$as_dir" && as_dir=. | |
2804 for ac_exec_ext in '' $ac_executable_extensions; do | |
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2808 break 2 | |
2809 fi | |
2810 done | |
2811 done | |
2812 IFS=$as_save_IFS | |
2813 | |
2814 fi | |
2815 fi | |
2816 CC=$ac_cv_prog_CC | |
2817 if test -n "$CC"; then | |
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2819 $as_echo "$CC" >&6; } | |
2820 else | |
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2822 $as_echo "no" >&6; } | |
2823 fi | |
2824 | |
2825 | |
2826 test -n "$CC" && break | |
2827 done | |
2828 fi | |
2829 if test -z "$CC"; then | |
2830 ac_ct_CC=$CC | |
2831 for ac_prog in cl.exe | |
2832 do | |
2833 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2834 set dummy $ac_prog; ac_word=$2 | |
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2836 $as_echo_n "checking for $ac_word... " >&6; } | |
2837 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2838 $as_echo_n "(cached) " >&6 | |
2839 else | |
2840 if test -n "$ac_ct_CC"; then | |
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2842 else | |
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2844 for as_dir in $PATH | |
2845 do | |
2846 IFS=$as_save_IFS | |
2847 test -z "$as_dir" && as_dir=. | |
2848 for ac_exec_ext in '' $ac_executable_extensions; do | |
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2850 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2852 break 2 | |
2853 fi | |
2854 done | |
2855 done | |
2856 IFS=$as_save_IFS | |
2857 | |
2858 fi | |
2859 fi | |
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2861 if test -n "$ac_ct_CC"; then | |
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2863 $as_echo "$ac_ct_CC" >&6; } | |
2864 else | |
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2866 $as_echo "no" >&6; } | |
2867 fi | |
2868 | |
2869 | |
2870 test -n "$ac_ct_CC" && break | |
2871 done | |
2872 | |
2873 if test "x$ac_ct_CC" = x; then | |
2874 CC="" | |
2875 else | |
2876 case $cross_compiling:$ac_tool_warned in | |
2877 yes:) | |
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2880 ac_tool_warned=yes ;; | |
2881 esac | |
2882 CC=$ac_ct_CC | |
2883 fi | |
2884 fi | |
2885 | |
2886 fi | |
2887 | |
2888 | |
2889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2891 as_fn_error $? "no acceptable C compiler found in \$PATH | |
2892 See \`config.log' for more details" "$LINENO" 5; } | |
2893 | |
2894 # Provide some information about the compiler. | |
2895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2896 set X $ac_compile | |
2897 ac_compiler=$2 | |
2898 for ac_option in --version -v -V -qversion; do | |
2899 { { ac_try="$ac_compiler $ac_option >&5" | |
2900 case "(($ac_try" in | |
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2902 *) ac_try_echo=$ac_try;; | |
2903 esac | |
2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2905 $as_echo "$ac_try_echo"; } >&5 | |
2906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2907 ac_status=$? | |
2908 if test -s conftest.err; then | |
2909 sed '10a\ | |
2910 ... rest of stderr output deleted ... | |
2911 10q' conftest.err >conftest.er1 | |
2912 cat conftest.er1 >&5 | |
2913 fi | |
2914 rm -f conftest.er1 conftest.err | |
2915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2916 test $ac_status = 0; } | |
2917 done | |
2918 | |
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2920 /* end confdefs.h. */ | |
2921 | |
2922 int | |
2923 main () | |
2924 { | |
2925 | |
2926 ; | |
2927 return 0; | |
2928 } | |
2929 _ACEOF | |
2930 ac_clean_files_save=$ac_clean_files | |
2931 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2932 # Try to create an executable without -o first, disregard a.out. | |
2933 # It will help us diagnose broken compilers, and finding out an intuition | |
2934 # of exeext. | |
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2936 $as_echo_n "checking whether the C compiler works... " >&6; } | |
2937 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2938 | |
2939 # The possible output files: | |
2940 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2941 | |
2942 ac_rmfiles= | |
2943 for ac_file in $ac_files | |
2944 do | |
2945 case $ac_file in | |
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2947 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2948 esac | |
2949 done | |
2950 rm -f $ac_rmfiles | |
2951 | |
2952 if { { ac_try="$ac_link_default" | |
2953 case "(($ac_try" in | |
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2955 *) ac_try_echo=$ac_try;; | |
2956 esac | |
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2958 $as_echo "$ac_try_echo"; } >&5 | |
2959 (eval "$ac_link_default") 2>&5 | |
2960 ac_status=$? | |
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2962 test $ac_status = 0; }; then : | |
2963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2965 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2966 # so that the user can short-circuit this test for compilers unknown to | |
2967 # Autoconf. | |
2968 for ac_file in $ac_files '' | |
2969 do | |
2970 test -f "$ac_file" || continue | |
2971 case $ac_file in | |
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2973 ;; | |
2974 [ab].out ) | |
2975 # We found the default executable, but exeext='' is most | |
2976 # certainly right. | |
2977 break;; | |
2978 *.* ) | |
2979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2980 then :; else | |
2981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2982 fi | |
2983 # We set ac_cv_exeext here because the later test for it is not | |
2984 # safe: cross compilers may not add the suffix if given an `-o' | |
2985 # argument, so we may need to know it at that point already. | |
2986 # Even if this section looks crufty: it has the advantage of | |
2987 # actually working. | |
2988 break;; | |
2989 * ) | |
2990 break;; | |
2991 esac | |
2992 done | |
2993 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2994 | |
2995 else | |
2996 ac_file='' | |
2997 fi | |
2998 if test -z "$ac_file"; then : | |
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3000 $as_echo "no" >&6; } | |
3001 $as_echo "$as_me: failed program was:" >&5 | |
3002 sed 's/^/| /' conftest.$ac_ext >&5 | |
3003 | |
3004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3006 as_fn_error 77 "C compiler cannot create executables | |
3007 See \`config.log' for more details" "$LINENO" 5; } | |
3008 else | |
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3010 $as_echo "yes" >&6; } | |
3011 fi | |
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3013 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3015 $as_echo "$ac_file" >&6; } | |
3016 ac_exeext=$ac_cv_exeext | |
3017 | |
3018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3019 ac_clean_files=$ac_clean_files_save | |
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3021 $as_echo_n "checking for suffix of executables... " >&6; } | |
3022 if { { ac_try="$ac_link" | |
3023 case "(($ac_try" in | |
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3025 *) ac_try_echo=$ac_try;; | |
3026 esac | |
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3028 $as_echo "$ac_try_echo"; } >&5 | |
3029 (eval "$ac_link") 2>&5 | |
3030 ac_status=$? | |
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3032 test $ac_status = 0; }; then : | |
3033 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3035 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3036 # `rm'. | |
3037 for ac_file in conftest.exe conftest conftest.*; do | |
3038 test -f "$ac_file" || continue | |
3039 case $ac_file in | |
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3042 break;; | |
3043 * ) break;; | |
3044 esac | |
3045 done | |
3046 else | |
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3049 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3050 See \`config.log' for more details" "$LINENO" 5; } | |
3051 fi | |
3052 rm -f conftest conftest$ac_cv_exeext | |
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3054 $as_echo "$ac_cv_exeext" >&6; } | |
3055 | |
3056 rm -f conftest.$ac_ext | |
3057 EXEEXT=$ac_cv_exeext | |
3058 ac_exeext=$EXEEXT | |
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3060 /* end confdefs.h. */ | |
3061 #include <stdio.h> | |
3062 int | |
3063 main () | |
3064 { | |
3065 FILE *f = fopen ("conftest.out", "w"); | |
3066 return ferror (f) || fclose (f) != 0; | |
3067 | |
3068 ; | |
3069 return 0; | |
3070 } | |
3071 _ACEOF | |
3072 ac_clean_files="$ac_clean_files conftest.out" | |
3073 # Check that the compiler produces executables we can run. If not, either | |
3074 # the compiler is broken, or we cross compile. | |
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3076 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3077 if test "$cross_compiling" != yes; then | |
3078 { { ac_try="$ac_link" | |
3079 case "(($ac_try" in | |
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3081 *) ac_try_echo=$ac_try;; | |
3082 esac | |
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3084 $as_echo "$ac_try_echo"; } >&5 | |
3085 (eval "$ac_link") 2>&5 | |
3086 ac_status=$? | |
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3088 test $ac_status = 0; } | |
3089 if { ac_try='./conftest$ac_cv_exeext' | |
3090 { { case "(($ac_try" in | |
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3092 *) ac_try_echo=$ac_try;; | |
3093 esac | |
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3095 $as_echo "$ac_try_echo"; } >&5 | |
3096 (eval "$ac_try") 2>&5 | |
3097 ac_status=$? | |
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3099 test $ac_status = 0; }; }; then | |
3100 cross_compiling=no | |
3101 else | |
3102 if test "$cross_compiling" = maybe; then | |
3103 cross_compiling=yes | |
3104 else | |
3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3107 as_fn_error $? "cannot run C compiled programs. | |
3108 If you meant to cross compile, use \`--host'. | |
3109 See \`config.log' for more details" "$LINENO" 5; } | |
3110 fi | |
3111 fi | |
3112 fi | |
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3114 $as_echo "$cross_compiling" >&6; } | |
3115 | |
3116 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3117 ac_clean_files=$ac_clean_files_save | |
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3119 $as_echo_n "checking for suffix of object files... " >&6; } | |
3120 if ${ac_cv_objext+:} false; then : | |
3121 $as_echo_n "(cached) " >&6 | |
3122 else | |
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3124 /* end confdefs.h. */ | |
3125 | |
3126 int | |
3127 main () | |
3128 { | |
3129 | |
3130 ; | |
3131 return 0; | |
3132 } | |
3133 _ACEOF | |
3134 rm -f conftest.o conftest.obj | |
3135 if { { ac_try="$ac_compile" | |
3136 case "(($ac_try" in | |
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3138 *) ac_try_echo=$ac_try;; | |
3139 esac | |
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3141 $as_echo "$ac_try_echo"; } >&5 | |
3142 (eval "$ac_compile") 2>&5 | |
3143 ac_status=$? | |
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3145 test $ac_status = 0; }; then : | |
3146 for ac_file in conftest.o conftest.obj conftest.*; do | |
3147 test -f "$ac_file" || continue; | |
3148 case $ac_file in | |
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3151 break;; | |
3152 esac | |
3153 done | |
3154 else | |
3155 $as_echo "$as_me: failed program was:" >&5 | |
3156 sed 's/^/| /' conftest.$ac_ext >&5 | |
3157 | |
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3160 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3161 See \`config.log' for more details" "$LINENO" 5; } | |
3162 fi | |
3163 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3164 fi | |
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3166 $as_echo "$ac_cv_objext" >&6; } | |
3167 OBJEXT=$ac_cv_objext | |
3168 ac_objext=$OBJEXT | |
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3171 if ${ac_cv_c_compiler_gnu+:} false; then : | |
3172 $as_echo_n "(cached) " >&6 | |
3173 else | |
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3175 /* end confdefs.h. */ | |
3176 | |
3177 int | |
3178 main () | |
3179 { | |
3180 #ifndef __GNUC__ | |
3181 choke me | |
3182 #endif | |
3183 | |
3184 ; | |
3185 return 0; | |
3186 } | |
3187 _ACEOF | |
3188 if ac_fn_c_try_compile "$LINENO"; then : | |
3189 ac_compiler_gnu=yes | |
3190 else | |
3191 ac_compiler_gnu=no | |
3192 fi | |
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3195 | |
3196 fi | |
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3198 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3199 if test $ac_compiler_gnu = yes; then | |
3200 GCC=yes | |
3201 else | |
3202 GCC= | |
3203 fi | |
3204 ac_test_CFLAGS=${CFLAGS+set} | |
3205 ac_save_CFLAGS=$CFLAGS | |
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3207 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3208 if ${ac_cv_prog_cc_g+:} false; then : | |
3209 $as_echo_n "(cached) " >&6 | |
3210 else | |
3211 ac_save_c_werror_flag=$ac_c_werror_flag | |
3212 ac_c_werror_flag=yes | |
3213 ac_cv_prog_cc_g=no | |
3214 CFLAGS="-g" | |
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3216 /* end confdefs.h. */ | |
3217 | |
3218 int | |
3219 main () | |
3220 { | |
3221 | |
3222 ; | |
3223 return 0; | |
3224 } | |
3225 _ACEOF | |
3226 if ac_fn_c_try_compile "$LINENO"; then : | |
3227 ac_cv_prog_cc_g=yes | |
3228 else | |
3229 CFLAGS="" | |
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3231 /* end confdefs.h. */ | |
3232 | |
3233 int | |
3234 main () | |
3235 { | |
3236 | |
3237 ; | |
3238 return 0; | |
3239 } | |
3240 _ACEOF | |
3241 if ac_fn_c_try_compile "$LINENO"; then : | |
3242 | |
3243 else | |
3244 ac_c_werror_flag=$ac_save_c_werror_flag | |
3245 CFLAGS="-g" | |
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3247 /* end confdefs.h. */ | |
3248 | |
3249 int | |
3250 main () | |
3251 { | |
3252 | |
3253 ; | |
3254 return 0; | |
3255 } | |
3256 _ACEOF | |
3257 if ac_fn_c_try_compile "$LINENO"; then : | |
3258 ac_cv_prog_cc_g=yes | |
3259 fi | |
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3261 fi | |
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3263 fi | |
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3265 ac_c_werror_flag=$ac_save_c_werror_flag | |
3266 fi | |
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3268 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3269 if test "$ac_test_CFLAGS" = set; then | |
3270 CFLAGS=$ac_save_CFLAGS | |
3271 elif test $ac_cv_prog_cc_g = yes; then | |
3272 if test "$GCC" = yes; then | |
3273 CFLAGS="-g -O2" | |
3274 else | |
3275 CFLAGS="-g" | |
3276 fi | |
3277 else | |
3278 if test "$GCC" = yes; then | |
3279 CFLAGS="-O2" | |
3280 else | |
3281 CFLAGS= | |
3282 fi | |
3283 fi | |
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3286 if ${ac_cv_prog_cc_c89+:} false; then : | |
3287 $as_echo_n "(cached) " >&6 | |
3288 else | |
3289 ac_cv_prog_cc_c89=no | |
3290 ac_save_CC=$CC | |
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3292 /* end confdefs.h. */ | |
3293 #include <stdarg.h> | |
3294 #include <stdio.h> | |
3295 #include <sys/types.h> | |
3296 #include <sys/stat.h> | |
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3298 struct buf { int x; }; | |
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3300 static char *e (p, i) | |
3301 char **p; | |
3302 int i; | |
3303 { | |
3304 return p[i]; | |
3305 } | |
3306 static char *f (char * (*g) (char **, int), char **p, ...) | |
3307 { | |
3308 char *s; | |
3309 va_list v; | |
3310 va_start (v,p); | |
3311 s = g (p, va_arg (v,int)); | |
3312 va_end (v); | |
3313 return s; | |
3314 } | |
3315 | |
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3317 function prototypes and stuff, but not '\xHH' hex character constants. | |
3318 These don't provoke an error unfortunately, instead are silently treated | |
3319 as 'x'. The following induces an error, until -std is added to get | |
3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3321 array size at least. It's necessary to write '\x00'==0 to get something | |
3322 that's true only with -std. */ | |
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3324 | |
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3326 inside strings and character constants. */ | |
3327 #define FOO(x) 'x' | |
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3329 | |
3330 int test (int i, double x); | |
3331 struct s1 {int (*f) (int a);}; | |
3332 struct s2 {int (*f) (double a);}; | |
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3334 int argc; | |
3335 char **argv; | |
3336 int | |
3337 main () | |
3338 { | |
3339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3340 ; | |
3341 return 0; | |
3342 } | |
3343 _ACEOF | |
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3346 do | |
3347 CC="$ac_save_CC $ac_arg" | |
3348 if ac_fn_c_try_compile "$LINENO"; then : | |
3349 ac_cv_prog_cc_c89=$ac_arg | |
3350 fi | |
3351 rm -f core conftest.err conftest.$ac_objext | |
3352 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3353 done | |
3354 rm -f conftest.$ac_ext | |
3355 CC=$ac_save_CC | |
3356 | |
3357 fi | |
3358 # AC_CACHE_VAL | |
3359 case "x$ac_cv_prog_cc_c89" in | |
3360 x) | |
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3362 $as_echo "none needed" >&6; } ;; | |
3363 xno) | |
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3365 $as_echo "unsupported" >&6; } ;; | |
3366 *) | |
3367 CC="$CC $ac_cv_prog_cc_c89" | |
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3369 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3370 esac | |
3371 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3372 | |
3373 fi | |
3374 | |
3375 ac_ext=c | |
3376 ac_cpp='$CPP $CPPFLAGS' | |
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3380 DEPDIR="${am__leading_dot}deps" | |
3381 | |
3382 ac_config_commands="$ac_config_commands depfiles" | |
3383 | |
3384 | |
3385 am_make=${MAKE-make} | |
3386 cat > confinc << 'END' | |
3387 am__doit: | |
3388 @echo this is the am__doit target | |
3389 .PHONY: am__doit | |
3390 END | |
3391 # If we don't find an include directive, just comment out the code. | |
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3393 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3394 am__include="#" | |
3395 am__quote= | |
3396 _am_result=none | |
3397 # First try GNU make style include. | |
3398 echo "include confinc" > confmf | |
3399 # Ignore all kinds of additional output from `make'. | |
3400 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3401 *the\ am__doit\ target*) | |
3402 am__include=include | |
3403 am__quote= | |
3404 _am_result=GNU | |
3405 ;; | |
3406 esac | |
3407 # Now try BSD make style include. | |
3408 if test "$am__include" = "#"; then | |
3409 echo '.include "confinc"' > confmf | |
3410 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3411 *the\ am__doit\ target*) | |
3412 am__include=.include | |
3413 am__quote="\"" | |
3414 _am_result=BSD | |
3415 ;; | |
3416 esac | |
3417 fi | |
3418 | |
3419 | |
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3421 $as_echo "$_am_result" >&6; } | |
3422 rm -f confinc confmf | |
3423 | |
3424 # Check whether --enable-dependency-tracking was given. | |
3425 if test "${enable_dependency_tracking+set}" = set; then : | |
3426 enableval=$enable_dependency_tracking; | |
3427 fi | |
3428 | |
3429 if test "x$enable_dependency_tracking" != xno; then | |
3430 am_depcomp="$ac_aux_dir/depcomp" | |
3431 AMDEPBACKSLASH='\' | |
3432 fi | |
3433 if test "x$enable_dependency_tracking" != xno; then | |
3434 AMDEP_TRUE= | |
3435 AMDEP_FALSE='#' | |
3436 else | |
3437 AMDEP_TRUE='#' | |
3438 AMDEP_FALSE= | |
3439 fi | |
3440 | |
3441 | |
3442 | |
3443 depcc="$CC" am_compiler_list= | |
3444 | |
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3446 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3447 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3448 $as_echo_n "(cached) " >&6 | |
3449 else | |
3450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3451 # We make a subdir and do the tests there. Otherwise we can end up | |
3452 # making bogus files that we don't know about and never remove. For | |
3453 # instance it was reported that on HP-UX the gcc test will end up | |
3454 # making a dummy file named `D' -- because `-MD' means `put the output | |
3455 # in D'. | |
3456 mkdir conftest.dir | |
3457 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3458 # using a relative directory. | |
3459 cp "$am_depcomp" conftest.dir | |
3460 cd conftest.dir | |
3461 # We will build objects and dependencies in a subdirectory because | |
3462 # it helps to detect inapplicable dependency modes. For instance | |
3463 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3464 # side effect of compilation, but ICC will put the dependencies in | |
3465 # the current directory while Tru64 will put them in the object | |
3466 # directory. | |
3467 mkdir sub | |
3468 | |
3469 am_cv_CC_dependencies_compiler_type=none | |
3470 if test "$am_compiler_list" = ""; then | |
3471 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3472 fi | |
3473 am__universal=false | |
3474 case " $depcc " in #( | |
3475 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3476 esac | |
3477 | |
3478 for depmode in $am_compiler_list; do | |
3479 # Setup a source with many dependencies, because some compilers | |
3480 # like to wrap large dependency lists on column 80 (with \), and | |
3481 # we should not choose a depcomp mode which is confused by this. | |
3482 # | |
3483 # We need to recreate these files for each test, as the compiler may | |
3484 # overwrite some of them when testing with obscure command lines. | |
3485 # This happens at least with the AIX C compiler. | |
3486 : > sub/conftest.c | |
3487 for i in 1 2 3 4 5 6; do | |
3488 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3489 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3490 # Solaris 8's {/usr,}/bin/sh. | |
3491 touch sub/conftst$i.h | |
3492 done | |
3493 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3494 | |
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3496 # mode. It turns out that the SunPro C++ compiler does not properly | |
3497 # handle `-M -o', and we need to detect this. Also, some Intel | |
3498 # versions had trouble with output in subdirs | |
3499 am__obj=sub/conftest.${OBJEXT-o} | |
3500 am__minus_obj="-o $am__obj" | |
3501 case $depmode in | |
3502 gcc) | |
3503 # This depmode causes a compiler race in universal mode. | |
3504 test "$am__universal" = false || continue | |
3505 ;; | |
3506 nosideeffect) | |
3507 # after this tag, mechanisms are not by side-effect, so they'll | |
3508 # only be used when explicitly requested | |
3509 if test "x$enable_dependency_tracking" = xyes; then | |
3510 continue | |
3511 else | |
3512 break | |
3513 fi | |
3514 ;; | |
3515 msvisualcpp | msvcmsys) | |
3516 # This compiler won't grok `-c -o', but also, the minuso test has | |
3517 # not run yet. These depmodes are late enough in the game, and | |
3518 # so weak that their functioning should not be impacted. | |
3519 am__obj=conftest.${OBJEXT-o} | |
3520 am__minus_obj= | |
3521 ;; | |
3522 none) break ;; | |
3523 esac | |
3524 if depmode=$depmode \ | |
3525 source=sub/conftest.c object=$am__obj \ | |
3526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3527 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3528 >/dev/null 2>conftest.err && | |
3529 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3530 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3531 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3532 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3533 # icc doesn't choke on unknown options, it will just issue warnings | |
3534 # or remarks (even with -Werror). So we grep stderr for any message | |
3535 # that says an option was ignored or not supported. | |
3536 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3537 # icc: Command line warning: ignoring option '-M'; no argument required | |
3538 # The diagnosis changed in icc 8.0: | |
3539 # icc: Command line remark: option '-MP' not supported | |
3540 if (grep 'ignoring option' conftest.err || | |
3541 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3542 am_cv_CC_dependencies_compiler_type=$depmode | |
3543 break | |
3544 fi | |
3545 fi | |
3546 done | |
3547 | |
3548 cd .. | |
3549 rm -rf conftest.dir | |
3550 else | |
3551 am_cv_CC_dependencies_compiler_type=none | |
3552 fi | |
3553 | |
3554 fi | |
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3556 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3557 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3558 | |
3559 if | |
3560 test "x$enable_dependency_tracking" != xno \ | |
3561 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3562 am__fastdepCC_TRUE= | |
3563 am__fastdepCC_FALSE='#' | |
3564 else | |
3565 am__fastdepCC_TRUE='#' | |
3566 am__fastdepCC_FALSE= | |
3567 fi | |
3568 | |
3569 | |
3570 case `pwd` in | |
3571 *\ * | *\ *) | |
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3573 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3574 esac | |
3575 | |
3576 | |
3577 | |
3578 macro_version='2.4.2' | |
3579 macro_revision='1.3337' | |
3580 | |
3581 | |
3582 | |
3583 | |
3584 | |
3585 | |
3586 | |
3587 | |
3588 | |
3589 | |
3590 | |
3591 | |
3592 | |
3593 ltmain="$ac_aux_dir/ltmain.sh" | |
3594 | |
3595 # Make sure we can run config.sub. | |
3596 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3597 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3598 | |
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3600 $as_echo_n "checking build system type... " >&6; } | |
3601 if ${ac_cv_build+:} false; then : | |
3602 $as_echo_n "(cached) " >&6 | |
3603 else | |
3604 ac_build_alias=$build_alias | |
3605 test "x$ac_build_alias" = x && | |
3606 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3607 test "x$ac_build_alias" = x && | |
3608 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3609 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3611 | |
3612 fi | |
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3614 $as_echo "$ac_cv_build" >&6; } | |
3615 case $ac_cv_build in | |
3616 *-*-*) ;; | |
3617 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3618 esac | |
3619 build=$ac_cv_build | |
3620 ac_save_IFS=$IFS; IFS='-' | |
3621 set x $ac_cv_build | |
3622 shift | |
3623 build_cpu=$1 | |
3624 build_vendor=$2 | |
3625 shift; shift | |
3626 # Remember, the first character of IFS is used to create $*, | |
3627 # except with old shells: | |
3628 build_os=$* | |
3629 IFS=$ac_save_IFS | |
3630 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3631 | |
3632 | |
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3634 $as_echo_n "checking host system type... " >&6; } | |
3635 if ${ac_cv_host+:} false; then : | |
3636 $as_echo_n "(cached) " >&6 | |
3637 else | |
3638 if test "x$host_alias" = x; then | |
3639 ac_cv_host=$ac_cv_build | |
3640 else | |
3641 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3643 fi | |
3644 | |
3645 fi | |
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3647 $as_echo "$ac_cv_host" >&6; } | |
3648 case $ac_cv_host in | |
3649 *-*-*) ;; | |
3650 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3651 esac | |
3652 host=$ac_cv_host | |
3653 ac_save_IFS=$IFS; IFS='-' | |
3654 set x $ac_cv_host | |
3655 shift | |
3656 host_cpu=$1 | |
3657 host_vendor=$2 | |
3658 shift; shift | |
3659 # Remember, the first character of IFS is used to create $*, | |
3660 # except with old shells: | |
3661 host_os=$* | |
3662 IFS=$ac_save_IFS | |
3663 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3664 | |
3665 | |
3666 # Backslashify metacharacters that are still active within | |
3667 # double-quoted strings. | |
3668 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
3669 | |
3670 # Same as above, but do not quote variable references. | |
3671 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
3672 | |
3673 # Sed substitution to delay expansion of an escaped shell variable in a | |
3674 # double_quote_subst'ed string. | |
3675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
3676 | |
3677 # Sed substitution to delay expansion of an escaped single quote. | |
3678 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
3679 | |
3680 # Sed substitution to avoid accidental globbing in evaled expressions | |
3681 no_glob_subst='s/\*/\\\*/g' | |
3682 | |
3683 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
3685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
3686 | |
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
3688 $as_echo_n "checking how to print strings... " >&6; } | |
3689 # Test print first, because it will be a builtin if present. | |
3690 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
3691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
3692 ECHO='print -r --' | |
3693 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
3694 ECHO='printf %s\n' | |
3695 else | |
3696 # Use this function as a fallback that always works. | |
3697 func_fallback_echo () | |
3698 { | |
3699 eval 'cat <<_LTECHO_EOF | |
3700 $1 | |
3701 _LTECHO_EOF' | |
3702 } | |
3703 ECHO='func_fallback_echo' | |
3704 fi | |
3705 | |
3706 # func_echo_all arg... | |
3707 # Invoke $ECHO with all args, space-separated. | |
3708 func_echo_all () | |
3709 { | |
3710 $ECHO "" | |
3711 } | |
3712 | |
3713 case "$ECHO" in | |
3714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
3715 $as_echo "printf" >&6; } ;; | |
3716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
3717 $as_echo "print -r" >&6; } ;; | |
3718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
3719 $as_echo "cat" >&6; } ;; | |
3720 esac | |
3721 | |
3722 | |
3723 | |
3724 | |
3725 | |
3726 | |
3727 | |
3728 | |
3729 | |
3730 | |
3731 | |
3732 | |
3733 | |
3734 | |
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
3736 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3737 if ${ac_cv_path_SED+:} false; then : | |
3738 $as_echo_n "(cached) " >&6 | |
3739 else | |
3740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3741 for ac_i in 1 2 3 4 5 6 7; do | |
3742 ac_script="$ac_script$as_nl$ac_script" | |
3743 done | |
3744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3745 { ac_script=; unset ac_script;} | |
3746 if test -z "$SED"; then | |
3747 ac_path_SED_found=false | |
3748 # Loop through the user's path and test for each of PROGNAME-LIST | |
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3750 for as_dir in $PATH | |
3751 do | |
3752 IFS=$as_save_IFS | |
3753 test -z "$as_dir" && as_dir=. | |
3754 for ac_prog in sed gsed; do | |
3755 for ac_exec_ext in '' $ac_executable_extensions; do | |
3756 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
3757 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3758 # Check for GNU ac_path_SED and select it if it is found. | |
3759 # Check for GNU $ac_path_SED | |
3760 case `"$ac_path_SED" --version 2>&1` in | |
3761 *GNU*) | |
3762 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3763 *) | |
3764 ac_count=0 | |
3765 $as_echo_n 0123456789 >"conftest.in" | |
3766 while : | |
3767 do | |
3768 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3769 mv "conftest.tmp" "conftest.in" | |
3770 cp "conftest.in" "conftest.nl" | |
3771 $as_echo '' >> "conftest.nl" | |
3772 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3774 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3775 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3776 # Best one so far, save it but keep looking for a better one | |
3777 ac_cv_path_SED="$ac_path_SED" | |
3778 ac_path_SED_max=$ac_count | |
3779 fi | |
3780 # 10*(2^10) chars as input seems more than enough | |
3781 test $ac_count -gt 10 && break | |
3782 done | |
3783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3784 esac | |
3785 | |
3786 $ac_path_SED_found && break 3 | |
3787 done | |
3788 done | |
3789 done | |
3790 IFS=$as_save_IFS | |
3791 if test -z "$ac_cv_path_SED"; then | |
3792 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3793 fi | |
3794 else | |
3795 ac_cv_path_SED=$SED | |
3796 fi | |
3797 | |
3798 fi | |
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3800 $as_echo "$ac_cv_path_SED" >&6; } | |
3801 SED="$ac_cv_path_SED" | |
3802 rm -f conftest.sed | |
3803 | |
3804 test -z "$SED" && SED=sed | |
3805 Xsed="$SED -e 1s/^X//" | |
3806 | |
3807 | |
3808 | |
3809 | |
3810 | |
3811 | |
3812 | |
3813 | |
3814 | |
3815 | |
3816 | |
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3818 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3819 if ${ac_cv_path_GREP+:} false; then : | |
3820 $as_echo_n "(cached) " >&6 | |
3821 else | |
3822 if test -z "$GREP"; then | |
3823 ac_path_GREP_found=false | |
3824 # Loop through the user's path and test for each of PROGNAME-LIST | |
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3827 do | |
3828 IFS=$as_save_IFS | |
3829 test -z "$as_dir" && as_dir=. | |
3830 for ac_prog in grep ggrep; do | |
3831 for ac_exec_ext in '' $ac_executable_extensions; do | |
3832 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3833 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3834 # Check for GNU ac_path_GREP and select it if it is found. | |
3835 # Check for GNU $ac_path_GREP | |
3836 case `"$ac_path_GREP" --version 2>&1` in | |
3837 *GNU*) | |
3838 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3839 *) | |
3840 ac_count=0 | |
3841 $as_echo_n 0123456789 >"conftest.in" | |
3842 while : | |
3843 do | |
3844 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3845 mv "conftest.tmp" "conftest.in" | |
3846 cp "conftest.in" "conftest.nl" | |
3847 $as_echo 'GREP' >> "conftest.nl" | |
3848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3850 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3851 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3852 # Best one so far, save it but keep looking for a better one | |
3853 ac_cv_path_GREP="$ac_path_GREP" | |
3854 ac_path_GREP_max=$ac_count | |
3855 fi | |
3856 # 10*(2^10) chars as input seems more than enough | |
3857 test $ac_count -gt 10 && break | |
3858 done | |
3859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3860 esac | |
3861 | |
3862 $ac_path_GREP_found && break 3 | |
3863 done | |
3864 done | |
3865 done | |
3866 IFS=$as_save_IFS | |
3867 if test -z "$ac_cv_path_GREP"; then | |
3868 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3869 fi | |
3870 else | |
3871 ac_cv_path_GREP=$GREP | |
3872 fi | |
3873 | |
3874 fi | |
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3876 $as_echo "$ac_cv_path_GREP" >&6; } | |
3877 GREP="$ac_cv_path_GREP" | |
3878 | |
3879 | |
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3881 $as_echo_n "checking for egrep... " >&6; } | |
3882 if ${ac_cv_path_EGREP+:} false; then : | |
3883 $as_echo_n "(cached) " >&6 | |
3884 else | |
3885 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3886 then ac_cv_path_EGREP="$GREP -E" | |
3887 else | |
3888 if test -z "$EGREP"; then | |
3889 ac_path_EGREP_found=false | |
3890 # Loop through the user's path and test for each of PROGNAME-LIST | |
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3893 do | |
3894 IFS=$as_save_IFS | |
3895 test -z "$as_dir" && as_dir=. | |
3896 for ac_prog in egrep; do | |
3897 for ac_exec_ext in '' $ac_executable_extensions; do | |
3898 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3899 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3900 # Check for GNU ac_path_EGREP and select it if it is found. | |
3901 # Check for GNU $ac_path_EGREP | |
3902 case `"$ac_path_EGREP" --version 2>&1` in | |
3903 *GNU*) | |
3904 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3905 *) | |
3906 ac_count=0 | |
3907 $as_echo_n 0123456789 >"conftest.in" | |
3908 while : | |
3909 do | |
3910 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3911 mv "conftest.tmp" "conftest.in" | |
3912 cp "conftest.in" "conftest.nl" | |
3913 $as_echo 'EGREP' >> "conftest.nl" | |
3914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3916 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3918 # Best one so far, save it but keep looking for a better one | |
3919 ac_cv_path_EGREP="$ac_path_EGREP" | |
3920 ac_path_EGREP_max=$ac_count | |
3921 fi | |
3922 # 10*(2^10) chars as input seems more than enough | |
3923 test $ac_count -gt 10 && break | |
3924 done | |
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3926 esac | |
3927 | |
3928 $ac_path_EGREP_found && break 3 | |
3929 done | |
3930 done | |
3931 done | |
3932 IFS=$as_save_IFS | |
3933 if test -z "$ac_cv_path_EGREP"; then | |
3934 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3935 fi | |
3936 else | |
3937 ac_cv_path_EGREP=$EGREP | |
3938 fi | |
3939 | |
3940 fi | |
3941 fi | |
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3943 $as_echo "$ac_cv_path_EGREP" >&6; } | |
3944 EGREP="$ac_cv_path_EGREP" | |
3945 | |
3946 | |
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
3948 $as_echo_n "checking for fgrep... " >&6; } | |
3949 if ${ac_cv_path_FGREP+:} false; then : | |
3950 $as_echo_n "(cached) " >&6 | |
3951 else | |
3952 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
3953 then ac_cv_path_FGREP="$GREP -F" | |
3954 else | |
3955 if test -z "$FGREP"; then | |
3956 ac_path_FGREP_found=false | |
3957 # Loop through the user's path and test for each of PROGNAME-LIST | |
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3960 do | |
3961 IFS=$as_save_IFS | |
3962 test -z "$as_dir" && as_dir=. | |
3963 for ac_prog in fgrep; do | |
3964 for ac_exec_ext in '' $ac_executable_extensions; do | |
3965 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3966 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3967 # Check for GNU ac_path_FGREP and select it if it is found. | |
3968 # Check for GNU $ac_path_FGREP | |
3969 case `"$ac_path_FGREP" --version 2>&1` in | |
3970 *GNU*) | |
3971 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3972 *) | |
3973 ac_count=0 | |
3974 $as_echo_n 0123456789 >"conftest.in" | |
3975 while : | |
3976 do | |
3977 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3978 mv "conftest.tmp" "conftest.in" | |
3979 cp "conftest.in" "conftest.nl" | |
3980 $as_echo 'FGREP' >> "conftest.nl" | |
3981 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3983 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3984 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3985 # Best one so far, save it but keep looking for a better one | |
3986 ac_cv_path_FGREP="$ac_path_FGREP" | |
3987 ac_path_FGREP_max=$ac_count | |
3988 fi | |
3989 # 10*(2^10) chars as input seems more than enough | |
3990 test $ac_count -gt 10 && break | |
3991 done | |
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3993 esac | |
3994 | |
3995 $ac_path_FGREP_found && break 3 | |
3996 done | |
3997 done | |
3998 done | |
3999 IFS=$as_save_IFS | |
4000 if test -z "$ac_cv_path_FGREP"; then | |
4001 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4002 fi | |
4003 else | |
4004 ac_cv_path_FGREP=$FGREP | |
4005 fi | |
4006 | |
4007 fi | |
4008 fi | |
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4010 $as_echo "$ac_cv_path_FGREP" >&6; } | |
4011 FGREP="$ac_cv_path_FGREP" | |
4012 | |
4013 | |
4014 test -z "$GREP" && GREP=grep | |
4015 | |
4016 | |
4017 | |
4018 | |
4019 | |
4020 | |
4021 | |
4022 | |
4023 | |
4024 | |
4025 | |
4026 | |
4027 | |
4028 | |
4029 | |
4030 | |
4031 | |
4032 | |
4033 | |
4034 # Check whether --with-gnu-ld was given. | |
4035 if test "${with_gnu_ld+set}" = set; then : | |
4036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4037 else | |
4038 with_gnu_ld=no | |
4039 fi | |
4040 | |
4041 ac_prog=ld | |
4042 if test "$GCC" = yes; then | |
4043 # Check if gcc -print-prog-name=ld gives a path. | |
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4045 $as_echo_n "checking for ld used by $CC... " >&6; } | |
4046 case $host in | |
4047 *-*-mingw*) | |
4048 # gcc leaves a trailing carriage return which upsets mingw | |
4049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4050 *) | |
4051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4052 esac | |
4053 case $ac_prog in | |
4054 # Accept absolute paths. | |
4055 [\\/]* | ?:[\\/]*) | |
4056 re_direlt='/[^/][^/]*/\.\./' | |
4057 # Canonicalize the pathname of ld | |
4058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4061 done | |
4062 test -z "$LD" && LD="$ac_prog" | |
4063 ;; | |
4064 "") | |
4065 # If it fails, then pretend we aren't using GCC. | |
4066 ac_prog=ld | |
4067 ;; | |
4068 *) | |
4069 # If it is relative, then search for the first ld in PATH. | |
4070 with_gnu_ld=unknown | |
4071 ;; | |
4072 esac | |
4073 elif test "$with_gnu_ld" = yes; then | |
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4075 $as_echo_n "checking for GNU ld... " >&6; } | |
4076 else | |
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4078 $as_echo_n "checking for non-GNU ld... " >&6; } | |
4079 fi | |
4080 if ${lt_cv_path_LD+:} false; then : | |
4081 $as_echo_n "(cached) " >&6 | |
4082 else | |
4083 if test -z "$LD"; then | |
4084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4085 for ac_dir in $PATH; do | |
4086 IFS="$lt_save_ifs" | |
4087 test -z "$ac_dir" && ac_dir=. | |
4088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4089 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4090 # Check to see if the program is GNU ld. I'd rather use --version, | |
4091 # but apparently some variants of GNU ld only accept -v. | |
4092 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4094 *GNU* | *'with BFD'*) | |
4095 test "$with_gnu_ld" != no && break | |
4096 ;; | |
4097 *) | |
4098 test "$with_gnu_ld" != yes && break | |
4099 ;; | |
4100 esac | |
4101 fi | |
4102 done | |
4103 IFS="$lt_save_ifs" | |
4104 else | |
4105 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4106 fi | |
4107 fi | |
4108 | |
4109 LD="$lt_cv_path_LD" | |
4110 if test -n "$LD"; then | |
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4112 $as_echo "$LD" >&6; } | |
4113 else | |
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4115 $as_echo "no" >&6; } | |
4116 fi | |
4117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4120 if ${lt_cv_prog_gnu_ld+:} false; then : | |
4121 $as_echo_n "(cached) " >&6 | |
4122 else | |
4123 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4124 case `$LD -v 2>&1 </dev/null` in | |
4125 *GNU* | *'with BFD'*) | |
4126 lt_cv_prog_gnu_ld=yes | |
4127 ;; | |
4128 *) | |
4129 lt_cv_prog_gnu_ld=no | |
4130 ;; | |
4131 esac | |
4132 fi | |
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4134 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4135 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4136 | |
4137 | |
4138 | |
4139 | |
4140 | |
4141 | |
4142 | |
4143 | |
4144 | |
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4147 if ${lt_cv_path_NM+:} false; then : | |
4148 $as_echo_n "(cached) " >&6 | |
4149 else | |
4150 if test -n "$NM"; then | |
4151 # Let the user override the test. | |
4152 lt_cv_path_NM="$NM" | |
4153 else | |
4154 lt_nm_to_check="${ac_tool_prefix}nm" | |
4155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4156 lt_nm_to_check="$lt_nm_to_check nm" | |
4157 fi | |
4158 for lt_tmp_nm in $lt_nm_to_check; do | |
4159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4161 IFS="$lt_save_ifs" | |
4162 test -z "$ac_dir" && ac_dir=. | |
4163 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4165 # Check to see if the nm accepts a BSD-compat flag. | |
4166 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4167 # nm: unknown option "B" ignored | |
4168 # Tru64's nm complains that /dev/null is an invalid object file | |
4169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4170 */dev/null* | *'Invalid file or object type'*) | |
4171 lt_cv_path_NM="$tmp_nm -B" | |
4172 break | |
4173 ;; | |
4174 *) | |
4175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4176 */dev/null*) | |
4177 lt_cv_path_NM="$tmp_nm -p" | |
4178 break | |
4179 ;; | |
4180 *) | |
4181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4182 continue # so that we can try to find one that supports BSD flags | |
4183 ;; | |
4184 esac | |
4185 ;; | |
4186 esac | |
4187 fi | |
4188 done | |
4189 IFS="$lt_save_ifs" | |
4190 done | |
4191 : ${lt_cv_path_NM=no} | |
4192 fi | |
4193 fi | |
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4195 $as_echo "$lt_cv_path_NM" >&6; } | |
4196 if test "$lt_cv_path_NM" != "no"; then | |
4197 NM="$lt_cv_path_NM" | |
4198 else | |
4199 # Didn't find any BSD compatible name lister, look for dumpbin. | |
4200 if test -n "$DUMPBIN"; then : | |
4201 # Let the user override the test. | |
4202 else | |
4203 if test -n "$ac_tool_prefix"; then | |
4204 for ac_prog in dumpbin "link -dump" | |
4205 do | |
4206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4209 $as_echo_n "checking for $ac_word... " >&6; } | |
4210 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4211 $as_echo_n "(cached) " >&6 | |
4212 else | |
4213 if test -n "$DUMPBIN"; then | |
4214 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4215 else | |
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4217 for as_dir in $PATH | |
4218 do | |
4219 IFS=$as_save_IFS | |
4220 test -z "$as_dir" && as_dir=. | |
4221 for ac_exec_ext in '' $ac_executable_extensions; do | |
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4223 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4225 break 2 | |
4226 fi | |
4227 done | |
4228 done | |
4229 IFS=$as_save_IFS | |
4230 | |
4231 fi | |
4232 fi | |
4233 DUMPBIN=$ac_cv_prog_DUMPBIN | |
4234 if test -n "$DUMPBIN"; then | |
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4236 $as_echo "$DUMPBIN" >&6; } | |
4237 else | |
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4239 $as_echo "no" >&6; } | |
4240 fi | |
4241 | |
4242 | |
4243 test -n "$DUMPBIN" && break | |
4244 done | |
4245 fi | |
4246 if test -z "$DUMPBIN"; then | |
4247 ac_ct_DUMPBIN=$DUMPBIN | |
4248 for ac_prog in dumpbin "link -dump" | |
4249 do | |
4250 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4251 set dummy $ac_prog; ac_word=$2 | |
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4253 $as_echo_n "checking for $ac_word... " >&6; } | |
4254 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4255 $as_echo_n "(cached) " >&6 | |
4256 else | |
4257 if test -n "$ac_ct_DUMPBIN"; then | |
4258 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4259 else | |
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4261 for as_dir in $PATH | |
4262 do | |
4263 IFS=$as_save_IFS | |
4264 test -z "$as_dir" && as_dir=. | |
4265 for ac_exec_ext in '' $ac_executable_extensions; do | |
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4269 break 2 | |
4270 fi | |
4271 done | |
4272 done | |
4273 IFS=$as_save_IFS | |
4274 | |
4275 fi | |
4276 fi | |
4277 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4278 if test -n "$ac_ct_DUMPBIN"; then | |
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4280 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4281 else | |
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4283 $as_echo "no" >&6; } | |
4284 fi | |
4285 | |
4286 | |
4287 test -n "$ac_ct_DUMPBIN" && break | |
4288 done | |
4289 | |
4290 if test "x$ac_ct_DUMPBIN" = x; then | |
4291 DUMPBIN=":" | |
4292 else | |
4293 case $cross_compiling:$ac_tool_warned in | |
4294 yes:) | |
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4297 ac_tool_warned=yes ;; | |
4298 esac | |
4299 DUMPBIN=$ac_ct_DUMPBIN | |
4300 fi | |
4301 fi | |
4302 | |
4303 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
4304 *COFF*) | |
4305 DUMPBIN="$DUMPBIN -symbols" | |
4306 ;; | |
4307 *) | |
4308 DUMPBIN=: | |
4309 ;; | |
4310 esac | |
4311 fi | |
4312 | |
4313 if test "$DUMPBIN" != ":"; then | |
4314 NM="$DUMPBIN" | |
4315 fi | |
4316 fi | |
4317 test -z "$NM" && NM=nm | |
4318 | |
4319 | |
4320 | |
4321 | |
4322 | |
4323 | |
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4325 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4326 if ${lt_cv_nm_interface+:} false; then : | |
4327 $as_echo_n "(cached) " >&6 | |
4328 else | |
4329 lt_cv_nm_interface="BSD nm" | |
4330 echo "int some_variable = 0;" > conftest.$ac_ext | |
4331 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
4332 (eval "$ac_compile" 2>conftest.err) | |
4333 cat conftest.err >&5 | |
4334 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4336 cat conftest.err >&5 | |
4337 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
4338 cat conftest.out >&5 | |
4339 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4340 lt_cv_nm_interface="MS dumpbin" | |
4341 fi | |
4342 rm -f conftest* | |
4343 fi | |
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4345 $as_echo "$lt_cv_nm_interface" >&6; } | |
4346 | |
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4348 $as_echo_n "checking whether ln -s works... " >&6; } | |
4349 LN_S=$as_ln_s | |
4350 if test "$LN_S" = "ln -s"; then | |
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4352 $as_echo "yes" >&6; } | |
4353 else | |
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4355 $as_echo "no, using $LN_S" >&6; } | |
4356 fi | |
4357 | |
4358 # find the maximum length of command line arguments | |
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4360 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4361 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
4362 $as_echo_n "(cached) " >&6 | |
4363 else | |
4364 i=0 | |
4365 teststring="ABCD" | |
4366 | |
4367 case $build_os in | |
4368 msdosdjgpp*) | |
4369 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4370 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4371 # during glob expansion). Even if it were fixed, the result of this | |
4372 # check would be larger than it should be. | |
4373 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4374 ;; | |
4375 | |
4376 gnu*) | |
4377 # Under GNU Hurd, this test is not required because there is | |
4378 # no limit to the length of command line arguments. | |
4379 # Libtool will interpret -1 as no limit whatsoever | |
4380 lt_cv_sys_max_cmd_len=-1; | |
4381 ;; | |
4382 | |
4383 cygwin* | mingw* | cegcc*) | |
4384 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4385 # about 5 minutes as the teststring grows exponentially. | |
4386 # Worse, since 9x/ME are not pre-emptively multitasking, | |
4387 # you end up with a "frozen" computer, even though with patience | |
4388 # the test eventually succeeds (with a max line length of 256k). | |
4389 # Instead, let's just punt: use the minimum linelength reported by | |
4390 # all of the supported platforms: 8192 (on NT/2K/XP). | |
4391 lt_cv_sys_max_cmd_len=8192; | |
4392 ;; | |
4393 | |
4394 mint*) | |
4395 # On MiNT this can take a long time and run out of memory. | |
4396 lt_cv_sys_max_cmd_len=8192; | |
4397 ;; | |
4398 | |
4399 amigaos*) | |
4400 # On AmigaOS with pdksh, this test takes hours, literally. | |
4401 # So we just punt and use a minimum line length of 8192. | |
4402 lt_cv_sys_max_cmd_len=8192; | |
4403 ;; | |
4404 | |
4405 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4406 # This has been around since 386BSD, at least. Likely further. | |
4407 if test -x /sbin/sysctl; then | |
4408 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4409 elif test -x /usr/sbin/sysctl; then | |
4410 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4411 else | |
4412 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4413 fi | |
4414 # And add a safety zone | |
4415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4417 ;; | |
4418 | |
4419 interix*) | |
4420 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4421 lt_cv_sys_max_cmd_len=196608 | |
4422 ;; | |
4423 | |
4424 os2*) | |
4425 # The test takes a long time on OS/2. | |
4426 lt_cv_sys_max_cmd_len=8192 | |
4427 ;; | |
4428 | |
4429 osf*) | |
4430 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4431 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4432 # nice to cause kernel panics so lets avoid the loop below. | |
4433 # First set a reasonable default. | |
4434 lt_cv_sys_max_cmd_len=16384 | |
4435 # | |
4436 if test -x /sbin/sysconfig; then | |
4437 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4438 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4439 esac | |
4440 fi | |
4441 ;; | |
4442 sco3.2v5*) | |
4443 lt_cv_sys_max_cmd_len=102400 | |
4444 ;; | |
4445 sysv5* | sco5v6* | sysv4.2uw2*) | |
4446 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4447 if test -n "$kargmax"; then | |
4448 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4449 else | |
4450 lt_cv_sys_max_cmd_len=32768 | |
4451 fi | |
4452 ;; | |
4453 *) | |
4454 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4455 if test -n "$lt_cv_sys_max_cmd_len"; then | |
4456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4458 else | |
4459 # Make teststring a little bigger before we do anything with it. | |
4460 # a 1K string should be a reasonable start. | |
4461 for i in 1 2 3 4 5 6 7 8 ; do | |
4462 teststring=$teststring$teststring | |
4463 done | |
4464 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4465 # If test is not a shell built-in, we'll probably end up computing a | |
4466 # maximum length that is only half of the actual maximum length, but | |
4467 # we can't tell. | |
4468 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
4469 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
4470 test $i != 17 # 1/2 MB should be enough | |
4471 do | |
4472 i=`expr $i + 1` | |
4473 teststring=$teststring$teststring | |
4474 done | |
4475 # Only check the string length outside the loop. | |
4476 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4477 teststring= | |
4478 # Add a significant safety factor because C++ compilers can tack on | |
4479 # massive amounts of additional arguments before passing them to the | |
4480 # linker. It appears as though 1/2 is a usable value. | |
4481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4482 fi | |
4483 ;; | |
4484 esac | |
4485 | |
4486 fi | |
4487 | |
4488 if test -n $lt_cv_sys_max_cmd_len ; then | |
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4490 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4491 else | |
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
4493 $as_echo "none" >&6; } | |
4494 fi | |
4495 max_cmd_len=$lt_cv_sys_max_cmd_len | |
4496 | |
4497 | |
4498 | |
4499 | |
4500 | |
4501 | |
4502 : ${CP="cp -f"} | |
4503 : ${MV="mv -f"} | |
4504 : ${RM="rm -f"} | |
4505 | |
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4507 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4508 # Try some XSI features | |
4509 xsi_shell=no | |
4510 ( _lt_dummy="a/b/c" | |
4511 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
4512 = c,a/b,b/c, \ | |
4513 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4514 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4515 && xsi_shell=yes | |
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4517 $as_echo "$xsi_shell" >&6; } | |
4518 | |
4519 | |
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4521 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4522 lt_shell_append=no | |
4523 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4524 >/dev/null 2>&1 \ | |
4525 && lt_shell_append=yes | |
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4527 $as_echo "$lt_shell_append" >&6; } | |
4528 | |
4529 | |
4530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4531 lt_unset=unset | |
4532 else | |
4533 lt_unset=false | |
4534 fi | |
4535 | |
4536 | |
4537 | |
4538 | |
4539 | |
4540 # test EBCDIC or ASCII | |
4541 case `echo X|tr X '\101'` in | |
4542 A) # ASCII based system | |
4543 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4544 lt_SP2NL='tr \040 \012' | |
4545 lt_NL2SP='tr \015\012 \040\040' | |
4546 ;; | |
4547 *) # EBCDIC based system | |
4548 lt_SP2NL='tr \100 \n' | |
4549 lt_NL2SP='tr \r\n \100\100' | |
4550 ;; | |
4551 esac | |
4552 | |
4553 | |
4554 | |
4555 | |
4556 | |
4557 | |
4558 | |
4559 | |
4560 | |
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
4562 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4563 if ${lt_cv_to_host_file_cmd+:} false; then : | |
4564 $as_echo_n "(cached) " >&6 | |
4565 else | |
4566 case $host in | |
4567 *-*-mingw* ) | |
4568 case $build in | |
4569 *-*-mingw* ) # actually msys | |
4570 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4571 ;; | |
4572 *-*-cygwin* ) | |
4573 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4574 ;; | |
4575 * ) # otherwise, assume *nix | |
4576 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4577 ;; | |
4578 esac | |
4579 ;; | |
4580 *-*-cygwin* ) | |
4581 case $build in | |
4582 *-*-mingw* ) # actually msys | |
4583 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
4584 ;; | |
4585 *-*-cygwin* ) | |
4586 lt_cv_to_host_file_cmd=func_convert_file_noop | |
4587 ;; | |
4588 * ) # otherwise, assume *nix | |
4589 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
4590 ;; | |
4591 esac | |
4592 ;; | |
4593 * ) # unhandled hosts (and "normal" native builds) | |
4594 lt_cv_to_host_file_cmd=func_convert_file_noop | |
4595 ;; | |
4596 esac | |
4597 | |
4598 fi | |
4599 | |
4600 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
4602 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
4603 | |
4604 | |
4605 | |
4606 | |
4607 | |
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
4609 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
4610 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
4611 $as_echo_n "(cached) " >&6 | |
4612 else | |
4613 #assume ordinary cross tools, or native build. | |
4614 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
4615 case $host in | |
4616 *-*-mingw* ) | |
4617 case $build in | |
4618 *-*-mingw* ) # actually msys | |
4619 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
4620 ;; | |
4621 esac | |
4622 ;; | |
4623 esac | |
4624 | |
4625 fi | |
4626 | |
4627 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
4629 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
4630 | |
4631 | |
4632 | |
4633 | |
4634 | |
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4636 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4637 if ${lt_cv_ld_reload_flag+:} false; then : | |
4638 $as_echo_n "(cached) " >&6 | |
4639 else | |
4640 lt_cv_ld_reload_flag='-r' | |
4641 fi | |
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
4643 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4644 reload_flag=$lt_cv_ld_reload_flag | |
4645 case $reload_flag in | |
4646 "" | " "*) ;; | |
4647 *) reload_flag=" $reload_flag" ;; | |
4648 esac | |
4649 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4650 case $host_os in | |
4651 cygwin* | mingw* | pw32* | cegcc*) | |
4652 if test "$GCC" != yes; then | |
4653 reload_cmds=false | |
4654 fi | |
4655 ;; | |
4656 darwin*) | |
4657 if test "$GCC" = yes; then | |
4658 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4659 else | |
4660 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4661 fi | |
4662 ;; | |
4663 esac | |
4664 | |
4665 | |
4666 | |
4667 | |
4668 | |
4669 | |
4670 | |
4671 | |
4672 | |
4673 if test -n "$ac_tool_prefix"; then | |
4674 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4675 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4677 $as_echo_n "checking for $ac_word... " >&6; } | |
4678 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
4679 $as_echo_n "(cached) " >&6 | |
4680 else | |
4681 if test -n "$OBJDUMP"; then | |
4682 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4683 else | |
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4685 for as_dir in $PATH | |
4686 do | |
4687 IFS=$as_save_IFS | |
4688 test -z "$as_dir" && as_dir=. | |
4689 for ac_exec_ext in '' $ac_executable_extensions; do | |
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4691 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4693 break 2 | |
4694 fi | |
4695 done | |
4696 done | |
4697 IFS=$as_save_IFS | |
4698 | |
4699 fi | |
4700 fi | |
4701 OBJDUMP=$ac_cv_prog_OBJDUMP | |
4702 if test -n "$OBJDUMP"; then | |
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4704 $as_echo "$OBJDUMP" >&6; } | |
4705 else | |
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4707 $as_echo "no" >&6; } | |
4708 fi | |
4709 | |
4710 | |
4711 fi | |
4712 if test -z "$ac_cv_prog_OBJDUMP"; then | |
4713 ac_ct_OBJDUMP=$OBJDUMP | |
4714 # Extract the first word of "objdump", so it can be a program name with args. | |
4715 set dummy objdump; ac_word=$2 | |
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4717 $as_echo_n "checking for $ac_word... " >&6; } | |
4718 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
4719 $as_echo_n "(cached) " >&6 | |
4720 else | |
4721 if test -n "$ac_ct_OBJDUMP"; then | |
4722 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4723 else | |
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4725 for as_dir in $PATH | |
4726 do | |
4727 IFS=$as_save_IFS | |
4728 test -z "$as_dir" && as_dir=. | |
4729 for ac_exec_ext in '' $ac_executable_extensions; do | |
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4731 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4733 break 2 | |
4734 fi | |
4735 done | |
4736 done | |
4737 IFS=$as_save_IFS | |
4738 | |
4739 fi | |
4740 fi | |
4741 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4742 if test -n "$ac_ct_OBJDUMP"; then | |
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4744 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4745 else | |
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4747 $as_echo "no" >&6; } | |
4748 fi | |
4749 | |
4750 if test "x$ac_ct_OBJDUMP" = x; then | |
4751 OBJDUMP="false" | |
4752 else | |
4753 case $cross_compiling:$ac_tool_warned in | |
4754 yes:) | |
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4757 ac_tool_warned=yes ;; | |
4758 esac | |
4759 OBJDUMP=$ac_ct_OBJDUMP | |
4760 fi | |
4761 else | |
4762 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4763 fi | |
4764 | |
4765 test -z "$OBJDUMP" && OBJDUMP=objdump | |
4766 | |
4767 | |
4768 | |
4769 | |
4770 | |
4771 | |
4772 | |
4773 | |
4774 | |
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
4776 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4777 if ${lt_cv_deplibs_check_method+:} false; then : | |
4778 $as_echo_n "(cached) " >&6 | |
4779 else | |
4780 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4781 lt_cv_file_magic_test_file= | |
4782 lt_cv_deplibs_check_method='unknown' | |
4783 # Need to set the preceding variable on all platforms that support | |
4784 # interlibrary dependencies. | |
4785 # 'none' -- dependencies not supported. | |
4786 # `unknown' -- same as none, but documents that we really don't know. | |
4787 # 'pass_all' -- all dependencies passed with no checks. | |
4788 # 'test_compile' -- check by making test program. | |
4789 # 'file_magic [[regex]]' -- check by looking for files in library path | |
4790 # which responds to the $file_magic_cmd with a given extended regex. | |
4791 # If you have `file' or equivalent on your system and you're not sure | |
4792 # whether `pass_all' will *always* work, you probably want this one. | |
4793 | |
4794 case $host_os in | |
4795 aix[4-9]*) | |
4796 lt_cv_deplibs_check_method=pass_all | |
4797 ;; | |
4798 | |
4799 beos*) | |
4800 lt_cv_deplibs_check_method=pass_all | |
4801 ;; | |
4802 | |
4803 bsdi[45]*) | |
4804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4805 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4806 lt_cv_file_magic_test_file=/shlib/libc.so | |
4807 ;; | |
4808 | |
4809 cygwin*) | |
4810 # func_win32_libid is a shell function defined in ltmain.sh | |
4811 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4812 lt_cv_file_magic_cmd='func_win32_libid' | |
4813 ;; | |
4814 | |
4815 mingw* | pw32*) | |
4816 # Base MSYS/MinGW do not provide the 'file' command needed by | |
4817 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4818 # unless we find 'file', for example because we are cross-compiling. | |
4819 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
4820 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
4821 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4822 lt_cv_file_magic_cmd='func_win32_libid' | |
4823 else | |
4824 # Keep this pattern in sync with the one in func_win32_libid. | |
4825 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
4826 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4827 fi | |
4828 ;; | |
4829 | |
4830 cegcc*) | |
4831 # use the weaker test based on 'objdump'. See mingw*. | |
4832 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4833 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4834 ;; | |
4835 | |
4836 darwin* | rhapsody*) | |
4837 lt_cv_deplibs_check_method=pass_all | |
4838 ;; | |
4839 | |
4840 freebsd* | dragonfly*) | |
4841 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4842 case $host_cpu in | |
4843 i*86 ) | |
4844 # Not sure whether the presence of OpenBSD here was a mistake. | |
4845 # Let's accept both of them until this is cleared up. | |
4846 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4847 lt_cv_file_magic_cmd=/usr/bin/file | |
4848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4849 ;; | |
4850 esac | |
4851 else | |
4852 lt_cv_deplibs_check_method=pass_all | |
4853 fi | |
4854 ;; | |
4855 | |
4856 gnu*) | |
4857 lt_cv_deplibs_check_method=pass_all | |
4858 ;; | |
4859 | |
4860 haiku*) | |
4861 lt_cv_deplibs_check_method=pass_all | |
4862 ;; | |
4863 | |
4864 hpux10.20* | hpux11*) | |
4865 lt_cv_file_magic_cmd=/usr/bin/file | |
4866 case $host_cpu in | |
4867 ia64*) | |
4868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4869 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4870 ;; | |
4871 hppa*64*) | |
4872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
4873 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4874 ;; | |
4875 *) | |
4876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
4877 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4878 ;; | |
4879 esac | |
4880 ;; | |
4881 | |
4882 interix[3-9]*) | |
4883 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4885 ;; | |
4886 | |
4887 irix5* | irix6* | nonstopux*) | |
4888 case $LD in | |
4889 *-32|*"-32 ") libmagic=32-bit;; | |
4890 *-n32|*"-n32 ") libmagic=N32;; | |
4891 *-64|*"-64 ") libmagic=64-bit;; | |
4892 *) libmagic=never-match;; | |
4893 esac | |
4894 lt_cv_deplibs_check_method=pass_all | |
4895 ;; | |
4896 | |
4897 # This must be glibc/ELF. | |
4898 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4899 lt_cv_deplibs_check_method=pass_all | |
4900 ;; | |
4901 | |
4902 netbsd* | netbsdelf*-gnu) | |
4903 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4905 else | |
4906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4907 fi | |
4908 ;; | |
4909 | |
4910 newos6*) | |
4911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4912 lt_cv_file_magic_cmd=/usr/bin/file | |
4913 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4914 ;; | |
4915 | |
4916 *nto* | *qnx*) | |
4917 lt_cv_deplibs_check_method=pass_all | |
4918 ;; | |
4919 | |
4920 openbsd*) | |
4921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4923 else | |
4924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4925 fi | |
4926 ;; | |
4927 | |
4928 osf3* | osf4* | osf5*) | |
4929 lt_cv_deplibs_check_method=pass_all | |
4930 ;; | |
4931 | |
4932 rdos*) | |
4933 lt_cv_deplibs_check_method=pass_all | |
4934 ;; | |
4935 | |
4936 solaris*) | |
4937 lt_cv_deplibs_check_method=pass_all | |
4938 ;; | |
4939 | |
4940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4941 lt_cv_deplibs_check_method=pass_all | |
4942 ;; | |
4943 | |
4944 sysv4 | sysv4.3*) | |
4945 case $host_vendor in | |
4946 motorola) | |
4947 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]' | |
4948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4949 ;; | |
4950 ncr) | |
4951 lt_cv_deplibs_check_method=pass_all | |
4952 ;; | |
4953 sequent) | |
4954 lt_cv_file_magic_cmd='/bin/file' | |
4955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4956 ;; | |
4957 sni) | |
4958 lt_cv_file_magic_cmd='/bin/file' | |
4959 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4960 lt_cv_file_magic_test_file=/lib/libc.so | |
4961 ;; | |
4962 siemens) | |
4963 lt_cv_deplibs_check_method=pass_all | |
4964 ;; | |
4965 pc) | |
4966 lt_cv_deplibs_check_method=pass_all | |
4967 ;; | |
4968 esac | |
4969 ;; | |
4970 | |
4971 tpf*) | |
4972 lt_cv_deplibs_check_method=pass_all | |
4973 ;; | |
4974 esac | |
4975 | |
4976 fi | |
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
4978 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4979 | |
4980 file_magic_glob= | |
4981 want_nocaseglob=no | |
4982 if test "$build" = "$host"; then | |
4983 case $host_os in | |
4984 mingw* | pw32*) | |
4985 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
4986 want_nocaseglob=yes | |
4987 else | |
4988 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
4989 fi | |
4990 ;; | |
4991 esac | |
4992 fi | |
4993 | |
4994 file_magic_cmd=$lt_cv_file_magic_cmd | |
4995 deplibs_check_method=$lt_cv_deplibs_check_method | |
4996 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4997 | |
4998 | |
4999 | |
5000 | |
5001 | |
5002 | |
5003 | |
5004 | |
5005 | |
5006 | |
5007 | |
5008 | |
5009 | |
5010 | |
5011 | |
5012 | |
5013 | |
5014 | |
5015 | |
5016 | |
5017 | |
5018 | |
5019 if test -n "$ac_tool_prefix"; then | |
5020 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5021 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5023 $as_echo_n "checking for $ac_word... " >&6; } | |
5024 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5025 $as_echo_n "(cached) " >&6 | |
5026 else | |
5027 if test -n "$DLLTOOL"; then | |
5028 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5029 else | |
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5031 for as_dir in $PATH | |
5032 do | |
5033 IFS=$as_save_IFS | |
5034 test -z "$as_dir" && as_dir=. | |
5035 for ac_exec_ext in '' $ac_executable_extensions; do | |
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5037 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5039 break 2 | |
5040 fi | |
5041 done | |
5042 done | |
5043 IFS=$as_save_IFS | |
5044 | |
5045 fi | |
5046 fi | |
5047 DLLTOOL=$ac_cv_prog_DLLTOOL | |
5048 if test -n "$DLLTOOL"; then | |
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5050 $as_echo "$DLLTOOL" >&6; } | |
5051 else | |
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5053 $as_echo "no" >&6; } | |
5054 fi | |
5055 | |
5056 | |
5057 fi | |
5058 if test -z "$ac_cv_prog_DLLTOOL"; then | |
5059 ac_ct_DLLTOOL=$DLLTOOL | |
5060 # Extract the first word of "dlltool", so it can be a program name with args. | |
5061 set dummy dlltool; ac_word=$2 | |
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5063 $as_echo_n "checking for $ac_word... " >&6; } | |
5064 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5065 $as_echo_n "(cached) " >&6 | |
5066 else | |
5067 if test -n "$ac_ct_DLLTOOL"; then | |
5068 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5069 else | |
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5071 for as_dir in $PATH | |
5072 do | |
5073 IFS=$as_save_IFS | |
5074 test -z "$as_dir" && as_dir=. | |
5075 for ac_exec_ext in '' $ac_executable_extensions; do | |
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5077 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5079 break 2 | |
5080 fi | |
5081 done | |
5082 done | |
5083 IFS=$as_save_IFS | |
5084 | |
5085 fi | |
5086 fi | |
5087 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5088 if test -n "$ac_ct_DLLTOOL"; then | |
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5090 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5091 else | |
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5093 $as_echo "no" >&6; } | |
5094 fi | |
5095 | |
5096 if test "x$ac_ct_DLLTOOL" = x; then | |
5097 DLLTOOL="false" | |
5098 else | |
5099 case $cross_compiling:$ac_tool_warned in | |
5100 yes:) | |
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5103 ac_tool_warned=yes ;; | |
5104 esac | |
5105 DLLTOOL=$ac_ct_DLLTOOL | |
5106 fi | |
5107 else | |
5108 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5109 fi | |
5110 | |
5111 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5112 | |
5113 | |
5114 | |
5115 | |
5116 | |
5117 | |
5118 | |
5119 | |
5120 | |
5121 | |
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5123 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5124 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5125 $as_echo_n "(cached) " >&6 | |
5126 else | |
5127 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5128 | |
5129 case $host_os in | |
5130 cygwin* | mingw* | pw32* | cegcc*) | |
5131 # two different shell functions defined in ltmain.sh | |
5132 # decide which to use based on capabilities of $DLLTOOL | |
5133 case `$DLLTOOL --help 2>&1` in | |
5134 *--identify-strict*) | |
5135 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5136 ;; | |
5137 *) | |
5138 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5139 ;; | |
5140 esac | |
5141 ;; | |
5142 *) | |
5143 # fallback: assume linklib IS sharedlib | |
5144 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
5145 ;; | |
5146 esac | |
5147 | |
5148 fi | |
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5150 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5151 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5152 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5153 | |
5154 | |
5155 | |
5156 | |
5157 | |
5158 | |
5159 | |
5160 | |
5161 if test -n "$ac_tool_prefix"; then | |
5162 for ac_prog in ar | |
5163 do | |
5164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5167 $as_echo_n "checking for $ac_word... " >&6; } | |
5168 if ${ac_cv_prog_AR+:} false; then : | |
5169 $as_echo_n "(cached) " >&6 | |
5170 else | |
5171 if test -n "$AR"; then | |
5172 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5173 else | |
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5175 for as_dir in $PATH | |
5176 do | |
5177 IFS=$as_save_IFS | |
5178 test -z "$as_dir" && as_dir=. | |
5179 for ac_exec_ext in '' $ac_executable_extensions; do | |
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5181 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5183 break 2 | |
5184 fi | |
5185 done | |
5186 done | |
5187 IFS=$as_save_IFS | |
5188 | |
5189 fi | |
5190 fi | |
5191 AR=$ac_cv_prog_AR | |
5192 if test -n "$AR"; then | |
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5194 $as_echo "$AR" >&6; } | |
5195 else | |
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5197 $as_echo "no" >&6; } | |
5198 fi | |
5199 | |
5200 | |
5201 test -n "$AR" && break | |
5202 done | |
5203 fi | |
5204 if test -z "$AR"; then | |
5205 ac_ct_AR=$AR | |
5206 for ac_prog in ar | |
5207 do | |
5208 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5209 set dummy $ac_prog; ac_word=$2 | |
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5211 $as_echo_n "checking for $ac_word... " >&6; } | |
5212 if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5213 $as_echo_n "(cached) " >&6 | |
5214 else | |
5215 if test -n "$ac_ct_AR"; then | |
5216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5217 else | |
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5219 for as_dir in $PATH | |
5220 do | |
5221 IFS=$as_save_IFS | |
5222 test -z "$as_dir" && as_dir=. | |
5223 for ac_exec_ext in '' $ac_executable_extensions; do | |
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5225 ac_cv_prog_ac_ct_AR="$ac_prog" | |
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5227 break 2 | |
5228 fi | |
5229 done | |
5230 done | |
5231 IFS=$as_save_IFS | |
5232 | |
5233 fi | |
5234 fi | |
5235 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5236 if test -n "$ac_ct_AR"; then | |
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5238 $as_echo "$ac_ct_AR" >&6; } | |
5239 else | |
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5241 $as_echo "no" >&6; } | |
5242 fi | |
5243 | |
5244 | |
5245 test -n "$ac_ct_AR" && break | |
5246 done | |
5247 | |
5248 if test "x$ac_ct_AR" = x; then | |
5249 AR="false" | |
5250 else | |
5251 case $cross_compiling:$ac_tool_warned in | |
5252 yes:) | |
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5255 ac_tool_warned=yes ;; | |
5256 esac | |
5257 AR=$ac_ct_AR | |
5258 fi | |
5259 fi | |
5260 | |
5261 : ${AR=ar} | |
5262 : ${AR_FLAGS=cru} | |
5263 | |
5264 | |
5265 | |
5266 | |
5267 | |
5268 | |
5269 | |
5270 | |
5271 | |
5272 | |
5273 | |
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5275 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5276 if ${lt_cv_ar_at_file+:} false; then : | |
5277 $as_echo_n "(cached) " >&6 | |
5278 else | |
5279 lt_cv_ar_at_file=no | |
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5281 /* end confdefs.h. */ | |
5282 | |
5283 int | |
5284 main () | |
5285 { | |
5286 | |
5287 ; | |
5288 return 0; | |
5289 } | |
5290 _ACEOF | |
5291 if ac_fn_c_try_compile "$LINENO"; then : | |
5292 echo conftest.$ac_objext > conftest.lst | |
5293 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5295 (eval $lt_ar_try) 2>&5 | |
5296 ac_status=$? | |
5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5298 test $ac_status = 0; } | |
5299 if test "$ac_status" -eq 0; then | |
5300 # Ensure the archiver fails upon bogus file names. | |
5301 rm -f conftest.$ac_objext libconftest.a | |
5302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5303 (eval $lt_ar_try) 2>&5 | |
5304 ac_status=$? | |
5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5306 test $ac_status = 0; } | |
5307 if test "$ac_status" -ne 0; then | |
5308 lt_cv_ar_at_file=@ | |
5309 fi | |
5310 fi | |
5311 rm -f conftest.* libconftest.a | |
5312 | |
5313 fi | |
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5315 | |
5316 fi | |
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5318 $as_echo "$lt_cv_ar_at_file" >&6; } | |
5319 | |
5320 if test "x$lt_cv_ar_at_file" = xno; then | |
5321 archiver_list_spec= | |
5322 else | |
5323 archiver_list_spec=$lt_cv_ar_at_file | |
5324 fi | |
5325 | |
5326 | |
5327 | |
5328 | |
5329 | |
5330 | |
5331 | |
5332 if test -n "$ac_tool_prefix"; then | |
5333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5334 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5336 $as_echo_n "checking for $ac_word... " >&6; } | |
5337 if ${ac_cv_prog_STRIP+:} false; then : | |
5338 $as_echo_n "(cached) " >&6 | |
5339 else | |
5340 if test -n "$STRIP"; then | |
5341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5342 else | |
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5344 for as_dir in $PATH | |
5345 do | |
5346 IFS=$as_save_IFS | |
5347 test -z "$as_dir" && as_dir=. | |
5348 for ac_exec_ext in '' $ac_executable_extensions; do | |
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5350 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5352 break 2 | |
5353 fi | |
5354 done | |
5355 done | |
5356 IFS=$as_save_IFS | |
5357 | |
5358 fi | |
5359 fi | |
5360 STRIP=$ac_cv_prog_STRIP | |
5361 if test -n "$STRIP"; then | |
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5363 $as_echo "$STRIP" >&6; } | |
5364 else | |
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5366 $as_echo "no" >&6; } | |
5367 fi | |
5368 | |
5369 | |
5370 fi | |
5371 if test -z "$ac_cv_prog_STRIP"; then | |
5372 ac_ct_STRIP=$STRIP | |
5373 # Extract the first word of "strip", so it can be a program name with args. | |
5374 set dummy strip; ac_word=$2 | |
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5376 $as_echo_n "checking for $ac_word... " >&6; } | |
5377 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5378 $as_echo_n "(cached) " >&6 | |
5379 else | |
5380 if test -n "$ac_ct_STRIP"; then | |
5381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5382 else | |
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5384 for as_dir in $PATH | |
5385 do | |
5386 IFS=$as_save_IFS | |
5387 test -z "$as_dir" && as_dir=. | |
5388 for ac_exec_ext in '' $ac_executable_extensions; do | |
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5390 ac_cv_prog_ac_ct_STRIP="strip" | |
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5392 break 2 | |
5393 fi | |
5394 done | |
5395 done | |
5396 IFS=$as_save_IFS | |
5397 | |
5398 fi | |
5399 fi | |
5400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5401 if test -n "$ac_ct_STRIP"; then | |
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5403 $as_echo "$ac_ct_STRIP" >&6; } | |
5404 else | |
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5406 $as_echo "no" >&6; } | |
5407 fi | |
5408 | |
5409 if test "x$ac_ct_STRIP" = x; then | |
5410 STRIP=":" | |
5411 else | |
5412 case $cross_compiling:$ac_tool_warned in | |
5413 yes:) | |
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5416 ac_tool_warned=yes ;; | |
5417 esac | |
5418 STRIP=$ac_ct_STRIP | |
5419 fi | |
5420 else | |
5421 STRIP="$ac_cv_prog_STRIP" | |
5422 fi | |
5423 | |
5424 test -z "$STRIP" && STRIP=: | |
5425 | |
5426 | |
5427 | |
5428 | |
5429 | |
5430 | |
5431 if test -n "$ac_tool_prefix"; then | |
5432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5435 $as_echo_n "checking for $ac_word... " >&6; } | |
5436 if ${ac_cv_prog_RANLIB+:} false; then : | |
5437 $as_echo_n "(cached) " >&6 | |
5438 else | |
5439 if test -n "$RANLIB"; then | |
5440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5441 else | |
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5443 for as_dir in $PATH | |
5444 do | |
5445 IFS=$as_save_IFS | |
5446 test -z "$as_dir" && as_dir=. | |
5447 for ac_exec_ext in '' $ac_executable_extensions; do | |
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5451 break 2 | |
5452 fi | |
5453 done | |
5454 done | |
5455 IFS=$as_save_IFS | |
5456 | |
5457 fi | |
5458 fi | |
5459 RANLIB=$ac_cv_prog_RANLIB | |
5460 if test -n "$RANLIB"; then | |
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5462 $as_echo "$RANLIB" >&6; } | |
5463 else | |
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5465 $as_echo "no" >&6; } | |
5466 fi | |
5467 | |
5468 | |
5469 fi | |
5470 if test -z "$ac_cv_prog_RANLIB"; then | |
5471 ac_ct_RANLIB=$RANLIB | |
5472 # Extract the first word of "ranlib", so it can be a program name with args. | |
5473 set dummy ranlib; ac_word=$2 | |
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5475 $as_echo_n "checking for $ac_word... " >&6; } | |
5476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5477 $as_echo_n "(cached) " >&6 | |
5478 else | |
5479 if test -n "$ac_ct_RANLIB"; then | |
5480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5481 else | |
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5483 for as_dir in $PATH | |
5484 do | |
5485 IFS=$as_save_IFS | |
5486 test -z "$as_dir" && as_dir=. | |
5487 for ac_exec_ext in '' $ac_executable_extensions; do | |
5488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5489 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5491 break 2 | |
5492 fi | |
5493 done | |
5494 done | |
5495 IFS=$as_save_IFS | |
5496 | |
5497 fi | |
5498 fi | |
5499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5500 if test -n "$ac_ct_RANLIB"; then | |
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5502 $as_echo "$ac_ct_RANLIB" >&6; } | |
5503 else | |
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5505 $as_echo "no" >&6; } | |
5506 fi | |
5507 | |
5508 if test "x$ac_ct_RANLIB" = x; then | |
5509 RANLIB=":" | |
5510 else | |
5511 case $cross_compiling:$ac_tool_warned in | |
5512 yes:) | |
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5515 ac_tool_warned=yes ;; | |
5516 esac | |
5517 RANLIB=$ac_ct_RANLIB | |
5518 fi | |
5519 else | |
5520 RANLIB="$ac_cv_prog_RANLIB" | |
5521 fi | |
5522 | |
5523 test -z "$RANLIB" && RANLIB=: | |
5524 | |
5525 | |
5526 | |
5527 | |
5528 | |
5529 | |
5530 # Determine commands to create old-style static archives. | |
5531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5532 old_postinstall_cmds='chmod 644 $oldlib' | |
5533 old_postuninstall_cmds= | |
5534 | |
5535 if test -n "$RANLIB"; then | |
5536 case $host_os in | |
5537 openbsd*) | |
5538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
5539 ;; | |
5540 *) | |
5541 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
5542 ;; | |
5543 esac | |
5544 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
5545 fi | |
5546 | |
5547 case $host_os in | |
5548 darwin*) | |
5549 lock_old_archive_extraction=yes ;; | |
5550 *) | |
5551 lock_old_archive_extraction=no ;; | |
5552 esac | |
5553 | |
5554 | |
5555 | |
5556 | |
5557 | |
5558 | |
5559 | |
5560 | |
5561 | |
5562 | |
5563 | |
5564 | |
5565 | |
5566 | |
5567 | |
5568 | |
5569 | |
5570 | |
5571 | |
5572 | |
5573 | |
5574 | |
5575 | |
5576 | |
5577 | |
5578 | |
5579 | |
5580 | |
5581 | |
5582 | |
5583 | |
5584 | |
5585 | |
5586 | |
5587 | |
5588 | |
5589 | |
5590 | |
5591 | |
5592 # If no C compiler was specified, use CC. | |
5593 LTCC=${LTCC-"$CC"} | |
5594 | |
5595 # If no C compiler flags were specified, use CFLAGS. | |
5596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5597 | |
5598 # Allow CC to be a program name with arguments. | |
5599 compiler=$CC | |
5600 | |
5601 | |
5602 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
5604 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5605 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
5606 $as_echo_n "(cached) " >&6 | |
5607 else | |
5608 | |
5609 # These are sane defaults that work on at least a few old systems. | |
5610 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5611 | |
5612 # Character class describing NM global symbol codes. | |
5613 symcode='[BCDEGRST]' | |
5614 | |
5615 # Regexp to match symbols that can be accessed directly from C. | |
5616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5617 | |
5618 # Define system-specific variables. | |
5619 case $host_os in | |
5620 aix*) | |
5621 symcode='[BCDT]' | |
5622 ;; | |
5623 cygwin* | mingw* | pw32* | cegcc*) | |
5624 symcode='[ABCDGISTW]' | |
5625 ;; | |
5626 hpux*) | |
5627 if test "$host_cpu" = ia64; then | |
5628 symcode='[ABCDEGRST]' | |
5629 fi | |
5630 ;; | |
5631 irix* | nonstopux*) | |
5632 symcode='[BCDEGRST]' | |
5633 ;; | |
5634 osf*) | |
5635 symcode='[BCDEGQRST]' | |
5636 ;; | |
5637 solaris*) | |
5638 symcode='[BDRT]' | |
5639 ;; | |
5640 sco3.2v5*) | |
5641 symcode='[DT]' | |
5642 ;; | |
5643 sysv4.2uw2*) | |
5644 symcode='[DT]' | |
5645 ;; | |
5646 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5647 symcode='[ABDT]' | |
5648 ;; | |
5649 sysv4) | |
5650 symcode='[DFNSTU]' | |
5651 ;; | |
5652 esac | |
5653 | |
5654 # If we're using GNU nm, then use its standard symbol codes. | |
5655 case `$NM -V 2>&1` in | |
5656 *GNU* | *'with BFD'*) | |
5657 symcode='[ABCDGIRSTW]' ;; | |
5658 esac | |
5659 | |
5660 # Transform an extracted symbol line into a proper C declaration. | |
5661 # Some systems (esp. on ia64) link data and code symbols differently, | |
5662 # so use this general approach. | |
5663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5664 | |
5665 # Transform an extracted symbol line into symbol name and symbol address | |
5666 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
5668 | |
5669 # Handle CRLF in mingw tool chain | |
5670 opt_cr= | |
5671 case $build_os in | |
5672 mingw*) | |
5673 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5674 ;; | |
5675 esac | |
5676 | |
5677 # Try without a prefix underscore, then with it. | |
5678 for ac_symprfx in "" "_"; do | |
5679 | |
5680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5681 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5682 | |
5683 # Write the raw and C identifiers. | |
5684 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5685 # Fake it for dumpbin and say T for any non-static function | |
5686 # and D for any global variable. | |
5687 # Also find C++ and __fastcall symbols from MSVC++, | |
5688 # which start with @ or ?. | |
5689 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5690 " {last_section=section; section=\$ 3};"\ | |
5691 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
5692 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5693 " \$ 0!~/External *\|/{next};"\ | |
5694 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5695 " {if(hide[section]) next};"\ | |
5696 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5697 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5698 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5699 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5700 " ' prfx=^$ac_symprfx" | |
5701 else | |
5702 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5703 fi | |
5704 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
5705 | |
5706 # Check to see that the pipe works correctly. | |
5707 pipe_works=no | |
5708 | |
5709 rm -f conftest* | |
5710 cat > conftest.$ac_ext <<_LT_EOF | |
5711 #ifdef __cplusplus | |
5712 extern "C" { | |
5713 #endif | |
5714 char nm_test_var; | |
5715 void nm_test_func(void); | |
5716 void nm_test_func(void){} | |
5717 #ifdef __cplusplus | |
5718 } | |
5719 #endif | |
5720 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5721 _LT_EOF | |
5722 | |
5723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5724 (eval $ac_compile) 2>&5 | |
5725 ac_status=$? | |
5726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5727 test $ac_status = 0; }; then | |
5728 # Now try to grab the symbols. | |
5729 nlist=conftest.nm | |
5730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
5731 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
5732 ac_status=$? | |
5733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5734 test $ac_status = 0; } && test -s "$nlist"; then | |
5735 # Try sorting and uniquifying the output. | |
5736 if sort "$nlist" | uniq > "$nlist"T; then | |
5737 mv -f "$nlist"T "$nlist" | |
5738 else | |
5739 rm -f "$nlist"T | |
5740 fi | |
5741 | |
5742 # Make sure that we snagged all the symbols we need. | |
5743 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5744 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5745 cat <<_LT_EOF > conftest.$ac_ext | |
5746 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
5747 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
5748 /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
5749 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
5750 # define LT_DLSYM_CONST | |
5751 #elif defined(__osf__) | |
5752 /* This system does not cope well with relocations in const data. */ | |
5753 # define LT_DLSYM_CONST | |
5754 #else | |
5755 # define LT_DLSYM_CONST const | |
5756 #endif | |
5757 | |
5758 #ifdef __cplusplus | |
5759 extern "C" { | |
5760 #endif | |
5761 | |
5762 _LT_EOF | |
5763 # Now generate the symbol file. | |
5764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5765 | |
5766 cat <<_LT_EOF >> conftest.$ac_ext | |
5767 | |
5768 /* The mapping between symbol names and symbols. */ | |
5769 LT_DLSYM_CONST struct { | |
5770 const char *name; | |
5771 void *address; | |
5772 } | |
5773 lt__PROGRAM__LTX_preloaded_symbols[] = | |
5774 { | |
5775 { "@PROGRAM@", (void *) 0 }, | |
5776 _LT_EOF | |
5777 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5778 cat <<\_LT_EOF >> conftest.$ac_ext | |
5779 {0, (void *) 0} | |
5780 }; | |
5781 | |
5782 /* This works around a problem in FreeBSD linker */ | |
5783 #ifdef FREEBSD_WORKAROUND | |
5784 static const void *lt_preloaded_setup() { | |
5785 return lt__PROGRAM__LTX_preloaded_symbols; | |
5786 } | |
5787 #endif | |
5788 | |
5789 #ifdef __cplusplus | |
5790 } | |
5791 #endif | |
5792 _LT_EOF | |
5793 # Now try linking the two files. | |
5794 mv conftest.$ac_objext conftstm.$ac_objext | |
5795 lt_globsym_save_LIBS=$LIBS | |
5796 lt_globsym_save_CFLAGS=$CFLAGS | |
5797 LIBS="conftstm.$ac_objext" | |
5798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5800 (eval $ac_link) 2>&5 | |
5801 ac_status=$? | |
5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5803 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5804 pipe_works=yes | |
5805 fi | |
5806 LIBS=$lt_globsym_save_LIBS | |
5807 CFLAGS=$lt_globsym_save_CFLAGS | |
5808 else | |
5809 echo "cannot find nm_test_func in $nlist" >&5 | |
5810 fi | |
5811 else | |
5812 echo "cannot find nm_test_var in $nlist" >&5 | |
5813 fi | |
5814 else | |
5815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5816 fi | |
5817 else | |
5818 echo "$progname: failed program was:" >&5 | |
5819 cat conftest.$ac_ext >&5 | |
5820 fi | |
5821 rm -rf conftest* conftst* | |
5822 | |
5823 # Do not use the global_symbol_pipe unless it works. | |
5824 if test "$pipe_works" = yes; then | |
5825 break | |
5826 else | |
5827 lt_cv_sys_global_symbol_pipe= | |
5828 fi | |
5829 done | |
5830 | |
5831 fi | |
5832 | |
5833 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5834 lt_cv_sys_global_symbol_to_cdecl= | |
5835 fi | |
5836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5838 $as_echo "failed" >&6; } | |
5839 else | |
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5841 $as_echo "ok" >&6; } | |
5842 fi | |
5843 | |
5844 # Response file support. | |
5845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5846 nm_file_list_spec='@' | |
5847 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
5848 nm_file_list_spec='@' | |
5849 fi | |
5850 | |
5851 | |
5852 | |
5853 | |
5854 | |
5855 | |
5856 | |
5857 | |
5858 | |
5859 | |
5860 | |
5861 | |
5862 | |
5863 | |
5864 | |
5865 | |
5866 | |
5867 | |
5868 | |
5869 | |
5870 | |
5871 | |
5872 | |
5873 | |
5874 | |
5875 | |
5876 | |
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
5878 $as_echo_n "checking for sysroot... " >&6; } | |
5879 | |
5880 # Check whether --with-sysroot was given. | |
5881 if test "${with_sysroot+set}" = set; then : | |
5882 withval=$with_sysroot; | |
5883 else | |
5884 with_sysroot=no | |
5885 fi | |
5886 | |
5887 | |
5888 lt_sysroot= | |
5889 case ${with_sysroot} in #( | |
5890 yes) | |
5891 if test "$GCC" = yes; then | |
5892 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
5893 fi | |
5894 ;; #( | |
5895 /*) | |
5896 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
5897 ;; #( | |
5898 no|'') | |
5899 ;; #( | |
5900 *) | |
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
5902 $as_echo "${with_sysroot}" >&6; } | |
5903 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
5904 ;; | |
5905 esac | |
5906 | |
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
5908 $as_echo "${lt_sysroot:-no}" >&6; } | |
5909 | |
5910 | |
5911 | |
5912 | |
5913 | |
5914 # Check whether --enable-libtool-lock was given. | |
5915 if test "${enable_libtool_lock+set}" = set; then : | |
5916 enableval=$enable_libtool_lock; | |
5917 fi | |
5918 | |
5919 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5920 | |
5921 # Some flags need to be propagated to the compiler or linker for good | |
5922 # libtool support. | |
5923 case $host in | |
5924 ia64-*-hpux*) | |
5925 # Find out which ABI we are using. | |
5926 echo 'int i;' > conftest.$ac_ext | |
5927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5928 (eval $ac_compile) 2>&5 | |
5929 ac_status=$? | |
5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5931 test $ac_status = 0; }; then | |
5932 case `/usr/bin/file conftest.$ac_objext` in | |
5933 *ELF-32*) | |
5934 HPUX_IA64_MODE="32" | |
5935 ;; | |
5936 *ELF-64*) | |
5937 HPUX_IA64_MODE="64" | |
5938 ;; | |
5939 esac | |
5940 fi | |
5941 rm -rf conftest* | |
5942 ;; | |
5943 *-*-irix6*) | |
5944 # Find out which ABI we are using. | |
5945 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
5946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5947 (eval $ac_compile) 2>&5 | |
5948 ac_status=$? | |
5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5950 test $ac_status = 0; }; then | |
5951 if test "$lt_cv_prog_gnu_ld" = yes; then | |
5952 case `/usr/bin/file conftest.$ac_objext` in | |
5953 *32-bit*) | |
5954 LD="${LD-ld} -melf32bsmip" | |
5955 ;; | |
5956 *N32*) | |
5957 LD="${LD-ld} -melf32bmipn32" | |
5958 ;; | |
5959 *64-bit*) | |
5960 LD="${LD-ld} -melf64bmip" | |
5961 ;; | |
5962 esac | |
5963 else | |
5964 case `/usr/bin/file conftest.$ac_objext` in | |
5965 *32-bit*) | |
5966 LD="${LD-ld} -32" | |
5967 ;; | |
5968 *N32*) | |
5969 LD="${LD-ld} -n32" | |
5970 ;; | |
5971 *64-bit*) | |
5972 LD="${LD-ld} -64" | |
5973 ;; | |
5974 esac | |
5975 fi | |
5976 fi | |
5977 rm -rf conftest* | |
5978 ;; | |
5979 | |
5980 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5981 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5982 # Find out which ABI we are using. | |
5983 echo 'int i;' > conftest.$ac_ext | |
5984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5985 (eval $ac_compile) 2>&5 | |
5986 ac_status=$? | |
5987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5988 test $ac_status = 0; }; then | |
5989 case `/usr/bin/file conftest.o` in | |
5990 *32-bit*) | |
5991 case $host in | |
5992 x86_64-*kfreebsd*-gnu) | |
5993 LD="${LD-ld} -m elf_i386_fbsd" | |
5994 ;; | |
5995 x86_64-*linux*) | |
5996 LD="${LD-ld} -m elf_i386" | |
5997 ;; | |
5998 ppc64-*linux*|powerpc64-*linux*) | |
5999 LD="${LD-ld} -m elf32ppclinux" | |
6000 ;; | |
6001 s390x-*linux*) | |
6002 LD="${LD-ld} -m elf_s390" | |
6003 ;; | |
6004 sparc64-*linux*) | |
6005 LD="${LD-ld} -m elf32_sparc" | |
6006 ;; | |
6007 esac | |
6008 ;; | |
6009 *64-bit*) | |
6010 case $host in | |
6011 x86_64-*kfreebsd*-gnu) | |
6012 LD="${LD-ld} -m elf_x86_64_fbsd" | |
6013 ;; | |
6014 x86_64-*linux*) | |
6015 LD="${LD-ld} -m elf_x86_64" | |
6016 ;; | |
6017 ppc*-*linux*|powerpc*-*linux*) | |
6018 LD="${LD-ld} -m elf64ppc" | |
6019 ;; | |
6020 s390*-*linux*|s390*-*tpf*) | |
6021 LD="${LD-ld} -m elf64_s390" | |
6022 ;; | |
6023 sparc*-*linux*) | |
6024 LD="${LD-ld} -m elf64_sparc" | |
6025 ;; | |
6026 esac | |
6027 ;; | |
6028 esac | |
6029 fi | |
6030 rm -rf conftest* | |
6031 ;; | |
6032 | |
6033 *-*-sco3.2v5*) | |
6034 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6035 SAVE_CFLAGS="$CFLAGS" | |
6036 CFLAGS="$CFLAGS -belf" | |
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6038 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6039 if ${lt_cv_cc_needs_belf+:} false; then : | |
6040 $as_echo_n "(cached) " >&6 | |
6041 else | |
6042 ac_ext=c | |
6043 ac_cpp='$CPP $CPPFLAGS' | |
6044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6046 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6047 | |
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6049 /* end confdefs.h. */ | |
6050 | |
6051 int | |
6052 main () | |
6053 { | |
6054 | |
6055 ; | |
6056 return 0; | |
6057 } | |
6058 _ACEOF | |
6059 if ac_fn_c_try_link "$LINENO"; then : | |
6060 lt_cv_cc_needs_belf=yes | |
6061 else | |
6062 lt_cv_cc_needs_belf=no | |
6063 fi | |
6064 rm -f core conftest.err conftest.$ac_objext \ | |
6065 conftest$ac_exeext conftest.$ac_ext | |
6066 ac_ext=c | |
6067 ac_cpp='$CPP $CPPFLAGS' | |
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6071 | |
6072 fi | |
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6074 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6075 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6076 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6077 CFLAGS="$SAVE_CFLAGS" | |
6078 fi | |
6079 ;; | |
6080 *-*solaris*) | |
6081 # Find out which ABI we are using. | |
6082 echo 'int i;' > conftest.$ac_ext | |
6083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6084 (eval $ac_compile) 2>&5 | |
6085 ac_status=$? | |
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6087 test $ac_status = 0; }; then | |
6088 case `/usr/bin/file conftest.o` in | |
6089 *64-bit*) | |
6090 case $lt_cv_prog_gnu_ld in | |
6091 yes*) | |
6092 case $host in | |
6093 i?86-*-solaris*) | |
6094 LD="${LD-ld} -m elf_x86_64" | |
6095 ;; | |
6096 sparc*-*-solaris*) | |
6097 LD="${LD-ld} -m elf64_sparc" | |
6098 ;; | |
6099 esac | |
6100 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6101 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6102 LD="${LD-ld}_sol2" | |
6103 fi | |
6104 ;; | |
6105 *) | |
6106 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6107 LD="${LD-ld} -64" | |
6108 fi | |
6109 ;; | |
6110 esac | |
6111 ;; | |
6112 esac | |
6113 fi | |
6114 rm -rf conftest* | |
6115 ;; | |
6116 esac | |
6117 | |
6118 need_locks="$enable_libtool_lock" | |
6119 | |
6120 if test -n "$ac_tool_prefix"; then | |
6121 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6122 set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6124 $as_echo_n "checking for $ac_word... " >&6; } | |
6125 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6126 $as_echo_n "(cached) " >&6 | |
6127 else | |
6128 if test -n "$MANIFEST_TOOL"; then | |
6129 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6130 else | |
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6132 for as_dir in $PATH | |
6133 do | |
6134 IFS=$as_save_IFS | |
6135 test -z "$as_dir" && as_dir=. | |
6136 for ac_exec_ext in '' $ac_executable_extensions; do | |
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6138 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6140 break 2 | |
6141 fi | |
6142 done | |
6143 done | |
6144 IFS=$as_save_IFS | |
6145 | |
6146 fi | |
6147 fi | |
6148 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6149 if test -n "$MANIFEST_TOOL"; then | |
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6151 $as_echo "$MANIFEST_TOOL" >&6; } | |
6152 else | |
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6154 $as_echo "no" >&6; } | |
6155 fi | |
6156 | |
6157 | |
6158 fi | |
6159 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6160 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6161 # Extract the first word of "mt", so it can be a program name with args. | |
6162 set dummy mt; ac_word=$2 | |
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6164 $as_echo_n "checking for $ac_word... " >&6; } | |
6165 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6166 $as_echo_n "(cached) " >&6 | |
6167 else | |
6168 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6169 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6170 else | |
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6172 for as_dir in $PATH | |
6173 do | |
6174 IFS=$as_save_IFS | |
6175 test -z "$as_dir" && as_dir=. | |
6176 for ac_exec_ext in '' $ac_executable_extensions; do | |
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6178 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6180 break 2 | |
6181 fi | |
6182 done | |
6183 done | |
6184 IFS=$as_save_IFS | |
6185 | |
6186 fi | |
6187 fi | |
6188 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6189 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6191 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6192 else | |
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6194 $as_echo "no" >&6; } | |
6195 fi | |
6196 | |
6197 if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6198 MANIFEST_TOOL=":" | |
6199 else | |
6200 case $cross_compiling:$ac_tool_warned in | |
6201 yes:) | |
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6204 ac_tool_warned=yes ;; | |
6205 esac | |
6206 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6207 fi | |
6208 else | |
6209 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6210 fi | |
6211 | |
6212 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6214 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6215 if ${lt_cv_path_mainfest_tool+:} false; then : | |
6216 $as_echo_n "(cached) " >&6 | |
6217 else | |
6218 lt_cv_path_mainfest_tool=no | |
6219 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6220 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6221 cat conftest.err >&5 | |
6222 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6223 lt_cv_path_mainfest_tool=yes | |
6224 fi | |
6225 rm -f conftest* | |
6226 fi | |
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6228 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6229 if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6230 MANIFEST_TOOL=: | |
6231 fi | |
6232 | |
6233 | |
6234 | |
6235 | |
6236 | |
6237 | |
6238 case $host_os in | |
6239 rhapsody* | darwin*) | |
6240 if test -n "$ac_tool_prefix"; then | |
6241 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6242 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6244 $as_echo_n "checking for $ac_word... " >&6; } | |
6245 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
6246 $as_echo_n "(cached) " >&6 | |
6247 else | |
6248 if test -n "$DSYMUTIL"; then | |
6249 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6250 else | |
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6252 for as_dir in $PATH | |
6253 do | |
6254 IFS=$as_save_IFS | |
6255 test -z "$as_dir" && as_dir=. | |
6256 for ac_exec_ext in '' $ac_executable_extensions; do | |
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6258 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6260 break 2 | |
6261 fi | |
6262 done | |
6263 done | |
6264 IFS=$as_save_IFS | |
6265 | |
6266 fi | |
6267 fi | |
6268 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6269 if test -n "$DSYMUTIL"; then | |
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6271 $as_echo "$DSYMUTIL" >&6; } | |
6272 else | |
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6274 $as_echo "no" >&6; } | |
6275 fi | |
6276 | |
6277 | |
6278 fi | |
6279 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6280 ac_ct_DSYMUTIL=$DSYMUTIL | |
6281 # Extract the first word of "dsymutil", so it can be a program name with args. | |
6282 set dummy dsymutil; ac_word=$2 | |
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6284 $as_echo_n "checking for $ac_word... " >&6; } | |
6285 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
6286 $as_echo_n "(cached) " >&6 | |
6287 else | |
6288 if test -n "$ac_ct_DSYMUTIL"; then | |
6289 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6290 else | |
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6292 for as_dir in $PATH | |
6293 do | |
6294 IFS=$as_save_IFS | |
6295 test -z "$as_dir" && as_dir=. | |
6296 for ac_exec_ext in '' $ac_executable_extensions; do | |
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6298 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6300 break 2 | |
6301 fi | |
6302 done | |
6303 done | |
6304 IFS=$as_save_IFS | |
6305 | |
6306 fi | |
6307 fi | |
6308 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6309 if test -n "$ac_ct_DSYMUTIL"; then | |
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6311 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6312 else | |
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6314 $as_echo "no" >&6; } | |
6315 fi | |
6316 | |
6317 if test "x$ac_ct_DSYMUTIL" = x; then | |
6318 DSYMUTIL=":" | |
6319 else | |
6320 case $cross_compiling:$ac_tool_warned in | |
6321 yes:) | |
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6324 ac_tool_warned=yes ;; | |
6325 esac | |
6326 DSYMUTIL=$ac_ct_DSYMUTIL | |
6327 fi | |
6328 else | |
6329 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6330 fi | |
6331 | |
6332 if test -n "$ac_tool_prefix"; then | |
6333 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6334 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6336 $as_echo_n "checking for $ac_word... " >&6; } | |
6337 if ${ac_cv_prog_NMEDIT+:} false; then : | |
6338 $as_echo_n "(cached) " >&6 | |
6339 else | |
6340 if test -n "$NMEDIT"; then | |
6341 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6342 else | |
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6344 for as_dir in $PATH | |
6345 do | |
6346 IFS=$as_save_IFS | |
6347 test -z "$as_dir" && as_dir=. | |
6348 for ac_exec_ext in '' $ac_executable_extensions; do | |
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6350 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6352 break 2 | |
6353 fi | |
6354 done | |
6355 done | |
6356 IFS=$as_save_IFS | |
6357 | |
6358 fi | |
6359 fi | |
6360 NMEDIT=$ac_cv_prog_NMEDIT | |
6361 if test -n "$NMEDIT"; then | |
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
6363 $as_echo "$NMEDIT" >&6; } | |
6364 else | |
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6366 $as_echo "no" >&6; } | |
6367 fi | |
6368 | |
6369 | |
6370 fi | |
6371 if test -z "$ac_cv_prog_NMEDIT"; then | |
6372 ac_ct_NMEDIT=$NMEDIT | |
6373 # Extract the first word of "nmedit", so it can be a program name with args. | |
6374 set dummy nmedit; ac_word=$2 | |
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6376 $as_echo_n "checking for $ac_word... " >&6; } | |
6377 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
6378 $as_echo_n "(cached) " >&6 | |
6379 else | |
6380 if test -n "$ac_ct_NMEDIT"; then | |
6381 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6382 else | |
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6384 for as_dir in $PATH | |
6385 do | |
6386 IFS=$as_save_IFS | |
6387 test -z "$as_dir" && as_dir=. | |
6388 for ac_exec_ext in '' $ac_executable_extensions; do | |
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6390 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6392 break 2 | |
6393 fi | |
6394 done | |
6395 done | |
6396 IFS=$as_save_IFS | |
6397 | |
6398 fi | |
6399 fi | |
6400 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6401 if test -n "$ac_ct_NMEDIT"; then | |
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
6403 $as_echo "$ac_ct_NMEDIT" >&6; } | |
6404 else | |
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6406 $as_echo "no" >&6; } | |
6407 fi | |
6408 | |
6409 if test "x$ac_ct_NMEDIT" = x; then | |
6410 NMEDIT=":" | |
6411 else | |
6412 case $cross_compiling:$ac_tool_warned in | |
6413 yes:) | |
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6416 ac_tool_warned=yes ;; | |
6417 esac | |
6418 NMEDIT=$ac_ct_NMEDIT | |
6419 fi | |
6420 else | |
6421 NMEDIT="$ac_cv_prog_NMEDIT" | |
6422 fi | |
6423 | |
6424 if test -n "$ac_tool_prefix"; then | |
6425 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6426 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6428 $as_echo_n "checking for $ac_word... " >&6; } | |
6429 if ${ac_cv_prog_LIPO+:} false; then : | |
6430 $as_echo_n "(cached) " >&6 | |
6431 else | |
6432 if test -n "$LIPO"; then | |
6433 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6434 else | |
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6436 for as_dir in $PATH | |
6437 do | |
6438 IFS=$as_save_IFS | |
6439 test -z "$as_dir" && as_dir=. | |
6440 for ac_exec_ext in '' $ac_executable_extensions; do | |
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6442 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6444 break 2 | |
6445 fi | |
6446 done | |
6447 done | |
6448 IFS=$as_save_IFS | |
6449 | |
6450 fi | |
6451 fi | |
6452 LIPO=$ac_cv_prog_LIPO | |
6453 if test -n "$LIPO"; then | |
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
6455 $as_echo "$LIPO" >&6; } | |
6456 else | |
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6458 $as_echo "no" >&6; } | |
6459 fi | |
6460 | |
6461 | |
6462 fi | |
6463 if test -z "$ac_cv_prog_LIPO"; then | |
6464 ac_ct_LIPO=$LIPO | |
6465 # Extract the first word of "lipo", so it can be a program name with args. | |
6466 set dummy lipo; ac_word=$2 | |
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6468 $as_echo_n "checking for $ac_word... " >&6; } | |
6469 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
6470 $as_echo_n "(cached) " >&6 | |
6471 else | |
6472 if test -n "$ac_ct_LIPO"; then | |
6473 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6474 else | |
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6476 for as_dir in $PATH | |
6477 do | |
6478 IFS=$as_save_IFS | |
6479 test -z "$as_dir" && as_dir=. | |
6480 for ac_exec_ext in '' $ac_executable_extensions; do | |
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6482 ac_cv_prog_ac_ct_LIPO="lipo" | |
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6484 break 2 | |
6485 fi | |
6486 done | |
6487 done | |
6488 IFS=$as_save_IFS | |
6489 | |
6490 fi | |
6491 fi | |
6492 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6493 if test -n "$ac_ct_LIPO"; then | |
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
6495 $as_echo "$ac_ct_LIPO" >&6; } | |
6496 else | |
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6498 $as_echo "no" >&6; } | |
6499 fi | |
6500 | |
6501 if test "x$ac_ct_LIPO" = x; then | |
6502 LIPO=":" | |
6503 else | |
6504 case $cross_compiling:$ac_tool_warned in | |
6505 yes:) | |
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6508 ac_tool_warned=yes ;; | |
6509 esac | |
6510 LIPO=$ac_ct_LIPO | |
6511 fi | |
6512 else | |
6513 LIPO="$ac_cv_prog_LIPO" | |
6514 fi | |
6515 | |
6516 if test -n "$ac_tool_prefix"; then | |
6517 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6518 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6520 $as_echo_n "checking for $ac_word... " >&6; } | |
6521 if ${ac_cv_prog_OTOOL+:} false; then : | |
6522 $as_echo_n "(cached) " >&6 | |
6523 else | |
6524 if test -n "$OTOOL"; then | |
6525 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6526 else | |
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6528 for as_dir in $PATH | |
6529 do | |
6530 IFS=$as_save_IFS | |
6531 test -z "$as_dir" && as_dir=. | |
6532 for ac_exec_ext in '' $ac_executable_extensions; do | |
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6534 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6536 break 2 | |
6537 fi | |
6538 done | |
6539 done | |
6540 IFS=$as_save_IFS | |
6541 | |
6542 fi | |
6543 fi | |
6544 OTOOL=$ac_cv_prog_OTOOL | |
6545 if test -n "$OTOOL"; then | |
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
6547 $as_echo "$OTOOL" >&6; } | |
6548 else | |
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6550 $as_echo "no" >&6; } | |
6551 fi | |
6552 | |
6553 | |
6554 fi | |
6555 if test -z "$ac_cv_prog_OTOOL"; then | |
6556 ac_ct_OTOOL=$OTOOL | |
6557 # Extract the first word of "otool", so it can be a program name with args. | |
6558 set dummy otool; ac_word=$2 | |
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6560 $as_echo_n "checking for $ac_word... " >&6; } | |
6561 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
6562 $as_echo_n "(cached) " >&6 | |
6563 else | |
6564 if test -n "$ac_ct_OTOOL"; then | |
6565 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6566 else | |
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6568 for as_dir in $PATH | |
6569 do | |
6570 IFS=$as_save_IFS | |
6571 test -z "$as_dir" && as_dir=. | |
6572 for ac_exec_ext in '' $ac_executable_extensions; do | |
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6574 ac_cv_prog_ac_ct_OTOOL="otool" | |
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6576 break 2 | |
6577 fi | |
6578 done | |
6579 done | |
6580 IFS=$as_save_IFS | |
6581 | |
6582 fi | |
6583 fi | |
6584 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6585 if test -n "$ac_ct_OTOOL"; then | |
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
6587 $as_echo "$ac_ct_OTOOL" >&6; } | |
6588 else | |
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6590 $as_echo "no" >&6; } | |
6591 fi | |
6592 | |
6593 if test "x$ac_ct_OTOOL" = x; then | |
6594 OTOOL=":" | |
6595 else | |
6596 case $cross_compiling:$ac_tool_warned in | |
6597 yes:) | |
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6600 ac_tool_warned=yes ;; | |
6601 esac | |
6602 OTOOL=$ac_ct_OTOOL | |
6603 fi | |
6604 else | |
6605 OTOOL="$ac_cv_prog_OTOOL" | |
6606 fi | |
6607 | |
6608 if test -n "$ac_tool_prefix"; then | |
6609 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6610 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6612 $as_echo_n "checking for $ac_word... " >&6; } | |
6613 if ${ac_cv_prog_OTOOL64+:} false; then : | |
6614 $as_echo_n "(cached) " >&6 | |
6615 else | |
6616 if test -n "$OTOOL64"; then | |
6617 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6618 else | |
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6620 for as_dir in $PATH | |
6621 do | |
6622 IFS=$as_save_IFS | |
6623 test -z "$as_dir" && as_dir=. | |
6624 for ac_exec_ext in '' $ac_executable_extensions; do | |
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6626 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6628 break 2 | |
6629 fi | |
6630 done | |
6631 done | |
6632 IFS=$as_save_IFS | |
6633 | |
6634 fi | |
6635 fi | |
6636 OTOOL64=$ac_cv_prog_OTOOL64 | |
6637 if test -n "$OTOOL64"; then | |
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
6639 $as_echo "$OTOOL64" >&6; } | |
6640 else | |
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6642 $as_echo "no" >&6; } | |
6643 fi | |
6644 | |
6645 | |
6646 fi | |
6647 if test -z "$ac_cv_prog_OTOOL64"; then | |
6648 ac_ct_OTOOL64=$OTOOL64 | |
6649 # Extract the first word of "otool64", so it can be a program name with args. | |
6650 set dummy otool64; ac_word=$2 | |
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6652 $as_echo_n "checking for $ac_word... " >&6; } | |
6653 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
6654 $as_echo_n "(cached) " >&6 | |
6655 else | |
6656 if test -n "$ac_ct_OTOOL64"; then | |
6657 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6658 else | |
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6660 for as_dir in $PATH | |
6661 do | |
6662 IFS=$as_save_IFS | |
6663 test -z "$as_dir" && as_dir=. | |
6664 for ac_exec_ext in '' $ac_executable_extensions; do | |
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6666 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6668 break 2 | |
6669 fi | |
6670 done | |
6671 done | |
6672 IFS=$as_save_IFS | |
6673 | |
6674 fi | |
6675 fi | |
6676 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6677 if test -n "$ac_ct_OTOOL64"; then | |
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
6679 $as_echo "$ac_ct_OTOOL64" >&6; } | |
6680 else | |
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6682 $as_echo "no" >&6; } | |
6683 fi | |
6684 | |
6685 if test "x$ac_ct_OTOOL64" = x; then | |
6686 OTOOL64=":" | |
6687 else | |
6688 case $cross_compiling:$ac_tool_warned in | |
6689 yes:) | |
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6692 ac_tool_warned=yes ;; | |
6693 esac | |
6694 OTOOL64=$ac_ct_OTOOL64 | |
6695 fi | |
6696 else | |
6697 OTOOL64="$ac_cv_prog_OTOOL64" | |
6698 fi | |
6699 | |
6700 | |
6701 | |
6702 | |
6703 | |
6704 | |
6705 | |
6706 | |
6707 | |
6708 | |
6709 | |
6710 | |
6711 | |
6712 | |
6713 | |
6714 | |
6715 | |
6716 | |
6717 | |
6718 | |
6719 | |
6720 | |
6721 | |
6722 | |
6723 | |
6724 | |
6725 | |
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
6727 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6728 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
6729 $as_echo_n "(cached) " >&6 | |
6730 else | |
6731 lt_cv_apple_cc_single_mod=no | |
6732 if test -z "${LT_MULTI_MODULE}"; then | |
6733 # By default we will add the -single_module flag. You can override | |
6734 # by either setting the environment variable LT_MULTI_MODULE | |
6735 # non-empty at configure time, or by adding -multi_module to the | |
6736 # link flags. | |
6737 rm -rf libconftest.dylib* | |
6738 echo "int foo(void){return 1;}" > conftest.c | |
6739 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6740 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6741 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6742 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6743 _lt_result=$? | |
6744 # If there is a non-empty error log, and "single_module" | |
6745 # appears in it, assume the flag caused a linker warning | |
6746 if test -s conftest.err && $GREP single_module conftest.err; then | |
6747 cat conftest.err >&5 | |
6748 # Otherwise, if the output was created with a 0 exit code from | |
6749 # the compiler, it worked. | |
6750 elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
6751 lt_cv_apple_cc_single_mod=yes | |
6752 else | |
6753 cat conftest.err >&5 | |
6754 fi | |
6755 rm -rf libconftest.dylib* | |
6756 rm -f conftest.* | |
6757 fi | |
6758 fi | |
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
6760 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6761 | |
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
6763 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6764 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
6765 $as_echo_n "(cached) " >&6 | |
6766 else | |
6767 lt_cv_ld_exported_symbols_list=no | |
6768 save_LDFLAGS=$LDFLAGS | |
6769 echo "_main" > conftest.sym | |
6770 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6772 /* end confdefs.h. */ | |
6773 | |
6774 int | |
6775 main () | |
6776 { | |
6777 | |
6778 ; | |
6779 return 0; | |
6780 } | |
6781 _ACEOF | |
6782 if ac_fn_c_try_link "$LINENO"; then : | |
6783 lt_cv_ld_exported_symbols_list=yes | |
6784 else | |
6785 lt_cv_ld_exported_symbols_list=no | |
6786 fi | |
6787 rm -f core conftest.err conftest.$ac_objext \ | |
6788 conftest$ac_exeext conftest.$ac_ext | |
6789 LDFLAGS="$save_LDFLAGS" | |
6790 | |
6791 fi | |
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6793 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6794 | |
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
6796 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
6797 if ${lt_cv_ld_force_load+:} false; then : | |
6798 $as_echo_n "(cached) " >&6 | |
6799 else | |
6800 lt_cv_ld_force_load=no | |
6801 cat > conftest.c << _LT_EOF | |
6802 int forced_loaded() { return 2;} | |
6803 _LT_EOF | |
6804 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
6805 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
6806 echo "$AR cru libconftest.a conftest.o" >&5 | |
6807 $AR cru libconftest.a conftest.o 2>&5 | |
6808 echo "$RANLIB libconftest.a" >&5 | |
6809 $RANLIB libconftest.a 2>&5 | |
6810 cat > conftest.c << _LT_EOF | |
6811 int main() { return 0;} | |
6812 _LT_EOF | |
6813 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
6814 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
6815 _lt_result=$? | |
6816 if test -s conftest.err && $GREP force_load conftest.err; then | |
6817 cat conftest.err >&5 | |
6818 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
6819 lt_cv_ld_force_load=yes | |
6820 else | |
6821 cat conftest.err >&5 | |
6822 fi | |
6823 rm -f conftest.err libconftest.a conftest conftest.c | |
6824 rm -rf conftest.dSYM | |
6825 | |
6826 fi | |
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
6828 $as_echo "$lt_cv_ld_force_load" >&6; } | |
6829 case $host_os in | |
6830 rhapsody* | darwin1.[012]) | |
6831 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6832 darwin1.*) | |
6833 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6834 darwin*) # darwin 5.x on | |
6835 # if running on 10.5 or later, the deployment target defaults | |
6836 # to the OS version, if on x86, and 10.4, the deployment | |
6837 # target defaults to 10.4. Don't you love it? | |
6838 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6839 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6840 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6841 10.[012]*) | |
6842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6843 10.*) | |
6844 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6845 esac | |
6846 ;; | |
6847 esac | |
6848 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6849 _lt_dar_single_mod='$single_module' | |
6850 fi | |
6851 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6852 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6853 else | |
6854 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6855 fi | |
6856 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
6857 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6858 else | |
6859 _lt_dsymutil= | |
6860 fi | |
6861 ;; | |
6862 esac | |
6863 | |
6864 ac_ext=c | |
6865 ac_cpp='$CPP $CPPFLAGS' | |
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6870 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6871 # On Suns, sometimes $CPP names a directory. | |
6872 if test -n "$CPP" && test -d "$CPP"; then | |
6873 CPP= | |
6874 fi | |
6875 if test -z "$CPP"; then | |
6876 if ${ac_cv_prog_CPP+:} false; then : | |
6877 $as_echo_n "(cached) " >&6 | |
6878 else | |
6879 # Double quotes because CPP needs to be expanded | |
6880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6881 do | |
6882 ac_preproc_ok=false | |
6883 for ac_c_preproc_warn_flag in '' yes | |
6884 do | |
6885 # Use a header file that comes with gcc, so configuring glibc | |
6886 # with a fresh cross-compiler works. | |
6887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6888 # <limits.h> exists even on freestanding compilers. | |
6889 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6890 # not just through cpp. "Syntax error" is here to catch this case. | |
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6892 /* end confdefs.h. */ | |
6893 #ifdef __STDC__ | |
6894 # include <limits.h> | |
6895 #else | |
6896 # include <assert.h> | |
6897 #endif | |
6898 Syntax error | |
6899 _ACEOF | |
6900 if ac_fn_c_try_cpp "$LINENO"; then : | |
6901 | |
6902 else | |
6903 # Broken: fails on valid input. | |
6904 continue | |
6905 fi | |
6906 rm -f conftest.err conftest.i conftest.$ac_ext | |
6907 | |
6908 # OK, works on sane cases. Now check whether nonexistent headers | |
6909 # can be detected and how. | |
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6911 /* end confdefs.h. */ | |
6912 #include <ac_nonexistent.h> | |
6913 _ACEOF | |
6914 if ac_fn_c_try_cpp "$LINENO"; then : | |
6915 # Broken: success on invalid input. | |
6916 continue | |
6917 else | |
6918 # Passes both tests. | |
6919 ac_preproc_ok=: | |
6920 break | |
6921 fi | |
6922 rm -f conftest.err conftest.i conftest.$ac_ext | |
6923 | |
6924 done | |
6925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6926 rm -f conftest.i conftest.err conftest.$ac_ext | |
6927 if $ac_preproc_ok; then : | |
6928 break | |
6929 fi | |
6930 | |
6931 done | |
6932 ac_cv_prog_CPP=$CPP | |
6933 | |
6934 fi | |
6935 CPP=$ac_cv_prog_CPP | |
6936 else | |
6937 ac_cv_prog_CPP=$CPP | |
6938 fi | |
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6940 $as_echo "$CPP" >&6; } | |
6941 ac_preproc_ok=false | |
6942 for ac_c_preproc_warn_flag in '' yes | |
6943 do | |
6944 # Use a header file that comes with gcc, so configuring glibc | |
6945 # with a fresh cross-compiler works. | |
6946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6947 # <limits.h> exists even on freestanding compilers. | |
6948 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6949 # not just through cpp. "Syntax error" is here to catch this case. | |
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6951 /* end confdefs.h. */ | |
6952 #ifdef __STDC__ | |
6953 # include <limits.h> | |
6954 #else | |
6955 # include <assert.h> | |
6956 #endif | |
6957 Syntax error | |
6958 _ACEOF | |
6959 if ac_fn_c_try_cpp "$LINENO"; then : | |
6960 | |
6961 else | |
6962 # Broken: fails on valid input. | |
6963 continue | |
6964 fi | |
6965 rm -f conftest.err conftest.i conftest.$ac_ext | |
6966 | |
6967 # OK, works on sane cases. Now check whether nonexistent headers | |
6968 # can be detected and how. | |
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6970 /* end confdefs.h. */ | |
6971 #include <ac_nonexistent.h> | |
6972 _ACEOF | |
6973 if ac_fn_c_try_cpp "$LINENO"; then : | |
6974 # Broken: success on invalid input. | |
6975 continue | |
6976 else | |
6977 # Passes both tests. | |
6978 ac_preproc_ok=: | |
6979 break | |
6980 fi | |
6981 rm -f conftest.err conftest.i conftest.$ac_ext | |
6982 | |
6983 done | |
6984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6985 rm -f conftest.i conftest.err conftest.$ac_ext | |
6986 if $ac_preproc_ok; then : | |
6987 | |
6988 else | |
6989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6991 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
6992 See \`config.log' for more details" "$LINENO" 5; } | |
6993 fi | |
6994 | |
6995 ac_ext=c | |
6996 ac_cpp='$CPP $CPPFLAGS' | |
6997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6999 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7000 | |
7001 | |
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7003 $as_echo_n "checking for ANSI C header files... " >&6; } | |
7004 if ${ac_cv_header_stdc+:} false; then : | |
7005 $as_echo_n "(cached) " >&6 | |
7006 else | |
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7008 /* end confdefs.h. */ | |
7009 #include <stdlib.h> | |
7010 #include <stdarg.h> | |
7011 #include <string.h> | |
7012 #include <float.h> | |
7013 | |
7014 int | |
7015 main () | |
7016 { | |
7017 | |
7018 ; | |
7019 return 0; | |
7020 } | |
7021 _ACEOF | |
7022 if ac_fn_c_try_compile "$LINENO"; then : | |
7023 ac_cv_header_stdc=yes | |
7024 else | |
7025 ac_cv_header_stdc=no | |
7026 fi | |
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7028 | |
7029 if test $ac_cv_header_stdc = yes; then | |
7030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7032 /* end confdefs.h. */ | |
7033 #include <string.h> | |
7034 | |
7035 _ACEOF | |
7036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7037 $EGREP "memchr" >/dev/null 2>&1; then : | |
7038 | |
7039 else | |
7040 ac_cv_header_stdc=no | |
7041 fi | |
7042 rm -f conftest* | |
7043 | |
7044 fi | |
7045 | |
7046 if test $ac_cv_header_stdc = yes; then | |
7047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7049 /* end confdefs.h. */ | |
7050 #include <stdlib.h> | |
7051 | |
7052 _ACEOF | |
7053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7054 $EGREP "free" >/dev/null 2>&1; then : | |
7055 | |
7056 else | |
7057 ac_cv_header_stdc=no | |
7058 fi | |
7059 rm -f conftest* | |
7060 | |
7061 fi | |
7062 | |
7063 if test $ac_cv_header_stdc = yes; then | |
7064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7065 if test "$cross_compiling" = yes; then : | |
7066 : | |
7067 else | |
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7069 /* end confdefs.h. */ | |
7070 #include <ctype.h> | |
7071 #include <stdlib.h> | |
7072 #if ((' ' & 0x0FF) == 0x020) | |
7073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7075 #else | |
7076 # define ISLOWER(c) \ | |
7077 (('a' <= (c) && (c) <= 'i') \ | |
7078 || ('j' <= (c) && (c) <= 'r') \ | |
7079 || ('s' <= (c) && (c) <= 'z')) | |
7080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7081 #endif | |
7082 | |
7083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7084 int | |
7085 main () | |
7086 { | |
7087 int i; | |
7088 for (i = 0; i < 256; i++) | |
7089 if (XOR (islower (i), ISLOWER (i)) | |
7090 || toupper (i) != TOUPPER (i)) | |
7091 return 2; | |
7092 return 0; | |
7093 } | |
7094 _ACEOF | |
7095 if ac_fn_c_try_run "$LINENO"; then : | |
7096 | |
7097 else | |
7098 ac_cv_header_stdc=no | |
7099 fi | |
7100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7101 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7102 fi | |
7103 | |
7104 fi | |
7105 fi | |
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7107 $as_echo "$ac_cv_header_stdc" >&6; } | |
7108 if test $ac_cv_header_stdc = yes; then | |
7109 | |
7110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7111 | |
7112 fi | |
7113 | |
7114 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7116 inttypes.h stdint.h unistd.h | |
7117 do : | |
7118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7120 " | |
7121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7122 cat >>confdefs.h <<_ACEOF | |
7123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7124 _ACEOF | |
7125 | |
7126 fi | |
7127 | |
7128 done | |
7129 | |
7130 | |
7131 for ac_header in dlfcn.h | |
7132 do : | |
7133 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7134 " | |
7135 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
7136 cat >>confdefs.h <<_ACEOF | |
7137 #define HAVE_DLFCN_H 1 | |
7138 _ACEOF | |
7139 | |
7140 fi | |
7141 | |
7142 done | |
7143 | |
7144 | |
7145 | |
7146 | |
7147 | |
7148 # Set options | |
7149 | |
7150 | |
7151 | |
7152 enable_dlopen=no | |
7153 | |
7154 | |
7155 enable_win32_dll=no | |
7156 | |
7157 | |
7158 # Check whether --enable-shared was given. | |
7159 if test "${enable_shared+set}" = set; then : | |
7160 enableval=$enable_shared; p=${PACKAGE-default} | |
7161 case $enableval in | |
7162 yes) enable_shared=yes ;; | |
7163 no) enable_shared=no ;; | |
7164 *) | |
7165 enable_shared=no | |
7166 # Look at the argument we got. We use all the common list separators. | |
7167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7168 for pkg in $enableval; do | |
7169 IFS="$lt_save_ifs" | |
7170 if test "X$pkg" = "X$p"; then | |
7171 enable_shared=yes | |
7172 fi | |
7173 done | |
7174 IFS="$lt_save_ifs" | |
7175 ;; | |
7176 esac | |
7177 else | |
7178 enable_shared=yes | |
7179 fi | |
7180 | |
7181 | |
7182 | |
7183 | |
7184 | |
7185 | |
7186 | |
7187 | |
7188 | |
7189 # Check whether --enable-static was given. | |
7190 if test "${enable_static+set}" = set; then : | |
7191 enableval=$enable_static; p=${PACKAGE-default} | |
7192 case $enableval in | |
7193 yes) enable_static=yes ;; | |
7194 no) enable_static=no ;; | |
7195 *) | |
7196 enable_static=no | |
7197 # Look at the argument we got. We use all the common list separators. | |
7198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7199 for pkg in $enableval; do | |
7200 IFS="$lt_save_ifs" | |
7201 if test "X$pkg" = "X$p"; then | |
7202 enable_static=yes | |
7203 fi | |
7204 done | |
7205 IFS="$lt_save_ifs" | |
7206 ;; | |
7207 esac | |
7208 else | |
7209 enable_static=yes | |
7210 fi | |
7211 | |
7212 | |
7213 | |
7214 | |
7215 | |
7216 | |
7217 | |
7218 | |
7219 | |
7220 | |
7221 # Check whether --with-pic was given. | |
7222 if test "${with_pic+set}" = set; then : | |
7223 withval=$with_pic; lt_p=${PACKAGE-default} | |
7224 case $withval in | |
7225 yes|no) pic_mode=$withval ;; | |
7226 *) | |
7227 pic_mode=default | |
7228 # Look at the argument we got. We use all the common list separators. | |
7229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7230 for lt_pkg in $withval; do | |
7231 IFS="$lt_save_ifs" | |
7232 if test "X$lt_pkg" = "X$lt_p"; then | |
7233 pic_mode=yes | |
7234 fi | |
7235 done | |
7236 IFS="$lt_save_ifs" | |
7237 ;; | |
7238 esac | |
7239 else | |
7240 pic_mode=default | |
7241 fi | |
7242 | |
7243 | |
7244 test -z "$pic_mode" && pic_mode=default | |
7245 | |
7246 | |
7247 | |
7248 | |
7249 | |
7250 | |
7251 | |
7252 # Check whether --enable-fast-install was given. | |
7253 if test "${enable_fast_install+set}" = set; then : | |
7254 enableval=$enable_fast_install; p=${PACKAGE-default} | |
7255 case $enableval in | |
7256 yes) enable_fast_install=yes ;; | |
7257 no) enable_fast_install=no ;; | |
7258 *) | |
7259 enable_fast_install=no | |
7260 # Look at the argument we got. We use all the common list separators. | |
7261 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7262 for pkg in $enableval; do | |
7263 IFS="$lt_save_ifs" | |
7264 if test "X$pkg" = "X$p"; then | |
7265 enable_fast_install=yes | |
7266 fi | |
7267 done | |
7268 IFS="$lt_save_ifs" | |
7269 ;; | |
7270 esac | |
7271 else | |
7272 enable_fast_install=yes | |
7273 fi | |
7274 | |
7275 | |
7276 | |
7277 | |
7278 | |
7279 | |
7280 | |
7281 | |
7282 | |
7283 | |
7284 | |
7285 # This can be used to rebuild libtool when needed | |
7286 LIBTOOL_DEPS="$ltmain" | |
7287 | |
7288 # Always use our own libtool. | |
7289 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7290 | |
7291 | |
7292 | |
7293 | |
7294 | |
7295 | |
7296 | |
7297 | |
7298 | |
7299 | |
7300 | |
7301 | |
7302 | |
7303 | |
7304 | |
7305 | |
7306 | |
7307 | |
7308 | |
7309 | |
7310 | |
7311 | |
7312 | |
7313 | |
7314 | |
7315 | |
7316 | |
7317 | |
7318 | |
7319 | |
7320 test -z "$LN_S" && LN_S="ln -s" | |
7321 | |
7322 | |
7323 | |
7324 | |
7325 | |
7326 | |
7327 | |
7328 | |
7329 | |
7330 | |
7331 | |
7332 | |
7333 | |
7334 | |
7335 if test -n "${ZSH_VERSION+set}" ; then | |
7336 setopt NO_GLOB_SUBST | |
7337 fi | |
7338 | |
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7340 $as_echo_n "checking for objdir... " >&6; } | |
7341 if ${lt_cv_objdir+:} false; then : | |
7342 $as_echo_n "(cached) " >&6 | |
7343 else | |
7344 rm -f .libs 2>/dev/null | |
7345 mkdir .libs 2>/dev/null | |
7346 if test -d .libs; then | |
7347 lt_cv_objdir=.libs | |
7348 else | |
7349 # MS-DOS does not allow filenames that begin with a dot. | |
7350 lt_cv_objdir=_libs | |
7351 fi | |
7352 rmdir .libs 2>/dev/null | |
7353 fi | |
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7355 $as_echo "$lt_cv_objdir" >&6; } | |
7356 objdir=$lt_cv_objdir | |
7357 | |
7358 | |
7359 | |
7360 | |
7361 | |
7362 cat >>confdefs.h <<_ACEOF | |
7363 #define LT_OBJDIR "$lt_cv_objdir/" | |
7364 _ACEOF | |
7365 | |
7366 | |
7367 | |
7368 | |
7369 case $host_os in | |
7370 aix3*) | |
7371 # AIX sometimes has problems with the GCC collect2 program. For some | |
7372 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7373 # vanish in a puff of smoke. | |
7374 if test "X${COLLECT_NAMES+set}" != Xset; then | |
7375 COLLECT_NAMES= | |
7376 export COLLECT_NAMES | |
7377 fi | |
7378 ;; | |
7379 esac | |
7380 | |
7381 # Global variables: | |
7382 ofile=libtool | |
7383 can_build_shared=yes | |
7384 | |
7385 # All known linkers require a `.a' archive for static linking (except MSVC, | |
7386 # which needs '.lib'). | |
7387 libext=a | |
7388 | |
7389 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7390 | |
7391 old_CC="$CC" | |
7392 old_CFLAGS="$CFLAGS" | |
7393 | |
7394 # Set sane defaults for various variables | |
7395 test -z "$CC" && CC=cc | |
7396 test -z "$LTCC" && LTCC=$CC | |
7397 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7398 test -z "$LD" && LD=ld | |
7399 test -z "$ac_objext" && ac_objext=o | |
7400 | |
7401 for cc_temp in $compiler""; do | |
7402 case $cc_temp in | |
7403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7405 \-*) ;; | |
7406 *) break;; | |
7407 esac | |
7408 done | |
7409 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7410 | |
7411 | |
7412 # Only perform the check for file, if the check method requires it | |
7413 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7414 case $deplibs_check_method in | |
7415 file_magic*) | |
7416 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7418 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7419 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7420 $as_echo_n "(cached) " >&6 | |
7421 else | |
7422 case $MAGIC_CMD in | |
7423 [\\/*] | ?:[\\/]*) | |
7424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7425 ;; | |
7426 *) | |
7427 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7430 for ac_dir in $ac_dummy; do | |
7431 IFS="$lt_save_ifs" | |
7432 test -z "$ac_dir" && ac_dir=. | |
7433 if test -f $ac_dir/${ac_tool_prefix}file; then | |
7434 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7435 if test -n "$file_magic_test_file"; then | |
7436 case $deplibs_check_method in | |
7437 "file_magic "*) | |
7438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7441 $EGREP "$file_magic_regex" > /dev/null; then | |
7442 : | |
7443 else | |
7444 cat <<_LT_EOF 1>&2 | |
7445 | |
7446 *** Warning: the command libtool uses to detect shared libraries, | |
7447 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7448 *** The result is that libtool may fail to recognize shared libraries | |
7449 *** as such. This will affect the creation of libtool libraries that | |
7450 *** depend on shared libraries, but programs linked with such libtool | |
7451 *** libraries will work regardless of this problem. Nevertheless, you | |
7452 *** may want to report the problem to your system manager and/or to | |
7453 *** bug-libtool@gnu.org | |
7454 | |
7455 _LT_EOF | |
7456 fi ;; | |
7457 esac | |
7458 fi | |
7459 break | |
7460 fi | |
7461 done | |
7462 IFS="$lt_save_ifs" | |
7463 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7464 ;; | |
7465 esac | |
7466 fi | |
7467 | |
7468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7469 if test -n "$MAGIC_CMD"; then | |
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7471 $as_echo "$MAGIC_CMD" >&6; } | |
7472 else | |
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7474 $as_echo "no" >&6; } | |
7475 fi | |
7476 | |
7477 | |
7478 | |
7479 | |
7480 | |
7481 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7482 if test -n "$ac_tool_prefix"; then | |
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
7484 $as_echo_n "checking for file... " >&6; } | |
7485 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7486 $as_echo_n "(cached) " >&6 | |
7487 else | |
7488 case $MAGIC_CMD in | |
7489 [\\/*] | ?:[\\/]*) | |
7490 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7491 ;; | |
7492 *) | |
7493 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7495 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7496 for ac_dir in $ac_dummy; do | |
7497 IFS="$lt_save_ifs" | |
7498 test -z "$ac_dir" && ac_dir=. | |
7499 if test -f $ac_dir/file; then | |
7500 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7501 if test -n "$file_magic_test_file"; then | |
7502 case $deplibs_check_method in | |
7503 "file_magic "*) | |
7504 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7507 $EGREP "$file_magic_regex" > /dev/null; then | |
7508 : | |
7509 else | |
7510 cat <<_LT_EOF 1>&2 | |
7511 | |
7512 *** Warning: the command libtool uses to detect shared libraries, | |
7513 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7514 *** The result is that libtool may fail to recognize shared libraries | |
7515 *** as such. This will affect the creation of libtool libraries that | |
7516 *** depend on shared libraries, but programs linked with such libtool | |
7517 *** libraries will work regardless of this problem. Nevertheless, you | |
7518 *** may want to report the problem to your system manager and/or to | |
7519 *** bug-libtool@gnu.org | |
7520 | |
7521 _LT_EOF | |
7522 fi ;; | |
7523 esac | |
7524 fi | |
7525 break | |
7526 fi | |
7527 done | |
7528 IFS="$lt_save_ifs" | |
7529 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7530 ;; | |
7531 esac | |
7532 fi | |
7533 | |
7534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7535 if test -n "$MAGIC_CMD"; then | |
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7537 $as_echo "$MAGIC_CMD" >&6; } | |
7538 else | |
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7540 $as_echo "no" >&6; } | |
7541 fi | |
7542 | |
7543 | |
7544 else | |
7545 MAGIC_CMD=: | |
7546 fi | |
7547 fi | |
7548 | |
7549 fi | |
7550 ;; | |
7551 esac | |
7552 | |
7553 # Use C for the default configuration in the libtool script | |
7554 | |
7555 lt_save_CC="$CC" | |
7556 ac_ext=c | |
7557 ac_cpp='$CPP $CPPFLAGS' | |
7558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7560 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7561 | |
7562 | |
7563 # Source file extension for C test sources. | |
7564 ac_ext=c | |
7565 | |
7566 # Object file extension for compiled C test sources. | |
7567 objext=o | |
7568 objext=$objext | |
7569 | |
7570 # Code to be used in simple compile tests | |
7571 lt_simple_compile_test_code="int some_variable = 0;" | |
7572 | |
7573 # Code to be used in simple link tests | |
7574 lt_simple_link_test_code='int main(){return(0);}' | |
7575 | |
7576 | |
7577 | |
7578 | |
7579 | |
7580 | |
7581 | |
7582 # If no C compiler was specified, use CC. | |
7583 LTCC=${LTCC-"$CC"} | |
7584 | |
7585 # If no C compiler flags were specified, use CFLAGS. | |
7586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7587 | |
7588 # Allow CC to be a program name with arguments. | |
7589 compiler=$CC | |
7590 | |
7591 # Save the default compiler, since it gets overwritten when the other | |
7592 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7593 compiler_DEFAULT=$CC | |
7594 | |
7595 # save warnings/boilerplate of simple test code | |
7596 ac_outfile=conftest.$ac_objext | |
7597 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7598 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7599 _lt_compiler_boilerplate=`cat conftest.err` | |
7600 $RM conftest* | |
7601 | |
7602 ac_outfile=conftest.$ac_objext | |
7603 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7604 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7605 _lt_linker_boilerplate=`cat conftest.err` | |
7606 $RM -r conftest* | |
7607 | |
7608 | |
7609 ## CAVEAT EMPTOR: | |
7610 ## There is no encapsulation within the following macros, do not change | |
7611 ## the running order or otherwise move them around unless you know exactly | |
7612 ## what you are doing... | |
7613 if test -n "$compiler"; then | |
7614 | |
7615 lt_prog_compiler_no_builtin_flag= | |
7616 | |
7617 if test "$GCC" = yes; then | |
7618 case $cc_basename in | |
7619 nvcc*) | |
7620 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
7621 *) | |
7622 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
7623 esac | |
7624 | |
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7626 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7627 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
7628 $as_echo_n "(cached) " >&6 | |
7629 else | |
7630 lt_cv_prog_compiler_rtti_exceptions=no | |
7631 ac_outfile=conftest.$ac_objext | |
7632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7633 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7634 # Insert the option either (1) after the last *FLAGS variable, or | |
7635 # (2) before a word containing "conftest.", or (3) at the end. | |
7636 # Note that $ac_compile itself does not contain backslashes and begins | |
7637 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7638 # The option is referenced via a variable to avoid confusing sed. | |
7639 lt_compile=`echo "$ac_compile" | $SED \ | |
7640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7642 -e 's:$: $lt_compiler_flag:'` | |
7643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
7644 (eval "$lt_compile" 2>conftest.err) | |
7645 ac_status=$? | |
7646 cat conftest.err >&5 | |
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7648 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7649 # The compiler can only warn and ignore the option if not recognized | |
7650 # So say no if there are warnings other than the usual output. | |
7651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
7652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7654 lt_cv_prog_compiler_rtti_exceptions=yes | |
7655 fi | |
7656 fi | |
7657 $RM conftest* | |
7658 | |
7659 fi | |
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7661 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7662 | |
7663 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7665 else | |
7666 : | |
7667 fi | |
7668 | |
7669 fi | |
7670 | |
7671 | |
7672 | |
7673 | |
7674 | |
7675 | |
7676 lt_prog_compiler_wl= | |
7677 lt_prog_compiler_pic= | |
7678 lt_prog_compiler_static= | |
7679 | |
7680 | |
7681 if test "$GCC" = yes; then | |
7682 lt_prog_compiler_wl='-Wl,' | |
7683 lt_prog_compiler_static='-static' | |
7684 | |
7685 case $host_os in | |
7686 aix*) | |
7687 # All AIX code is PIC. | |
7688 if test "$host_cpu" = ia64; then | |
7689 # AIX 5 now supports IA64 processor | |
7690 lt_prog_compiler_static='-Bstatic' | |
7691 fi | |
7692 ;; | |
7693 | |
7694 amigaos*) | |
7695 case $host_cpu in | |
7696 powerpc) | |
7697 # see comment about AmigaOS4 .so support | |
7698 lt_prog_compiler_pic='-fPIC' | |
7699 ;; | |
7700 m68k) | |
7701 # FIXME: we need at least 68020 code to build shared libraries, but | |
7702 # adding the `-m68020' flag to GCC prevents building anything better, | |
7703 # like `-m68040'. | |
7704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7705 ;; | |
7706 esac | |
7707 ;; | |
7708 | |
7709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7710 # PIC is the default for these OSes. | |
7711 ;; | |
7712 | |
7713 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7714 # This hack is so that the source file can tell whether it is being | |
7715 # built for inclusion in a dll (and should export symbols for example). | |
7716 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7717 # (--disable-auto-import) libraries | |
7718 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7719 ;; | |
7720 | |
7721 darwin* | rhapsody*) | |
7722 # PIC is the default on this platform | |
7723 # Common symbols not allowed in MH_DYLIB files | |
7724 lt_prog_compiler_pic='-fno-common' | |
7725 ;; | |
7726 | |
7727 haiku*) | |
7728 # PIC is the default for Haiku. | |
7729 # The "-static" flag exists, but is broken. | |
7730 lt_prog_compiler_static= | |
7731 ;; | |
7732 | |
7733 hpux*) | |
7734 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7735 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7736 # sets the default TLS model and affects inlining. | |
7737 case $host_cpu in | |
7738 hppa*64*) | |
7739 # +Z the default | |
7740 ;; | |
7741 *) | |
7742 lt_prog_compiler_pic='-fPIC' | |
7743 ;; | |
7744 esac | |
7745 ;; | |
7746 | |
7747 interix[3-9]*) | |
7748 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7749 # Instead, we relocate shared libraries at runtime. | |
7750 ;; | |
7751 | |
7752 msdosdjgpp*) | |
7753 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7754 # on systems that don't support them. | |
7755 lt_prog_compiler_can_build_shared=no | |
7756 enable_shared=no | |
7757 ;; | |
7758 | |
7759 *nto* | *qnx*) | |
7760 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7761 # it will coredump. | |
7762 lt_prog_compiler_pic='-fPIC -shared' | |
7763 ;; | |
7764 | |
7765 sysv4*MP*) | |
7766 if test -d /usr/nec; then | |
7767 lt_prog_compiler_pic=-Kconform_pic | |
7768 fi | |
7769 ;; | |
7770 | |
7771 *) | |
7772 lt_prog_compiler_pic='-fPIC' | |
7773 ;; | |
7774 esac | |
7775 | |
7776 case $cc_basename in | |
7777 nvcc*) # Cuda Compiler Driver 2.2 | |
7778 lt_prog_compiler_wl='-Xlinker ' | |
7779 if test -n "$lt_prog_compiler_pic"; then | |
7780 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
7781 fi | |
7782 ;; | |
7783 esac | |
7784 else | |
7785 # PORTME Check for flag to pass linker flags through the system compiler. | |
7786 case $host_os in | |
7787 aix*) | |
7788 lt_prog_compiler_wl='-Wl,' | |
7789 if test "$host_cpu" = ia64; then | |
7790 # AIX 5 now supports IA64 processor | |
7791 lt_prog_compiler_static='-Bstatic' | |
7792 else | |
7793 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7794 fi | |
7795 ;; | |
7796 | |
7797 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7798 # This hack is so that the source file can tell whether it is being | |
7799 # built for inclusion in a dll (and should export symbols for example). | |
7800 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7801 ;; | |
7802 | |
7803 hpux9* | hpux10* | hpux11*) | |
7804 lt_prog_compiler_wl='-Wl,' | |
7805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7806 # not for PA HP-UX. | |
7807 case $host_cpu in | |
7808 hppa*64*|ia64*) | |
7809 # +Z the default | |
7810 ;; | |
7811 *) | |
7812 lt_prog_compiler_pic='+Z' | |
7813 ;; | |
7814 esac | |
7815 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7816 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7817 ;; | |
7818 | |
7819 irix5* | irix6* | nonstopux*) | |
7820 lt_prog_compiler_wl='-Wl,' | |
7821 # PIC (with -KPIC) is the default. | |
7822 lt_prog_compiler_static='-non_shared' | |
7823 ;; | |
7824 | |
7825 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
7826 case $cc_basename in | |
7827 # old Intel for x86_64 which still supported -KPIC. | |
7828 ecc*) | |
7829 lt_prog_compiler_wl='-Wl,' | |
7830 lt_prog_compiler_pic='-KPIC' | |
7831 lt_prog_compiler_static='-static' | |
7832 ;; | |
7833 # icc used to be incompatible with GCC. | |
7834 # ICC 10 doesn't accept -KPIC any more. | |
7835 icc* | ifort*) | |
7836 lt_prog_compiler_wl='-Wl,' | |
7837 lt_prog_compiler_pic='-fPIC' | |
7838 lt_prog_compiler_static='-static' | |
7839 ;; | |
7840 # Lahey Fortran 8.1. | |
7841 lf95*) | |
7842 lt_prog_compiler_wl='-Wl,' | |
7843 lt_prog_compiler_pic='--shared' | |
7844 lt_prog_compiler_static='--static' | |
7845 ;; | |
7846 nagfor*) | |
7847 # NAG Fortran compiler | |
7848 lt_prog_compiler_wl='-Wl,-Wl,,' | |
7849 lt_prog_compiler_pic='-PIC' | |
7850 lt_prog_compiler_static='-Bstatic' | |
7851 ;; | |
7852 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
7853 # Portland Group compilers (*not* the Pentium gcc compiler, | |
7854 # which looks to be a dead project) | |
7855 lt_prog_compiler_wl='-Wl,' | |
7856 lt_prog_compiler_pic='-fpic' | |
7857 lt_prog_compiler_static='-Bstatic' | |
7858 ;; | |
7859 ccc*) | |
7860 lt_prog_compiler_wl='-Wl,' | |
7861 # All Alpha code is PIC. | |
7862 lt_prog_compiler_static='-non_shared' | |
7863 ;; | |
7864 xl* | bgxl* | bgf* | mpixl*) | |
7865 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
7866 lt_prog_compiler_wl='-Wl,' | |
7867 lt_prog_compiler_pic='-qpic' | |
7868 lt_prog_compiler_static='-qstaticlink' | |
7869 ;; | |
7870 *) | |
7871 case `$CC -V 2>&1 | sed 5q` in | |
7872 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
7873 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7874 lt_prog_compiler_pic='-KPIC' | |
7875 lt_prog_compiler_static='-Bstatic' | |
7876 lt_prog_compiler_wl='' | |
7877 ;; | |
7878 *Sun\ F* | *Sun*Fortran*) | |
7879 lt_prog_compiler_pic='-KPIC' | |
7880 lt_prog_compiler_static='-Bstatic' | |
7881 lt_prog_compiler_wl='-Qoption ld ' | |
7882 ;; | |
7883 *Sun\ C*) | |
7884 # Sun C 5.9 | |
7885 lt_prog_compiler_pic='-KPIC' | |
7886 lt_prog_compiler_static='-Bstatic' | |
7887 lt_prog_compiler_wl='-Wl,' | |
7888 ;; | |
7889 *Intel*\ [CF]*Compiler*) | |
7890 lt_prog_compiler_wl='-Wl,' | |
7891 lt_prog_compiler_pic='-fPIC' | |
7892 lt_prog_compiler_static='-static' | |
7893 ;; | |
7894 *Portland\ Group*) | |
7895 lt_prog_compiler_wl='-Wl,' | |
7896 lt_prog_compiler_pic='-fpic' | |
7897 lt_prog_compiler_static='-Bstatic' | |
7898 ;; | |
7899 esac | |
7900 ;; | |
7901 esac | |
7902 ;; | |
7903 | |
7904 newsos6) | |
7905 lt_prog_compiler_pic='-KPIC' | |
7906 lt_prog_compiler_static='-Bstatic' | |
7907 ;; | |
7908 | |
7909 *nto* | *qnx*) | |
7910 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7911 # it will coredump. | |
7912 lt_prog_compiler_pic='-fPIC -shared' | |
7913 ;; | |
7914 | |
7915 osf3* | osf4* | osf5*) | |
7916 lt_prog_compiler_wl='-Wl,' | |
7917 # All OSF/1 code is PIC. | |
7918 lt_prog_compiler_static='-non_shared' | |
7919 ;; | |
7920 | |
7921 rdos*) | |
7922 lt_prog_compiler_static='-non_shared' | |
7923 ;; | |
7924 | |
7925 solaris*) | |
7926 lt_prog_compiler_pic='-KPIC' | |
7927 lt_prog_compiler_static='-Bstatic' | |
7928 case $cc_basename in | |
7929 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
7930 lt_prog_compiler_wl='-Qoption ld ';; | |
7931 *) | |
7932 lt_prog_compiler_wl='-Wl,';; | |
7933 esac | |
7934 ;; | |
7935 | |
7936 sunos4*) | |
7937 lt_prog_compiler_wl='-Qoption ld ' | |
7938 lt_prog_compiler_pic='-PIC' | |
7939 lt_prog_compiler_static='-Bstatic' | |
7940 ;; | |
7941 | |
7942 sysv4 | sysv4.2uw2* | sysv4.3*) | |
7943 lt_prog_compiler_wl='-Wl,' | |
7944 lt_prog_compiler_pic='-KPIC' | |
7945 lt_prog_compiler_static='-Bstatic' | |
7946 ;; | |
7947 | |
7948 sysv4*MP*) | |
7949 if test -d /usr/nec ;then | |
7950 lt_prog_compiler_pic='-Kconform_pic' | |
7951 lt_prog_compiler_static='-Bstatic' | |
7952 fi | |
7953 ;; | |
7954 | |
7955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7956 lt_prog_compiler_wl='-Wl,' | |
7957 lt_prog_compiler_pic='-KPIC' | |
7958 lt_prog_compiler_static='-Bstatic' | |
7959 ;; | |
7960 | |
7961 unicos*) | |
7962 lt_prog_compiler_wl='-Wl,' | |
7963 lt_prog_compiler_can_build_shared=no | |
7964 ;; | |
7965 | |
7966 uts4*) | |
7967 lt_prog_compiler_pic='-pic' | |
7968 lt_prog_compiler_static='-Bstatic' | |
7969 ;; | |
7970 | |
7971 *) | |
7972 lt_prog_compiler_can_build_shared=no | |
7973 ;; | |
7974 esac | |
7975 fi | |
7976 | |
7977 case $host_os in | |
7978 # For platforms which do not support PIC, -DPIC is meaningless: | |
7979 *djgpp*) | |
7980 lt_prog_compiler_pic= | |
7981 ;; | |
7982 *) | |
7983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7984 ;; | |
7985 esac | |
7986 | |
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
7988 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
7989 if ${lt_cv_prog_compiler_pic+:} false; then : | |
7990 $as_echo_n "(cached) " >&6 | |
7991 else | |
7992 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
7993 fi | |
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
7995 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
7996 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
7997 | |
7998 # | |
7999 # Check to make sure the PIC flag actually works. | |
8000 # | |
8001 if test -n "$lt_prog_compiler_pic"; then | |
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8003 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8004 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8005 $as_echo_n "(cached) " >&6 | |
8006 else | |
8007 lt_cv_prog_compiler_pic_works=no | |
8008 ac_outfile=conftest.$ac_objext | |
8009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8010 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8011 # Insert the option either (1) after the last *FLAGS variable, or | |
8012 # (2) before a word containing "conftest.", or (3) at the end. | |
8013 # Note that $ac_compile itself does not contain backslashes and begins | |
8014 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8015 # The option is referenced via a variable to avoid confusing sed. | |
8016 lt_compile=`echo "$ac_compile" | $SED \ | |
8017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8019 -e 's:$: $lt_compiler_flag:'` | |
8020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8021 (eval "$lt_compile" 2>conftest.err) | |
8022 ac_status=$? | |
8023 cat conftest.err >&5 | |
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8025 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8026 # The compiler can only warn and ignore the option if not recognized | |
8027 # So say no if there are warnings other than the usual output. | |
8028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8031 lt_cv_prog_compiler_pic_works=yes | |
8032 fi | |
8033 fi | |
8034 $RM conftest* | |
8035 | |
8036 fi | |
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8038 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8039 | |
8040 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8041 case $lt_prog_compiler_pic in | |
8042 "" | " "*) ;; | |
8043 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8044 esac | |
8045 else | |
8046 lt_prog_compiler_pic= | |
8047 lt_prog_compiler_can_build_shared=no | |
8048 fi | |
8049 | |
8050 fi | |
8051 | |
8052 | |
8053 | |
8054 | |
8055 | |
8056 | |
8057 | |
8058 | |
8059 | |
8060 | |
8061 | |
8062 # | |
8063 # Check to make sure the static flag actually works. | |
8064 # | |
8065 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8067 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8068 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
8069 $as_echo_n "(cached) " >&6 | |
8070 else | |
8071 lt_cv_prog_compiler_static_works=no | |
8072 save_LDFLAGS="$LDFLAGS" | |
8073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8074 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8076 # The linker can only warn and ignore the option if not recognized | |
8077 # So say no if there are warnings | |
8078 if test -s conftest.err; then | |
8079 # Append any errors to the config.log. | |
8080 cat conftest.err 1>&5 | |
8081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8083 if diff conftest.exp conftest.er2 >/dev/null; then | |
8084 lt_cv_prog_compiler_static_works=yes | |
8085 fi | |
8086 else | |
8087 lt_cv_prog_compiler_static_works=yes | |
8088 fi | |
8089 fi | |
8090 $RM -r conftest* | |
8091 LDFLAGS="$save_LDFLAGS" | |
8092 | |
8093 fi | |
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8095 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8096 | |
8097 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8098 : | |
8099 else | |
8100 lt_prog_compiler_static= | |
8101 fi | |
8102 | |
8103 | |
8104 | |
8105 | |
8106 | |
8107 | |
8108 | |
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8111 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8112 $as_echo_n "(cached) " >&6 | |
8113 else | |
8114 lt_cv_prog_compiler_c_o=no | |
8115 $RM -r conftest 2>/dev/null | |
8116 mkdir conftest | |
8117 cd conftest | |
8118 mkdir out | |
8119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8120 | |
8121 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8122 # Insert the option either (1) after the last *FLAGS variable, or | |
8123 # (2) before a word containing "conftest.", or (3) at the end. | |
8124 # Note that $ac_compile itself does not contain backslashes and begins | |
8125 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8126 lt_compile=`echo "$ac_compile" | $SED \ | |
8127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8129 -e 's:$: $lt_compiler_flag:'` | |
8130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8131 (eval "$lt_compile" 2>out/conftest.err) | |
8132 ac_status=$? | |
8133 cat out/conftest.err >&5 | |
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8135 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8136 then | |
8137 # The compiler can only warn and ignore the option if not recognized | |
8138 # So say no if there are warnings | |
8139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8142 lt_cv_prog_compiler_c_o=yes | |
8143 fi | |
8144 fi | |
8145 chmod u+w . 2>&5 | |
8146 $RM conftest* | |
8147 # SGI C++ compiler will create directory out/ii_files/ for | |
8148 # template instantiation | |
8149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8150 $RM out/* && rmdir out | |
8151 cd .. | |
8152 $RM -r conftest | |
8153 $RM conftest* | |
8154 | |
8155 fi | |
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8158 | |
8159 | |
8160 | |
8161 | |
8162 | |
8163 | |
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8166 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8167 $as_echo_n "(cached) " >&6 | |
8168 else | |
8169 lt_cv_prog_compiler_c_o=no | |
8170 $RM -r conftest 2>/dev/null | |
8171 mkdir conftest | |
8172 cd conftest | |
8173 mkdir out | |
8174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8175 | |
8176 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8177 # Insert the option either (1) after the last *FLAGS variable, or | |
8178 # (2) before a word containing "conftest.", or (3) at the end. | |
8179 # Note that $ac_compile itself does not contain backslashes and begins | |
8180 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8181 lt_compile=`echo "$ac_compile" | $SED \ | |
8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8184 -e 's:$: $lt_compiler_flag:'` | |
8185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8186 (eval "$lt_compile" 2>out/conftest.err) | |
8187 ac_status=$? | |
8188 cat out/conftest.err >&5 | |
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8190 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8191 then | |
8192 # The compiler can only warn and ignore the option if not recognized | |
8193 # So say no if there are warnings | |
8194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8197 lt_cv_prog_compiler_c_o=yes | |
8198 fi | |
8199 fi | |
8200 chmod u+w . 2>&5 | |
8201 $RM conftest* | |
8202 # SGI C++ compiler will create directory out/ii_files/ for | |
8203 # template instantiation | |
8204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8205 $RM out/* && rmdir out | |
8206 cd .. | |
8207 $RM -r conftest | |
8208 $RM conftest* | |
8209 | |
8210 fi | |
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8213 | |
8214 | |
8215 | |
8216 | |
8217 hard_links="nottested" | |
8218 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8219 # do not overwrite the value of need_locks provided by the user | |
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8221 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8222 hard_links=yes | |
8223 $RM conftest* | |
8224 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8225 touch conftest.a | |
8226 ln conftest.a conftest.b 2>&5 || hard_links=no | |
8227 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8229 $as_echo "$hard_links" >&6; } | |
8230 if test "$hard_links" = no; then | |
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8232 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8233 need_locks=warn | |
8234 fi | |
8235 else | |
8236 need_locks=no | |
8237 fi | |
8238 | |
8239 | |
8240 | |
8241 | |
8242 | |
8243 | |
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8245 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8246 | |
8247 runpath_var= | |
8248 allow_undefined_flag= | |
8249 always_export_symbols=no | |
8250 archive_cmds= | |
8251 archive_expsym_cmds= | |
8252 compiler_needs_object=no | |
8253 enable_shared_with_static_runtimes=no | |
8254 export_dynamic_flag_spec= | |
8255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8256 hardcode_automatic=no | |
8257 hardcode_direct=no | |
8258 hardcode_direct_absolute=no | |
8259 hardcode_libdir_flag_spec= | |
8260 hardcode_libdir_separator= | |
8261 hardcode_minus_L=no | |
8262 hardcode_shlibpath_var=unsupported | |
8263 inherit_rpath=no | |
8264 link_all_deplibs=unknown | |
8265 module_cmds= | |
8266 module_expsym_cmds= | |
8267 old_archive_from_new_cmds= | |
8268 old_archive_from_expsyms_cmds= | |
8269 thread_safe_flag_spec= | |
8270 whole_archive_flag_spec= | |
8271 # include_expsyms should be a list of space-separated symbols to be *always* | |
8272 # included in the symbol list | |
8273 include_expsyms= | |
8274 # exclude_expsyms can be an extended regexp of symbols to exclude | |
8275 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8277 # as well as any symbol that contains `d'. | |
8278 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8280 # platforms (ab)use it in PIC code, but their linkers get confused if | |
8281 # the symbol is explicitly referenced. Since portable code cannot | |
8282 # rely on this symbol name, it's probably fine to never include it in | |
8283 # preloaded symbol tables. | |
8284 # Exclude shared library initialization/finalization symbols. | |
8285 extract_expsyms_cmds= | |
8286 | |
8287 case $host_os in | |
8288 cygwin* | mingw* | pw32* | cegcc*) | |
8289 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8290 # When not using gcc, we currently assume that we are using | |
8291 # Microsoft Visual C++. | |
8292 if test "$GCC" != yes; then | |
8293 with_gnu_ld=no | |
8294 fi | |
8295 ;; | |
8296 interix*) | |
8297 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8298 with_gnu_ld=yes | |
8299 ;; | |
8300 openbsd*) | |
8301 with_gnu_ld=no | |
8302 ;; | |
8303 linux* | k*bsd*-gnu | gnu*) | |
8304 link_all_deplibs=no | |
8305 ;; | |
8306 esac | |
8307 | |
8308 ld_shlibs=yes | |
8309 | |
8310 # On some targets, GNU ld is compatible enough with the native linker | |
8311 # that we're better off using the native interface for both. | |
8312 lt_use_gnu_ld_interface=no | |
8313 if test "$with_gnu_ld" = yes; then | |
8314 case $host_os in | |
8315 aix*) | |
8316 # The AIX port of GNU ld has always aspired to compatibility | |
8317 # with the native linker. However, as the warning in the GNU ld | |
8318 # block says, versions before 2.19.5* couldn't really create working | |
8319 # shared libraries, regardless of the interface used. | |
8320 case `$LD -v 2>&1` in | |
8321 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8322 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8323 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8324 *) | |
8325 lt_use_gnu_ld_interface=yes | |
8326 ;; | |
8327 esac | |
8328 ;; | |
8329 *) | |
8330 lt_use_gnu_ld_interface=yes | |
8331 ;; | |
8332 esac | |
8333 fi | |
8334 | |
8335 if test "$lt_use_gnu_ld_interface" = yes; then | |
8336 # If archive_cmds runs LD, not CC, wlarc should be empty | |
8337 wlarc='${wl}' | |
8338 | |
8339 # Set some defaults for GNU ld with shared library support. These | |
8340 # are reset later if shared libraries are not supported. Putting them | |
8341 # here allows them to be overridden if necessary. | |
8342 runpath_var=LD_RUN_PATH | |
8343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8344 export_dynamic_flag_spec='${wl}--export-dynamic' | |
8345 # ancient GNU ld didn't support --whole-archive et. al. | |
8346 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8347 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8348 else | |
8349 whole_archive_flag_spec= | |
8350 fi | |
8351 supports_anon_versioning=no | |
8352 case `$LD -v 2>&1` in | |
8353 *GNU\ gold*) supports_anon_versioning=yes ;; | |
8354 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8355 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8356 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8357 *\ 2.11.*) ;; # other 2.11 versions | |
8358 *) supports_anon_versioning=yes ;; | |
8359 esac | |
8360 | |
8361 # See if GNU ld supports shared libraries. | |
8362 case $host_os in | |
8363 aix[3-9]*) | |
8364 # On AIX/PPC, the GNU linker is very broken | |
8365 if test "$host_cpu" != ia64; then | |
8366 ld_shlibs=no | |
8367 cat <<_LT_EOF 1>&2 | |
8368 | |
8369 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8370 *** to be unable to reliably create shared libraries on AIX. | |
8371 *** Therefore, libtool is disabling shared libraries support. If you | |
8372 *** really care for shared libraries, you may want to install binutils | |
8373 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8374 *** You will then need to restart the configuration process. | |
8375 | |
8376 _LT_EOF | |
8377 fi | |
8378 ;; | |
8379 | |
8380 amigaos*) | |
8381 case $host_cpu in | |
8382 powerpc) | |
8383 # see comment about AmigaOS4 .so support | |
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8385 archive_expsym_cmds='' | |
8386 ;; | |
8387 m68k) | |
8388 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)' | |
8389 hardcode_libdir_flag_spec='-L$libdir' | |
8390 hardcode_minus_L=yes | |
8391 ;; | |
8392 esac | |
8393 ;; | |
8394 | |
8395 beos*) | |
8396 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8397 allow_undefined_flag=unsupported | |
8398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8399 # support --undefined. This deserves some investigation. FIXME | |
8400 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8401 else | |
8402 ld_shlibs=no | |
8403 fi | |
8404 ;; | |
8405 | |
8406 cygwin* | mingw* | pw32* | cegcc*) | |
8407 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8408 # as there is no search path for DLLs. | |
8409 hardcode_libdir_flag_spec='-L$libdir' | |
8410 export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8411 allow_undefined_flag=unsupported | |
8412 always_export_symbols=no | |
8413 enable_shared_with_static_runtimes=yes | |
8414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
8415 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8416 | |
8417 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8419 # If the export-symbols file already is a .def file (1st line | |
8420 # is EXPORTS), use it as is; otherwise, prepend... | |
8421 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8422 cp $export_symbols $output_objdir/$soname.def; | |
8423 else | |
8424 echo EXPORTS > $output_objdir/$soname.def; | |
8425 cat $export_symbols >> $output_objdir/$soname.def; | |
8426 fi~ | |
8427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8428 else | |
8429 ld_shlibs=no | |
8430 fi | |
8431 ;; | |
8432 | |
8433 haiku*) | |
8434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8435 link_all_deplibs=yes | |
8436 ;; | |
8437 | |
8438 interix[3-9]*) | |
8439 hardcode_direct=no | |
8440 hardcode_shlibpath_var=no | |
8441 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8442 export_dynamic_flag_spec='${wl}-E' | |
8443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8444 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8445 # default) and relocated if they conflict, which is a slow very memory | |
8446 # consuming and fragmenting process. To avoid this, we pick a random, | |
8447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8448 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8450 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8451 ;; | |
8452 | |
8453 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8454 tmp_diet=no | |
8455 if test "$host_os" = linux-dietlibc; then | |
8456 case $cc_basename in | |
8457 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8458 esac | |
8459 fi | |
8460 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8461 && test "$tmp_diet" = no | |
8462 then | |
8463 tmp_addflag=' $pic_flag' | |
8464 tmp_sharedflag='-shared' | |
8465 case $cc_basename,$host_cpu in | |
8466 pgcc*) # Portland Group C compiler | |
8467 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8468 tmp_addflag=' $pic_flag' | |
8469 ;; | |
8470 pgf77* | pgf90* | pgf95* | pgfortran*) | |
8471 # Portland Group f77 and f90 compilers | |
8472 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8473 tmp_addflag=' $pic_flag -Mnomain' ;; | |
8474 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8475 tmp_addflag=' -i_dynamic' ;; | |
8476 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8477 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8478 ifc* | ifort*) # Intel Fortran compiler | |
8479 tmp_addflag=' -nofor_main' ;; | |
8480 lf95*) # Lahey Fortran 8.1 | |
8481 whole_archive_flag_spec= | |
8482 tmp_sharedflag='--shared' ;; | |
8483 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8484 tmp_sharedflag='-qmkshrobj' | |
8485 tmp_addflag= ;; | |
8486 nvcc*) # Cuda Compiler Driver 2.2 | |
8487 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8488 compiler_needs_object=yes | |
8489 ;; | |
8490 esac | |
8491 case `$CC -V 2>&1 | sed 5q` in | |
8492 *Sun\ C*) # Sun C 5.9 | |
8493 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8494 compiler_needs_object=yes | |
8495 tmp_sharedflag='-G' ;; | |
8496 *Sun\ F*) # Sun Fortran 8.3 | |
8497 tmp_sharedflag='-G' ;; | |
8498 esac | |
8499 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8500 | |
8501 if test "x$supports_anon_versioning" = xyes; then | |
8502 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8504 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8505 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8506 fi | |
8507 | |
8508 case $cc_basename in | |
8509 xlf* | bgf* | bgxlf* | mpixlf*) | |
8510 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8511 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8513 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
8514 if test "x$supports_anon_versioning" = xyes; then | |
8515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8517 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8518 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8519 fi | |
8520 ;; | |
8521 esac | |
8522 else | |
8523 ld_shlibs=no | |
8524 fi | |
8525 ;; | |
8526 | |
8527 netbsd* | netbsdelf*-gnu) | |
8528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8529 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8530 wlarc= | |
8531 else | |
8532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8534 fi | |
8535 ;; | |
8536 | |
8537 solaris*) | |
8538 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8539 ld_shlibs=no | |
8540 cat <<_LT_EOF 1>&2 | |
8541 | |
8542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8543 *** create shared libraries on Solaris systems. Therefore, libtool | |
8544 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8545 *** binutils to release 2.9.1 or newer. Another option is to modify | |
8546 *** your PATH or compiler configuration so that the native linker is | |
8547 *** used, and then restart. | |
8548 | |
8549 _LT_EOF | |
8550 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8553 else | |
8554 ld_shlibs=no | |
8555 fi | |
8556 ;; | |
8557 | |
8558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8559 case `$LD -v 2>&1` in | |
8560 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8561 ld_shlibs=no | |
8562 cat <<_LT_EOF 1>&2 | |
8563 | |
8564 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8565 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8566 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8567 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8568 *** your PATH or compiler configuration so that the native linker is | |
8569 *** used, and then restart. | |
8570 | |
8571 _LT_EOF | |
8572 ;; | |
8573 *) | |
8574 # For security reasons, it is highly recommended that you always | |
8575 # use absolute paths for naming shared libraries, and exclude the | |
8576 # DT_RUNPATH tag from executables and libraries. But doing so | |
8577 # requires that you compile everything twice, which is a pain. | |
8578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8582 else | |
8583 ld_shlibs=no | |
8584 fi | |
8585 ;; | |
8586 esac | |
8587 ;; | |
8588 | |
8589 sunos4*) | |
8590 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8591 wlarc= | |
8592 hardcode_direct=yes | |
8593 hardcode_shlibpath_var=no | |
8594 ;; | |
8595 | |
8596 *) | |
8597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8599 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8600 else | |
8601 ld_shlibs=no | |
8602 fi | |
8603 ;; | |
8604 esac | |
8605 | |
8606 if test "$ld_shlibs" = no; then | |
8607 runpath_var= | |
8608 hardcode_libdir_flag_spec= | |
8609 export_dynamic_flag_spec= | |
8610 whole_archive_flag_spec= | |
8611 fi | |
8612 else | |
8613 # PORTME fill in a description of your system's linker (not GNU ld) | |
8614 case $host_os in | |
8615 aix3*) | |
8616 allow_undefined_flag=unsupported | |
8617 always_export_symbols=yes | |
8618 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' | |
8619 # Note: this linker hardcodes the directories in LIBPATH if there | |
8620 # are no directories specified by -L. | |
8621 hardcode_minus_L=yes | |
8622 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8623 # Neither direct hardcoding nor static linking is supported with a | |
8624 # broken collect2. | |
8625 hardcode_direct=unsupported | |
8626 fi | |
8627 ;; | |
8628 | |
8629 aix[4-9]*) | |
8630 if test "$host_cpu" = ia64; then | |
8631 # On IA64, the linker does run time linking by default, so we don't | |
8632 # have to do anything special. | |
8633 aix_use_runtimelinking=no | |
8634 exp_sym_flag='-Bexport' | |
8635 no_entry_flag="" | |
8636 else | |
8637 # If we're using GNU nm, then we don't want the "-C" option. | |
8638 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8639 # Also, AIX nm treats weak defined symbols like other global | |
8640 # defined symbols, whereas GNU nm marks them as "W". | |
8641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8642 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8643 else | |
8644 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' | |
8645 fi | |
8646 aix_use_runtimelinking=no | |
8647 | |
8648 # Test if we are trying to use run time linking or normal | |
8649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8650 # need to do runtime linking. | |
8651 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8652 for ld_flag in $LDFLAGS; do | |
8653 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8654 aix_use_runtimelinking=yes | |
8655 break | |
8656 fi | |
8657 done | |
8658 ;; | |
8659 esac | |
8660 | |
8661 exp_sym_flag='-bexport' | |
8662 no_entry_flag='-bnoentry' | |
8663 fi | |
8664 | |
8665 # When large executables or shared objects are built, AIX ld can | |
8666 # have problems creating the table of contents. If linking a library | |
8667 # or program results in "error TOC overflow" add -mminimal-toc to | |
8668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8670 | |
8671 archive_cmds='' | |
8672 hardcode_direct=yes | |
8673 hardcode_direct_absolute=yes | |
8674 hardcode_libdir_separator=':' | |
8675 link_all_deplibs=yes | |
8676 file_list_spec='${wl}-f,' | |
8677 | |
8678 if test "$GCC" = yes; then | |
8679 case $host_os in aix4.[012]|aix4.[012].*) | |
8680 # We only want to do this on AIX 4.2 and lower, the check | |
8681 # below for broken collect2 doesn't work under 4.3+ | |
8682 collect2name=`${CC} -print-prog-name=collect2` | |
8683 if test -f "$collect2name" && | |
8684 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8685 then | |
8686 # We have reworked collect2 | |
8687 : | |
8688 else | |
8689 # We have old collect2 | |
8690 hardcode_direct=unsupported | |
8691 # It fails to find uninstalled libraries when the uninstalled | |
8692 # path is not listed in the libpath. Setting hardcode_minus_L | |
8693 # to unsupported forces relinking | |
8694 hardcode_minus_L=yes | |
8695 hardcode_libdir_flag_spec='-L$libdir' | |
8696 hardcode_libdir_separator= | |
8697 fi | |
8698 ;; | |
8699 esac | |
8700 shared_flag='-shared' | |
8701 if test "$aix_use_runtimelinking" = yes; then | |
8702 shared_flag="$shared_flag "'${wl}-G' | |
8703 fi | |
8704 link_all_deplibs=no | |
8705 else | |
8706 # not using gcc | |
8707 if test "$host_cpu" = ia64; then | |
8708 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8709 # chokes on -Wl,-G. The following line is correct: | |
8710 shared_flag='-G' | |
8711 else | |
8712 if test "$aix_use_runtimelinking" = yes; then | |
8713 shared_flag='${wl}-G' | |
8714 else | |
8715 shared_flag='${wl}-bM:SRE' | |
8716 fi | |
8717 fi | |
8718 fi | |
8719 | |
8720 export_dynamic_flag_spec='${wl}-bexpall' | |
8721 # It seems that -bexpall does not export symbols beginning with | |
8722 # underscore (_), so it is better to generate a list of symbols to export. | |
8723 always_export_symbols=yes | |
8724 if test "$aix_use_runtimelinking" = yes; then | |
8725 # Warning - without using the other runtime loading flags (-brtl), | |
8726 # -berok will link without error, but may produce a broken library. | |
8727 allow_undefined_flag='-berok' | |
8728 # Determine the default libpath from the value encoded in an | |
8729 # empty executable. | |
8730 if test "${lt_cv_aix_libpath+set}" = set; then | |
8731 aix_libpath=$lt_cv_aix_libpath | |
8732 else | |
8733 if ${lt_cv_aix_libpath_+:} false; then : | |
8734 $as_echo_n "(cached) " >&6 | |
8735 else | |
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8737 /* end confdefs.h. */ | |
8738 | |
8739 int | |
8740 main () | |
8741 { | |
8742 | |
8743 ; | |
8744 return 0; | |
8745 } | |
8746 _ACEOF | |
8747 if ac_fn_c_try_link "$LINENO"; then : | |
8748 | |
8749 lt_aix_libpath_sed=' | |
8750 /Import File Strings/,/^$/ { | |
8751 /^0/ { | |
8752 s/^0 *\([^ ]*\) *$/\1/ | |
8753 p | |
8754 } | |
8755 }' | |
8756 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8757 # Check for a 64-bit object if we didn't find anything. | |
8758 if test -z "$lt_cv_aix_libpath_"; then | |
8759 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8760 fi | |
8761 fi | |
8762 rm -f core conftest.err conftest.$ac_objext \ | |
8763 conftest$ac_exeext conftest.$ac_ext | |
8764 if test -z "$lt_cv_aix_libpath_"; then | |
8765 lt_cv_aix_libpath_="/usr/lib:/lib" | |
8766 fi | |
8767 | |
8768 fi | |
8769 | |
8770 aix_libpath=$lt_cv_aix_libpath_ | |
8771 fi | |
8772 | |
8773 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8774 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8775 else | |
8776 if test "$host_cpu" = ia64; then | |
8777 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8778 allow_undefined_flag="-z nodefs" | |
8779 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
8780 else | |
8781 # Determine the default libpath from the value encoded in an | |
8782 # empty executable. | |
8783 if test "${lt_cv_aix_libpath+set}" = set; then | |
8784 aix_libpath=$lt_cv_aix_libpath | |
8785 else | |
8786 if ${lt_cv_aix_libpath_+:} false; then : | |
8787 $as_echo_n "(cached) " >&6 | |
8788 else | |
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8790 /* end confdefs.h. */ | |
8791 | |
8792 int | |
8793 main () | |
8794 { | |
8795 | |
8796 ; | |
8797 return 0; | |
8798 } | |
8799 _ACEOF | |
8800 if ac_fn_c_try_link "$LINENO"; then : | |
8801 | |
8802 lt_aix_libpath_sed=' | |
8803 /Import File Strings/,/^$/ { | |
8804 /^0/ { | |
8805 s/^0 *\([^ ]*\) *$/\1/ | |
8806 p | |
8807 } | |
8808 }' | |
8809 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8810 # Check for a 64-bit object if we didn't find anything. | |
8811 if test -z "$lt_cv_aix_libpath_"; then | |
8812 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8813 fi | |
8814 fi | |
8815 rm -f core conftest.err conftest.$ac_objext \ | |
8816 conftest$ac_exeext conftest.$ac_ext | |
8817 if test -z "$lt_cv_aix_libpath_"; then | |
8818 lt_cv_aix_libpath_="/usr/lib:/lib" | |
8819 fi | |
8820 | |
8821 fi | |
8822 | |
8823 aix_libpath=$lt_cv_aix_libpath_ | |
8824 fi | |
8825 | |
8826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8827 # Warning - without using the other run time loading flags, | |
8828 # -berok will link without error, but may produce a broken library. | |
8829 no_undefined_flag=' ${wl}-bernotok' | |
8830 allow_undefined_flag=' ${wl}-berok' | |
8831 if test "$with_gnu_ld" = yes; then | |
8832 # We only use this code for GNU lds that support --whole-archive. | |
8833 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
8834 else | |
8835 # Exported symbols can be pulled into shared objects from archives | |
8836 whole_archive_flag_spec='$convenience' | |
8837 fi | |
8838 archive_cmds_need_lc=yes | |
8839 # This is similar to how AIX traditionally builds its shared libraries. | |
8840 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
8841 fi | |
8842 fi | |
8843 ;; | |
8844 | |
8845 amigaos*) | |
8846 case $host_cpu in | |
8847 powerpc) | |
8848 # see comment about AmigaOS4 .so support | |
8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8850 archive_expsym_cmds='' | |
8851 ;; | |
8852 m68k) | |
8853 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)' | |
8854 hardcode_libdir_flag_spec='-L$libdir' | |
8855 hardcode_minus_L=yes | |
8856 ;; | |
8857 esac | |
8858 ;; | |
8859 | |
8860 bsdi[45]*) | |
8861 export_dynamic_flag_spec=-rdynamic | |
8862 ;; | |
8863 | |
8864 cygwin* | mingw* | pw32* | cegcc*) | |
8865 # When not using gcc, we currently assume that we are using | |
8866 # Microsoft Visual C++. | |
8867 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8868 # no search path for DLLs. | |
8869 case $cc_basename in | |
8870 cl*) | |
8871 # Native MSVC | |
8872 hardcode_libdir_flag_spec=' ' | |
8873 allow_undefined_flag=unsupported | |
8874 always_export_symbols=yes | |
8875 file_list_spec='@' | |
8876 # Tell ltmain to make .lib files, not .a files. | |
8877 libext=lib | |
8878 # Tell ltmain to make .dll files, not .so files. | |
8879 shrext_cmds=".dll" | |
8880 # FIXME: Setting linknames here is a bad hack. | |
8881 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
8882 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8883 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
8884 else | |
8885 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
8886 fi~ | |
8887 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
8888 linknames=' | |
8889 # The linker will not automatically build a static lib if we build a DLL. | |
8890 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
8891 enable_shared_with_static_runtimes=yes | |
8892 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
8893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8894 # Don't use ranlib | |
8895 old_postinstall_cmds='chmod 644 $oldlib' | |
8896 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
8897 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
8898 case $lt_outputfile in | |
8899 *.exe|*.EXE) ;; | |
8900 *) | |
8901 lt_outputfile="$lt_outputfile.exe" | |
8902 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
8903 ;; | |
8904 esac~ | |
8905 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
8906 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
8907 $RM "$lt_outputfile.manifest"; | |
8908 fi' | |
8909 ;; | |
8910 *) | |
8911 # Assume MSVC wrapper | |
8912 hardcode_libdir_flag_spec=' ' | |
8913 allow_undefined_flag=unsupported | |
8914 # Tell ltmain to make .lib files, not .a files. | |
8915 libext=lib | |
8916 # Tell ltmain to make .dll files, not .so files. | |
8917 shrext_cmds=".dll" | |
8918 # FIXME: Setting linknames here is a bad hack. | |
8919 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8920 # The linker will automatically build a .lib file if we build a DLL. | |
8921 old_archive_from_new_cmds='true' | |
8922 # FIXME: Should let the user specify the lib program. | |
8923 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8924 enable_shared_with_static_runtimes=yes | |
8925 ;; | |
8926 esac | |
8927 ;; | |
8928 | |
8929 darwin* | rhapsody*) | |
8930 | |
8931 | |
8932 archive_cmds_need_lc=no | |
8933 hardcode_direct=no | |
8934 hardcode_automatic=yes | |
8935 hardcode_shlibpath_var=unsupported | |
8936 if test "$lt_cv_ld_force_load" = "yes"; then | |
8937 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
8938 | |
8939 else | |
8940 whole_archive_flag_spec='' | |
8941 fi | |
8942 link_all_deplibs=yes | |
8943 allow_undefined_flag="$_lt_dar_allow_undefined" | |
8944 case $cc_basename in | |
8945 ifort*) _lt_dar_can_shared=yes ;; | |
8946 *) _lt_dar_can_shared=$GCC ;; | |
8947 esac | |
8948 if test "$_lt_dar_can_shared" = "yes"; then | |
8949 output_verbose_link_cmd=func_echo_all | |
8950 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8951 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8952 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
8953 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
8954 | |
8955 else | |
8956 ld_shlibs=no | |
8957 fi | |
8958 | |
8959 ;; | |
8960 | |
8961 dgux*) | |
8962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8963 hardcode_libdir_flag_spec='-L$libdir' | |
8964 hardcode_shlibpath_var=no | |
8965 ;; | |
8966 | |
8967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8968 # support. Future versions do this automatically, but an explicit c++rt0.o | |
8969 # does not break anything, and helps significantly (at the cost of a little | |
8970 # extra space). | |
8971 freebsd2.2*) | |
8972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8973 hardcode_libdir_flag_spec='-R$libdir' | |
8974 hardcode_direct=yes | |
8975 hardcode_shlibpath_var=no | |
8976 ;; | |
8977 | |
8978 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8979 freebsd2.*) | |
8980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8981 hardcode_direct=yes | |
8982 hardcode_minus_L=yes | |
8983 hardcode_shlibpath_var=no | |
8984 ;; | |
8985 | |
8986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8987 freebsd* | dragonfly*) | |
8988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8989 hardcode_libdir_flag_spec='-R$libdir' | |
8990 hardcode_direct=yes | |
8991 hardcode_shlibpath_var=no | |
8992 ;; | |
8993 | |
8994 hpux9*) | |
8995 if test "$GCC" = yes; then | |
8996 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
8997 else | |
8998 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' | |
8999 fi | |
9000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9001 hardcode_libdir_separator=: | |
9002 hardcode_direct=yes | |
9003 | |
9004 # hardcode_minus_L: Not really in the search PATH, | |
9005 # but as the default location of the library. | |
9006 hardcode_minus_L=yes | |
9007 export_dynamic_flag_spec='${wl}-E' | |
9008 ;; | |
9009 | |
9010 hpux10*) | |
9011 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9012 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9013 else | |
9014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9015 fi | |
9016 if test "$with_gnu_ld" = no; then | |
9017 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9018 hardcode_libdir_separator=: | |
9019 hardcode_direct=yes | |
9020 hardcode_direct_absolute=yes | |
9021 export_dynamic_flag_spec='${wl}-E' | |
9022 # hardcode_minus_L: Not really in the search PATH, | |
9023 # but as the default location of the library. | |
9024 hardcode_minus_L=yes | |
9025 fi | |
9026 ;; | |
9027 | |
9028 hpux11*) | |
9029 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9030 case $host_cpu in | |
9031 hppa*64*) | |
9032 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9033 ;; | |
9034 ia64*) | |
9035 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9036 ;; | |
9037 *) | |
9038 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9039 ;; | |
9040 esac | |
9041 else | |
9042 case $host_cpu in | |
9043 hppa*64*) | |
9044 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9045 ;; | |
9046 ia64*) | |
9047 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9048 ;; | |
9049 *) | |
9050 | |
9051 # Older versions of the 11.00 compiler do not understand -b yet | |
9052 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9054 $as_echo_n "checking if $CC understands -b... " >&6; } | |
9055 if ${lt_cv_prog_compiler__b+:} false; then : | |
9056 $as_echo_n "(cached) " >&6 | |
9057 else | |
9058 lt_cv_prog_compiler__b=no | |
9059 save_LDFLAGS="$LDFLAGS" | |
9060 LDFLAGS="$LDFLAGS -b" | |
9061 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9063 # The linker can only warn and ignore the option if not recognized | |
9064 # So say no if there are warnings | |
9065 if test -s conftest.err; then | |
9066 # Append any errors to the config.log. | |
9067 cat conftest.err 1>&5 | |
9068 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9070 if diff conftest.exp conftest.er2 >/dev/null; then | |
9071 lt_cv_prog_compiler__b=yes | |
9072 fi | |
9073 else | |
9074 lt_cv_prog_compiler__b=yes | |
9075 fi | |
9076 fi | |
9077 $RM -r conftest* | |
9078 LDFLAGS="$save_LDFLAGS" | |
9079 | |
9080 fi | |
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9082 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9083 | |
9084 if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9086 else | |
9087 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9088 fi | |
9089 | |
9090 ;; | |
9091 esac | |
9092 fi | |
9093 if test "$with_gnu_ld" = no; then | |
9094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9095 hardcode_libdir_separator=: | |
9096 | |
9097 case $host_cpu in | |
9098 hppa*64*|ia64*) | |
9099 hardcode_direct=no | |
9100 hardcode_shlibpath_var=no | |
9101 ;; | |
9102 *) | |
9103 hardcode_direct=yes | |
9104 hardcode_direct_absolute=yes | |
9105 export_dynamic_flag_spec='${wl}-E' | |
9106 | |
9107 # hardcode_minus_L: Not really in the search PATH, | |
9108 # but as the default location of the library. | |
9109 hardcode_minus_L=yes | |
9110 ;; | |
9111 esac | |
9112 fi | |
9113 ;; | |
9114 | |
9115 irix5* | irix6* | nonstopux*) | |
9116 if test "$GCC" = yes; then | |
9117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9118 # Try to use the -exported_symbol ld option, if it does not | |
9119 # work, assume that -exports_file does not work either and | |
9120 # implicitly export all symbols. | |
9121 # This should be the same for all languages, so no per-tag cache variable. | |
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9123 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9124 if ${lt_cv_irix_exported_symbol+:} false; then : | |
9125 $as_echo_n "(cached) " >&6 | |
9126 else | |
9127 save_LDFLAGS="$LDFLAGS" | |
9128 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9130 /* end confdefs.h. */ | |
9131 int foo (void) { return 0; } | |
9132 _ACEOF | |
9133 if ac_fn_c_try_link "$LINENO"; then : | |
9134 lt_cv_irix_exported_symbol=yes | |
9135 else | |
9136 lt_cv_irix_exported_symbol=no | |
9137 fi | |
9138 rm -f core conftest.err conftest.$ac_objext \ | |
9139 conftest$ac_exeext conftest.$ac_ext | |
9140 LDFLAGS="$save_LDFLAGS" | |
9141 fi | |
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9143 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9144 if test "$lt_cv_irix_exported_symbol" = yes; then | |
9145 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
9146 fi | |
9147 else | |
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9150 fi | |
9151 archive_cmds_need_lc='no' | |
9152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9153 hardcode_libdir_separator=: | |
9154 inherit_rpath=yes | |
9155 link_all_deplibs=yes | |
9156 ;; | |
9157 | |
9158 netbsd* | netbsdelf*-gnu) | |
9159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9161 else | |
9162 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9163 fi | |
9164 hardcode_libdir_flag_spec='-R$libdir' | |
9165 hardcode_direct=yes | |
9166 hardcode_shlibpath_var=no | |
9167 ;; | |
9168 | |
9169 newsos6) | |
9170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9171 hardcode_direct=yes | |
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9173 hardcode_libdir_separator=: | |
9174 hardcode_shlibpath_var=no | |
9175 ;; | |
9176 | |
9177 *nto* | *qnx*) | |
9178 ;; | |
9179 | |
9180 openbsd*) | |
9181 if test -f /usr/libexec/ld.so; then | |
9182 hardcode_direct=yes | |
9183 hardcode_shlibpath_var=no | |
9184 hardcode_direct_absolute=yes | |
9185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9187 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9188 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9189 export_dynamic_flag_spec='${wl}-E' | |
9190 else | |
9191 case $host_os in | |
9192 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9194 hardcode_libdir_flag_spec='-R$libdir' | |
9195 ;; | |
9196 *) | |
9197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9199 ;; | |
9200 esac | |
9201 fi | |
9202 else | |
9203 ld_shlibs=no | |
9204 fi | |
9205 ;; | |
9206 | |
9207 os2*) | |
9208 hardcode_libdir_flag_spec='-L$libdir' | |
9209 hardcode_minus_L=yes | |
9210 allow_undefined_flag=unsupported | |
9211 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' | |
9212 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9213 ;; | |
9214 | |
9215 osf3*) | |
9216 if test "$GCC" = yes; then | |
9217 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9218 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9219 else | |
9220 allow_undefined_flag=' -expect_unresolved \*' | |
9221 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9222 fi | |
9223 archive_cmds_need_lc='no' | |
9224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9225 hardcode_libdir_separator=: | |
9226 ;; | |
9227 | |
9228 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9229 if test "$GCC" = yes; then | |
9230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9231 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9233 else | |
9234 allow_undefined_flag=' -expect_unresolved \*' | |
9235 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9236 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
9237 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
9238 | |
9239 # Both c and cxx compiler support -rpath directly | |
9240 hardcode_libdir_flag_spec='-rpath $libdir' | |
9241 fi | |
9242 archive_cmds_need_lc='no' | |
9243 hardcode_libdir_separator=: | |
9244 ;; | |
9245 | |
9246 solaris*) | |
9247 no_undefined_flag=' -z defs' | |
9248 if test "$GCC" = yes; then | |
9249 wlarc='${wl}' | |
9250 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9251 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9252 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9253 else | |
9254 case `$CC -V 2>&1` in | |
9255 *"Compilers 5.0"*) | |
9256 wlarc='' | |
9257 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9258 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9259 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9260 ;; | |
9261 *) | |
9262 wlarc='${wl}' | |
9263 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9265 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9266 ;; | |
9267 esac | |
9268 fi | |
9269 hardcode_libdir_flag_spec='-R$libdir' | |
9270 hardcode_shlibpath_var=no | |
9271 case $host_os in | |
9272 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9273 *) | |
9274 # The compiler driver will combine and reorder linker options, | |
9275 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9276 # but is careful enough not to reorder. | |
9277 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9278 if test "$GCC" = yes; then | |
9279 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9280 else | |
9281 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9282 fi | |
9283 ;; | |
9284 esac | |
9285 link_all_deplibs=yes | |
9286 ;; | |
9287 | |
9288 sunos4*) | |
9289 if test "x$host_vendor" = xsequent; then | |
9290 # Use $CC to link under sequent, because it throws in some extra .o | |
9291 # files that make .init and .fini sections work. | |
9292 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9293 else | |
9294 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9295 fi | |
9296 hardcode_libdir_flag_spec='-L$libdir' | |
9297 hardcode_direct=yes | |
9298 hardcode_minus_L=yes | |
9299 hardcode_shlibpath_var=no | |
9300 ;; | |
9301 | |
9302 sysv4) | |
9303 case $host_vendor in | |
9304 sni) | |
9305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9306 hardcode_direct=yes # is this really true??? | |
9307 ;; | |
9308 siemens) | |
9309 ## LD is ld it makes a PLAMLIB | |
9310 ## CC just makes a GrossModule. | |
9311 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9312 reload_cmds='$CC -r -o $output$reload_objs' | |
9313 hardcode_direct=no | |
9314 ;; | |
9315 motorola) | |
9316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9317 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9318 ;; | |
9319 esac | |
9320 runpath_var='LD_RUN_PATH' | |
9321 hardcode_shlibpath_var=no | |
9322 ;; | |
9323 | |
9324 sysv4.3*) | |
9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9326 hardcode_shlibpath_var=no | |
9327 export_dynamic_flag_spec='-Bexport' | |
9328 ;; | |
9329 | |
9330 sysv4*MP*) | |
9331 if test -d /usr/nec; then | |
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9333 hardcode_shlibpath_var=no | |
9334 runpath_var=LD_RUN_PATH | |
9335 hardcode_runpath_var=yes | |
9336 ld_shlibs=yes | |
9337 fi | |
9338 ;; | |
9339 | |
9340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9341 no_undefined_flag='${wl}-z,text' | |
9342 archive_cmds_need_lc=no | |
9343 hardcode_shlibpath_var=no | |
9344 runpath_var='LD_RUN_PATH' | |
9345 | |
9346 if test "$GCC" = yes; then | |
9347 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9348 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9349 else | |
9350 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9351 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9352 fi | |
9353 ;; | |
9354 | |
9355 sysv5* | sco3.2v5* | sco5v6*) | |
9356 # Note: We can NOT use -z defs as we might desire, because we do not | |
9357 # link with -lc, and that would cause any symbols used from libc to | |
9358 # always be unresolved, which means just about no library would | |
9359 # ever link correctly. If we're not using GNU ld we use -z text | |
9360 # though, which does catch some bad symbols but isn't as heavy-handed | |
9361 # as -z defs. | |
9362 no_undefined_flag='${wl}-z,text' | |
9363 allow_undefined_flag='${wl}-z,nodefs' | |
9364 archive_cmds_need_lc=no | |
9365 hardcode_shlibpath_var=no | |
9366 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9367 hardcode_libdir_separator=':' | |
9368 link_all_deplibs=yes | |
9369 export_dynamic_flag_spec='${wl}-Bexport' | |
9370 runpath_var='LD_RUN_PATH' | |
9371 | |
9372 if test "$GCC" = yes; then | |
9373 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9374 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9375 else | |
9376 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9377 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9378 fi | |
9379 ;; | |
9380 | |
9381 uts4*) | |
9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9383 hardcode_libdir_flag_spec='-L$libdir' | |
9384 hardcode_shlibpath_var=no | |
9385 ;; | |
9386 | |
9387 *) | |
9388 ld_shlibs=no | |
9389 ;; | |
9390 esac | |
9391 | |
9392 if test x$host_vendor = xsni; then | |
9393 case $host in | |
9394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9395 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9396 ;; | |
9397 esac | |
9398 fi | |
9399 fi | |
9400 | |
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9402 $as_echo "$ld_shlibs" >&6; } | |
9403 test "$ld_shlibs" = no && can_build_shared=no | |
9404 | |
9405 with_gnu_ld=$with_gnu_ld | |
9406 | |
9407 | |
9408 | |
9409 | |
9410 | |
9411 | |
9412 | |
9413 | |
9414 | |
9415 | |
9416 | |
9417 | |
9418 | |
9419 | |
9420 | |
9421 # | |
9422 # Do we need to explicitly link libc? | |
9423 # | |
9424 case "x$archive_cmds_need_lc" in | |
9425 x|xyes) | |
9426 # Assume -lc should be added | |
9427 archive_cmds_need_lc=yes | |
9428 | |
9429 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9430 case $archive_cmds in | |
9431 *'~'*) | |
9432 # FIXME: we may have to deal with multi-command sequences. | |
9433 ;; | |
9434 '$CC '*) | |
9435 # Test whether the compiler implicitly links with -lc since on some | |
9436 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9437 # to ld, don't add -lc before -lgcc. | |
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9439 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9440 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
9441 $as_echo_n "(cached) " >&6 | |
9442 else | |
9443 $RM conftest* | |
9444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9445 | |
9446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9447 (eval $ac_compile) 2>&5 | |
9448 ac_status=$? | |
9449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9450 test $ac_status = 0; } 2>conftest.err; then | |
9451 soname=conftest | |
9452 lib=conftest | |
9453 libobjs=conftest.$ac_objext | |
9454 deplibs= | |
9455 wl=$lt_prog_compiler_wl | |
9456 pic_flag=$lt_prog_compiler_pic | |
9457 compiler_flags=-v | |
9458 linker_flags=-v | |
9459 verstring= | |
9460 output_objdir=. | |
9461 libname=conftest | |
9462 lt_save_allow_undefined_flag=$allow_undefined_flag | |
9463 allow_undefined_flag= | |
9464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9465 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9466 ac_status=$? | |
9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9468 test $ac_status = 0; } | |
9469 then | |
9470 lt_cv_archive_cmds_need_lc=no | |
9471 else | |
9472 lt_cv_archive_cmds_need_lc=yes | |
9473 fi | |
9474 allow_undefined_flag=$lt_save_allow_undefined_flag | |
9475 else | |
9476 cat conftest.err 1>&5 | |
9477 fi | |
9478 $RM conftest* | |
9479 | |
9480 fi | |
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9482 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9483 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
9484 ;; | |
9485 esac | |
9486 fi | |
9487 ;; | |
9488 esac | |
9489 | |
9490 | |
9491 | |
9492 | |
9493 | |
9494 | |
9495 | |
9496 | |
9497 | |
9498 | |
9499 | |
9500 | |
9501 | |
9502 | |
9503 | |
9504 | |
9505 | |
9506 | |
9507 | |
9508 | |
9509 | |
9510 | |
9511 | |
9512 | |
9513 | |
9514 | |
9515 | |
9516 | |
9517 | |
9518 | |
9519 | |
9520 | |
9521 | |
9522 | |
9523 | |
9524 | |
9525 | |
9526 | |
9527 | |
9528 | |
9529 | |
9530 | |
9531 | |
9532 | |
9533 | |
9534 | |
9535 | |
9536 | |
9537 | |
9538 | |
9539 | |
9540 | |
9541 | |
9542 | |
9543 | |
9544 | |
9545 | |
9546 | |
9547 | |
9548 | |
9549 | |
9550 | |
9551 | |
9552 | |
9553 | |
9554 | |
9555 | |
9556 | |
9557 | |
9558 | |
9559 | |
9560 | |
9561 | |
9562 | |
9563 | |
9564 | |
9565 | |
9566 | |
9567 | |
9568 | |
9569 | |
9570 | |
9571 | |
9572 | |
9573 | |
9574 | |
9575 | |
9576 | |
9577 | |
9578 | |
9579 | |
9580 | |
9581 | |
9582 | |
9583 | |
9584 | |
9585 | |
9586 | |
9587 | |
9588 | |
9589 | |
9590 | |
9591 | |
9592 | |
9593 | |
9594 | |
9595 | |
9596 | |
9597 | |
9598 | |
9599 | |
9600 | |
9601 | |
9602 | |
9603 | |
9604 | |
9605 | |
9606 | |
9607 | |
9608 | |
9609 | |
9610 | |
9611 | |
9612 | |
9613 | |
9614 | |
9615 | |
9616 | |
9617 | |
9618 | |
9619 | |
9620 | |
9621 | |
9622 | |
9623 | |
9624 | |
9625 | |
9626 | |
9627 | |
9628 | |
9629 | |
9630 | |
9631 | |
9632 | |
9633 | |
9634 | |
9635 | |
9636 | |
9637 | |
9638 | |
9639 | |
9640 | |
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
9642 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9643 | |
9644 if test "$GCC" = yes; then | |
9645 case $host_os in | |
9646 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9647 *) lt_awk_arg="/^libraries:/" ;; | |
9648 esac | |
9649 case $host_os in | |
9650 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9651 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9652 esac | |
9653 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9654 case $lt_search_path_spec in | |
9655 *\;*) | |
9656 # if the path contains ";" then we assume it to be the separator | |
9657 # otherwise default to the standard path separator (i.e. ":") - it is | |
9658 # assumed that no part of a normal pathname contains ";" but that should | |
9659 # okay in the real world where ";" in dirpaths is itself problematic. | |
9660 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
9661 ;; | |
9662 *) | |
9663 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9664 ;; | |
9665 esac | |
9666 # Ok, now we have the path, separated by spaces, we can step through it | |
9667 # and add multilib dir if necessary. | |
9668 lt_tmp_lt_search_path_spec= | |
9669 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9670 for lt_sys_path in $lt_search_path_spec; do | |
9671 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9673 else | |
9674 test -d "$lt_sys_path" && \ | |
9675 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9676 fi | |
9677 done | |
9678 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
9679 BEGIN {RS=" "; FS="/|\n";} { | |
9680 lt_foo=""; | |
9681 lt_count=0; | |
9682 for (lt_i = NF; lt_i > 0; lt_i--) { | |
9683 if ($lt_i != "" && $lt_i != ".") { | |
9684 if ($lt_i == "..") { | |
9685 lt_count++; | |
9686 } else { | |
9687 if (lt_count == 0) { | |
9688 lt_foo="/" $lt_i lt_foo; | |
9689 } else { | |
9690 lt_count--; | |
9691 } | |
9692 } | |
9693 } | |
9694 } | |
9695 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9696 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9697 }'` | |
9698 # AWK program above erroneously prepends '/' to C:/dos/paths | |
9699 # for these hosts. | |
9700 case $host_os in | |
9701 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9702 $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9703 esac | |
9704 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
9705 else | |
9706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9707 fi | |
9708 library_names_spec= | |
9709 libname_spec='lib$name' | |
9710 soname_spec= | |
9711 shrext_cmds=".so" | |
9712 postinstall_cmds= | |
9713 postuninstall_cmds= | |
9714 finish_cmds= | |
9715 finish_eval= | |
9716 shlibpath_var= | |
9717 shlibpath_overrides_runpath=unknown | |
9718 version_type=none | |
9719 dynamic_linker="$host_os ld.so" | |
9720 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9721 need_lib_prefix=unknown | |
9722 hardcode_into_libs=no | |
9723 | |
9724 # when you set need_version to no, make sure it does not cause -set_version | |
9725 # flags to be left without arguments | |
9726 need_version=unknown | |
9727 | |
9728 case $host_os in | |
9729 aix3*) | |
9730 version_type=linux # correct to gnu/linux during the next big refactor | |
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9732 shlibpath_var=LIBPATH | |
9733 | |
9734 # AIX 3 has no versioning support, so we append a major version to the name. | |
9735 soname_spec='${libname}${release}${shared_ext}$major' | |
9736 ;; | |
9737 | |
9738 aix[4-9]*) | |
9739 version_type=linux # correct to gnu/linux during the next big refactor | |
9740 need_lib_prefix=no | |
9741 need_version=no | |
9742 hardcode_into_libs=yes | |
9743 if test "$host_cpu" = ia64; then | |
9744 # AIX 5 supports IA64 | |
9745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9746 shlibpath_var=LD_LIBRARY_PATH | |
9747 else | |
9748 # With GCC up to 2.95.x, collect2 would create an import file | |
9749 # for dependence libraries. The import file would start with | |
9750 # the line `#! .'. This would cause the generated library to | |
9751 # depend on `.', always an invalid library. This was fixed in | |
9752 # development snapshots of GCC prior to 3.0. | |
9753 case $host_os in | |
9754 aix4 | aix4.[01] | aix4.[01].*) | |
9755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9756 echo ' yes ' | |
9757 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9758 : | |
9759 else | |
9760 can_build_shared=no | |
9761 fi | |
9762 ;; | |
9763 esac | |
9764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9765 # soname into executable. Probably we can add versioning support to | |
9766 # collect2, so additional links can be useful in future. | |
9767 if test "$aix_use_runtimelinking" = yes; then | |
9768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9769 # instead of lib<name>.a to let people know that these are not | |
9770 # typical AIX shared libraries. | |
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9772 else | |
9773 # We preserve .a as extension for shared libraries through AIX4.2 | |
9774 # and later when we are not doing run time linking. | |
9775 library_names_spec='${libname}${release}.a $libname.a' | |
9776 soname_spec='${libname}${release}${shared_ext}$major' | |
9777 fi | |
9778 shlibpath_var=LIBPATH | |
9779 fi | |
9780 ;; | |
9781 | |
9782 amigaos*) | |
9783 case $host_cpu in | |
9784 powerpc) | |
9785 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9786 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9788 ;; | |
9789 m68k) | |
9790 library_names_spec='$libname.ixlibrary $libname.a' | |
9791 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9792 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
9793 ;; | |
9794 esac | |
9795 ;; | |
9796 | |
9797 beos*) | |
9798 library_names_spec='${libname}${shared_ext}' | |
9799 dynamic_linker="$host_os ld.so" | |
9800 shlibpath_var=LIBRARY_PATH | |
9801 ;; | |
9802 | |
9803 bsdi[45]*) | |
9804 version_type=linux # correct to gnu/linux during the next big refactor | |
9805 need_version=no | |
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9807 soname_spec='${libname}${release}${shared_ext}$major' | |
9808 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9809 shlibpath_var=LD_LIBRARY_PATH | |
9810 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9811 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9812 # the default ld.so.conf also contains /usr/contrib/lib and | |
9813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9814 # libtool to hard-code these into programs | |
9815 ;; | |
9816 | |
9817 cygwin* | mingw* | pw32* | cegcc*) | |
9818 version_type=windows | |
9819 shrext_cmds=".dll" | |
9820 need_version=no | |
9821 need_lib_prefix=no | |
9822 | |
9823 case $GCC,$cc_basename in | |
9824 yes,*) | |
9825 # gcc | |
9826 library_names_spec='$libname.dll.a' | |
9827 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9828 postinstall_cmds='base_file=`basename \${file}`~ | |
9829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9830 dldir=$destdir/`dirname \$dlpath`~ | |
9831 test -d \$dldir || mkdir -p \$dldir~ | |
9832 $install_prog $dir/$dlname \$dldir/$dlname~ | |
9833 chmod a+x \$dldir/$dlname~ | |
9834 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9835 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9836 fi' | |
9837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9838 dlpath=$dir/\$dldll~ | |
9839 $RM \$dlpath' | |
9840 shlibpath_overrides_runpath=yes | |
9841 | |
9842 case $host_os in | |
9843 cygwin*) | |
9844 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9846 | |
9847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
9848 ;; | |
9849 mingw* | cegcc*) | |
9850 # MinGW DLLs use traditional 'lib' prefix | |
9851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9852 ;; | |
9853 pw32*) | |
9854 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9856 ;; | |
9857 esac | |
9858 dynamic_linker='Win32 ld.exe' | |
9859 ;; | |
9860 | |
9861 *,cl*) | |
9862 # Native MSVC | |
9863 libname_spec='$name' | |
9864 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9865 library_names_spec='${libname}.dll.lib' | |
9866 | |
9867 case $build_os in | |
9868 mingw*) | |
9869 sys_lib_search_path_spec= | |
9870 lt_save_ifs=$IFS | |
9871 IFS=';' | |
9872 for lt_path in $LIB | |
9873 do | |
9874 IFS=$lt_save_ifs | |
9875 # Let DOS variable expansion print the short 8.3 style file name. | |
9876 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
9877 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
9878 done | |
9879 IFS=$lt_save_ifs | |
9880 # Convert to MSYS style. | |
9881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
9882 ;; | |
9883 cygwin*) | |
9884 # Convert to unix form, then to dos form, then back to unix form | |
9885 # but this time dos style (no spaces!) so that the unix form looks | |
9886 # like /cygdrive/c/PROGRA~1:/cygdr... | |
9887 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
9888 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
9889 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9890 ;; | |
9891 *) | |
9892 sys_lib_search_path_spec="$LIB" | |
9893 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9894 # It is most probably a Windows format PATH. | |
9895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9896 else | |
9897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9898 fi | |
9899 # FIXME: find the short name or the path components, as spaces are | |
9900 # common. (e.g. "Program Files" -> "PROGRA~1") | |
9901 ;; | |
9902 esac | |
9903 | |
9904 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9905 postinstall_cmds='base_file=`basename \${file}`~ | |
9906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9907 dldir=$destdir/`dirname \$dlpath`~ | |
9908 test -d \$dldir || mkdir -p \$dldir~ | |
9909 $install_prog $dir/$dlname \$dldir/$dlname' | |
9910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9911 dlpath=$dir/\$dldll~ | |
9912 $RM \$dlpath' | |
9913 shlibpath_overrides_runpath=yes | |
9914 dynamic_linker='Win32 link.exe' | |
9915 ;; | |
9916 | |
9917 *) | |
9918 # Assume MSVC wrapper | |
9919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9920 dynamic_linker='Win32 ld.exe' | |
9921 ;; | |
9922 esac | |
9923 # FIXME: first we should search . and the directory the executable is in | |
9924 shlibpath_var=PATH | |
9925 ;; | |
9926 | |
9927 darwin* | rhapsody*) | |
9928 dynamic_linker="$host_os dyld" | |
9929 version_type=darwin | |
9930 need_lib_prefix=no | |
9931 need_version=no | |
9932 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9933 soname_spec='${libname}${release}${major}$shared_ext' | |
9934 shlibpath_overrides_runpath=yes | |
9935 shlibpath_var=DYLD_LIBRARY_PATH | |
9936 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9937 | |
9938 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9940 ;; | |
9941 | |
9942 dgux*) | |
9943 version_type=linux # correct to gnu/linux during the next big refactor | |
9944 need_lib_prefix=no | |
9945 need_version=no | |
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9947 soname_spec='${libname}${release}${shared_ext}$major' | |
9948 shlibpath_var=LD_LIBRARY_PATH | |
9949 ;; | |
9950 | |
9951 freebsd* | dragonfly*) | |
9952 # DragonFly does not have aout. When/if they implement a new | |
9953 # versioning mechanism, adjust this. | |
9954 if test -x /usr/bin/objformat; then | |
9955 objformat=`/usr/bin/objformat` | |
9956 else | |
9957 case $host_os in | |
9958 freebsd[23].*) objformat=aout ;; | |
9959 *) objformat=elf ;; | |
9960 esac | |
9961 fi | |
9962 version_type=freebsd-$objformat | |
9963 case $version_type in | |
9964 freebsd-elf*) | |
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9966 need_version=no | |
9967 need_lib_prefix=no | |
9968 ;; | |
9969 freebsd-*) | |
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9971 need_version=yes | |
9972 ;; | |
9973 esac | |
9974 shlibpath_var=LD_LIBRARY_PATH | |
9975 case $host_os in | |
9976 freebsd2.*) | |
9977 shlibpath_overrides_runpath=yes | |
9978 ;; | |
9979 freebsd3.[01]* | freebsdelf3.[01]*) | |
9980 shlibpath_overrides_runpath=yes | |
9981 hardcode_into_libs=yes | |
9982 ;; | |
9983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9985 shlibpath_overrides_runpath=no | |
9986 hardcode_into_libs=yes | |
9987 ;; | |
9988 *) # from 4.6 on, and DragonFly | |
9989 shlibpath_overrides_runpath=yes | |
9990 hardcode_into_libs=yes | |
9991 ;; | |
9992 esac | |
9993 ;; | |
9994 | |
9995 gnu*) | |
9996 version_type=linux # correct to gnu/linux during the next big refactor | |
9997 need_lib_prefix=no | |
9998 need_version=no | |
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10000 soname_spec='${libname}${release}${shared_ext}$major' | |
10001 shlibpath_var=LD_LIBRARY_PATH | |
10002 shlibpath_overrides_runpath=no | |
10003 hardcode_into_libs=yes | |
10004 ;; | |
10005 | |
10006 haiku*) | |
10007 version_type=linux # correct to gnu/linux during the next big refactor | |
10008 need_lib_prefix=no | |
10009 need_version=no | |
10010 dynamic_linker="$host_os runtime_loader" | |
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10012 soname_spec='${libname}${release}${shared_ext}$major' | |
10013 shlibpath_var=LIBRARY_PATH | |
10014 shlibpath_overrides_runpath=yes | |
10015 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10016 hardcode_into_libs=yes | |
10017 ;; | |
10018 | |
10019 hpux9* | hpux10* | hpux11*) | |
10020 # Give a soname corresponding to the major version so that dld.sl refuses to | |
10021 # link against other versions. | |
10022 version_type=sunos | |
10023 need_lib_prefix=no | |
10024 need_version=no | |
10025 case $host_cpu in | |
10026 ia64*) | |
10027 shrext_cmds='.so' | |
10028 hardcode_into_libs=yes | |
10029 dynamic_linker="$host_os dld.so" | |
10030 shlibpath_var=LD_LIBRARY_PATH | |
10031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10033 soname_spec='${libname}${release}${shared_ext}$major' | |
10034 if test "X$HPUX_IA64_MODE" = X32; then | |
10035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10036 else | |
10037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10038 fi | |
10039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10040 ;; | |
10041 hppa*64*) | |
10042 shrext_cmds='.sl' | |
10043 hardcode_into_libs=yes | |
10044 dynamic_linker="$host_os dld.sl" | |
10045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10048 soname_spec='${libname}${release}${shared_ext}$major' | |
10049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10051 ;; | |
10052 *) | |
10053 shrext_cmds='.sl' | |
10054 dynamic_linker="$host_os dld.sl" | |
10055 shlibpath_var=SHLIB_PATH | |
10056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10058 soname_spec='${libname}${release}${shared_ext}$major' | |
10059 ;; | |
10060 esac | |
10061 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10062 postinstall_cmds='chmod 555 $lib' | |
10063 # or fails outright, so override atomically: | |
10064 install_override_mode=555 | |
10065 ;; | |
10066 | |
10067 interix[3-9]*) | |
10068 version_type=linux # correct to gnu/linux during the next big refactor | |
10069 need_lib_prefix=no | |
10070 need_version=no | |
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10072 soname_spec='${libname}${release}${shared_ext}$major' | |
10073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10074 shlibpath_var=LD_LIBRARY_PATH | |
10075 shlibpath_overrides_runpath=no | |
10076 hardcode_into_libs=yes | |
10077 ;; | |
10078 | |
10079 irix5* | irix6* | nonstopux*) | |
10080 case $host_os in | |
10081 nonstopux*) version_type=nonstopux ;; | |
10082 *) | |
10083 if test "$lt_cv_prog_gnu_ld" = yes; then | |
10084 version_type=linux # correct to gnu/linux during the next big refactor | |
10085 else | |
10086 version_type=irix | |
10087 fi ;; | |
10088 esac | |
10089 need_lib_prefix=no | |
10090 need_version=no | |
10091 soname_spec='${libname}${release}${shared_ext}$major' | |
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10093 case $host_os in | |
10094 irix5* | nonstopux*) | |
10095 libsuff= shlibsuff= | |
10096 ;; | |
10097 *) | |
10098 case $LD in # libtool.m4 will add one of these switches to LD | |
10099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10100 libsuff= shlibsuff= libmagic=32-bit;; | |
10101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10102 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10104 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10105 *) libsuff= shlibsuff= libmagic=never-match;; | |
10106 esac | |
10107 ;; | |
10108 esac | |
10109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10110 shlibpath_overrides_runpath=no | |
10111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10113 hardcode_into_libs=yes | |
10114 ;; | |
10115 | |
10116 # No shared lib support for Linux oldld, aout, or coff. | |
10117 linux*oldld* | linux*aout* | linux*coff*) | |
10118 dynamic_linker=no | |
10119 ;; | |
10120 | |
10121 # This must be glibc/ELF. | |
10122 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10123 version_type=linux # correct to gnu/linux during the next big refactor | |
10124 need_lib_prefix=no | |
10125 need_version=no | |
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10127 soname_spec='${libname}${release}${shared_ext}$major' | |
10128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10129 shlibpath_var=LD_LIBRARY_PATH | |
10130 shlibpath_overrides_runpath=no | |
10131 | |
10132 # Some binutils ld are patched to set DT_RUNPATH | |
10133 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
10134 $as_echo_n "(cached) " >&6 | |
10135 else | |
10136 lt_cv_shlibpath_overrides_runpath=no | |
10137 save_LDFLAGS=$LDFLAGS | |
10138 save_libdir=$libdir | |
10139 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10140 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10142 /* end confdefs.h. */ | |
10143 | |
10144 int | |
10145 main () | |
10146 { | |
10147 | |
10148 ; | |
10149 return 0; | |
10150 } | |
10151 _ACEOF | |
10152 if ac_fn_c_try_link "$LINENO"; then : | |
10153 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10154 lt_cv_shlibpath_overrides_runpath=yes | |
10155 fi | |
10156 fi | |
10157 rm -f core conftest.err conftest.$ac_objext \ | |
10158 conftest$ac_exeext conftest.$ac_ext | |
10159 LDFLAGS=$save_LDFLAGS | |
10160 libdir=$save_libdir | |
10161 | |
10162 fi | |
10163 | |
10164 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10165 | |
10166 # This implies no fast_install, which is unacceptable. | |
10167 # Some rework will be needed to allow for fast_install | |
10168 # before this can be enabled. | |
10169 hardcode_into_libs=yes | |
10170 | |
10171 # Append ld.so.conf contents to the search path | |
10172 if test -f /etc/ld.so.conf; then | |
10173 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
10174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10175 fi | |
10176 | |
10177 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10178 # powerpc, because MkLinux only supported shared libraries with the | |
10179 # GNU dynamic linker. Since this was broken with cross compilers, | |
10180 # most powerpc-linux boxes support dynamic linking these days and | |
10181 # people can always --disable-shared, the test was removed, and we | |
10182 # assume the GNU/Linux dynamic linker is in use. | |
10183 dynamic_linker='GNU/Linux ld.so' | |
10184 ;; | |
10185 | |
10186 netbsdelf*-gnu) | |
10187 version_type=linux | |
10188 need_lib_prefix=no | |
10189 need_version=no | |
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10191 soname_spec='${libname}${release}${shared_ext}$major' | |
10192 shlibpath_var=LD_LIBRARY_PATH | |
10193 shlibpath_overrides_runpath=no | |
10194 hardcode_into_libs=yes | |
10195 dynamic_linker='NetBSD ld.elf_so' | |
10196 ;; | |
10197 | |
10198 netbsd*) | |
10199 version_type=sunos | |
10200 need_lib_prefix=no | |
10201 need_version=no | |
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10205 dynamic_linker='NetBSD (a.out) ld.so' | |
10206 else | |
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10208 soname_spec='${libname}${release}${shared_ext}$major' | |
10209 dynamic_linker='NetBSD ld.elf_so' | |
10210 fi | |
10211 shlibpath_var=LD_LIBRARY_PATH | |
10212 shlibpath_overrides_runpath=yes | |
10213 hardcode_into_libs=yes | |
10214 ;; | |
10215 | |
10216 newsos6) | |
10217 version_type=linux # correct to gnu/linux during the next big refactor | |
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10219 shlibpath_var=LD_LIBRARY_PATH | |
10220 shlibpath_overrides_runpath=yes | |
10221 ;; | |
10222 | |
10223 *nto* | *qnx*) | |
10224 version_type=qnx | |
10225 need_lib_prefix=no | |
10226 need_version=no | |
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10228 soname_spec='${libname}${release}${shared_ext}$major' | |
10229 shlibpath_var=LD_LIBRARY_PATH | |
10230 shlibpath_overrides_runpath=no | |
10231 hardcode_into_libs=yes | |
10232 dynamic_linker='ldqnx.so' | |
10233 ;; | |
10234 | |
10235 openbsd*) | |
10236 version_type=sunos | |
10237 sys_lib_dlsearch_path_spec="/usr/lib" | |
10238 need_lib_prefix=no | |
10239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10240 case $host_os in | |
10241 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10242 *) need_version=no ;; | |
10243 esac | |
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10246 shlibpath_var=LD_LIBRARY_PATH | |
10247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10248 case $host_os in | |
10249 openbsd2.[89] | openbsd2.[89].*) | |
10250 shlibpath_overrides_runpath=no | |
10251 ;; | |
10252 *) | |
10253 shlibpath_overrides_runpath=yes | |
10254 ;; | |
10255 esac | |
10256 else | |
10257 shlibpath_overrides_runpath=yes | |
10258 fi | |
10259 ;; | |
10260 | |
10261 os2*) | |
10262 libname_spec='$name' | |
10263 shrext_cmds=".dll" | |
10264 need_lib_prefix=no | |
10265 library_names_spec='$libname${shared_ext} $libname.a' | |
10266 dynamic_linker='OS/2 ld.exe' | |
10267 shlibpath_var=LIBPATH | |
10268 ;; | |
10269 | |
10270 osf3* | osf4* | osf5*) | |
10271 version_type=osf | |
10272 need_lib_prefix=no | |
10273 need_version=no | |
10274 soname_spec='${libname}${release}${shared_ext}$major' | |
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10276 shlibpath_var=LD_LIBRARY_PATH | |
10277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10279 ;; | |
10280 | |
10281 rdos*) | |
10282 dynamic_linker=no | |
10283 ;; | |
10284 | |
10285 solaris*) | |
10286 version_type=linux # correct to gnu/linux during the next big refactor | |
10287 need_lib_prefix=no | |
10288 need_version=no | |
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10290 soname_spec='${libname}${release}${shared_ext}$major' | |
10291 shlibpath_var=LD_LIBRARY_PATH | |
10292 shlibpath_overrides_runpath=yes | |
10293 hardcode_into_libs=yes | |
10294 # ldd complains unless libraries are executable | |
10295 postinstall_cmds='chmod +x $lib' | |
10296 ;; | |
10297 | |
10298 sunos4*) | |
10299 version_type=sunos | |
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10302 shlibpath_var=LD_LIBRARY_PATH | |
10303 shlibpath_overrides_runpath=yes | |
10304 if test "$with_gnu_ld" = yes; then | |
10305 need_lib_prefix=no | |
10306 fi | |
10307 need_version=yes | |
10308 ;; | |
10309 | |
10310 sysv4 | sysv4.3*) | |
10311 version_type=linux # correct to gnu/linux during the next big refactor | |
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10313 soname_spec='${libname}${release}${shared_ext}$major' | |
10314 shlibpath_var=LD_LIBRARY_PATH | |
10315 case $host_vendor in | |
10316 sni) | |
10317 shlibpath_overrides_runpath=no | |
10318 need_lib_prefix=no | |
10319 runpath_var=LD_RUN_PATH | |
10320 ;; | |
10321 siemens) | |
10322 need_lib_prefix=no | |
10323 ;; | |
10324 motorola) | |
10325 need_lib_prefix=no | |
10326 need_version=no | |
10327 shlibpath_overrides_runpath=no | |
10328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10329 ;; | |
10330 esac | |
10331 ;; | |
10332 | |
10333 sysv4*MP*) | |
10334 if test -d /usr/nec ;then | |
10335 version_type=linux # correct to gnu/linux during the next big refactor | |
10336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10337 soname_spec='$libname${shared_ext}.$major' | |
10338 shlibpath_var=LD_LIBRARY_PATH | |
10339 fi | |
10340 ;; | |
10341 | |
10342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10343 version_type=freebsd-elf | |
10344 need_lib_prefix=no | |
10345 need_version=no | |
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10347 soname_spec='${libname}${release}${shared_ext}$major' | |
10348 shlibpath_var=LD_LIBRARY_PATH | |
10349 shlibpath_overrides_runpath=yes | |
10350 hardcode_into_libs=yes | |
10351 if test "$with_gnu_ld" = yes; then | |
10352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10353 else | |
10354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10355 case $host_os in | |
10356 sco3.2v5*) | |
10357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10358 ;; | |
10359 esac | |
10360 fi | |
10361 sys_lib_dlsearch_path_spec='/usr/lib' | |
10362 ;; | |
10363 | |
10364 tpf*) | |
10365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10366 version_type=linux # correct to gnu/linux during the next big refactor | |
10367 need_lib_prefix=no | |
10368 need_version=no | |
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10370 shlibpath_var=LD_LIBRARY_PATH | |
10371 shlibpath_overrides_runpath=no | |
10372 hardcode_into_libs=yes | |
10373 ;; | |
10374 | |
10375 uts4*) | |
10376 version_type=linux # correct to gnu/linux during the next big refactor | |
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10378 soname_spec='${libname}${release}${shared_ext}$major' | |
10379 shlibpath_var=LD_LIBRARY_PATH | |
10380 ;; | |
10381 | |
10382 *) | |
10383 dynamic_linker=no | |
10384 ;; | |
10385 esac | |
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10387 $as_echo "$dynamic_linker" >&6; } | |
10388 test "$dynamic_linker" = no && can_build_shared=no | |
10389 | |
10390 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10391 if test "$GCC" = yes; then | |
10392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10393 fi | |
10394 | |
10395 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10397 fi | |
10398 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10400 fi | |
10401 | |
10402 | |
10403 | |
10404 | |
10405 | |
10406 | |
10407 | |
10408 | |
10409 | |
10410 | |
10411 | |
10412 | |
10413 | |
10414 | |
10415 | |
10416 | |
10417 | |
10418 | |
10419 | |
10420 | |
10421 | |
10422 | |
10423 | |
10424 | |
10425 | |
10426 | |
10427 | |
10428 | |
10429 | |
10430 | |
10431 | |
10432 | |
10433 | |
10434 | |
10435 | |
10436 | |
10437 | |
10438 | |
10439 | |
10440 | |
10441 | |
10442 | |
10443 | |
10444 | |
10445 | |
10446 | |
10447 | |
10448 | |
10449 | |
10450 | |
10451 | |
10452 | |
10453 | |
10454 | |
10455 | |
10456 | |
10457 | |
10458 | |
10459 | |
10460 | |
10461 | |
10462 | |
10463 | |
10464 | |
10465 | |
10466 | |
10467 | |
10468 | |
10469 | |
10470 | |
10471 | |
10472 | |
10473 | |
10474 | |
10475 | |
10476 | |
10477 | |
10478 | |
10479 | |
10480 | |
10481 | |
10482 | |
10483 | |
10484 | |
10485 | |
10486 | |
10487 | |
10488 | |
10489 | |
10490 | |
10491 | |
10492 | |
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10494 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10495 hardcode_action= | |
10496 if test -n "$hardcode_libdir_flag_spec" || | |
10497 test -n "$runpath_var" || | |
10498 test "X$hardcode_automatic" = "Xyes" ; then | |
10499 | |
10500 # We can hardcode non-existent directories. | |
10501 if test "$hardcode_direct" != no && | |
10502 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10503 # have to relink, otherwise we might link with an installed library | |
10504 # when we should be linking with a yet-to-be-installed one | |
10505 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10506 test "$hardcode_minus_L" != no; then | |
10507 # Linking always hardcodes the temporary library directory. | |
10508 hardcode_action=relink | |
10509 else | |
10510 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10511 hardcode_action=immediate | |
10512 fi | |
10513 else | |
10514 # We cannot hardcode anything, or else we can only hardcode existing | |
10515 # directories. | |
10516 hardcode_action=unsupported | |
10517 fi | |
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
10519 $as_echo "$hardcode_action" >&6; } | |
10520 | |
10521 if test "$hardcode_action" = relink || | |
10522 test "$inherit_rpath" = yes; then | |
10523 # Fast installation is not supported | |
10524 enable_fast_install=no | |
10525 elif test "$shlibpath_overrides_runpath" = yes || | |
10526 test "$enable_shared" = no; then | |
10527 # Fast installation is not necessary | |
10528 enable_fast_install=needless | |
10529 fi | |
10530 | |
10531 | |
10532 | |
10533 | |
10534 | |
10535 | |
10536 if test "x$enable_dlopen" != xyes; then | |
10537 enable_dlopen=unknown | |
10538 enable_dlopen_self=unknown | |
10539 enable_dlopen_self_static=unknown | |
10540 else | |
10541 lt_cv_dlopen=no | |
10542 lt_cv_dlopen_libs= | |
10543 | |
10544 case $host_os in | |
10545 beos*) | |
10546 lt_cv_dlopen="load_add_on" | |
10547 lt_cv_dlopen_libs= | |
10548 lt_cv_dlopen_self=yes | |
10549 ;; | |
10550 | |
10551 mingw* | pw32* | cegcc*) | |
10552 lt_cv_dlopen="LoadLibrary" | |
10553 lt_cv_dlopen_libs= | |
10554 ;; | |
10555 | |
10556 cygwin*) | |
10557 lt_cv_dlopen="dlopen" | |
10558 lt_cv_dlopen_libs= | |
10559 ;; | |
10560 | |
10561 darwin*) | |
10562 # if libdl is installed we need to link against it | |
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10564 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10565 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
10566 $as_echo_n "(cached) " >&6 | |
10567 else | |
10568 ac_check_lib_save_LIBS=$LIBS | |
10569 LIBS="-ldl $LIBS" | |
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10571 /* end confdefs.h. */ | |
10572 | |
10573 /* Override any GCC internal prototype to avoid an error. | |
10574 Use char because int might match the return type of a GCC | |
10575 builtin and then its argument prototype would still apply. */ | |
10576 #ifdef __cplusplus | |
10577 extern "C" | |
10578 #endif | |
10579 char dlopen (); | |
10580 int | |
10581 main () | |
10582 { | |
10583 return dlopen (); | |
10584 ; | |
10585 return 0; | |
10586 } | |
10587 _ACEOF | |
10588 if ac_fn_c_try_link "$LINENO"; then : | |
10589 ac_cv_lib_dl_dlopen=yes | |
10590 else | |
10591 ac_cv_lib_dl_dlopen=no | |
10592 fi | |
10593 rm -f core conftest.err conftest.$ac_objext \ | |
10594 conftest$ac_exeext conftest.$ac_ext | |
10595 LIBS=$ac_check_lib_save_LIBS | |
10596 fi | |
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10598 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10599 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
10600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10601 else | |
10602 | |
10603 lt_cv_dlopen="dyld" | |
10604 lt_cv_dlopen_libs= | |
10605 lt_cv_dlopen_self=yes | |
10606 | |
10607 fi | |
10608 | |
10609 ;; | |
10610 | |
10611 *) | |
10612 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10613 if test "x$ac_cv_func_shl_load" = xyes; then : | |
10614 lt_cv_dlopen="shl_load" | |
10615 else | |
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10617 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10618 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
10619 $as_echo_n "(cached) " >&6 | |
10620 else | |
10621 ac_check_lib_save_LIBS=$LIBS | |
10622 LIBS="-ldld $LIBS" | |
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10624 /* end confdefs.h. */ | |
10625 | |
10626 /* Override any GCC internal prototype to avoid an error. | |
10627 Use char because int might match the return type of a GCC | |
10628 builtin and then its argument prototype would still apply. */ | |
10629 #ifdef __cplusplus | |
10630 extern "C" | |
10631 #endif | |
10632 char shl_load (); | |
10633 int | |
10634 main () | |
10635 { | |
10636 return shl_load (); | |
10637 ; | |
10638 return 0; | |
10639 } | |
10640 _ACEOF | |
10641 if ac_fn_c_try_link "$LINENO"; then : | |
10642 ac_cv_lib_dld_shl_load=yes | |
10643 else | |
10644 ac_cv_lib_dld_shl_load=no | |
10645 fi | |
10646 rm -f core conftest.err conftest.$ac_objext \ | |
10647 conftest$ac_exeext conftest.$ac_ext | |
10648 LIBS=$ac_check_lib_save_LIBS | |
10649 fi | |
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
10651 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10652 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
10653 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10654 else | |
10655 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10656 if test "x$ac_cv_func_dlopen" = xyes; then : | |
10657 lt_cv_dlopen="dlopen" | |
10658 else | |
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10660 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10661 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
10662 $as_echo_n "(cached) " >&6 | |
10663 else | |
10664 ac_check_lib_save_LIBS=$LIBS | |
10665 LIBS="-ldl $LIBS" | |
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10667 /* end confdefs.h. */ | |
10668 | |
10669 /* Override any GCC internal prototype to avoid an error. | |
10670 Use char because int might match the return type of a GCC | |
10671 builtin and then its argument prototype would still apply. */ | |
10672 #ifdef __cplusplus | |
10673 extern "C" | |
10674 #endif | |
10675 char dlopen (); | |
10676 int | |
10677 main () | |
10678 { | |
10679 return dlopen (); | |
10680 ; | |
10681 return 0; | |
10682 } | |
10683 _ACEOF | |
10684 if ac_fn_c_try_link "$LINENO"; then : | |
10685 ac_cv_lib_dl_dlopen=yes | |
10686 else | |
10687 ac_cv_lib_dl_dlopen=no | |
10688 fi | |
10689 rm -f core conftest.err conftest.$ac_objext \ | |
10690 conftest$ac_exeext conftest.$ac_ext | |
10691 LIBS=$ac_check_lib_save_LIBS | |
10692 fi | |
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10694 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10695 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
10696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10697 else | |
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
10699 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10700 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
10701 $as_echo_n "(cached) " >&6 | |
10702 else | |
10703 ac_check_lib_save_LIBS=$LIBS | |
10704 LIBS="-lsvld $LIBS" | |
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10706 /* end confdefs.h. */ | |
10707 | |
10708 /* Override any GCC internal prototype to avoid an error. | |
10709 Use char because int might match the return type of a GCC | |
10710 builtin and then its argument prototype would still apply. */ | |
10711 #ifdef __cplusplus | |
10712 extern "C" | |
10713 #endif | |
10714 char dlopen (); | |
10715 int | |
10716 main () | |
10717 { | |
10718 return dlopen (); | |
10719 ; | |
10720 return 0; | |
10721 } | |
10722 _ACEOF | |
10723 if ac_fn_c_try_link "$LINENO"; then : | |
10724 ac_cv_lib_svld_dlopen=yes | |
10725 else | |
10726 ac_cv_lib_svld_dlopen=no | |
10727 fi | |
10728 rm -f core conftest.err conftest.$ac_objext \ | |
10729 conftest$ac_exeext conftest.$ac_ext | |
10730 LIBS=$ac_check_lib_save_LIBS | |
10731 fi | |
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
10733 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10734 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
10735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10736 else | |
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
10738 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10739 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
10740 $as_echo_n "(cached) " >&6 | |
10741 else | |
10742 ac_check_lib_save_LIBS=$LIBS | |
10743 LIBS="-ldld $LIBS" | |
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10745 /* end confdefs.h. */ | |
10746 | |
10747 /* Override any GCC internal prototype to avoid an error. | |
10748 Use char because int might match the return type of a GCC | |
10749 builtin and then its argument prototype would still apply. */ | |
10750 #ifdef __cplusplus | |
10751 extern "C" | |
10752 #endif | |
10753 char dld_link (); | |
10754 int | |
10755 main () | |
10756 { | |
10757 return dld_link (); | |
10758 ; | |
10759 return 0; | |
10760 } | |
10761 _ACEOF | |
10762 if ac_fn_c_try_link "$LINENO"; then : | |
10763 ac_cv_lib_dld_dld_link=yes | |
10764 else | |
10765 ac_cv_lib_dld_dld_link=no | |
10766 fi | |
10767 rm -f core conftest.err conftest.$ac_objext \ | |
10768 conftest$ac_exeext conftest.$ac_ext | |
10769 LIBS=$ac_check_lib_save_LIBS | |
10770 fi | |
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
10772 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10773 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
10774 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10775 fi | |
10776 | |
10777 | |
10778 fi | |
10779 | |
10780 | |
10781 fi | |
10782 | |
10783 | |
10784 fi | |
10785 | |
10786 | |
10787 fi | |
10788 | |
10789 | |
10790 fi | |
10791 | |
10792 ;; | |
10793 esac | |
10794 | |
10795 if test "x$lt_cv_dlopen" != xno; then | |
10796 enable_dlopen=yes | |
10797 else | |
10798 enable_dlopen=no | |
10799 fi | |
10800 | |
10801 case $lt_cv_dlopen in | |
10802 dlopen) | |
10803 save_CPPFLAGS="$CPPFLAGS" | |
10804 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10805 | |
10806 save_LDFLAGS="$LDFLAGS" | |
10807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10808 | |
10809 save_LIBS="$LIBS" | |
10810 LIBS="$lt_cv_dlopen_libs $LIBS" | |
10811 | |
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
10813 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10814 if ${lt_cv_dlopen_self+:} false; then : | |
10815 $as_echo_n "(cached) " >&6 | |
10816 else | |
10817 if test "$cross_compiling" = yes; then : | |
10818 lt_cv_dlopen_self=cross | |
10819 else | |
10820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10821 lt_status=$lt_dlunknown | |
10822 cat > conftest.$ac_ext <<_LT_EOF | |
10823 #line $LINENO "configure" | |
10824 #include "confdefs.h" | |
10825 | |
10826 #if HAVE_DLFCN_H | |
10827 #include <dlfcn.h> | |
10828 #endif | |
10829 | |
10830 #include <stdio.h> | |
10831 | |
10832 #ifdef RTLD_GLOBAL | |
10833 # define LT_DLGLOBAL RTLD_GLOBAL | |
10834 #else | |
10835 # ifdef DL_GLOBAL | |
10836 # define LT_DLGLOBAL DL_GLOBAL | |
10837 # else | |
10838 # define LT_DLGLOBAL 0 | |
10839 # endif | |
10840 #endif | |
10841 | |
10842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10843 find out it does not work in some platform. */ | |
10844 #ifndef LT_DLLAZY_OR_NOW | |
10845 # ifdef RTLD_LAZY | |
10846 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10847 # else | |
10848 # ifdef DL_LAZY | |
10849 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10850 # else | |
10851 # ifdef RTLD_NOW | |
10852 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10853 # else | |
10854 # ifdef DL_NOW | |
10855 # define LT_DLLAZY_OR_NOW DL_NOW | |
10856 # else | |
10857 # define LT_DLLAZY_OR_NOW 0 | |
10858 # endif | |
10859 # endif | |
10860 # endif | |
10861 # endif | |
10862 #endif | |
10863 | |
10864 /* When -fvisbility=hidden is used, assume the code has been annotated | |
10865 correspondingly for the symbols needed. */ | |
10866 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10867 int fnord () __attribute__((visibility("default"))); | |
10868 #endif | |
10869 | |
10870 int fnord () { return 42; } | |
10871 int main () | |
10872 { | |
10873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10874 int status = $lt_dlunknown; | |
10875 | |
10876 if (self) | |
10877 { | |
10878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10879 else | |
10880 { | |
10881 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10882 else puts (dlerror ()); | |
10883 } | |
10884 /* dlclose (self); */ | |
10885 } | |
10886 else | |
10887 puts (dlerror ()); | |
10888 | |
10889 return status; | |
10890 } | |
10891 _LT_EOF | |
10892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
10893 (eval $ac_link) 2>&5 | |
10894 ac_status=$? | |
10895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10896 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10897 (./conftest; exit; ) >&5 2>/dev/null | |
10898 lt_status=$? | |
10899 case x$lt_status in | |
10900 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10901 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10902 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10903 esac | |
10904 else : | |
10905 # compilation failed | |
10906 lt_cv_dlopen_self=no | |
10907 fi | |
10908 fi | |
10909 rm -fr conftest* | |
10910 | |
10911 | |
10912 fi | |
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
10914 $as_echo "$lt_cv_dlopen_self" >&6; } | |
10915 | |
10916 if test "x$lt_cv_dlopen_self" = xyes; then | |
10917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
10919 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
10920 if ${lt_cv_dlopen_self_static+:} false; then : | |
10921 $as_echo_n "(cached) " >&6 | |
10922 else | |
10923 if test "$cross_compiling" = yes; then : | |
10924 lt_cv_dlopen_self_static=cross | |
10925 else | |
10926 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10927 lt_status=$lt_dlunknown | |
10928 cat > conftest.$ac_ext <<_LT_EOF | |
10929 #line $LINENO "configure" | |
10930 #include "confdefs.h" | |
10931 | |
10932 #if HAVE_DLFCN_H | |
10933 #include <dlfcn.h> | |
10934 #endif | |
10935 | |
10936 #include <stdio.h> | |
10937 | |
10938 #ifdef RTLD_GLOBAL | |
10939 # define LT_DLGLOBAL RTLD_GLOBAL | |
10940 #else | |
10941 # ifdef DL_GLOBAL | |
10942 # define LT_DLGLOBAL DL_GLOBAL | |
10943 # else | |
10944 # define LT_DLGLOBAL 0 | |
10945 # endif | |
10946 #endif | |
10947 | |
10948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10949 find out it does not work in some platform. */ | |
10950 #ifndef LT_DLLAZY_OR_NOW | |
10951 # ifdef RTLD_LAZY | |
10952 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10953 # else | |
10954 # ifdef DL_LAZY | |
10955 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10956 # else | |
10957 # ifdef RTLD_NOW | |
10958 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10959 # else | |
10960 # ifdef DL_NOW | |
10961 # define LT_DLLAZY_OR_NOW DL_NOW | |
10962 # else | |
10963 # define LT_DLLAZY_OR_NOW 0 | |
10964 # endif | |
10965 # endif | |
10966 # endif | |
10967 # endif | |
10968 #endif | |
10969 | |
10970 /* When -fvisbility=hidden is used, assume the code has been annotated | |
10971 correspondingly for the symbols needed. */ | |
10972 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
10973 int fnord () __attribute__((visibility("default"))); | |
10974 #endif | |
10975 | |
10976 int fnord () { return 42; } | |
10977 int main () | |
10978 { | |
10979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10980 int status = $lt_dlunknown; | |
10981 | |
10982 if (self) | |
10983 { | |
10984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10985 else | |
10986 { | |
10987 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10988 else puts (dlerror ()); | |
10989 } | |
10990 /* dlclose (self); */ | |
10991 } | |
10992 else | |
10993 puts (dlerror ()); | |
10994 | |
10995 return status; | |
10996 } | |
10997 _LT_EOF | |
10998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
10999 (eval $ac_link) 2>&5 | |
11000 ac_status=$? | |
11001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11002 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11003 (./conftest; exit; ) >&5 2>/dev/null | |
11004 lt_status=$? | |
11005 case x$lt_status in | |
11006 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11007 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11008 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11009 esac | |
11010 else : | |
11011 # compilation failed | |
11012 lt_cv_dlopen_self_static=no | |
11013 fi | |
11014 fi | |
11015 rm -fr conftest* | |
11016 | |
11017 | |
11018 fi | |
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11020 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11021 fi | |
11022 | |
11023 CPPFLAGS="$save_CPPFLAGS" | |
11024 LDFLAGS="$save_LDFLAGS" | |
11025 LIBS="$save_LIBS" | |
11026 ;; | |
11027 esac | |
11028 | |
11029 case $lt_cv_dlopen_self in | |
11030 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11031 *) enable_dlopen_self=unknown ;; | |
11032 esac | |
11033 | |
11034 case $lt_cv_dlopen_self_static in | |
11035 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11036 *) enable_dlopen_self_static=unknown ;; | |
11037 esac | |
11038 fi | |
11039 | |
11040 | |
11041 | |
11042 | |
11043 | |
11044 | |
11045 | |
11046 | |
11047 | |
11048 | |
11049 | |
11050 | |
11051 | |
11052 | |
11053 | |
11054 | |
11055 | |
11056 striplib= | |
11057 old_striplib= | |
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11059 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11060 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11061 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11062 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11064 $as_echo "yes" >&6; } | |
11065 else | |
11066 # FIXME - insert some real tests, host_os isn't really good enough | |
11067 case $host_os in | |
11068 darwin*) | |
11069 if test -n "$STRIP" ; then | |
11070 striplib="$STRIP -x" | |
11071 old_striplib="$STRIP -S" | |
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11073 $as_echo "yes" >&6; } | |
11074 else | |
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11076 $as_echo "no" >&6; } | |
11077 fi | |
11078 ;; | |
11079 *) | |
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11081 $as_echo "no" >&6; } | |
11082 ;; | |
11083 esac | |
11084 fi | |
11085 | |
11086 | |
11087 | |
11088 | |
11089 | |
11090 | |
11091 | |
11092 | |
11093 | |
11094 | |
11095 | |
11096 | |
11097 # Report which library types will actually be built | |
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11099 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11101 $as_echo "$can_build_shared" >&6; } | |
11102 | |
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11104 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11105 test "$can_build_shared" = "no" && enable_shared=no | |
11106 | |
11107 # On AIX, shared libraries and static libraries use the same namespace, and | |
11108 # are all built from PIC. | |
11109 case $host_os in | |
11110 aix3*) | |
11111 test "$enable_shared" = yes && enable_static=no | |
11112 if test -n "$RANLIB"; then | |
11113 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11114 postinstall_cmds='$RANLIB $lib' | |
11115 fi | |
11116 ;; | |
11117 | |
11118 aix[4-9]*) | |
11119 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11120 test "$enable_shared" = yes && enable_static=no | |
11121 fi | |
11122 ;; | |
11123 esac | |
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11125 $as_echo "$enable_shared" >&6; } | |
11126 | |
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11128 $as_echo_n "checking whether to build static libraries... " >&6; } | |
11129 # Make sure either enable_shared or enable_static is yes. | |
11130 test "$enable_shared" = yes || enable_static=yes | |
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11132 $as_echo "$enable_static" >&6; } | |
11133 | |
11134 | |
11135 | |
11136 | |
11137 fi | |
11138 ac_ext=c | |
11139 ac_cpp='$CPP $CPPFLAGS' | |
11140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11142 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11143 | |
11144 CC="$lt_save_CC" | |
11145 | |
11146 | |
11147 | |
11148 | |
11149 | |
11150 | |
11151 | |
11152 | |
11153 | |
11154 | |
11155 | |
11156 | |
11157 | |
11158 | |
11159 | |
11160 ac_config_commands="$ac_config_commands libtool" | |
11161 | |
11162 | |
11163 | |
11164 | |
11165 # Only expand once: | |
11166 | |
11167 | |
11168 | |
11169 | |
11170 if test $prefix = "NONE"; then | |
11171 prefix=/usr/local | |
11172 fi | |
11173 | |
11174 if test -z $URWEB_LIB; then | |
11175 URWEB_LIB=$prefix/lib/urweb | |
11176 fi | |
11177 | |
11178 if test -z $URWEB_INC; then | |
11179 URWEB_INC=$prefix/include/urweb | |
11180 fi | |
11181 | |
11182 | |
11183 | |
11184 | |
11185 ac_config_files="$ac_config_files Makefile" | |
11186 | |
11187 | |
11188 cat >confcache <<\_ACEOF | |
11189 # This file is a shell script that caches the results of configure | |
11190 # tests run on this system so they can be shared between configure | |
11191 # scripts and configure runs, see configure's option --config-cache. | |
11192 # It is not useful on other systems. If it contains results you don't | |
11193 # want to keep, you may remove or edit it. | |
11194 # | |
11195 # config.status only pays attention to the cache file if you give it | |
11196 # the --recheck option to rerun configure. | |
11197 # | |
11198 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11199 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11200 # following values. | |
11201 | |
11202 _ACEOF | |
11203 | |
11204 # The following way of writing the cache mishandles newlines in values, | |
11205 # but we know of no workaround that is simple, portable, and efficient. | |
11206 # So, we kill variables containing newlines. | |
11207 # Ultrix sh set writes to stderr and can't be redirected directly, | |
11208 # and sets the high bit in the cache file unless we assign to the vars. | |
11209 ( | |
11210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11211 eval ac_val=\$$ac_var | |
11212 case $ac_val in #( | |
11213 *${as_nl}*) | |
11214 case $ac_var in #( | |
11215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
11216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11217 esac | |
11218 case $ac_var in #( | |
11219 _ | IFS | as_nl) ;; #( | |
11220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11221 *) { eval $ac_var=; unset $ac_var;} ;; | |
11222 esac ;; | |
11223 esac | |
11224 done | |
11225 | |
11226 (set) 2>&1 | | |
11227 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11228 *${as_nl}ac_space=\ *) | |
11229 # `set' does not quote correctly, so add quotes: double-quote | |
11230 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
11231 sed -n \ | |
11232 "s/'/'\\\\''/g; | |
11233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11234 ;; #( | |
11235 *) | |
11236 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11238 ;; | |
11239 esac | | |
11240 sort | |
11241 ) | | |
11242 sed ' | |
11243 /^ac_cv_env_/b end | |
11244 t clear | |
11245 :clear | |
11246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11247 t end | |
11248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11249 :end' >>confcache | |
11250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11251 if test -w "$cache_file"; then | |
11252 if test "x$cache_file" != "x/dev/null"; then | |
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
11254 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
11255 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
11256 cat confcache >"$cache_file" | |
11257 else | |
11258 case $cache_file in #( | |
11259 */* | ?:*) | |
11260 mv -f confcache "$cache_file"$$ && | |
11261 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
11262 *) | |
11263 mv -f confcache "$cache_file" ;; | |
11264 esac | |
11265 fi | |
11266 fi | |
11267 else | |
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
11269 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
11270 fi | |
11271 fi | |
11272 rm -f confcache | |
11273 | |
11274 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11275 # Let make expand exec_prefix. | |
11276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11277 | |
11278 # Transform confdefs.h into DEFS. | |
11279 # Protect against shell expansion while executing Makefile rules. | |
11280 # Protect against Makefile macro expansion. | |
11281 # | |
11282 # If the first sed substitution is executed (which looks for macros that | |
11283 # take arguments), then branch to the quote section. Otherwise, | |
11284 # look for a macro that doesn't take arguments. | |
11285 ac_script=' | |
11286 :mline | |
11287 /\\$/{ | |
11288 N | |
11289 s,\\\n,, | |
11290 b mline | |
11291 } | |
11292 t clear | |
11293 :clear | |
11294 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
11295 t quote | |
11296 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
11297 t quote | |
11298 b any | |
11299 :quote | |
11300 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
11301 s/\[/\\&/g | |
11302 s/\]/\\&/g | |
11303 s/\$/$$/g | |
11304 H | |
11305 :any | |
11306 ${ | |
11307 g | |
11308 s/^\n// | |
11309 s/\n/ /g | |
11310 p | |
11311 } | |
11312 ' | |
11313 DEFS=`sed -n "$ac_script" confdefs.h` | |
11314 | |
11315 | |
11316 ac_libobjs= | |
11317 ac_ltlibobjs= | |
11318 U= | |
11319 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11320 # 1. Remove the extension, and $U if already installed. | |
11321 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11322 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11323 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11324 # will be set to the directory where LIBOBJS objects are built. | |
11325 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11326 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
11327 done | |
11328 LIBOBJS=$ac_libobjs | |
11329 | |
11330 LTLIBOBJS=$ac_ltlibobjs | |
11331 | |
11332 | |
11333 if test -n "$EXEEXT"; then | |
11334 am__EXEEXT_TRUE= | |
11335 am__EXEEXT_FALSE='#' | |
11336 else | |
11337 am__EXEEXT_TRUE='#' | |
11338 am__EXEEXT_FALSE= | |
11339 fi | |
11340 | |
11341 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
11342 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
11343 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11344 fi | |
11345 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11346 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
11347 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11348 fi | |
11349 | |
11350 : "${CONFIG_STATUS=./config.status}" | |
11351 ac_write_fail=0 | |
11352 ac_clean_files_save=$ac_clean_files | |
11353 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
11355 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11356 as_write_fail=0 | |
11357 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
11358 #! $SHELL | |
11359 # Generated by $as_me. | |
11360 # Run this file to recreate the current configuration. | |
11361 # Compiler output produced by configure, useful for debugging | |
11362 # configure, is in config.log if it exists. | |
11363 | |
11364 debug=false | |
11365 ac_cs_recheck=false | |
11366 ac_cs_silent=false | |
11367 | |
11368 SHELL=\${CONFIG_SHELL-$SHELL} | |
11369 export SHELL | |
11370 _ASEOF | |
11371 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11372 ## -------------------- ## | |
11373 ## M4sh Initialization. ## | |
11374 ## -------------------- ## | |
11375 | |
11376 # Be more Bourne compatible | |
11377 DUALCASE=1; export DUALCASE # for MKS sh | |
11378 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
11379 emulate sh | |
11380 NULLCMD=: | |
11381 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11382 # is contrary to our usage. Disable this feature. | |
11383 alias -g '${1+"$@"}'='"$@"' | |
11384 setopt NO_GLOB_SUBST | |
11385 else | |
11386 case `(set -o) 2>/dev/null` in #( | |
11387 *posix*) : | |
11388 set -o posix ;; #( | |
11389 *) : | |
11390 ;; | |
11391 esac | |
11392 fi | |
11393 | |
11394 | |
11395 as_nl=' | |
11396 ' | |
11397 export as_nl | |
11398 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11399 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11401 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11402 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
11403 # but without wasting forks for bash or zsh. | |
11404 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11405 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11406 as_echo='print -r --' | |
11407 as_echo_n='print -rn --' | |
11408 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11409 as_echo='printf %s\n' | |
11410 as_echo_n='printf %s' | |
11411 else | |
11412 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11413 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11414 as_echo_n='/usr/ucb/echo -n' | |
11415 else | |
11416 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11417 as_echo_n_body='eval | |
11418 arg=$1; | |
11419 case $arg in #( | |
11420 *"$as_nl"*) | |
11421 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11422 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11423 esac; | |
11424 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11425 ' | |
11426 export as_echo_n_body | |
11427 as_echo_n='sh -c $as_echo_n_body as_echo' | |
11428 fi | |
11429 export as_echo_body | |
11430 as_echo='sh -c $as_echo_body as_echo' | |
11431 fi | |
11432 | |
11433 # The user is always right. | |
11434 if test "${PATH_SEPARATOR+set}" != set; then | |
11435 PATH_SEPARATOR=: | |
11436 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11437 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11438 PATH_SEPARATOR=';' | |
11439 } | |
11440 fi | |
11441 | |
11442 | |
11443 # IFS | |
11444 # We need space, tab and new line, in precisely that order. Quoting is | |
11445 # there to prevent editors from complaining about space-tab. | |
11446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11447 # splitting by setting IFS to empty value.) | |
11448 IFS=" "" $as_nl" | |
11449 | |
11450 # Find who we are. Look in the path if we contain no directory separator. | |
11451 as_myself= | |
11452 case $0 in #(( | |
11453 *[\\/]* ) as_myself=$0 ;; | |
11454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11455 for as_dir in $PATH | |
11456 do | |
11457 IFS=$as_save_IFS | |
11458 test -z "$as_dir" && as_dir=. | |
11459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11460 done | |
11461 IFS=$as_save_IFS | |
11462 | |
11463 ;; | |
11464 esac | |
11465 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11466 # in which case we are not to be found in the path. | |
11467 if test "x$as_myself" = x; then | |
11468 as_myself=$0 | |
11469 fi | |
11470 if test ! -f "$as_myself"; then | |
11471 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
11472 exit 1 | |
11473 fi | |
11474 | |
11475 # Unset variables that we do not need and which cause bugs (e.g. in | |
11476 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11477 # suppresses any "Segmentation fault" message there. '((' could | |
11478 # trigger a bug in pdksh 5.2.14. | |
11479 for as_var in BASH_ENV ENV MAIL MAILPATH | |
11480 do eval test x\${$as_var+set} = xset \ | |
11481 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
11482 done | |
11483 PS1='$ ' | |
11484 PS2='> ' | |
11485 PS4='+ ' | |
11486 | |
11487 # NLS nuisances. | |
11488 LC_ALL=C | |
11489 export LC_ALL | |
11490 LANGUAGE=C | |
11491 export LANGUAGE | |
11492 | |
11493 # CDPATH. | |
11494 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11495 | |
11496 | |
11497 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
11498 # ---------------------------------------- | |
11499 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
11500 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
11501 # script with STATUS, using 1 if that was 0. | |
11502 as_fn_error () | |
11503 { | |
11504 as_status=$1; test $as_status -eq 0 && as_status=1 | |
11505 if test "$4"; then | |
11506 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11507 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
11508 fi | |
11509 $as_echo "$as_me: error: $2" >&2 | |
11510 as_fn_exit $as_status | |
11511 } # as_fn_error | |
11512 | |
11513 | |
11514 # as_fn_set_status STATUS | |
11515 # ----------------------- | |
11516 # Set $? to STATUS, without forking. | |
11517 as_fn_set_status () | |
11518 { | |
11519 return $1 | |
11520 } # as_fn_set_status | |
11521 | |
11522 # as_fn_exit STATUS | |
11523 # ----------------- | |
11524 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11525 as_fn_exit () | |
11526 { | |
11527 set +e | |
11528 as_fn_set_status $1 | |
11529 exit $1 | |
11530 } # as_fn_exit | |
11531 | |
11532 # as_fn_unset VAR | |
11533 # --------------- | |
11534 # Portably unset VAR. | |
11535 as_fn_unset () | |
11536 { | |
11537 { eval $1=; unset $1;} | |
11538 } | |
11539 as_unset=as_fn_unset | |
11540 # as_fn_append VAR VALUE | |
11541 # ---------------------- | |
11542 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
11543 # advantage of any shell optimizations that allow amortized linear growth over | |
11544 # repeated appends, instead of the typical quadratic growth present in naive | |
11545 # implementations. | |
11546 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
11547 eval 'as_fn_append () | |
11548 { | |
11549 eval $1+=\$2 | |
11550 }' | |
11551 else | |
11552 as_fn_append () | |
11553 { | |
11554 eval $1=\$$1\$2 | |
11555 } | |
11556 fi # as_fn_append | |
11557 | |
11558 # as_fn_arith ARG... | |
11559 # ------------------ | |
11560 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
11561 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
11562 # must be portable across $(()) and expr. | |
11563 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
11564 eval 'as_fn_arith () | |
11565 { | |
11566 as_val=$(( $* )) | |
11567 }' | |
11568 else | |
11569 as_fn_arith () | |
11570 { | |
11571 as_val=`expr "$@" || test $? -eq 1` | |
11572 } | |
11573 fi # as_fn_arith | |
11574 | |
11575 | |
11576 if expr a : '\(a\)' >/dev/null 2>&1 && | |
11577 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
11578 as_expr=expr | |
11579 else | |
11580 as_expr=false | |
11581 fi | |
11582 | |
11583 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
11584 as_basename=basename | |
11585 else | |
11586 as_basename=false | |
11587 fi | |
11588 | |
11589 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
11590 as_dirname=dirname | |
11591 else | |
11592 as_dirname=false | |
11593 fi | |
11594 | |
11595 as_me=`$as_basename -- "$0" || | |
11596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11597 X"$0" : 'X\(//\)$' \| \ | |
11598 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
11599 $as_echo X/"$0" | | |
11600 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
11601 s//\1/ | |
11602 q | |
11603 } | |
11604 /^X\/\(\/\/\)$/{ | |
11605 s//\1/ | |
11606 q | |
11607 } | |
11608 /^X\/\(\/\).*/{ | |
11609 s//\1/ | |
11610 q | |
11611 } | |
11612 s/.*/./; q'` | |
11613 | |
11614 # Avoid depending upon Character Ranges. | |
11615 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11618 as_cr_digits='0123456789' | |
11619 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11620 | |
11621 ECHO_C= ECHO_N= ECHO_T= | |
11622 case `echo -n x` in #((((( | |
11623 -n*) | |
11624 case `echo 'xy\c'` in | |
11625 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11626 xy) ECHO_C='\c';; | |
11627 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
11628 ECHO_T=' ';; | |
11629 esac;; | |
11630 *) | |
11631 ECHO_N='-n';; | |
11632 esac | |
11633 | |
11634 rm -f conf$$ conf$$.exe conf$$.file | |
11635 if test -d conf$$.dir; then | |
11636 rm -f conf$$.dir/conf$$.file | |
11637 else | |
11638 rm -f conf$$.dir | |
11639 mkdir conf$$.dir 2>/dev/null | |
11640 fi | |
11641 if (echo >conf$$.file) 2>/dev/null; then | |
11642 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11643 as_ln_s='ln -s' | |
11644 # ... but there are two gotchas: | |
11645 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11646 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11647 # In both cases, we have to default to `cp -p'. | |
11648 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
11649 as_ln_s='cp -p' | |
11650 elif ln conf$$.file conf$$ 2>/dev/null; then | |
11651 as_ln_s=ln | |
11652 else | |
11653 as_ln_s='cp -p' | |
11654 fi | |
11655 else | |
11656 as_ln_s='cp -p' | |
11657 fi | |
11658 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
11659 rmdir conf$$.dir 2>/dev/null | |
11660 | |
11661 | |
11662 # as_fn_mkdir_p | |
11663 # ------------- | |
11664 # Create "$as_dir" as a directory, including parents if necessary. | |
11665 as_fn_mkdir_p () | |
11666 { | |
11667 | |
11668 case $as_dir in #( | |
11669 -*) as_dir=./$as_dir;; | |
11670 esac | |
11671 test -d "$as_dir" || eval $as_mkdir_p || { | |
11672 as_dirs= | |
11673 while :; do | |
11674 case $as_dir in #( | |
11675 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
11676 *) as_qdir=$as_dir;; | |
11677 esac | |
11678 as_dirs="'$as_qdir' $as_dirs" | |
11679 as_dir=`$as_dirname -- "$as_dir" || | |
11680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11681 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11682 X"$as_dir" : 'X\(//\)$' \| \ | |
11683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11684 $as_echo X"$as_dir" | | |
11685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11686 s//\1/ | |
11687 q | |
11688 } | |
11689 /^X\(\/\/\)[^/].*/{ | |
11690 s//\1/ | |
11691 q | |
11692 } | |
11693 /^X\(\/\/\)$/{ | |
11694 s//\1/ | |
11695 q | |
11696 } | |
11697 /^X\(\/\).*/{ | |
11698 s//\1/ | |
11699 q | |
11700 } | |
11701 s/.*/./; q'` | |
11702 test -d "$as_dir" && break | |
11703 done | |
11704 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
11705 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
11706 | |
11707 | |
11708 } # as_fn_mkdir_p | |
11709 if mkdir -p . 2>/dev/null; then | |
11710 as_mkdir_p='mkdir -p "$as_dir"' | |
11711 else | |
11712 test -d ./-p && rmdir ./-p | |
11713 as_mkdir_p=false | |
11714 fi | |
11715 | |
11716 if test -x / >/dev/null 2>&1; then | |
11717 as_test_x='test -x' | |
11718 else | |
11719 if ls -dL / >/dev/null 2>&1; then | |
11720 as_ls_L_option=L | |
11721 else | |
11722 as_ls_L_option= | |
11723 fi | |
11724 as_test_x=' | |
11725 eval sh -c '\'' | |
11726 if test -d "$1"; then | |
11727 test -d "$1/."; | |
11728 else | |
11729 case $1 in #( | |
11730 -*)set "./$1";; | |
11731 esac; | |
11732 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
11733 ???[sx]*):;;*)false;;esac;fi | |
11734 '\'' sh | |
11735 ' | |
11736 fi | |
11737 as_executable_p=$as_test_x | |
11738 | |
11739 # Sed expression to map a string onto a valid CPP name. | |
11740 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11741 | |
11742 # Sed expression to map a string onto a valid variable name. | |
11743 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
11744 | |
11745 | |
11746 exec 6>&1 | |
11747 ## ----------------------------------- ## | |
11748 ## Main body of $CONFIG_STATUS script. ## | |
11749 ## ----------------------------------- ## | |
11750 _ASEOF | |
11751 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
11752 | |
11753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11754 # Save the log message, to keep $0 and so on meaningful, and to | |
11755 # report actual input values of CONFIG_FILES etc. instead of their | |
11756 # values after options handling. | |
11757 ac_log=" | |
11758 This file was extended by email $as_me 1.0, which was | |
11759 generated by GNU Autoconf 2.68. Invocation command line was | |
11760 | |
11761 CONFIG_FILES = $CONFIG_FILES | |
11762 CONFIG_HEADERS = $CONFIG_HEADERS | |
11763 CONFIG_LINKS = $CONFIG_LINKS | |
11764 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11765 $ $0 $@ | |
11766 | |
11767 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
11768 " | |
11769 | |
11770 _ACEOF | |
11771 | |
11772 case $ac_config_files in *" | |
11773 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11774 esac | |
11775 | |
11776 | |
11777 | |
11778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11779 # Files that config.status was made for. | |
11780 config_files="$ac_config_files" | |
11781 config_commands="$ac_config_commands" | |
11782 | |
11783 _ACEOF | |
11784 | |
11785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11786 ac_cs_usage="\ | |
11787 \`$as_me' instantiates files and other configuration actions | |
11788 from templates according to the current configuration. Unless the files | |
11789 and actions are specified as TAGs, all are instantiated by default. | |
11790 | |
11791 Usage: $0 [OPTION]... [TAG]... | |
11792 | |
11793 -h, --help print this help, then exit | |
11794 -V, --version print version number and configuration settings, then exit | |
11795 --config print configuration, then exit | |
11796 -q, --quiet, --silent | |
11797 do not print progress messages | |
11798 -d, --debug don't remove temporary files | |
11799 --recheck update $as_me by reconfiguring in the same conditions | |
11800 --file=FILE[:TEMPLATE] | |
11801 instantiate the configuration file FILE | |
11802 | |
11803 Configuration files: | |
11804 $config_files | |
11805 | |
11806 Configuration commands: | |
11807 $config_commands | |
11808 | |
11809 Report bugs to the package provider." | |
11810 | |
11811 _ACEOF | |
11812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11813 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
11814 ac_cs_version="\\ | |
11815 email config.status 1.0 | |
11816 configured by $0, generated by GNU Autoconf 2.68, | |
11817 with options \\"\$ac_cs_config\\" | |
11818 | |
11819 Copyright (C) 2010 Free Software Foundation, Inc. | |
11820 This config.status script is free software; the Free Software Foundation | |
11821 gives unlimited permission to copy, distribute and modify it." | |
11822 | |
11823 ac_pwd='$ac_pwd' | |
11824 srcdir='$srcdir' | |
11825 INSTALL='$INSTALL' | |
11826 MKDIR_P='$MKDIR_P' | |
11827 AWK='$AWK' | |
11828 test -n "\$AWK" || AWK=awk | |
11829 _ACEOF | |
11830 | |
11831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11832 # The default lists apply if the user does not specify any file. | |
11833 ac_need_defaults=: | |
11834 while test $# != 0 | |
11835 do | |
11836 case $1 in | |
11837 --*=?*) | |
11838 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
11839 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
11840 ac_shift=: | |
11841 ;; | |
11842 --*=) | |
11843 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
11844 ac_optarg= | |
11845 ac_shift=: | |
11846 ;; | |
11847 *) | |
11848 ac_option=$1 | |
11849 ac_optarg=$2 | |
11850 ac_shift=shift | |
11851 ;; | |
11852 esac | |
11853 | |
11854 case $ac_option in | |
11855 # Handling of the options. | |
11856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11857 ac_cs_recheck=: ;; | |
11858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
11859 $as_echo "$ac_cs_version"; exit ;; | |
11860 --config | --confi | --conf | --con | --co | --c ) | |
11861 $as_echo "$ac_cs_config"; exit ;; | |
11862 --debug | --debu | --deb | --de | --d | -d ) | |
11863 debug=: ;; | |
11864 --file | --fil | --fi | --f ) | |
11865 $ac_shift | |
11866 case $ac_optarg in | |
11867 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11868 '') as_fn_error $? "missing file argument" ;; | |
11869 esac | |
11870 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
11871 ac_need_defaults=false;; | |
11872 --he | --h | --help | --hel | -h ) | |
11873 $as_echo "$ac_cs_usage"; exit ;; | |
11874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11875 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11876 ac_cs_silent=: ;; | |
11877 | |
11878 # This is an error. | |
11879 -*) as_fn_error $? "unrecognized option: \`$1' | |
11880 Try \`$0 --help' for more information." ;; | |
11881 | |
11882 *) as_fn_append ac_config_targets " $1" | |
11883 ac_need_defaults=false ;; | |
11884 | |
11885 esac | |
11886 shift | |
11887 done | |
11888 | |
11889 ac_configure_extra_args= | |
11890 | |
11891 if $ac_cs_silent; then | |
11892 exec 6>/dev/null | |
11893 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11894 fi | |
11895 | |
11896 _ACEOF | |
11897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11898 if \$ac_cs_recheck; then | |
11899 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11900 shift | |
11901 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11902 CONFIG_SHELL='$SHELL' | |
11903 export CONFIG_SHELL | |
11904 exec "\$@" | |
11905 fi | |
11906 | |
11907 _ACEOF | |
11908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11909 exec 5>>config.log | |
11910 { | |
11911 echo | |
11912 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11913 ## Running $as_me. ## | |
11914 _ASBOX | |
11915 $as_echo "$ac_log" | |
11916 } >&5 | |
11917 | |
11918 _ACEOF | |
11919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11920 # | |
11921 # INIT-COMMANDS | |
11922 # | |
11923 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
11924 | |
11925 | |
11926 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
11927 # if CDPATH is set. | |
11928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11929 | |
11930 sed_quote_subst='$sed_quote_subst' | |
11931 double_quote_subst='$double_quote_subst' | |
11932 delay_variable_subst='$delay_variable_subst' | |
11933 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
11934 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
11935 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
11936 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
11937 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
11938 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
11939 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
11940 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
11941 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
11942 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
11943 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
11944 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
11945 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
11946 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
11947 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
11948 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
11949 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
11950 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
11951 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
11952 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
11953 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
11954 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
11955 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
11956 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
11957 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
11958 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
11959 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
11960 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
11961 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
11962 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
11963 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
11964 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
11965 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
11966 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
11967 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
11968 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
11969 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
11970 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
11971 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
11972 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
11973 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
11974 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
11975 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
11976 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
11977 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
11978 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
11979 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
11980 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
11981 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
11982 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
11983 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
11984 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
11985 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
11986 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
11987 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
11988 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
11989 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
11990 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
11991 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
11992 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
11993 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
11994 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
11995 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
11996 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
11997 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
11998 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
11999 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
12000 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
12001 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
12002 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
12003 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
12004 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
12005 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
12006 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
12007 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
12008 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12009 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
12010 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
12011 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12012 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12013 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
12014 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
12015 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12016 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12017 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12018 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
12019 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12020 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
12021 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12022 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12023 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12024 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
12025 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
12026 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
12027 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
12028 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12029 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
12030 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
12031 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
12032 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
12033 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
12034 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
12035 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
12036 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
12037 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
12038 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
12039 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
12040 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
12041 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
12042 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
12043 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
12044 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12045 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
12046 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
12047 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
12048 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
12049 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
12050 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12051 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12052 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
12053 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
12054 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
12055 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
12056 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
12057 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
12058 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
12059 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
12060 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
12061 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
12062 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
12063 | |
12064 LTCC='$LTCC' | |
12065 LTCFLAGS='$LTCFLAGS' | |
12066 compiler='$compiler_DEFAULT' | |
12067 | |
12068 # A function that is used when there is no print builtin or printf. | |
12069 func_fallback_echo () | |
12070 { | |
12071 eval 'cat <<_LTECHO_EOF | |
12072 \$1 | |
12073 _LTECHO_EOF' | |
12074 } | |
12075 | |
12076 # Quote evaled strings. | |
12077 for var in SHELL \ | |
12078 ECHO \ | |
12079 PATH_SEPARATOR \ | |
12080 SED \ | |
12081 GREP \ | |
12082 EGREP \ | |
12083 FGREP \ | |
12084 LD \ | |
12085 NM \ | |
12086 LN_S \ | |
12087 lt_SP2NL \ | |
12088 lt_NL2SP \ | |
12089 reload_flag \ | |
12090 OBJDUMP \ | |
12091 deplibs_check_method \ | |
12092 file_magic_cmd \ | |
12093 file_magic_glob \ | |
12094 want_nocaseglob \ | |
12095 DLLTOOL \ | |
12096 sharedlib_from_linklib_cmd \ | |
12097 AR \ | |
12098 AR_FLAGS \ | |
12099 archiver_list_spec \ | |
12100 STRIP \ | |
12101 RANLIB \ | |
12102 CC \ | |
12103 CFLAGS \ | |
12104 compiler \ | |
12105 lt_cv_sys_global_symbol_pipe \ | |
12106 lt_cv_sys_global_symbol_to_cdecl \ | |
12107 lt_cv_sys_global_symbol_to_c_name_address \ | |
12108 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
12109 nm_file_list_spec \ | |
12110 lt_prog_compiler_no_builtin_flag \ | |
12111 lt_prog_compiler_pic \ | |
12112 lt_prog_compiler_wl \ | |
12113 lt_prog_compiler_static \ | |
12114 lt_cv_prog_compiler_c_o \ | |
12115 need_locks \ | |
12116 MANIFEST_TOOL \ | |
12117 DSYMUTIL \ | |
12118 NMEDIT \ | |
12119 LIPO \ | |
12120 OTOOL \ | |
12121 OTOOL64 \ | |
12122 shrext_cmds \ | |
12123 export_dynamic_flag_spec \ | |
12124 whole_archive_flag_spec \ | |
12125 compiler_needs_object \ | |
12126 with_gnu_ld \ | |
12127 allow_undefined_flag \ | |
12128 no_undefined_flag \ | |
12129 hardcode_libdir_flag_spec \ | |
12130 hardcode_libdir_separator \ | |
12131 exclude_expsyms \ | |
12132 include_expsyms \ | |
12133 file_list_spec \ | |
12134 variables_saved_for_relink \ | |
12135 libname_spec \ | |
12136 library_names_spec \ | |
12137 soname_spec \ | |
12138 install_override_mode \ | |
12139 finish_eval \ | |
12140 old_striplib \ | |
12141 striplib; do | |
12142 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
12143 *[\\\\\\\`\\"\\\$]*) | |
12144 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12145 ;; | |
12146 *) | |
12147 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12148 ;; | |
12149 esac | |
12150 done | |
12151 | |
12152 # Double-quote double-evaled strings. | |
12153 for var in reload_cmds \ | |
12154 old_postinstall_cmds \ | |
12155 old_postuninstall_cmds \ | |
12156 old_archive_cmds \ | |
12157 extract_expsyms_cmds \ | |
12158 old_archive_from_new_cmds \ | |
12159 old_archive_from_expsyms_cmds \ | |
12160 archive_cmds \ | |
12161 archive_expsym_cmds \ | |
12162 module_cmds \ | |
12163 module_expsym_cmds \ | |
12164 export_symbols_cmds \ | |
12165 prelink_cmds \ | |
12166 postlink_cmds \ | |
12167 postinstall_cmds \ | |
12168 postuninstall_cmds \ | |
12169 finish_cmds \ | |
12170 sys_lib_search_path_spec \ | |
12171 sys_lib_dlsearch_path_spec; do | |
12172 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
12173 *[\\\\\\\`\\"\\\$]*) | |
12174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12175 ;; | |
12176 *) | |
12177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12178 ;; | |
12179 esac | |
12180 done | |
12181 | |
12182 ac_aux_dir='$ac_aux_dir' | |
12183 xsi_shell='$xsi_shell' | |
12184 lt_shell_append='$lt_shell_append' | |
12185 | |
12186 # See if we are running on zsh, and set the options which allow our | |
12187 # commands through without removal of \ escapes INIT. | |
12188 if test -n "\${ZSH_VERSION+set}" ; then | |
12189 setopt NO_GLOB_SUBST | |
12190 fi | |
12191 | |
12192 | |
12193 PACKAGE='$PACKAGE' | |
12194 VERSION='$VERSION' | |
12195 TIMESTAMP='$TIMESTAMP' | |
12196 RM='$RM' | |
12197 ofile='$ofile' | |
12198 | |
12199 | |
12200 | |
12201 | |
12202 _ACEOF | |
12203 | |
12204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12205 | |
12206 # Handling of arguments. | |
12207 for ac_config_target in $ac_config_targets | |
12208 do | |
12209 case $ac_config_target in | |
12210 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12211 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12212 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12213 | |
12214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
12215 esac | |
12216 done | |
12217 | |
12218 | |
12219 # If the user did not use the arguments to specify the items to instantiate, | |
12220 # then the envvar interface is used. Set only those that are not. | |
12221 # We use the long form for the default assignment because of an extremely | |
12222 # bizarre bug on SunOS 4.1.3. | |
12223 if $ac_need_defaults; then | |
12224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12225 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12226 fi | |
12227 | |
12228 # Have a temporary directory for convenience. Make it in the build tree | |
12229 # simply because there is no reason against having it here, and in addition, | |
12230 # creating and moving files from /tmp can sometimes cause problems. | |
12231 # Hook for its removal unless debugging. | |
12232 # Note that there is a small window in which the directory will not be cleaned: | |
12233 # after its creation but before its name has been assigned to `$tmp'. | |
12234 $debug || | |
12235 { | |
12236 tmp= ac_tmp= | |
12237 trap 'exit_status=$? | |
12238 : "${ac_tmp:=$tmp}" | |
12239 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
12240 ' 0 | |
12241 trap 'as_fn_exit 1' 1 2 13 15 | |
12242 } | |
12243 # Create a (secure) tmp directory for tmp files. | |
12244 | |
12245 { | |
12246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12247 test -d "$tmp" | |
12248 } || | |
12249 { | |
12250 tmp=./conf$$-$RANDOM | |
12251 (umask 077 && mkdir "$tmp") | |
12252 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
12253 ac_tmp=$tmp | |
12254 | |
12255 # Set up the scripts for CONFIG_FILES section. | |
12256 # No need to generate them if there are no CONFIG_FILES. | |
12257 # This happens for instance with `./config.status config.h'. | |
12258 if test -n "$CONFIG_FILES"; then | |
12259 | |
12260 | |
12261 ac_cr=`echo X | tr X '\015'` | |
12262 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12263 # But we know of no other shell where ac_cr would be empty at this | |
12264 # point, so we can use a bashism as a fallback. | |
12265 if test "x$ac_cr" = x; then | |
12266 eval ac_cr=\$\'\\r\' | |
12267 fi | |
12268 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12269 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12270 ac_cs_awk_cr='\\r' | |
12271 else | |
12272 ac_cs_awk_cr=$ac_cr | |
12273 fi | |
12274 | |
12275 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
12276 _ACEOF | |
12277 | |
12278 | |
12279 { | |
12280 echo "cat >conf$$subs.awk <<_ACEOF" && | |
12281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12282 echo "_ACEOF" | |
12283 } >conf$$subs.sh || | |
12284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12285 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
12286 ac_delim='%!_!# ' | |
12287 for ac_last_try in false false false false false :; do | |
12288 . ./conf$$subs.sh || | |
12289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12290 | |
12291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12292 if test $ac_delim_n = $ac_delim_num; then | |
12293 break | |
12294 elif $ac_last_try; then | |
12295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12296 else | |
12297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12298 fi | |
12299 done | |
12300 rm -f conf$$subs.sh | |
12301 | |
12302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12303 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
12304 _ACEOF | |
12305 sed -n ' | |
12306 h | |
12307 s/^/S["/; s/!.*/"]=/ | |
12308 p | |
12309 g | |
12310 s/^[^!]*!// | |
12311 :repl | |
12312 t repl | |
12313 s/'"$ac_delim"'$// | |
12314 t delim | |
12315 :nl | |
12316 h | |
12317 s/\(.\{148\}\)..*/\1/ | |
12318 t more1 | |
12319 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12320 p | |
12321 n | |
12322 b repl | |
12323 :more1 | |
12324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12325 p | |
12326 g | |
12327 s/.\{148\}// | |
12328 t nl | |
12329 :delim | |
12330 h | |
12331 s/\(.\{148\}\)..*/\1/ | |
12332 t more2 | |
12333 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12334 p | |
12335 b | |
12336 :more2 | |
12337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12338 p | |
12339 g | |
12340 s/.\{148\}// | |
12341 t delim | |
12342 ' <conf$$subs.awk | sed ' | |
12343 /^[^""]/{ | |
12344 N | |
12345 s/\n// | |
12346 } | |
12347 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12348 rm -f conf$$subs.awk | |
12349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12350 _ACAWK | |
12351 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
12352 for (key in S) S_is_set[key] = 1 | |
12353 FS = "" | |
12354 | |
12355 } | |
12356 { | |
12357 line = $ 0 | |
12358 nfields = split(line, field, "@") | |
12359 substed = 0 | |
12360 len = length(field[1]) | |
12361 for (i = 2; i < nfields; i++) { | |
12362 key = field[i] | |
12363 keylen = length(key) | |
12364 if (S_is_set[key]) { | |
12365 value = S[key] | |
12366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12367 len += length(value) + length(field[++i]) | |
12368 substed = 1 | |
12369 } else | |
12370 len += 1 + keylen | |
12371 } | |
12372 | |
12373 print line | |
12374 } | |
12375 | |
12376 _ACAWK | |
12377 _ACEOF | |
12378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12379 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12380 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12381 else | |
12382 cat | |
12383 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
12384 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
12385 _ACEOF | |
12386 | |
12387 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
12388 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
12389 # trailing colons and then remove the whole line if VPATH becomes empty | |
12390 # (actually we leave an empty line to preserve line numbers). | |
12391 if test "x$srcdir" = x.; then | |
12392 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
12393 h | |
12394 s/// | |
12395 s/^/:/ | |
12396 s/[ ]*$/:/ | |
12397 s/:\$(srcdir):/:/g | |
12398 s/:\${srcdir}:/:/g | |
12399 s/:@srcdir@:/:/g | |
12400 s/^:*// | |
12401 s/:*$// | |
12402 x | |
12403 s/\(=[ ]*\).*/\1/ | |
12404 G | |
12405 s/\n// | |
12406 s/^[^=]*=[ ]*$// | |
12407 }' | |
12408 fi | |
12409 | |
12410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12411 fi # test -n "$CONFIG_FILES" | |
12412 | |
12413 | |
12414 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
12415 shift | |
12416 for ac_tag | |
12417 do | |
12418 case $ac_tag in | |
12419 :[FHLC]) ac_mode=$ac_tag; continue;; | |
12420 esac | |
12421 case $ac_mode$ac_tag in | |
12422 :[FHL]*:*);; | |
12423 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
12424 :[FH]-) ac_tag=-:-;; | |
12425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12426 esac | |
12427 ac_save_IFS=$IFS | |
12428 IFS=: | |
12429 set x $ac_tag | |
12430 IFS=$ac_save_IFS | |
12431 shift | |
12432 ac_file=$1 | |
12433 shift | |
12434 | |
12435 case $ac_mode in | |
12436 :L) ac_source=$1;; | |
12437 :[FH]) | |
12438 ac_file_inputs= | |
12439 for ac_f | |
12440 do | |
12441 case $ac_f in | |
12442 -) ac_f="$ac_tmp/stdin";; | |
12443 *) # Look for the file first in the build tree, then in the source tree | |
12444 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12445 # because $ac_f cannot contain `:'. | |
12446 test -f "$ac_f" || | |
12447 case $ac_f in | |
12448 [\\/$]*) false;; | |
12449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12450 esac || | |
12451 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
12452 esac | |
12453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
12454 as_fn_append ac_file_inputs " '$ac_f'" | |
12455 done | |
12456 | |
12457 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12458 # use $as_me), people would be surprised to read: | |
12459 # /* config.h. Generated by config.status. */ | |
12460 configure_input='Generated from '` | |
12461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12462 `' by configure.' | |
12463 if test x"$ac_file" != x-; then | |
12464 configure_input="$ac_file. $configure_input" | |
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
12466 $as_echo "$as_me: creating $ac_file" >&6;} | |
12467 fi | |
12468 # Neutralize special characters interpreted by sed in replacement strings. | |
12469 case $configure_input in #( | |
12470 *\&* | *\|* | *\\* ) | |
12471 ac_sed_conf_input=`$as_echo "$configure_input" | | |
12472 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12473 *) ac_sed_conf_input=$configure_input;; | |
12474 esac | |
12475 | |
12476 case $ac_tag in | |
12477 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
12478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
12479 esac | |
12480 ;; | |
12481 esac | |
12482 | |
12483 ac_dir=`$as_dirname -- "$ac_file" || | |
12484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12485 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12486 X"$ac_file" : 'X\(//\)$' \| \ | |
12487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
12488 $as_echo X"$ac_file" | | |
12489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12490 s//\1/ | |
12491 q | |
12492 } | |
12493 /^X\(\/\/\)[^/].*/{ | |
12494 s//\1/ | |
12495 q | |
12496 } | |
12497 /^X\(\/\/\)$/{ | |
12498 s//\1/ | |
12499 q | |
12500 } | |
12501 /^X\(\/\).*/{ | |
12502 s//\1/ | |
12503 q | |
12504 } | |
12505 s/.*/./; q'` | |
12506 as_dir="$ac_dir"; as_fn_mkdir_p | |
12507 ac_builddir=. | |
12508 | |
12509 case "$ac_dir" in | |
12510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12511 *) | |
12512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
12513 # A ".." for each directory in $ac_dir_suffix. | |
12514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
12515 case $ac_top_builddir_sub in | |
12516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12518 esac ;; | |
12519 esac | |
12520 ac_abs_top_builddir=$ac_pwd | |
12521 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12522 # for backward compatibility: | |
12523 ac_top_builddir=$ac_top_build_prefix | |
12524 | |
12525 case $srcdir in | |
12526 .) # We are building in place. | |
12527 ac_srcdir=. | |
12528 ac_top_srcdir=$ac_top_builddir_sub | |
12529 ac_abs_top_srcdir=$ac_pwd ;; | |
12530 [\\/]* | ?:[\\/]* ) # Absolute name. | |
12531 ac_srcdir=$srcdir$ac_dir_suffix; | |
12532 ac_top_srcdir=$srcdir | |
12533 ac_abs_top_srcdir=$srcdir ;; | |
12534 *) # Relative name. | |
12535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12536 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
12538 esac | |
12539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
12540 | |
12541 | |
12542 case $ac_mode in | |
12543 :F) | |
12544 # | |
12545 # CONFIG_FILE | |
12546 # | |
12547 | |
12548 case $INSTALL in | |
12549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
12551 esac | |
12552 ac_MKDIR_P=$MKDIR_P | |
12553 case $MKDIR_P in | |
12554 [\\/$]* | ?:[\\/]* ) ;; | |
12555 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12556 esac | |
12557 _ACEOF | |
12558 | |
12559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12560 # If the template does not know about datarootdir, expand it. | |
12561 # FIXME: This hack should be removed a few years after 2.60. | |
12562 ac_datarootdir_hack=; ac_datarootdir_seen= | |
12563 ac_sed_dataroot=' | |
12564 /datarootdir/ { | |
12565 p | |
12566 q | |
12567 } | |
12568 /@datadir@/p | |
12569 /@docdir@/p | |
12570 /@infodir@/p | |
12571 /@localedir@/p | |
12572 /@mandir@/p' | |
12573 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
12574 *datarootdir*) ac_datarootdir_seen=yes;; | |
12575 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
12577 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
12578 _ACEOF | |
12579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12580 ac_datarootdir_hack=' | |
12581 s&@datadir@&$datadir&g | |
12582 s&@docdir@&$docdir&g | |
12583 s&@infodir@&$infodir&g | |
12584 s&@localedir@&$localedir&g | |
12585 s&@mandir@&$mandir&g | |
12586 s&\\\${datarootdir}&$datarootdir&g' ;; | |
12587 esac | |
12588 _ACEOF | |
12589 | |
12590 # Neutralize VPATH when `$srcdir' = `.'. | |
12591 # Shell code in configure.ac might set extrasub. | |
12592 # FIXME: do we really want to maintain this feature? | |
12593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12594 ac_sed_extra="$ac_vpsub | |
12595 $extrasub | |
12596 _ACEOF | |
12597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12598 :t | |
12599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12600 s|@configure_input@|$ac_sed_conf_input|;t t | |
12601 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12602 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
12603 s&@srcdir@&$ac_srcdir&;t t | |
12604 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12605 s&@top_srcdir@&$ac_top_srcdir&;t t | |
12606 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12607 s&@builddir@&$ac_builddir&;t t | |
12608 s&@abs_builddir@&$ac_abs_builddir&;t t | |
12609 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12610 s&@INSTALL@&$ac_INSTALL&;t t | |
12611 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
12612 $ac_datarootdir_hack | |
12613 " | |
12614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
12615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
12616 | |
12617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
12619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
12620 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12622 which seems to be undefined. Please make sure it is defined" >&5 | |
12623 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12624 which seems to be undefined. Please make sure it is defined" >&2;} | |
12625 | |
12626 rm -f "$ac_tmp/stdin" | |
12627 case $ac_file in | |
12628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
12629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
12630 esac \ | |
12631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
12632 ;; | |
12633 | |
12634 | |
12635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
12636 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
12637 ;; | |
12638 esac | |
12639 | |
12640 | |
12641 case $ac_file$ac_mode in | |
12642 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
12643 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
12644 # are listed without --file. Let's play safe and only enable the eval | |
12645 # if we detect the quoting. | |
12646 case $CONFIG_FILES in | |
12647 *\'*) eval set x "$CONFIG_FILES" ;; | |
12648 *) set x $CONFIG_FILES ;; | |
12649 esac | |
12650 shift | |
12651 for mf | |
12652 do | |
12653 # Strip MF so we end up with the name of the file. | |
12654 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12655 # Check whether this is an Automake generated Makefile or not. | |
12656 # We used to match only the files named `Makefile.in', but | |
12657 # some people rename them; so instead we look at the file content. | |
12658 # Grep'ing the first line is not enough: some people post-process | |
12659 # each Makefile.in and add a new line on top of each file to say so. | |
12660 # Grep'ing the whole file is not good either: AIX grep has a line | |
12661 # limit of 2048, but all sed's we know have understand at least 4000. | |
12662 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
12663 dirpart=`$as_dirname -- "$mf" || | |
12664 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12665 X"$mf" : 'X\(//\)[^/]' \| \ | |
12666 X"$mf" : 'X\(//\)$' \| \ | |
12667 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
12668 $as_echo X"$mf" | | |
12669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12670 s//\1/ | |
12671 q | |
12672 } | |
12673 /^X\(\/\/\)[^/].*/{ | |
12674 s//\1/ | |
12675 q | |
12676 } | |
12677 /^X\(\/\/\)$/{ | |
12678 s//\1/ | |
12679 q | |
12680 } | |
12681 /^X\(\/\).*/{ | |
12682 s//\1/ | |
12683 q | |
12684 } | |
12685 s/.*/./; q'` | |
12686 else | |
12687 continue | |
12688 fi | |
12689 # Extract the definition of DEPDIR, am__include, and am__quote | |
12690 # from the Makefile without running `make'. | |
12691 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
12692 test -z "$DEPDIR" && continue | |
12693 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
12694 test -z "am__include" && continue | |
12695 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
12696 # When using ansi2knr, U may be empty or an underscore; expand it | |
12697 U=`sed -n 's/^U = //p' < "$mf"` | |
12698 # Find all dependency output files, they are included files with | |
12699 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12700 # simplest approach to changing $(DEPDIR) to its actual value in the | |
12701 # expansion. | |
12702 for file in `sed -n " | |
12703 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
12704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
12705 # Make sure the directory exists. | |
12706 test -f "$dirpart/$file" && continue | |
12707 fdir=`$as_dirname -- "$file" || | |
12708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12709 X"$file" : 'X\(//\)[^/]' \| \ | |
12710 X"$file" : 'X\(//\)$' \| \ | |
12711 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
12712 $as_echo X"$file" | | |
12713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12714 s//\1/ | |
12715 q | |
12716 } | |
12717 /^X\(\/\/\)[^/].*/{ | |
12718 s//\1/ | |
12719 q | |
12720 } | |
12721 /^X\(\/\/\)$/{ | |
12722 s//\1/ | |
12723 q | |
12724 } | |
12725 /^X\(\/\).*/{ | |
12726 s//\1/ | |
12727 q | |
12728 } | |
12729 s/.*/./; q'` | |
12730 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
12731 # echo "creating $dirpart/$file" | |
12732 echo '# dummy' > "$dirpart/$file" | |
12733 done | |
12734 done | |
12735 } | |
12736 ;; | |
12737 "libtool":C) | |
12738 | |
12739 # See if we are running on zsh, and set the options which allow our | |
12740 # commands through without removal of \ escapes. | |
12741 if test -n "${ZSH_VERSION+set}" ; then | |
12742 setopt NO_GLOB_SUBST | |
12743 fi | |
12744 | |
12745 cfgfile="${ofile}T" | |
12746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
12747 $RM "$cfgfile" | |
12748 | |
12749 cat <<_LT_EOF >> "$cfgfile" | |
12750 #! $SHELL | |
12751 | |
12752 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
12753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
12754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12755 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
12756 # | |
12757 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
12758 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
12759 # Foundation, Inc. | |
12760 # Written by Gordon Matzigkeit, 1996 | |
12761 # | |
12762 # This file is part of GNU Libtool. | |
12763 # | |
12764 # GNU Libtool is free software; you can redistribute it and/or | |
12765 # modify it under the terms of the GNU General Public License as | |
12766 # published by the Free Software Foundation; either version 2 of | |
12767 # the License, or (at your option) any later version. | |
12768 # | |
12769 # As a special exception to the GNU General Public License, | |
12770 # if you distribute this file as part of a program or library that | |
12771 # is built using GNU Libtool, you may include this file under the | |
12772 # same distribution terms that you use for the rest of that program. | |
12773 # | |
12774 # GNU Libtool is distributed in the hope that it will be useful, | |
12775 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12776 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12777 # GNU General Public License for more details. | |
12778 # | |
12779 # You should have received a copy of the GNU General Public License | |
12780 # along with GNU Libtool; see the file COPYING. If not, a copy | |
12781 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
12782 # obtained by writing to the Free Software Foundation, Inc., | |
12783 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
12784 | |
12785 | |
12786 # The names of the tagged configurations supported by this script. | |
12787 available_tags="" | |
12788 | |
12789 # ### BEGIN LIBTOOL CONFIG | |
12790 | |
12791 # Which release of libtool.m4 was used? | |
12792 macro_version=$macro_version | |
12793 macro_revision=$macro_revision | |
12794 | |
12795 # Whether or not to build shared libraries. | |
12796 build_libtool_libs=$enable_shared | |
12797 | |
12798 # Whether or not to build static libraries. | |
12799 build_old_libs=$enable_static | |
12800 | |
12801 # What type of objects to build. | |
12802 pic_mode=$pic_mode | |
12803 | |
12804 # Whether or not to optimize for fast installation. | |
12805 fast_install=$enable_fast_install | |
12806 | |
12807 # Shell to use when invoking shell scripts. | |
12808 SHELL=$lt_SHELL | |
12809 | |
12810 # An echo program that protects backslashes. | |
12811 ECHO=$lt_ECHO | |
12812 | |
12813 # The PATH separator for the build system. | |
12814 PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
12815 | |
12816 # The host system. | |
12817 host_alias=$host_alias | |
12818 host=$host | |
12819 host_os=$host_os | |
12820 | |
12821 # The build system. | |
12822 build_alias=$build_alias | |
12823 build=$build | |
12824 build_os=$build_os | |
12825 | |
12826 # A sed program that does not truncate output. | |
12827 SED=$lt_SED | |
12828 | |
12829 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
12830 Xsed="\$SED -e 1s/^X//" | |
12831 | |
12832 # A grep program that handles long lines. | |
12833 GREP=$lt_GREP | |
12834 | |
12835 # An ERE matcher. | |
12836 EGREP=$lt_EGREP | |
12837 | |
12838 # A literal string matcher. | |
12839 FGREP=$lt_FGREP | |
12840 | |
12841 # A BSD- or MS-compatible name lister. | |
12842 NM=$lt_NM | |
12843 | |
12844 # Whether we need soft or hard links. | |
12845 LN_S=$lt_LN_S | |
12846 | |
12847 # What is the maximum length of a command? | |
12848 max_cmd_len=$max_cmd_len | |
12849 | |
12850 # Object file suffix (normally "o"). | |
12851 objext=$ac_objext | |
12852 | |
12853 # Executable file suffix (normally ""). | |
12854 exeext=$exeext | |
12855 | |
12856 # whether the shell understands "unset". | |
12857 lt_unset=$lt_unset | |
12858 | |
12859 # turn spaces into newlines. | |
12860 SP2NL=$lt_lt_SP2NL | |
12861 | |
12862 # turn newlines into spaces. | |
12863 NL2SP=$lt_lt_NL2SP | |
12864 | |
12865 # convert \$build file names to \$host format. | |
12866 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
12867 | |
12868 # convert \$build files to toolchain format. | |
12869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
12870 | |
12871 # An object symbol dumper. | |
12872 OBJDUMP=$lt_OBJDUMP | |
12873 | |
12874 # Method to check whether dependent libraries are shared objects. | |
12875 deplibs_check_method=$lt_deplibs_check_method | |
12876 | |
12877 # Command to use when deplibs_check_method = "file_magic". | |
12878 file_magic_cmd=$lt_file_magic_cmd | |
12879 | |
12880 # How to find potential files when deplibs_check_method = "file_magic". | |
12881 file_magic_glob=$lt_file_magic_glob | |
12882 | |
12883 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
12884 want_nocaseglob=$lt_want_nocaseglob | |
12885 | |
12886 # DLL creation program. | |
12887 DLLTOOL=$lt_DLLTOOL | |
12888 | |
12889 # Command to associate shared and link libraries. | |
12890 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
12891 | |
12892 # The archiver. | |
12893 AR=$lt_AR | |
12894 | |
12895 # Flags to create an archive. | |
12896 AR_FLAGS=$lt_AR_FLAGS | |
12897 | |
12898 # How to feed a file listing to the archiver. | |
12899 archiver_list_spec=$lt_archiver_list_spec | |
12900 | |
12901 # A symbol stripping program. | |
12902 STRIP=$lt_STRIP | |
12903 | |
12904 # Commands used to install an old-style archive. | |
12905 RANLIB=$lt_RANLIB | |
12906 old_postinstall_cmds=$lt_old_postinstall_cmds | |
12907 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12908 | |
12909 # Whether to use a lock for old archive extraction. | |
12910 lock_old_archive_extraction=$lock_old_archive_extraction | |
12911 | |
12912 # A C compiler. | |
12913 LTCC=$lt_CC | |
12914 | |
12915 # LTCC compiler flags. | |
12916 LTCFLAGS=$lt_CFLAGS | |
12917 | |
12918 # Take the output of nm and produce a listing of raw symbols and C names. | |
12919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
12920 | |
12921 # Transform the output of nm in a proper C declaration. | |
12922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
12923 | |
12924 # Transform the output of nm in a C name address pair. | |
12925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12926 | |
12927 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
12928 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
12929 | |
12930 # Specify filename containing input files for \$NM. | |
12931 nm_file_list_spec=$lt_nm_file_list_spec | |
12932 | |
12933 # The root where to search for dependent libraries,and in which our libraries should be installed. | |
12934 lt_sysroot=$lt_sysroot | |
12935 | |
12936 # The name of the directory that contains temporary libtool files. | |
12937 objdir=$objdir | |
12938 | |
12939 # Used to examine libraries when file_magic_cmd begins with "file". | |
12940 MAGIC_CMD=$MAGIC_CMD | |
12941 | |
12942 # Must we lock files when doing compilation? | |
12943 need_locks=$lt_need_locks | |
12944 | |
12945 # Manifest tool. | |
12946 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
12947 | |
12948 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
12949 DSYMUTIL=$lt_DSYMUTIL | |
12950 | |
12951 # Tool to change global to local symbols on Mac OS X. | |
12952 NMEDIT=$lt_NMEDIT | |
12953 | |
12954 # Tool to manipulate fat objects and archives on Mac OS X. | |
12955 LIPO=$lt_LIPO | |
12956 | |
12957 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
12958 OTOOL=$lt_OTOOL | |
12959 | |
12960 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
12961 OTOOL64=$lt_OTOOL64 | |
12962 | |
12963 # Old archive suffix (normally "a"). | |
12964 libext=$libext | |
12965 | |
12966 # Shared library suffix (normally ".so"). | |
12967 shrext_cmds=$lt_shrext_cmds | |
12968 | |
12969 # The commands to extract the exported symbol list from a shared archive. | |
12970 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12971 | |
12972 # Variables whose values should be saved in libtool wrapper scripts and | |
12973 # restored at link time. | |
12974 variables_saved_for_relink=$lt_variables_saved_for_relink | |
12975 | |
12976 # Do we need the "lib" prefix for modules? | |
12977 need_lib_prefix=$need_lib_prefix | |
12978 | |
12979 # Do we need a version for libraries? | |
12980 need_version=$need_version | |
12981 | |
12982 # Library versioning type. | |
12983 version_type=$version_type | |
12984 | |
12985 # Shared library runtime path variable. | |
12986 runpath_var=$runpath_var | |
12987 | |
12988 # Shared library path variable. | |
12989 shlibpath_var=$shlibpath_var | |
12990 | |
12991 # Is shlibpath searched before the hard-coded library search path? | |
12992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12993 | |
12994 # Format of library name prefix. | |
12995 libname_spec=$lt_libname_spec | |
12996 | |
12997 # List of archive names. First name is the real one, the rest are links. | |
12998 # The last name is the one that the linker finds with -lNAME | |
12999 library_names_spec=$lt_library_names_spec | |
13000 | |
13001 # The coded name of the library, if different from the real name. | |
13002 soname_spec=$lt_soname_spec | |
13003 | |
13004 # Permission mode override for installation of shared libraries. | |
13005 install_override_mode=$lt_install_override_mode | |
13006 | |
13007 # Command to use after installation of a shared archive. | |
13008 postinstall_cmds=$lt_postinstall_cmds | |
13009 | |
13010 # Command to use after uninstallation of a shared archive. | |
13011 postuninstall_cmds=$lt_postuninstall_cmds | |
13012 | |
13013 # Commands used to finish a libtool library installation in a directory. | |
13014 finish_cmds=$lt_finish_cmds | |
13015 | |
13016 # As "finish_cmds", except a single script fragment to be evaled but | |
13017 # not shown. | |
13018 finish_eval=$lt_finish_eval | |
13019 | |
13020 # Whether we should hardcode library paths into libraries. | |
13021 hardcode_into_libs=$hardcode_into_libs | |
13022 | |
13023 # Compile-time system search path for libraries. | |
13024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13025 | |
13026 # Run-time system search path for libraries. | |
13027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13028 | |
13029 # Whether dlopen is supported. | |
13030 dlopen_support=$enable_dlopen | |
13031 | |
13032 # Whether dlopen of programs is supported. | |
13033 dlopen_self=$enable_dlopen_self | |
13034 | |
13035 # Whether dlopen of statically linked programs is supported. | |
13036 dlopen_self_static=$enable_dlopen_self_static | |
13037 | |
13038 # Commands to strip libraries. | |
13039 old_striplib=$lt_old_striplib | |
13040 striplib=$lt_striplib | |
13041 | |
13042 | |
13043 # The linker used to build libraries. | |
13044 LD=$lt_LD | |
13045 | |
13046 # How to create reloadable object files. | |
13047 reload_flag=$lt_reload_flag | |
13048 reload_cmds=$lt_reload_cmds | |
13049 | |
13050 # Commands used to build an old-style archive. | |
13051 old_archive_cmds=$lt_old_archive_cmds | |
13052 | |
13053 # A language specific compiler. | |
13054 CC=$lt_compiler | |
13055 | |
13056 # Is the compiler the GNU compiler? | |
13057 with_gcc=$GCC | |
13058 | |
13059 # Compiler flag to turn off builtin functions. | |
13060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13061 | |
13062 # Additional compiler flags for building library objects. | |
13063 pic_flag=$lt_lt_prog_compiler_pic | |
13064 | |
13065 # How to pass a linker flag through the compiler. | |
13066 wl=$lt_lt_prog_compiler_wl | |
13067 | |
13068 # Compiler flag to prevent dynamic linking. | |
13069 link_static_flag=$lt_lt_prog_compiler_static | |
13070 | |
13071 # Does compiler simultaneously support -c and -o options? | |
13072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13073 | |
13074 # Whether or not to add -lc for building shared libraries. | |
13075 build_libtool_need_lc=$archive_cmds_need_lc | |
13076 | |
13077 # Whether or not to disallow shared libs when runtime libs are static. | |
13078 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13079 | |
13080 # Compiler flag to allow reflexive dlopens. | |
13081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13082 | |
13083 # Compiler flag to generate shared objects directly from archives. | |
13084 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13085 | |
13086 # Whether the compiler copes with passing no objects directly. | |
13087 compiler_needs_object=$lt_compiler_needs_object | |
13088 | |
13089 # Create an old-style archive from a shared archive. | |
13090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13091 | |
13092 # Create a temporary old-style archive to link instead of a shared archive. | |
13093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13094 | |
13095 # Commands used to build a shared archive. | |
13096 archive_cmds=$lt_archive_cmds | |
13097 archive_expsym_cmds=$lt_archive_expsym_cmds | |
13098 | |
13099 # Commands used to build a loadable module if different from building | |
13100 # a shared archive. | |
13101 module_cmds=$lt_module_cmds | |
13102 module_expsym_cmds=$lt_module_expsym_cmds | |
13103 | |
13104 # Whether we are building with GNU ld or not. | |
13105 with_gnu_ld=$lt_with_gnu_ld | |
13106 | |
13107 # Flag that allows shared libraries with undefined symbols to be built. | |
13108 allow_undefined_flag=$lt_allow_undefined_flag | |
13109 | |
13110 # Flag that enforces no undefined symbols. | |
13111 no_undefined_flag=$lt_no_undefined_flag | |
13112 | |
13113 # Flag to hardcode \$libdir into a binary during linking. | |
13114 # This must work even if \$libdir does not exist | |
13115 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13116 | |
13117 # Whether we need a single "-rpath" flag with a separated argument. | |
13118 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13119 | |
13120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13121 # DIR into the resulting binary. | |
13122 hardcode_direct=$hardcode_direct | |
13123 | |
13124 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13125 # DIR into the resulting binary and the resulting library dependency is | |
13126 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13127 # library is relocated. | |
13128 hardcode_direct_absolute=$hardcode_direct_absolute | |
13129 | |
13130 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13131 # into the resulting binary. | |
13132 hardcode_minus_L=$hardcode_minus_L | |
13133 | |
13134 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13135 # into the resulting binary. | |
13136 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13137 | |
13138 # Set to "yes" if building a shared library automatically hardcodes DIR | |
13139 # into the library and all subsequent libraries and executables linked | |
13140 # against it. | |
13141 hardcode_automatic=$hardcode_automatic | |
13142 | |
13143 # Set to yes if linker adds runtime paths of dependent libraries | |
13144 # to runtime path list. | |
13145 inherit_rpath=$inherit_rpath | |
13146 | |
13147 # Whether libtool must link a program against all its dependency libraries. | |
13148 link_all_deplibs=$link_all_deplibs | |
13149 | |
13150 # Set to "yes" if exported symbols are required. | |
13151 always_export_symbols=$always_export_symbols | |
13152 | |
13153 # The commands to list exported symbols. | |
13154 export_symbols_cmds=$lt_export_symbols_cmds | |
13155 | |
13156 # Symbols that should not be listed in the preloaded symbols. | |
13157 exclude_expsyms=$lt_exclude_expsyms | |
13158 | |
13159 # Symbols that must always be exported. | |
13160 include_expsyms=$lt_include_expsyms | |
13161 | |
13162 # Commands necessary for linking programs (against libraries) with templates. | |
13163 prelink_cmds=$lt_prelink_cmds | |
13164 | |
13165 # Commands necessary for finishing linking programs. | |
13166 postlink_cmds=$lt_postlink_cmds | |
13167 | |
13168 # Specify filename containing input files. | |
13169 file_list_spec=$lt_file_list_spec | |
13170 | |
13171 # How to hardcode a shared library path into an executable. | |
13172 hardcode_action=$hardcode_action | |
13173 | |
13174 # ### END LIBTOOL CONFIG | |
13175 | |
13176 _LT_EOF | |
13177 | |
13178 case $host_os in | |
13179 aix3*) | |
13180 cat <<\_LT_EOF >> "$cfgfile" | |
13181 # AIX sometimes has problems with the GCC collect2 program. For some | |
13182 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13183 # vanish in a puff of smoke. | |
13184 if test "X${COLLECT_NAMES+set}" != Xset; then | |
13185 COLLECT_NAMES= | |
13186 export COLLECT_NAMES | |
13187 fi | |
13188 _LT_EOF | |
13189 ;; | |
13190 esac | |
13191 | |
13192 | |
13193 ltmain="$ac_aux_dir/ltmain.sh" | |
13194 | |
13195 | |
13196 # We use sed instead of cat because bash on DJGPP gets confused if | |
13197 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13198 # text mode, it properly converts lines to CR/LF. This bash problem | |
13199 # is reportedly fixed, but why not run on old versions too? | |
13200 sed '$q' "$ltmain" >> "$cfgfile" \ | |
13201 || (rm -f "$cfgfile"; exit 1) | |
13202 | |
13203 if test x"$xsi_shell" = xyes; then | |
13204 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
13205 func_dirname ()\ | |
13206 {\ | |
13207 \ case ${1} in\ | |
13208 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
13209 \ * ) func_dirname_result="${3}" ;;\ | |
13210 \ esac\ | |
13211 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
13212 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13214 test 0 -eq $? || _lt_function_replace_fail=: | |
13215 | |
13216 | |
13217 sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
13218 func_basename ()\ | |
13219 {\ | |
13220 \ func_basename_result="${1##*/}"\ | |
13221 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
13222 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13224 test 0 -eq $? || _lt_function_replace_fail=: | |
13225 | |
13226 | |
13227 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
13228 func_dirname_and_basename ()\ | |
13229 {\ | |
13230 \ case ${1} in\ | |
13231 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
13232 \ * ) func_dirname_result="${3}" ;;\ | |
13233 \ esac\ | |
13234 \ func_basename_result="${1##*/}"\ | |
13235 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
13236 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13238 test 0 -eq $? || _lt_function_replace_fail=: | |
13239 | |
13240 | |
13241 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
13242 func_stripname ()\ | |
13243 {\ | |
13244 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
13245 \ # positional parameters, so assign one to ordinary parameter first.\ | |
13246 \ func_stripname_result=${3}\ | |
13247 \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
13248 \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
13249 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
13250 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13252 test 0 -eq $? || _lt_function_replace_fail=: | |
13253 | |
13254 | |
13255 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
13256 func_split_long_opt ()\ | |
13257 {\ | |
13258 \ func_split_long_opt_name=${1%%=*}\ | |
13259 \ func_split_long_opt_arg=${1#*=}\ | |
13260 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
13261 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13263 test 0 -eq $? || _lt_function_replace_fail=: | |
13264 | |
13265 | |
13266 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
13267 func_split_short_opt ()\ | |
13268 {\ | |
13269 \ func_split_short_opt_arg=${1#??}\ | |
13270 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
13271 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
13272 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13274 test 0 -eq $? || _lt_function_replace_fail=: | |
13275 | |
13276 | |
13277 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
13278 func_lo2o ()\ | |
13279 {\ | |
13280 \ case ${1} in\ | |
13281 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
13282 \ *) func_lo2o_result=${1} ;;\ | |
13283 \ esac\ | |
13284 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
13285 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13287 test 0 -eq $? || _lt_function_replace_fail=: | |
13288 | |
13289 | |
13290 sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
13291 func_xform ()\ | |
13292 {\ | |
13293 func_xform_result=${1%.*}.lo\ | |
13294 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
13295 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13297 test 0 -eq $? || _lt_function_replace_fail=: | |
13298 | |
13299 | |
13300 sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
13301 func_arith ()\ | |
13302 {\ | |
13303 func_arith_result=$(( $* ))\ | |
13304 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
13305 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13307 test 0 -eq $? || _lt_function_replace_fail=: | |
13308 | |
13309 | |
13310 sed -e '/^func_len ()$/,/^} # func_len /c\ | |
13311 func_len ()\ | |
13312 {\ | |
13313 func_len_result=${#1}\ | |
13314 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
13315 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13317 test 0 -eq $? || _lt_function_replace_fail=: | |
13318 | |
13319 fi | |
13320 | |
13321 if test x"$lt_shell_append" = xyes; then | |
13322 sed -e '/^func_append ()$/,/^} # func_append /c\ | |
13323 func_append ()\ | |
13324 {\ | |
13325 eval "${1}+=\\${2}"\ | |
13326 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
13327 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13329 test 0 -eq $? || _lt_function_replace_fail=: | |
13330 | |
13331 | |
13332 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
13333 func_append_quoted ()\ | |
13334 {\ | |
13335 \ func_quote_for_eval "${2}"\ | |
13336 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
13337 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
13338 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13340 test 0 -eq $? || _lt_function_replace_fail=: | |
13341 | |
13342 | |
13343 # Save a `func_append' function call where possible by direct use of '+=' | |
13344 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
13345 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13347 test 0 -eq $? || _lt_function_replace_fail=: | |
13348 else | |
13349 # Save a `func_append' function call even when '+=' is not available | |
13350 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
13351 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
13352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
13353 test 0 -eq $? || _lt_function_replace_fail=: | |
13354 fi | |
13355 | |
13356 if test x"$_lt_function_replace_fail" = x":"; then | |
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
13358 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
13359 fi | |
13360 | |
13361 | |
13362 mv -f "$cfgfile" "$ofile" || | |
13363 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
13364 chmod +x "$ofile" | |
13365 | |
13366 ;; | |
13367 | |
13368 esac | |
13369 done # for ac_tag | |
13370 | |
13371 | |
13372 as_fn_exit 0 | |
13373 _ACEOF | |
13374 ac_clean_files=$ac_clean_files_save | |
13375 | |
13376 test $ac_write_fail = 0 || | |
13377 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
13378 | |
13379 | |
13380 # configure is writing to config.log, and then calls config.status. | |
13381 # config.status does its own redirection, appending to config.log. | |
13382 # Unfortunately, on DOS this fails, as config.log is still kept open | |
13383 # by configure, so config.status won't be able to write to it; its | |
13384 # output is simply discarded. So we exec the FD to /dev/null, | |
13385 # effectively closing config.log, so it can be properly (re)opened and | |
13386 # appended to by config.status. When coming back to configure, we | |
13387 # need to make the FD available again. | |
13388 if test "$no_create" != yes; then | |
13389 ac_cs_success=: | |
13390 ac_config_status_args= | |
13391 test "$silent" = yes && | |
13392 ac_config_status_args="$ac_config_status_args --quiet" | |
13393 exec 5>/dev/null | |
13394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13395 exec 5>>config.log | |
13396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13397 # would make configure fail if this is the last instruction. | |
13398 $ac_cs_success || as_fn_exit 1 | |
13399 fi | |
13400 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13402 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13403 fi | |
13404 | |
13405 | |
13406 cat <<EOF | |
13407 | |
13408 Ur/Web e-mail library configuration: | |
13409 Ur/Web lib: URWEB_LIB $URWEB_LIB | |
13410 Ur/Web include: URWEB_INC $URWEB_INC | |
13411 EOF |