]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.65 for Cycript 0.9. | |
4 | # | |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
10 | # Inc. | |
11 | # | |
12 | # | |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
15 | ## -------------------- ## | |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
94 | case $0 in #(( | |
95 | *[\\/]* ) as_myself=$0 ;; | |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
97 | for as_dir in $PATH | |
98 | do | |
99 | IFS=$as_save_IFS | |
100 | test -z "$as_dir" && as_dir=. | |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
102 | done | |
103 | IFS=$as_save_IFS | |
104 | ||
105 | ;; | |
106 | esac | |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
108 | # in which case we are not to be found in the path. | |
109 | if test "x$as_myself" = x; then | |
110 | as_myself=$0 | |
111 | fi | |
112 | if test ! -f "$as_myself"; then | |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
114 | exit 1 | |
115 | fi | |
116 | ||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
119 | # suppresses any "Segmentation fault" message there. '((' could | |
120 | # trigger a bug in pdksh 5.2.14. | |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
122 | do eval test x\${$as_var+set} = xset \ | |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
124 | done | |
125 | PS1='$ ' | |
126 | PS2='> ' | |
127 | PS4='+ ' | |
128 | ||
129 | # NLS nuisances. | |
130 | LC_ALL=C | |
131 | export LC_ALL | |
132 | LANGUAGE=C | |
133 | export LANGUAGE | |
134 | ||
135 | # CDPATH. | |
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
137 | ||
138 | if test "x$CONFIG_SHELL" = x; then | |
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
140 | emulate sh | |
141 | NULLCMD=: | |
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
143 | # is contrary to our usage. Disable this feature. | |
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
145 | setopt NO_GLOB_SUBST | |
146 | else | |
147 | case \`(set -o) 2>/dev/null\` in #( | |
148 | *posix*) : | |
149 | set -o posix ;; #( | |
150 | *) : | |
151 | ;; | |
152 | esac | |
153 | fi | |
154 | " | |
155 | as_required="as_fn_return () { (exit \$1); } | |
156 | as_fn_success () { as_fn_return 0; } | |
157 | as_fn_failure () { as_fn_return 1; } | |
158 | as_fn_ret_success () { return 0; } | |
159 | as_fn_ret_failure () { return 1; } | |
160 | ||
161 | exitcode=0 | |
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
167 | ||
168 | else | |
169 | exitcode=1; echo positional parameters were not saved. | |
170 | fi | |
171 | test x\$exitcode = x0 || exit 1" | |
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
176 | test \$(( 1 + 1 )) = 2 || exit 1" | |
177 | if (eval "$as_required") 2>/dev/null; then : | |
178 | as_have_required=yes | |
179 | else | |
180 | as_have_required=no | |
181 | fi | |
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
183 | ||
184 | else | |
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
186 | as_found=false | |
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
188 | do | |
189 | IFS=$as_save_IFS | |
190 | test -z "$as_dir" && as_dir=. | |
191 | as_found=: | |
192 | case $as_dir in #( | |
193 | /*) | |
194 | for as_base in sh bash ksh sh5; do | |
195 | # Try only shells that exist, to save several forks. | |
196 | as_shell=$as_dir/$as_base | |
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | CONFIG_SHELL=$as_shell as_have_required=yes | |
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
201 | break 2 | |
202 | fi | |
203 | fi | |
204 | done;; | |
205 | esac | |
206 | as_found=false | |
207 | done | |
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
210 | CONFIG_SHELL=$SHELL as_have_required=yes | |
211 | fi; } | |
212 | IFS=$as_save_IFS | |
213 | ||
214 | ||
215 | if test "x$CONFIG_SHELL" != x; then : | |
216 | # We cannot yet assume a decent shell, so we have to provide a | |
217 | # neutralization value for shells without unset; and this also | |
218 | # works around shells that cannot unset nonexistent variables. | |
219 | BASH_ENV=/dev/null | |
220 | ENV=/dev/null | |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | export CONFIG_SHELL | |
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
224 | fi | |
225 | ||
226 | if test x$as_have_required = xno; then : | |
227 | $as_echo "$0: This script requires a shell more modern than all" | |
228 | $as_echo "$0: the shells that I found on your system." | |
229 | if test x${ZSH_VERSION+set} = xset ; then | |
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
232 | else | |
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
234 | $0: about your system, including any error possibly output | |
235 | $0: before this message. Then install a modern shell, or | |
236 | $0: manually run the script under such a shell if you do | |
237 | $0: have one." | |
238 | fi | |
239 | exit 1 | |
240 | fi | |
241 | fi | |
242 | fi | |
243 | SHELL=${CONFIG_SHELL-/bin/sh} | |
244 | export SHELL | |
245 | # Unset more variables known to interfere with behavior of common tools. | |
246 | CLICOLOR_FORCE= GREP_OPTIONS= | |
247 | unset CLICOLOR_FORCE GREP_OPTIONS | |
248 | ||
249 | ## --------------------- ## | |
250 | ## M4sh Shell Functions. ## | |
251 | ## --------------------- ## | |
252 | # as_fn_unset VAR | |
253 | # --------------- | |
254 | # Portably unset VAR. | |
255 | as_fn_unset () | |
256 | { | |
257 | { eval $1=; unset $1;} | |
258 | } | |
259 | as_unset=as_fn_unset | |
260 | ||
261 | # as_fn_set_status STATUS | |
262 | # ----------------------- | |
263 | # Set $? to STATUS, without forking. | |
264 | as_fn_set_status () | |
265 | { | |
266 | return $1 | |
267 | } # as_fn_set_status | |
268 | ||
269 | # as_fn_exit STATUS | |
270 | # ----------------- | |
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
272 | as_fn_exit () | |
273 | { | |
274 | set +e | |
275 | as_fn_set_status $1 | |
276 | exit $1 | |
277 | } # as_fn_exit | |
278 | ||
279 | # as_fn_mkdir_p | |
280 | # ------------- | |
281 | # Create "$as_dir" as a directory, including parents if necessary. | |
282 | as_fn_mkdir_p () | |
283 | { | |
284 | ||
285 | case $as_dir in #( | |
286 | -*) as_dir=./$as_dir;; | |
287 | esac | |
288 | test -d "$as_dir" || eval $as_mkdir_p || { | |
289 | as_dirs= | |
290 | while :; do | |
291 | case $as_dir in #( | |
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
293 | *) as_qdir=$as_dir;; | |
294 | esac | |
295 | as_dirs="'$as_qdir' $as_dirs" | |
296 | as_dir=`$as_dirname -- "$as_dir" || | |
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
299 | X"$as_dir" : 'X\(//\)$' \| \ | |
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
301 | $as_echo X"$as_dir" | | |
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
303 | s//\1/ | |
304 | q | |
305 | } | |
306 | /^X\(\/\/\)[^/].*/{ | |
307 | s//\1/ | |
308 | q | |
309 | } | |
310 | /^X\(\/\/\)$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\).*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | s/.*/./; q'` | |
319 | test -d "$as_dir" && break | |
320 | done | |
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
323 | ||
324 | ||
325 | } # as_fn_mkdir_p | |
326 | # as_fn_append VAR VALUE | |
327 | # ---------------------- | |
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
329 | # advantage of any shell optimizations that allow amortized linear growth over | |
330 | # repeated appends, instead of the typical quadratic growth present in naive | |
331 | # implementations. | |
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
333 | eval 'as_fn_append () | |
334 | { | |
335 | eval $1+=\$2 | |
336 | }' | |
337 | else | |
338 | as_fn_append () | |
339 | { | |
340 | eval $1=\$$1\$2 | |
341 | } | |
342 | fi # as_fn_append | |
343 | ||
344 | # as_fn_arith ARG... | |
345 | # ------------------ | |
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
348 | # must be portable across $(()) and expr. | |
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
350 | eval 'as_fn_arith () | |
351 | { | |
352 | as_val=$(( $* )) | |
353 | }' | |
354 | else | |
355 | as_fn_arith () | |
356 | { | |
357 | as_val=`expr "$@" || test $? -eq 1` | |
358 | } | |
359 | fi # as_fn_arith | |
360 | ||
361 | ||
362 | # as_fn_error ERROR [LINENO LOG_FD] | |
363 | # --------------------------------- | |
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
366 | # script with status $?, using 1 if that was 0. | |
367 | as_fn_error () | |
368 | { | |
369 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
370 | if test "$3"; then | |
371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
373 | fi | |
374 | $as_echo "$as_me: error: $1" >&2 | |
375 | as_fn_exit $as_status | |
376 | } # as_fn_error | |
377 | ||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
380 | as_expr=expr | |
381 | else | |
382 | as_expr=false | |
383 | fi | |
384 | ||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
386 | as_basename=basename | |
387 | else | |
388 | as_basename=false | |
389 | fi | |
390 | ||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
392 | as_dirname=dirname | |
393 | else | |
394 | as_dirname=false | |
395 | fi | |
396 | ||
397 | as_me=`$as_basename -- "$0" || | |
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
399 | X"$0" : 'X\(//\)$' \| \ | |
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
401 | $as_echo X/"$0" | | |
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
403 | s//\1/ | |
404 | q | |
405 | } | |
406 | /^X\/\(\/\/\)$/{ | |
407 | s//\1/ | |
408 | q | |
409 | } | |
410 | /^X\/\(\/\).*/{ | |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | s/.*/./; q'` | |
415 | ||
416 | # Avoid depending upon Character Ranges. | |
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
420 | as_cr_digits='0123456789' | |
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
422 | ||
423 | ||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
429 | sed -n ' | |
430 | p | |
431 | /[$]LINENO/= | |
432 | ' <$as_myself | | |
433 | sed ' | |
434 | s/[$]LINENO.*/&-/ | |
435 | t lineno | |
436 | b | |
437 | :lineno | |
438 | N | |
439 | :loop | |
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
441 | t loop | |
442 | s/-\n.*// | |
443 | ' >$as_me.lineno && | |
444 | chmod +x "$as_me.lineno" || | |
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
446 | ||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | |
448 | # (the dirname of $[0] is not the place where we might find the | |
449 | # original and so on. Autoconf is especially sensitive to this). | |
450 | . "./$as_me.lineno" | |
451 | # Exit status is that of the last command. | |
452 | exit | |
453 | } | |
454 | ||
455 | ECHO_C= ECHO_N= ECHO_T= | |
456 | case `echo -n x` in #((((( | |
457 | -n*) | |
458 | case `echo 'xy\c'` in | |
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
460 | xy) ECHO_C='\c';; | |
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
462 | ECHO_T=' ';; | |
463 | esac;; | |
464 | *) | |
465 | ECHO_N='-n';; | |
466 | esac | |
467 | ||
468 | rm -f conf$$ conf$$.exe conf$$.file | |
469 | if test -d conf$$.dir; then | |
470 | rm -f conf$$.dir/conf$$.file | |
471 | else | |
472 | rm -f conf$$.dir | |
473 | mkdir conf$$.dir 2>/dev/null | |
474 | fi | |
475 | if (echo >conf$$.file) 2>/dev/null; then | |
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
477 | as_ln_s='ln -s' | |
478 | # ... but there are two gotchas: | |
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
481 | # In both cases, we have to default to `cp -p'. | |
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
483 | as_ln_s='cp -p' | |
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s=ln | |
486 | else | |
487 | as_ln_s='cp -p' | |
488 | fi | |
489 | else | |
490 | as_ln_s='cp -p' | |
491 | fi | |
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
493 | rmdir conf$$.dir 2>/dev/null | |
494 | ||
495 | if mkdir -p . 2>/dev/null; then | |
496 | as_mkdir_p='mkdir -p "$as_dir"' | |
497 | else | |
498 | test -d ./-p && rmdir ./-p | |
499 | as_mkdir_p=false | |
500 | fi | |
501 | ||
502 | if test -x / >/dev/null 2>&1; then | |
503 | as_test_x='test -x' | |
504 | else | |
505 | if ls -dL / >/dev/null 2>&1; then | |
506 | as_ls_L_option=L | |
507 | else | |
508 | as_ls_L_option= | |
509 | fi | |
510 | as_test_x=' | |
511 | eval sh -c '\'' | |
512 | if test -d "$1"; then | |
513 | test -d "$1/."; | |
514 | else | |
515 | case $1 in #( | |
516 | -*)set "./$1";; | |
517 | esac; | |
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
519 | ???[sx]*):;;*)false;;esac;fi | |
520 | '\'' sh | |
521 | ' | |
522 | fi | |
523 | as_executable_p=$as_test_x | |
524 | ||
525 | # Sed expression to map a string onto a valid CPP name. | |
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
527 | ||
528 | # Sed expression to map a string onto a valid variable name. | |
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | ||
532 | ||
533 | # Check that we are running under the correct shell. | |
534 | SHELL=${CONFIG_SHELL-/bin/sh} | |
535 | ||
536 | case X$lt_ECHO in | |
537 | X*--fallback-echo) | |
538 | # Remove one level of quotation (which was required for Make). | |
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
540 | ;; | |
541 | esac | |
542 | ||
543 | ECHO=${lt_ECHO-echo} | |
544 | if test "X$1" = X--no-reexec; then | |
545 | # Discard the --no-reexec flag, and continue. | |
546 | shift | |
547 | elif test "X$1" = X--fallback-echo; then | |
548 | # Avoid inline document here, it may be left over | |
549 | : | |
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
551 | # Yippee, $ECHO works! | |
552 | : | |
553 | else | |
554 | # Restart under the correct shell. | |
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
556 | fi | |
557 | ||
558 | if test "X$1" = X--fallback-echo; then | |
559 | # used as fallback echo | |
560 | shift | |
561 | cat <<_LT_EOF | |
562 | $* | |
563 | _LT_EOF | |
564 | exit 0 | |
565 | fi | |
566 | ||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
568 | # if CDPATH is set. | |
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
570 | ||
571 | if test -z "$lt_ECHO"; then | |
572 | if test "X${echo_test_string+set}" != Xset; then | |
573 | # find a string as large as possible, as long as the shell can cope with it | |
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
578 | then | |
579 | break | |
580 | fi | |
581 | done | |
582 | fi | |
583 | ||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
587 | : | |
588 | else | |
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
590 | # backslashes. This makes it impossible to quote backslashes using | |
591 | # echo "$something" | sed 's/\\/\\\\/g' | |
592 | # | |
593 | # So, first we look for a working echo in the user's PATH. | |
594 | ||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
596 | for dir in $PATH /usr/ucb; do | |
597 | IFS="$lt_save_ifs" | |
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
602 | ECHO="$dir/echo" | |
603 | break | |
604 | fi | |
605 | done | |
606 | IFS="$lt_save_ifs" | |
607 | ||
608 | if test "X$ECHO" = Xecho; then | |
609 | # We didn't find a better echo, so look for alternatives. | |
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
613 | # This shell has a builtin print -r that does the trick. | |
614 | ECHO='print -r' | |
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
617 | # If we have ksh, try running configure again with it. | |
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
619 | export ORIGINAL_CONFIG_SHELL | |
620 | CONFIG_SHELL=/bin/ksh | |
621 | export CONFIG_SHELL | |
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
623 | else | |
624 | # Try using printf. | |
625 | ECHO='printf %s\n' | |
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
629 | # Cool, printf works | |
630 | : | |
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
632 | test "X$echo_testing_string" = 'X\t' && | |
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
636 | export CONFIG_SHELL | |
637 | SHELL="$CONFIG_SHELL" | |
638 | export SHELL | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
641 | test "X$echo_testing_string" = 'X\t' && | |
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
645 | else | |
646 | # maybe with a smaller string... | |
647 | prev=: | |
648 | ||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
651 | then | |
652 | break | |
653 | fi | |
654 | prev="$cmd" | |
655 | done | |
656 | ||
657 | if test "$prev" != 'sed 50q "$0"'; then | |
658 | echo_test_string=`eval $prev` | |
659 | export echo_test_string | |
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
661 | else | |
662 | # Oops. We lost completely, so just stick with echo. | |
663 | ECHO=echo | |
664 | fi | |
665 | fi | |
666 | fi | |
667 | fi | |
668 | fi | |
669 | fi | |
670 | ||
671 | # Copy echo and quote the copy suitably for passing to libtool from | |
672 | # the Makefile, instead of quoting the original, which is used later. | |
673 | lt_ECHO=$ECHO | |
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
676 | fi | |
677 | ||
678 | ||
679 | ||
680 | as_awk_strverscmp=' | |
681 | # Use only awk features that work with 7th edition Unix awk (1978). | |
682 | # My, what an old awk you have, Mr. Solaris! | |
683 | END { | |
684 | while (length(v1) && length(v2)) { | |
685 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
686 | # Normally this is a single character, but if v1 and v2 contain digits, | |
687 | # compare them as integers and fractions as strverscmp does. | |
688 | if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { | |
689 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
690 | # and advance v1 and v2 past the leading digit strings. | |
691 | for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue | |
692 | for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue | |
693 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
694 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
695 | if (d1 ~ /^0/) { | |
696 | if (d2 ~ /^0/) { | |
697 | # Compare two fractions. | |
698 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
699 | d1 = substr(d1, 2); len1-- | |
700 | d2 = substr(d2, 2); len2-- | |
701 | } | |
702 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
703 | # The two components differ in length, and the common prefix | |
704 | # contains only leading zeros. Consider the longer to be less. | |
705 | d1 = -len1 | |
706 | d2 = -len2 | |
707 | } else { | |
708 | # Otherwise, compare as strings. | |
709 | d1 = "x" d1 | |
710 | d2 = "x" d2 | |
711 | } | |
712 | } else { | |
713 | # A fraction is less than an integer. | |
714 | exit 1 | |
715 | } | |
716 | } else { | |
717 | if (d2 ~ /^0/) { | |
718 | # An integer is greater than a fraction. | |
719 | exit 2 | |
720 | } else { | |
721 | # Compare two integers. | |
722 | d1 += 0 | |
723 | d2 += 0 | |
724 | } | |
725 | } | |
726 | } else { | |
727 | # The normal case, without worrying about digits. | |
728 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
729 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
730 | } | |
731 | if (d1 < d2) exit 1 | |
732 | if (d1 > d2) exit 2 | |
733 | } | |
734 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
735 | # which mishandles some comparisons of empty strings to integers. | |
736 | if (length(v2)) exit 1 | |
737 | if (length(v1)) exit 2 | |
738 | } | |
739 | ' | |
740 | ||
741 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
742 | exec 6>&1 | |
743 | ||
744 | # Name of the host. | |
745 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
746 | # so uname gets run too. | |
747 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
748 | ||
749 | # | |
750 | # Initializations. | |
751 | # | |
752 | ac_default_prefix=/usr/local | |
753 | ac_clean_files= | |
754 | ac_config_libobj_dir=. | |
755 | LIBOBJS= | |
756 | cross_compiling=no | |
757 | subdirs= | |
758 | MFLAGS= | |
759 | MAKEFLAGS= | |
760 | ||
761 | # Identity of this package. | |
762 | PACKAGE_NAME='Cycript' | |
763 | PACKAGE_TARNAME='cycript' | |
764 | PACKAGE_VERSION='0.9' | |
765 | PACKAGE_STRING='Cycript 0.9' | |
766 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
767 | PACKAGE_URL='http://www.cycript.org/' | |
768 | ||
769 | ac_unique_file="Console.cpp" | |
770 | # Factoring default headers for most tests. | |
771 | ac_includes_default="\ | |
772 | #include <stdio.h> | |
773 | #ifdef HAVE_SYS_TYPES_H | |
774 | # include <sys/types.h> | |
775 | #endif | |
776 | #ifdef HAVE_SYS_STAT_H | |
777 | # include <sys/stat.h> | |
778 | #endif | |
779 | #ifdef STDC_HEADERS | |
780 | # include <stdlib.h> | |
781 | # include <stddef.h> | |
782 | #else | |
783 | # ifdef HAVE_STDLIB_H | |
784 | # include <stdlib.h> | |
785 | # endif | |
786 | #endif | |
787 | #ifdef HAVE_STRING_H | |
788 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
789 | # include <memory.h> | |
790 | # endif | |
791 | # include <string.h> | |
792 | #endif | |
793 | #ifdef HAVE_STRINGS_H | |
794 | # include <strings.h> | |
795 | #endif | |
796 | #ifdef HAVE_INTTYPES_H | |
797 | # include <inttypes.h> | |
798 | #endif | |
799 | #ifdef HAVE_STDINT_H | |
800 | # include <stdint.h> | |
801 | #endif | |
802 | #ifdef HAVE_UNISTD_H | |
803 | # include <unistd.h> | |
804 | #endif" | |
805 | ||
806 | ac_subst_vars='LTLIBOBJS | |
807 | LIBOBJS | |
808 | ifGNUmake | |
809 | CY_OBJECTIVEC | |
810 | GNUSTEP_CONFIG | |
811 | LIBFFI_LIBS | |
812 | LIBFFI_CFLAGS | |
813 | CY_EXECUTE | |
814 | ac_ct_OBJCXX | |
815 | OBJCXXFLAGS | |
816 | OBJCXX | |
817 | WEBKIT_LIBS | |
818 | WEBKIT_CFLAGS | |
819 | LTLIBICONV | |
820 | LIBICONV | |
821 | INSTALL_DATA | |
822 | INSTALL_SCRIPT | |
823 | INSTALL_PROGRAM | |
824 | LTLIBAPR | |
825 | TIME | |
826 | GPERF | |
827 | _BASH | |
828 | FLEX | |
829 | LEXLIB | |
830 | LEX_OUTPUT_ROOT | |
831 | LEX | |
832 | BISON | |
833 | AWK | |
834 | YFLAGS | |
835 | YACC | |
836 | CXXCPP | |
837 | ac_ct_CXX | |
838 | CXXFLAGS | |
839 | CXX | |
840 | PKG_CONFIG | |
841 | CPP | |
842 | OTOOL64 | |
843 | OTOOL | |
844 | LIPO | |
845 | NMEDIT | |
846 | DSYMUTIL | |
847 | lt_ECHO | |
848 | RANLIB | |
849 | STRIP | |
850 | AR | |
851 | OBJDUMP | |
852 | LN_S | |
853 | NM | |
854 | ac_ct_DUMPBIN | |
855 | DUMPBIN | |
856 | LD | |
857 | FGREP | |
858 | EGREP | |
859 | GREP | |
860 | SED | |
861 | OBJEXT | |
862 | EXEEXT | |
863 | ac_ct_CC | |
864 | CPPFLAGS | |
865 | LDFLAGS | |
866 | CFLAGS | |
867 | CC | |
868 | host_os | |
869 | host_vendor | |
870 | host_cpu | |
871 | host | |
872 | build_os | |
873 | build_vendor | |
874 | build_cpu | |
875 | build | |
876 | LIBTOOL | |
877 | target_alias | |
878 | host_alias | |
879 | build_alias | |
880 | LIBS | |
881 | ECHO_T | |
882 | ECHO_N | |
883 | ECHO_C | |
884 | DEFS | |
885 | mandir | |
886 | localedir | |
887 | libdir | |
888 | psdir | |
889 | pdfdir | |
890 | dvidir | |
891 | htmldir | |
892 | infodir | |
893 | docdir | |
894 | oldincludedir | |
895 | includedir | |
896 | localstatedir | |
897 | sharedstatedir | |
898 | sysconfdir | |
899 | datadir | |
900 | datarootdir | |
901 | libexecdir | |
902 | sbindir | |
903 | bindir | |
904 | program_transform_name | |
905 | prefix | |
906 | exec_prefix | |
907 | PACKAGE_URL | |
908 | PACKAGE_BUGREPORT | |
909 | PACKAGE_STRING | |
910 | PACKAGE_VERSION | |
911 | PACKAGE_TARNAME | |
912 | PACKAGE_NAME | |
913 | PATH_SEPARATOR | |
914 | SHELL' | |
915 | ac_subst_files='' | |
916 | ac_user_opts=' | |
917 | enable_option_checking | |
918 | enable_static | |
919 | enable_shared | |
920 | with_pic | |
921 | enable_fast_install | |
922 | with_gnu_ld | |
923 | enable_libtool_lock | |
924 | with_apr | |
925 | enable_rpath | |
926 | with_libiconv_prefix | |
927 | ' | |
928 | ac_precious_vars='build_alias | |
929 | host_alias | |
930 | target_alias | |
931 | CC | |
932 | CFLAGS | |
933 | LDFLAGS | |
934 | LIBS | |
935 | CPPFLAGS | |
936 | CPP | |
937 | PKG_CONFIG | |
938 | CXX | |
939 | CXXFLAGS | |
940 | CCC | |
941 | CXXCPP | |
942 | YACC | |
943 | YFLAGS | |
944 | GPERF | |
945 | WEBKIT_CFLAGS | |
946 | WEBKIT_LIBS | |
947 | OBJCXX | |
948 | OBJCXXFLAGS | |
949 | LIBFFI_CFLAGS | |
950 | LIBFFI_LIBS' | |
951 | ||
952 | ||
953 | # Initialize some variables set by options. | |
954 | ac_init_help= | |
955 | ac_init_version=false | |
956 | ac_unrecognized_opts= | |
957 | ac_unrecognized_sep= | |
958 | # The variables have the same names as the options, with | |
959 | # dashes changed to underlines. | |
960 | cache_file=/dev/null | |
961 | exec_prefix=NONE | |
962 | no_create= | |
963 | no_recursion= | |
964 | prefix=NONE | |
965 | program_prefix=NONE | |
966 | program_suffix=NONE | |
967 | program_transform_name=s,x,x, | |
968 | silent= | |
969 | site= | |
970 | srcdir= | |
971 | verbose= | |
972 | x_includes=NONE | |
973 | x_libraries=NONE | |
974 | ||
975 | # Installation directory options. | |
976 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
977 | # and all the variables that are supposed to be based on exec_prefix | |
978 | # by default will actually change. | |
979 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
980 | # (The list follows the same order as the GNU Coding Standards.) | |
981 | bindir='${exec_prefix}/bin' | |
982 | sbindir='${exec_prefix}/sbin' | |
983 | libexecdir='${exec_prefix}/libexec' | |
984 | datarootdir='${prefix}/share' | |
985 | datadir='${datarootdir}' | |
986 | sysconfdir='${prefix}/etc' | |
987 | sharedstatedir='${prefix}/com' | |
988 | localstatedir='${prefix}/var' | |
989 | includedir='${prefix}/include' | |
990 | oldincludedir='/usr/include' | |
991 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
992 | infodir='${datarootdir}/info' | |
993 | htmldir='${docdir}' | |
994 | dvidir='${docdir}' | |
995 | pdfdir='${docdir}' | |
996 | psdir='${docdir}' | |
997 | libdir='${exec_prefix}/lib' | |
998 | localedir='${datarootdir}/locale' | |
999 | mandir='${datarootdir}/man' | |
1000 | ||
1001 | ac_prev= | |
1002 | ac_dashdash= | |
1003 | for ac_option | |
1004 | do | |
1005 | # If the previous option needs an argument, assign it. | |
1006 | if test -n "$ac_prev"; then | |
1007 | eval $ac_prev=\$ac_option | |
1008 | ac_prev= | |
1009 | continue | |
1010 | fi | |
1011 | ||
1012 | case $ac_option in | |
1013 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1014 | *) ac_optarg=yes ;; | |
1015 | esac | |
1016 | ||
1017 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1018 | ||
1019 | case $ac_dashdash$ac_option in | |
1020 | --) | |
1021 | ac_dashdash=yes ;; | |
1022 | ||
1023 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1024 | ac_prev=bindir ;; | |
1025 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1026 | bindir=$ac_optarg ;; | |
1027 | ||
1028 | -build | --build | --buil | --bui | --bu) | |
1029 | ac_prev=build_alias ;; | |
1030 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1031 | build_alias=$ac_optarg ;; | |
1032 | ||
1033 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1034 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1035 | ac_prev=cache_file ;; | |
1036 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1037 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1038 | cache_file=$ac_optarg ;; | |
1039 | ||
1040 | --config-cache | -C) | |
1041 | cache_file=config.cache ;; | |
1042 | ||
1043 | -datadir | --datadir | --datadi | --datad) | |
1044 | ac_prev=datadir ;; | |
1045 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1046 | datadir=$ac_optarg ;; | |
1047 | ||
1048 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1049 | | --dataroo | --dataro | --datar) | |
1050 | ac_prev=datarootdir ;; | |
1051 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1052 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1053 | datarootdir=$ac_optarg ;; | |
1054 | ||
1055 | -disable-* | --disable-*) | |
1056 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1057 | # Reject names that are not valid shell variable names. | |
1058 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1059 | as_fn_error "invalid feature name: $ac_useropt" | |
1060 | ac_useropt_orig=$ac_useropt | |
1061 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1062 | case $ac_user_opts in | |
1063 | *" | |
1064 | "enable_$ac_useropt" | |
1065 | "*) ;; | |
1066 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1067 | ac_unrecognized_sep=', ';; | |
1068 | esac | |
1069 | eval enable_$ac_useropt=no ;; | |
1070 | ||
1071 | -docdir | --docdir | --docdi | --doc | --do) | |
1072 | ac_prev=docdir ;; | |
1073 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1074 | docdir=$ac_optarg ;; | |
1075 | ||
1076 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1077 | ac_prev=dvidir ;; | |
1078 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1079 | dvidir=$ac_optarg ;; | |
1080 | ||
1081 | -enable-* | --enable-*) | |
1082 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1083 | # Reject names that are not valid shell variable names. | |
1084 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1085 | as_fn_error "invalid feature name: $ac_useropt" | |
1086 | ac_useropt_orig=$ac_useropt | |
1087 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1088 | case $ac_user_opts in | |
1089 | *" | |
1090 | "enable_$ac_useropt" | |
1091 | "*) ;; | |
1092 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1093 | ac_unrecognized_sep=', ';; | |
1094 | esac | |
1095 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1096 | ||
1097 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1098 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1099 | | --exec | --exe | --ex) | |
1100 | ac_prev=exec_prefix ;; | |
1101 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1102 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1103 | | --exec=* | --exe=* | --ex=*) | |
1104 | exec_prefix=$ac_optarg ;; | |
1105 | ||
1106 | -gas | --gas | --ga | --g) | |
1107 | # Obsolete; use --with-gas. | |
1108 | with_gas=yes ;; | |
1109 | ||
1110 | -help | --help | --hel | --he | -h) | |
1111 | ac_init_help=long ;; | |
1112 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1113 | ac_init_help=recursive ;; | |
1114 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1115 | ac_init_help=short ;; | |
1116 | ||
1117 | -host | --host | --hos | --ho) | |
1118 | ac_prev=host_alias ;; | |
1119 | -host=* | --host=* | --hos=* | --ho=*) | |
1120 | host_alias=$ac_optarg ;; | |
1121 | ||
1122 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1123 | ac_prev=htmldir ;; | |
1124 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1125 | | --ht=*) | |
1126 | htmldir=$ac_optarg ;; | |
1127 | ||
1128 | -includedir | --includedir | --includedi | --included | --include \ | |
1129 | | --includ | --inclu | --incl | --inc) | |
1130 | ac_prev=includedir ;; | |
1131 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1132 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1133 | includedir=$ac_optarg ;; | |
1134 | ||
1135 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1136 | ac_prev=infodir ;; | |
1137 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1138 | infodir=$ac_optarg ;; | |
1139 | ||
1140 | -libdir | --libdir | --libdi | --libd) | |
1141 | ac_prev=libdir ;; | |
1142 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1143 | libdir=$ac_optarg ;; | |
1144 | ||
1145 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1146 | | --libexe | --libex | --libe) | |
1147 | ac_prev=libexecdir ;; | |
1148 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1149 | | --libexe=* | --libex=* | --libe=*) | |
1150 | libexecdir=$ac_optarg ;; | |
1151 | ||
1152 | -localedir | --localedir | --localedi | --localed | --locale) | |
1153 | ac_prev=localedir ;; | |
1154 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1155 | localedir=$ac_optarg ;; | |
1156 | ||
1157 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1158 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1159 | ac_prev=localstatedir ;; | |
1160 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1161 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1162 | localstatedir=$ac_optarg ;; | |
1163 | ||
1164 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1165 | ac_prev=mandir ;; | |
1166 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1167 | mandir=$ac_optarg ;; | |
1168 | ||
1169 | -nfp | --nfp | --nf) | |
1170 | # Obsolete; use --without-fp. | |
1171 | with_fp=no ;; | |
1172 | ||
1173 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1174 | | --no-cr | --no-c | -n) | |
1175 | no_create=yes ;; | |
1176 | ||
1177 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1178 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1179 | no_recursion=yes ;; | |
1180 | ||
1181 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1182 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1183 | | --oldin | --oldi | --old | --ol | --o) | |
1184 | ac_prev=oldincludedir ;; | |
1185 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1186 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1187 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1188 | oldincludedir=$ac_optarg ;; | |
1189 | ||
1190 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1191 | ac_prev=prefix ;; | |
1192 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1193 | prefix=$ac_optarg ;; | |
1194 | ||
1195 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1196 | | --program-pre | --program-pr | --program-p) | |
1197 | ac_prev=program_prefix ;; | |
1198 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1199 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1200 | program_prefix=$ac_optarg ;; | |
1201 | ||
1202 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1203 | | --program-suf | --program-su | --program-s) | |
1204 | ac_prev=program_suffix ;; | |
1205 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1206 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1207 | program_suffix=$ac_optarg ;; | |
1208 | ||
1209 | -program-transform-name | --program-transform-name \ | |
1210 | | --program-transform-nam | --program-transform-na \ | |
1211 | | --program-transform-n | --program-transform- \ | |
1212 | | --program-transform | --program-transfor \ | |
1213 | | --program-transfo | --program-transf \ | |
1214 | | --program-trans | --program-tran \ | |
1215 | | --progr-tra | --program-tr | --program-t) | |
1216 | ac_prev=program_transform_name ;; | |
1217 | -program-transform-name=* | --program-transform-name=* \ | |
1218 | | --program-transform-nam=* | --program-transform-na=* \ | |
1219 | | --program-transform-n=* | --program-transform-=* \ | |
1220 | | --program-transform=* | --program-transfor=* \ | |
1221 | | --program-transfo=* | --program-transf=* \ | |
1222 | | --program-trans=* | --program-tran=* \ | |
1223 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1224 | program_transform_name=$ac_optarg ;; | |
1225 | ||
1226 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1227 | ac_prev=pdfdir ;; | |
1228 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1229 | pdfdir=$ac_optarg ;; | |
1230 | ||
1231 | -psdir | --psdir | --psdi | --psd | --ps) | |
1232 | ac_prev=psdir ;; | |
1233 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1234 | psdir=$ac_optarg ;; | |
1235 | ||
1236 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1237 | | -silent | --silent | --silen | --sile | --sil) | |
1238 | silent=yes ;; | |
1239 | ||
1240 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1241 | ac_prev=sbindir ;; | |
1242 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1243 | | --sbi=* | --sb=*) | |
1244 | sbindir=$ac_optarg ;; | |
1245 | ||
1246 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1247 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1248 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1249 | | --sha | --sh) | |
1250 | ac_prev=sharedstatedir ;; | |
1251 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1252 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1253 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1254 | | --sha=* | --sh=*) | |
1255 | sharedstatedir=$ac_optarg ;; | |
1256 | ||
1257 | -site | --site | --sit) | |
1258 | ac_prev=site ;; | |
1259 | -site=* | --site=* | --sit=*) | |
1260 | site=$ac_optarg ;; | |
1261 | ||
1262 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1263 | ac_prev=srcdir ;; | |
1264 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1265 | srcdir=$ac_optarg ;; | |
1266 | ||
1267 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1268 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1269 | ac_prev=sysconfdir ;; | |
1270 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1271 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1272 | sysconfdir=$ac_optarg ;; | |
1273 | ||
1274 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1275 | ac_prev=target_alias ;; | |
1276 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1277 | target_alias=$ac_optarg ;; | |
1278 | ||
1279 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1280 | verbose=yes ;; | |
1281 | ||
1282 | -version | --version | --versio | --versi | --vers | -V) | |
1283 | ac_init_version=: ;; | |
1284 | ||
1285 | -with-* | --with-*) | |
1286 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1287 | # Reject names that are not valid shell variable names. | |
1288 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1289 | as_fn_error "invalid package name: $ac_useropt" | |
1290 | ac_useropt_orig=$ac_useropt | |
1291 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1292 | case $ac_user_opts in | |
1293 | *" | |
1294 | "with_$ac_useropt" | |
1295 | "*) ;; | |
1296 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1297 | ac_unrecognized_sep=', ';; | |
1298 | esac | |
1299 | eval with_$ac_useropt=\$ac_optarg ;; | |
1300 | ||
1301 | -without-* | --without-*) | |
1302 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1303 | # Reject names that are not valid shell variable names. | |
1304 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1305 | as_fn_error "invalid package name: $ac_useropt" | |
1306 | ac_useropt_orig=$ac_useropt | |
1307 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1308 | case $ac_user_opts in | |
1309 | *" | |
1310 | "with_$ac_useropt" | |
1311 | "*) ;; | |
1312 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1313 | ac_unrecognized_sep=', ';; | |
1314 | esac | |
1315 | eval with_$ac_useropt=no ;; | |
1316 | ||
1317 | --x) | |
1318 | # Obsolete; use --with-x. | |
1319 | with_x=yes ;; | |
1320 | ||
1321 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1322 | | --x-incl | --x-inc | --x-in | --x-i) | |
1323 | ac_prev=x_includes ;; | |
1324 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1325 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1326 | x_includes=$ac_optarg ;; | |
1327 | ||
1328 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1329 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1330 | ac_prev=x_libraries ;; | |
1331 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1332 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1333 | x_libraries=$ac_optarg ;; | |
1334 | ||
1335 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1336 | Try \`$0 --help' for more information." | |
1337 | ;; | |
1338 | ||
1339 | *=*) | |
1340 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1341 | # Reject names that are not valid shell variable names. | |
1342 | case $ac_envvar in #( | |
1343 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1344 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1345 | esac | |
1346 | eval $ac_envvar=\$ac_optarg | |
1347 | export $ac_envvar ;; | |
1348 | ||
1349 | *) | |
1350 | # FIXME: should be removed in autoconf 3.0. | |
1351 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1352 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1353 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1354 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1355 | ;; | |
1356 | ||
1357 | esac | |
1358 | done | |
1359 | ||
1360 | if test -n "$ac_prev"; then | |
1361 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1362 | as_fn_error "missing argument to $ac_option" | |
1363 | fi | |
1364 | ||
1365 | if test -n "$ac_unrecognized_opts"; then | |
1366 | case $enable_option_checking in | |
1367 | no) ;; | |
1368 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1369 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1370 | esac | |
1371 | fi | |
1372 | ||
1373 | # Check all directory arguments for consistency. | |
1374 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1375 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1376 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1377 | libdir localedir mandir | |
1378 | do | |
1379 | eval ac_val=\$$ac_var | |
1380 | # Remove trailing slashes. | |
1381 | case $ac_val in | |
1382 | */ ) | |
1383 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1384 | eval $ac_var=\$ac_val;; | |
1385 | esac | |
1386 | # Be sure to have absolute directory names. | |
1387 | case $ac_val in | |
1388 | [\\/$]* | ?:[\\/]* ) continue;; | |
1389 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1390 | esac | |
1391 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1392 | done | |
1393 | ||
1394 | # There might be people who depend on the old broken behavior: `$host' | |
1395 | # used to hold the argument of --host etc. | |
1396 | # FIXME: To remove some day. | |
1397 | build=$build_alias | |
1398 | host=$host_alias | |
1399 | target=$target_alias | |
1400 | ||
1401 | # FIXME: To remove some day. | |
1402 | if test "x$host_alias" != x; then | |
1403 | if test "x$build_alias" = x; then | |
1404 | cross_compiling=maybe | |
1405 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1406 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1407 | elif test "x$build_alias" != "x$host_alias"; then | |
1408 | cross_compiling=yes | |
1409 | fi | |
1410 | fi | |
1411 | ||
1412 | ac_tool_prefix= | |
1413 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1414 | ||
1415 | test "$silent" = yes && exec 6>/dev/null | |
1416 | ||
1417 | ||
1418 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1419 | ac_ls_di=`ls -di .` && | |
1420 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1421 | as_fn_error "working directory cannot be determined" | |
1422 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1423 | as_fn_error "pwd does not report name of working directory" | |
1424 | ||
1425 | ||
1426 | # Find the source files, if location was not specified. | |
1427 | if test -z "$srcdir"; then | |
1428 | ac_srcdir_defaulted=yes | |
1429 | # Try the directory containing this script, then the parent directory. | |
1430 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1431 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1432 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1433 | X"$as_myself" : 'X\(//\)$' \| \ | |
1434 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1435 | $as_echo X"$as_myself" | | |
1436 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1437 | s//\1/ | |
1438 | q | |
1439 | } | |
1440 | /^X\(\/\/\)[^/].*/{ | |
1441 | s//\1/ | |
1442 | q | |
1443 | } | |
1444 | /^X\(\/\/\)$/{ | |
1445 | s//\1/ | |
1446 | q | |
1447 | } | |
1448 | /^X\(\/\).*/{ | |
1449 | s//\1/ | |
1450 | q | |
1451 | } | |
1452 | s/.*/./; q'` | |
1453 | srcdir=$ac_confdir | |
1454 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1455 | srcdir=.. | |
1456 | fi | |
1457 | else | |
1458 | ac_srcdir_defaulted=no | |
1459 | fi | |
1460 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1461 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1462 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1463 | fi | |
1464 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1465 | ac_abs_confdir=`( | |
1466 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1467 | pwd)` | |
1468 | # When building in place, set srcdir=. | |
1469 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1470 | srcdir=. | |
1471 | fi | |
1472 | # Remove unnecessary trailing slashes from srcdir. | |
1473 | # Double slashes in file names in object file debugging info | |
1474 | # mess up M-x gdb in Emacs. | |
1475 | case $srcdir in | |
1476 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1477 | esac | |
1478 | for ac_var in $ac_precious_vars; do | |
1479 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1480 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1481 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1482 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1483 | done | |
1484 | ||
1485 | # | |
1486 | # Report the --help message. | |
1487 | # | |
1488 | if test "$ac_init_help" = "long"; then | |
1489 | # Omit some internal or obsolete options to make the list less imposing. | |
1490 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1491 | cat <<_ACEOF | |
1492 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1493 | ||
1494 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1495 | ||
1496 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1497 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1498 | ||
1499 | Defaults for the options are specified in brackets. | |
1500 | ||
1501 | Configuration: | |
1502 | -h, --help display this help and exit | |
1503 | --help=short display options specific to this package | |
1504 | --help=recursive display the short help of all the included packages | |
1505 | -V, --version display version information and exit | |
1506 | -q, --quiet, --silent do not print \`checking...' messages | |
1507 | --cache-file=FILE cache test results in FILE [disabled] | |
1508 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1509 | -n, --no-create do not create output files | |
1510 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1511 | ||
1512 | Installation directories: | |
1513 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1514 | [$ac_default_prefix] | |
1515 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1516 | [PREFIX] | |
1517 | ||
1518 | By default, \`make install' will install all the files in | |
1519 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1520 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1521 | for instance \`--prefix=\$HOME'. | |
1522 | ||
1523 | For better control, use the options below. | |
1524 | ||
1525 | Fine tuning of the installation directories: | |
1526 | --bindir=DIR user executables [EPREFIX/bin] | |
1527 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1528 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1529 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1530 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1531 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1532 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1533 | --includedir=DIR C header files [PREFIX/include] | |
1534 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1535 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1536 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1537 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1538 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1539 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1540 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1541 | --htmldir=DIR html documentation [DOCDIR] | |
1542 | --dvidir=DIR dvi documentation [DOCDIR] | |
1543 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1544 | --psdir=DIR ps documentation [DOCDIR] | |
1545 | _ACEOF | |
1546 | ||
1547 | cat <<\_ACEOF | |
1548 | ||
1549 | System types: | |
1550 | --build=BUILD configure for building on BUILD [guessed] | |
1551 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1552 | _ACEOF | |
1553 | fi | |
1554 | ||
1555 | if test -n "$ac_init_help"; then | |
1556 | case $ac_init_help in | |
1557 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1558 | esac | |
1559 | cat <<\_ACEOF | |
1560 | ||
1561 | Optional Features: | |
1562 | --disable-option-checking ignore unrecognized --enable/--with options | |
1563 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1564 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1565 | --enable-static[=PKGS] build static libraries [default=no] | |
1566 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1567 | --enable-fast-install[=PKGS] | |
1568 | optimize for fast installation [default=yes] | |
1569 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1570 | --disable-rpath do not hardcode runtime library paths | |
1571 | ||
1572 | Optional Packages: | |
1573 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1574 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1575 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1576 | both] | |
1577 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1578 | --with-apr=PATH prefix for installed APR or the full path to | |
1579 | apr-config | |
1580 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
1581 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1582 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1583 | ||
1584 | Some influential environment variables: | |
1585 | CC C compiler command | |
1586 | CFLAGS C compiler flags | |
1587 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1588 | nonstandard directory <lib dir> | |
1589 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1590 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1591 | you have headers in a nonstandard directory <include dir> | |
1592 | CPP C preprocessor | |
1593 | PKG_CONFIG path to pkg-config utility | |
1594 | CXX C++ compiler command | |
1595 | CXXFLAGS C++ compiler flags | |
1596 | CXXCPP C++ preprocessor | |
1597 | YACC The `Yet Another C Compiler' implementation to use. Defaults to | |
1598 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1599 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1600 | This script will default YFLAGS to the empty string to avoid a | |
1601 | default value of `-d' given by some make applications. | |
1602 | GPERF perfect hash function generator | |
1603 | WEBKIT_CFLAGS | |
1604 | C compiler flags for WEBKIT, overriding pkg-config | |
1605 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1606 | OBJCXX Objective C++ compiler command | |
1607 | OBJCXXFLAGS Objective C++ compiler flags | |
1608 | LIBFFI_CFLAGS | |
1609 | C compiler flags for LIBFFI, overriding pkg-config | |
1610 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
1611 | ||
1612 | Use these variables to override the choices made by `configure' or to help | |
1613 | it to find libraries and programs with nonstandard names/locations. | |
1614 | ||
1615 | Report bugs to <saurik@saurik.com>. | |
1616 | Cycript home page: <http://www.cycript.org/>. | |
1617 | _ACEOF | |
1618 | ac_status=$? | |
1619 | fi | |
1620 | ||
1621 | if test "$ac_init_help" = "recursive"; then | |
1622 | # If there are subdirs, report their specific --help. | |
1623 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1624 | test -d "$ac_dir" || | |
1625 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1626 | continue | |
1627 | ac_builddir=. | |
1628 | ||
1629 | case "$ac_dir" in | |
1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1631 | *) | |
1632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1633 | # A ".." for each directory in $ac_dir_suffix. | |
1634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1635 | case $ac_top_builddir_sub in | |
1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1638 | esac ;; | |
1639 | esac | |
1640 | ac_abs_top_builddir=$ac_pwd | |
1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1642 | # for backward compatibility: | |
1643 | ac_top_builddir=$ac_top_build_prefix | |
1644 | ||
1645 | case $srcdir in | |
1646 | .) # We are building in place. | |
1647 | ac_srcdir=. | |
1648 | ac_top_srcdir=$ac_top_builddir_sub | |
1649 | ac_abs_top_srcdir=$ac_pwd ;; | |
1650 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1651 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1652 | ac_top_srcdir=$srcdir | |
1653 | ac_abs_top_srcdir=$srcdir ;; | |
1654 | *) # Relative name. | |
1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1658 | esac | |
1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1660 | ||
1661 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1662 | # Check for guested configure. | |
1663 | if test -f "$ac_srcdir/configure.gnu"; then | |
1664 | echo && | |
1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1666 | elif test -f "$ac_srcdir/configure"; then | |
1667 | echo && | |
1668 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1669 | else | |
1670 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1671 | fi || ac_status=$? | |
1672 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1673 | done | |
1674 | fi | |
1675 | ||
1676 | test -n "$ac_init_help" && exit $ac_status | |
1677 | if $ac_init_version; then | |
1678 | cat <<\_ACEOF | |
1679 | Cycript configure 0.9 | |
1680 | generated by GNU Autoconf 2.65 | |
1681 | ||
1682 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1683 | This configure script is free software; the Free Software Foundation | |
1684 | gives unlimited permission to copy, distribute and modify it. | |
1685 | _ACEOF | |
1686 | exit | |
1687 | fi | |
1688 | ||
1689 | ## ------------------------ ## | |
1690 | ## Autoconf initialization. ## | |
1691 | ## ------------------------ ## | |
1692 | ||
1693 | # ac_fn_c_try_compile LINENO | |
1694 | # -------------------------- | |
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_compile () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | rm -f conftest.$ac_objext | |
1700 | if { { ac_try="$ac_compile" | |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_compile") 2>conftest.err | |
1708 | ac_status=$? | |
1709 | if test -s conftest.err; then | |
1710 | grep -v '^ *+' conftest.err >conftest.er1 | |
1711 | cat conftest.er1 >&5 | |
1712 | mv -f conftest.er1 conftest.err | |
1713 | fi | |
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1715 | test $ac_status = 0; } && { | |
1716 | test -z "$ac_c_werror_flag" || | |
1717 | test ! -s conftest.err | |
1718 | } && test -s conftest.$ac_objext; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1727 | as_fn_set_status $ac_retval | |
1728 | ||
1729 | } # ac_fn_c_try_compile | |
1730 | ||
1731 | # ac_fn_c_try_link LINENO | |
1732 | # ----------------------- | |
1733 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_c_try_link () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1738 | if { { ac_try="$ac_link" | |
1739 | case "(($ac_try" in | |
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1741 | *) ac_try_echo=$ac_try;; | |
1742 | esac | |
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1744 | $as_echo "$ac_try_echo"; } >&5 | |
1745 | (eval "$ac_link") 2>conftest.err | |
1746 | ac_status=$? | |
1747 | if test -s conftest.err; then | |
1748 | grep -v '^ *+' conftest.err >conftest.er1 | |
1749 | cat conftest.er1 >&5 | |
1750 | mv -f conftest.er1 conftest.err | |
1751 | fi | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; } && { | |
1754 | test -z "$ac_c_werror_flag" || | |
1755 | test ! -s conftest.err | |
1756 | } && test -s conftest$ac_exeext && { | |
1757 | test "$cross_compiling" = yes || | |
1758 | $as_test_x conftest$ac_exeext | |
1759 | }; then : | |
1760 | ac_retval=0 | |
1761 | else | |
1762 | $as_echo "$as_me: failed program was:" >&5 | |
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1764 | ||
1765 | ac_retval=1 | |
1766 | fi | |
1767 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1768 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1769 | # interfere with the next link command; also delete a directory that is | |
1770 | # left behind by Apple's compiler. We do this before executing the actions. | |
1771 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1772 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1773 | as_fn_set_status $ac_retval | |
1774 | ||
1775 | } # ac_fn_c_try_link | |
1776 | ||
1777 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1778 | # ------------------------------------------------------- | |
1779 | # Tests whether HEADER exists and can be compiled using the include files in | |
1780 | # INCLUDES, setting the cache variable VAR accordingly. | |
1781 | ac_fn_c_check_header_compile () | |
1782 | { | |
1783 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1785 | $as_echo_n "checking for $2... " >&6; } | |
1786 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1787 | $as_echo_n "(cached) " >&6 | |
1788 | else | |
1789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1790 | /* end confdefs.h. */ | |
1791 | $4 | |
1792 | #include <$2> | |
1793 | _ACEOF | |
1794 | if ac_fn_c_try_compile "$LINENO"; then : | |
1795 | eval "$3=yes" | |
1796 | else | |
1797 | eval "$3=no" | |
1798 | fi | |
1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1800 | fi | |
1801 | eval ac_res=\$$3 | |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1803 | $as_echo "$ac_res" >&6; } | |
1804 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1805 | ||
1806 | } # ac_fn_c_check_header_compile | |
1807 | ||
1808 | # ac_fn_c_try_cpp LINENO | |
1809 | # ---------------------- | |
1810 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1811 | ac_fn_c_try_cpp () | |
1812 | { | |
1813 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1814 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1815 | case "(($ac_try" in | |
1816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1817 | *) ac_try_echo=$ac_try;; | |
1818 | esac | |
1819 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1820 | $as_echo "$ac_try_echo"; } >&5 | |
1821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1822 | ac_status=$? | |
1823 | if test -s conftest.err; then | |
1824 | grep -v '^ *+' conftest.err >conftest.er1 | |
1825 | cat conftest.er1 >&5 | |
1826 | mv -f conftest.er1 conftest.err | |
1827 | fi | |
1828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1829 | test $ac_status = 0; } >/dev/null && { | |
1830 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1831 | test ! -s conftest.err | |
1832 | }; then : | |
1833 | ac_retval=0 | |
1834 | else | |
1835 | $as_echo "$as_me: failed program was:" >&5 | |
1836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1837 | ||
1838 | ac_retval=1 | |
1839 | fi | |
1840 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1841 | as_fn_set_status $ac_retval | |
1842 | ||
1843 | } # ac_fn_c_try_cpp | |
1844 | ||
1845 | # ac_fn_c_try_run LINENO | |
1846 | # ---------------------- | |
1847 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1848 | # that executables *can* be run. | |
1849 | ac_fn_c_try_run () | |
1850 | { | |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1852 | if { { ac_try="$ac_link" | |
1853 | case "(($ac_try" in | |
1854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1855 | *) ac_try_echo=$ac_try;; | |
1856 | esac | |
1857 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1858 | $as_echo "$ac_try_echo"; } >&5 | |
1859 | (eval "$ac_link") 2>&5 | |
1860 | ac_status=$? | |
1861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1862 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1863 | { { case "(($ac_try" in | |
1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1865 | *) ac_try_echo=$ac_try;; | |
1866 | esac | |
1867 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1868 | $as_echo "$ac_try_echo"; } >&5 | |
1869 | (eval "$ac_try") 2>&5 | |
1870 | ac_status=$? | |
1871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1872 | test $ac_status = 0; }; }; then : | |
1873 | ac_retval=0 | |
1874 | else | |
1875 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1876 | $as_echo "$as_me: failed program was:" >&5 | |
1877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1878 | ||
1879 | ac_retval=$ac_status | |
1880 | fi | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1882 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1883 | as_fn_set_status $ac_retval | |
1884 | ||
1885 | } # ac_fn_c_try_run | |
1886 | ||
1887 | # ac_fn_c_check_func LINENO FUNC VAR | |
1888 | # ---------------------------------- | |
1889 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1890 | ac_fn_c_check_func () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1894 | $as_echo_n "checking for $2... " >&6; } | |
1895 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1896 | $as_echo_n "(cached) " >&6 | |
1897 | else | |
1898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1899 | /* end confdefs.h. */ | |
1900 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1902 | #define $2 innocuous_$2 | |
1903 | ||
1904 | /* System header to define __stub macros and hopefully few prototypes, | |
1905 | which can conflict with char $2 (); below. | |
1906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1907 | <limits.h> exists even on freestanding compilers. */ | |
1908 | ||
1909 | #ifdef __STDC__ | |
1910 | # include <limits.h> | |
1911 | #else | |
1912 | # include <assert.h> | |
1913 | #endif | |
1914 | ||
1915 | #undef $2 | |
1916 | ||
1917 | /* Override any GCC internal prototype to avoid an error. | |
1918 | Use char because int might match the return type of a GCC | |
1919 | builtin and then its argument prototype would still apply. */ | |
1920 | #ifdef __cplusplus | |
1921 | extern "C" | |
1922 | #endif | |
1923 | char $2 (); | |
1924 | /* The GNU C library defines this for functions which it implements | |
1925 | to always fail with ENOSYS. Some functions are actually named | |
1926 | something starting with __ and the normal name is an alias. */ | |
1927 | #if defined __stub_$2 || defined __stub___$2 | |
1928 | choke me | |
1929 | #endif | |
1930 | ||
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | return $2 (); | |
1935 | ; | |
1936 | return 0; | |
1937 | } | |
1938 | _ACEOF | |
1939 | if ac_fn_c_try_link "$LINENO"; then : | |
1940 | eval "$3=yes" | |
1941 | else | |
1942 | eval "$3=no" | |
1943 | fi | |
1944 | rm -f core conftest.err conftest.$ac_objext \ | |
1945 | conftest$ac_exeext conftest.$ac_ext | |
1946 | fi | |
1947 | eval ac_res=\$$3 | |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1949 | $as_echo "$ac_res" >&6; } | |
1950 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1951 | ||
1952 | } # ac_fn_c_check_func | |
1953 | ||
1954 | # ac_fn_cxx_try_compile LINENO | |
1955 | # ---------------------------- | |
1956 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1957 | ac_fn_cxx_try_compile () | |
1958 | { | |
1959 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1960 | rm -f conftest.$ac_objext | |
1961 | if { { ac_try="$ac_compile" | |
1962 | case "(($ac_try" in | |
1963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1964 | *) ac_try_echo=$ac_try;; | |
1965 | esac | |
1966 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1967 | $as_echo "$ac_try_echo"; } >&5 | |
1968 | (eval "$ac_compile") 2>conftest.err | |
1969 | ac_status=$? | |
1970 | if test -s conftest.err; then | |
1971 | grep -v '^ *+' conftest.err >conftest.er1 | |
1972 | cat conftest.er1 >&5 | |
1973 | mv -f conftest.er1 conftest.err | |
1974 | fi | |
1975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1976 | test $ac_status = 0; } && { | |
1977 | test -z "$ac_cxx_werror_flag" || | |
1978 | test ! -s conftest.err | |
1979 | } && test -s conftest.$ac_objext; then : | |
1980 | ac_retval=0 | |
1981 | else | |
1982 | $as_echo "$as_me: failed program was:" >&5 | |
1983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1984 | ||
1985 | ac_retval=1 | |
1986 | fi | |
1987 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1988 | as_fn_set_status $ac_retval | |
1989 | ||
1990 | } # ac_fn_cxx_try_compile | |
1991 | ||
1992 | # ac_fn_cxx_try_cpp LINENO | |
1993 | # ------------------------ | |
1994 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1995 | ac_fn_cxx_try_cpp () | |
1996 | { | |
1997 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1998 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1999 | case "(($ac_try" in | |
2000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2001 | *) ac_try_echo=$ac_try;; | |
2002 | esac | |
2003 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2004 | $as_echo "$ac_try_echo"; } >&5 | |
2005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2006 | ac_status=$? | |
2007 | if test -s conftest.err; then | |
2008 | grep -v '^ *+' conftest.err >conftest.er1 | |
2009 | cat conftest.er1 >&5 | |
2010 | mv -f conftest.er1 conftest.err | |
2011 | fi | |
2012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2013 | test $ac_status = 0; } >/dev/null && { | |
2014 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2015 | test ! -s conftest.err | |
2016 | }; then : | |
2017 | ac_retval=0 | |
2018 | else | |
2019 | $as_echo "$as_me: failed program was:" >&5 | |
2020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2021 | ||
2022 | ac_retval=1 | |
2023 | fi | |
2024 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2025 | as_fn_set_status $ac_retval | |
2026 | ||
2027 | } # ac_fn_cxx_try_cpp | |
2028 | ||
2029 | # ac_fn_cxx_try_link LINENO | |
2030 | # ------------------------- | |
2031 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2032 | ac_fn_cxx_try_link () | |
2033 | { | |
2034 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2036 | if { { ac_try="$ac_link" | |
2037 | case "(($ac_try" in | |
2038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2039 | *) ac_try_echo=$ac_try;; | |
2040 | esac | |
2041 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2042 | $as_echo "$ac_try_echo"; } >&5 | |
2043 | (eval "$ac_link") 2>conftest.err | |
2044 | ac_status=$? | |
2045 | if test -s conftest.err; then | |
2046 | grep -v '^ *+' conftest.err >conftest.er1 | |
2047 | cat conftest.er1 >&5 | |
2048 | mv -f conftest.er1 conftest.err | |
2049 | fi | |
2050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2051 | test $ac_status = 0; } && { | |
2052 | test -z "$ac_cxx_werror_flag" || | |
2053 | test ! -s conftest.err | |
2054 | } && test -s conftest$ac_exeext && { | |
2055 | test "$cross_compiling" = yes || | |
2056 | $as_test_x conftest$ac_exeext | |
2057 | }; then : | |
2058 | ac_retval=0 | |
2059 | else | |
2060 | $as_echo "$as_me: failed program was:" >&5 | |
2061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2062 | ||
2063 | ac_retval=1 | |
2064 | fi | |
2065 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2066 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2067 | # interfere with the next link command; also delete a directory that is | |
2068 | # left behind by Apple's compiler. We do this before executing the actions. | |
2069 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2070 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2071 | as_fn_set_status $ac_retval | |
2072 | ||
2073 | } # ac_fn_cxx_try_link | |
2074 | ||
2075 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2076 | # --------------------------------------------------------- | |
2077 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2078 | # the include files in INCLUDES and setting the cache variable VAR | |
2079 | # accordingly. | |
2080 | ac_fn_cxx_check_header_mongrel () | |
2081 | { | |
2082 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2083 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2085 | $as_echo_n "checking for $2... " >&6; } | |
2086 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2087 | $as_echo_n "(cached) " >&6 | |
2088 | fi | |
2089 | eval ac_res=\$$3 | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2091 | $as_echo "$ac_res" >&6; } | |
2092 | else | |
2093 | # Is the header compilable? | |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2095 | $as_echo_n "checking $2 usability... " >&6; } | |
2096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2097 | /* end confdefs.h. */ | |
2098 | $4 | |
2099 | #include <$2> | |
2100 | _ACEOF | |
2101 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2102 | ac_header_compiler=yes | |
2103 | else | |
2104 | ac_header_compiler=no | |
2105 | fi | |
2106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2108 | $as_echo "$ac_header_compiler" >&6; } | |
2109 | ||
2110 | # Is the header present? | |
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2112 | $as_echo_n "checking $2 presence... " >&6; } | |
2113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2114 | /* end confdefs.h. */ | |
2115 | #include <$2> | |
2116 | _ACEOF | |
2117 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2118 | ac_header_preproc=yes | |
2119 | else | |
2120 | ac_header_preproc=no | |
2121 | fi | |
2122 | rm -f conftest.err conftest.$ac_ext | |
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2124 | $as_echo "$ac_header_preproc" >&6; } | |
2125 | ||
2126 | # So? What about this header? | |
2127 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2128 | yes:no: ) | |
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2130 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2132 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2133 | ;; | |
2134 | no:yes:* ) | |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2136 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2138 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2140 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2142 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2144 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2145 | ( cat <<\_ASBOX | |
2146 | ## -------------------------------- ## | |
2147 | ## Report this to saurik@saurik.com ## | |
2148 | ## -------------------------------- ## | |
2149 | _ASBOX | |
2150 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2151 | ;; | |
2152 | esac | |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2154 | $as_echo_n "checking for $2... " >&6; } | |
2155 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2156 | $as_echo_n "(cached) " >&6 | |
2157 | else | |
2158 | eval "$3=\$ac_header_compiler" | |
2159 | fi | |
2160 | eval ac_res=\$$3 | |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2162 | $as_echo "$ac_res" >&6; } | |
2163 | fi | |
2164 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2165 | ||
2166 | } # ac_fn_cxx_check_header_mongrel | |
2167 | ||
2168 | # ac_fn_objcxx_try_compile LINENO | |
2169 | # ------------------------------- | |
2170 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2171 | ac_fn_objcxx_try_compile () | |
2172 | { | |
2173 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2174 | rm -f conftest.$ac_objext | |
2175 | if { { ac_try="$ac_compile" | |
2176 | case "(($ac_try" in | |
2177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2178 | *) ac_try_echo=$ac_try;; | |
2179 | esac | |
2180 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2181 | $as_echo "$ac_try_echo"; } >&5 | |
2182 | (eval "$ac_compile") 2>conftest.err | |
2183 | ac_status=$? | |
2184 | if test -s conftest.err; then | |
2185 | grep -v '^ *+' conftest.err >conftest.er1 | |
2186 | cat conftest.er1 >&5 | |
2187 | mv -f conftest.er1 conftest.err | |
2188 | fi | |
2189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2190 | test $ac_status = 0; } && { | |
2191 | test -z "$ac_objcxx_werror_flag" || | |
2192 | test ! -s conftest.err | |
2193 | } && test -s conftest.$ac_objext; then : | |
2194 | ac_retval=0 | |
2195 | else | |
2196 | $as_echo "$as_me: failed program was:" >&5 | |
2197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2198 | ||
2199 | ac_retval=1 | |
2200 | fi | |
2201 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2202 | as_fn_set_status $ac_retval | |
2203 | ||
2204 | } # ac_fn_objcxx_try_compile | |
2205 | cat >config.log <<_ACEOF | |
2206 | This file contains any messages produced by compilers while | |
2207 | running configure, to aid debugging if configure makes a mistake. | |
2208 | ||
2209 | It was created by Cycript $as_me 0.9, which was | |
2210 | generated by GNU Autoconf 2.65. Invocation command line was | |
2211 | ||
2212 | $ $0 $@ | |
2213 | ||
2214 | _ACEOF | |
2215 | exec 5>>config.log | |
2216 | { | |
2217 | cat <<_ASUNAME | |
2218 | ## --------- ## | |
2219 | ## Platform. ## | |
2220 | ## --------- ## | |
2221 | ||
2222 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2223 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2224 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2225 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2226 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2227 | ||
2228 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2229 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2230 | ||
2231 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2232 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2233 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2234 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2235 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2236 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2237 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2238 | ||
2239 | _ASUNAME | |
2240 | ||
2241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2242 | for as_dir in $PATH | |
2243 | do | |
2244 | IFS=$as_save_IFS | |
2245 | test -z "$as_dir" && as_dir=. | |
2246 | $as_echo "PATH: $as_dir" | |
2247 | done | |
2248 | IFS=$as_save_IFS | |
2249 | ||
2250 | } >&5 | |
2251 | ||
2252 | cat >&5 <<_ACEOF | |
2253 | ||
2254 | ||
2255 | ## ----------- ## | |
2256 | ## Core tests. ## | |
2257 | ## ----------- ## | |
2258 | ||
2259 | _ACEOF | |
2260 | ||
2261 | ||
2262 | # Keep a trace of the command line. | |
2263 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2264 | # Strip out --silent because we don't want to record it for future runs. | |
2265 | # Also quote any args containing shell meta-characters. | |
2266 | # Make two passes to allow for proper duplicate-argument suppression. | |
2267 | ac_configure_args= | |
2268 | ac_configure_args0= | |
2269 | ac_configure_args1= | |
2270 | ac_must_keep_next=false | |
2271 | for ac_pass in 1 2 | |
2272 | do | |
2273 | for ac_arg | |
2274 | do | |
2275 | case $ac_arg in | |
2276 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2278 | | -silent | --silent | --silen | --sile | --sil) | |
2279 | continue ;; | |
2280 | *\'*) | |
2281 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2282 | esac | |
2283 | case $ac_pass in | |
2284 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2285 | 2) | |
2286 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2287 | if test $ac_must_keep_next = true; then | |
2288 | ac_must_keep_next=false # Got value, back to normal. | |
2289 | else | |
2290 | case $ac_arg in | |
2291 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2292 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2293 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2294 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2295 | case "$ac_configure_args0 " in | |
2296 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2297 | esac | |
2298 | ;; | |
2299 | -* ) ac_must_keep_next=true ;; | |
2300 | esac | |
2301 | fi | |
2302 | as_fn_append ac_configure_args " '$ac_arg'" | |
2303 | ;; | |
2304 | esac | |
2305 | done | |
2306 | done | |
2307 | { ac_configure_args0=; unset ac_configure_args0;} | |
2308 | { ac_configure_args1=; unset ac_configure_args1;} | |
2309 | ||
2310 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2311 | # config.log. We remove comments because anyway the quotes in there | |
2312 | # would cause problems or look ugly. | |
2313 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2314 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2315 | trap 'exit_status=$? | |
2316 | # Save into config.log some information that might help in debugging. | |
2317 | { | |
2318 | echo | |
2319 | ||
2320 | cat <<\_ASBOX | |
2321 | ## ---------------- ## | |
2322 | ## Cache variables. ## | |
2323 | ## ---------------- ## | |
2324 | _ASBOX | |
2325 | echo | |
2326 | # The following way of writing the cache mishandles newlines in values, | |
2327 | ( | |
2328 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2329 | eval ac_val=\$$ac_var | |
2330 | case $ac_val in #( | |
2331 | *${as_nl}*) | |
2332 | case $ac_var in #( | |
2333 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2334 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2335 | esac | |
2336 | case $ac_var in #( | |
2337 | _ | IFS | as_nl) ;; #( | |
2338 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2339 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2340 | esac ;; | |
2341 | esac | |
2342 | done | |
2343 | (set) 2>&1 | | |
2344 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2345 | *${as_nl}ac_space=\ *) | |
2346 | sed -n \ | |
2347 | "s/'\''/'\''\\\\'\'''\''/g; | |
2348 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2349 | ;; #( | |
2350 | *) | |
2351 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2352 | ;; | |
2353 | esac | | |
2354 | sort | |
2355 | ) | |
2356 | echo | |
2357 | ||
2358 | cat <<\_ASBOX | |
2359 | ## ----------------- ## | |
2360 | ## Output variables. ## | |
2361 | ## ----------------- ## | |
2362 | _ASBOX | |
2363 | echo | |
2364 | for ac_var in $ac_subst_vars | |
2365 | do | |
2366 | eval ac_val=\$$ac_var | |
2367 | case $ac_val in | |
2368 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2369 | esac | |
2370 | $as_echo "$ac_var='\''$ac_val'\''" | |
2371 | done | sort | |
2372 | echo | |
2373 | ||
2374 | if test -n "$ac_subst_files"; then | |
2375 | cat <<\_ASBOX | |
2376 | ## ------------------- ## | |
2377 | ## File substitutions. ## | |
2378 | ## ------------------- ## | |
2379 | _ASBOX | |
2380 | echo | |
2381 | for ac_var in $ac_subst_files | |
2382 | do | |
2383 | eval ac_val=\$$ac_var | |
2384 | case $ac_val in | |
2385 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2386 | esac | |
2387 | $as_echo "$ac_var='\''$ac_val'\''" | |
2388 | done | sort | |
2389 | echo | |
2390 | fi | |
2391 | ||
2392 | if test -s confdefs.h; then | |
2393 | cat <<\_ASBOX | |
2394 | ## ----------- ## | |
2395 | ## confdefs.h. ## | |
2396 | ## ----------- ## | |
2397 | _ASBOX | |
2398 | echo | |
2399 | cat confdefs.h | |
2400 | echo | |
2401 | fi | |
2402 | test "$ac_signal" != 0 && | |
2403 | $as_echo "$as_me: caught signal $ac_signal" | |
2404 | $as_echo "$as_me: exit $exit_status" | |
2405 | } >&5 | |
2406 | rm -f core *.core core.conftest.* && | |
2407 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2408 | exit $exit_status | |
2409 | ' 0 | |
2410 | for ac_signal in 1 2 13 15; do | |
2411 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2412 | done | |
2413 | ac_signal=0 | |
2414 | ||
2415 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2416 | rm -f -r conftest* confdefs.h | |
2417 | ||
2418 | $as_echo "/* confdefs.h */" > confdefs.h | |
2419 | ||
2420 | # Predefined preprocessor variables. | |
2421 | ||
2422 | cat >>confdefs.h <<_ACEOF | |
2423 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2424 | _ACEOF | |
2425 | ||
2426 | cat >>confdefs.h <<_ACEOF | |
2427 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2428 | _ACEOF | |
2429 | ||
2430 | cat >>confdefs.h <<_ACEOF | |
2431 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2432 | _ACEOF | |
2433 | ||
2434 | cat >>confdefs.h <<_ACEOF | |
2435 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2436 | _ACEOF | |
2437 | ||
2438 | cat >>confdefs.h <<_ACEOF | |
2439 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2440 | _ACEOF | |
2441 | ||
2442 | cat >>confdefs.h <<_ACEOF | |
2443 | #define PACKAGE_URL "$PACKAGE_URL" | |
2444 | _ACEOF | |
2445 | ||
2446 | ||
2447 | # Let the site file select an alternate cache file if it wants to. | |
2448 | # Prefer an explicitly selected file to automatically selected ones. | |
2449 | ac_site_file1=NONE | |
2450 | ac_site_file2=NONE | |
2451 | if test -n "$CONFIG_SITE"; then | |
2452 | ac_site_file1=$CONFIG_SITE | |
2453 | elif test "x$prefix" != xNONE; then | |
2454 | ac_site_file1=$prefix/share/config.site | |
2455 | ac_site_file2=$prefix/etc/config.site | |
2456 | else | |
2457 | ac_site_file1=$ac_default_prefix/share/config.site | |
2458 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2459 | fi | |
2460 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2461 | do | |
2462 | test "x$ac_site_file" = xNONE && continue | |
2463 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2465 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2466 | sed 's/^/| /' "$ac_site_file" >&5 | |
2467 | . "$ac_site_file" | |
2468 | fi | |
2469 | done | |
2470 | ||
2471 | if test -r "$cache_file"; then | |
2472 | # Some versions of bash will fail to source /dev/null (special files | |
2473 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2474 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2476 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2477 | case $cache_file in | |
2478 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2479 | *) . "./$cache_file";; | |
2480 | esac | |
2481 | fi | |
2482 | else | |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2484 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2485 | >$cache_file | |
2486 | fi | |
2487 | ||
2488 | # Check that the precious variables saved in the cache have kept the same | |
2489 | # value. | |
2490 | ac_cache_corrupted=false | |
2491 | for ac_var in $ac_precious_vars; do | |
2492 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2493 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2494 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2495 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2496 | case $ac_old_set,$ac_new_set in | |
2497 | set,) | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2499 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2500 | ac_cache_corrupted=: ;; | |
2501 | ,set) | |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2503 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2504 | ac_cache_corrupted=: ;; | |
2505 | ,);; | |
2506 | *) | |
2507 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2508 | # differences in whitespace do not lead to failure. | |
2509 | ac_old_val_w=`echo x $ac_old_val` | |
2510 | ac_new_val_w=`echo x $ac_new_val` | |
2511 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2513 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2514 | ac_cache_corrupted=: | |
2515 | else | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2517 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2518 | eval $ac_var=\$ac_old_val | |
2519 | fi | |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2521 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2523 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2524 | fi;; | |
2525 | esac | |
2526 | # Pass precious variables to config.status. | |
2527 | if test "$ac_new_set" = set; then | |
2528 | case $ac_new_val in | |
2529 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2530 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2531 | esac | |
2532 | case " $ac_configure_args " in | |
2533 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2534 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2535 | esac | |
2536 | fi | |
2537 | done | |
2538 | if $ac_cache_corrupted; then | |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2542 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2543 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2544 | fi | |
2545 | ## -------------------- ## | |
2546 | ## Main body of script. ## | |
2547 | ## -------------------- ## | |
2548 | ||
2549 | ac_ext=c | |
2550 | ac_cpp='$CPP $CPPFLAGS' | |
2551 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2552 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2553 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2554 | ||
2555 | ||
2556 | ||
2557 | ac_aux_dir= | |
2558 | for ac_dir in . "$srcdir"/.; do | |
2559 | for ac_t in install-sh install.sh shtool; do | |
2560 | if test -f "$ac_dir/$ac_t"; then | |
2561 | ac_aux_dir=$ac_dir | |
2562 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2563 | break 2 | |
2564 | fi | |
2565 | done | |
2566 | done | |
2567 | if test -z "$ac_aux_dir"; then | |
2568 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2569 | fi | |
2570 | ||
2571 | # These three variables are undocumented and unsupported, | |
2572 | # and are intended to be withdrawn in a future Autoconf release. | |
2573 | # They can cause serious problems if a builder's source tree is in a directory | |
2574 | # whose full name contains unusual characters. | |
2575 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2576 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2577 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2578 | ||
2579 | ||
2580 | case `pwd` in | |
2581 | *\ * | *\ *) | |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2583 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2584 | esac | |
2585 | ||
2586 | ||
2587 | ||
2588 | macro_version='2.2.6b' | |
2589 | macro_revision='1.3017' | |
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ||
2595 | ||
2596 | ||
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | ||
2602 | ||
2603 | ltmain="$ac_aux_dir/ltmain.sh" | |
2604 | ||
2605 | # Make sure we can run config.sub. | |
2606 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2607 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2608 | ||
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2610 | $as_echo_n "checking build system type... " >&6; } | |
2611 | if test "${ac_cv_build+set}" = set; then : | |
2612 | $as_echo_n "(cached) " >&6 | |
2613 | else | |
2614 | ac_build_alias=$build_alias | |
2615 | test "x$ac_build_alias" = x && | |
2616 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2617 | test "x$ac_build_alias" = x && | |
2618 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2619 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2620 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2621 | ||
2622 | fi | |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2624 | $as_echo "$ac_cv_build" >&6; } | |
2625 | case $ac_cv_build in | |
2626 | *-*-*) ;; | |
2627 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2628 | esac | |
2629 | build=$ac_cv_build | |
2630 | ac_save_IFS=$IFS; IFS='-' | |
2631 | set x $ac_cv_build | |
2632 | shift | |
2633 | build_cpu=$1 | |
2634 | build_vendor=$2 | |
2635 | shift; shift | |
2636 | # Remember, the first character of IFS is used to create $*, | |
2637 | # except with old shells: | |
2638 | build_os=$* | |
2639 | IFS=$ac_save_IFS | |
2640 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2641 | ||
2642 | ||
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2644 | $as_echo_n "checking host system type... " >&6; } | |
2645 | if test "${ac_cv_host+set}" = set; then : | |
2646 | $as_echo_n "(cached) " >&6 | |
2647 | else | |
2648 | if test "x$host_alias" = x; then | |
2649 | ac_cv_host=$ac_cv_build | |
2650 | else | |
2651 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2652 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2653 | fi | |
2654 | ||
2655 | fi | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2657 | $as_echo "$ac_cv_host" >&6; } | |
2658 | case $ac_cv_host in | |
2659 | *-*-*) ;; | |
2660 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2661 | esac | |
2662 | host=$ac_cv_host | |
2663 | ac_save_IFS=$IFS; IFS='-' | |
2664 | set x $ac_cv_host | |
2665 | shift | |
2666 | host_cpu=$1 | |
2667 | host_vendor=$2 | |
2668 | shift; shift | |
2669 | # Remember, the first character of IFS is used to create $*, | |
2670 | # except with old shells: | |
2671 | host_os=$* | |
2672 | IFS=$ac_save_IFS | |
2673 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2674 | ||
2675 | ||
2676 | ac_ext=c | |
2677 | ac_cpp='$CPP $CPPFLAGS' | |
2678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2681 | if test -n "$ac_tool_prefix"; then | |
2682 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2683 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2685 | $as_echo_n "checking for $ac_word... " >&6; } | |
2686 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2687 | $as_echo_n "(cached) " >&6 | |
2688 | else | |
2689 | if test -n "$CC"; then | |
2690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2691 | else | |
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2693 | for as_dir in $PATH | |
2694 | do | |
2695 | IFS=$as_save_IFS | |
2696 | test -z "$as_dir" && as_dir=. | |
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2699 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2701 | break 2 | |
2702 | fi | |
2703 | done | |
2704 | done | |
2705 | IFS=$as_save_IFS | |
2706 | ||
2707 | fi | |
2708 | fi | |
2709 | CC=$ac_cv_prog_CC | |
2710 | if test -n "$CC"; then | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2712 | $as_echo "$CC" >&6; } | |
2713 | else | |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2715 | $as_echo "no" >&6; } | |
2716 | fi | |
2717 | ||
2718 | ||
2719 | fi | |
2720 | if test -z "$ac_cv_prog_CC"; then | |
2721 | ac_ct_CC=$CC | |
2722 | # Extract the first word of "gcc", so it can be a program name with args. | |
2723 | set dummy gcc; ac_word=$2 | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2725 | $as_echo_n "checking for $ac_word... " >&6; } | |
2726 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2727 | $as_echo_n "(cached) " >&6 | |
2728 | else | |
2729 | if test -n "$ac_ct_CC"; then | |
2730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2731 | else | |
2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2733 | for as_dir in $PATH | |
2734 | do | |
2735 | IFS=$as_save_IFS | |
2736 | test -z "$as_dir" && as_dir=. | |
2737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2739 | ac_cv_prog_ac_ct_CC="gcc" | |
2740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2741 | break 2 | |
2742 | fi | |
2743 | done | |
2744 | done | |
2745 | IFS=$as_save_IFS | |
2746 | ||
2747 | fi | |
2748 | fi | |
2749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2750 | if test -n "$ac_ct_CC"; then | |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2752 | $as_echo "$ac_ct_CC" >&6; } | |
2753 | else | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2755 | $as_echo "no" >&6; } | |
2756 | fi | |
2757 | ||
2758 | if test "x$ac_ct_CC" = x; then | |
2759 | CC="" | |
2760 | else | |
2761 | case $cross_compiling:$ac_tool_warned in | |
2762 | yes:) | |
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2765 | ac_tool_warned=yes ;; | |
2766 | esac | |
2767 | CC=$ac_ct_CC | |
2768 | fi | |
2769 | else | |
2770 | CC="$ac_cv_prog_CC" | |
2771 | fi | |
2772 | ||
2773 | if test -z "$CC"; then | |
2774 | if test -n "$ac_tool_prefix"; then | |
2775 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2776 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2778 | $as_echo_n "checking for $ac_word... " >&6; } | |
2779 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2780 | $as_echo_n "(cached) " >&6 | |
2781 | else | |
2782 | if test -n "$CC"; then | |
2783 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2784 | else | |
2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2786 | for as_dir in $PATH | |
2787 | do | |
2788 | IFS=$as_save_IFS | |
2789 | test -z "$as_dir" && as_dir=. | |
2790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2792 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2794 | break 2 | |
2795 | fi | |
2796 | done | |
2797 | done | |
2798 | IFS=$as_save_IFS | |
2799 | ||
2800 | fi | |
2801 | fi | |
2802 | CC=$ac_cv_prog_CC | |
2803 | if test -n "$CC"; then | |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2805 | $as_echo "$CC" >&6; } | |
2806 | else | |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2808 | $as_echo "no" >&6; } | |
2809 | fi | |
2810 | ||
2811 | ||
2812 | fi | |
2813 | fi | |
2814 | if test -z "$CC"; then | |
2815 | # Extract the first word of "cc", so it can be a program name with args. | |
2816 | set dummy cc; ac_word=$2 | |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2818 | $as_echo_n "checking for $ac_word... " >&6; } | |
2819 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2820 | $as_echo_n "(cached) " >&6 | |
2821 | else | |
2822 | if test -n "$CC"; then | |
2823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2824 | else | |
2825 | ac_prog_rejected=no | |
2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2827 | for as_dir in $PATH | |
2828 | do | |
2829 | IFS=$as_save_IFS | |
2830 | test -z "$as_dir" && as_dir=. | |
2831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2833 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2834 | ac_prog_rejected=yes | |
2835 | continue | |
2836 | fi | |
2837 | ac_cv_prog_CC="cc" | |
2838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2839 | break 2 | |
2840 | fi | |
2841 | done | |
2842 | done | |
2843 | IFS=$as_save_IFS | |
2844 | ||
2845 | if test $ac_prog_rejected = yes; then | |
2846 | # We found a bogon in the path, so make sure we never use it. | |
2847 | set dummy $ac_cv_prog_CC | |
2848 | shift | |
2849 | if test $# != 0; then | |
2850 | # We chose a different compiler from the bogus one. | |
2851 | # However, it has the same basename, so the bogon will be chosen | |
2852 | # first if we set CC to just the basename; use the full file name. | |
2853 | shift | |
2854 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2855 | fi | |
2856 | fi | |
2857 | fi | |
2858 | fi | |
2859 | CC=$ac_cv_prog_CC | |
2860 | if test -n "$CC"; then | |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2862 | $as_echo "$CC" >&6; } | |
2863 | else | |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2865 | $as_echo "no" >&6; } | |
2866 | fi | |
2867 | ||
2868 | ||
2869 | fi | |
2870 | if test -z "$CC"; then | |
2871 | if test -n "$ac_tool_prefix"; then | |
2872 | for ac_prog in cl.exe | |
2873 | do | |
2874 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2875 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2877 | $as_echo_n "checking for $ac_word... " >&6; } | |
2878 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2879 | $as_echo_n "(cached) " >&6 | |
2880 | else | |
2881 | if test -n "$CC"; then | |
2882 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2883 | else | |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2885 | for as_dir in $PATH | |
2886 | do | |
2887 | IFS=$as_save_IFS | |
2888 | test -z "$as_dir" && as_dir=. | |
2889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2891 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2893 | break 2 | |
2894 | fi | |
2895 | done | |
2896 | done | |
2897 | IFS=$as_save_IFS | |
2898 | ||
2899 | fi | |
2900 | fi | |
2901 | CC=$ac_cv_prog_CC | |
2902 | if test -n "$CC"; then | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2904 | $as_echo "$CC" >&6; } | |
2905 | else | |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2907 | $as_echo "no" >&6; } | |
2908 | fi | |
2909 | ||
2910 | ||
2911 | test -n "$CC" && break | |
2912 | done | |
2913 | fi | |
2914 | if test -z "$CC"; then | |
2915 | ac_ct_CC=$CC | |
2916 | for ac_prog in cl.exe | |
2917 | do | |
2918 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2919 | set dummy $ac_prog; ac_word=$2 | |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2921 | $as_echo_n "checking for $ac_word... " >&6; } | |
2922 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2923 | $as_echo_n "(cached) " >&6 | |
2924 | else | |
2925 | if test -n "$ac_ct_CC"; then | |
2926 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2927 | else | |
2928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2929 | for as_dir in $PATH | |
2930 | do | |
2931 | IFS=$as_save_IFS | |
2932 | test -z "$as_dir" && as_dir=. | |
2933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2935 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2937 | break 2 | |
2938 | fi | |
2939 | done | |
2940 | done | |
2941 | IFS=$as_save_IFS | |
2942 | ||
2943 | fi | |
2944 | fi | |
2945 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2946 | if test -n "$ac_ct_CC"; then | |
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2948 | $as_echo "$ac_ct_CC" >&6; } | |
2949 | else | |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2951 | $as_echo "no" >&6; } | |
2952 | fi | |
2953 | ||
2954 | ||
2955 | test -n "$ac_ct_CC" && break | |
2956 | done | |
2957 | ||
2958 | if test "x$ac_ct_CC" = x; then | |
2959 | CC="" | |
2960 | else | |
2961 | case $cross_compiling:$ac_tool_warned in | |
2962 | yes:) | |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2964 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2965 | ac_tool_warned=yes ;; | |
2966 | esac | |
2967 | CC=$ac_ct_CC | |
2968 | fi | |
2969 | fi | |
2970 | ||
2971 | fi | |
2972 | ||
2973 | ||
2974 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2976 | as_fn_error "no acceptable C compiler found in \$PATH | |
2977 | See \`config.log' for more details." "$LINENO" 5; } | |
2978 | ||
2979 | # Provide some information about the compiler. | |
2980 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2981 | set X $ac_compile | |
2982 | ac_compiler=$2 | |
2983 | for ac_option in --version -v -V -qversion; do | |
2984 | { { ac_try="$ac_compiler $ac_option >&5" | |
2985 | case "(($ac_try" in | |
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2987 | *) ac_try_echo=$ac_try;; | |
2988 | esac | |
2989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2990 | $as_echo "$ac_try_echo"; } >&5 | |
2991 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2992 | ac_status=$? | |
2993 | if test -s conftest.err; then | |
2994 | sed '10a\ | |
2995 | ... rest of stderr output deleted ... | |
2996 | 10q' conftest.err >conftest.er1 | |
2997 | cat conftest.er1 >&5 | |
2998 | fi | |
2999 | rm -f conftest.er1 conftest.err | |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3001 | test $ac_status = 0; } | |
3002 | done | |
3003 | ||
3004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3005 | /* end confdefs.h. */ | |
3006 | ||
3007 | int | |
3008 | main () | |
3009 | { | |
3010 | ||
3011 | ; | |
3012 | return 0; | |
3013 | } | |
3014 | _ACEOF | |
3015 | ac_clean_files_save=$ac_clean_files | |
3016 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3017 | # Try to create an executable without -o first, disregard a.out. | |
3018 | # It will help us diagnose broken compilers, and finding out an intuition | |
3019 | # of exeext. | |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3021 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3022 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3023 | ||
3024 | # The possible output files: | |
3025 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3026 | ||
3027 | ac_rmfiles= | |
3028 | for ac_file in $ac_files | |
3029 | do | |
3030 | case $ac_file in | |
3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3032 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3033 | esac | |
3034 | done | |
3035 | rm -f $ac_rmfiles | |
3036 | ||
3037 | if { { ac_try="$ac_link_default" | |
3038 | case "(($ac_try" in | |
3039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3040 | *) ac_try_echo=$ac_try;; | |
3041 | esac | |
3042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3043 | $as_echo "$ac_try_echo"; } >&5 | |
3044 | (eval "$ac_link_default") 2>&5 | |
3045 | ac_status=$? | |
3046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3047 | test $ac_status = 0; }; then : | |
3048 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3049 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3050 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3051 | # so that the user can short-circuit this test for compilers unknown to | |
3052 | # Autoconf. | |
3053 | for ac_file in $ac_files '' | |
3054 | do | |
3055 | test -f "$ac_file" || continue | |
3056 | case $ac_file in | |
3057 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3058 | ;; | |
3059 | [ab].out ) | |
3060 | # We found the default executable, but exeext='' is most | |
3061 | # certainly right. | |
3062 | break;; | |
3063 | *.* ) | |
3064 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3065 | then :; else | |
3066 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3067 | fi | |
3068 | # We set ac_cv_exeext here because the later test for it is not | |
3069 | # safe: cross compilers may not add the suffix if given an `-o' | |
3070 | # argument, so we may need to know it at that point already. | |
3071 | # Even if this section looks crufty: it has the advantage of | |
3072 | # actually working. | |
3073 | break;; | |
3074 | * ) | |
3075 | break;; | |
3076 | esac | |
3077 | done | |
3078 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3079 | ||
3080 | else | |
3081 | ac_file='' | |
3082 | fi | |
3083 | if test -z "$ac_file"; then : | |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3085 | $as_echo "no" >&6; } | |
3086 | $as_echo "$as_me: failed program was:" >&5 | |
3087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3088 | ||
3089 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3090 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3091 | { as_fn_set_status 77 | |
3092 | as_fn_error "C compiler cannot create executables | |
3093 | See \`config.log' for more details." "$LINENO" 5; }; } | |
3094 | else | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3096 | $as_echo "yes" >&6; } | |
3097 | fi | |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3099 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3101 | $as_echo "$ac_file" >&6; } | |
3102 | ac_exeext=$ac_cv_exeext | |
3103 | ||
3104 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3105 | ac_clean_files=$ac_clean_files_save | |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3107 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3108 | if { { ac_try="$ac_link" | |
3109 | case "(($ac_try" in | |
3110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3111 | *) ac_try_echo=$ac_try;; | |
3112 | esac | |
3113 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3114 | $as_echo "$ac_try_echo"; } >&5 | |
3115 | (eval "$ac_link") 2>&5 | |
3116 | ac_status=$? | |
3117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3118 | test $ac_status = 0; }; then : | |
3119 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3120 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3121 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3122 | # `rm'. | |
3123 | for ac_file in conftest.exe conftest conftest.*; do | |
3124 | test -f "$ac_file" || continue | |
3125 | case $ac_file in | |
3126 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3127 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3128 | break;; | |
3129 | * ) break;; | |
3130 | esac | |
3131 | done | |
3132 | else | |
3133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3135 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3136 | See \`config.log' for more details." "$LINENO" 5; } | |
3137 | fi | |
3138 | rm -f conftest conftest$ac_cv_exeext | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3140 | $as_echo "$ac_cv_exeext" >&6; } | |
3141 | ||
3142 | rm -f conftest.$ac_ext | |
3143 | EXEEXT=$ac_cv_exeext | |
3144 | ac_exeext=$EXEEXT | |
3145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3146 | /* end confdefs.h. */ | |
3147 | #include <stdio.h> | |
3148 | int | |
3149 | main () | |
3150 | { | |
3151 | FILE *f = fopen ("conftest.out", "w"); | |
3152 | return ferror (f) || fclose (f) != 0; | |
3153 | ||
3154 | ; | |
3155 | return 0; | |
3156 | } | |
3157 | _ACEOF | |
3158 | ac_clean_files="$ac_clean_files conftest.out" | |
3159 | # Check that the compiler produces executables we can run. If not, either | |
3160 | # the compiler is broken, or we cross compile. | |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3162 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3163 | if test "$cross_compiling" != yes; then | |
3164 | { { ac_try="$ac_link" | |
3165 | case "(($ac_try" in | |
3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3167 | *) ac_try_echo=$ac_try;; | |
3168 | esac | |
3169 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3170 | $as_echo "$ac_try_echo"; } >&5 | |
3171 | (eval "$ac_link") 2>&5 | |
3172 | ac_status=$? | |
3173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3174 | test $ac_status = 0; } | |
3175 | if { ac_try='./conftest$ac_cv_exeext' | |
3176 | { { case "(($ac_try" in | |
3177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3178 | *) ac_try_echo=$ac_try;; | |
3179 | esac | |
3180 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3181 | $as_echo "$ac_try_echo"; } >&5 | |
3182 | (eval "$ac_try") 2>&5 | |
3183 | ac_status=$? | |
3184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3185 | test $ac_status = 0; }; }; then | |
3186 | cross_compiling=no | |
3187 | else | |
3188 | if test "$cross_compiling" = maybe; then | |
3189 | cross_compiling=yes | |
3190 | else | |
3191 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3192 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3193 | as_fn_error "cannot run C compiled programs. | |
3194 | If you meant to cross compile, use \`--host'. | |
3195 | See \`config.log' for more details." "$LINENO" 5; } | |
3196 | fi | |
3197 | fi | |
3198 | fi | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3200 | $as_echo "$cross_compiling" >&6; } | |
3201 | ||
3202 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3203 | ac_clean_files=$ac_clean_files_save | |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3205 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3206 | if test "${ac_cv_objext+set}" = set; then : | |
3207 | $as_echo_n "(cached) " >&6 | |
3208 | else | |
3209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3210 | /* end confdefs.h. */ | |
3211 | ||
3212 | int | |
3213 | main () | |
3214 | { | |
3215 | ||
3216 | ; | |
3217 | return 0; | |
3218 | } | |
3219 | _ACEOF | |
3220 | rm -f conftest.o conftest.obj | |
3221 | if { { ac_try="$ac_compile" | |
3222 | case "(($ac_try" in | |
3223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3224 | *) ac_try_echo=$ac_try;; | |
3225 | esac | |
3226 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3227 | $as_echo "$ac_try_echo"; } >&5 | |
3228 | (eval "$ac_compile") 2>&5 | |
3229 | ac_status=$? | |
3230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3231 | test $ac_status = 0; }; then : | |
3232 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3233 | test -f "$ac_file" || continue; | |
3234 | case $ac_file in | |
3235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3236 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3237 | break;; | |
3238 | esac | |
3239 | done | |
3240 | else | |
3241 | $as_echo "$as_me: failed program was:" >&5 | |
3242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3243 | ||
3244 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3245 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3246 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3247 | See \`config.log' for more details." "$LINENO" 5; } | |
3248 | fi | |
3249 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3250 | fi | |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3252 | $as_echo "$ac_cv_objext" >&6; } | |
3253 | OBJEXT=$ac_cv_objext | |
3254 | ac_objext=$OBJEXT | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3256 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3257 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3258 | $as_echo_n "(cached) " >&6 | |
3259 | else | |
3260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3261 | /* end confdefs.h. */ | |
3262 | ||
3263 | int | |
3264 | main () | |
3265 | { | |
3266 | #ifndef __GNUC__ | |
3267 | choke me | |
3268 | #endif | |
3269 | ||
3270 | ; | |
3271 | return 0; | |
3272 | } | |
3273 | _ACEOF | |
3274 | if ac_fn_c_try_compile "$LINENO"; then : | |
3275 | ac_compiler_gnu=yes | |
3276 | else | |
3277 | ac_compiler_gnu=no | |
3278 | fi | |
3279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3280 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3281 | ||
3282 | fi | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3284 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3285 | if test $ac_compiler_gnu = yes; then | |
3286 | GCC=yes | |
3287 | else | |
3288 | GCC= | |
3289 | fi | |
3290 | ac_test_CFLAGS=${CFLAGS+set} | |
3291 | ac_save_CFLAGS=$CFLAGS | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3293 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3294 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3295 | $as_echo_n "(cached) " >&6 | |
3296 | else | |
3297 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3298 | ac_c_werror_flag=yes | |
3299 | ac_cv_prog_cc_g=no | |
3300 | CFLAGS="-g" | |
3301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3302 | /* end confdefs.h. */ | |
3303 | ||
3304 | int | |
3305 | main () | |
3306 | { | |
3307 | ||
3308 | ; | |
3309 | return 0; | |
3310 | } | |
3311 | _ACEOF | |
3312 | if ac_fn_c_try_compile "$LINENO"; then : | |
3313 | ac_cv_prog_cc_g=yes | |
3314 | else | |
3315 | CFLAGS="" | |
3316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3317 | /* end confdefs.h. */ | |
3318 | ||
3319 | int | |
3320 | main () | |
3321 | { | |
3322 | ||
3323 | ; | |
3324 | return 0; | |
3325 | } | |
3326 | _ACEOF | |
3327 | if ac_fn_c_try_compile "$LINENO"; then : | |
3328 | ||
3329 | else | |
3330 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3331 | CFLAGS="-g" | |
3332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3333 | /* end confdefs.h. */ | |
3334 | ||
3335 | int | |
3336 | main () | |
3337 | { | |
3338 | ||
3339 | ; | |
3340 | return 0; | |
3341 | } | |
3342 | _ACEOF | |
3343 | if ac_fn_c_try_compile "$LINENO"; then : | |
3344 | ac_cv_prog_cc_g=yes | |
3345 | fi | |
3346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3347 | fi | |
3348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3349 | fi | |
3350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3351 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3352 | fi | |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3354 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3355 | if test "$ac_test_CFLAGS" = set; then | |
3356 | CFLAGS=$ac_save_CFLAGS | |
3357 | elif test $ac_cv_prog_cc_g = yes; then | |
3358 | if test "$GCC" = yes; then | |
3359 | CFLAGS="-g -O2" | |
3360 | else | |
3361 | CFLAGS="-g" | |
3362 | fi | |
3363 | else | |
3364 | if test "$GCC" = yes; then | |
3365 | CFLAGS="-O2" | |
3366 | else | |
3367 | CFLAGS= | |
3368 | fi | |
3369 | fi | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3371 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3372 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3373 | $as_echo_n "(cached) " >&6 | |
3374 | else | |
3375 | ac_cv_prog_cc_c89=no | |
3376 | ac_save_CC=$CC | |
3377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3378 | /* end confdefs.h. */ | |
3379 | #include <stdarg.h> | |
3380 | #include <stdio.h> | |
3381 | #include <sys/types.h> | |
3382 | #include <sys/stat.h> | |
3383 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3384 | struct buf { int x; }; | |
3385 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3386 | static char *e (p, i) | |
3387 | char **p; | |
3388 | int i; | |
3389 | { | |
3390 | return p[i]; | |
3391 | } | |
3392 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3393 | { | |
3394 | char *s; | |
3395 | va_list v; | |
3396 | va_start (v,p); | |
3397 | s = g (p, va_arg (v,int)); | |
3398 | va_end (v); | |
3399 | return s; | |
3400 | } | |
3401 | ||
3402 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3403 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3404 | These don't provoke an error unfortunately, instead are silently treated | |
3405 | as 'x'. The following induces an error, until -std is added to get | |
3406 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3407 | array size at least. It's necessary to write '\x00'==0 to get something | |
3408 | that's true only with -std. */ | |
3409 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3410 | ||
3411 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3412 | inside strings and character constants. */ | |
3413 | #define FOO(x) 'x' | |
3414 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3415 | ||
3416 | int test (int i, double x); | |
3417 | struct s1 {int (*f) (int a);}; | |
3418 | struct s2 {int (*f) (double a);}; | |
3419 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3420 | int argc; | |
3421 | char **argv; | |
3422 | int | |
3423 | main () | |
3424 | { | |
3425 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3426 | ; | |
3427 | return 0; | |
3428 | } | |
3429 | _ACEOF | |
3430 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3431 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3432 | do | |
3433 | CC="$ac_save_CC $ac_arg" | |
3434 | if ac_fn_c_try_compile "$LINENO"; then : | |
3435 | ac_cv_prog_cc_c89=$ac_arg | |
3436 | fi | |
3437 | rm -f core conftest.err conftest.$ac_objext | |
3438 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3439 | done | |
3440 | rm -f conftest.$ac_ext | |
3441 | CC=$ac_save_CC | |
3442 | ||
3443 | fi | |
3444 | # AC_CACHE_VAL | |
3445 | case "x$ac_cv_prog_cc_c89" in | |
3446 | x) | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3448 | $as_echo "none needed" >&6; } ;; | |
3449 | xno) | |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3451 | $as_echo "unsupported" >&6; } ;; | |
3452 | *) | |
3453 | CC="$CC $ac_cv_prog_cc_c89" | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3455 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3456 | esac | |
3457 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3458 | ||
3459 | fi | |
3460 | ||
3461 | ac_ext=c | |
3462 | ac_cpp='$CPP $CPPFLAGS' | |
3463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3466 | ||
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
3468 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3469 | if test "${ac_cv_path_SED+set}" = set; then : | |
3470 | $as_echo_n "(cached) " >&6 | |
3471 | else | |
3472 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3473 | for ac_i in 1 2 3 4 5 6 7; do | |
3474 | ac_script="$ac_script$as_nl$ac_script" | |
3475 | done | |
3476 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3477 | { ac_script=; unset ac_script;} | |
3478 | if test -z "$SED"; then | |
3479 | ac_path_SED_found=false | |
3480 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3482 | for as_dir in $PATH | |
3483 | do | |
3484 | IFS=$as_save_IFS | |
3485 | test -z "$as_dir" && as_dir=. | |
3486 | for ac_prog in sed gsed; do | |
3487 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3488 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
3489 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3490 | # Check for GNU ac_path_SED and select it if it is found. | |
3491 | # Check for GNU $ac_path_SED | |
3492 | case `"$ac_path_SED" --version 2>&1` in | |
3493 | *GNU*) | |
3494 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3495 | *) | |
3496 | ac_count=0 | |
3497 | $as_echo_n 0123456789 >"conftest.in" | |
3498 | while : | |
3499 | do | |
3500 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3501 | mv "conftest.tmp" "conftest.in" | |
3502 | cp "conftest.in" "conftest.nl" | |
3503 | $as_echo '' >> "conftest.nl" | |
3504 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3505 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3506 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3507 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3508 | # Best one so far, save it but keep looking for a better one | |
3509 | ac_cv_path_SED="$ac_path_SED" | |
3510 | ac_path_SED_max=$ac_count | |
3511 | fi | |
3512 | # 10*(2^10) chars as input seems more than enough | |
3513 | test $ac_count -gt 10 && break | |
3514 | done | |
3515 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3516 | esac | |
3517 | ||
3518 | $ac_path_SED_found && break 3 | |
3519 | done | |
3520 | done | |
3521 | done | |
3522 | IFS=$as_save_IFS | |
3523 | if test -z "$ac_cv_path_SED"; then | |
3524 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3525 | fi | |
3526 | else | |
3527 | ac_cv_path_SED=$SED | |
3528 | fi | |
3529 | ||
3530 | fi | |
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3532 | $as_echo "$ac_cv_path_SED" >&6; } | |
3533 | SED="$ac_cv_path_SED" | |
3534 | rm -f conftest.sed | |
3535 | ||
3536 | test -z "$SED" && SED=sed | |
3537 | Xsed="$SED -e 1s/^X//" | |
3538 | ||
3539 | ||
3540 | ||
3541 | ||
3542 | ||
3543 | ||
3544 | ||
3545 | ||
3546 | ||
3547 | ||
3548 | ||
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3550 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3551 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3552 | $as_echo_n "(cached) " >&6 | |
3553 | else | |
3554 | if test -z "$GREP"; then | |
3555 | ac_path_GREP_found=false | |
3556 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3558 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3559 | do | |
3560 | IFS=$as_save_IFS | |
3561 | test -z "$as_dir" && as_dir=. | |
3562 | for ac_prog in grep ggrep; do | |
3563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3564 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3565 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3566 | # Check for GNU ac_path_GREP and select it if it is found. | |
3567 | # Check for GNU $ac_path_GREP | |
3568 | case `"$ac_path_GREP" --version 2>&1` in | |
3569 | *GNU*) | |
3570 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3571 | *) | |
3572 | ac_count=0 | |
3573 | $as_echo_n 0123456789 >"conftest.in" | |
3574 | while : | |
3575 | do | |
3576 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3577 | mv "conftest.tmp" "conftest.in" | |
3578 | cp "conftest.in" "conftest.nl" | |
3579 | $as_echo 'GREP' >> "conftest.nl" | |
3580 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3581 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3582 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3583 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3584 | # Best one so far, save it but keep looking for a better one | |
3585 | ac_cv_path_GREP="$ac_path_GREP" | |
3586 | ac_path_GREP_max=$ac_count | |
3587 | fi | |
3588 | # 10*(2^10) chars as input seems more than enough | |
3589 | test $ac_count -gt 10 && break | |
3590 | done | |
3591 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3592 | esac | |
3593 | ||
3594 | $ac_path_GREP_found && break 3 | |
3595 | done | |
3596 | done | |
3597 | done | |
3598 | IFS=$as_save_IFS | |
3599 | if test -z "$ac_cv_path_GREP"; then | |
3600 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3601 | fi | |
3602 | else | |
3603 | ac_cv_path_GREP=$GREP | |
3604 | fi | |
3605 | ||
3606 | fi | |
3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3608 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3609 | GREP="$ac_cv_path_GREP" | |
3610 | ||
3611 | ||
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3613 | $as_echo_n "checking for egrep... " >&6; } | |
3614 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3615 | $as_echo_n "(cached) " >&6 | |
3616 | else | |
3617 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3618 | then ac_cv_path_EGREP="$GREP -E" | |
3619 | else | |
3620 | if test -z "$EGREP"; then | |
3621 | ac_path_EGREP_found=false | |
3622 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3624 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3625 | do | |
3626 | IFS=$as_save_IFS | |
3627 | test -z "$as_dir" && as_dir=. | |
3628 | for ac_prog in egrep; do | |
3629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3630 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3631 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3632 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3633 | # Check for GNU $ac_path_EGREP | |
3634 | case `"$ac_path_EGREP" --version 2>&1` in | |
3635 | *GNU*) | |
3636 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3637 | *) | |
3638 | ac_count=0 | |
3639 | $as_echo_n 0123456789 >"conftest.in" | |
3640 | while : | |
3641 | do | |
3642 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3643 | mv "conftest.tmp" "conftest.in" | |
3644 | cp "conftest.in" "conftest.nl" | |
3645 | $as_echo 'EGREP' >> "conftest.nl" | |
3646 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3647 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3648 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3649 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3650 | # Best one so far, save it but keep looking for a better one | |
3651 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3652 | ac_path_EGREP_max=$ac_count | |
3653 | fi | |
3654 | # 10*(2^10) chars as input seems more than enough | |
3655 | test $ac_count -gt 10 && break | |
3656 | done | |
3657 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3658 | esac | |
3659 | ||
3660 | $ac_path_EGREP_found && break 3 | |
3661 | done | |
3662 | done | |
3663 | done | |
3664 | IFS=$as_save_IFS | |
3665 | if test -z "$ac_cv_path_EGREP"; then | |
3666 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3667 | fi | |
3668 | else | |
3669 | ac_cv_path_EGREP=$EGREP | |
3670 | fi | |
3671 | ||
3672 | fi | |
3673 | fi | |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3675 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3676 | EGREP="$ac_cv_path_EGREP" | |
3677 | ||
3678 | ||
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
3680 | $as_echo_n "checking for fgrep... " >&6; } | |
3681 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3682 | $as_echo_n "(cached) " >&6 | |
3683 | else | |
3684 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
3685 | then ac_cv_path_FGREP="$GREP -F" | |
3686 | else | |
3687 | if test -z "$FGREP"; then | |
3688 | ac_path_FGREP_found=false | |
3689 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3691 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3692 | do | |
3693 | IFS=$as_save_IFS | |
3694 | test -z "$as_dir" && as_dir=. | |
3695 | for ac_prog in fgrep; do | |
3696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3697 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3698 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3699 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3700 | # Check for GNU $ac_path_FGREP | |
3701 | case `"$ac_path_FGREP" --version 2>&1` in | |
3702 | *GNU*) | |
3703 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3704 | *) | |
3705 | ac_count=0 | |
3706 | $as_echo_n 0123456789 >"conftest.in" | |
3707 | while : | |
3708 | do | |
3709 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3710 | mv "conftest.tmp" "conftest.in" | |
3711 | cp "conftest.in" "conftest.nl" | |
3712 | $as_echo 'FGREP' >> "conftest.nl" | |
3713 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3714 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3715 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3716 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3717 | # Best one so far, save it but keep looking for a better one | |
3718 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3719 | ac_path_FGREP_max=$ac_count | |
3720 | fi | |
3721 | # 10*(2^10) chars as input seems more than enough | |
3722 | test $ac_count -gt 10 && break | |
3723 | done | |
3724 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3725 | esac | |
3726 | ||
3727 | $ac_path_FGREP_found && break 3 | |
3728 | done | |
3729 | done | |
3730 | done | |
3731 | IFS=$as_save_IFS | |
3732 | if test -z "$ac_cv_path_FGREP"; then | |
3733 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3734 | fi | |
3735 | else | |
3736 | ac_cv_path_FGREP=$FGREP | |
3737 | fi | |
3738 | ||
3739 | fi | |
3740 | fi | |
3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
3742 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3743 | FGREP="$ac_cv_path_FGREP" | |
3744 | ||
3745 | ||
3746 | test -z "$GREP" && GREP=grep | |
3747 | ||
3748 | ||
3749 | ||
3750 | ||
3751 | ||
3752 | ||
3753 | ||
3754 | ||
3755 | ||
3756 | ||
3757 | ||
3758 | ||
3759 | ||
3760 | ||
3761 | ||
3762 | ||
3763 | ||
3764 | ||
3765 | ||
3766 | # Check whether --with-gnu-ld was given. | |
3767 | if test "${with_gnu_ld+set}" = set; then : | |
3768 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
3769 | else | |
3770 | with_gnu_ld=no | |
3771 | fi | |
3772 | ||
3773 | ac_prog=ld | |
3774 | if test "$GCC" = yes; then | |
3775 | # Check if gcc -print-prog-name=ld gives a path. | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3777 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3778 | case $host in | |
3779 | *-*-mingw*) | |
3780 | # gcc leaves a trailing carriage return which upsets mingw | |
3781 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3782 | *) | |
3783 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3784 | esac | |
3785 | case $ac_prog in | |
3786 | # Accept absolute paths. | |
3787 | [\\/]* | ?:[\\/]*) | |
3788 | re_direlt='/[^/][^/]*/\.\./' | |
3789 | # Canonicalize the pathname of ld | |
3790 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3791 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3792 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
3793 | done | |
3794 | test -z "$LD" && LD="$ac_prog" | |
3795 | ;; | |
3796 | "") | |
3797 | # If it fails, then pretend we aren't using GCC. | |
3798 | ac_prog=ld | |
3799 | ;; | |
3800 | *) | |
3801 | # If it is relative, then search for the first ld in PATH. | |
3802 | with_gnu_ld=unknown | |
3803 | ;; | |
3804 | esac | |
3805 | elif test "$with_gnu_ld" = yes; then | |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3807 | $as_echo_n "checking for GNU ld... " >&6; } | |
3808 | else | |
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3810 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3811 | fi | |
3812 | if test "${lt_cv_path_LD+set}" = set; then : | |
3813 | $as_echo_n "(cached) " >&6 | |
3814 | else | |
3815 | if test -z "$LD"; then | |
3816 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3817 | for ac_dir in $PATH; do | |
3818 | IFS="$lt_save_ifs" | |
3819 | test -z "$ac_dir" && ac_dir=. | |
3820 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3821 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3822 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3823 | # but apparently some variants of GNU ld only accept -v. | |
3824 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3825 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3826 | *GNU* | *'with BFD'*) | |
3827 | test "$with_gnu_ld" != no && break | |
3828 | ;; | |
3829 | *) | |
3830 | test "$with_gnu_ld" != yes && break | |
3831 | ;; | |
3832 | esac | |
3833 | fi | |
3834 | done | |
3835 | IFS="$lt_save_ifs" | |
3836 | else | |
3837 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3838 | fi | |
3839 | fi | |
3840 | ||
3841 | LD="$lt_cv_path_LD" | |
3842 | if test -n "$LD"; then | |
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3844 | $as_echo "$LD" >&6; } | |
3845 | else | |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3847 | $as_echo "no" >&6; } | |
3848 | fi | |
3849 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3851 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3852 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3853 | $as_echo_n "(cached) " >&6 | |
3854 | else | |
3855 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3856 | case `$LD -v 2>&1 </dev/null` in | |
3857 | *GNU* | *'with BFD'*) | |
3858 | lt_cv_prog_gnu_ld=yes | |
3859 | ;; | |
3860 | *) | |
3861 | lt_cv_prog_gnu_ld=no | |
3862 | ;; | |
3863 | esac | |
3864 | fi | |
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
3866 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3867 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3868 | ||
3869 | ||
3870 | ||
3871 | ||
3872 | ||
3873 | ||
3874 | ||
3875 | ||
3876 | ||
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3878 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3879 | if test "${lt_cv_path_NM+set}" = set; then : | |
3880 | $as_echo_n "(cached) " >&6 | |
3881 | else | |
3882 | if test -n "$NM"; then | |
3883 | # Let the user override the test. | |
3884 | lt_cv_path_NM="$NM" | |
3885 | else | |
3886 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3887 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3888 | lt_nm_to_check="$lt_nm_to_check nm" | |
3889 | fi | |
3890 | for lt_tmp_nm in $lt_nm_to_check; do | |
3891 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3892 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3893 | IFS="$lt_save_ifs" | |
3894 | test -z "$ac_dir" && ac_dir=. | |
3895 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3896 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3897 | # Check to see if the nm accepts a BSD-compat flag. | |
3898 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3899 | # nm: unknown option "B" ignored | |
3900 | # Tru64's nm complains that /dev/null is an invalid object file | |
3901 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3902 | */dev/null* | *'Invalid file or object type'*) | |
3903 | lt_cv_path_NM="$tmp_nm -B" | |
3904 | break | |
3905 | ;; | |
3906 | *) | |
3907 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3908 | */dev/null*) | |
3909 | lt_cv_path_NM="$tmp_nm -p" | |
3910 | break | |
3911 | ;; | |
3912 | *) | |
3913 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3914 | continue # so that we can try to find one that supports BSD flags | |
3915 | ;; | |
3916 | esac | |
3917 | ;; | |
3918 | esac | |
3919 | fi | |
3920 | done | |
3921 | IFS="$lt_save_ifs" | |
3922 | done | |
3923 | : ${lt_cv_path_NM=no} | |
3924 | fi | |
3925 | fi | |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3927 | $as_echo "$lt_cv_path_NM" >&6; } | |
3928 | if test "$lt_cv_path_NM" != "no"; then | |
3929 | NM="$lt_cv_path_NM" | |
3930 | else | |
3931 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3932 | if test -n "$ac_tool_prefix"; then | |
3933 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
3934 | do | |
3935 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3936 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3938 | $as_echo_n "checking for $ac_word... " >&6; } | |
3939 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
3940 | $as_echo_n "(cached) " >&6 | |
3941 | else | |
3942 | if test -n "$DUMPBIN"; then | |
3943 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
3944 | else | |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3946 | for as_dir in $PATH | |
3947 | do | |
3948 | IFS=$as_save_IFS | |
3949 | test -z "$as_dir" && as_dir=. | |
3950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3952 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
3953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3954 | break 2 | |
3955 | fi | |
3956 | done | |
3957 | done | |
3958 | IFS=$as_save_IFS | |
3959 | ||
3960 | fi | |
3961 | fi | |
3962 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
3963 | if test -n "$DUMPBIN"; then | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
3965 | $as_echo "$DUMPBIN" >&6; } | |
3966 | else | |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3968 | $as_echo "no" >&6; } | |
3969 | fi | |
3970 | ||
3971 | ||
3972 | test -n "$DUMPBIN" && break | |
3973 | done | |
3974 | fi | |
3975 | if test -z "$DUMPBIN"; then | |
3976 | ac_ct_DUMPBIN=$DUMPBIN | |
3977 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
3978 | do | |
3979 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3980 | set dummy $ac_prog; ac_word=$2 | |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3982 | $as_echo_n "checking for $ac_word... " >&6; } | |
3983 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
3984 | $as_echo_n "(cached) " >&6 | |
3985 | else | |
3986 | if test -n "$ac_ct_DUMPBIN"; then | |
3987 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
3988 | else | |
3989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3990 | for as_dir in $PATH | |
3991 | do | |
3992 | IFS=$as_save_IFS | |
3993 | test -z "$as_dir" && as_dir=. | |
3994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3996 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
3997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3998 | break 2 | |
3999 | fi | |
4000 | done | |
4001 | done | |
4002 | IFS=$as_save_IFS | |
4003 | ||
4004 | fi | |
4005 | fi | |
4006 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4007 | if test -n "$ac_ct_DUMPBIN"; then | |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4009 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4010 | else | |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4012 | $as_echo "no" >&6; } | |
4013 | fi | |
4014 | ||
4015 | ||
4016 | test -n "$ac_ct_DUMPBIN" && break | |
4017 | done | |
4018 | ||
4019 | if test "x$ac_ct_DUMPBIN" = x; then | |
4020 | DUMPBIN=":" | |
4021 | else | |
4022 | case $cross_compiling:$ac_tool_warned in | |
4023 | yes:) | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4026 | ac_tool_warned=yes ;; | |
4027 | esac | |
4028 | DUMPBIN=$ac_ct_DUMPBIN | |
4029 | fi | |
4030 | fi | |
4031 | ||
4032 | ||
4033 | if test "$DUMPBIN" != ":"; then | |
4034 | NM="$DUMPBIN" | |
4035 | fi | |
4036 | fi | |
4037 | test -z "$NM" && NM=nm | |
4038 | ||
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4045 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4046 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4047 | $as_echo_n "(cached) " >&6 | |
4048 | else | |
4049 | lt_cv_nm_interface="BSD nm" | |
4050 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4051 | (eval echo "\"\$as_me:4051: $ac_compile\"" >&5) | |
4052 | (eval "$ac_compile" 2>conftest.err) | |
4053 | cat conftest.err >&5 | |
4054 | (eval echo "\"\$as_me:4054: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4055 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4056 | cat conftest.err >&5 | |
4057 | (eval echo "\"\$as_me:4057: output\"" >&5) | |
4058 | cat conftest.out >&5 | |
4059 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4060 | lt_cv_nm_interface="MS dumpbin" | |
4061 | fi | |
4062 | rm -f conftest* | |
4063 | fi | |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4065 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4066 | ||
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4068 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4069 | LN_S=$as_ln_s | |
4070 | if test "$LN_S" = "ln -s"; then | |
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4072 | $as_echo "yes" >&6; } | |
4073 | else | |
4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4075 | $as_echo "no, using $LN_S" >&6; } | |
4076 | fi | |
4077 | ||
4078 | # find the maximum length of command line arguments | |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4080 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4081 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
4082 | $as_echo_n "(cached) " >&6 | |
4083 | else | |
4084 | i=0 | |
4085 | teststring="ABCD" | |
4086 | ||
4087 | case $build_os in | |
4088 | msdosdjgpp*) | |
4089 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4090 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4091 | # during glob expansion). Even if it were fixed, the result of this | |
4092 | # check would be larger than it should be. | |
4093 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4094 | ;; | |
4095 | ||
4096 | gnu*) | |
4097 | # Under GNU Hurd, this test is not required because there is | |
4098 | # no limit to the length of command line arguments. | |
4099 | # Libtool will interpret -1 as no limit whatsoever | |
4100 | lt_cv_sys_max_cmd_len=-1; | |
4101 | ;; | |
4102 | ||
4103 | cygwin* | mingw* | cegcc*) | |
4104 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4105 | # about 5 minutes as the teststring grows exponentially. | |
4106 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4107 | # you end up with a "frozen" computer, even though with patience | |
4108 | # the test eventually succeeds (with a max line length of 256k). | |
4109 | # Instead, let's just punt: use the minimum linelength reported by | |
4110 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4111 | lt_cv_sys_max_cmd_len=8192; | |
4112 | ;; | |
4113 | ||
4114 | amigaos*) | |
4115 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4116 | # So we just punt and use a minimum line length of 8192. | |
4117 | lt_cv_sys_max_cmd_len=8192; | |
4118 | ;; | |
4119 | ||
4120 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4121 | # This has been around since 386BSD, at least. Likely further. | |
4122 | if test -x /sbin/sysctl; then | |
4123 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4124 | elif test -x /usr/sbin/sysctl; then | |
4125 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4126 | else | |
4127 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4128 | fi | |
4129 | # And add a safety zone | |
4130 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4131 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4132 | ;; | |
4133 | ||
4134 | interix*) | |
4135 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4136 | lt_cv_sys_max_cmd_len=196608 | |
4137 | ;; | |
4138 | ||
4139 | osf*) | |
4140 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4141 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4142 | # nice to cause kernel panics so lets avoid the loop below. | |
4143 | # First set a reasonable default. | |
4144 | lt_cv_sys_max_cmd_len=16384 | |
4145 | # | |
4146 | if test -x /sbin/sysconfig; then | |
4147 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4148 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4149 | esac | |
4150 | fi | |
4151 | ;; | |
4152 | sco3.2v5*) | |
4153 | lt_cv_sys_max_cmd_len=102400 | |
4154 | ;; | |
4155 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4156 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4157 | if test -n "$kargmax"; then | |
4158 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4159 | else | |
4160 | lt_cv_sys_max_cmd_len=32768 | |
4161 | fi | |
4162 | ;; | |
4163 | *) | |
4164 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4165 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4166 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4167 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4168 | else | |
4169 | # Make teststring a little bigger before we do anything with it. | |
4170 | # a 1K string should be a reasonable start. | |
4171 | for i in 1 2 3 4 5 6 7 8 ; do | |
4172 | teststring=$teststring$teststring | |
4173 | done | |
4174 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4175 | # If test is not a shell built-in, we'll probably end up computing a | |
4176 | # maximum length that is only half of the actual maximum length, but | |
4177 | # we can't tell. | |
4178 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4179 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4180 | test $i != 17 # 1/2 MB should be enough | |
4181 | do | |
4182 | i=`expr $i + 1` | |
4183 | teststring=$teststring$teststring | |
4184 | done | |
4185 | # Only check the string length outside the loop. | |
4186 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4187 | teststring= | |
4188 | # Add a significant safety factor because C++ compilers can tack on | |
4189 | # massive amounts of additional arguments before passing them to the | |
4190 | # linker. It appears as though 1/2 is a usable value. | |
4191 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4192 | fi | |
4193 | ;; | |
4194 | esac | |
4195 | ||
4196 | fi | |
4197 | ||
4198 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4200 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4201 | else | |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
4203 | $as_echo "none" >&6; } | |
4204 | fi | |
4205 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4206 | ||
4207 | ||
4208 | ||
4209 | ||
4210 | ||
4211 | ||
4212 | : ${CP="cp -f"} | |
4213 | : ${MV="mv -f"} | |
4214 | : ${RM="rm -f"} | |
4215 | ||
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4217 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4218 | # Try some XSI features | |
4219 | xsi_shell=no | |
4220 | ( _lt_dummy="a/b/c" | |
4221 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4222 | = c,a/b,, \ | |
4223 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4224 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4225 | && xsi_shell=yes | |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4227 | $as_echo "$xsi_shell" >&6; } | |
4228 | ||
4229 | ||
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4231 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4232 | lt_shell_append=no | |
4233 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4234 | >/dev/null 2>&1 \ | |
4235 | && lt_shell_append=yes | |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4237 | $as_echo "$lt_shell_append" >&6; } | |
4238 | ||
4239 | ||
4240 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4241 | lt_unset=unset | |
4242 | else | |
4243 | lt_unset=false | |
4244 | fi | |
4245 | ||
4246 | ||
4247 | ||
4248 | ||
4249 | ||
4250 | # test EBCDIC or ASCII | |
4251 | case `echo X|tr X '\101'` in | |
4252 | A) # ASCII based system | |
4253 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4254 | lt_SP2NL='tr \040 \012' | |
4255 | lt_NL2SP='tr \015\012 \040\040' | |
4256 | ;; | |
4257 | *) # EBCDIC based system | |
4258 | lt_SP2NL='tr \100 \n' | |
4259 | lt_NL2SP='tr \r\n \100\100' | |
4260 | ;; | |
4261 | esac | |
4262 | ||
4263 | ||
4264 | ||
4265 | ||
4266 | ||
4267 | ||
4268 | ||
4269 | ||
4270 | ||
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4272 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4273 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
4274 | $as_echo_n "(cached) " >&6 | |
4275 | else | |
4276 | lt_cv_ld_reload_flag='-r' | |
4277 | fi | |
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
4279 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4280 | reload_flag=$lt_cv_ld_reload_flag | |
4281 | case $reload_flag in | |
4282 | "" | " "*) ;; | |
4283 | *) reload_flag=" $reload_flag" ;; | |
4284 | esac | |
4285 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4286 | case $host_os in | |
4287 | darwin*) | |
4288 | if test "$GCC" = yes; then | |
4289 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4290 | else | |
4291 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4292 | fi | |
4293 | ;; | |
4294 | esac | |
4295 | ||
4296 | ||
4297 | ||
4298 | ||
4299 | ||
4300 | ||
4301 | ||
4302 | ||
4303 | ||
4304 | if test -n "$ac_tool_prefix"; then | |
4305 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4306 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4308 | $as_echo_n "checking for $ac_word... " >&6; } | |
4309 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
4310 | $as_echo_n "(cached) " >&6 | |
4311 | else | |
4312 | if test -n "$OBJDUMP"; then | |
4313 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4314 | else | |
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4316 | for as_dir in $PATH | |
4317 | do | |
4318 | IFS=$as_save_IFS | |
4319 | test -z "$as_dir" && as_dir=. | |
4320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4322 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4324 | break 2 | |
4325 | fi | |
4326 | done | |
4327 | done | |
4328 | IFS=$as_save_IFS | |
4329 | ||
4330 | fi | |
4331 | fi | |
4332 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4333 | if test -n "$OBJDUMP"; then | |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4335 | $as_echo "$OBJDUMP" >&6; } | |
4336 | else | |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4338 | $as_echo "no" >&6; } | |
4339 | fi | |
4340 | ||
4341 | ||
4342 | fi | |
4343 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4344 | ac_ct_OBJDUMP=$OBJDUMP | |
4345 | # Extract the first word of "objdump", so it can be a program name with args. | |
4346 | set dummy objdump; ac_word=$2 | |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4348 | $as_echo_n "checking for $ac_word... " >&6; } | |
4349 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
4350 | $as_echo_n "(cached) " >&6 | |
4351 | else | |
4352 | if test -n "$ac_ct_OBJDUMP"; then | |
4353 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4354 | else | |
4355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4356 | for as_dir in $PATH | |
4357 | do | |
4358 | IFS=$as_save_IFS | |
4359 | test -z "$as_dir" && as_dir=. | |
4360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4362 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4364 | break 2 | |
4365 | fi | |
4366 | done | |
4367 | done | |
4368 | IFS=$as_save_IFS | |
4369 | ||
4370 | fi | |
4371 | fi | |
4372 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4373 | if test -n "$ac_ct_OBJDUMP"; then | |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4375 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4376 | else | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4378 | $as_echo "no" >&6; } | |
4379 | fi | |
4380 | ||
4381 | if test "x$ac_ct_OBJDUMP" = x; then | |
4382 | OBJDUMP="false" | |
4383 | else | |
4384 | case $cross_compiling:$ac_tool_warned in | |
4385 | yes:) | |
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4387 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4388 | ac_tool_warned=yes ;; | |
4389 | esac | |
4390 | OBJDUMP=$ac_ct_OBJDUMP | |
4391 | fi | |
4392 | else | |
4393 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4394 | fi | |
4395 | ||
4396 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
4397 | ||
4398 | ||
4399 | ||
4400 | ||
4401 | ||
4402 | ||
4403 | ||
4404 | ||
4405 | ||
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
4407 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4408 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4409 | $as_echo_n "(cached) " >&6 | |
4410 | else | |
4411 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4412 | lt_cv_file_magic_test_file= | |
4413 | lt_cv_deplibs_check_method='unknown' | |
4414 | # Need to set the preceding variable on all platforms that support | |
4415 | # interlibrary dependencies. | |
4416 | # 'none' -- dependencies not supported. | |
4417 | # `unknown' -- same as none, but documents that we really don't know. | |
4418 | # 'pass_all' -- all dependencies passed with no checks. | |
4419 | # 'test_compile' -- check by making test program. | |
4420 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4421 | # which responds to the $file_magic_cmd with a given extended regex. | |
4422 | # If you have `file' or equivalent on your system and you're not sure | |
4423 | # whether `pass_all' will *always* work, you probably want this one. | |
4424 | ||
4425 | case $host_os in | |
4426 | aix[4-9]*) | |
4427 | lt_cv_deplibs_check_method=pass_all | |
4428 | ;; | |
4429 | ||
4430 | beos*) | |
4431 | lt_cv_deplibs_check_method=pass_all | |
4432 | ;; | |
4433 | ||
4434 | bsdi[45]*) | |
4435 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4436 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4437 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4438 | ;; | |
4439 | ||
4440 | cygwin*) | |
4441 | # func_win32_libid is a shell function defined in ltmain.sh | |
4442 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4443 | lt_cv_file_magic_cmd='func_win32_libid' | |
4444 | ;; | |
4445 | ||
4446 | mingw* | pw32*) | |
4447 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4448 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4449 | # unless we find 'file', for example because we are cross-compiling. | |
4450 | if ( file / ) >/dev/null 2>&1; then | |
4451 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4452 | lt_cv_file_magic_cmd='func_win32_libid' | |
4453 | else | |
4454 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4455 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4456 | fi | |
4457 | ;; | |
4458 | ||
4459 | cegcc) | |
4460 | # use the weaker test based on 'objdump'. See mingw*. | |
4461 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4462 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4463 | ;; | |
4464 | ||
4465 | darwin* | rhapsody*) | |
4466 | lt_cv_deplibs_check_method=pass_all | |
4467 | ;; | |
4468 | ||
4469 | freebsd* | dragonfly*) | |
4470 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4471 | case $host_cpu in | |
4472 | i*86 ) | |
4473 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4474 | # Let's accept both of them until this is cleared up. | |
4475 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4476 | lt_cv_file_magic_cmd=/usr/bin/file | |
4477 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4478 | ;; | |
4479 | esac | |
4480 | else | |
4481 | lt_cv_deplibs_check_method=pass_all | |
4482 | fi | |
4483 | ;; | |
4484 | ||
4485 | gnu*) | |
4486 | lt_cv_deplibs_check_method=pass_all | |
4487 | ;; | |
4488 | ||
4489 | hpux10.20* | hpux11*) | |
4490 | lt_cv_file_magic_cmd=/usr/bin/file | |
4491 | case $host_cpu in | |
4492 | ia64*) | |
4493 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4494 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4495 | ;; | |
4496 | hppa*64*) | |
4497 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4498 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4499 | ;; | |
4500 | *) | |
4501 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4502 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4503 | ;; | |
4504 | esac | |
4505 | ;; | |
4506 | ||
4507 | interix[3-9]*) | |
4508 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4509 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4510 | ;; | |
4511 | ||
4512 | irix5* | irix6* | nonstopux*) | |
4513 | case $LD in | |
4514 | *-32|*"-32 ") libmagic=32-bit;; | |
4515 | *-n32|*"-n32 ") libmagic=N32;; | |
4516 | *-64|*"-64 ") libmagic=64-bit;; | |
4517 | *) libmagic=never-match;; | |
4518 | esac | |
4519 | lt_cv_deplibs_check_method=pass_all | |
4520 | ;; | |
4521 | ||
4522 | # This must be Linux ELF. | |
4523 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4524 | lt_cv_deplibs_check_method=pass_all | |
4525 | ;; | |
4526 | ||
4527 | netbsd* | netbsdelf*-gnu) | |
4528 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4529 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4530 | else | |
4531 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4532 | fi | |
4533 | ;; | |
4534 | ||
4535 | newos6*) | |
4536 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4537 | lt_cv_file_magic_cmd=/usr/bin/file | |
4538 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4539 | ;; | |
4540 | ||
4541 | *nto* | *qnx*) | |
4542 | lt_cv_deplibs_check_method=pass_all | |
4543 | ;; | |
4544 | ||
4545 | openbsd*) | |
4546 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4547 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4548 | else | |
4549 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4550 | fi | |
4551 | ;; | |
4552 | ||
4553 | osf3* | osf4* | osf5*) | |
4554 | lt_cv_deplibs_check_method=pass_all | |
4555 | ;; | |
4556 | ||
4557 | rdos*) | |
4558 | lt_cv_deplibs_check_method=pass_all | |
4559 | ;; | |
4560 | ||
4561 | solaris*) | |
4562 | lt_cv_deplibs_check_method=pass_all | |
4563 | ;; | |
4564 | ||
4565 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4566 | lt_cv_deplibs_check_method=pass_all | |
4567 | ;; | |
4568 | ||
4569 | sysv4 | sysv4.3*) | |
4570 | case $host_vendor in | |
4571 | motorola) | |
4572 | 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]' | |
4573 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4574 | ;; | |
4575 | ncr) | |
4576 | lt_cv_deplibs_check_method=pass_all | |
4577 | ;; | |
4578 | sequent) | |
4579 | lt_cv_file_magic_cmd='/bin/file' | |
4580 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4581 | ;; | |
4582 | sni) | |
4583 | lt_cv_file_magic_cmd='/bin/file' | |
4584 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4585 | lt_cv_file_magic_test_file=/lib/libc.so | |
4586 | ;; | |
4587 | siemens) | |
4588 | lt_cv_deplibs_check_method=pass_all | |
4589 | ;; | |
4590 | pc) | |
4591 | lt_cv_deplibs_check_method=pass_all | |
4592 | ;; | |
4593 | esac | |
4594 | ;; | |
4595 | ||
4596 | tpf*) | |
4597 | lt_cv_deplibs_check_method=pass_all | |
4598 | ;; | |
4599 | esac | |
4600 | ||
4601 | fi | |
4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
4603 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4604 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4605 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4606 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4607 | ||
4608 | ||
4609 | ||
4610 | ||
4611 | ||
4612 | ||
4613 | ||
4614 | ||
4615 | ||
4616 | ||
4617 | ||
4618 | ||
4619 | if test -n "$ac_tool_prefix"; then | |
4620 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4621 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4623 | $as_echo_n "checking for $ac_word... " >&6; } | |
4624 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4625 | $as_echo_n "(cached) " >&6 | |
4626 | else | |
4627 | if test -n "$AR"; then | |
4628 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4629 | else | |
4630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4631 | for as_dir in $PATH | |
4632 | do | |
4633 | IFS=$as_save_IFS | |
4634 | test -z "$as_dir" && as_dir=. | |
4635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4637 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4639 | break 2 | |
4640 | fi | |
4641 | done | |
4642 | done | |
4643 | IFS=$as_save_IFS | |
4644 | ||
4645 | fi | |
4646 | fi | |
4647 | AR=$ac_cv_prog_AR | |
4648 | if test -n "$AR"; then | |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4650 | $as_echo "$AR" >&6; } | |
4651 | else | |
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4653 | $as_echo "no" >&6; } | |
4654 | fi | |
4655 | ||
4656 | ||
4657 | fi | |
4658 | if test -z "$ac_cv_prog_AR"; then | |
4659 | ac_ct_AR=$AR | |
4660 | # Extract the first word of "ar", so it can be a program name with args. | |
4661 | set dummy ar; ac_word=$2 | |
4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4663 | $as_echo_n "checking for $ac_word... " >&6; } | |
4664 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4665 | $as_echo_n "(cached) " >&6 | |
4666 | else | |
4667 | if test -n "$ac_ct_AR"; then | |
4668 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4669 | else | |
4670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4671 | for as_dir in $PATH | |
4672 | do | |
4673 | IFS=$as_save_IFS | |
4674 | test -z "$as_dir" && as_dir=. | |
4675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4677 | ac_cv_prog_ac_ct_AR="ar" | |
4678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4679 | break 2 | |
4680 | fi | |
4681 | done | |
4682 | done | |
4683 | IFS=$as_save_IFS | |
4684 | ||
4685 | fi | |
4686 | fi | |
4687 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4688 | if test -n "$ac_ct_AR"; then | |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4690 | $as_echo "$ac_ct_AR" >&6; } | |
4691 | else | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4693 | $as_echo "no" >&6; } | |
4694 | fi | |
4695 | ||
4696 | if test "x$ac_ct_AR" = x; then | |
4697 | AR="false" | |
4698 | else | |
4699 | case $cross_compiling:$ac_tool_warned in | |
4700 | yes:) | |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4702 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4703 | ac_tool_warned=yes ;; | |
4704 | esac | |
4705 | AR=$ac_ct_AR | |
4706 | fi | |
4707 | else | |
4708 | AR="$ac_cv_prog_AR" | |
4709 | fi | |
4710 | ||
4711 | test -z "$AR" && AR=ar | |
4712 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4713 | ||
4714 | ||
4715 | ||
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | ||
4724 | if test -n "$ac_tool_prefix"; then | |
4725 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4726 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4728 | $as_echo_n "checking for $ac_word... " >&6; } | |
4729 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4730 | $as_echo_n "(cached) " >&6 | |
4731 | else | |
4732 | if test -n "$STRIP"; then | |
4733 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4734 | else | |
4735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4736 | for as_dir in $PATH | |
4737 | do | |
4738 | IFS=$as_save_IFS | |
4739 | test -z "$as_dir" && as_dir=. | |
4740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4742 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4744 | break 2 | |
4745 | fi | |
4746 | done | |
4747 | done | |
4748 | IFS=$as_save_IFS | |
4749 | ||
4750 | fi | |
4751 | fi | |
4752 | STRIP=$ac_cv_prog_STRIP | |
4753 | if test -n "$STRIP"; then | |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4755 | $as_echo "$STRIP" >&6; } | |
4756 | else | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4758 | $as_echo "no" >&6; } | |
4759 | fi | |
4760 | ||
4761 | ||
4762 | fi | |
4763 | if test -z "$ac_cv_prog_STRIP"; then | |
4764 | ac_ct_STRIP=$STRIP | |
4765 | # Extract the first word of "strip", so it can be a program name with args. | |
4766 | set dummy strip; ac_word=$2 | |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4768 | $as_echo_n "checking for $ac_word... " >&6; } | |
4769 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4770 | $as_echo_n "(cached) " >&6 | |
4771 | else | |
4772 | if test -n "$ac_ct_STRIP"; then | |
4773 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4774 | else | |
4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4776 | for as_dir in $PATH | |
4777 | do | |
4778 | IFS=$as_save_IFS | |
4779 | test -z "$as_dir" && as_dir=. | |
4780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4782 | ac_cv_prog_ac_ct_STRIP="strip" | |
4783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4784 | break 2 | |
4785 | fi | |
4786 | done | |
4787 | done | |
4788 | IFS=$as_save_IFS | |
4789 | ||
4790 | fi | |
4791 | fi | |
4792 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4793 | if test -n "$ac_ct_STRIP"; then | |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4795 | $as_echo "$ac_ct_STRIP" >&6; } | |
4796 | else | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4798 | $as_echo "no" >&6; } | |
4799 | fi | |
4800 | ||
4801 | if test "x$ac_ct_STRIP" = x; then | |
4802 | STRIP=":" | |
4803 | else | |
4804 | case $cross_compiling:$ac_tool_warned in | |
4805 | yes:) | |
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4807 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4808 | ac_tool_warned=yes ;; | |
4809 | esac | |
4810 | STRIP=$ac_ct_STRIP | |
4811 | fi | |
4812 | else | |
4813 | STRIP="$ac_cv_prog_STRIP" | |
4814 | fi | |
4815 | ||
4816 | test -z "$STRIP" && STRIP=: | |
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | ||
4823 | if test -n "$ac_tool_prefix"; then | |
4824 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4825 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4827 | $as_echo_n "checking for $ac_word... " >&6; } | |
4828 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4829 | $as_echo_n "(cached) " >&6 | |
4830 | else | |
4831 | if test -n "$RANLIB"; then | |
4832 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4833 | else | |
4834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4835 | for as_dir in $PATH | |
4836 | do | |
4837 | IFS=$as_save_IFS | |
4838 | test -z "$as_dir" && as_dir=. | |
4839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4841 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4843 | break 2 | |
4844 | fi | |
4845 | done | |
4846 | done | |
4847 | IFS=$as_save_IFS | |
4848 | ||
4849 | fi | |
4850 | fi | |
4851 | RANLIB=$ac_cv_prog_RANLIB | |
4852 | if test -n "$RANLIB"; then | |
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4854 | $as_echo "$RANLIB" >&6; } | |
4855 | else | |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4857 | $as_echo "no" >&6; } | |
4858 | fi | |
4859 | ||
4860 | ||
4861 | fi | |
4862 | if test -z "$ac_cv_prog_RANLIB"; then | |
4863 | ac_ct_RANLIB=$RANLIB | |
4864 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4865 | set dummy ranlib; ac_word=$2 | |
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4867 | $as_echo_n "checking for $ac_word... " >&6; } | |
4868 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4869 | $as_echo_n "(cached) " >&6 | |
4870 | else | |
4871 | if test -n "$ac_ct_RANLIB"; then | |
4872 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4873 | else | |
4874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4875 | for as_dir in $PATH | |
4876 | do | |
4877 | IFS=$as_save_IFS | |
4878 | test -z "$as_dir" && as_dir=. | |
4879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4881 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4883 | break 2 | |
4884 | fi | |
4885 | done | |
4886 | done | |
4887 | IFS=$as_save_IFS | |
4888 | ||
4889 | fi | |
4890 | fi | |
4891 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4892 | if test -n "$ac_ct_RANLIB"; then | |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4894 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4895 | else | |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4897 | $as_echo "no" >&6; } | |
4898 | fi | |
4899 | ||
4900 | if test "x$ac_ct_RANLIB" = x; then | |
4901 | RANLIB=":" | |
4902 | else | |
4903 | case $cross_compiling:$ac_tool_warned in | |
4904 | yes:) | |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4906 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4907 | ac_tool_warned=yes ;; | |
4908 | esac | |
4909 | RANLIB=$ac_ct_RANLIB | |
4910 | fi | |
4911 | else | |
4912 | RANLIB="$ac_cv_prog_RANLIB" | |
4913 | fi | |
4914 | ||
4915 | test -z "$RANLIB" && RANLIB=: | |
4916 | ||
4917 | ||
4918 | ||
4919 | ||
4920 | ||
4921 | ||
4922 | # Determine commands to create old-style static archives. | |
4923 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4924 | old_postinstall_cmds='chmod 644 $oldlib' | |
4925 | old_postuninstall_cmds= | |
4926 | ||
4927 | if test -n "$RANLIB"; then | |
4928 | case $host_os in | |
4929 | openbsd*) | |
4930 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4931 | ;; | |
4932 | *) | |
4933 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4934 | ;; | |
4935 | esac | |
4936 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4937 | fi | |
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | # If no C compiler was specified, use CC. | |
4973 | LTCC=${LTCC-"$CC"} | |
4974 | ||
4975 | # If no C compiler flags were specified, use CFLAGS. | |
4976 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4977 | ||
4978 | # Allow CC to be a program name with arguments. | |
4979 | compiler=$CC | |
4980 | ||
4981 | ||
4982 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
4984 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
4985 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
4986 | $as_echo_n "(cached) " >&6 | |
4987 | else | |
4988 | ||
4989 | # These are sane defaults that work on at least a few old systems. | |
4990 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4991 | ||
4992 | # Character class describing NM global symbol codes. | |
4993 | symcode='[BCDEGRST]' | |
4994 | ||
4995 | # Regexp to match symbols that can be accessed directly from C. | |
4996 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
4997 | ||
4998 | # Define system-specific variables. | |
4999 | case $host_os in | |
5000 | aix*) | |
5001 | symcode='[BCDT]' | |
5002 | ;; | |
5003 | cygwin* | mingw* | pw32* | cegcc*) | |
5004 | symcode='[ABCDGISTW]' | |
5005 | ;; | |
5006 | hpux*) | |
5007 | if test "$host_cpu" = ia64; then | |
5008 | symcode='[ABCDEGRST]' | |
5009 | fi | |
5010 | ;; | |
5011 | irix* | nonstopux*) | |
5012 | symcode='[BCDEGRST]' | |
5013 | ;; | |
5014 | osf*) | |
5015 | symcode='[BCDEGQRST]' | |
5016 | ;; | |
5017 | solaris*) | |
5018 | symcode='[BDRT]' | |
5019 | ;; | |
5020 | sco3.2v5*) | |
5021 | symcode='[DT]' | |
5022 | ;; | |
5023 | sysv4.2uw2*) | |
5024 | symcode='[DT]' | |
5025 | ;; | |
5026 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5027 | symcode='[ABDT]' | |
5028 | ;; | |
5029 | sysv4) | |
5030 | symcode='[DFNSTU]' | |
5031 | ;; | |
5032 | esac | |
5033 | ||
5034 | # If we're using GNU nm, then use its standard symbol codes. | |
5035 | case `$NM -V 2>&1` in | |
5036 | *GNU* | *'with BFD'*) | |
5037 | symcode='[ABCDGIRSTW]' ;; | |
5038 | esac | |
5039 | ||
5040 | # Transform an extracted symbol line into a proper C declaration. | |
5041 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5042 | # so use this general approach. | |
5043 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5044 | ||
5045 | # Transform an extracted symbol line into symbol name and symbol address | |
5046 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5047 | 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'" | |
5048 | ||
5049 | # Handle CRLF in mingw tool chain | |
5050 | opt_cr= | |
5051 | case $build_os in | |
5052 | mingw*) | |
5053 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5054 | ;; | |
5055 | esac | |
5056 | ||
5057 | # Try without a prefix underscore, then with it. | |
5058 | for ac_symprfx in "" "_"; do | |
5059 | ||
5060 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5061 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5062 | ||
5063 | # Write the raw and C identifiers. | |
5064 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5065 | # Fake it for dumpbin and say T for any non-static function | |
5066 | # and D for any global variable. | |
5067 | # Also find C++ and __fastcall symbols from MSVC++, | |
5068 | # which start with @ or ?. | |
5069 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5070 | " {last_section=section; section=\$ 3};"\ | |
5071 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5072 | " \$ 0!~/External *\|/{next};"\ | |
5073 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5074 | " {if(hide[section]) next};"\ | |
5075 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5076 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5077 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5078 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5079 | " ' prfx=^$ac_symprfx" | |
5080 | else | |
5081 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5082 | fi | |
5083 | ||
5084 | # Check to see that the pipe works correctly. | |
5085 | pipe_works=no | |
5086 | ||
5087 | rm -f conftest* | |
5088 | cat > conftest.$ac_ext <<_LT_EOF | |
5089 | #ifdef __cplusplus | |
5090 | extern "C" { | |
5091 | #endif | |
5092 | char nm_test_var; | |
5093 | void nm_test_func(void); | |
5094 | void nm_test_func(void){} | |
5095 | #ifdef __cplusplus | |
5096 | } | |
5097 | #endif | |
5098 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5099 | _LT_EOF | |
5100 | ||
5101 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5102 | (eval $ac_compile) 2>&5 | |
5103 | ac_status=$? | |
5104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5105 | test $ac_status = 0; }; then | |
5106 | # Now try to grab the symbols. | |
5107 | nlist=conftest.nm | |
5108 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5109 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5110 | ac_status=$? | |
5111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5112 | test $ac_status = 0; } && test -s "$nlist"; then | |
5113 | # Try sorting and uniquifying the output. | |
5114 | if sort "$nlist" | uniq > "$nlist"T; then | |
5115 | mv -f "$nlist"T "$nlist" | |
5116 | else | |
5117 | rm -f "$nlist"T | |
5118 | fi | |
5119 | ||
5120 | # Make sure that we snagged all the symbols we need. | |
5121 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5122 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5123 | cat <<_LT_EOF > conftest.$ac_ext | |
5124 | #ifdef __cplusplus | |
5125 | extern "C" { | |
5126 | #endif | |
5127 | ||
5128 | _LT_EOF | |
5129 | # Now generate the symbol file. | |
5130 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5131 | ||
5132 | cat <<_LT_EOF >> conftest.$ac_ext | |
5133 | ||
5134 | /* The mapping between symbol names and symbols. */ | |
5135 | const struct { | |
5136 | const char *name; | |
5137 | void *address; | |
5138 | } | |
5139 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5140 | { | |
5141 | { "@PROGRAM@", (void *) 0 }, | |
5142 | _LT_EOF | |
5143 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5144 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5145 | {0, (void *) 0} | |
5146 | }; | |
5147 | ||
5148 | /* This works around a problem in FreeBSD linker */ | |
5149 | #ifdef FREEBSD_WORKAROUND | |
5150 | static const void *lt_preloaded_setup() { | |
5151 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5152 | } | |
5153 | #endif | |
5154 | ||
5155 | #ifdef __cplusplus | |
5156 | } | |
5157 | #endif | |
5158 | _LT_EOF | |
5159 | # Now try linking the two files. | |
5160 | mv conftest.$ac_objext conftstm.$ac_objext | |
5161 | lt_save_LIBS="$LIBS" | |
5162 | lt_save_CFLAGS="$CFLAGS" | |
5163 | LIBS="conftstm.$ac_objext" | |
5164 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5165 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5166 | (eval $ac_link) 2>&5 | |
5167 | ac_status=$? | |
5168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5169 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5170 | pipe_works=yes | |
5171 | fi | |
5172 | LIBS="$lt_save_LIBS" | |
5173 | CFLAGS="$lt_save_CFLAGS" | |
5174 | else | |
5175 | echo "cannot find nm_test_func in $nlist" >&5 | |
5176 | fi | |
5177 | else | |
5178 | echo "cannot find nm_test_var in $nlist" >&5 | |
5179 | fi | |
5180 | else | |
5181 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5182 | fi | |
5183 | else | |
5184 | echo "$progname: failed program was:" >&5 | |
5185 | cat conftest.$ac_ext >&5 | |
5186 | fi | |
5187 | rm -rf conftest* conftst* | |
5188 | ||
5189 | # Do not use the global_symbol_pipe unless it works. | |
5190 | if test "$pipe_works" = yes; then | |
5191 | break | |
5192 | else | |
5193 | lt_cv_sys_global_symbol_pipe= | |
5194 | fi | |
5195 | done | |
5196 | ||
5197 | fi | |
5198 | ||
5199 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5200 | lt_cv_sys_global_symbol_to_cdecl= | |
5201 | fi | |
5202 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5204 | $as_echo "failed" >&6; } | |
5205 | else | |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5207 | $as_echo "ok" >&6; } | |
5208 | fi | |
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | # Check whether --enable-libtool-lock was given. | |
5233 | if test "${enable_libtool_lock+set}" = set; then : | |
5234 | enableval=$enable_libtool_lock; | |
5235 | fi | |
5236 | ||
5237 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5238 | ||
5239 | # Some flags need to be propagated to the compiler or linker for good | |
5240 | # libtool support. | |
5241 | case $host in | |
5242 | ia64-*-hpux*) | |
5243 | # Find out which ABI we are using. | |
5244 | echo 'int i;' > conftest.$ac_ext | |
5245 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5246 | (eval $ac_compile) 2>&5 | |
5247 | ac_status=$? | |
5248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5249 | test $ac_status = 0; }; then | |
5250 | case `/usr/bin/file conftest.$ac_objext` in | |
5251 | *ELF-32*) | |
5252 | HPUX_IA64_MODE="32" | |
5253 | ;; | |
5254 | *ELF-64*) | |
5255 | HPUX_IA64_MODE="64" | |
5256 | ;; | |
5257 | esac | |
5258 | fi | |
5259 | rm -rf conftest* | |
5260 | ;; | |
5261 | *-*-irix6*) | |
5262 | # Find out which ABI we are using. | |
5263 | echo '#line 5263 "configure"' > conftest.$ac_ext | |
5264 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5265 | (eval $ac_compile) 2>&5 | |
5266 | ac_status=$? | |
5267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5268 | test $ac_status = 0; }; then | |
5269 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5270 | case `/usr/bin/file conftest.$ac_objext` in | |
5271 | *32-bit*) | |
5272 | LD="${LD-ld} -melf32bsmip" | |
5273 | ;; | |
5274 | *N32*) | |
5275 | LD="${LD-ld} -melf32bmipn32" | |
5276 | ;; | |
5277 | *64-bit*) | |
5278 | LD="${LD-ld} -melf64bmip" | |
5279 | ;; | |
5280 | esac | |
5281 | else | |
5282 | case `/usr/bin/file conftest.$ac_objext` in | |
5283 | *32-bit*) | |
5284 | LD="${LD-ld} -32" | |
5285 | ;; | |
5286 | *N32*) | |
5287 | LD="${LD-ld} -n32" | |
5288 | ;; | |
5289 | *64-bit*) | |
5290 | LD="${LD-ld} -64" | |
5291 | ;; | |
5292 | esac | |
5293 | fi | |
5294 | fi | |
5295 | rm -rf conftest* | |
5296 | ;; | |
5297 | ||
5298 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5299 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5300 | # Find out which ABI we are using. | |
5301 | echo 'int i;' > conftest.$ac_ext | |
5302 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5303 | (eval $ac_compile) 2>&5 | |
5304 | ac_status=$? | |
5305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5306 | test $ac_status = 0; }; then | |
5307 | case `/usr/bin/file conftest.o` in | |
5308 | *32-bit*) | |
5309 | case $host in | |
5310 | x86_64-*kfreebsd*-gnu) | |
5311 | LD="${LD-ld} -m elf_i386_fbsd" | |
5312 | ;; | |
5313 | x86_64-*linux*) | |
5314 | LD="${LD-ld} -m elf_i386" | |
5315 | ;; | |
5316 | ppc64-*linux*|powerpc64-*linux*) | |
5317 | LD="${LD-ld} -m elf32ppclinux" | |
5318 | ;; | |
5319 | s390x-*linux*) | |
5320 | LD="${LD-ld} -m elf_s390" | |
5321 | ;; | |
5322 | sparc64-*linux*) | |
5323 | LD="${LD-ld} -m elf32_sparc" | |
5324 | ;; | |
5325 | esac | |
5326 | ;; | |
5327 | *64-bit*) | |
5328 | case $host in | |
5329 | x86_64-*kfreebsd*-gnu) | |
5330 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5331 | ;; | |
5332 | x86_64-*linux*) | |
5333 | LD="${LD-ld} -m elf_x86_64" | |
5334 | ;; | |
5335 | ppc*-*linux*|powerpc*-*linux*) | |
5336 | LD="${LD-ld} -m elf64ppc" | |
5337 | ;; | |
5338 | s390*-*linux*|s390*-*tpf*) | |
5339 | LD="${LD-ld} -m elf64_s390" | |
5340 | ;; | |
5341 | sparc*-*linux*) | |
5342 | LD="${LD-ld} -m elf64_sparc" | |
5343 | ;; | |
5344 | esac | |
5345 | ;; | |
5346 | esac | |
5347 | fi | |
5348 | rm -rf conftest* | |
5349 | ;; | |
5350 | ||
5351 | *-*-sco3.2v5*) | |
5352 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5353 | SAVE_CFLAGS="$CFLAGS" | |
5354 | CFLAGS="$CFLAGS -belf" | |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5356 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5357 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5358 | $as_echo_n "(cached) " >&6 | |
5359 | else | |
5360 | ac_ext=c | |
5361 | ac_cpp='$CPP $CPPFLAGS' | |
5362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5365 | ||
5366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5367 | /* end confdefs.h. */ | |
5368 | ||
5369 | int | |
5370 | main () | |
5371 | { | |
5372 | ||
5373 | ; | |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5377 | if ac_fn_c_try_link "$LINENO"; then : | |
5378 | lt_cv_cc_needs_belf=yes | |
5379 | else | |
5380 | lt_cv_cc_needs_belf=no | |
5381 | fi | |
5382 | rm -f core conftest.err conftest.$ac_objext \ | |
5383 | conftest$ac_exeext conftest.$ac_ext | |
5384 | ac_ext=c | |
5385 | ac_cpp='$CPP $CPPFLAGS' | |
5386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5389 | ||
5390 | fi | |
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5392 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5393 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5394 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5395 | CFLAGS="$SAVE_CFLAGS" | |
5396 | fi | |
5397 | ;; | |
5398 | sparc*-*solaris*) | |
5399 | # Find out which ABI we are using. | |
5400 | echo 'int i;' > conftest.$ac_ext | |
5401 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5402 | (eval $ac_compile) 2>&5 | |
5403 | ac_status=$? | |
5404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5405 | test $ac_status = 0; }; then | |
5406 | case `/usr/bin/file conftest.o` in | |
5407 | *64-bit*) | |
5408 | case $lt_cv_prog_gnu_ld in | |
5409 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5410 | *) | |
5411 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5412 | LD="${LD-ld} -64" | |
5413 | fi | |
5414 | ;; | |
5415 | esac | |
5416 | ;; | |
5417 | esac | |
5418 | fi | |
5419 | rm -rf conftest* | |
5420 | ;; | |
5421 | esac | |
5422 | ||
5423 | need_locks="$enable_libtool_lock" | |
5424 | ||
5425 | ||
5426 | case $host_os in | |
5427 | rhapsody* | darwin*) | |
5428 | if test -n "$ac_tool_prefix"; then | |
5429 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5430 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5432 | $as_echo_n "checking for $ac_word... " >&6; } | |
5433 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5434 | $as_echo_n "(cached) " >&6 | |
5435 | else | |
5436 | if test -n "$DSYMUTIL"; then | |
5437 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5438 | else | |
5439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5440 | for as_dir in $PATH | |
5441 | do | |
5442 | IFS=$as_save_IFS | |
5443 | test -z "$as_dir" && as_dir=. | |
5444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5446 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5448 | break 2 | |
5449 | fi | |
5450 | done | |
5451 | done | |
5452 | IFS=$as_save_IFS | |
5453 | ||
5454 | fi | |
5455 | fi | |
5456 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5457 | if test -n "$DSYMUTIL"; then | |
5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5459 | $as_echo "$DSYMUTIL" >&6; } | |
5460 | else | |
5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5462 | $as_echo "no" >&6; } | |
5463 | fi | |
5464 | ||
5465 | ||
5466 | fi | |
5467 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5468 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5469 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5470 | set dummy dsymutil; ac_word=$2 | |
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5472 | $as_echo_n "checking for $ac_word... " >&6; } | |
5473 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5474 | $as_echo_n "(cached) " >&6 | |
5475 | else | |
5476 | if test -n "$ac_ct_DSYMUTIL"; then | |
5477 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5478 | else | |
5479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5480 | for as_dir in $PATH | |
5481 | do | |
5482 | IFS=$as_save_IFS | |
5483 | test -z "$as_dir" && as_dir=. | |
5484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5486 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5488 | break 2 | |
5489 | fi | |
5490 | done | |
5491 | done | |
5492 | IFS=$as_save_IFS | |
5493 | ||
5494 | fi | |
5495 | fi | |
5496 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5497 | if test -n "$ac_ct_DSYMUTIL"; then | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5499 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5500 | else | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5502 | $as_echo "no" >&6; } | |
5503 | fi | |
5504 | ||
5505 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5506 | DSYMUTIL=":" | |
5507 | else | |
5508 | case $cross_compiling:$ac_tool_warned in | |
5509 | yes:) | |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5512 | ac_tool_warned=yes ;; | |
5513 | esac | |
5514 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5515 | fi | |
5516 | else | |
5517 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5518 | fi | |
5519 | ||
5520 | if test -n "$ac_tool_prefix"; then | |
5521 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5522 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5524 | $as_echo_n "checking for $ac_word... " >&6; } | |
5525 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5526 | $as_echo_n "(cached) " >&6 | |
5527 | else | |
5528 | if test -n "$NMEDIT"; then | |
5529 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5530 | else | |
5531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5532 | for as_dir in $PATH | |
5533 | do | |
5534 | IFS=$as_save_IFS | |
5535 | test -z "$as_dir" && as_dir=. | |
5536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5538 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5540 | break 2 | |
5541 | fi | |
5542 | done | |
5543 | done | |
5544 | IFS=$as_save_IFS | |
5545 | ||
5546 | fi | |
5547 | fi | |
5548 | NMEDIT=$ac_cv_prog_NMEDIT | |
5549 | if test -n "$NMEDIT"; then | |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5551 | $as_echo "$NMEDIT" >&6; } | |
5552 | else | |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5554 | $as_echo "no" >&6; } | |
5555 | fi | |
5556 | ||
5557 | ||
5558 | fi | |
5559 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5560 | ac_ct_NMEDIT=$NMEDIT | |
5561 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5562 | set dummy nmedit; ac_word=$2 | |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5564 | $as_echo_n "checking for $ac_word... " >&6; } | |
5565 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5566 | $as_echo_n "(cached) " >&6 | |
5567 | else | |
5568 | if test -n "$ac_ct_NMEDIT"; then | |
5569 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5570 | else | |
5571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5572 | for as_dir in $PATH | |
5573 | do | |
5574 | IFS=$as_save_IFS | |
5575 | test -z "$as_dir" && as_dir=. | |
5576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5578 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5580 | break 2 | |
5581 | fi | |
5582 | done | |
5583 | done | |
5584 | IFS=$as_save_IFS | |
5585 | ||
5586 | fi | |
5587 | fi | |
5588 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5589 | if test -n "$ac_ct_NMEDIT"; then | |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5591 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5592 | else | |
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5594 | $as_echo "no" >&6; } | |
5595 | fi | |
5596 | ||
5597 | if test "x$ac_ct_NMEDIT" = x; then | |
5598 | NMEDIT=":" | |
5599 | else | |
5600 | case $cross_compiling:$ac_tool_warned in | |
5601 | yes:) | |
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5604 | ac_tool_warned=yes ;; | |
5605 | esac | |
5606 | NMEDIT=$ac_ct_NMEDIT | |
5607 | fi | |
5608 | else | |
5609 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5610 | fi | |
5611 | ||
5612 | if test -n "$ac_tool_prefix"; then | |
5613 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5614 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5616 | $as_echo_n "checking for $ac_word... " >&6; } | |
5617 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5618 | $as_echo_n "(cached) " >&6 | |
5619 | else | |
5620 | if test -n "$LIPO"; then | |
5621 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5622 | else | |
5623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5624 | for as_dir in $PATH | |
5625 | do | |
5626 | IFS=$as_save_IFS | |
5627 | test -z "$as_dir" && as_dir=. | |
5628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5630 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5632 | break 2 | |
5633 | fi | |
5634 | done | |
5635 | done | |
5636 | IFS=$as_save_IFS | |
5637 | ||
5638 | fi | |
5639 | fi | |
5640 | LIPO=$ac_cv_prog_LIPO | |
5641 | if test -n "$LIPO"; then | |
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5643 | $as_echo "$LIPO" >&6; } | |
5644 | else | |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5646 | $as_echo "no" >&6; } | |
5647 | fi | |
5648 | ||
5649 | ||
5650 | fi | |
5651 | if test -z "$ac_cv_prog_LIPO"; then | |
5652 | ac_ct_LIPO=$LIPO | |
5653 | # Extract the first word of "lipo", so it can be a program name with args. | |
5654 | set dummy lipo; ac_word=$2 | |
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5656 | $as_echo_n "checking for $ac_word... " >&6; } | |
5657 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5658 | $as_echo_n "(cached) " >&6 | |
5659 | else | |
5660 | if test -n "$ac_ct_LIPO"; then | |
5661 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5662 | else | |
5663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5664 | for as_dir in $PATH | |
5665 | do | |
5666 | IFS=$as_save_IFS | |
5667 | test -z "$as_dir" && as_dir=. | |
5668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5670 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5672 | break 2 | |
5673 | fi | |
5674 | done | |
5675 | done | |
5676 | IFS=$as_save_IFS | |
5677 | ||
5678 | fi | |
5679 | fi | |
5680 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5681 | if test -n "$ac_ct_LIPO"; then | |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5683 | $as_echo "$ac_ct_LIPO" >&6; } | |
5684 | else | |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5686 | $as_echo "no" >&6; } | |
5687 | fi | |
5688 | ||
5689 | if test "x$ac_ct_LIPO" = x; then | |
5690 | LIPO=":" | |
5691 | else | |
5692 | case $cross_compiling:$ac_tool_warned in | |
5693 | yes:) | |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5695 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5696 | ac_tool_warned=yes ;; | |
5697 | esac | |
5698 | LIPO=$ac_ct_LIPO | |
5699 | fi | |
5700 | else | |
5701 | LIPO="$ac_cv_prog_LIPO" | |
5702 | fi | |
5703 | ||
5704 | if test -n "$ac_tool_prefix"; then | |
5705 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5706 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5708 | $as_echo_n "checking for $ac_word... " >&6; } | |
5709 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5710 | $as_echo_n "(cached) " >&6 | |
5711 | else | |
5712 | if test -n "$OTOOL"; then | |
5713 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5714 | else | |
5715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5716 | for as_dir in $PATH | |
5717 | do | |
5718 | IFS=$as_save_IFS | |
5719 | test -z "$as_dir" && as_dir=. | |
5720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5722 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5724 | break 2 | |
5725 | fi | |
5726 | done | |
5727 | done | |
5728 | IFS=$as_save_IFS | |
5729 | ||
5730 | fi | |
5731 | fi | |
5732 | OTOOL=$ac_cv_prog_OTOOL | |
5733 | if test -n "$OTOOL"; then | |
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5735 | $as_echo "$OTOOL" >&6; } | |
5736 | else | |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5738 | $as_echo "no" >&6; } | |
5739 | fi | |
5740 | ||
5741 | ||
5742 | fi | |
5743 | if test -z "$ac_cv_prog_OTOOL"; then | |
5744 | ac_ct_OTOOL=$OTOOL | |
5745 | # Extract the first word of "otool", so it can be a program name with args. | |
5746 | set dummy otool; ac_word=$2 | |
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5748 | $as_echo_n "checking for $ac_word... " >&6; } | |
5749 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5750 | $as_echo_n "(cached) " >&6 | |
5751 | else | |
5752 | if test -n "$ac_ct_OTOOL"; then | |
5753 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5754 | else | |
5755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5756 | for as_dir in $PATH | |
5757 | do | |
5758 | IFS=$as_save_IFS | |
5759 | test -z "$as_dir" && as_dir=. | |
5760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5762 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5764 | break 2 | |
5765 | fi | |
5766 | done | |
5767 | done | |
5768 | IFS=$as_save_IFS | |
5769 | ||
5770 | fi | |
5771 | fi | |
5772 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5773 | if test -n "$ac_ct_OTOOL"; then | |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5775 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5776 | else | |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5778 | $as_echo "no" >&6; } | |
5779 | fi | |
5780 | ||
5781 | if test "x$ac_ct_OTOOL" = x; then | |
5782 | OTOOL=":" | |
5783 | else | |
5784 | case $cross_compiling:$ac_tool_warned in | |
5785 | yes:) | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5788 | ac_tool_warned=yes ;; | |
5789 | esac | |
5790 | OTOOL=$ac_ct_OTOOL | |
5791 | fi | |
5792 | else | |
5793 | OTOOL="$ac_cv_prog_OTOOL" | |
5794 | fi | |
5795 | ||
5796 | if test -n "$ac_tool_prefix"; then | |
5797 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5798 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5800 | $as_echo_n "checking for $ac_word... " >&6; } | |
5801 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5802 | $as_echo_n "(cached) " >&6 | |
5803 | else | |
5804 | if test -n "$OTOOL64"; then | |
5805 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5806 | else | |
5807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5808 | for as_dir in $PATH | |
5809 | do | |
5810 | IFS=$as_save_IFS | |
5811 | test -z "$as_dir" && as_dir=. | |
5812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5814 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5816 | break 2 | |
5817 | fi | |
5818 | done | |
5819 | done | |
5820 | IFS=$as_save_IFS | |
5821 | ||
5822 | fi | |
5823 | fi | |
5824 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5825 | if test -n "$OTOOL64"; then | |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5827 | $as_echo "$OTOOL64" >&6; } | |
5828 | else | |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5830 | $as_echo "no" >&6; } | |
5831 | fi | |
5832 | ||
5833 | ||
5834 | fi | |
5835 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5836 | ac_ct_OTOOL64=$OTOOL64 | |
5837 | # Extract the first word of "otool64", so it can be a program name with args. | |
5838 | set dummy otool64; ac_word=$2 | |
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5840 | $as_echo_n "checking for $ac_word... " >&6; } | |
5841 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5842 | $as_echo_n "(cached) " >&6 | |
5843 | else | |
5844 | if test -n "$ac_ct_OTOOL64"; then | |
5845 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5846 | else | |
5847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5848 | for as_dir in $PATH | |
5849 | do | |
5850 | IFS=$as_save_IFS | |
5851 | test -z "$as_dir" && as_dir=. | |
5852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5854 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5856 | break 2 | |
5857 | fi | |
5858 | done | |
5859 | done | |
5860 | IFS=$as_save_IFS | |
5861 | ||
5862 | fi | |
5863 | fi | |
5864 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5865 | if test -n "$ac_ct_OTOOL64"; then | |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5867 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5868 | else | |
5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5870 | $as_echo "no" >&6; } | |
5871 | fi | |
5872 | ||
5873 | if test "x$ac_ct_OTOOL64" = x; then | |
5874 | OTOOL64=":" | |
5875 | else | |
5876 | case $cross_compiling:$ac_tool_warned in | |
5877 | yes:) | |
5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5879 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5880 | ac_tool_warned=yes ;; | |
5881 | esac | |
5882 | OTOOL64=$ac_ct_OTOOL64 | |
5883 | fi | |
5884 | else | |
5885 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5915 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5916 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5917 | $as_echo_n "(cached) " >&6 | |
5918 | else | |
5919 | lt_cv_apple_cc_single_mod=no | |
5920 | if test -z "${LT_MULTI_MODULE}"; then | |
5921 | # By default we will add the -single_module flag. You can override | |
5922 | # by either setting the environment variable LT_MULTI_MODULE | |
5923 | # non-empty at configure time, or by adding -multi_module to the | |
5924 | # link flags. | |
5925 | rm -rf libconftest.dylib* | |
5926 | echo "int foo(void){return 1;}" > conftest.c | |
5927 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5928 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5929 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5930 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5931 | _lt_result=$? | |
5932 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5933 | lt_cv_apple_cc_single_mod=yes | |
5934 | else | |
5935 | cat conftest.err >&5 | |
5936 | fi | |
5937 | rm -rf libconftest.dylib* | |
5938 | rm -f conftest.* | |
5939 | fi | |
5940 | fi | |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5942 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5944 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5945 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5946 | $as_echo_n "(cached) " >&6 | |
5947 | else | |
5948 | lt_cv_ld_exported_symbols_list=no | |
5949 | save_LDFLAGS=$LDFLAGS | |
5950 | echo "_main" > conftest.sym | |
5951 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5953 | /* end confdefs.h. */ | |
5954 | ||
5955 | int | |
5956 | main () | |
5957 | { | |
5958 | ||
5959 | ; | |
5960 | return 0; | |
5961 | } | |
5962 | _ACEOF | |
5963 | if ac_fn_c_try_link "$LINENO"; then : | |
5964 | lt_cv_ld_exported_symbols_list=yes | |
5965 | else | |
5966 | lt_cv_ld_exported_symbols_list=no | |
5967 | fi | |
5968 | rm -f core conftest.err conftest.$ac_objext \ | |
5969 | conftest$ac_exeext conftest.$ac_ext | |
5970 | LDFLAGS="$save_LDFLAGS" | |
5971 | ||
5972 | fi | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
5974 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
5975 | case $host_os in | |
5976 | rhapsody* | darwin1.[012]) | |
5977 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
5978 | darwin1.*) | |
5979 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5980 | darwin*) # darwin 5.x on | |
5981 | # if running on 10.5 or later, the deployment target defaults | |
5982 | # to the OS version, if on x86, and 10.4, the deployment | |
5983 | # target defaults to 10.4. Don't you love it? | |
5984 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
5985 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
5986 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5987 | 10.[012]*) | |
5988 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5989 | 10.*) | |
5990 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5991 | esac | |
5992 | ;; | |
5993 | esac | |
5994 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
5995 | _lt_dar_single_mod='$single_module' | |
5996 | fi | |
5997 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
5998 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
5999 | else | |
6000 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6001 | fi | |
6002 | if test "$DSYMUTIL" != ":"; then | |
6003 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6004 | else | |
6005 | _lt_dsymutil= | |
6006 | fi | |
6007 | ;; | |
6008 | esac | |
6009 | ||
6010 | ac_ext=c | |
6011 | ac_cpp='$CPP $CPPFLAGS' | |
6012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6016 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6017 | # On Suns, sometimes $CPP names a directory. | |
6018 | if test -n "$CPP" && test -d "$CPP"; then | |
6019 | CPP= | |
6020 | fi | |
6021 | if test -z "$CPP"; then | |
6022 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6023 | $as_echo_n "(cached) " >&6 | |
6024 | else | |
6025 | # Double quotes because CPP needs to be expanded | |
6026 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6027 | do | |
6028 | ac_preproc_ok=false | |
6029 | for ac_c_preproc_warn_flag in '' yes | |
6030 | do | |
6031 | # Use a header file that comes with gcc, so configuring glibc | |
6032 | # with a fresh cross-compiler works. | |
6033 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6034 | # <limits.h> exists even on freestanding compilers. | |
6035 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6036 | # not just through cpp. "Syntax error" is here to catch this case. | |
6037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6038 | /* end confdefs.h. */ | |
6039 | #ifdef __STDC__ | |
6040 | # include <limits.h> | |
6041 | #else | |
6042 | # include <assert.h> | |
6043 | #endif | |
6044 | Syntax error | |
6045 | _ACEOF | |
6046 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6047 | ||
6048 | else | |
6049 | # Broken: fails on valid input. | |
6050 | continue | |
6051 | fi | |
6052 | rm -f conftest.err conftest.$ac_ext | |
6053 | ||
6054 | # OK, works on sane cases. Now check whether nonexistent headers | |
6055 | # can be detected and how. | |
6056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6057 | /* end confdefs.h. */ | |
6058 | #include <ac_nonexistent.h> | |
6059 | _ACEOF | |
6060 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6061 | # Broken: success on invalid input. | |
6062 | continue | |
6063 | else | |
6064 | # Passes both tests. | |
6065 | ac_preproc_ok=: | |
6066 | break | |
6067 | fi | |
6068 | rm -f conftest.err conftest.$ac_ext | |
6069 | ||
6070 | done | |
6071 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6072 | rm -f conftest.err conftest.$ac_ext | |
6073 | if $ac_preproc_ok; then : | |
6074 | break | |
6075 | fi | |
6076 | ||
6077 | done | |
6078 | ac_cv_prog_CPP=$CPP | |
6079 | ||
6080 | fi | |
6081 | CPP=$ac_cv_prog_CPP | |
6082 | else | |
6083 | ac_cv_prog_CPP=$CPP | |
6084 | fi | |
6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6086 | $as_echo "$CPP" >&6; } | |
6087 | ac_preproc_ok=false | |
6088 | for ac_c_preproc_warn_flag in '' yes | |
6089 | do | |
6090 | # Use a header file that comes with gcc, so configuring glibc | |
6091 | # with a fresh cross-compiler works. | |
6092 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6093 | # <limits.h> exists even on freestanding compilers. | |
6094 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6095 | # not just through cpp. "Syntax error" is here to catch this case. | |
6096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6097 | /* end confdefs.h. */ | |
6098 | #ifdef __STDC__ | |
6099 | # include <limits.h> | |
6100 | #else | |
6101 | # include <assert.h> | |
6102 | #endif | |
6103 | Syntax error | |
6104 | _ACEOF | |
6105 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6106 | ||
6107 | else | |
6108 | # Broken: fails on valid input. | |
6109 | continue | |
6110 | fi | |
6111 | rm -f conftest.err conftest.$ac_ext | |
6112 | ||
6113 | # OK, works on sane cases. Now check whether nonexistent headers | |
6114 | # can be detected and how. | |
6115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6116 | /* end confdefs.h. */ | |
6117 | #include <ac_nonexistent.h> | |
6118 | _ACEOF | |
6119 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6120 | # Broken: success on invalid input. | |
6121 | continue | |
6122 | else | |
6123 | # Passes both tests. | |
6124 | ac_preproc_ok=: | |
6125 | break | |
6126 | fi | |
6127 | rm -f conftest.err conftest.$ac_ext | |
6128 | ||
6129 | done | |
6130 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6131 | rm -f conftest.err conftest.$ac_ext | |
6132 | if $ac_preproc_ok; then : | |
6133 | ||
6134 | else | |
6135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6137 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6138 | See \`config.log' for more details." "$LINENO" 5; } | |
6139 | fi | |
6140 | ||
6141 | ac_ext=c | |
6142 | ac_cpp='$CPP $CPPFLAGS' | |
6143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6146 | ||
6147 | ||
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6149 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6150 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6151 | $as_echo_n "(cached) " >&6 | |
6152 | else | |
6153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6154 | /* end confdefs.h. */ | |
6155 | #include <stdlib.h> | |
6156 | #include <stdarg.h> | |
6157 | #include <string.h> | |
6158 | #include <float.h> | |
6159 | ||
6160 | int | |
6161 | main () | |
6162 | { | |
6163 | ||
6164 | ; | |
6165 | return 0; | |
6166 | } | |
6167 | _ACEOF | |
6168 | if ac_fn_c_try_compile "$LINENO"; then : | |
6169 | ac_cv_header_stdc=yes | |
6170 | else | |
6171 | ac_cv_header_stdc=no | |
6172 | fi | |
6173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6174 | ||
6175 | if test $ac_cv_header_stdc = yes; then | |
6176 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6178 | /* end confdefs.h. */ | |
6179 | #include <string.h> | |
6180 | ||
6181 | _ACEOF | |
6182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6183 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6184 | ||
6185 | else | |
6186 | ac_cv_header_stdc=no | |
6187 | fi | |
6188 | rm -f conftest* | |
6189 | ||
6190 | fi | |
6191 | ||
6192 | if test $ac_cv_header_stdc = yes; then | |
6193 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6195 | /* end confdefs.h. */ | |
6196 | #include <stdlib.h> | |
6197 | ||
6198 | _ACEOF | |
6199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6200 | $EGREP "free" >/dev/null 2>&1; then : | |
6201 | ||
6202 | else | |
6203 | ac_cv_header_stdc=no | |
6204 | fi | |
6205 | rm -f conftest* | |
6206 | ||
6207 | fi | |
6208 | ||
6209 | if test $ac_cv_header_stdc = yes; then | |
6210 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6211 | if test "$cross_compiling" = yes; then : | |
6212 | : | |
6213 | else | |
6214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6215 | /* end confdefs.h. */ | |
6216 | #include <ctype.h> | |
6217 | #include <stdlib.h> | |
6218 | #if ((' ' & 0x0FF) == 0x020) | |
6219 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6220 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6221 | #else | |
6222 | # define ISLOWER(c) \ | |
6223 | (('a' <= (c) && (c) <= 'i') \ | |
6224 | || ('j' <= (c) && (c) <= 'r') \ | |
6225 | || ('s' <= (c) && (c) <= 'z')) | |
6226 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6227 | #endif | |
6228 | ||
6229 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6230 | int | |
6231 | main () | |
6232 | { | |
6233 | int i; | |
6234 | for (i = 0; i < 256; i++) | |
6235 | if (XOR (islower (i), ISLOWER (i)) | |
6236 | || toupper (i) != TOUPPER (i)) | |
6237 | return 2; | |
6238 | return 0; | |
6239 | } | |
6240 | _ACEOF | |
6241 | if ac_fn_c_try_run "$LINENO"; then : | |
6242 | ||
6243 | else | |
6244 | ac_cv_header_stdc=no | |
6245 | fi | |
6246 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6247 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6248 | fi | |
6249 | ||
6250 | fi | |
6251 | fi | |
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6253 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6254 | if test $ac_cv_header_stdc = yes; then | |
6255 | ||
6256 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6257 | ||
6258 | fi | |
6259 | ||
6260 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6261 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6262 | inttypes.h stdint.h unistd.h | |
6263 | do : | |
6264 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6265 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6266 | " | |
6267 | eval as_val=\$$as_ac_Header | |
6268 | if test "x$as_val" = x""yes; then : | |
6269 | cat >>confdefs.h <<_ACEOF | |
6270 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6271 | _ACEOF | |
6272 | ||
6273 | fi | |
6274 | ||
6275 | done | |
6276 | ||
6277 | ||
6278 | for ac_header in dlfcn.h | |
6279 | do : | |
6280 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6281 | " | |
6282 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6283 | cat >>confdefs.h <<_ACEOF | |
6284 | #define HAVE_DLFCN_H 1 | |
6285 | _ACEOF | |
6286 | ||
6287 | fi | |
6288 | ||
6289 | done | |
6290 | ||
6291 | ||
6292 | ||
6293 | # Set options | |
6294 | # Check whether --enable-static was given. | |
6295 | if test "${enable_static+set}" = set; then : | |
6296 | enableval=$enable_static; p=${PACKAGE-default} | |
6297 | case $enableval in | |
6298 | yes) enable_static=yes ;; | |
6299 | no) enable_static=no ;; | |
6300 | *) | |
6301 | enable_static=no | |
6302 | # Look at the argument we got. We use all the common list separators. | |
6303 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6304 | for pkg in $enableval; do | |
6305 | IFS="$lt_save_ifs" | |
6306 | if test "X$pkg" = "X$p"; then | |
6307 | enable_static=yes | |
6308 | fi | |
6309 | done | |
6310 | IFS="$lt_save_ifs" | |
6311 | ;; | |
6312 | esac | |
6313 | else | |
6314 | enable_static=no | |
6315 | fi | |
6316 | ||
6317 | ||
6318 | ||
6319 | ||
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | enable_dlopen=no | |
6327 | ||
6328 | ||
6329 | enable_win32_dll=no | |
6330 | ||
6331 | ||
6332 | # Check whether --enable-shared was given. | |
6333 | if test "${enable_shared+set}" = set; then : | |
6334 | enableval=$enable_shared; p=${PACKAGE-default} | |
6335 | case $enableval in | |
6336 | yes) enable_shared=yes ;; | |
6337 | no) enable_shared=no ;; | |
6338 | *) | |
6339 | enable_shared=no | |
6340 | # Look at the argument we got. We use all the common list separators. | |
6341 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6342 | for pkg in $enableval; do | |
6343 | IFS="$lt_save_ifs" | |
6344 | if test "X$pkg" = "X$p"; then | |
6345 | enable_shared=yes | |
6346 | fi | |
6347 | done | |
6348 | IFS="$lt_save_ifs" | |
6349 | ;; | |
6350 | esac | |
6351 | else | |
6352 | enable_shared=yes | |
6353 | fi | |
6354 | ||
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | # Check whether --with-pic was given. | |
6366 | if test "${with_pic+set}" = set; then : | |
6367 | withval=$with_pic; pic_mode="$withval" | |
6368 | else | |
6369 | pic_mode=default | |
6370 | fi | |
6371 | ||
6372 | ||
6373 | test -z "$pic_mode" && pic_mode=default | |
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
6381 | # Check whether --enable-fast-install was given. | |
6382 | if test "${enable_fast_install+set}" = set; then : | |
6383 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6384 | case $enableval in | |
6385 | yes) enable_fast_install=yes ;; | |
6386 | no) enable_fast_install=no ;; | |
6387 | *) | |
6388 | enable_fast_install=no | |
6389 | # Look at the argument we got. We use all the common list separators. | |
6390 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6391 | for pkg in $enableval; do | |
6392 | IFS="$lt_save_ifs" | |
6393 | if test "X$pkg" = "X$p"; then | |
6394 | enable_fast_install=yes | |
6395 | fi | |
6396 | done | |
6397 | IFS="$lt_save_ifs" | |
6398 | ;; | |
6399 | esac | |
6400 | else | |
6401 | enable_fast_install=yes | |
6402 | fi | |
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | # This can be used to rebuild libtool when needed | |
6415 | LIBTOOL_DEPS="$ltmain" | |
6416 | ||
6417 | # Always use our own libtool. | |
6418 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | test -z "$LN_S" && LN_S="ln -s" | |
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | if test -n "${ZSH_VERSION+set}" ; then | |
6460 | setopt NO_GLOB_SUBST | |
6461 | fi | |
6462 | ||
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6464 | $as_echo_n "checking for objdir... " >&6; } | |
6465 | if test "${lt_cv_objdir+set}" = set; then : | |
6466 | $as_echo_n "(cached) " >&6 | |
6467 | else | |
6468 | rm -f .libs 2>/dev/null | |
6469 | mkdir .libs 2>/dev/null | |
6470 | if test -d .libs; then | |
6471 | lt_cv_objdir=.libs | |
6472 | else | |
6473 | # MS-DOS does not allow filenames that begin with a dot. | |
6474 | lt_cv_objdir=_libs | |
6475 | fi | |
6476 | rmdir .libs 2>/dev/null | |
6477 | fi | |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6479 | $as_echo "$lt_cv_objdir" >&6; } | |
6480 | objdir=$lt_cv_objdir | |
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | cat >>confdefs.h <<_ACEOF | |
6487 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6488 | _ACEOF | |
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | case $host_os in | |
6507 | aix3*) | |
6508 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6509 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6510 | # vanish in a puff of smoke. | |
6511 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6512 | COLLECT_NAMES= | |
6513 | export COLLECT_NAMES | |
6514 | fi | |
6515 | ;; | |
6516 | esac | |
6517 | ||
6518 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6519 | # metacharacters that are still active within double-quoted strings. | |
6520 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6521 | ||
6522 | # Same as above, but do not quote variable references. | |
6523 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6524 | ||
6525 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6526 | # double_quote_subst'ed string. | |
6527 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6528 | ||
6529 | # Sed substitution to delay expansion of an escaped single quote. | |
6530 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6531 | ||
6532 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6533 | no_glob_subst='s/\*/\\\*/g' | |
6534 | ||
6535 | # Global variables: | |
6536 | ofile=libtool | |
6537 | can_build_shared=yes | |
6538 | ||
6539 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6540 | # which needs '.lib'). | |
6541 | libext=a | |
6542 | ||
6543 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6544 | ||
6545 | old_CC="$CC" | |
6546 | old_CFLAGS="$CFLAGS" | |
6547 | ||
6548 | # Set sane defaults for various variables | |
6549 | test -z "$CC" && CC=cc | |
6550 | test -z "$LTCC" && LTCC=$CC | |
6551 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6552 | test -z "$LD" && LD=ld | |
6553 | test -z "$ac_objext" && ac_objext=o | |
6554 | ||
6555 | for cc_temp in $compiler""; do | |
6556 | case $cc_temp in | |
6557 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6558 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6559 | \-*) ;; | |
6560 | *) break;; | |
6561 | esac | |
6562 | done | |
6563 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6564 | ||
6565 | ||
6566 | # Only perform the check for file, if the check method requires it | |
6567 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6568 | case $deplibs_check_method in | |
6569 | file_magic*) | |
6570 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6572 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6573 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6574 | $as_echo_n "(cached) " >&6 | |
6575 | else | |
6576 | case $MAGIC_CMD in | |
6577 | [\\/*] | ?:[\\/]*) | |
6578 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6579 | ;; | |
6580 | *) | |
6581 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6582 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6583 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6584 | for ac_dir in $ac_dummy; do | |
6585 | IFS="$lt_save_ifs" | |
6586 | test -z "$ac_dir" && ac_dir=. | |
6587 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6588 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6589 | if test -n "$file_magic_test_file"; then | |
6590 | case $deplibs_check_method in | |
6591 | "file_magic "*) | |
6592 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6593 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6594 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6595 | $EGREP "$file_magic_regex" > /dev/null; then | |
6596 | : | |
6597 | else | |
6598 | cat <<_LT_EOF 1>&2 | |
6599 | ||
6600 | *** Warning: the command libtool uses to detect shared libraries, | |
6601 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6602 | *** The result is that libtool may fail to recognize shared libraries | |
6603 | *** as such. This will affect the creation of libtool libraries that | |
6604 | *** depend on shared libraries, but programs linked with such libtool | |
6605 | *** libraries will work regardless of this problem. Nevertheless, you | |
6606 | *** may want to report the problem to your system manager and/or to | |
6607 | *** bug-libtool@gnu.org | |
6608 | ||
6609 | _LT_EOF | |
6610 | fi ;; | |
6611 | esac | |
6612 | fi | |
6613 | break | |
6614 | fi | |
6615 | done | |
6616 | IFS="$lt_save_ifs" | |
6617 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6618 | ;; | |
6619 | esac | |
6620 | fi | |
6621 | ||
6622 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6623 | if test -n "$MAGIC_CMD"; then | |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6625 | $as_echo "$MAGIC_CMD" >&6; } | |
6626 | else | |
6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6628 | $as_echo "no" >&6; } | |
6629 | fi | |
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6636 | if test -n "$ac_tool_prefix"; then | |
6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6638 | $as_echo_n "checking for file... " >&6; } | |
6639 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6640 | $as_echo_n "(cached) " >&6 | |
6641 | else | |
6642 | case $MAGIC_CMD in | |
6643 | [\\/*] | ?:[\\/]*) | |
6644 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6645 | ;; | |
6646 | *) | |
6647 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6648 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6649 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6650 | for ac_dir in $ac_dummy; do | |
6651 | IFS="$lt_save_ifs" | |
6652 | test -z "$ac_dir" && ac_dir=. | |
6653 | if test -f $ac_dir/file; then | |
6654 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6655 | if test -n "$file_magic_test_file"; then | |
6656 | case $deplibs_check_method in | |
6657 | "file_magic "*) | |
6658 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6659 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6660 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6661 | $EGREP "$file_magic_regex" > /dev/null; then | |
6662 | : | |
6663 | else | |
6664 | cat <<_LT_EOF 1>&2 | |
6665 | ||
6666 | *** Warning: the command libtool uses to detect shared libraries, | |
6667 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6668 | *** The result is that libtool may fail to recognize shared libraries | |
6669 | *** as such. This will affect the creation of libtool libraries that | |
6670 | *** depend on shared libraries, but programs linked with such libtool | |
6671 | *** libraries will work regardless of this problem. Nevertheless, you | |
6672 | *** may want to report the problem to your system manager and/or to | |
6673 | *** bug-libtool@gnu.org | |
6674 | ||
6675 | _LT_EOF | |
6676 | fi ;; | |
6677 | esac | |
6678 | fi | |
6679 | break | |
6680 | fi | |
6681 | done | |
6682 | IFS="$lt_save_ifs" | |
6683 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6684 | ;; | |
6685 | esac | |
6686 | fi | |
6687 | ||
6688 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6689 | if test -n "$MAGIC_CMD"; then | |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6691 | $as_echo "$MAGIC_CMD" >&6; } | |
6692 | else | |
6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6694 | $as_echo "no" >&6; } | |
6695 | fi | |
6696 | ||
6697 | ||
6698 | else | |
6699 | MAGIC_CMD=: | |
6700 | fi | |
6701 | fi | |
6702 | ||
6703 | fi | |
6704 | ;; | |
6705 | esac | |
6706 | ||
6707 | # Use C for the default configuration in the libtool script | |
6708 | ||
6709 | lt_save_CC="$CC" | |
6710 | ac_ext=c | |
6711 | ac_cpp='$CPP $CPPFLAGS' | |
6712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6715 | ||
6716 | ||
6717 | # Source file extension for C test sources. | |
6718 | ac_ext=c | |
6719 | ||
6720 | # Object file extension for compiled C test sources. | |
6721 | objext=o | |
6722 | objext=$objext | |
6723 | ||
6724 | # Code to be used in simple compile tests | |
6725 | lt_simple_compile_test_code="int some_variable = 0;" | |
6726 | ||
6727 | # Code to be used in simple link tests | |
6728 | lt_simple_link_test_code='int main(){return(0);}' | |
6729 | ||
6730 | ||
6731 | ||
6732 | ||
6733 | ||
6734 | ||
6735 | ||
6736 | # If no C compiler was specified, use CC. | |
6737 | LTCC=${LTCC-"$CC"} | |
6738 | ||
6739 | # If no C compiler flags were specified, use CFLAGS. | |
6740 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6741 | ||
6742 | # Allow CC to be a program name with arguments. | |
6743 | compiler=$CC | |
6744 | ||
6745 | # Save the default compiler, since it gets overwritten when the other | |
6746 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6747 | compiler_DEFAULT=$CC | |
6748 | ||
6749 | # save warnings/boilerplate of simple test code | |
6750 | ac_outfile=conftest.$ac_objext | |
6751 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6752 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6753 | _lt_compiler_boilerplate=`cat conftest.err` | |
6754 | $RM conftest* | |
6755 | ||
6756 | ac_outfile=conftest.$ac_objext | |
6757 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6758 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6759 | _lt_linker_boilerplate=`cat conftest.err` | |
6760 | $RM -r conftest* | |
6761 | ||
6762 | ||
6763 | if test -n "$compiler"; then | |
6764 | ||
6765 | lt_prog_compiler_no_builtin_flag= | |
6766 | ||
6767 | if test "$GCC" = yes; then | |
6768 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6769 | ||
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6771 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6772 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6773 | $as_echo_n "(cached) " >&6 | |
6774 | else | |
6775 | lt_cv_prog_compiler_rtti_exceptions=no | |
6776 | ac_outfile=conftest.$ac_objext | |
6777 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6778 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6779 | # Insert the option either (1) after the last *FLAGS variable, or | |
6780 | # (2) before a word containing "conftest.", or (3) at the end. | |
6781 | # Note that $ac_compile itself does not contain backslashes and begins | |
6782 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6783 | # The option is referenced via a variable to avoid confusing sed. | |
6784 | lt_compile=`echo "$ac_compile" | $SED \ | |
6785 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6786 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6787 | -e 's:$: $lt_compiler_flag:'` | |
6788 | (eval echo "\"\$as_me:6788: $lt_compile\"" >&5) | |
6789 | (eval "$lt_compile" 2>conftest.err) | |
6790 | ac_status=$? | |
6791 | cat conftest.err >&5 | |
6792 | echo "$as_me:6792: \$? = $ac_status" >&5 | |
6793 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
6794 | # The compiler can only warn and ignore the option if not recognized | |
6795 | # So say no if there are warnings other than the usual output. | |
6796 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6797 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6798 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6799 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6800 | fi | |
6801 | fi | |
6802 | $RM conftest* | |
6803 | ||
6804 | fi | |
6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6806 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6807 | ||
6808 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6809 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6810 | else | |
6811 | : | |
6812 | fi | |
6813 | ||
6814 | fi | |
6815 | ||
6816 | ||
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | lt_prog_compiler_wl= | |
6822 | lt_prog_compiler_pic= | |
6823 | lt_prog_compiler_static= | |
6824 | ||
6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6826 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6827 | ||
6828 | if test "$GCC" = yes; then | |
6829 | lt_prog_compiler_wl='-Wl,' | |
6830 | lt_prog_compiler_static='-static' | |
6831 | ||
6832 | case $host_os in | |
6833 | aix*) | |
6834 | # All AIX code is PIC. | |
6835 | if test "$host_cpu" = ia64; then | |
6836 | # AIX 5 now supports IA64 processor | |
6837 | lt_prog_compiler_static='-Bstatic' | |
6838 | fi | |
6839 | ;; | |
6840 | ||
6841 | amigaos*) | |
6842 | case $host_cpu in | |
6843 | powerpc) | |
6844 | # see comment about AmigaOS4 .so support | |
6845 | lt_prog_compiler_pic='-fPIC' | |
6846 | ;; | |
6847 | m68k) | |
6848 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6849 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6850 | # like `-m68040'. | |
6851 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6852 | ;; | |
6853 | esac | |
6854 | ;; | |
6855 | ||
6856 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6857 | # PIC is the default for these OSes. | |
6858 | ;; | |
6859 | ||
6860 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6861 | # This hack is so that the source file can tell whether it is being | |
6862 | # built for inclusion in a dll (and should export symbols for example). | |
6863 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6864 | # (--disable-auto-import) libraries | |
6865 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6866 | ;; | |
6867 | ||
6868 | darwin* | rhapsody*) | |
6869 | # PIC is the default on this platform | |
6870 | # Common symbols not allowed in MH_DYLIB files | |
6871 | lt_prog_compiler_pic='-fno-common' | |
6872 | ;; | |
6873 | ||
6874 | hpux*) | |
6875 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6876 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6877 | # sets the default TLS model and affects inlining. | |
6878 | case $host_cpu in | |
6879 | hppa*64*) | |
6880 | # +Z the default | |
6881 | ;; | |
6882 | *) | |
6883 | lt_prog_compiler_pic='-fPIC' | |
6884 | ;; | |
6885 | esac | |
6886 | ;; | |
6887 | ||
6888 | interix[3-9]*) | |
6889 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6890 | # Instead, we relocate shared libraries at runtime. | |
6891 | ;; | |
6892 | ||
6893 | msdosdjgpp*) | |
6894 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6895 | # on systems that don't support them. | |
6896 | lt_prog_compiler_can_build_shared=no | |
6897 | enable_shared=no | |
6898 | ;; | |
6899 | ||
6900 | *nto* | *qnx*) | |
6901 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6902 | # it will coredump. | |
6903 | lt_prog_compiler_pic='-fPIC -shared' | |
6904 | ;; | |
6905 | ||
6906 | sysv4*MP*) | |
6907 | if test -d /usr/nec; then | |
6908 | lt_prog_compiler_pic=-Kconform_pic | |
6909 | fi | |
6910 | ;; | |
6911 | ||
6912 | *) | |
6913 | lt_prog_compiler_pic='-fPIC' | |
6914 | ;; | |
6915 | esac | |
6916 | else | |
6917 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6918 | case $host_os in | |
6919 | aix*) | |
6920 | lt_prog_compiler_wl='-Wl,' | |
6921 | if test "$host_cpu" = ia64; then | |
6922 | # AIX 5 now supports IA64 processor | |
6923 | lt_prog_compiler_static='-Bstatic' | |
6924 | else | |
6925 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6926 | fi | |
6927 | ;; | |
6928 | ||
6929 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6930 | # This hack is so that the source file can tell whether it is being | |
6931 | # built for inclusion in a dll (and should export symbols for example). | |
6932 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6933 | ;; | |
6934 | ||
6935 | hpux9* | hpux10* | hpux11*) | |
6936 | lt_prog_compiler_wl='-Wl,' | |
6937 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6938 | # not for PA HP-UX. | |
6939 | case $host_cpu in | |
6940 | hppa*64*|ia64*) | |
6941 | # +Z the default | |
6942 | ;; | |
6943 | *) | |
6944 | lt_prog_compiler_pic='+Z' | |
6945 | ;; | |
6946 | esac | |
6947 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6948 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6949 | ;; | |
6950 | ||
6951 | irix5* | irix6* | nonstopux*) | |
6952 | lt_prog_compiler_wl='-Wl,' | |
6953 | # PIC (with -KPIC) is the default. | |
6954 | lt_prog_compiler_static='-non_shared' | |
6955 | ;; | |
6956 | ||
6957 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6958 | case $cc_basename in | |
6959 | # old Intel for x86_64 which still supported -KPIC. | |
6960 | ecc*) | |
6961 | lt_prog_compiler_wl='-Wl,' | |
6962 | lt_prog_compiler_pic='-KPIC' | |
6963 | lt_prog_compiler_static='-static' | |
6964 | ;; | |
6965 | # icc used to be incompatible with GCC. | |
6966 | # ICC 10 doesn't accept -KPIC any more. | |
6967 | icc* | ifort*) | |
6968 | lt_prog_compiler_wl='-Wl,' | |
6969 | lt_prog_compiler_pic='-fPIC' | |
6970 | lt_prog_compiler_static='-static' | |
6971 | ;; | |
6972 | # Lahey Fortran 8.1. | |
6973 | lf95*) | |
6974 | lt_prog_compiler_wl='-Wl,' | |
6975 | lt_prog_compiler_pic='--shared' | |
6976 | lt_prog_compiler_static='--static' | |
6977 | ;; | |
6978 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6979 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6980 | # which looks to be a dead project) | |
6981 | lt_prog_compiler_wl='-Wl,' | |
6982 | lt_prog_compiler_pic='-fpic' | |
6983 | lt_prog_compiler_static='-Bstatic' | |
6984 | ;; | |
6985 | ccc*) | |
6986 | lt_prog_compiler_wl='-Wl,' | |
6987 | # All Alpha code is PIC. | |
6988 | lt_prog_compiler_static='-non_shared' | |
6989 | ;; | |
6990 | xl*) | |
6991 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
6992 | lt_prog_compiler_wl='-Wl,' | |
6993 | lt_prog_compiler_pic='-qpic' | |
6994 | lt_prog_compiler_static='-qstaticlink' | |
6995 | ;; | |
6996 | *) | |
6997 | case `$CC -V 2>&1 | sed 5q` in | |
6998 | *Sun\ C*) | |
6999 | # Sun C 5.9 | |
7000 | lt_prog_compiler_pic='-KPIC' | |
7001 | lt_prog_compiler_static='-Bstatic' | |
7002 | lt_prog_compiler_wl='-Wl,' | |
7003 | ;; | |
7004 | *Sun\ F*) | |
7005 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7006 | lt_prog_compiler_pic='-KPIC' | |
7007 | lt_prog_compiler_static='-Bstatic' | |
7008 | lt_prog_compiler_wl='' | |
7009 | ;; | |
7010 | esac | |
7011 | ;; | |
7012 | esac | |
7013 | ;; | |
7014 | ||
7015 | newsos6) | |
7016 | lt_prog_compiler_pic='-KPIC' | |
7017 | lt_prog_compiler_static='-Bstatic' | |
7018 | ;; | |
7019 | ||
7020 | *nto* | *qnx*) | |
7021 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7022 | # it will coredump. | |
7023 | lt_prog_compiler_pic='-fPIC -shared' | |
7024 | ;; | |
7025 | ||
7026 | osf3* | osf4* | osf5*) | |
7027 | lt_prog_compiler_wl='-Wl,' | |
7028 | # All OSF/1 code is PIC. | |
7029 | lt_prog_compiler_static='-non_shared' | |
7030 | ;; | |
7031 | ||
7032 | rdos*) | |
7033 | lt_prog_compiler_static='-non_shared' | |
7034 | ;; | |
7035 | ||
7036 | solaris*) | |
7037 | lt_prog_compiler_pic='-KPIC' | |
7038 | lt_prog_compiler_static='-Bstatic' | |
7039 | case $cc_basename in | |
7040 | f77* | f90* | f95*) | |
7041 | lt_prog_compiler_wl='-Qoption ld ';; | |
7042 | *) | |
7043 | lt_prog_compiler_wl='-Wl,';; | |
7044 | esac | |
7045 | ;; | |
7046 | ||
7047 | sunos4*) | |
7048 | lt_prog_compiler_wl='-Qoption ld ' | |
7049 | lt_prog_compiler_pic='-PIC' | |
7050 | lt_prog_compiler_static='-Bstatic' | |
7051 | ;; | |
7052 | ||
7053 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7054 | lt_prog_compiler_wl='-Wl,' | |
7055 | lt_prog_compiler_pic='-KPIC' | |
7056 | lt_prog_compiler_static='-Bstatic' | |
7057 | ;; | |
7058 | ||
7059 | sysv4*MP*) | |
7060 | if test -d /usr/nec ;then | |
7061 | lt_prog_compiler_pic='-Kconform_pic' | |
7062 | lt_prog_compiler_static='-Bstatic' | |
7063 | fi | |
7064 | ;; | |
7065 | ||
7066 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7067 | lt_prog_compiler_wl='-Wl,' | |
7068 | lt_prog_compiler_pic='-KPIC' | |
7069 | lt_prog_compiler_static='-Bstatic' | |
7070 | ;; | |
7071 | ||
7072 | unicos*) | |
7073 | lt_prog_compiler_wl='-Wl,' | |
7074 | lt_prog_compiler_can_build_shared=no | |
7075 | ;; | |
7076 | ||
7077 | uts4*) | |
7078 | lt_prog_compiler_pic='-pic' | |
7079 | lt_prog_compiler_static='-Bstatic' | |
7080 | ;; | |
7081 | ||
7082 | *) | |
7083 | lt_prog_compiler_can_build_shared=no | |
7084 | ;; | |
7085 | esac | |
7086 | fi | |
7087 | ||
7088 | case $host_os in | |
7089 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7090 | *djgpp*) | |
7091 | lt_prog_compiler_pic= | |
7092 | ;; | |
7093 | *) | |
7094 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7095 | ;; | |
7096 | esac | |
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7098 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | ||
7105 | # | |
7106 | # Check to make sure the PIC flag actually works. | |
7107 | # | |
7108 | if test -n "$lt_prog_compiler_pic"; then | |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7110 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7111 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7112 | $as_echo_n "(cached) " >&6 | |
7113 | else | |
7114 | lt_cv_prog_compiler_pic_works=no | |
7115 | ac_outfile=conftest.$ac_objext | |
7116 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7117 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7118 | # Insert the option either (1) after the last *FLAGS variable, or | |
7119 | # (2) before a word containing "conftest.", or (3) at the end. | |
7120 | # Note that $ac_compile itself does not contain backslashes and begins | |
7121 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7122 | # The option is referenced via a variable to avoid confusing sed. | |
7123 | lt_compile=`echo "$ac_compile" | $SED \ | |
7124 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7125 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7126 | -e 's:$: $lt_compiler_flag:'` | |
7127 | (eval echo "\"\$as_me:7127: $lt_compile\"" >&5) | |
7128 | (eval "$lt_compile" 2>conftest.err) | |
7129 | ac_status=$? | |
7130 | cat conftest.err >&5 | |
7131 | echo "$as_me:7131: \$? = $ac_status" >&5 | |
7132 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7133 | # The compiler can only warn and ignore the option if not recognized | |
7134 | # So say no if there are warnings other than the usual output. | |
7135 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7136 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7137 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7138 | lt_cv_prog_compiler_pic_works=yes | |
7139 | fi | |
7140 | fi | |
7141 | $RM conftest* | |
7142 | ||
7143 | fi | |
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7145 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7146 | ||
7147 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7148 | case $lt_prog_compiler_pic in | |
7149 | "" | " "*) ;; | |
7150 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7151 | esac | |
7152 | else | |
7153 | lt_prog_compiler_pic= | |
7154 | lt_prog_compiler_can_build_shared=no | |
7155 | fi | |
7156 | ||
7157 | fi | |
7158 | ||
7159 | ||
7160 | ||
7161 | ||
7162 | ||
7163 | ||
7164 | # | |
7165 | # Check to make sure the static flag actually works. | |
7166 | # | |
7167 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7169 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7170 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7171 | $as_echo_n "(cached) " >&6 | |
7172 | else | |
7173 | lt_cv_prog_compiler_static_works=no | |
7174 | save_LDFLAGS="$LDFLAGS" | |
7175 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7176 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7177 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7178 | # The linker can only warn and ignore the option if not recognized | |
7179 | # So say no if there are warnings | |
7180 | if test -s conftest.err; then | |
7181 | # Append any errors to the config.log. | |
7182 | cat conftest.err 1>&5 | |
7183 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7184 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7185 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7186 | lt_cv_prog_compiler_static_works=yes | |
7187 | fi | |
7188 | else | |
7189 | lt_cv_prog_compiler_static_works=yes | |
7190 | fi | |
7191 | fi | |
7192 | $RM -r conftest* | |
7193 | LDFLAGS="$save_LDFLAGS" | |
7194 | ||
7195 | fi | |
7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7197 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7198 | ||
7199 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7200 | : | |
7201 | else | |
7202 | lt_prog_compiler_static= | |
7203 | fi | |
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7212 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7213 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7214 | $as_echo_n "(cached) " >&6 | |
7215 | else | |
7216 | lt_cv_prog_compiler_c_o=no | |
7217 | $RM -r conftest 2>/dev/null | |
7218 | mkdir conftest | |
7219 | cd conftest | |
7220 | mkdir out | |
7221 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7222 | ||
7223 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7224 | # Insert the option either (1) after the last *FLAGS variable, or | |
7225 | # (2) before a word containing "conftest.", or (3) at the end. | |
7226 | # Note that $ac_compile itself does not contain backslashes and begins | |
7227 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7228 | lt_compile=`echo "$ac_compile" | $SED \ | |
7229 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7230 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7231 | -e 's:$: $lt_compiler_flag:'` | |
7232 | (eval echo "\"\$as_me:7232: $lt_compile\"" >&5) | |
7233 | (eval "$lt_compile" 2>out/conftest.err) | |
7234 | ac_status=$? | |
7235 | cat out/conftest.err >&5 | |
7236 | echo "$as_me:7236: \$? = $ac_status" >&5 | |
7237 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7238 | then | |
7239 | # The compiler can only warn and ignore the option if not recognized | |
7240 | # So say no if there are warnings | |
7241 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7242 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7243 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7244 | lt_cv_prog_compiler_c_o=yes | |
7245 | fi | |
7246 | fi | |
7247 | chmod u+w . 2>&5 | |
7248 | $RM conftest* | |
7249 | # SGI C++ compiler will create directory out/ii_files/ for | |
7250 | # template instantiation | |
7251 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7252 | $RM out/* && rmdir out | |
7253 | cd .. | |
7254 | $RM -r conftest | |
7255 | $RM conftest* | |
7256 | ||
7257 | fi | |
7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7259 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7260 | ||
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | ||
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7267 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7268 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7269 | $as_echo_n "(cached) " >&6 | |
7270 | else | |
7271 | lt_cv_prog_compiler_c_o=no | |
7272 | $RM -r conftest 2>/dev/null | |
7273 | mkdir conftest | |
7274 | cd conftest | |
7275 | mkdir out | |
7276 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7277 | ||
7278 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7279 | # Insert the option either (1) after the last *FLAGS variable, or | |
7280 | # (2) before a word containing "conftest.", or (3) at the end. | |
7281 | # Note that $ac_compile itself does not contain backslashes and begins | |
7282 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7283 | lt_compile=`echo "$ac_compile" | $SED \ | |
7284 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7285 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7286 | -e 's:$: $lt_compiler_flag:'` | |
7287 | (eval echo "\"\$as_me:7287: $lt_compile\"" >&5) | |
7288 | (eval "$lt_compile" 2>out/conftest.err) | |
7289 | ac_status=$? | |
7290 | cat out/conftest.err >&5 | |
7291 | echo "$as_me:7291: \$? = $ac_status" >&5 | |
7292 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7293 | then | |
7294 | # The compiler can only warn and ignore the option if not recognized | |
7295 | # So say no if there are warnings | |
7296 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7297 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7298 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7299 | lt_cv_prog_compiler_c_o=yes | |
7300 | fi | |
7301 | fi | |
7302 | chmod u+w . 2>&5 | |
7303 | $RM conftest* | |
7304 | # SGI C++ compiler will create directory out/ii_files/ for | |
7305 | # template instantiation | |
7306 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7307 | $RM out/* && rmdir out | |
7308 | cd .. | |
7309 | $RM -r conftest | |
7310 | $RM conftest* | |
7311 | ||
7312 | fi | |
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7314 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7315 | ||
7316 | ||
7317 | ||
7318 | ||
7319 | hard_links="nottested" | |
7320 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7321 | # do not overwrite the value of need_locks provided by the user | |
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7323 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7324 | hard_links=yes | |
7325 | $RM conftest* | |
7326 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7327 | touch conftest.a | |
7328 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7329 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7331 | $as_echo "$hard_links" >&6; } | |
7332 | if test "$hard_links" = no; then | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7334 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7335 | need_locks=warn | |
7336 | fi | |
7337 | else | |
7338 | need_locks=no | |
7339 | fi | |
7340 | ||
7341 | ||
7342 | ||
7343 | ||
7344 | ||
7345 | ||
7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7347 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7348 | ||
7349 | runpath_var= | |
7350 | allow_undefined_flag= | |
7351 | always_export_symbols=no | |
7352 | archive_cmds= | |
7353 | archive_expsym_cmds= | |
7354 | compiler_needs_object=no | |
7355 | enable_shared_with_static_runtimes=no | |
7356 | export_dynamic_flag_spec= | |
7357 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7358 | hardcode_automatic=no | |
7359 | hardcode_direct=no | |
7360 | hardcode_direct_absolute=no | |
7361 | hardcode_libdir_flag_spec= | |
7362 | hardcode_libdir_flag_spec_ld= | |
7363 | hardcode_libdir_separator= | |
7364 | hardcode_minus_L=no | |
7365 | hardcode_shlibpath_var=unsupported | |
7366 | inherit_rpath=no | |
7367 | link_all_deplibs=unknown | |
7368 | module_cmds= | |
7369 | module_expsym_cmds= | |
7370 | old_archive_from_new_cmds= | |
7371 | old_archive_from_expsyms_cmds= | |
7372 | thread_safe_flag_spec= | |
7373 | whole_archive_flag_spec= | |
7374 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7375 | # included in the symbol list | |
7376 | include_expsyms= | |
7377 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7378 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7379 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7380 | # as well as any symbol that contains `d'. | |
7381 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7382 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7383 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7384 | # the symbol is explicitly referenced. Since portable code cannot | |
7385 | # rely on this symbol name, it's probably fine to never include it in | |
7386 | # preloaded symbol tables. | |
7387 | # Exclude shared library initialization/finalization symbols. | |
7388 | extract_expsyms_cmds= | |
7389 | ||
7390 | case $host_os in | |
7391 | cygwin* | mingw* | pw32* | cegcc*) | |
7392 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7393 | # When not using gcc, we currently assume that we are using | |
7394 | # Microsoft Visual C++. | |
7395 | if test "$GCC" != yes; then | |
7396 | with_gnu_ld=no | |
7397 | fi | |
7398 | ;; | |
7399 | interix*) | |
7400 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7401 | with_gnu_ld=yes | |
7402 | ;; | |
7403 | openbsd*) | |
7404 | with_gnu_ld=no | |
7405 | ;; | |
7406 | linux* | k*bsd*-gnu) | |
7407 | link_all_deplibs=no | |
7408 | ;; | |
7409 | esac | |
7410 | ||
7411 | ld_shlibs=yes | |
7412 | if test "$with_gnu_ld" = yes; then | |
7413 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7414 | wlarc='${wl}' | |
7415 | ||
7416 | # Set some defaults for GNU ld with shared library support. These | |
7417 | # are reset later if shared libraries are not supported. Putting them | |
7418 | # here allows them to be overridden if necessary. | |
7419 | runpath_var=LD_RUN_PATH | |
7420 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7421 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7422 | # ancient GNU ld didn't support --whole-archive et. al. | |
7423 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7424 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7425 | else | |
7426 | whole_archive_flag_spec= | |
7427 | fi | |
7428 | supports_anon_versioning=no | |
7429 | case `$LD -v 2>&1` in | |
7430 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
7431 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7432 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7433 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7434 | *\ 2.11.*) ;; # other 2.11 versions | |
7435 | *) supports_anon_versioning=yes ;; | |
7436 | esac | |
7437 | ||
7438 | # See if GNU ld supports shared libraries. | |
7439 | case $host_os in | |
7440 | aix[3-9]*) | |
7441 | # On AIX/PPC, the GNU linker is very broken | |
7442 | if test "$host_cpu" != ia64; then | |
7443 | ld_shlibs=no | |
7444 | cat <<_LT_EOF 1>&2 | |
7445 | ||
7446 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7447 | *** to be unable to reliably create shared libraries on AIX. | |
7448 | *** Therefore, libtool is disabling shared libraries support. If you | |
7449 | *** really care for shared libraries, you may want to modify your PATH | |
7450 | *** so that a non-GNU linker is found, and then restart. | |
7451 | ||
7452 | _LT_EOF | |
7453 | fi | |
7454 | ;; | |
7455 | ||
7456 | amigaos*) | |
7457 | case $host_cpu in | |
7458 | powerpc) | |
7459 | # see comment about AmigaOS4 .so support | |
7460 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7461 | archive_expsym_cmds='' | |
7462 | ;; | |
7463 | m68k) | |
7464 | 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)' | |
7465 | hardcode_libdir_flag_spec='-L$libdir' | |
7466 | hardcode_minus_L=yes | |
7467 | ;; | |
7468 | esac | |
7469 | ;; | |
7470 | ||
7471 | beos*) | |
7472 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7473 | allow_undefined_flag=unsupported | |
7474 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7475 | # support --undefined. This deserves some investigation. FIXME | |
7476 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7477 | else | |
7478 | ld_shlibs=no | |
7479 | fi | |
7480 | ;; | |
7481 | ||
7482 | cygwin* | mingw* | pw32* | cegcc*) | |
7483 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7484 | # as there is no search path for DLLs. | |
7485 | hardcode_libdir_flag_spec='-L$libdir' | |
7486 | allow_undefined_flag=unsupported | |
7487 | always_export_symbols=no | |
7488 | enable_shared_with_static_runtimes=yes | |
7489 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7490 | ||
7491 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7492 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7493 | # If the export-symbols file already is a .def file (1st line | |
7494 | # is EXPORTS), use it as is; otherwise, prepend... | |
7495 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7496 | cp $export_symbols $output_objdir/$soname.def; | |
7497 | else | |
7498 | echo EXPORTS > $output_objdir/$soname.def; | |
7499 | cat $export_symbols >> $output_objdir/$soname.def; | |
7500 | fi~ | |
7501 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7502 | else | |
7503 | ld_shlibs=no | |
7504 | fi | |
7505 | ;; | |
7506 | ||
7507 | interix[3-9]*) | |
7508 | hardcode_direct=no | |
7509 | hardcode_shlibpath_var=no | |
7510 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7511 | export_dynamic_flag_spec='${wl}-E' | |
7512 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7513 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7514 | # default) and relocated if they conflict, which is a slow very memory | |
7515 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7516 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7517 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7518 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7519 | 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' | |
7520 | ;; | |
7521 | ||
7522 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
7523 | tmp_diet=no | |
7524 | if test "$host_os" = linux-dietlibc; then | |
7525 | case $cc_basename in | |
7526 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7527 | esac | |
7528 | fi | |
7529 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7530 | && test "$tmp_diet" = no | |
7531 | then | |
7532 | tmp_addflag= | |
7533 | tmp_sharedflag='-shared' | |
7534 | case $cc_basename,$host_cpu in | |
7535 | pgcc*) # Portland Group C compiler | |
7536 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7537 | tmp_addflag=' $pic_flag' | |
7538 | ;; | |
7539 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7540 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7541 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7542 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7543 | tmp_addflag=' -i_dynamic' ;; | |
7544 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7545 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7546 | ifc* | ifort*) # Intel Fortran compiler | |
7547 | tmp_addflag=' -nofor_main' ;; | |
7548 | lf95*) # Lahey Fortran 8.1 | |
7549 | whole_archive_flag_spec= | |
7550 | tmp_sharedflag='--shared' ;; | |
7551 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7552 | tmp_sharedflag='-qmkshrobj' | |
7553 | tmp_addflag= ;; | |
7554 | esac | |
7555 | case `$CC -V 2>&1 | sed 5q` in | |
7556 | *Sun\ C*) # Sun C 5.9 | |
7557 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7558 | compiler_needs_object=yes | |
7559 | tmp_sharedflag='-G' ;; | |
7560 | *Sun\ F*) # Sun Fortran 8.3 | |
7561 | tmp_sharedflag='-G' ;; | |
7562 | esac | |
7563 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7564 | ||
7565 | if test "x$supports_anon_versioning" = xyes; then | |
7566 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7567 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7568 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7569 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7570 | fi | |
7571 | ||
7572 | case $cc_basename in | |
7573 | xlf*) | |
7574 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7575 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7576 | hardcode_libdir_flag_spec= | |
7577 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7578 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7579 | if test "x$supports_anon_versioning" = xyes; then | |
7580 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7581 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7582 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7583 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7584 | fi | |
7585 | ;; | |
7586 | esac | |
7587 | else | |
7588 | ld_shlibs=no | |
7589 | fi | |
7590 | ;; | |
7591 | ||
7592 | netbsd* | netbsdelf*-gnu) | |
7593 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7594 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7595 | wlarc= | |
7596 | else | |
7597 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7598 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7599 | fi | |
7600 | ;; | |
7601 | ||
7602 | solaris*) | |
7603 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7604 | ld_shlibs=no | |
7605 | cat <<_LT_EOF 1>&2 | |
7606 | ||
7607 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7608 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7609 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7610 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7611 | *** your PATH or compiler configuration so that the native linker is | |
7612 | *** used, and then restart. | |
7613 | ||
7614 | _LT_EOF | |
7615 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7616 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7617 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7618 | else | |
7619 | ld_shlibs=no | |
7620 | fi | |
7621 | ;; | |
7622 | ||
7623 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7624 | case `$LD -v 2>&1` in | |
7625 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7626 | ld_shlibs=no | |
7627 | cat <<_LT_EOF 1>&2 | |
7628 | ||
7629 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7630 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7631 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7632 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7633 | *** your PATH or compiler configuration so that the native linker is | |
7634 | *** used, and then restart. | |
7635 | ||
7636 | _LT_EOF | |
7637 | ;; | |
7638 | *) | |
7639 | # For security reasons, it is highly recommended that you always | |
7640 | # use absolute paths for naming shared libraries, and exclude the | |
7641 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7642 | # requires that you compile everything twice, which is a pain. | |
7643 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7644 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7645 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7646 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7647 | else | |
7648 | ld_shlibs=no | |
7649 | fi | |
7650 | ;; | |
7651 | esac | |
7652 | ;; | |
7653 | ||
7654 | sunos4*) | |
7655 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7656 | wlarc= | |
7657 | hardcode_direct=yes | |
7658 | hardcode_shlibpath_var=no | |
7659 | ;; | |
7660 | ||
7661 | *) | |
7662 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7663 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7664 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7665 | else | |
7666 | ld_shlibs=no | |
7667 | fi | |
7668 | ;; | |
7669 | esac | |
7670 | ||
7671 | if test "$ld_shlibs" = no; then | |
7672 | runpath_var= | |
7673 | hardcode_libdir_flag_spec= | |
7674 | export_dynamic_flag_spec= | |
7675 | whole_archive_flag_spec= | |
7676 | fi | |
7677 | else | |
7678 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7679 | case $host_os in | |
7680 | aix3*) | |
7681 | allow_undefined_flag=unsupported | |
7682 | always_export_symbols=yes | |
7683 | 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' | |
7684 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7685 | # are no directories specified by -L. | |
7686 | hardcode_minus_L=yes | |
7687 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7688 | # Neither direct hardcoding nor static linking is supported with a | |
7689 | # broken collect2. | |
7690 | hardcode_direct=unsupported | |
7691 | fi | |
7692 | ;; | |
7693 | ||
7694 | aix[4-9]*) | |
7695 | if test "$host_cpu" = ia64; then | |
7696 | # On IA64, the linker does run time linking by default, so we don't | |
7697 | # have to do anything special. | |
7698 | aix_use_runtimelinking=no | |
7699 | exp_sym_flag='-Bexport' | |
7700 | no_entry_flag="" | |
7701 | else | |
7702 | # If we're using GNU nm, then we don't want the "-C" option. | |
7703 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7704 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7705 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7706 | else | |
7707 | 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' | |
7708 | fi | |
7709 | aix_use_runtimelinking=no | |
7710 | ||
7711 | # Test if we are trying to use run time linking or normal | |
7712 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7713 | # need to do runtime linking. | |
7714 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7715 | for ld_flag in $LDFLAGS; do | |
7716 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7717 | aix_use_runtimelinking=yes | |
7718 | break | |
7719 | fi | |
7720 | done | |
7721 | ;; | |
7722 | esac | |
7723 | ||
7724 | exp_sym_flag='-bexport' | |
7725 | no_entry_flag='-bnoentry' | |
7726 | fi | |
7727 | ||
7728 | # When large executables or shared objects are built, AIX ld can | |
7729 | # have problems creating the table of contents. If linking a library | |
7730 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7731 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7732 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7733 | ||
7734 | archive_cmds='' | |
7735 | hardcode_direct=yes | |
7736 | hardcode_direct_absolute=yes | |
7737 | hardcode_libdir_separator=':' | |
7738 | link_all_deplibs=yes | |
7739 | file_list_spec='${wl}-f,' | |
7740 | ||
7741 | if test "$GCC" = yes; then | |
7742 | case $host_os in aix4.[012]|aix4.[012].*) | |
7743 | # We only want to do this on AIX 4.2 and lower, the check | |
7744 | # below for broken collect2 doesn't work under 4.3+ | |
7745 | collect2name=`${CC} -print-prog-name=collect2` | |
7746 | if test -f "$collect2name" && | |
7747 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7748 | then | |
7749 | # We have reworked collect2 | |
7750 | : | |
7751 | else | |
7752 | # We have old collect2 | |
7753 | hardcode_direct=unsupported | |
7754 | # It fails to find uninstalled libraries when the uninstalled | |
7755 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7756 | # to unsupported forces relinking | |
7757 | hardcode_minus_L=yes | |
7758 | hardcode_libdir_flag_spec='-L$libdir' | |
7759 | hardcode_libdir_separator= | |
7760 | fi | |
7761 | ;; | |
7762 | esac | |
7763 | shared_flag='-shared' | |
7764 | if test "$aix_use_runtimelinking" = yes; then | |
7765 | shared_flag="$shared_flag "'${wl}-G' | |
7766 | fi | |
7767 | link_all_deplibs=no | |
7768 | else | |
7769 | # not using gcc | |
7770 | if test "$host_cpu" = ia64; then | |
7771 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7772 | # chokes on -Wl,-G. The following line is correct: | |
7773 | shared_flag='-G' | |
7774 | else | |
7775 | if test "$aix_use_runtimelinking" = yes; then | |
7776 | shared_flag='${wl}-G' | |
7777 | else | |
7778 | shared_flag='${wl}-bM:SRE' | |
7779 | fi | |
7780 | fi | |
7781 | fi | |
7782 | ||
7783 | export_dynamic_flag_spec='${wl}-bexpall' | |
7784 | # It seems that -bexpall does not export symbols beginning with | |
7785 | # underscore (_), so it is better to generate a list of symbols to export. | |
7786 | always_export_symbols=yes | |
7787 | if test "$aix_use_runtimelinking" = yes; then | |
7788 | # Warning - without using the other runtime loading flags (-brtl), | |
7789 | # -berok will link without error, but may produce a broken library. | |
7790 | allow_undefined_flag='-berok' | |
7791 | # Determine the default libpath from the value encoded in an | |
7792 | # empty executable. | |
7793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7794 | /* end confdefs.h. */ | |
7795 | ||
7796 | int | |
7797 | main () | |
7798 | { | |
7799 | ||
7800 | ; | |
7801 | return 0; | |
7802 | } | |
7803 | _ACEOF | |
7804 | if ac_fn_c_try_link "$LINENO"; then : | |
7805 | ||
7806 | lt_aix_libpath_sed=' | |
7807 | /Import File Strings/,/^$/ { | |
7808 | /^0/ { | |
7809 | s/^0 *\(.*\)$/\1/ | |
7810 | p | |
7811 | } | |
7812 | }' | |
7813 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7814 | # Check for a 64-bit object if we didn't find anything. | |
7815 | if test -z "$aix_libpath"; then | |
7816 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7817 | fi | |
7818 | fi | |
7819 | rm -f core conftest.err conftest.$ac_objext \ | |
7820 | conftest$ac_exeext conftest.$ac_ext | |
7821 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7822 | ||
7823 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7824 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7825 | else | |
7826 | if test "$host_cpu" = ia64; then | |
7827 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7828 | allow_undefined_flag="-z nodefs" | |
7829 | 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" | |
7830 | else | |
7831 | # Determine the default libpath from the value encoded in an | |
7832 | # empty executable. | |
7833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7834 | /* end confdefs.h. */ | |
7835 | ||
7836 | int | |
7837 | main () | |
7838 | { | |
7839 | ||
7840 | ; | |
7841 | return 0; | |
7842 | } | |
7843 | _ACEOF | |
7844 | if ac_fn_c_try_link "$LINENO"; then : | |
7845 | ||
7846 | lt_aix_libpath_sed=' | |
7847 | /Import File Strings/,/^$/ { | |
7848 | /^0/ { | |
7849 | s/^0 *\(.*\)$/\1/ | |
7850 | p | |
7851 | } | |
7852 | }' | |
7853 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7854 | # Check for a 64-bit object if we didn't find anything. | |
7855 | if test -z "$aix_libpath"; then | |
7856 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7857 | fi | |
7858 | fi | |
7859 | rm -f core conftest.err conftest.$ac_objext \ | |
7860 | conftest$ac_exeext conftest.$ac_ext | |
7861 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7862 | ||
7863 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7864 | # Warning - without using the other run time loading flags, | |
7865 | # -berok will link without error, but may produce a broken library. | |
7866 | no_undefined_flag=' ${wl}-bernotok' | |
7867 | allow_undefined_flag=' ${wl}-berok' | |
7868 | # Exported symbols can be pulled into shared objects from archives | |
7869 | whole_archive_flag_spec='$convenience' | |
7870 | archive_cmds_need_lc=yes | |
7871 | # This is similar to how AIX traditionally builds its shared libraries. | |
7872 | 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' | |
7873 | fi | |
7874 | fi | |
7875 | ;; | |
7876 | ||
7877 | amigaos*) | |
7878 | case $host_cpu in | |
7879 | powerpc) | |
7880 | # see comment about AmigaOS4 .so support | |
7881 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7882 | archive_expsym_cmds='' | |
7883 | ;; | |
7884 | m68k) | |
7885 | 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)' | |
7886 | hardcode_libdir_flag_spec='-L$libdir' | |
7887 | hardcode_minus_L=yes | |
7888 | ;; | |
7889 | esac | |
7890 | ;; | |
7891 | ||
7892 | bsdi[45]*) | |
7893 | export_dynamic_flag_spec=-rdynamic | |
7894 | ;; | |
7895 | ||
7896 | cygwin* | mingw* | pw32* | cegcc*) | |
7897 | # When not using gcc, we currently assume that we are using | |
7898 | # Microsoft Visual C++. | |
7899 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7900 | # no search path for DLLs. | |
7901 | hardcode_libdir_flag_spec=' ' | |
7902 | allow_undefined_flag=unsupported | |
7903 | # Tell ltmain to make .lib files, not .a files. | |
7904 | libext=lib | |
7905 | # Tell ltmain to make .dll files, not .so files. | |
7906 | shrext_cmds=".dll" | |
7907 | # FIXME: Setting linknames here is a bad hack. | |
7908 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7909 | # The linker will automatically build a .lib file if we build a DLL. | |
7910 | old_archive_from_new_cmds='true' | |
7911 | # FIXME: Should let the user specify the lib program. | |
7912 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7913 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7914 | enable_shared_with_static_runtimes=yes | |
7915 | ;; | |
7916 | ||
7917 | darwin* | rhapsody*) | |
7918 | ||
7919 | ||
7920 | archive_cmds_need_lc=no | |
7921 | hardcode_direct=no | |
7922 | hardcode_automatic=yes | |
7923 | hardcode_shlibpath_var=unsupported | |
7924 | whole_archive_flag_spec='' | |
7925 | link_all_deplibs=yes | |
7926 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7927 | case $cc_basename in | |
7928 | ifort*) _lt_dar_can_shared=yes ;; | |
7929 | *) _lt_dar_can_shared=$GCC ;; | |
7930 | esac | |
7931 | if test "$_lt_dar_can_shared" = "yes"; then | |
7932 | output_verbose_link_cmd=echo | |
7933 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7934 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7935 | 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}" | |
7936 | 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}" | |
7937 | ||
7938 | else | |
7939 | ld_shlibs=no | |
7940 | fi | |
7941 | ||
7942 | ;; | |
7943 | ||
7944 | dgux*) | |
7945 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7946 | hardcode_libdir_flag_spec='-L$libdir' | |
7947 | hardcode_shlibpath_var=no | |
7948 | ;; | |
7949 | ||
7950 | freebsd1*) | |
7951 | ld_shlibs=no | |
7952 | ;; | |
7953 | ||
7954 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7955 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7956 | # does not break anything, and helps significantly (at the cost of a little | |
7957 | # extra space). | |
7958 | freebsd2.2*) | |
7959 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7960 | hardcode_libdir_flag_spec='-R$libdir' | |
7961 | hardcode_direct=yes | |
7962 | hardcode_shlibpath_var=no | |
7963 | ;; | |
7964 | ||
7965 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7966 | freebsd2*) | |
7967 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7968 | hardcode_direct=yes | |
7969 | hardcode_minus_L=yes | |
7970 | hardcode_shlibpath_var=no | |
7971 | ;; | |
7972 | ||
7973 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7974 | freebsd* | dragonfly*) | |
7975 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7976 | hardcode_libdir_flag_spec='-R$libdir' | |
7977 | hardcode_direct=yes | |
7978 | hardcode_shlibpath_var=no | |
7979 | ;; | |
7980 | ||
7981 | hpux9*) | |
7982 | if test "$GCC" = yes; then | |
7983 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7984 | else | |
7985 | 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' | |
7986 | fi | |
7987 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7988 | hardcode_libdir_separator=: | |
7989 | hardcode_direct=yes | |
7990 | ||
7991 | # hardcode_minus_L: Not really in the search PATH, | |
7992 | # but as the default location of the library. | |
7993 | hardcode_minus_L=yes | |
7994 | export_dynamic_flag_spec='${wl}-E' | |
7995 | ;; | |
7996 | ||
7997 | hpux10*) | |
7998 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7999 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8000 | else | |
8001 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8002 | fi | |
8003 | if test "$with_gnu_ld" = no; then | |
8004 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8005 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8006 | hardcode_libdir_separator=: | |
8007 | hardcode_direct=yes | |
8008 | hardcode_direct_absolute=yes | |
8009 | export_dynamic_flag_spec='${wl}-E' | |
8010 | # hardcode_minus_L: Not really in the search PATH, | |
8011 | # but as the default location of the library. | |
8012 | hardcode_minus_L=yes | |
8013 | fi | |
8014 | ;; | |
8015 | ||
8016 | hpux11*) | |
8017 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8018 | case $host_cpu in | |
8019 | hppa*64*) | |
8020 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8021 | ;; | |
8022 | ia64*) | |
8023 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8024 | ;; | |
8025 | *) | |
8026 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8027 | ;; | |
8028 | esac | |
8029 | else | |
8030 | case $host_cpu in | |
8031 | hppa*64*) | |
8032 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8033 | ;; | |
8034 | ia64*) | |
8035 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8036 | ;; | |
8037 | *) | |
8038 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8039 | ;; | |
8040 | esac | |
8041 | fi | |
8042 | if test "$with_gnu_ld" = no; then | |
8043 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8044 | hardcode_libdir_separator=: | |
8045 | ||
8046 | case $host_cpu in | |
8047 | hppa*64*|ia64*) | |
8048 | hardcode_direct=no | |
8049 | hardcode_shlibpath_var=no | |
8050 | ;; | |
8051 | *) | |
8052 | hardcode_direct=yes | |
8053 | hardcode_direct_absolute=yes | |
8054 | export_dynamic_flag_spec='${wl}-E' | |
8055 | ||
8056 | # hardcode_minus_L: Not really in the search PATH, | |
8057 | # but as the default location of the library. | |
8058 | hardcode_minus_L=yes | |
8059 | ;; | |
8060 | esac | |
8061 | fi | |
8062 | ;; | |
8063 | ||
8064 | irix5* | irix6* | nonstopux*) | |
8065 | if test "$GCC" = yes; then | |
8066 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8067 | # Try to use the -exported_symbol ld option, if it does not | |
8068 | # work, assume that -exports_file does not work either and | |
8069 | # implicitly export all symbols. | |
8070 | save_LDFLAGS="$LDFLAGS" | |
8071 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8073 | /* end confdefs.h. */ | |
8074 | int foo(void) {} | |
8075 | _ACEOF | |
8076 | if ac_fn_c_try_link "$LINENO"; then : | |
8077 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8078 | ||
8079 | fi | |
8080 | rm -f core conftest.err conftest.$ac_objext \ | |
8081 | conftest$ac_exeext conftest.$ac_ext | |
8082 | LDFLAGS="$save_LDFLAGS" | |
8083 | else | |
8084 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8085 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8086 | fi | |
8087 | archive_cmds_need_lc='no' | |
8088 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8089 | hardcode_libdir_separator=: | |
8090 | inherit_rpath=yes | |
8091 | link_all_deplibs=yes | |
8092 | ;; | |
8093 | ||
8094 | netbsd* | netbsdelf*-gnu) | |
8095 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8096 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8097 | else | |
8098 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8099 | fi | |
8100 | hardcode_libdir_flag_spec='-R$libdir' | |
8101 | hardcode_direct=yes | |
8102 | hardcode_shlibpath_var=no | |
8103 | ;; | |
8104 | ||
8105 | newsos6) | |
8106 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8107 | hardcode_direct=yes | |
8108 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8109 | hardcode_libdir_separator=: | |
8110 | hardcode_shlibpath_var=no | |
8111 | ;; | |
8112 | ||
8113 | *nto* | *qnx*) | |
8114 | ;; | |
8115 | ||
8116 | openbsd*) | |
8117 | if test -f /usr/libexec/ld.so; then | |
8118 | hardcode_direct=yes | |
8119 | hardcode_shlibpath_var=no | |
8120 | hardcode_direct_absolute=yes | |
8121 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8122 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8123 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8124 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8125 | export_dynamic_flag_spec='${wl}-E' | |
8126 | else | |
8127 | case $host_os in | |
8128 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8129 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8130 | hardcode_libdir_flag_spec='-R$libdir' | |
8131 | ;; | |
8132 | *) | |
8133 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8134 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8135 | ;; | |
8136 | esac | |
8137 | fi | |
8138 | else | |
8139 | ld_shlibs=no | |
8140 | fi | |
8141 | ;; | |
8142 | ||
8143 | os2*) | |
8144 | hardcode_libdir_flag_spec='-L$libdir' | |
8145 | hardcode_minus_L=yes | |
8146 | allow_undefined_flag=unsupported | |
8147 | 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' | |
8148 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8149 | ;; | |
8150 | ||
8151 | osf3*) | |
8152 | if test "$GCC" = yes; then | |
8153 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8154 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8155 | else | |
8156 | allow_undefined_flag=' -expect_unresolved \*' | |
8157 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8158 | fi | |
8159 | archive_cmds_need_lc='no' | |
8160 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8161 | hardcode_libdir_separator=: | |
8162 | ;; | |
8163 | ||
8164 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8165 | if test "$GCC" = yes; then | |
8166 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8167 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8168 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8169 | else | |
8170 | allow_undefined_flag=' -expect_unresolved \*' | |
8171 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8172 | 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~ | |
8173 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8174 | ||
8175 | # Both c and cxx compiler support -rpath directly | |
8176 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8177 | fi | |
8178 | archive_cmds_need_lc='no' | |
8179 | hardcode_libdir_separator=: | |
8180 | ;; | |
8181 | ||
8182 | solaris*) | |
8183 | no_undefined_flag=' -z defs' | |
8184 | if test "$GCC" = yes; then | |
8185 | wlarc='${wl}' | |
8186 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8187 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8188 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8189 | else | |
8190 | case `$CC -V 2>&1` in | |
8191 | *"Compilers 5.0"*) | |
8192 | wlarc='' | |
8193 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8194 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8195 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8196 | ;; | |
8197 | *) | |
8198 | wlarc='${wl}' | |
8199 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8200 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8201 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8202 | ;; | |
8203 | esac | |
8204 | fi | |
8205 | hardcode_libdir_flag_spec='-R$libdir' | |
8206 | hardcode_shlibpath_var=no | |
8207 | case $host_os in | |
8208 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8209 | *) | |
8210 | # The compiler driver will combine and reorder linker options, | |
8211 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8212 | # but is careful enough not to reorder. | |
8213 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8214 | if test "$GCC" = yes; then | |
8215 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8216 | else | |
8217 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8218 | fi | |
8219 | ;; | |
8220 | esac | |
8221 | link_all_deplibs=yes | |
8222 | ;; | |
8223 | ||
8224 | sunos4*) | |
8225 | if test "x$host_vendor" = xsequent; then | |
8226 | # Use $CC to link under sequent, because it throws in some extra .o | |
8227 | # files that make .init and .fini sections work. | |
8228 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8229 | else | |
8230 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8231 | fi | |
8232 | hardcode_libdir_flag_spec='-L$libdir' | |
8233 | hardcode_direct=yes | |
8234 | hardcode_minus_L=yes | |
8235 | hardcode_shlibpath_var=no | |
8236 | ;; | |
8237 | ||
8238 | sysv4) | |
8239 | case $host_vendor in | |
8240 | sni) | |
8241 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8242 | hardcode_direct=yes # is this really true??? | |
8243 | ;; | |
8244 | siemens) | |
8245 | ## LD is ld it makes a PLAMLIB | |
8246 | ## CC just makes a GrossModule. | |
8247 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8248 | reload_cmds='$CC -r -o $output$reload_objs' | |
8249 | hardcode_direct=no | |
8250 | ;; | |
8251 | motorola) | |
8252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8253 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8254 | ;; | |
8255 | esac | |
8256 | runpath_var='LD_RUN_PATH' | |
8257 | hardcode_shlibpath_var=no | |
8258 | ;; | |
8259 | ||
8260 | sysv4.3*) | |
8261 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8262 | hardcode_shlibpath_var=no | |
8263 | export_dynamic_flag_spec='-Bexport' | |
8264 | ;; | |
8265 | ||
8266 | sysv4*MP*) | |
8267 | if test -d /usr/nec; then | |
8268 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8269 | hardcode_shlibpath_var=no | |
8270 | runpath_var=LD_RUN_PATH | |
8271 | hardcode_runpath_var=yes | |
8272 | ld_shlibs=yes | |
8273 | fi | |
8274 | ;; | |
8275 | ||
8276 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8277 | no_undefined_flag='${wl}-z,text' | |
8278 | archive_cmds_need_lc=no | |
8279 | hardcode_shlibpath_var=no | |
8280 | runpath_var='LD_RUN_PATH' | |
8281 | ||
8282 | if test "$GCC" = yes; then | |
8283 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8284 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8285 | else | |
8286 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8287 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8288 | fi | |
8289 | ;; | |
8290 | ||
8291 | sysv5* | sco3.2v5* | sco5v6*) | |
8292 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8293 | # link with -lc, and that would cause any symbols used from libc to | |
8294 | # always be unresolved, which means just about no library would | |
8295 | # ever link correctly. If we're not using GNU ld we use -z text | |
8296 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8297 | # as -z defs. | |
8298 | no_undefined_flag='${wl}-z,text' | |
8299 | allow_undefined_flag='${wl}-z,nodefs' | |
8300 | archive_cmds_need_lc=no | |
8301 | hardcode_shlibpath_var=no | |
8302 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8303 | hardcode_libdir_separator=':' | |
8304 | link_all_deplibs=yes | |
8305 | export_dynamic_flag_spec='${wl}-Bexport' | |
8306 | runpath_var='LD_RUN_PATH' | |
8307 | ||
8308 | if test "$GCC" = yes; then | |
8309 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8310 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8311 | else | |
8312 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8313 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8314 | fi | |
8315 | ;; | |
8316 | ||
8317 | uts4*) | |
8318 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8319 | hardcode_libdir_flag_spec='-L$libdir' | |
8320 | hardcode_shlibpath_var=no | |
8321 | ;; | |
8322 | ||
8323 | *) | |
8324 | ld_shlibs=no | |
8325 | ;; | |
8326 | esac | |
8327 | ||
8328 | if test x$host_vendor = xsni; then | |
8329 | case $host in | |
8330 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8331 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8332 | ;; | |
8333 | esac | |
8334 | fi | |
8335 | fi | |
8336 | ||
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8338 | $as_echo "$ld_shlibs" >&6; } | |
8339 | test "$ld_shlibs" = no && can_build_shared=no | |
8340 | ||
8341 | with_gnu_ld=$with_gnu_ld | |
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | ||
8353 | ||
8354 | ||
8355 | ||
8356 | ||
8357 | # | |
8358 | # Do we need to explicitly link libc? | |
8359 | # | |
8360 | case "x$archive_cmds_need_lc" in | |
8361 | x|xyes) | |
8362 | # Assume -lc should be added | |
8363 | archive_cmds_need_lc=yes | |
8364 | ||
8365 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8366 | case $archive_cmds in | |
8367 | *'~'*) | |
8368 | # FIXME: we may have to deal with multi-command sequences. | |
8369 | ;; | |
8370 | '$CC '*) | |
8371 | # Test whether the compiler implicitly links with -lc since on some | |
8372 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8373 | # to ld, don't add -lc before -lgcc. | |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8375 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8376 | $RM conftest* | |
8377 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8378 | ||
8379 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8380 | (eval $ac_compile) 2>&5 | |
8381 | ac_status=$? | |
8382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8383 | test $ac_status = 0; } 2>conftest.err; then | |
8384 | soname=conftest | |
8385 | lib=conftest | |
8386 | libobjs=conftest.$ac_objext | |
8387 | deplibs= | |
8388 | wl=$lt_prog_compiler_wl | |
8389 | pic_flag=$lt_prog_compiler_pic | |
8390 | compiler_flags=-v | |
8391 | linker_flags=-v | |
8392 | verstring= | |
8393 | output_objdir=. | |
8394 | libname=conftest | |
8395 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8396 | allow_undefined_flag= | |
8397 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8398 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8399 | ac_status=$? | |
8400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8401 | test $ac_status = 0; } | |
8402 | then | |
8403 | archive_cmds_need_lc=no | |
8404 | else | |
8405 | archive_cmds_need_lc=yes | |
8406 | fi | |
8407 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8408 | else | |
8409 | cat conftest.err 1>&5 | |
8410 | fi | |
8411 | $RM conftest* | |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8413 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8414 | ;; | |
8415 | esac | |
8416 | fi | |
8417 | ;; | |
8418 | esac | |
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
8453 | ||
8454 | ||
8455 | ||
8456 | ||
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8577 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8578 | ||
8579 | if test "$GCC" = yes; then | |
8580 | case $host_os in | |
8581 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8582 | *) lt_awk_arg="/^libraries:/" ;; | |
8583 | esac | |
8584 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8585 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8586 | # if the path contains ";" then we assume it to be the separator | |
8587 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8588 | # assumed that no part of a normal pathname contains ";" but that should | |
8589 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8590 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8591 | else | |
8592 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8593 | fi | |
8594 | # Ok, now we have the path, separated by spaces, we can step through it | |
8595 | # and add multilib dir if necessary. | |
8596 | lt_tmp_lt_search_path_spec= | |
8597 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8598 | for lt_sys_path in $lt_search_path_spec; do | |
8599 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8600 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8601 | else | |
8602 | test -d "$lt_sys_path" && \ | |
8603 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8604 | fi | |
8605 | done | |
8606 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8607 | BEGIN {RS=" "; FS="/|\n";} { | |
8608 | lt_foo=""; | |
8609 | lt_count=0; | |
8610 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8611 | if ($lt_i != "" && $lt_i != ".") { | |
8612 | if ($lt_i == "..") { | |
8613 | lt_count++; | |
8614 | } else { | |
8615 | if (lt_count == 0) { | |
8616 | lt_foo="/" $lt_i lt_foo; | |
8617 | } else { | |
8618 | lt_count--; | |
8619 | } | |
8620 | } | |
8621 | } | |
8622 | } | |
8623 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8624 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8625 | }'` | |
8626 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8627 | else | |
8628 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8629 | fi | |
8630 | library_names_spec= | |
8631 | libname_spec='lib$name' | |
8632 | soname_spec= | |
8633 | shrext_cmds=".so" | |
8634 | postinstall_cmds= | |
8635 | postuninstall_cmds= | |
8636 | finish_cmds= | |
8637 | finish_eval= | |
8638 | shlibpath_var= | |
8639 | shlibpath_overrides_runpath=unknown | |
8640 | version_type=none | |
8641 | dynamic_linker="$host_os ld.so" | |
8642 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8643 | need_lib_prefix=unknown | |
8644 | hardcode_into_libs=no | |
8645 | ||
8646 | # when you set need_version to no, make sure it does not cause -set_version | |
8647 | # flags to be left without arguments | |
8648 | need_version=unknown | |
8649 | ||
8650 | case $host_os in | |
8651 | aix3*) | |
8652 | version_type=linux | |
8653 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8654 | shlibpath_var=LIBPATH | |
8655 | ||
8656 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8657 | soname_spec='${libname}${release}${shared_ext}$major' | |
8658 | ;; | |
8659 | ||
8660 | aix[4-9]*) | |
8661 | version_type=linux | |
8662 | need_lib_prefix=no | |
8663 | need_version=no | |
8664 | hardcode_into_libs=yes | |
8665 | if test "$host_cpu" = ia64; then | |
8666 | # AIX 5 supports IA64 | |
8667 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8668 | shlibpath_var=LD_LIBRARY_PATH | |
8669 | else | |
8670 | # With GCC up to 2.95.x, collect2 would create an import file | |
8671 | # for dependence libraries. The import file would start with | |
8672 | # the line `#! .'. This would cause the generated library to | |
8673 | # depend on `.', always an invalid library. This was fixed in | |
8674 | # development snapshots of GCC prior to 3.0. | |
8675 | case $host_os in | |
8676 | aix4 | aix4.[01] | aix4.[01].*) | |
8677 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8678 | echo ' yes ' | |
8679 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8680 | : | |
8681 | else | |
8682 | can_build_shared=no | |
8683 | fi | |
8684 | ;; | |
8685 | esac | |
8686 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8687 | # soname into executable. Probably we can add versioning support to | |
8688 | # collect2, so additional links can be useful in future. | |
8689 | if test "$aix_use_runtimelinking" = yes; then | |
8690 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8691 | # instead of lib<name>.a to let people know that these are not | |
8692 | # typical AIX shared libraries. | |
8693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8694 | else | |
8695 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8696 | # and later when we are not doing run time linking. | |
8697 | library_names_spec='${libname}${release}.a $libname.a' | |
8698 | soname_spec='${libname}${release}${shared_ext}$major' | |
8699 | fi | |
8700 | shlibpath_var=LIBPATH | |
8701 | fi | |
8702 | ;; | |
8703 | ||
8704 | amigaos*) | |
8705 | case $host_cpu in | |
8706 | powerpc) | |
8707 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8708 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8710 | ;; | |
8711 | m68k) | |
8712 | library_names_spec='$libname.ixlibrary $libname.a' | |
8713 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8714 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
8715 | ;; | |
8716 | esac | |
8717 | ;; | |
8718 | ||
8719 | beos*) | |
8720 | library_names_spec='${libname}${shared_ext}' | |
8721 | dynamic_linker="$host_os ld.so" | |
8722 | shlibpath_var=LIBRARY_PATH | |
8723 | ;; | |
8724 | ||
8725 | bsdi[45]*) | |
8726 | version_type=linux | |
8727 | need_version=no | |
8728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8729 | soname_spec='${libname}${release}${shared_ext}$major' | |
8730 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8731 | shlibpath_var=LD_LIBRARY_PATH | |
8732 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8733 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8734 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8735 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8736 | # libtool to hard-code these into programs | |
8737 | ;; | |
8738 | ||
8739 | cygwin* | mingw* | pw32* | cegcc*) | |
8740 | version_type=windows | |
8741 | shrext_cmds=".dll" | |
8742 | need_version=no | |
8743 | need_lib_prefix=no | |
8744 | ||
8745 | case $GCC,$host_os in | |
8746 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8747 | library_names_spec='$libname.dll.a' | |
8748 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8749 | postinstall_cmds='base_file=`basename \${file}`~ | |
8750 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8751 | dldir=$destdir/`dirname \$dlpath`~ | |
8752 | test -d \$dldir || mkdir -p \$dldir~ | |
8753 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8754 | chmod a+x \$dldir/$dlname~ | |
8755 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8756 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8757 | fi' | |
8758 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8759 | dlpath=$dir/\$dldll~ | |
8760 | $RM \$dlpath' | |
8761 | shlibpath_overrides_runpath=yes | |
8762 | ||
8763 | case $host_os in | |
8764 | cygwin*) | |
8765 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8766 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8767 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8768 | ;; | |
8769 | mingw* | cegcc*) | |
8770 | # MinGW DLLs use traditional 'lib' prefix | |
8771 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8772 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8773 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8774 | # It is most probably a Windows format PATH printed by | |
8775 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8776 | # path with ; separators, and with drive letters. We can handle the | |
8777 | # drive letters (cygwin fileutils understands them), so leave them, | |
8778 | # especially as we might pass files found there to a mingw objdump, | |
8779 | # which wouldn't understand a cygwinified path. Ahh. | |
8780 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8781 | else | |
8782 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8783 | fi | |
8784 | ;; | |
8785 | pw32*) | |
8786 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8787 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8788 | ;; | |
8789 | esac | |
8790 | ;; | |
8791 | ||
8792 | *) | |
8793 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8794 | ;; | |
8795 | esac | |
8796 | dynamic_linker='Win32 ld.exe' | |
8797 | # FIXME: first we should search . and the directory the executable is in | |
8798 | shlibpath_var=PATH | |
8799 | ;; | |
8800 | ||
8801 | darwin* | rhapsody*) | |
8802 | dynamic_linker="$host_os dyld" | |
8803 | version_type=darwin | |
8804 | need_lib_prefix=no | |
8805 | need_version=no | |
8806 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8807 | soname_spec='${libname}${release}${major}$shared_ext' | |
8808 | shlibpath_overrides_runpath=yes | |
8809 | shlibpath_var=DYLD_LIBRARY_PATH | |
8810 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8811 | ||
8812 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8813 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8814 | ;; | |
8815 | ||
8816 | dgux*) | |
8817 | version_type=linux | |
8818 | need_lib_prefix=no | |
8819 | need_version=no | |
8820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8821 | soname_spec='${libname}${release}${shared_ext}$major' | |
8822 | shlibpath_var=LD_LIBRARY_PATH | |
8823 | ;; | |
8824 | ||
8825 | freebsd1*) | |
8826 | dynamic_linker=no | |
8827 | ;; | |
8828 | ||
8829 | freebsd* | dragonfly*) | |
8830 | # DragonFly does not have aout. When/if they implement a new | |
8831 | # versioning mechanism, adjust this. | |
8832 | if test -x /usr/bin/objformat; then | |
8833 | objformat=`/usr/bin/objformat` | |
8834 | else | |
8835 | case $host_os in | |
8836 | freebsd[123]*) objformat=aout ;; | |
8837 | *) objformat=elf ;; | |
8838 | esac | |
8839 | fi | |
8840 | version_type=freebsd-$objformat | |
8841 | case $version_type in | |
8842 | freebsd-elf*) | |
8843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8844 | need_version=no | |
8845 | need_lib_prefix=no | |
8846 | ;; | |
8847 | freebsd-*) | |
8848 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8849 | need_version=yes | |
8850 | ;; | |
8851 | esac | |
8852 | shlibpath_var=LD_LIBRARY_PATH | |
8853 | case $host_os in | |
8854 | freebsd2*) | |
8855 | shlibpath_overrides_runpath=yes | |
8856 | ;; | |
8857 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8858 | shlibpath_overrides_runpath=yes | |
8859 | hardcode_into_libs=yes | |
8860 | ;; | |
8861 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8862 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8863 | shlibpath_overrides_runpath=no | |
8864 | hardcode_into_libs=yes | |
8865 | ;; | |
8866 | *) # from 4.6 on, and DragonFly | |
8867 | shlibpath_overrides_runpath=yes | |
8868 | hardcode_into_libs=yes | |
8869 | ;; | |
8870 | esac | |
8871 | ;; | |
8872 | ||
8873 | gnu*) | |
8874 | version_type=linux | |
8875 | need_lib_prefix=no | |
8876 | need_version=no | |
8877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8878 | soname_spec='${libname}${release}${shared_ext}$major' | |
8879 | shlibpath_var=LD_LIBRARY_PATH | |
8880 | hardcode_into_libs=yes | |
8881 | ;; | |
8882 | ||
8883 | hpux9* | hpux10* | hpux11*) | |
8884 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8885 | # link against other versions. | |
8886 | version_type=sunos | |
8887 | need_lib_prefix=no | |
8888 | need_version=no | |
8889 | case $host_cpu in | |
8890 | ia64*) | |
8891 | shrext_cmds='.so' | |
8892 | hardcode_into_libs=yes | |
8893 | dynamic_linker="$host_os dld.so" | |
8894 | shlibpath_var=LD_LIBRARY_PATH | |
8895 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8897 | soname_spec='${libname}${release}${shared_ext}$major' | |
8898 | if test "X$HPUX_IA64_MODE" = X32; then | |
8899 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8900 | else | |
8901 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8902 | fi | |
8903 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8904 | ;; | |
8905 | hppa*64*) | |
8906 | shrext_cmds='.sl' | |
8907 | hardcode_into_libs=yes | |
8908 | dynamic_linker="$host_os dld.sl" | |
8909 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8910 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8912 | soname_spec='${libname}${release}${shared_ext}$major' | |
8913 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8914 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8915 | ;; | |
8916 | *) | |
8917 | shrext_cmds='.sl' | |
8918 | dynamic_linker="$host_os dld.sl" | |
8919 | shlibpath_var=SHLIB_PATH | |
8920 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8922 | soname_spec='${libname}${release}${shared_ext}$major' | |
8923 | ;; | |
8924 | esac | |
8925 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8926 | postinstall_cmds='chmod 555 $lib' | |
8927 | ;; | |
8928 | ||
8929 | interix[3-9]*) | |
8930 | version_type=linux | |
8931 | need_lib_prefix=no | |
8932 | need_version=no | |
8933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8934 | soname_spec='${libname}${release}${shared_ext}$major' | |
8935 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8936 | shlibpath_var=LD_LIBRARY_PATH | |
8937 | shlibpath_overrides_runpath=no | |
8938 | hardcode_into_libs=yes | |
8939 | ;; | |
8940 | ||
8941 | irix5* | irix6* | nonstopux*) | |
8942 | case $host_os in | |
8943 | nonstopux*) version_type=nonstopux ;; | |
8944 | *) | |
8945 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8946 | version_type=linux | |
8947 | else | |
8948 | version_type=irix | |
8949 | fi ;; | |
8950 | esac | |
8951 | need_lib_prefix=no | |
8952 | need_version=no | |
8953 | soname_spec='${libname}${release}${shared_ext}$major' | |
8954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8955 | case $host_os in | |
8956 | irix5* | nonstopux*) | |
8957 | libsuff= shlibsuff= | |
8958 | ;; | |
8959 | *) | |
8960 | case $LD in # libtool.m4 will add one of these switches to LD | |
8961 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8962 | libsuff= shlibsuff= libmagic=32-bit;; | |
8963 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8964 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8965 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8966 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8967 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8968 | esac | |
8969 | ;; | |
8970 | esac | |
8971 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8972 | shlibpath_overrides_runpath=no | |
8973 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8974 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8975 | hardcode_into_libs=yes | |
8976 | ;; | |
8977 | ||
8978 | # No shared lib support for Linux oldld, aout, or coff. | |
8979 | linux*oldld* | linux*aout* | linux*coff*) | |
8980 | dynamic_linker=no | |
8981 | ;; | |
8982 | ||
8983 | # This must be Linux ELF. | |
8984 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8985 | version_type=linux | |
8986 | need_lib_prefix=no | |
8987 | need_version=no | |
8988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8989 | soname_spec='${libname}${release}${shared_ext}$major' | |
8990 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8991 | shlibpath_var=LD_LIBRARY_PATH | |
8992 | shlibpath_overrides_runpath=no | |
8993 | # Some binutils ld are patched to set DT_RUNPATH | |
8994 | save_LDFLAGS=$LDFLAGS | |
8995 | save_libdir=$libdir | |
8996 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
8997 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
8998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8999 | /* end confdefs.h. */ | |
9000 | ||
9001 | int | |
9002 | main () | |
9003 | { | |
9004 | ||
9005 | ; | |
9006 | return 0; | |
9007 | } | |
9008 | _ACEOF | |
9009 | if ac_fn_c_try_link "$LINENO"; then : | |
9010 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9011 | shlibpath_overrides_runpath=yes | |
9012 | fi | |
9013 | fi | |
9014 | rm -f core conftest.err conftest.$ac_objext \ | |
9015 | conftest$ac_exeext conftest.$ac_ext | |
9016 | LDFLAGS=$save_LDFLAGS | |
9017 | libdir=$save_libdir | |
9018 | ||
9019 | # This implies no fast_install, which is unacceptable. | |
9020 | # Some rework will be needed to allow for fast_install | |
9021 | # before this can be enabled. | |
9022 | hardcode_into_libs=yes | |
9023 | ||
9024 | # Append ld.so.conf contents to the search path | |
9025 | if test -f /etc/ld.so.conf; then | |
9026 | 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;/^$/d' | tr '\n' ' '` | |
9027 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9028 | fi | |
9029 | ||
9030 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9031 | # powerpc, because MkLinux only supported shared libraries with the | |
9032 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9033 | # most powerpc-linux boxes support dynamic linking these days and | |
9034 | # people can always --disable-shared, the test was removed, and we | |
9035 | # assume the GNU/Linux dynamic linker is in use. | |
9036 | dynamic_linker='GNU/Linux ld.so' | |
9037 | ;; | |
9038 | ||
9039 | netbsdelf*-gnu) | |
9040 | version_type=linux | |
9041 | need_lib_prefix=no | |
9042 | need_version=no | |
9043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9044 | soname_spec='${libname}${release}${shared_ext}$major' | |
9045 | shlibpath_var=LD_LIBRARY_PATH | |
9046 | shlibpath_overrides_runpath=no | |
9047 | hardcode_into_libs=yes | |
9048 | dynamic_linker='NetBSD ld.elf_so' | |
9049 | ;; | |
9050 | ||
9051 | netbsd*) | |
9052 | version_type=sunos | |
9053 | need_lib_prefix=no | |
9054 | need_version=no | |
9055 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9057 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9058 | dynamic_linker='NetBSD (a.out) ld.so' | |
9059 | else | |
9060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9061 | soname_spec='${libname}${release}${shared_ext}$major' | |
9062 | dynamic_linker='NetBSD ld.elf_so' | |
9063 | fi | |
9064 | shlibpath_var=LD_LIBRARY_PATH | |
9065 | shlibpath_overrides_runpath=yes | |
9066 | hardcode_into_libs=yes | |
9067 | ;; | |
9068 | ||
9069 | newsos6) | |
9070 | version_type=linux | |
9071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9072 | shlibpath_var=LD_LIBRARY_PATH | |
9073 | shlibpath_overrides_runpath=yes | |
9074 | ;; | |
9075 | ||
9076 | *nto* | *qnx*) | |
9077 | version_type=qnx | |
9078 | need_lib_prefix=no | |
9079 | need_version=no | |
9080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9081 | soname_spec='${libname}${release}${shared_ext}$major' | |
9082 | shlibpath_var=LD_LIBRARY_PATH | |
9083 | shlibpath_overrides_runpath=no | |
9084 | hardcode_into_libs=yes | |
9085 | dynamic_linker='ldqnx.so' | |
9086 | ;; | |
9087 | ||
9088 | openbsd*) | |
9089 | version_type=sunos | |
9090 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9091 | need_lib_prefix=no | |
9092 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9093 | case $host_os in | |
9094 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9095 | *) need_version=no ;; | |
9096 | esac | |
9097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9098 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9099 | shlibpath_var=LD_LIBRARY_PATH | |
9100 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9101 | case $host_os in | |
9102 | openbsd2.[89] | openbsd2.[89].*) | |
9103 | shlibpath_overrides_runpath=no | |
9104 | ;; | |
9105 | *) | |
9106 | shlibpath_overrides_runpath=yes | |
9107 | ;; | |
9108 | esac | |
9109 | else | |
9110 | shlibpath_overrides_runpath=yes | |
9111 | fi | |
9112 | ;; | |
9113 | ||
9114 | os2*) | |
9115 | libname_spec='$name' | |
9116 | shrext_cmds=".dll" | |
9117 | need_lib_prefix=no | |
9118 | library_names_spec='$libname${shared_ext} $libname.a' | |
9119 | dynamic_linker='OS/2 ld.exe' | |
9120 | shlibpath_var=LIBPATH | |
9121 | ;; | |
9122 | ||
9123 | osf3* | osf4* | osf5*) | |
9124 | version_type=osf | |
9125 | need_lib_prefix=no | |
9126 | need_version=no | |
9127 | soname_spec='${libname}${release}${shared_ext}$major' | |
9128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9129 | shlibpath_var=LD_LIBRARY_PATH | |
9130 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9131 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9132 | ;; | |
9133 | ||
9134 | rdos*) | |
9135 | dynamic_linker=no | |
9136 | ;; | |
9137 | ||
9138 | solaris*) | |
9139 | version_type=linux | |
9140 | need_lib_prefix=no | |
9141 | need_version=no | |
9142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9143 | soname_spec='${libname}${release}${shared_ext}$major' | |
9144 | shlibpath_var=LD_LIBRARY_PATH | |
9145 | shlibpath_overrides_runpath=yes | |
9146 | hardcode_into_libs=yes | |
9147 | # ldd complains unless libraries are executable | |
9148 | postinstall_cmds='chmod +x $lib' | |
9149 | ;; | |
9150 | ||
9151 | sunos4*) | |
9152 | version_type=sunos | |
9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9154 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9155 | shlibpath_var=LD_LIBRARY_PATH | |
9156 | shlibpath_overrides_runpath=yes | |
9157 | if test "$with_gnu_ld" = yes; then | |
9158 | need_lib_prefix=no | |
9159 | fi | |
9160 | need_version=yes | |
9161 | ;; | |
9162 | ||
9163 | sysv4 | sysv4.3*) | |
9164 | version_type=linux | |
9165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9166 | soname_spec='${libname}${release}${shared_ext}$major' | |
9167 | shlibpath_var=LD_LIBRARY_PATH | |
9168 | case $host_vendor in | |
9169 | sni) | |
9170 | shlibpath_overrides_runpath=no | |
9171 | need_lib_prefix=no | |
9172 | runpath_var=LD_RUN_PATH | |
9173 | ;; | |
9174 | siemens) | |
9175 | need_lib_prefix=no | |
9176 | ;; | |
9177 | motorola) | |
9178 | need_lib_prefix=no | |
9179 | need_version=no | |
9180 | shlibpath_overrides_runpath=no | |
9181 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9182 | ;; | |
9183 | esac | |
9184 | ;; | |
9185 | ||
9186 | sysv4*MP*) | |
9187 | if test -d /usr/nec ;then | |
9188 | version_type=linux | |
9189 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9190 | soname_spec='$libname${shared_ext}.$major' | |
9191 | shlibpath_var=LD_LIBRARY_PATH | |
9192 | fi | |
9193 | ;; | |
9194 | ||
9195 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9196 | version_type=freebsd-elf | |
9197 | need_lib_prefix=no | |
9198 | need_version=no | |
9199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9200 | soname_spec='${libname}${release}${shared_ext}$major' | |
9201 | shlibpath_var=LD_LIBRARY_PATH | |
9202 | shlibpath_overrides_runpath=yes | |
9203 | hardcode_into_libs=yes | |
9204 | if test "$with_gnu_ld" = yes; then | |
9205 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9206 | else | |
9207 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9208 | case $host_os in | |
9209 | sco3.2v5*) | |
9210 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9211 | ;; | |
9212 | esac | |
9213 | fi | |
9214 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9215 | ;; | |
9216 | ||
9217 | tpf*) | |
9218 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9219 | version_type=linux | |
9220 | need_lib_prefix=no | |
9221 | need_version=no | |
9222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9223 | shlibpath_var=LD_LIBRARY_PATH | |
9224 | shlibpath_overrides_runpath=no | |
9225 | hardcode_into_libs=yes | |
9226 | ;; | |
9227 | ||
9228 | uts4*) | |
9229 | version_type=linux | |
9230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9231 | soname_spec='${libname}${release}${shared_ext}$major' | |
9232 | shlibpath_var=LD_LIBRARY_PATH | |
9233 | ;; | |
9234 | ||
9235 | *) | |
9236 | dynamic_linker=no | |
9237 | ;; | |
9238 | esac | |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9240 | $as_echo "$dynamic_linker" >&6; } | |
9241 | test "$dynamic_linker" = no && can_build_shared=no | |
9242 | ||
9243 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9244 | if test "$GCC" = yes; then | |
9245 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9246 | fi | |
9247 | ||
9248 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9249 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9250 | fi | |
9251 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9252 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9253 | fi | |
9254 | ||
9255 | ||
9256 | ||
9257 | ||
9258 | ||
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | ||
9264 | ||
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9342 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9343 | hardcode_action= | |
9344 | if test -n "$hardcode_libdir_flag_spec" || | |
9345 | test -n "$runpath_var" || | |
9346 | test "X$hardcode_automatic" = "Xyes" ; then | |
9347 | ||
9348 | # We can hardcode non-existent directories. | |
9349 | if test "$hardcode_direct" != no && | |
9350 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9351 | # have to relink, otherwise we might link with an installed library | |
9352 | # when we should be linking with a yet-to-be-installed one | |
9353 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9354 | test "$hardcode_minus_L" != no; then | |
9355 | # Linking always hardcodes the temporary library directory. | |
9356 | hardcode_action=relink | |
9357 | else | |
9358 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9359 | hardcode_action=immediate | |
9360 | fi | |
9361 | else | |
9362 | # We cannot hardcode anything, or else we can only hardcode existing | |
9363 | # directories. | |
9364 | hardcode_action=unsupported | |
9365 | fi | |
9366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9367 | $as_echo "$hardcode_action" >&6; } | |
9368 | ||
9369 | if test "$hardcode_action" = relink || | |
9370 | test "$inherit_rpath" = yes; then | |
9371 | # Fast installation is not supported | |
9372 | enable_fast_install=no | |
9373 | elif test "$shlibpath_overrides_runpath" = yes || | |
9374 | test "$enable_shared" = no; then | |
9375 | # Fast installation is not necessary | |
9376 | enable_fast_install=needless | |
9377 | fi | |
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | if test "x$enable_dlopen" != xyes; then | |
9385 | enable_dlopen=unknown | |
9386 | enable_dlopen_self=unknown | |
9387 | enable_dlopen_self_static=unknown | |
9388 | else | |
9389 | lt_cv_dlopen=no | |
9390 | lt_cv_dlopen_libs= | |
9391 | ||
9392 | case $host_os in | |
9393 | beos*) | |
9394 | lt_cv_dlopen="load_add_on" | |
9395 | lt_cv_dlopen_libs= | |
9396 | lt_cv_dlopen_self=yes | |
9397 | ;; | |
9398 | ||
9399 | mingw* | pw32* | cegcc*) | |
9400 | lt_cv_dlopen="LoadLibrary" | |
9401 | lt_cv_dlopen_libs= | |
9402 | ;; | |
9403 | ||
9404 | cygwin*) | |
9405 | lt_cv_dlopen="dlopen" | |
9406 | lt_cv_dlopen_libs= | |
9407 | ;; | |
9408 | ||
9409 | darwin*) | |
9410 | # if libdl is installed we need to link against it | |
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9412 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9413 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9414 | $as_echo_n "(cached) " >&6 | |
9415 | else | |
9416 | ac_check_lib_save_LIBS=$LIBS | |
9417 | LIBS="-ldl $LIBS" | |
9418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9419 | /* end confdefs.h. */ | |
9420 | ||
9421 | /* Override any GCC internal prototype to avoid an error. | |
9422 | Use char because int might match the return type of a GCC | |
9423 | builtin and then its argument prototype would still apply. */ | |
9424 | #ifdef __cplusplus | |
9425 | extern "C" | |
9426 | #endif | |
9427 | char dlopen (); | |
9428 | int | |
9429 | main () | |
9430 | { | |
9431 | return dlopen (); | |
9432 | ; | |
9433 | return 0; | |
9434 | } | |
9435 | _ACEOF | |
9436 | if ac_fn_c_try_link "$LINENO"; then : | |
9437 | ac_cv_lib_dl_dlopen=yes | |
9438 | else | |
9439 | ac_cv_lib_dl_dlopen=no | |
9440 | fi | |
9441 | rm -f core conftest.err conftest.$ac_objext \ | |
9442 | conftest$ac_exeext conftest.$ac_ext | |
9443 | LIBS=$ac_check_lib_save_LIBS | |
9444 | fi | |
9445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9446 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9447 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9448 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9449 | else | |
9450 | ||
9451 | lt_cv_dlopen="dyld" | |
9452 | lt_cv_dlopen_libs= | |
9453 | lt_cv_dlopen_self=yes | |
9454 | ||
9455 | fi | |
9456 | ||
9457 | ;; | |
9458 | ||
9459 | *) | |
9460 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9461 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9462 | lt_cv_dlopen="shl_load" | |
9463 | else | |
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9465 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9466 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9467 | $as_echo_n "(cached) " >&6 | |
9468 | else | |
9469 | ac_check_lib_save_LIBS=$LIBS | |
9470 | LIBS="-ldld $LIBS" | |
9471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9472 | /* end confdefs.h. */ | |
9473 | ||
9474 | /* Override any GCC internal prototype to avoid an error. | |
9475 | Use char because int might match the return type of a GCC | |
9476 | builtin and then its argument prototype would still apply. */ | |
9477 | #ifdef __cplusplus | |
9478 | extern "C" | |
9479 | #endif | |
9480 | char shl_load (); | |
9481 | int | |
9482 | main () | |
9483 | { | |
9484 | return shl_load (); | |
9485 | ; | |
9486 | return 0; | |
9487 | } | |
9488 | _ACEOF | |
9489 | if ac_fn_c_try_link "$LINENO"; then : | |
9490 | ac_cv_lib_dld_shl_load=yes | |
9491 | else | |
9492 | ac_cv_lib_dld_shl_load=no | |
9493 | fi | |
9494 | rm -f core conftest.err conftest.$ac_objext \ | |
9495 | conftest$ac_exeext conftest.$ac_ext | |
9496 | LIBS=$ac_check_lib_save_LIBS | |
9497 | fi | |
9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9499 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9500 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9501 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9502 | else | |
9503 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9504 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9505 | lt_cv_dlopen="dlopen" | |
9506 | else | |
9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9508 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9509 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9510 | $as_echo_n "(cached) " >&6 | |
9511 | else | |
9512 | ac_check_lib_save_LIBS=$LIBS | |
9513 | LIBS="-ldl $LIBS" | |
9514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9515 | /* end confdefs.h. */ | |
9516 | ||
9517 | /* Override any GCC internal prototype to avoid an error. | |
9518 | Use char because int might match the return type of a GCC | |
9519 | builtin and then its argument prototype would still apply. */ | |
9520 | #ifdef __cplusplus | |
9521 | extern "C" | |
9522 | #endif | |
9523 | char dlopen (); | |
9524 | int | |
9525 | main () | |
9526 | { | |
9527 | return dlopen (); | |
9528 | ; | |
9529 | return 0; | |
9530 | } | |
9531 | _ACEOF | |
9532 | if ac_fn_c_try_link "$LINENO"; then : | |
9533 | ac_cv_lib_dl_dlopen=yes | |
9534 | else | |
9535 | ac_cv_lib_dl_dlopen=no | |
9536 | fi | |
9537 | rm -f core conftest.err conftest.$ac_objext \ | |
9538 | conftest$ac_exeext conftest.$ac_ext | |
9539 | LIBS=$ac_check_lib_save_LIBS | |
9540 | fi | |
9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9542 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9543 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9544 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9545 | else | |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9547 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9548 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9549 | $as_echo_n "(cached) " >&6 | |
9550 | else | |
9551 | ac_check_lib_save_LIBS=$LIBS | |
9552 | LIBS="-lsvld $LIBS" | |
9553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9554 | /* end confdefs.h. */ | |
9555 | ||
9556 | /* Override any GCC internal prototype to avoid an error. | |
9557 | Use char because int might match the return type of a GCC | |
9558 | builtin and then its argument prototype would still apply. */ | |
9559 | #ifdef __cplusplus | |
9560 | extern "C" | |
9561 | #endif | |
9562 | char dlopen (); | |
9563 | int | |
9564 | main () | |
9565 | { | |
9566 | return dlopen (); | |
9567 | ; | |
9568 | return 0; | |
9569 | } | |
9570 | _ACEOF | |
9571 | if ac_fn_c_try_link "$LINENO"; then : | |
9572 | ac_cv_lib_svld_dlopen=yes | |
9573 | else | |
9574 | ac_cv_lib_svld_dlopen=no | |
9575 | fi | |
9576 | rm -f core conftest.err conftest.$ac_objext \ | |
9577 | conftest$ac_exeext conftest.$ac_ext | |
9578 | LIBS=$ac_check_lib_save_LIBS | |
9579 | fi | |
9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9581 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9582 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9583 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9584 | else | |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9586 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9587 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9588 | $as_echo_n "(cached) " >&6 | |
9589 | else | |
9590 | ac_check_lib_save_LIBS=$LIBS | |
9591 | LIBS="-ldld $LIBS" | |
9592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9593 | /* end confdefs.h. */ | |
9594 | ||
9595 | /* Override any GCC internal prototype to avoid an error. | |
9596 | Use char because int might match the return type of a GCC | |
9597 | builtin and then its argument prototype would still apply. */ | |
9598 | #ifdef __cplusplus | |
9599 | extern "C" | |
9600 | #endif | |
9601 | char dld_link (); | |
9602 | int | |
9603 | main () | |
9604 | { | |
9605 | return dld_link (); | |
9606 | ; | |
9607 | return 0; | |
9608 | } | |
9609 | _ACEOF | |
9610 | if ac_fn_c_try_link "$LINENO"; then : | |
9611 | ac_cv_lib_dld_dld_link=yes | |
9612 | else | |
9613 | ac_cv_lib_dld_dld_link=no | |
9614 | fi | |
9615 | rm -f core conftest.err conftest.$ac_objext \ | |
9616 | conftest$ac_exeext conftest.$ac_ext | |
9617 | LIBS=$ac_check_lib_save_LIBS | |
9618 | fi | |
9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9620 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9621 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9622 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9623 | fi | |
9624 | ||
9625 | ||
9626 | fi | |
9627 | ||
9628 | ||
9629 | fi | |
9630 | ||
9631 | ||
9632 | fi | |
9633 | ||
9634 | ||
9635 | fi | |
9636 | ||
9637 | ||
9638 | fi | |
9639 | ||
9640 | ;; | |
9641 | esac | |
9642 | ||
9643 | if test "x$lt_cv_dlopen" != xno; then | |
9644 | enable_dlopen=yes | |
9645 | else | |
9646 | enable_dlopen=no | |
9647 | fi | |
9648 | ||
9649 | case $lt_cv_dlopen in | |
9650 | dlopen) | |
9651 | save_CPPFLAGS="$CPPFLAGS" | |
9652 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9653 | ||
9654 | save_LDFLAGS="$LDFLAGS" | |
9655 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9656 | ||
9657 | save_LIBS="$LIBS" | |
9658 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9659 | ||
9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9661 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9662 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9663 | $as_echo_n "(cached) " >&6 | |
9664 | else | |
9665 | if test "$cross_compiling" = yes; then : | |
9666 | lt_cv_dlopen_self=cross | |
9667 | else | |
9668 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9669 | lt_status=$lt_dlunknown | |
9670 | cat > conftest.$ac_ext <<_LT_EOF | |
9671 | #line 9671 "configure" | |
9672 | #include "confdefs.h" | |
9673 | ||
9674 | #if HAVE_DLFCN_H | |
9675 | #include <dlfcn.h> | |
9676 | #endif | |
9677 | ||
9678 | #include <stdio.h> | |
9679 | ||
9680 | #ifdef RTLD_GLOBAL | |
9681 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9682 | #else | |
9683 | # ifdef DL_GLOBAL | |
9684 | # define LT_DLGLOBAL DL_GLOBAL | |
9685 | # else | |
9686 | # define LT_DLGLOBAL 0 | |
9687 | # endif | |
9688 | #endif | |
9689 | ||
9690 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9691 | find out it does not work in some platform. */ | |
9692 | #ifndef LT_DLLAZY_OR_NOW | |
9693 | # ifdef RTLD_LAZY | |
9694 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9695 | # else | |
9696 | # ifdef DL_LAZY | |
9697 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9698 | # else | |
9699 | # ifdef RTLD_NOW | |
9700 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9701 | # else | |
9702 | # ifdef DL_NOW | |
9703 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9704 | # else | |
9705 | # define LT_DLLAZY_OR_NOW 0 | |
9706 | # endif | |
9707 | # endif | |
9708 | # endif | |
9709 | # endif | |
9710 | #endif | |
9711 | ||
9712 | void fnord() { int i=42;} | |
9713 | int main () | |
9714 | { | |
9715 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9716 | int status = $lt_dlunknown; | |
9717 | ||
9718 | if (self) | |
9719 | { | |
9720 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9721 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9722 | /* dlclose (self); */ | |
9723 | } | |
9724 | else | |
9725 | puts (dlerror ()); | |
9726 | ||
9727 | return status; | |
9728 | } | |
9729 | _LT_EOF | |
9730 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9731 | (eval $ac_link) 2>&5 | |
9732 | ac_status=$? | |
9733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9734 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9735 | (./conftest; exit; ) >&5 2>/dev/null | |
9736 | lt_status=$? | |
9737 | case x$lt_status in | |
9738 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9739 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9740 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9741 | esac | |
9742 | else : | |
9743 | # compilation failed | |
9744 | lt_cv_dlopen_self=no | |
9745 | fi | |
9746 | fi | |
9747 | rm -fr conftest* | |
9748 | ||
9749 | ||
9750 | fi | |
9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9752 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9753 | ||
9754 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9755 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9757 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9758 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9759 | $as_echo_n "(cached) " >&6 | |
9760 | else | |
9761 | if test "$cross_compiling" = yes; then : | |
9762 | lt_cv_dlopen_self_static=cross | |
9763 | else | |
9764 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9765 | lt_status=$lt_dlunknown | |
9766 | cat > conftest.$ac_ext <<_LT_EOF | |
9767 | #line 9767 "configure" | |
9768 | #include "confdefs.h" | |
9769 | ||
9770 | #if HAVE_DLFCN_H | |
9771 | #include <dlfcn.h> | |
9772 | #endif | |
9773 | ||
9774 | #include <stdio.h> | |
9775 | ||
9776 | #ifdef RTLD_GLOBAL | |
9777 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9778 | #else | |
9779 | # ifdef DL_GLOBAL | |
9780 | # define LT_DLGLOBAL DL_GLOBAL | |
9781 | # else | |
9782 | # define LT_DLGLOBAL 0 | |
9783 | # endif | |
9784 | #endif | |
9785 | ||
9786 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9787 | find out it does not work in some platform. */ | |
9788 | #ifndef LT_DLLAZY_OR_NOW | |
9789 | # ifdef RTLD_LAZY | |
9790 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9791 | # else | |
9792 | # ifdef DL_LAZY | |
9793 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9794 | # else | |
9795 | # ifdef RTLD_NOW | |
9796 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9797 | # else | |
9798 | # ifdef DL_NOW | |
9799 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9800 | # else | |
9801 | # define LT_DLLAZY_OR_NOW 0 | |
9802 | # endif | |
9803 | # endif | |
9804 | # endif | |
9805 | # endif | |
9806 | #endif | |
9807 | ||
9808 | void fnord() { int i=42;} | |
9809 | int main () | |
9810 | { | |
9811 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9812 | int status = $lt_dlunknown; | |
9813 | ||
9814 | if (self) | |
9815 | { | |
9816 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9817 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9818 | /* dlclose (self); */ | |
9819 | } | |
9820 | else | |
9821 | puts (dlerror ()); | |
9822 | ||
9823 | return status; | |
9824 | } | |
9825 | _LT_EOF | |
9826 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9827 | (eval $ac_link) 2>&5 | |
9828 | ac_status=$? | |
9829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9830 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9831 | (./conftest; exit; ) >&5 2>/dev/null | |
9832 | lt_status=$? | |
9833 | case x$lt_status in | |
9834 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9835 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9836 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9837 | esac | |
9838 | else : | |
9839 | # compilation failed | |
9840 | lt_cv_dlopen_self_static=no | |
9841 | fi | |
9842 | fi | |
9843 | rm -fr conftest* | |
9844 | ||
9845 | ||
9846 | fi | |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9848 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9849 | fi | |
9850 | ||
9851 | CPPFLAGS="$save_CPPFLAGS" | |
9852 | LDFLAGS="$save_LDFLAGS" | |
9853 | LIBS="$save_LIBS" | |
9854 | ;; | |
9855 | esac | |
9856 | ||
9857 | case $lt_cv_dlopen_self in | |
9858 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9859 | *) enable_dlopen_self=unknown ;; | |
9860 | esac | |
9861 | ||
9862 | case $lt_cv_dlopen_self_static in | |
9863 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9864 | *) enable_dlopen_self_static=unknown ;; | |
9865 | esac | |
9866 | fi | |
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | striplib= | |
9885 | old_striplib= | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9887 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9888 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9889 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9890 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9892 | $as_echo "yes" >&6; } | |
9893 | else | |
9894 | # FIXME - insert some real tests, host_os isn't really good enough | |
9895 | case $host_os in | |
9896 | darwin*) | |
9897 | if test -n "$STRIP" ; then | |
9898 | striplib="$STRIP -x" | |
9899 | old_striplib="$STRIP -S" | |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9901 | $as_echo "yes" >&6; } | |
9902 | else | |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9904 | $as_echo "no" >&6; } | |
9905 | fi | |
9906 | ;; | |
9907 | *) | |
9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9909 | $as_echo "no" >&6; } | |
9910 | ;; | |
9911 | esac | |
9912 | fi | |
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | # Report which library types will actually be built | |
9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9927 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9929 | $as_echo "$can_build_shared" >&6; } | |
9930 | ||
9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9932 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9933 | test "$can_build_shared" = "no" && enable_shared=no | |
9934 | ||
9935 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9936 | # are all built from PIC. | |
9937 | case $host_os in | |
9938 | aix3*) | |
9939 | test "$enable_shared" = yes && enable_static=no | |
9940 | if test -n "$RANLIB"; then | |
9941 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9942 | postinstall_cmds='$RANLIB $lib' | |
9943 | fi | |
9944 | ;; | |
9945 | ||
9946 | aix[4-9]*) | |
9947 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9948 | test "$enable_shared" = yes && enable_static=no | |
9949 | fi | |
9950 | ;; | |
9951 | esac | |
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
9953 | $as_echo "$enable_shared" >&6; } | |
9954 | ||
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
9956 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
9957 | # Make sure either enable_shared or enable_static is yes. | |
9958 | test "$enable_shared" = yes || enable_static=yes | |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
9960 | $as_echo "$enable_static" >&6; } | |
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | fi | |
9966 | ac_ext=c | |
9967 | ac_cpp='$CPP $CPPFLAGS' | |
9968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9971 | ||
9972 | CC="$lt_save_CC" | |
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ac_config_commands="$ac_config_commands libtool" | |
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | # Only expand once: | |
9992 | ||
9993 | ||
9994 | ||
9995 | ||
9996 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9997 | if test -n "$ac_tool_prefix"; then | |
9998 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9999 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10001 | $as_echo_n "checking for $ac_word... " >&6; } | |
10002 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
10003 | $as_echo_n "(cached) " >&6 | |
10004 | else | |
10005 | case $PKG_CONFIG in | |
10006 | [\\/]* | ?:[\\/]*) | |
10007 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10008 | ;; | |
10009 | *) | |
10010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10011 | for as_dir in $PATH | |
10012 | do | |
10013 | IFS=$as_save_IFS | |
10014 | test -z "$as_dir" && as_dir=. | |
10015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10017 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10019 | break 2 | |
10020 | fi | |
10021 | done | |
10022 | done | |
10023 | IFS=$as_save_IFS | |
10024 | ||
10025 | ;; | |
10026 | esac | |
10027 | fi | |
10028 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10029 | if test -n "$PKG_CONFIG"; then | |
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10031 | $as_echo "$PKG_CONFIG" >&6; } | |
10032 | else | |
10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10034 | $as_echo "no" >&6; } | |
10035 | fi | |
10036 | ||
10037 | ||
10038 | fi | |
10039 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10040 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10041 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10042 | set dummy pkg-config; ac_word=$2 | |
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10044 | $as_echo_n "checking for $ac_word... " >&6; } | |
10045 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10046 | $as_echo_n "(cached) " >&6 | |
10047 | else | |
10048 | case $ac_pt_PKG_CONFIG in | |
10049 | [\\/]* | ?:[\\/]*) | |
10050 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10051 | ;; | |
10052 | *) | |
10053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10054 | for as_dir in $PATH | |
10055 | do | |
10056 | IFS=$as_save_IFS | |
10057 | test -z "$as_dir" && as_dir=. | |
10058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10060 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10062 | break 2 | |
10063 | fi | |
10064 | done | |
10065 | done | |
10066 | IFS=$as_save_IFS | |
10067 | ||
10068 | ;; | |
10069 | esac | |
10070 | fi | |
10071 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10072 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10074 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10075 | else | |
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10077 | $as_echo "no" >&6; } | |
10078 | fi | |
10079 | ||
10080 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10081 | PKG_CONFIG="" | |
10082 | else | |
10083 | case $cross_compiling:$ac_tool_warned in | |
10084 | yes:) | |
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10087 | ac_tool_warned=yes ;; | |
10088 | esac | |
10089 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10090 | fi | |
10091 | else | |
10092 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10093 | fi | |
10094 | ||
10095 | fi | |
10096 | if test -n "$PKG_CONFIG"; then | |
10097 | _pkg_min_version=0.22 | |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10099 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10100 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10102 | $as_echo "yes" >&6; } | |
10103 | else | |
10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10105 | $as_echo "no" >&6; } | |
10106 | PKG_CONFIG="" | |
10107 | fi | |
10108 | ||
10109 | fi | |
10110 | ac_ext=cpp | |
10111 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10112 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10113 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10114 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10115 | if test -z "$CXX"; then | |
10116 | if test -n "$CCC"; then | |
10117 | CXX=$CCC | |
10118 | else | |
10119 | if test -n "$ac_tool_prefix"; then | |
10120 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10121 | do | |
10122 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10123 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10125 | $as_echo_n "checking for $ac_word... " >&6; } | |
10126 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10127 | $as_echo_n "(cached) " >&6 | |
10128 | else | |
10129 | if test -n "$CXX"; then | |
10130 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10131 | else | |
10132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10133 | for as_dir in $PATH | |
10134 | do | |
10135 | IFS=$as_save_IFS | |
10136 | test -z "$as_dir" && as_dir=. | |
10137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10139 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10141 | break 2 | |
10142 | fi | |
10143 | done | |
10144 | done | |
10145 | IFS=$as_save_IFS | |
10146 | ||
10147 | fi | |
10148 | fi | |
10149 | CXX=$ac_cv_prog_CXX | |
10150 | if test -n "$CXX"; then | |
10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10152 | $as_echo "$CXX" >&6; } | |
10153 | else | |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10155 | $as_echo "no" >&6; } | |
10156 | fi | |
10157 | ||
10158 | ||
10159 | test -n "$CXX" && break | |
10160 | done | |
10161 | fi | |
10162 | if test -z "$CXX"; then | |
10163 | ac_ct_CXX=$CXX | |
10164 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10165 | do | |
10166 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10167 | set dummy $ac_prog; ac_word=$2 | |
10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10169 | $as_echo_n "checking for $ac_word... " >&6; } | |
10170 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10171 | $as_echo_n "(cached) " >&6 | |
10172 | else | |
10173 | if test -n "$ac_ct_CXX"; then | |
10174 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10175 | else | |
10176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10177 | for as_dir in $PATH | |
10178 | do | |
10179 | IFS=$as_save_IFS | |
10180 | test -z "$as_dir" && as_dir=. | |
10181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10183 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10185 | break 2 | |
10186 | fi | |
10187 | done | |
10188 | done | |
10189 | IFS=$as_save_IFS | |
10190 | ||
10191 | fi | |
10192 | fi | |
10193 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10194 | if test -n "$ac_ct_CXX"; then | |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10196 | $as_echo "$ac_ct_CXX" >&6; } | |
10197 | else | |
10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10199 | $as_echo "no" >&6; } | |
10200 | fi | |
10201 | ||
10202 | ||
10203 | test -n "$ac_ct_CXX" && break | |
10204 | done | |
10205 | ||
10206 | if test "x$ac_ct_CXX" = x; then | |
10207 | CXX="g++" | |
10208 | else | |
10209 | case $cross_compiling:$ac_tool_warned in | |
10210 | yes:) | |
10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10212 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10213 | ac_tool_warned=yes ;; | |
10214 | esac | |
10215 | CXX=$ac_ct_CXX | |
10216 | fi | |
10217 | fi | |
10218 | ||
10219 | fi | |
10220 | fi | |
10221 | # Provide some information about the compiler. | |
10222 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10223 | set X $ac_compile | |
10224 | ac_compiler=$2 | |
10225 | for ac_option in --version -v -V -qversion; do | |
10226 | { { ac_try="$ac_compiler $ac_option >&5" | |
10227 | case "(($ac_try" in | |
10228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10229 | *) ac_try_echo=$ac_try;; | |
10230 | esac | |
10231 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10232 | $as_echo "$ac_try_echo"; } >&5 | |
10233 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10234 | ac_status=$? | |
10235 | if test -s conftest.err; then | |
10236 | sed '10a\ | |
10237 | ... rest of stderr output deleted ... | |
10238 | 10q' conftest.err >conftest.er1 | |
10239 | cat conftest.er1 >&5 | |
10240 | fi | |
10241 | rm -f conftest.er1 conftest.err | |
10242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10243 | test $ac_status = 0; } | |
10244 | done | |
10245 | ||
10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
10247 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10248 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10249 | $as_echo_n "(cached) " >&6 | |
10250 | else | |
10251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10252 | /* end confdefs.h. */ | |
10253 | ||
10254 | int | |
10255 | main () | |
10256 | { | |
10257 | #ifndef __GNUC__ | |
10258 | choke me | |
10259 | #endif | |
10260 | ||
10261 | ; | |
10262 | return 0; | |
10263 | } | |
10264 | _ACEOF | |
10265 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10266 | ac_compiler_gnu=yes | |
10267 | else | |
10268 | ac_compiler_gnu=no | |
10269 | fi | |
10270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10271 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10272 | ||
10273 | fi | |
10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10275 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10276 | if test $ac_compiler_gnu = yes; then | |
10277 | GXX=yes | |
10278 | else | |
10279 | GXX= | |
10280 | fi | |
10281 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
10282 | ac_save_CXXFLAGS=$CXXFLAGS | |
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10284 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10285 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10286 | $as_echo_n "(cached) " >&6 | |
10287 | else | |
10288 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10289 | ac_cxx_werror_flag=yes | |
10290 | ac_cv_prog_cxx_g=no | |
10291 | CXXFLAGS="-g" | |
10292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10293 | /* end confdefs.h. */ | |
10294 | ||
10295 | int | |
10296 | main () | |
10297 | { | |
10298 | ||
10299 | ; | |
10300 | return 0; | |
10301 | } | |
10302 | _ACEOF | |
10303 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10304 | ac_cv_prog_cxx_g=yes | |
10305 | else | |
10306 | CXXFLAGS="" | |
10307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10308 | /* end confdefs.h. */ | |
10309 | ||
10310 | int | |
10311 | main () | |
10312 | { | |
10313 | ||
10314 | ; | |
10315 | return 0; | |
10316 | } | |
10317 | _ACEOF | |
10318 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10319 | ||
10320 | else | |
10321 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10322 | CXXFLAGS="-g" | |
10323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10324 | /* end confdefs.h. */ | |
10325 | ||
10326 | int | |
10327 | main () | |
10328 | { | |
10329 | ||
10330 | ; | |
10331 | return 0; | |
10332 | } | |
10333 | _ACEOF | |
10334 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10335 | ac_cv_prog_cxx_g=yes | |
10336 | fi | |
10337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10338 | fi | |
10339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10340 | fi | |
10341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10342 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10343 | fi | |
10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10345 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10346 | if test "$ac_test_CXXFLAGS" = set; then | |
10347 | CXXFLAGS=$ac_save_CXXFLAGS | |
10348 | elif test $ac_cv_prog_cxx_g = yes; then | |
10349 | if test "$GXX" = yes; then | |
10350 | CXXFLAGS="-g -O2" | |
10351 | else | |
10352 | CXXFLAGS="-g" | |
10353 | fi | |
10354 | else | |
10355 | if test "$GXX" = yes; then | |
10356 | CXXFLAGS="-O2" | |
10357 | else | |
10358 | CXXFLAGS= | |
10359 | fi | |
10360 | fi | |
10361 | ac_ext=c | |
10362 | ac_cpp='$CPP $CPPFLAGS' | |
10363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10366 | ||
10367 | ||
10368 | ac_ext=cpp | |
10369 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10370 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10371 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10372 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10373 | if test -z "$CXX"; then | |
10374 | if test -n "$CCC"; then | |
10375 | CXX=$CCC | |
10376 | else | |
10377 | if test -n "$ac_tool_prefix"; then | |
10378 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10379 | do | |
10380 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10381 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10383 | $as_echo_n "checking for $ac_word... " >&6; } | |
10384 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10385 | $as_echo_n "(cached) " >&6 | |
10386 | else | |
10387 | if test -n "$CXX"; then | |
10388 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10389 | else | |
10390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10391 | for as_dir in $PATH | |
10392 | do | |
10393 | IFS=$as_save_IFS | |
10394 | test -z "$as_dir" && as_dir=. | |
10395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10397 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10399 | break 2 | |
10400 | fi | |
10401 | done | |
10402 | done | |
10403 | IFS=$as_save_IFS | |
10404 | ||
10405 | fi | |
10406 | fi | |
10407 | CXX=$ac_cv_prog_CXX | |
10408 | if test -n "$CXX"; then | |
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10410 | $as_echo "$CXX" >&6; } | |
10411 | else | |
10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10413 | $as_echo "no" >&6; } | |
10414 | fi | |
10415 | ||
10416 | ||
10417 | test -n "$CXX" && break | |
10418 | done | |
10419 | fi | |
10420 | if test -z "$CXX"; then | |
10421 | ac_ct_CXX=$CXX | |
10422 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10423 | do | |
10424 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10425 | set dummy $ac_prog; ac_word=$2 | |
10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10427 | $as_echo_n "checking for $ac_word... " >&6; } | |
10428 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10429 | $as_echo_n "(cached) " >&6 | |
10430 | else | |
10431 | if test -n "$ac_ct_CXX"; then | |
10432 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10433 | else | |
10434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10435 | for as_dir in $PATH | |
10436 | do | |
10437 | IFS=$as_save_IFS | |
10438 | test -z "$as_dir" && as_dir=. | |
10439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10441 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10443 | break 2 | |
10444 | fi | |
10445 | done | |
10446 | done | |
10447 | IFS=$as_save_IFS | |
10448 | ||
10449 | fi | |
10450 | fi | |
10451 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10452 | if test -n "$ac_ct_CXX"; then | |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10454 | $as_echo "$ac_ct_CXX" >&6; } | |
10455 | else | |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10457 | $as_echo "no" >&6; } | |
10458 | fi | |
10459 | ||
10460 | ||
10461 | test -n "$ac_ct_CXX" && break | |
10462 | done | |
10463 | ||
10464 | if test "x$ac_ct_CXX" = x; then | |
10465 | CXX="g++" | |
10466 | else | |
10467 | case $cross_compiling:$ac_tool_warned in | |
10468 | yes:) | |
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10470 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10471 | ac_tool_warned=yes ;; | |
10472 | esac | |
10473 | CXX=$ac_ct_CXX | |
10474 | fi | |
10475 | fi | |
10476 | ||
10477 | fi | |
10478 | fi | |
10479 | # Provide some information about the compiler. | |
10480 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10481 | set X $ac_compile | |
10482 | ac_compiler=$2 | |
10483 | for ac_option in --version -v -V -qversion; do | |
10484 | { { ac_try="$ac_compiler $ac_option >&5" | |
10485 | case "(($ac_try" in | |
10486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10487 | *) ac_try_echo=$ac_try;; | |
10488 | esac | |
10489 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10490 | $as_echo "$ac_try_echo"; } >&5 | |
10491 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10492 | ac_status=$? | |
10493 | if test -s conftest.err; then | |
10494 | sed '10a\ | |
10495 | ... rest of stderr output deleted ... | |
10496 | 10q' conftest.err >conftest.er1 | |
10497 | cat conftest.er1 >&5 | |
10498 | fi | |
10499 | rm -f conftest.er1 conftest.err | |
10500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10501 | test $ac_status = 0; } | |
10502 | done | |
10503 | ||
10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
10505 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10506 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10507 | $as_echo_n "(cached) " >&6 | |
10508 | else | |
10509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10510 | /* end confdefs.h. */ | |
10511 | ||
10512 | int | |
10513 | main () | |
10514 | { | |
10515 | #ifndef __GNUC__ | |
10516 | choke me | |
10517 | #endif | |
10518 | ||
10519 | ; | |
10520 | return 0; | |
10521 | } | |
10522 | _ACEOF | |
10523 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10524 | ac_compiler_gnu=yes | |
10525 | else | |
10526 | ac_compiler_gnu=no | |
10527 | fi | |
10528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10529 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10530 | ||
10531 | fi | |
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10533 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10534 | if test $ac_compiler_gnu = yes; then | |
10535 | GXX=yes | |
10536 | else | |
10537 | GXX= | |
10538 | fi | |
10539 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
10540 | ac_save_CXXFLAGS=$CXXFLAGS | |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10542 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10543 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10544 | $as_echo_n "(cached) " >&6 | |
10545 | else | |
10546 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10547 | ac_cxx_werror_flag=yes | |
10548 | ac_cv_prog_cxx_g=no | |
10549 | CXXFLAGS="-g" | |
10550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10551 | /* end confdefs.h. */ | |
10552 | ||
10553 | int | |
10554 | main () | |
10555 | { | |
10556 | ||
10557 | ; | |
10558 | return 0; | |
10559 | } | |
10560 | _ACEOF | |
10561 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10562 | ac_cv_prog_cxx_g=yes | |
10563 | else | |
10564 | CXXFLAGS="" | |
10565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10566 | /* end confdefs.h. */ | |
10567 | ||
10568 | int | |
10569 | main () | |
10570 | { | |
10571 | ||
10572 | ; | |
10573 | return 0; | |
10574 | } | |
10575 | _ACEOF | |
10576 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10577 | ||
10578 | else | |
10579 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10580 | CXXFLAGS="-g" | |
10581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10582 | /* end confdefs.h. */ | |
10583 | ||
10584 | int | |
10585 | main () | |
10586 | { | |
10587 | ||
10588 | ; | |
10589 | return 0; | |
10590 | } | |
10591 | _ACEOF | |
10592 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10593 | ac_cv_prog_cxx_g=yes | |
10594 | fi | |
10595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10596 | fi | |
10597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10598 | fi | |
10599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10600 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10601 | fi | |
10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10603 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10604 | if test "$ac_test_CXXFLAGS" = set; then | |
10605 | CXXFLAGS=$ac_save_CXXFLAGS | |
10606 | elif test $ac_cv_prog_cxx_g = yes; then | |
10607 | if test "$GXX" = yes; then | |
10608 | CXXFLAGS="-g -O2" | |
10609 | else | |
10610 | CXXFLAGS="-g" | |
10611 | fi | |
10612 | else | |
10613 | if test "$GXX" = yes; then | |
10614 | CXXFLAGS="-O2" | |
10615 | else | |
10616 | CXXFLAGS= | |
10617 | fi | |
10618 | fi | |
10619 | ac_ext=c | |
10620 | ac_cpp='$CPP $CPPFLAGS' | |
10621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10624 | ||
10625 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
10626 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10627 | (test "X$CXX" != "Xg++"))) ; then | |
10628 | ac_ext=cpp | |
10629 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10630 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10631 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10632 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
10634 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
10635 | if test -z "$CXXCPP"; then | |
10636 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
10637 | $as_echo_n "(cached) " >&6 | |
10638 | else | |
10639 | # Double quotes because CXXCPP needs to be expanded | |
10640 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
10641 | do | |
10642 | ac_preproc_ok=false | |
10643 | for ac_cxx_preproc_warn_flag in '' yes | |
10644 | do | |
10645 | # Use a header file that comes with gcc, so configuring glibc | |
10646 | # with a fresh cross-compiler works. | |
10647 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10648 | # <limits.h> exists even on freestanding compilers. | |
10649 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10650 | # not just through cpp. "Syntax error" is here to catch this case. | |
10651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10652 | /* end confdefs.h. */ | |
10653 | #ifdef __STDC__ | |
10654 | # include <limits.h> | |
10655 | #else | |
10656 | # include <assert.h> | |
10657 | #endif | |
10658 | Syntax error | |
10659 | _ACEOF | |
10660 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10661 | ||
10662 | else | |
10663 | # Broken: fails on valid input. | |
10664 | continue | |
10665 | fi | |
10666 | rm -f conftest.err conftest.$ac_ext | |
10667 | ||
10668 | # OK, works on sane cases. Now check whether nonexistent headers | |
10669 | # can be detected and how. | |
10670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10671 | /* end confdefs.h. */ | |
10672 | #include <ac_nonexistent.h> | |
10673 | _ACEOF | |
10674 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10675 | # Broken: success on invalid input. | |
10676 | continue | |
10677 | else | |
10678 | # Passes both tests. | |
10679 | ac_preproc_ok=: | |
10680 | break | |
10681 | fi | |
10682 | rm -f conftest.err conftest.$ac_ext | |
10683 | ||
10684 | done | |
10685 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10686 | rm -f conftest.err conftest.$ac_ext | |
10687 | if $ac_preproc_ok; then : | |
10688 | break | |
10689 | fi | |
10690 | ||
10691 | done | |
10692 | ac_cv_prog_CXXCPP=$CXXCPP | |
10693 | ||
10694 | fi | |
10695 | CXXCPP=$ac_cv_prog_CXXCPP | |
10696 | else | |
10697 | ac_cv_prog_CXXCPP=$CXXCPP | |
10698 | fi | |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
10700 | $as_echo "$CXXCPP" >&6; } | |
10701 | ac_preproc_ok=false | |
10702 | for ac_cxx_preproc_warn_flag in '' yes | |
10703 | do | |
10704 | # Use a header file that comes with gcc, so configuring glibc | |
10705 | # with a fresh cross-compiler works. | |
10706 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10707 | # <limits.h> exists even on freestanding compilers. | |
10708 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10709 | # not just through cpp. "Syntax error" is here to catch this case. | |
10710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10711 | /* end confdefs.h. */ | |
10712 | #ifdef __STDC__ | |
10713 | # include <limits.h> | |
10714 | #else | |
10715 | # include <assert.h> | |
10716 | #endif | |
10717 | Syntax error | |
10718 | _ACEOF | |
10719 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10720 | ||
10721 | else | |
10722 | # Broken: fails on valid input. | |
10723 | continue | |
10724 | fi | |
10725 | rm -f conftest.err conftest.$ac_ext | |
10726 | ||
10727 | # OK, works on sane cases. Now check whether nonexistent headers | |
10728 | # can be detected and how. | |
10729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10730 | /* end confdefs.h. */ | |
10731 | #include <ac_nonexistent.h> | |
10732 | _ACEOF | |
10733 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10734 | # Broken: success on invalid input. | |
10735 | continue | |
10736 | else | |
10737 | # Passes both tests. | |
10738 | ac_preproc_ok=: | |
10739 | break | |
10740 | fi | |
10741 | rm -f conftest.err conftest.$ac_ext | |
10742 | ||
10743 | done | |
10744 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10745 | rm -f conftest.err conftest.$ac_ext | |
10746 | if $ac_preproc_ok; then : | |
10747 | ||
10748 | else | |
10749 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10750 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10751 | _lt_caught_CXX_error=yes; } | |
10752 | fi | |
10753 | ||
10754 | ac_ext=c | |
10755 | ac_cpp='$CPP $CPPFLAGS' | |
10756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10759 | ||
10760 | else | |
10761 | _lt_caught_CXX_error=yes | |
10762 | fi | |
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ac_ext=cpp | |
10768 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10769 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10770 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10771 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10772 | ||
10773 | archive_cmds_need_lc_CXX=no | |
10774 | allow_undefined_flag_CXX= | |
10775 | always_export_symbols_CXX=no | |
10776 | archive_expsym_cmds_CXX= | |
10777 | compiler_needs_object_CXX=no | |
10778 | export_dynamic_flag_spec_CXX= | |
10779 | hardcode_direct_CXX=no | |
10780 | hardcode_direct_absolute_CXX=no | |
10781 | hardcode_libdir_flag_spec_CXX= | |
10782 | hardcode_libdir_flag_spec_ld_CXX= | |
10783 | hardcode_libdir_separator_CXX= | |
10784 | hardcode_minus_L_CXX=no | |
10785 | hardcode_shlibpath_var_CXX=unsupported | |
10786 | hardcode_automatic_CXX=no | |
10787 | inherit_rpath_CXX=no | |
10788 | module_cmds_CXX= | |
10789 | module_expsym_cmds_CXX= | |
10790 | link_all_deplibs_CXX=unknown | |
10791 | old_archive_cmds_CXX=$old_archive_cmds | |
10792 | no_undefined_flag_CXX= | |
10793 | whole_archive_flag_spec_CXX= | |
10794 | enable_shared_with_static_runtimes_CXX=no | |
10795 | ||
10796 | # Source file extension for C++ test sources. | |
10797 | ac_ext=cpp | |
10798 | ||
10799 | # Object file extension for compiled C++ test sources. | |
10800 | objext=o | |
10801 | objext_CXX=$objext | |
10802 | ||
10803 | # No sense in running all these tests if we already determined that | |
10804 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
10805 | # are currently assumed to apply to all compilers on this platform, | |
10806 | # and will be corrupted by setting them based on a non-working compiler. | |
10807 | if test "$_lt_caught_CXX_error" != yes; then | |
10808 | # Code to be used in simple compile tests | |
10809 | lt_simple_compile_test_code="int some_variable = 0;" | |
10810 | ||
10811 | # Code to be used in simple link tests | |
10812 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
10813 | ||
10814 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | # If no C compiler was specified, use CC. | |
10822 | LTCC=${LTCC-"$CC"} | |
10823 | ||
10824 | # If no C compiler flags were specified, use CFLAGS. | |
10825 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10826 | ||
10827 | # Allow CC to be a program name with arguments. | |
10828 | compiler=$CC | |
10829 | ||
10830 | ||
10831 | # save warnings/boilerplate of simple test code | |
10832 | ac_outfile=conftest.$ac_objext | |
10833 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10834 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10835 | _lt_compiler_boilerplate=`cat conftest.err` | |
10836 | $RM conftest* | |
10837 | ||
10838 | ac_outfile=conftest.$ac_objext | |
10839 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10840 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10841 | _lt_linker_boilerplate=`cat conftest.err` | |
10842 | $RM -r conftest* | |
10843 | ||
10844 | ||
10845 | # Allow CC to be a program name with arguments. | |
10846 | lt_save_CC=$CC | |
10847 | lt_save_LD=$LD | |
10848 | lt_save_GCC=$GCC | |
10849 | GCC=$GXX | |
10850 | lt_save_with_gnu_ld=$with_gnu_ld | |
10851 | lt_save_path_LD=$lt_cv_path_LD | |
10852 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10853 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
10854 | else | |
10855 | $as_unset lt_cv_prog_gnu_ld | |
10856 | fi | |
10857 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
10858 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
10859 | else | |
10860 | $as_unset lt_cv_path_LD | |
10861 | fi | |
10862 | test -z "${LDCXX+set}" || LD=$LDCXX | |
10863 | CC=${CXX-"c++"} | |
10864 | compiler=$CC | |
10865 | compiler_CXX=$CC | |
10866 | for cc_temp in $compiler""; do | |
10867 | case $cc_temp in | |
10868 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10869 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10870 | \-*) ;; | |
10871 | *) break;; | |
10872 | esac | |
10873 | done | |
10874 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10875 | ||
10876 | ||
10877 | if test -n "$compiler"; then | |
10878 | # We don't want -fno-exception when compiling C++ code, so set the | |
10879 | # no_builtin_flag separately | |
10880 | if test "$GXX" = yes; then | |
10881 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10882 | else | |
10883 | lt_prog_compiler_no_builtin_flag_CXX= | |
10884 | fi | |
10885 | ||
10886 | if test "$GXX" = yes; then | |
10887 | # Set up default GNU C++ configuration | |
10888 | ||
10889 | ||
10890 | ||
10891 | # Check whether --with-gnu-ld was given. | |
10892 | if test "${with_gnu_ld+set}" = set; then : | |
10893 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
10894 | else | |
10895 | with_gnu_ld=no | |
10896 | fi | |
10897 | ||
10898 | ac_prog=ld | |
10899 | if test "$GCC" = yes; then | |
10900 | # Check if gcc -print-prog-name=ld gives a path. | |
10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
10902 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
10903 | case $host in | |
10904 | *-*-mingw*) | |
10905 | # gcc leaves a trailing carriage return which upsets mingw | |
10906 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10907 | *) | |
10908 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10909 | esac | |
10910 | case $ac_prog in | |
10911 | # Accept absolute paths. | |
10912 | [\\/]* | ?:[\\/]*) | |
10913 | re_direlt='/[^/][^/]*/\.\./' | |
10914 | # Canonicalize the pathname of ld | |
10915 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
10916 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
10917 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
10918 | done | |
10919 | test -z "$LD" && LD="$ac_prog" | |
10920 | ;; | |
10921 | "") | |
10922 | # If it fails, then pretend we aren't using GCC. | |
10923 | ac_prog=ld | |
10924 | ;; | |
10925 | *) | |
10926 | # If it is relative, then search for the first ld in PATH. | |
10927 | with_gnu_ld=unknown | |
10928 | ;; | |
10929 | esac | |
10930 | elif test "$with_gnu_ld" = yes; then | |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
10932 | $as_echo_n "checking for GNU ld... " >&6; } | |
10933 | else | |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
10935 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
10936 | fi | |
10937 | if test "${lt_cv_path_LD+set}" = set; then : | |
10938 | $as_echo_n "(cached) " >&6 | |
10939 | else | |
10940 | if test -z "$LD"; then | |
10941 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10942 | for ac_dir in $PATH; do | |
10943 | IFS="$lt_save_ifs" | |
10944 | test -z "$ac_dir" && ac_dir=. | |
10945 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10946 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
10947 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10948 | # but apparently some variants of GNU ld only accept -v. | |
10949 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10950 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10951 | *GNU* | *'with BFD'*) | |
10952 | test "$with_gnu_ld" != no && break | |
10953 | ;; | |
10954 | *) | |
10955 | test "$with_gnu_ld" != yes && break | |
10956 | ;; | |
10957 | esac | |
10958 | fi | |
10959 | done | |
10960 | IFS="$lt_save_ifs" | |
10961 | else | |
10962 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
10963 | fi | |
10964 | fi | |
10965 | ||
10966 | LD="$lt_cv_path_LD" | |
10967 | if test -n "$LD"; then | |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
10969 | $as_echo "$LD" >&6; } | |
10970 | else | |
10971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10972 | $as_echo "no" >&6; } | |
10973 | fi | |
10974 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
10976 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
10977 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
10978 | $as_echo_n "(cached) " >&6 | |
10979 | else | |
10980 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
10981 | case `$LD -v 2>&1 </dev/null` in | |
10982 | *GNU* | *'with BFD'*) | |
10983 | lt_cv_prog_gnu_ld=yes | |
10984 | ;; | |
10985 | *) | |
10986 | lt_cv_prog_gnu_ld=no | |
10987 | ;; | |
10988 | esac | |
10989 | fi | |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
10991 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
10992 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
11001 | # archiving commands below assume that GNU ld is being used. | |
11002 | if test "$with_gnu_ld" = yes; then | |
11003 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11004 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11005 | ||
11006 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11007 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11008 | ||
11009 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
11010 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11011 | # investigate it a little bit more. (MM) | |
11012 | wlarc='${wl}' | |
11013 | ||
11014 | # ancient GNU ld didn't support --whole-archive et. al. | |
11015 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11016 | $GREP 'no-whole-archive' > /dev/null; then | |
11017 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11018 | else | |
11019 | whole_archive_flag_spec_CXX= | |
11020 | fi | |
11021 | else | |
11022 | with_gnu_ld=no | |
11023 | wlarc= | |
11024 | ||
11025 | # A generic and very simple default shared library creation | |
11026 | # command for GNU C++ for the case where it uses the native | |
11027 | # linker, instead of GNU ld. If possible, this setting should | |
11028 | # overridden to take advantage of the native linker features on | |
11029 | # the platform it is being used on. | |
11030 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11031 | fi | |
11032 | ||
11033 | # Commands to make compiler produce verbose output that lists | |
11034 | # what "hidden" libraries, object files and flags are used when | |
11035 | # linking a shared library. | |
11036 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11037 | ||
11038 | else | |
11039 | GXX=no | |
11040 | with_gnu_ld=no | |
11041 | wlarc= | |
11042 | fi | |
11043 | ||
11044 | # PORTME: fill in a description of your system's C++ link characteristics | |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11046 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11047 | ld_shlibs_CXX=yes | |
11048 | case $host_os in | |
11049 | aix3*) | |
11050 | # FIXME: insert proper C++ library support | |
11051 | ld_shlibs_CXX=no | |
11052 | ;; | |
11053 | aix[4-9]*) | |
11054 | if test "$host_cpu" = ia64; then | |
11055 | # On IA64, the linker does run time linking by default, so we don't | |
11056 | # have to do anything special. | |
11057 | aix_use_runtimelinking=no | |
11058 | exp_sym_flag='-Bexport' | |
11059 | no_entry_flag="" | |
11060 | else | |
11061 | aix_use_runtimelinking=no | |
11062 | ||
11063 | # Test if we are trying to use run time linking or normal | |
11064 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11065 | # need to do runtime linking. | |
11066 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11067 | for ld_flag in $LDFLAGS; do | |
11068 | case $ld_flag in | |
11069 | *-brtl*) | |
11070 | aix_use_runtimelinking=yes | |
11071 | break | |
11072 | ;; | |
11073 | esac | |
11074 | done | |
11075 | ;; | |
11076 | esac | |
11077 | ||
11078 | exp_sym_flag='-bexport' | |
11079 | no_entry_flag='-bnoentry' | |
11080 | fi | |
11081 | ||
11082 | # When large executables or shared objects are built, AIX ld can | |
11083 | # have problems creating the table of contents. If linking a library | |
11084 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11085 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11086 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11087 | ||
11088 | archive_cmds_CXX='' | |
11089 | hardcode_direct_CXX=yes | |
11090 | hardcode_direct_absolute_CXX=yes | |
11091 | hardcode_libdir_separator_CXX=':' | |
11092 | link_all_deplibs_CXX=yes | |
11093 | file_list_spec_CXX='${wl}-f,' | |
11094 | ||
11095 | if test "$GXX" = yes; then | |
11096 | case $host_os in aix4.[012]|aix4.[012].*) | |
11097 | # We only want to do this on AIX 4.2 and lower, the check | |
11098 | # below for broken collect2 doesn't work under 4.3+ | |
11099 | collect2name=`${CC} -print-prog-name=collect2` | |
11100 | if test -f "$collect2name" && | |
11101 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11102 | then | |
11103 | # We have reworked collect2 | |
11104 | : | |
11105 | else | |
11106 | # We have old collect2 | |
11107 | hardcode_direct_CXX=unsupported | |
11108 | # It fails to find uninstalled libraries when the uninstalled | |
11109 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11110 | # to unsupported forces relinking | |
11111 | hardcode_minus_L_CXX=yes | |
11112 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11113 | hardcode_libdir_separator_CXX= | |
11114 | fi | |
11115 | esac | |
11116 | shared_flag='-shared' | |
11117 | if test "$aix_use_runtimelinking" = yes; then | |
11118 | shared_flag="$shared_flag "'${wl}-G' | |
11119 | fi | |
11120 | else | |
11121 | # not using gcc | |
11122 | if test "$host_cpu" = ia64; then | |
11123 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11124 | # chokes on -Wl,-G. The following line is correct: | |
11125 | shared_flag='-G' | |
11126 | else | |
11127 | if test "$aix_use_runtimelinking" = yes; then | |
11128 | shared_flag='${wl}-G' | |
11129 | else | |
11130 | shared_flag='${wl}-bM:SRE' | |
11131 | fi | |
11132 | fi | |
11133 | fi | |
11134 | ||
11135 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11136 | # It seems that -bexpall does not export symbols beginning with | |
11137 | # underscore (_), so it is better to generate a list of symbols to | |
11138 | # export. | |
11139 | always_export_symbols_CXX=yes | |
11140 | if test "$aix_use_runtimelinking" = yes; then | |
11141 | # Warning - without using the other runtime loading flags (-brtl), | |
11142 | # -berok will link without error, but may produce a broken library. | |
11143 | allow_undefined_flag_CXX='-berok' | |
11144 | # Determine the default libpath from the value encoded in an empty | |
11145 | # executable. | |
11146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11147 | /* end confdefs.h. */ | |
11148 | ||
11149 | int | |
11150 | main () | |
11151 | { | |
11152 | ||
11153 | ; | |
11154 | return 0; | |
11155 | } | |
11156 | _ACEOF | |
11157 | if ac_fn_cxx_try_link "$LINENO"; then : | |
11158 | ||
11159 | lt_aix_libpath_sed=' | |
11160 | /Import File Strings/,/^$/ { | |
11161 | /^0/ { | |
11162 | s/^0 *\(.*\)$/\1/ | |
11163 | p | |
11164 | } | |
11165 | }' | |
11166 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11167 | # Check for a 64-bit object if we didn't find anything. | |
11168 | if test -z "$aix_libpath"; then | |
11169 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11170 | fi | |
11171 | fi | |
11172 | rm -f core conftest.err conftest.$ac_objext \ | |
11173 | conftest$ac_exeext conftest.$ac_ext | |
11174 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11175 | ||
11176 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11177 | ||
11178 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11179 | else | |
11180 | if test "$host_cpu" = ia64; then | |
11181 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11182 | allow_undefined_flag_CXX="-z nodefs" | |
11183 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
11184 | else | |
11185 | # Determine the default libpath from the value encoded in an | |
11186 | # empty executable. | |
11187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11188 | /* end confdefs.h. */ | |
11189 | ||
11190 | int | |
11191 | main () | |
11192 | { | |
11193 | ||
11194 | ; | |
11195 | return 0; | |
11196 | } | |
11197 | _ACEOF | |
11198 | if ac_fn_cxx_try_link "$LINENO"; then : | |
11199 | ||
11200 | lt_aix_libpath_sed=' | |
11201 | /Import File Strings/,/^$/ { | |
11202 | /^0/ { | |
11203 | s/^0 *\(.*\)$/\1/ | |
11204 | p | |
11205 | } | |
11206 | }' | |
11207 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11208 | # Check for a 64-bit object if we didn't find anything. | |
11209 | if test -z "$aix_libpath"; then | |
11210 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11211 | fi | |
11212 | fi | |
11213 | rm -f core conftest.err conftest.$ac_objext \ | |
11214 | conftest$ac_exeext conftest.$ac_ext | |
11215 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11216 | ||
11217 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11218 | # Warning - without using the other run time loading flags, | |
11219 | # -berok will link without error, but may produce a broken library. | |
11220 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11221 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11222 | # Exported symbols can be pulled into shared objects from archives | |
11223 | whole_archive_flag_spec_CXX='$convenience' | |
11224 | archive_cmds_need_lc_CXX=yes | |
11225 | # This is similar to how AIX traditionally builds its shared | |
11226 | # libraries. | |
11227 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11228 | fi | |
11229 | fi | |
11230 | ;; | |
11231 | ||
11232 | beos*) | |
11233 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11234 | allow_undefined_flag_CXX=unsupported | |
11235 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11236 | # support --undefined. This deserves some investigation. FIXME | |
11237 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11238 | else | |
11239 | ld_shlibs_CXX=no | |
11240 | fi | |
11241 | ;; | |
11242 | ||
11243 | chorus*) | |
11244 | case $cc_basename in | |
11245 | *) | |
11246 | # FIXME: insert proper C++ library support | |
11247 | ld_shlibs_CXX=no | |
11248 | ;; | |
11249 | esac | |
11250 | ;; | |
11251 | ||
11252 | cygwin* | mingw* | pw32* | cegcc*) | |
11253 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11254 | # as there is no search path for DLLs. | |
11255 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11256 | allow_undefined_flag_CXX=unsupported | |
11257 | always_export_symbols_CXX=no | |
11258 | enable_shared_with_static_runtimes_CXX=yes | |
11259 | ||
11260 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
11261 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11262 | # If the export-symbols file already is a .def file (1st line | |
11263 | # is EXPORTS), use it as is; otherwise, prepend... | |
11264 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11265 | cp $export_symbols $output_objdir/$soname.def; | |
11266 | else | |
11267 | echo EXPORTS > $output_objdir/$soname.def; | |
11268 | cat $export_symbols >> $output_objdir/$soname.def; | |
11269 | fi~ | |
11270 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11271 | else | |
11272 | ld_shlibs_CXX=no | |
11273 | fi | |
11274 | ;; | |
11275 | darwin* | rhapsody*) | |
11276 | ||
11277 | ||
11278 | archive_cmds_need_lc_CXX=no | |
11279 | hardcode_direct_CXX=no | |
11280 | hardcode_automatic_CXX=yes | |
11281 | hardcode_shlibpath_var_CXX=unsupported | |
11282 | whole_archive_flag_spec_CXX='' | |
11283 | link_all_deplibs_CXX=yes | |
11284 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11285 | case $cc_basename in | |
11286 | ifort*) _lt_dar_can_shared=yes ;; | |
11287 | *) _lt_dar_can_shared=$GCC ;; | |
11288 | esac | |
11289 | if test "$_lt_dar_can_shared" = "yes"; then | |
11290 | output_verbose_link_cmd=echo | |
11291 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
11292 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11293 | archive_expsym_cmds_CXX="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}" | |
11294 | module_expsym_cmds_CXX="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}" | |
11295 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11296 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
11297 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
11298 | fi | |
11299 | ||
11300 | else | |
11301 | ld_shlibs_CXX=no | |
11302 | fi | |
11303 | ||
11304 | ;; | |
11305 | ||
11306 | dgux*) | |
11307 | case $cc_basename in | |
11308 | ec++*) | |
11309 | # FIXME: insert proper C++ library support | |
11310 | ld_shlibs_CXX=no | |
11311 | ;; | |
11312 | ghcx*) | |
11313 | # Green Hills C++ Compiler | |
11314 | # FIXME: insert proper C++ library support | |
11315 | ld_shlibs_CXX=no | |
11316 | ;; | |
11317 | *) | |
11318 | # FIXME: insert proper C++ library support | |
11319 | ld_shlibs_CXX=no | |
11320 | ;; | |
11321 | esac | |
11322 | ;; | |
11323 | ||
11324 | freebsd[12]*) | |
11325 | # C++ shared libraries reported to be fairly broken before | |
11326 | # switch to ELF | |
11327 | ld_shlibs_CXX=no | |
11328 | ;; | |
11329 | ||
11330 | freebsd-elf*) | |
11331 | archive_cmds_need_lc_CXX=no | |
11332 | ;; | |
11333 | ||
11334 | freebsd* | dragonfly*) | |
11335 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11336 | # conventions | |
11337 | ld_shlibs_CXX=yes | |
11338 | ;; | |
11339 | ||
11340 | gnu*) | |
11341 | ;; | |
11342 | ||
11343 | hpux9*) | |
11344 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11345 | hardcode_libdir_separator_CXX=: | |
11346 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11347 | hardcode_direct_CXX=yes | |
11348 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11349 | # but as the default | |
11350 | # location of the library. | |
11351 | ||
11352 | case $cc_basename in | |
11353 | CC*) | |
11354 | # FIXME: insert proper C++ library support | |
11355 | ld_shlibs_CXX=no | |
11356 | ;; | |
11357 | aCC*) | |
11358 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11359 | # Commands to make compiler produce verbose output that lists | |
11360 | # what "hidden" libraries, object files and flags are used when | |
11361 | # linking a shared library. | |
11362 | # | |
11363 | # There doesn't appear to be a way to prevent this compiler from | |
11364 | # explicitly linking system object files so we need to strip them | |
11365 | # from the output so that they don't get included in the library | |
11366 | # dependencies. | |
11367 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11368 | ;; | |
11369 | *) | |
11370 | if test "$GXX" = yes; then | |
11371 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11372 | else | |
11373 | # FIXME: insert proper C++ library support | |
11374 | ld_shlibs_CXX=no | |
11375 | fi | |
11376 | ;; | |
11377 | esac | |
11378 | ;; | |
11379 | ||
11380 | hpux10*|hpux11*) | |
11381 | if test $with_gnu_ld = no; then | |
11382 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11383 | hardcode_libdir_separator_CXX=: | |
11384 | ||
11385 | case $host_cpu in | |
11386 | hppa*64*|ia64*) | |
11387 | ;; | |
11388 | *) | |
11389 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11390 | ;; | |
11391 | esac | |
11392 | fi | |
11393 | case $host_cpu in | |
11394 | hppa*64*|ia64*) | |
11395 | hardcode_direct_CXX=no | |
11396 | hardcode_shlibpath_var_CXX=no | |
11397 | ;; | |
11398 | *) | |
11399 | hardcode_direct_CXX=yes | |
11400 | hardcode_direct_absolute_CXX=yes | |
11401 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11402 | # but as the default | |
11403 | # location of the library. | |
11404 | ;; | |
11405 | esac | |
11406 | ||
11407 | case $cc_basename in | |
11408 | CC*) | |
11409 | # FIXME: insert proper C++ library support | |
11410 | ld_shlibs_CXX=no | |
11411 | ;; | |
11412 | aCC*) | |
11413 | case $host_cpu in | |
11414 | hppa*64*) | |
11415 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11416 | ;; | |
11417 | ia64*) | |
11418 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11419 | ;; | |
11420 | *) | |
11421 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11422 | ;; | |
11423 | esac | |
11424 | # Commands to make compiler produce verbose output that lists | |
11425 | # what "hidden" libraries, object files and flags are used when | |
11426 | # linking a shared library. | |
11427 | # | |
11428 | # There doesn't appear to be a way to prevent this compiler from | |
11429 | # explicitly linking system object files so we need to strip them | |
11430 | # from the output so that they don't get included in the library | |
11431 | # dependencies. | |
11432 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11433 | ;; | |
11434 | *) | |
11435 | if test "$GXX" = yes; then | |
11436 | if test $with_gnu_ld = no; then | |
11437 | case $host_cpu in | |
11438 | hppa*64*) | |
11439 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11440 | ;; | |
11441 | ia64*) | |
11442 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11443 | ;; | |
11444 | *) | |
11445 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11446 | ;; | |
11447 | esac | |
11448 | fi | |
11449 | else | |
11450 | # FIXME: insert proper C++ library support | |
11451 | ld_shlibs_CXX=no | |
11452 | fi | |
11453 | ;; | |
11454 | esac | |
11455 | ;; | |
11456 | ||
11457 | interix[3-9]*) | |
11458 | hardcode_direct_CXX=no | |
11459 | hardcode_shlibpath_var_CXX=no | |
11460 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11461 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11462 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11463 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11464 | # default) and relocated if they conflict, which is a slow very memory | |
11465 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11466 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11467 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11468 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11469 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11470 | ;; | |
11471 | irix5* | irix6*) | |
11472 | case $cc_basename in | |
11473 | CC*) | |
11474 | # SGI C++ | |
11475 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11476 | ||
11477 | # Archives containing C++ object files must be created using | |
11478 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11479 | # necessary to make sure instantiated templates are included | |
11480 | # in the archive. | |
11481 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11482 | ;; | |
11483 | *) | |
11484 | if test "$GXX" = yes; then | |
11485 | if test "$with_gnu_ld" = no; then | |
11486 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11487 | else | |
11488 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
11489 | fi | |
11490 | fi | |
11491 | link_all_deplibs_CXX=yes | |
11492 | ;; | |
11493 | esac | |
11494 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11495 | hardcode_libdir_separator_CXX=: | |
11496 | inherit_rpath_CXX=yes | |
11497 | ;; | |
11498 | ||
11499 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11500 | case $cc_basename in | |
11501 | KCC*) | |
11502 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11503 | ||
11504 | # KCC will only create a shared library if the output file | |
11505 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11506 | # to its proper name (with version) after linking. | |
11507 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11508 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
11509 | # Commands to make compiler produce verbose output that lists | |
11510 | # what "hidden" libraries, object files and flags are used when | |
11511 | # linking a shared library. | |
11512 | # | |
11513 | # There doesn't appear to be a way to prevent this compiler from | |
11514 | # explicitly linking system object files so we need to strip them | |
11515 | # from the output so that they don't get included in the library | |
11516 | # dependencies. | |
11517 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11518 | ||
11519 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11520 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11521 | ||
11522 | # Archives containing C++ object files must be created using | |
11523 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11524 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11525 | ;; | |
11526 | icpc* | ecpc* ) | |
11527 | # Intel C++ | |
11528 | with_gnu_ld=yes | |
11529 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11530 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11531 | # earlier do not add the objects themselves. | |
11532 | case `$CC -V 2>&1` in | |
11533 | *"Version 7."*) | |
11534 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11535 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11536 | ;; | |
11537 | *) # Version 8.0 or newer | |
11538 | tmp_idyn= | |
11539 | case $host_cpu in | |
11540 | ia64*) tmp_idyn=' -i_dynamic';; | |
11541 | esac | |
11542 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11543 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11544 | ;; | |
11545 | esac | |
11546 | archive_cmds_need_lc_CXX=no | |
11547 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11548 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11549 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11550 | ;; | |
11551 | pgCC* | pgcpp*) | |
11552 | # Portland Group C++ compiler | |
11553 | case `$CC -V` in | |
11554 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
11555 | prelink_cmds_CXX='tpldir=Template.dir~ | |
11556 | rm -rf $tpldir~ | |
11557 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
11558 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
11559 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
11560 | rm -rf $tpldir~ | |
11561 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
11562 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
11563 | $RANLIB $oldlib' | |
11564 | archive_cmds_CXX='tpldir=Template.dir~ | |
11565 | rm -rf $tpldir~ | |
11566 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11567 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11568 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
11569 | rm -rf $tpldir~ | |
11570 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11571 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11572 | ;; | |
11573 | *) # Version 6 will use weak symbols | |
11574 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11575 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11576 | ;; | |
11577 | esac | |
11578 | ||
11579 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11580 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11581 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11582 | ;; | |
11583 | cxx*) | |
11584 | # Compaq C++ | |
11585 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11586 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
11587 | ||
11588 | runpath_var=LD_RUN_PATH | |
11589 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11590 | hardcode_libdir_separator_CXX=: | |
11591 | ||
11592 | # Commands to make compiler produce verbose output that lists | |
11593 | # what "hidden" libraries, object files and flags are used when | |
11594 | # linking a shared library. | |
11595 | # | |
11596 | # There doesn't appear to be a way to prevent this compiler from | |
11597 | # explicitly linking system object files so we need to strip them | |
11598 | # from the output so that they don't get included in the library | |
11599 | # dependencies. | |
11600 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11601 | ;; | |
11602 | xl*) | |
11603 | # IBM XL 8.0 on PPC, with GNU ld | |
11604 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11605 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11606 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11607 | if test "x$supports_anon_versioning" = xyes; then | |
11608 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
11609 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11610 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11611 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
11612 | fi | |
11613 | ;; | |
11614 | *) | |
11615 | case `$CC -V 2>&1 | sed 5q` in | |
11616 | *Sun\ C*) | |
11617 | # Sun C++ 5.9 | |
11618 | no_undefined_flag_CXX=' -zdefs' | |
11619 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11620 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
11621 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11622 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11623 | compiler_needs_object_CXX=yes | |
11624 | ||
11625 | # Not sure whether something based on | |
11626 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
11627 | # would be better. | |
11628 | output_verbose_link_cmd='echo' | |
11629 | ||
11630 | # Archives containing C++ object files must be created using | |
11631 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11632 | # necessary to make sure instantiated templates are included | |
11633 | # in the archive. | |
11634 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11635 | ;; | |
11636 | esac | |
11637 | ;; | |
11638 | esac | |
11639 | ;; | |
11640 | ||
11641 | lynxos*) | |
11642 | # FIXME: insert proper C++ library support | |
11643 | ld_shlibs_CXX=no | |
11644 | ;; | |
11645 | ||
11646 | m88k*) | |
11647 | # FIXME: insert proper C++ library support | |
11648 | ld_shlibs_CXX=no | |
11649 | ;; | |
11650 | ||
11651 | mvs*) | |
11652 | case $cc_basename in | |
11653 | cxx*) | |
11654 | # FIXME: insert proper C++ library support | |
11655 | ld_shlibs_CXX=no | |
11656 | ;; | |
11657 | *) | |
11658 | # FIXME: insert proper C++ library support | |
11659 | ld_shlibs_CXX=no | |
11660 | ;; | |
11661 | esac | |
11662 | ;; | |
11663 | ||
11664 | netbsd*) | |
11665 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11666 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11667 | wlarc= | |
11668 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11669 | hardcode_direct_CXX=yes | |
11670 | hardcode_shlibpath_var_CXX=no | |
11671 | fi | |
11672 | # Workaround some broken pre-1.5 toolchains | |
11673 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11674 | ;; | |
11675 | ||
11676 | *nto* | *qnx*) | |
11677 | ld_shlibs_CXX=yes | |
11678 | ;; | |
11679 | ||
11680 | openbsd2*) | |
11681 | # C++ shared libraries are fairly broken | |
11682 | ld_shlibs_CXX=no | |
11683 | ;; | |
11684 | ||
11685 | openbsd*) | |
11686 | if test -f /usr/libexec/ld.so; then | |
11687 | hardcode_direct_CXX=yes | |
11688 | hardcode_shlibpath_var_CXX=no | |
11689 | hardcode_direct_absolute_CXX=yes | |
11690 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11691 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11692 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11693 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11694 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11695 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11696 | fi | |
11697 | output_verbose_link_cmd=echo | |
11698 | else | |
11699 | ld_shlibs_CXX=no | |
11700 | fi | |
11701 | ;; | |
11702 | ||
11703 | osf3* | osf4* | osf5*) | |
11704 | case $cc_basename in | |
11705 | KCC*) | |
11706 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11707 | ||
11708 | # KCC will only create a shared library if the output file | |
11709 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11710 | # to its proper name (with version) after linking. | |
11711 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11712 | ||
11713 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11714 | hardcode_libdir_separator_CXX=: | |
11715 | ||
11716 | # Archives containing C++ object files must be created using | |
11717 | # the KAI C++ compiler. | |
11718 | case $host in | |
11719 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
11720 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
11721 | esac | |
11722 | ;; | |
11723 | RCC*) | |
11724 | # Rational C++ 2.4.1 | |
11725 | # FIXME: insert proper C++ library support | |
11726 | ld_shlibs_CXX=no | |
11727 | ;; | |
11728 | cxx*) | |
11729 | case $host in | |
11730 | osf3*) | |
11731 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11732 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11733 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11734 | ;; | |
11735 | *) | |
11736 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11737 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11738 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11739 | echo "-hidden">> $lib.exp~ | |
11740 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
11741 | $RM $lib.exp' | |
11742 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11743 | ;; | |
11744 | esac | |
11745 | ||
11746 | hardcode_libdir_separator_CXX=: | |
11747 | ||
11748 | # Commands to make compiler produce verbose output that lists | |
11749 | # what "hidden" libraries, object files and flags are used when | |
11750 | # linking a shared library. | |
11751 | # | |
11752 | # There doesn't appear to be a way to prevent this compiler from | |
11753 | # explicitly linking system object files so we need to strip them | |
11754 | # from the output so that they don't get included in the library | |
11755 | # dependencies. | |
11756 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11757 | ;; | |
11758 | *) | |
11759 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11760 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11761 | case $host in | |
11762 | osf3*) | |
11763 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11764 | ;; | |
11765 | *) | |
11766 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11767 | ;; | |
11768 | esac | |
11769 | ||
11770 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11771 | hardcode_libdir_separator_CXX=: | |
11772 | ||
11773 | # Commands to make compiler produce verbose output that lists | |
11774 | # what "hidden" libraries, object files and flags are used when | |
11775 | # linking a shared library. | |
11776 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11777 | ||
11778 | else | |
11779 | # FIXME: insert proper C++ library support | |
11780 | ld_shlibs_CXX=no | |
11781 | fi | |
11782 | ;; | |
11783 | esac | |
11784 | ;; | |
11785 | ||
11786 | psos*) | |
11787 | # FIXME: insert proper C++ library support | |
11788 | ld_shlibs_CXX=no | |
11789 | ;; | |
11790 | ||
11791 | sunos4*) | |
11792 | case $cc_basename in | |
11793 | CC*) | |
11794 | # Sun C++ 4.x | |
11795 | # FIXME: insert proper C++ library support | |
11796 | ld_shlibs_CXX=no | |
11797 | ;; | |
11798 | lcc*) | |
11799 | # Lucid | |
11800 | # FIXME: insert proper C++ library support | |
11801 | ld_shlibs_CXX=no | |
11802 | ;; | |
11803 | *) | |
11804 | # FIXME: insert proper C++ library support | |
11805 | ld_shlibs_CXX=no | |
11806 | ;; | |
11807 | esac | |
11808 | ;; | |
11809 | ||
11810 | solaris*) | |
11811 | case $cc_basename in | |
11812 | CC*) | |
11813 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11814 | archive_cmds_need_lc_CXX=yes | |
11815 | no_undefined_flag_CXX=' -zdefs' | |
11816 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11817 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11818 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
11819 | ||
11820 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11821 | hardcode_shlibpath_var_CXX=no | |
11822 | case $host_os in | |
11823 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11824 | *) | |
11825 | # The compiler driver will combine and reorder linker options, | |
11826 | # but understands `-z linker_flag'. | |
11827 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11828 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
11829 | ;; | |
11830 | esac | |
11831 | link_all_deplibs_CXX=yes | |
11832 | ||
11833 | output_verbose_link_cmd='echo' | |
11834 | ||
11835 | # Archives containing C++ object files must be created using | |
11836 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11837 | # necessary to make sure instantiated templates are included | |
11838 | # in the archive. | |
11839 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11840 | ;; | |
11841 | gcx*) | |
11842 | # Green Hills C++ Compiler | |
11843 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11844 | ||
11845 | # The C++ compiler must be used to create the archive. | |
11846 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11847 | ;; | |
11848 | *) | |
11849 | # GNU C++ compiler with Solaris linker | |
11850 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11851 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11852 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
11853 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11854 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11855 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
11856 | ||
11857 | # Commands to make compiler produce verbose output that lists | |
11858 | # what "hidden" libraries, object files and flags are used when | |
11859 | # linking a shared library. | |
11860 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11861 | else | |
11862 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11863 | # platform. | |
11864 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11865 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11866 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
11867 | ||
11868 | # Commands to make compiler produce verbose output that lists | |
11869 | # what "hidden" libraries, object files and flags are used when | |
11870 | # linking a shared library. | |
11871 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11872 | fi | |
11873 | ||
11874 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
11875 | case $host_os in | |
11876 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11877 | *) | |
11878 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11879 | ;; | |
11880 | esac | |
11881 | fi | |
11882 | ;; | |
11883 | esac | |
11884 | ;; | |
11885 | ||
11886 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11887 | no_undefined_flag_CXX='${wl}-z,text' | |
11888 | archive_cmds_need_lc_CXX=no | |
11889 | hardcode_shlibpath_var_CXX=no | |
11890 | runpath_var='LD_RUN_PATH' | |
11891 | ||
11892 | case $cc_basename in | |
11893 | CC*) | |
11894 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11895 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11896 | ;; | |
11897 | *) | |
11898 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11899 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11900 | ;; | |
11901 | esac | |
11902 | ;; | |
11903 | ||
11904 | sysv5* | sco3.2v5* | sco5v6*) | |
11905 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11906 | # link with -lc, and that would cause any symbols used from libc to | |
11907 | # always be unresolved, which means just about no library would | |
11908 | # ever link correctly. If we're not using GNU ld we use -z text | |
11909 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11910 | # as -z defs. | |
11911 | no_undefined_flag_CXX='${wl}-z,text' | |
11912 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11913 | archive_cmds_need_lc_CXX=no | |
11914 | hardcode_shlibpath_var_CXX=no | |
11915 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
11916 | hardcode_libdir_separator_CXX=':' | |
11917 | link_all_deplibs_CXX=yes | |
11918 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11919 | runpath_var='LD_RUN_PATH' | |
11920 | ||
11921 | case $cc_basename in | |
11922 | CC*) | |
11923 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11924 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11925 | ;; | |
11926 | *) | |
11927 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11928 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11929 | ;; | |
11930 | esac | |
11931 | ;; | |
11932 | ||
11933 | tandem*) | |
11934 | case $cc_basename in | |
11935 | NCC*) | |
11936 | # NonStop-UX NCC 3.20 | |
11937 | # FIXME: insert proper C++ library support | |
11938 | ld_shlibs_CXX=no | |
11939 | ;; | |
11940 | *) | |
11941 | # FIXME: insert proper C++ library support | |
11942 | ld_shlibs_CXX=no | |
11943 | ;; | |
11944 | esac | |
11945 | ;; | |
11946 | ||
11947 | vxworks*) | |
11948 | # FIXME: insert proper C++ library support | |
11949 | ld_shlibs_CXX=no | |
11950 | ;; | |
11951 | ||
11952 | *) | |
11953 | # FIXME: insert proper C++ library support | |
11954 | ld_shlibs_CXX=no | |
11955 | ;; | |
11956 | esac | |
11957 | ||
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
11959 | $as_echo "$ld_shlibs_CXX" >&6; } | |
11960 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11961 | ||
11962 | GCC_CXX="$GXX" | |
11963 | LD_CXX="$LD" | |
11964 | ||
11965 | ## CAVEAT EMPTOR: | |
11966 | ## There is no encapsulation within the following macros, do not change | |
11967 | ## the running order or otherwise move them around unless you know exactly | |
11968 | ## what you are doing... | |
11969 | # Dependencies to place before and after the object being linked: | |
11970 | predep_objects_CXX= | |
11971 | postdep_objects_CXX= | |
11972 | predeps_CXX= | |
11973 | postdeps_CXX= | |
11974 | compiler_lib_search_path_CXX= | |
11975 | ||
11976 | cat > conftest.$ac_ext <<_LT_EOF | |
11977 | class Foo | |
11978 | { | |
11979 | public: | |
11980 | Foo (void) { a = 0; } | |
11981 | private: | |
11982 | int a; | |
11983 | }; | |
11984 | _LT_EOF | |
11985 | ||
11986 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11987 | (eval $ac_compile) 2>&5 | |
11988 | ac_status=$? | |
11989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11990 | test $ac_status = 0; }; then | |
11991 | # Parse the compiler output and extract the necessary | |
11992 | # objects, libraries and library flags. | |
11993 | ||
11994 | # Sentinel used to keep track of whether or not we are before | |
11995 | # the conftest object file. | |
11996 | pre_test_object_deps_done=no | |
11997 | ||
11998 | for p in `eval "$output_verbose_link_cmd"`; do | |
11999 | case $p in | |
12000 | ||
12001 | -L* | -R* | -l*) | |
12002 | # Some compilers place space between "-{L,R}" and the path. | |
12003 | # Remove the space. | |
12004 | if test $p = "-L" || | |
12005 | test $p = "-R"; then | |
12006 | prev=$p | |
12007 | continue | |
12008 | else | |
12009 | prev= | |
12010 | fi | |
12011 | ||
12012 | if test "$pre_test_object_deps_done" = no; then | |
12013 | case $p in | |
12014 | -L* | -R*) | |
12015 | # Internal compiler library paths should come after those | |
12016 | # provided the user. The postdeps already come after the | |
12017 | # user supplied libs so there is no need to process them. | |
12018 | if test -z "$compiler_lib_search_path_CXX"; then | |
12019 | compiler_lib_search_path_CXX="${prev}${p}" | |
12020 | else | |
12021 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12022 | fi | |
12023 | ;; | |
12024 | # The "-l" case would never come before the object being | |
12025 | # linked, so don't bother handling this case. | |
12026 | esac | |
12027 | else | |
12028 | if test -z "$postdeps_CXX"; then | |
12029 | postdeps_CXX="${prev}${p}" | |
12030 | else | |
12031 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12032 | fi | |
12033 | fi | |
12034 | ;; | |
12035 | ||
12036 | *.$objext) | |
12037 | # This assumes that the test object file only shows up | |
12038 | # once in the compiler output. | |
12039 | if test "$p" = "conftest.$objext"; then | |
12040 | pre_test_object_deps_done=yes | |
12041 | continue | |
12042 | fi | |
12043 | ||
12044 | if test "$pre_test_object_deps_done" = no; then | |
12045 | if test -z "$predep_objects_CXX"; then | |
12046 | predep_objects_CXX="$p" | |
12047 | else | |
12048 | predep_objects_CXX="$predep_objects_CXX $p" | |
12049 | fi | |
12050 | else | |
12051 | if test -z "$postdep_objects_CXX"; then | |
12052 | postdep_objects_CXX="$p" | |
12053 | else | |
12054 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12055 | fi | |
12056 | fi | |
12057 | ;; | |
12058 | ||
12059 | *) ;; # Ignore the rest. | |
12060 | ||
12061 | esac | |
12062 | done | |
12063 | ||
12064 | # Clean up. | |
12065 | rm -f a.out a.exe | |
12066 | else | |
12067 | echo "libtool.m4: error: problem compiling CXX test program" | |
12068 | fi | |
12069 | ||
12070 | $RM -f confest.$objext | |
12071 | ||
12072 | # PORTME: override above test on systems where it is broken | |
12073 | case $host_os in | |
12074 | interix[3-9]*) | |
12075 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12076 | # hack all around it, let's just trust "g++" to DTRT. | |
12077 | predep_objects_CXX= | |
12078 | postdep_objects_CXX= | |
12079 | postdeps_CXX= | |
12080 | ;; | |
12081 | ||
12082 | linux*) | |
12083 | case `$CC -V 2>&1 | sed 5q` in | |
12084 | *Sun\ C*) | |
12085 | # Sun C++ 5.9 | |
12086 | ||
12087 | # The more standards-conforming stlport4 library is | |
12088 | # incompatible with the Cstd library. Avoid specifying | |
12089 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12090 | # -library=stlport4 depends on it. | |
12091 | case " $CXX $CXXFLAGS " in | |
12092 | *" -library=stlport4 "*) | |
12093 | solaris_use_stlport4=yes | |
12094 | ;; | |
12095 | esac | |
12096 | ||
12097 | if test "$solaris_use_stlport4" != yes; then | |
12098 | postdeps_CXX='-library=Cstd -library=Crun' | |
12099 | fi | |
12100 | ;; | |
12101 | esac | |
12102 | ;; | |
12103 | ||
12104 | solaris*) | |
12105 | case $cc_basename in | |
12106 | CC*) | |
12107 | # The more standards-conforming stlport4 library is | |
12108 | # incompatible with the Cstd library. Avoid specifying | |
12109 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12110 | # -library=stlport4 depends on it. | |
12111 | case " $CXX $CXXFLAGS " in | |
12112 | *" -library=stlport4 "*) | |
12113 | solaris_use_stlport4=yes | |
12114 | ;; | |
12115 | esac | |
12116 | ||
12117 | # Adding this requires a known-good setup of shared libraries for | |
12118 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12119 | # archive will be linked into the output, leading to subtle bugs. | |
12120 | if test "$solaris_use_stlport4" != yes; then | |
12121 | postdeps_CXX='-library=Cstd -library=Crun' | |
12122 | fi | |
12123 | ;; | |
12124 | esac | |
12125 | ;; | |
12126 | esac | |
12127 | ||
12128 | ||
12129 | case " $postdeps_CXX " in | |
12130 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12131 | esac | |
12132 | compiler_lib_search_dirs_CXX= | |
12133 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12134 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12135 | fi | |
12136 | ||
12137 | ||
12138 | ||
12139 | ||
12140 | ||
12141 | ||
12142 | ||
12143 | ||
12144 | ||
12145 | ||
12146 | ||
12147 | ||
12148 | ||
12149 | ||
12150 | ||
12151 | ||
12152 | ||
12153 | ||
12154 | ||
12155 | ||
12156 | ||
12157 | ||
12158 | ||
12159 | ||
12160 | ||
12161 | ||
12162 | ||
12163 | ||
12164 | ||
12165 | ||
12166 | ||
12167 | lt_prog_compiler_wl_CXX= | |
12168 | lt_prog_compiler_pic_CXX= | |
12169 | lt_prog_compiler_static_CXX= | |
12170 | ||
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12172 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12173 | ||
12174 | # C++ specific cases for pic, static, wl, etc. | |
12175 | if test "$GXX" = yes; then | |
12176 | lt_prog_compiler_wl_CXX='-Wl,' | |
12177 | lt_prog_compiler_static_CXX='-static' | |
12178 | ||
12179 | case $host_os in | |
12180 | aix*) | |
12181 | # All AIX code is PIC. | |
12182 | if test "$host_cpu" = ia64; then | |
12183 | # AIX 5 now supports IA64 processor | |
12184 | lt_prog_compiler_static_CXX='-Bstatic' | |
12185 | fi | |
12186 | ;; | |
12187 | ||
12188 | amigaos*) | |
12189 | case $host_cpu in | |
12190 | powerpc) | |
12191 | # see comment about AmigaOS4 .so support | |
12192 | lt_prog_compiler_pic_CXX='-fPIC' | |
12193 | ;; | |
12194 | m68k) | |
12195 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12196 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12197 | # like `-m68040'. | |
12198 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12199 | ;; | |
12200 | esac | |
12201 | ;; | |
12202 | ||
12203 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12204 | # PIC is the default for these OSes. | |
12205 | ;; | |
12206 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12207 | # This hack is so that the source file can tell whether it is being | |
12208 | # built for inclusion in a dll (and should export symbols for example). | |
12209 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12210 | # (--disable-auto-import) libraries | |
12211 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12212 | ;; | |
12213 | darwin* | rhapsody*) | |
12214 | # PIC is the default on this platform | |
12215 | # Common symbols not allowed in MH_DYLIB files | |
12216 | lt_prog_compiler_pic_CXX='-fno-common' | |
12217 | ;; | |
12218 | *djgpp*) | |
12219 | # DJGPP does not support shared libraries at all | |
12220 | lt_prog_compiler_pic_CXX= | |
12221 | ;; | |
12222 | interix[3-9]*) | |
12223 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12224 | # Instead, we relocate shared libraries at runtime. | |
12225 | ;; | |
12226 | sysv4*MP*) | |
12227 | if test -d /usr/nec; then | |
12228 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12229 | fi | |
12230 | ;; | |
12231 | hpux*) | |
12232 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12233 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12234 | # sets the default TLS model and affects inlining. | |
12235 | case $host_cpu in | |
12236 | hppa*64*) | |
12237 | ;; | |
12238 | *) | |
12239 | lt_prog_compiler_pic_CXX='-fPIC' | |
12240 | ;; | |
12241 | esac | |
12242 | ;; | |
12243 | *qnx* | *nto*) | |
12244 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12245 | # it will coredump. | |
12246 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12247 | ;; | |
12248 | *) | |
12249 | lt_prog_compiler_pic_CXX='-fPIC' | |
12250 | ;; | |
12251 | esac | |
12252 | else | |
12253 | case $host_os in | |
12254 | aix[4-9]*) | |
12255 | # All AIX code is PIC. | |
12256 | if test "$host_cpu" = ia64; then | |
12257 | # AIX 5 now supports IA64 processor | |
12258 | lt_prog_compiler_static_CXX='-Bstatic' | |
12259 | else | |
12260 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12261 | fi | |
12262 | ;; | |
12263 | chorus*) | |
12264 | case $cc_basename in | |
12265 | cxch68*) | |
12266 | # Green Hills C++ Compiler | |
12267 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
12268 | ;; | |
12269 | esac | |
12270 | ;; | |
12271 | dgux*) | |
12272 | case $cc_basename in | |
12273 | ec++*) | |
12274 | lt_prog_compiler_pic_CXX='-KPIC' | |
12275 | ;; | |
12276 | ghcx*) | |
12277 | # Green Hills C++ Compiler | |
12278 | lt_prog_compiler_pic_CXX='-pic' | |
12279 | ;; | |
12280 | *) | |
12281 | ;; | |
12282 | esac | |
12283 | ;; | |
12284 | freebsd* | dragonfly*) | |
12285 | # FreeBSD uses GNU C++ | |
12286 | ;; | |
12287 | hpux9* | hpux10* | hpux11*) | |
12288 | case $cc_basename in | |
12289 | CC*) | |
12290 | lt_prog_compiler_wl_CXX='-Wl,' | |
12291 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12292 | if test "$host_cpu" != ia64; then | |
12293 | lt_prog_compiler_pic_CXX='+Z' | |
12294 | fi | |
12295 | ;; | |
12296 | aCC*) | |
12297 | lt_prog_compiler_wl_CXX='-Wl,' | |
12298 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12299 | case $host_cpu in | |
12300 | hppa*64*|ia64*) | |
12301 | # +Z the default | |
12302 | ;; | |
12303 | *) | |
12304 | lt_prog_compiler_pic_CXX='+Z' | |
12305 | ;; | |
12306 | esac | |
12307 | ;; | |
12308 | *) | |
12309 | ;; | |
12310 | esac | |
12311 | ;; | |
12312 | interix*) | |
12313 | # This is c89, which is MS Visual C++ (no shared libs) | |
12314 | # Anyone wants to do a port? | |
12315 | ;; | |
12316 | irix5* | irix6* | nonstopux*) | |
12317 | case $cc_basename in | |
12318 | CC*) | |
12319 | lt_prog_compiler_wl_CXX='-Wl,' | |
12320 | lt_prog_compiler_static_CXX='-non_shared' | |
12321 | # CC pic flag -KPIC is the default. | |
12322 | ;; | |
12323 | *) | |
12324 | ;; | |
12325 | esac | |
12326 | ;; | |
12327 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12328 | case $cc_basename in | |
12329 | KCC*) | |
12330 | # KAI C++ Compiler | |
12331 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12332 | lt_prog_compiler_pic_CXX='-fPIC' | |
12333 | ;; | |
12334 | ecpc* ) | |
12335 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12336 | lt_prog_compiler_wl_CXX='-Wl,' | |
12337 | lt_prog_compiler_pic_CXX='-KPIC' | |
12338 | lt_prog_compiler_static_CXX='-static' | |
12339 | ;; | |
12340 | icpc* ) | |
12341 | # Intel C++, used to be incompatible with GCC. | |
12342 | # ICC 10 doesn't accept -KPIC any more. | |
12343 | lt_prog_compiler_wl_CXX='-Wl,' | |
12344 | lt_prog_compiler_pic_CXX='-fPIC' | |
12345 | lt_prog_compiler_static_CXX='-static' | |
12346 | ;; | |
12347 | pgCC* | pgcpp*) | |
12348 | # Portland Group C++ compiler | |
12349 | lt_prog_compiler_wl_CXX='-Wl,' | |
12350 | lt_prog_compiler_pic_CXX='-fpic' | |
12351 | lt_prog_compiler_static_CXX='-Bstatic' | |
12352 | ;; | |
12353 | cxx*) | |
12354 | # Compaq C++ | |
12355 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12356 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12357 | lt_prog_compiler_pic_CXX= | |
12358 | lt_prog_compiler_static_CXX='-non_shared' | |
12359 | ;; | |
12360 | xlc* | xlC*) | |
12361 | # IBM XL 8.0 on PPC | |
12362 | lt_prog_compiler_wl_CXX='-Wl,' | |
12363 | lt_prog_compiler_pic_CXX='-qpic' | |
12364 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12365 | ;; | |
12366 | *) | |
12367 | case `$CC -V 2>&1 | sed 5q` in | |
12368 | *Sun\ C*) | |
12369 | # Sun C++ 5.9 | |
12370 | lt_prog_compiler_pic_CXX='-KPIC' | |
12371 | lt_prog_compiler_static_CXX='-Bstatic' | |
12372 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12373 | ;; | |
12374 | esac | |
12375 | ;; | |
12376 | esac | |
12377 | ;; | |
12378 | lynxos*) | |
12379 | ;; | |
12380 | m88k*) | |
12381 | ;; | |
12382 | mvs*) | |
12383 | case $cc_basename in | |
12384 | cxx*) | |
12385 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12386 | ;; | |
12387 | *) | |
12388 | ;; | |
12389 | esac | |
12390 | ;; | |
12391 | netbsd* | netbsdelf*-gnu) | |
12392 | ;; | |
12393 | *qnx* | *nto*) | |
12394 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12395 | # it will coredump. | |
12396 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12397 | ;; | |
12398 | osf3* | osf4* | osf5*) | |
12399 | case $cc_basename in | |
12400 | KCC*) | |
12401 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12402 | ;; | |
12403 | RCC*) | |
12404 | # Rational C++ 2.4.1 | |
12405 | lt_prog_compiler_pic_CXX='-pic' | |
12406 | ;; | |
12407 | cxx*) | |
12408 | # Digital/Compaq C++ | |
12409 | lt_prog_compiler_wl_CXX='-Wl,' | |
12410 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12411 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12412 | lt_prog_compiler_pic_CXX= | |
12413 | lt_prog_compiler_static_CXX='-non_shared' | |
12414 | ;; | |
12415 | *) | |
12416 | ;; | |
12417 | esac | |
12418 | ;; | |
12419 | psos*) | |
12420 | ;; | |
12421 | solaris*) | |
12422 | case $cc_basename in | |
12423 | CC*) | |
12424 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12425 | lt_prog_compiler_pic_CXX='-KPIC' | |
12426 | lt_prog_compiler_static_CXX='-Bstatic' | |
12427 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12428 | ;; | |
12429 | gcx*) | |
12430 | # Green Hills C++ Compiler | |
12431 | lt_prog_compiler_pic_CXX='-PIC' | |
12432 | ;; | |
12433 | *) | |
12434 | ;; | |
12435 | esac | |
12436 | ;; | |
12437 | sunos4*) | |
12438 | case $cc_basename in | |
12439 | CC*) | |
12440 | # Sun C++ 4.x | |
12441 | lt_prog_compiler_pic_CXX='-pic' | |
12442 | lt_prog_compiler_static_CXX='-Bstatic' | |
12443 | ;; | |
12444 | lcc*) | |
12445 | # Lucid | |
12446 | lt_prog_compiler_pic_CXX='-pic' | |
12447 | ;; | |
12448 | *) | |
12449 | ;; | |
12450 | esac | |
12451 | ;; | |
12452 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12453 | case $cc_basename in | |
12454 | CC*) | |
12455 | lt_prog_compiler_wl_CXX='-Wl,' | |
12456 | lt_prog_compiler_pic_CXX='-KPIC' | |
12457 | lt_prog_compiler_static_CXX='-Bstatic' | |
12458 | ;; | |
12459 | esac | |
12460 | ;; | |
12461 | tandem*) | |
12462 | case $cc_basename in | |
12463 | NCC*) | |
12464 | # NonStop-UX NCC 3.20 | |
12465 | lt_prog_compiler_pic_CXX='-KPIC' | |
12466 | ;; | |
12467 | *) | |
12468 | ;; | |
12469 | esac | |
12470 | ;; | |
12471 | vxworks*) | |
12472 | ;; | |
12473 | *) | |
12474 | lt_prog_compiler_can_build_shared_CXX=no | |
12475 | ;; | |
12476 | esac | |
12477 | fi | |
12478 | ||
12479 | case $host_os in | |
12480 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12481 | *djgpp*) | |
12482 | lt_prog_compiler_pic_CXX= | |
12483 | ;; | |
12484 | *) | |
12485 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12486 | ;; | |
12487 | esac | |
12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
12489 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
12490 | ||
12491 | ||
12492 | ||
12493 | # | |
12494 | # Check to make sure the PIC flag actually works. | |
12495 | # | |
12496 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12498 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
12499 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
12500 | $as_echo_n "(cached) " >&6 | |
12501 | else | |
12502 | lt_cv_prog_compiler_pic_works_CXX=no | |
12503 | ac_outfile=conftest.$ac_objext | |
12504 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12505 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12506 | # Insert the option either (1) after the last *FLAGS variable, or | |
12507 | # (2) before a word containing "conftest.", or (3) at the end. | |
12508 | # Note that $ac_compile itself does not contain backslashes and begins | |
12509 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12510 | # The option is referenced via a variable to avoid confusing sed. | |
12511 | lt_compile=`echo "$ac_compile" | $SED \ | |
12512 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12513 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12514 | -e 's:$: $lt_compiler_flag:'` | |
12515 | (eval echo "\"\$as_me:12515: $lt_compile\"" >&5) | |
12516 | (eval "$lt_compile" 2>conftest.err) | |
12517 | ac_status=$? | |
12518 | cat conftest.err >&5 | |
12519 | echo "$as_me:12519: \$? = $ac_status" >&5 | |
12520 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
12521 | # The compiler can only warn and ignore the option if not recognized | |
12522 | # So say no if there are warnings other than the usual output. | |
12523 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12524 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12525 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12526 | lt_cv_prog_compiler_pic_works_CXX=yes | |
12527 | fi | |
12528 | fi | |
12529 | $RM conftest* | |
12530 | ||
12531 | fi | |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
12533 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
12534 | ||
12535 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
12536 | case $lt_prog_compiler_pic_CXX in | |
12537 | "" | " "*) ;; | |
12538 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12539 | esac | |
12540 | else | |
12541 | lt_prog_compiler_pic_CXX= | |
12542 | lt_prog_compiler_can_build_shared_CXX=no | |
12543 | fi | |
12544 | ||
12545 | fi | |
12546 | ||
12547 | ||
12548 | ||
12549 | # | |
12550 | # Check to make sure the static flag actually works. | |
12551 | # | |
12552 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12554 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
12555 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
12556 | $as_echo_n "(cached) " >&6 | |
12557 | else | |
12558 | lt_cv_prog_compiler_static_works_CXX=no | |
12559 | save_LDFLAGS="$LDFLAGS" | |
12560 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12561 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12562 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12563 | # The linker can only warn and ignore the option if not recognized | |
12564 | # So say no if there are warnings | |
12565 | if test -s conftest.err; then | |
12566 | # Append any errors to the config.log. | |
12567 | cat conftest.err 1>&5 | |
12568 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12569 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12570 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12571 | lt_cv_prog_compiler_static_works_CXX=yes | |
12572 | fi | |
12573 | else | |
12574 | lt_cv_prog_compiler_static_works_CXX=yes | |
12575 | fi | |
12576 | fi | |
12577 | $RM -r conftest* | |
12578 | LDFLAGS="$save_LDFLAGS" | |
12579 | ||
12580 | fi | |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
12582 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
12583 | ||
12584 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
12585 | : | |
12586 | else | |
12587 | lt_prog_compiler_static_CXX= | |
12588 | fi | |
12589 | ||
12590 | ||
12591 | ||
12592 | ||
12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12594 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12595 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12596 | $as_echo_n "(cached) " >&6 | |
12597 | else | |
12598 | lt_cv_prog_compiler_c_o_CXX=no | |
12599 | $RM -r conftest 2>/dev/null | |
12600 | mkdir conftest | |
12601 | cd conftest | |
12602 | mkdir out | |
12603 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12604 | ||
12605 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12606 | # Insert the option either (1) after the last *FLAGS variable, or | |
12607 | # (2) before a word containing "conftest.", or (3) at the end. | |
12608 | # Note that $ac_compile itself does not contain backslashes and begins | |
12609 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12610 | lt_compile=`echo "$ac_compile" | $SED \ | |
12611 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12612 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12613 | -e 's:$: $lt_compiler_flag:'` | |
12614 | (eval echo "\"\$as_me:12614: $lt_compile\"" >&5) | |
12615 | (eval "$lt_compile" 2>out/conftest.err) | |
12616 | ac_status=$? | |
12617 | cat out/conftest.err >&5 | |
12618 | echo "$as_me:12618: \$? = $ac_status" >&5 | |
12619 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12620 | then | |
12621 | # The compiler can only warn and ignore the option if not recognized | |
12622 | # So say no if there are warnings | |
12623 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12624 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12625 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12626 | lt_cv_prog_compiler_c_o_CXX=yes | |
12627 | fi | |
12628 | fi | |
12629 | chmod u+w . 2>&5 | |
12630 | $RM conftest* | |
12631 | # SGI C++ compiler will create directory out/ii_files/ for | |
12632 | # template instantiation | |
12633 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12634 | $RM out/* && rmdir out | |
12635 | cd .. | |
12636 | $RM -r conftest | |
12637 | $RM conftest* | |
12638 | ||
12639 | fi | |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12641 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12642 | ||
12643 | ||
12644 | ||
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12646 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12647 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12648 | $as_echo_n "(cached) " >&6 | |
12649 | else | |
12650 | lt_cv_prog_compiler_c_o_CXX=no | |
12651 | $RM -r conftest 2>/dev/null | |
12652 | mkdir conftest | |
12653 | cd conftest | |
12654 | mkdir out | |
12655 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12656 | ||
12657 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12658 | # Insert the option either (1) after the last *FLAGS variable, or | |
12659 | # (2) before a word containing "conftest.", or (3) at the end. | |
12660 | # Note that $ac_compile itself does not contain backslashes and begins | |
12661 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12662 | lt_compile=`echo "$ac_compile" | $SED \ | |
12663 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12664 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12665 | -e 's:$: $lt_compiler_flag:'` | |
12666 | (eval echo "\"\$as_me:12666: $lt_compile\"" >&5) | |
12667 | (eval "$lt_compile" 2>out/conftest.err) | |
12668 | ac_status=$? | |
12669 | cat out/conftest.err >&5 | |
12670 | echo "$as_me:12670: \$? = $ac_status" >&5 | |
12671 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12672 | then | |
12673 | # The compiler can only warn and ignore the option if not recognized | |
12674 | # So say no if there are warnings | |
12675 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12676 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12677 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12678 | lt_cv_prog_compiler_c_o_CXX=yes | |
12679 | fi | |
12680 | fi | |
12681 | chmod u+w . 2>&5 | |
12682 | $RM conftest* | |
12683 | # SGI C++ compiler will create directory out/ii_files/ for | |
12684 | # template instantiation | |
12685 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12686 | $RM out/* && rmdir out | |
12687 | cd .. | |
12688 | $RM -r conftest | |
12689 | $RM conftest* | |
12690 | ||
12691 | fi | |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12693 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | hard_links="nottested" | |
12699 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12700 | # do not overwrite the value of need_locks provided by the user | |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
12702 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
12703 | hard_links=yes | |
12704 | $RM conftest* | |
12705 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12706 | touch conftest.a | |
12707 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12708 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
12710 | $as_echo "$hard_links" >&6; } | |
12711 | if test "$hard_links" = no; then | |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12713 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12714 | need_locks=warn | |
12715 | fi | |
12716 | else | |
12717 | need_locks=no | |
12718 | fi | |
12719 | ||
12720 | ||
12721 | ||
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12723 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12724 | ||
12725 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12726 | case $host_os in | |
12727 | aix[4-9]*) | |
12728 | # If we're using GNU nm, then we don't want the "-C" option. | |
12729 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12730 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12731 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12732 | else | |
12733 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12734 | fi | |
12735 | ;; | |
12736 | pw32*) | |
12737 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12738 | ;; | |
12739 | cygwin* | mingw* | cegcc*) | |
12740 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
12741 | ;; | |
12742 | linux* | k*bsd*-gnu) | |
12743 | link_all_deplibs_CXX=no | |
12744 | ;; | |
12745 | *) | |
12746 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12747 | ;; | |
12748 | esac | |
12749 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
12750 | ||
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
12752 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12753 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12754 | ||
12755 | with_gnu_ld_CXX=$with_gnu_ld | |
12756 | ||
12757 | ||
12758 | ||
12759 | ||
12760 | ||
12761 | ||
12762 | # | |
12763 | # Do we need to explicitly link libc? | |
12764 | # | |
12765 | case "x$archive_cmds_need_lc_CXX" in | |
12766 | x|xyes) | |
12767 | # Assume -lc should be added | |
12768 | archive_cmds_need_lc_CXX=yes | |
12769 | ||
12770 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12771 | case $archive_cmds_CXX in | |
12772 | *'~'*) | |
12773 | # FIXME: we may have to deal with multi-command sequences. | |
12774 | ;; | |
12775 | '$CC '*) | |
12776 | # Test whether the compiler implicitly links with -lc since on some | |
12777 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12778 | # to ld, don't add -lc before -lgcc. | |
12779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
12780 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
12781 | $RM conftest* | |
12782 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12783 | ||
12784 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12785 | (eval $ac_compile) 2>&5 | |
12786 | ac_status=$? | |
12787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12788 | test $ac_status = 0; } 2>conftest.err; then | |
12789 | soname=conftest | |
12790 | lib=conftest | |
12791 | libobjs=conftest.$ac_objext | |
12792 | deplibs= | |
12793 | wl=$lt_prog_compiler_wl_CXX | |
12794 | pic_flag=$lt_prog_compiler_pic_CXX | |
12795 | compiler_flags=-v | |
12796 | linker_flags=-v | |
12797 | verstring= | |
12798 | output_objdir=. | |
12799 | libname=conftest | |
12800 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12801 | allow_undefined_flag_CXX= | |
12802 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
12803 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12804 | ac_status=$? | |
12805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12806 | test $ac_status = 0; } | |
12807 | then | |
12808 | archive_cmds_need_lc_CXX=no | |
12809 | else | |
12810 | archive_cmds_need_lc_CXX=yes | |
12811 | fi | |
12812 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12813 | else | |
12814 | cat conftest.err 1>&5 | |
12815 | fi | |
12816 | $RM conftest* | |
12817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
12818 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
12819 | ;; | |
12820 | esac | |
12821 | fi | |
12822 | ;; | |
12823 | esac | |
12824 | ||
12825 | ||
12826 | ||
12827 | ||
12828 | ||
12829 | ||
12830 | ||
12831 | ||
12832 | ||
12833 | ||
12834 | ||
12835 | ||
12836 | ||
12837 | ||
12838 | ||
12839 | ||
12840 | ||
12841 | ||
12842 | ||
12843 | ||
12844 | ||
12845 | ||
12846 | ||
12847 | ||
12848 | ||
12849 | ||
12850 | ||
12851 | ||
12852 | ||
12853 | ||
12854 | ||
12855 | ||
12856 | ||
12857 | ||
12858 | ||
12859 | ||
12860 | ||
12861 | ||
12862 | ||
12863 | ||
12864 | ||
12865 | ||
12866 | ||
12867 | ||
12868 | ||
12869 | ||
12870 | ||
12871 | ||
12872 | ||
12873 | ||
12874 | ||
12875 | ||
12876 | ||
12877 | ||
12878 | ||
12879 | ||
12880 | ||
12881 | ||
12882 | ||
12883 | ||
12884 | ||
12885 | ||
12886 | ||
12887 | ||
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
12889 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
12890 | ||
12891 | library_names_spec= | |
12892 | libname_spec='lib$name' | |
12893 | soname_spec= | |
12894 | shrext_cmds=".so" | |
12895 | postinstall_cmds= | |
12896 | postuninstall_cmds= | |
12897 | finish_cmds= | |
12898 | finish_eval= | |
12899 | shlibpath_var= | |
12900 | shlibpath_overrides_runpath=unknown | |
12901 | version_type=none | |
12902 | dynamic_linker="$host_os ld.so" | |
12903 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12904 | need_lib_prefix=unknown | |
12905 | hardcode_into_libs=no | |
12906 | ||
12907 | # when you set need_version to no, make sure it does not cause -set_version | |
12908 | # flags to be left without arguments | |
12909 | need_version=unknown | |
12910 | ||
12911 | case $host_os in | |
12912 | aix3*) | |
12913 | version_type=linux | |
12914 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12915 | shlibpath_var=LIBPATH | |
12916 | ||
12917 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12918 | soname_spec='${libname}${release}${shared_ext}$major' | |
12919 | ;; | |
12920 | ||
12921 | aix[4-9]*) | |
12922 | version_type=linux | |
12923 | need_lib_prefix=no | |
12924 | need_version=no | |
12925 | hardcode_into_libs=yes | |
12926 | if test "$host_cpu" = ia64; then | |
12927 | # AIX 5 supports IA64 | |
12928 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12929 | shlibpath_var=LD_LIBRARY_PATH | |
12930 | else | |
12931 | # With GCC up to 2.95.x, collect2 would create an import file | |
12932 | # for dependence libraries. The import file would start with | |
12933 | # the line `#! .'. This would cause the generated library to | |
12934 | # depend on `.', always an invalid library. This was fixed in | |
12935 | # development snapshots of GCC prior to 3.0. | |
12936 | case $host_os in | |
12937 | aix4 | aix4.[01] | aix4.[01].*) | |
12938 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12939 | echo ' yes ' | |
12940 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
12941 | : | |
12942 | else | |
12943 | can_build_shared=no | |
12944 | fi | |
12945 | ;; | |
12946 | esac | |
12947 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12948 | # soname into executable. Probably we can add versioning support to | |
12949 | # collect2, so additional links can be useful in future. | |
12950 | if test "$aix_use_runtimelinking" = yes; then | |
12951 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12952 | # instead of lib<name>.a to let people know that these are not | |
12953 | # typical AIX shared libraries. | |
12954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12955 | else | |
12956 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12957 | # and later when we are not doing run time linking. | |
12958 | library_names_spec='${libname}${release}.a $libname.a' | |
12959 | soname_spec='${libname}${release}${shared_ext}$major' | |
12960 | fi | |
12961 | shlibpath_var=LIBPATH | |
12962 | fi | |
12963 | ;; | |
12964 | ||
12965 | amigaos*) | |
12966 | case $host_cpu in | |
12967 | powerpc) | |
12968 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
12969 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
12970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12971 | ;; | |
12972 | m68k) | |
12973 | library_names_spec='$libname.ixlibrary $libname.a' | |
12974 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12975 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
12976 | ;; | |
12977 | esac | |
12978 | ;; | |
12979 | ||
12980 | beos*) | |
12981 | library_names_spec='${libname}${shared_ext}' | |
12982 | dynamic_linker="$host_os ld.so" | |
12983 | shlibpath_var=LIBRARY_PATH | |
12984 | ;; | |
12985 | ||
12986 | bsdi[45]*) | |
12987 | version_type=linux | |
12988 | need_version=no | |
12989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12990 | soname_spec='${libname}${release}${shared_ext}$major' | |
12991 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12992 | shlibpath_var=LD_LIBRARY_PATH | |
12993 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12994 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12995 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12996 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12997 | # libtool to hard-code these into programs | |
12998 | ;; | |
12999 | ||
13000 | cygwin* | mingw* | pw32* | cegcc*) | |
13001 | version_type=windows | |
13002 | shrext_cmds=".dll" | |
13003 | need_version=no | |
13004 | need_lib_prefix=no | |
13005 | ||
13006 | case $GCC,$host_os in | |
13007 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13008 | library_names_spec='$libname.dll.a' | |
13009 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13010 | postinstall_cmds='base_file=`basename \${file}`~ | |
13011 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13012 | dldir=$destdir/`dirname \$dlpath`~ | |
13013 | test -d \$dldir || mkdir -p \$dldir~ | |
13014 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13015 | chmod a+x \$dldir/$dlname~ | |
13016 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13017 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13018 | fi' | |
13019 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13020 | dlpath=$dir/\$dldll~ | |
13021 | $RM \$dlpath' | |
13022 | shlibpath_overrides_runpath=yes | |
13023 | ||
13024 | case $host_os in | |
13025 | cygwin*) | |
13026 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13027 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13028 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13029 | ;; | |
13030 | mingw* | cegcc*) | |
13031 | # MinGW DLLs use traditional 'lib' prefix | |
13032 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13033 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13034 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13035 | # It is most probably a Windows format PATH printed by | |
13036 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13037 | # path with ; separators, and with drive letters. We can handle the | |
13038 | # drive letters (cygwin fileutils understands them), so leave them, | |
13039 | # especially as we might pass files found there to a mingw objdump, | |
13040 | # which wouldn't understand a cygwinified path. Ahh. | |
13041 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13042 | else | |
13043 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13044 | fi | |
13045 | ;; | |
13046 | pw32*) | |
13047 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13048 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13049 | ;; | |
13050 | esac | |
13051 | ;; | |
13052 | ||
13053 | *) | |
13054 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13055 | ;; | |
13056 | esac | |
13057 | dynamic_linker='Win32 ld.exe' | |
13058 | # FIXME: first we should search . and the directory the executable is in | |
13059 | shlibpath_var=PATH | |
13060 | ;; | |
13061 | ||
13062 | darwin* | rhapsody*) | |
13063 | dynamic_linker="$host_os dyld" | |
13064 | version_type=darwin | |
13065 | need_lib_prefix=no | |
13066 | need_version=no | |
13067 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13068 | soname_spec='${libname}${release}${major}$shared_ext' | |
13069 | shlibpath_overrides_runpath=yes | |
13070 | shlibpath_var=DYLD_LIBRARY_PATH | |
13071 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
13072 | ||
13073 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13074 | ;; | |
13075 | ||
13076 | dgux*) | |
13077 | version_type=linux | |
13078 | need_lib_prefix=no | |
13079 | need_version=no | |
13080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13081 | soname_spec='${libname}${release}${shared_ext}$major' | |
13082 | shlibpath_var=LD_LIBRARY_PATH | |
13083 | ;; | |
13084 | ||
13085 | freebsd1*) | |
13086 | dynamic_linker=no | |
13087 | ;; | |
13088 | ||
13089 | freebsd* | dragonfly*) | |
13090 | # DragonFly does not have aout. When/if they implement a new | |
13091 | # versioning mechanism, adjust this. | |
13092 | if test -x /usr/bin/objformat; then | |
13093 | objformat=`/usr/bin/objformat` | |
13094 | else | |
13095 | case $host_os in | |
13096 | freebsd[123]*) objformat=aout ;; | |
13097 | *) objformat=elf ;; | |
13098 | esac | |
13099 | fi | |
13100 | version_type=freebsd-$objformat | |
13101 | case $version_type in | |
13102 | freebsd-elf*) | |
13103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13104 | need_version=no | |
13105 | need_lib_prefix=no | |
13106 | ;; | |
13107 | freebsd-*) | |
13108 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13109 | need_version=yes | |
13110 | ;; | |
13111 | esac | |
13112 | shlibpath_var=LD_LIBRARY_PATH | |
13113 | case $host_os in | |
13114 | freebsd2*) | |
13115 | shlibpath_overrides_runpath=yes | |
13116 | ;; | |
13117 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13118 | shlibpath_overrides_runpath=yes | |
13119 | hardcode_into_libs=yes | |
13120 | ;; | |
13121 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13122 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13123 | shlibpath_overrides_runpath=no | |
13124 | hardcode_into_libs=yes | |
13125 | ;; | |
13126 | *) # from 4.6 on, and DragonFly | |
13127 | shlibpath_overrides_runpath=yes | |
13128 | hardcode_into_libs=yes | |
13129 | ;; | |
13130 | esac | |
13131 | ;; | |
13132 | ||
13133 | gnu*) | |
13134 | version_type=linux | |
13135 | need_lib_prefix=no | |
13136 | need_version=no | |
13137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13138 | soname_spec='${libname}${release}${shared_ext}$major' | |
13139 | shlibpath_var=LD_LIBRARY_PATH | |
13140 | hardcode_into_libs=yes | |
13141 | ;; | |
13142 | ||
13143 | hpux9* | hpux10* | hpux11*) | |
13144 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13145 | # link against other versions. | |
13146 | version_type=sunos | |
13147 | need_lib_prefix=no | |
13148 | need_version=no | |
13149 | case $host_cpu in | |
13150 | ia64*) | |
13151 | shrext_cmds='.so' | |
13152 | hardcode_into_libs=yes | |
13153 | dynamic_linker="$host_os dld.so" | |
13154 | shlibpath_var=LD_LIBRARY_PATH | |
13155 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13157 | soname_spec='${libname}${release}${shared_ext}$major' | |
13158 | if test "X$HPUX_IA64_MODE" = X32; then | |
13159 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13160 | else | |
13161 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13162 | fi | |
13163 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13164 | ;; | |
13165 | hppa*64*) | |
13166 | shrext_cmds='.sl' | |
13167 | hardcode_into_libs=yes | |
13168 | dynamic_linker="$host_os dld.sl" | |
13169 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13170 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13172 | soname_spec='${libname}${release}${shared_ext}$major' | |
13173 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13174 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13175 | ;; | |
13176 | *) | |
13177 | shrext_cmds='.sl' | |
13178 | dynamic_linker="$host_os dld.sl" | |
13179 | shlibpath_var=SHLIB_PATH | |
13180 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13182 | soname_spec='${libname}${release}${shared_ext}$major' | |
13183 | ;; | |
13184 | esac | |
13185 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13186 | postinstall_cmds='chmod 555 $lib' | |
13187 | ;; | |
13188 | ||
13189 | interix[3-9]*) | |
13190 | version_type=linux | |
13191 | need_lib_prefix=no | |
13192 | need_version=no | |
13193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13194 | soname_spec='${libname}${release}${shared_ext}$major' | |
13195 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13196 | shlibpath_var=LD_LIBRARY_PATH | |
13197 | shlibpath_overrides_runpath=no | |
13198 | hardcode_into_libs=yes | |
13199 | ;; | |
13200 | ||
13201 | irix5* | irix6* | nonstopux*) | |
13202 | case $host_os in | |
13203 | nonstopux*) version_type=nonstopux ;; | |
13204 | *) | |
13205 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13206 | version_type=linux | |
13207 | else | |
13208 | version_type=irix | |
13209 | fi ;; | |
13210 | esac | |
13211 | need_lib_prefix=no | |
13212 | need_version=no | |
13213 | soname_spec='${libname}${release}${shared_ext}$major' | |
13214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13215 | case $host_os in | |
13216 | irix5* | nonstopux*) | |
13217 | libsuff= shlibsuff= | |
13218 | ;; | |
13219 | *) | |
13220 | case $LD in # libtool.m4 will add one of these switches to LD | |
13221 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13222 | libsuff= shlibsuff= libmagic=32-bit;; | |
13223 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13224 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13225 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13226 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13227 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13228 | esac | |
13229 | ;; | |
13230 | esac | |
13231 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13232 | shlibpath_overrides_runpath=no | |
13233 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13234 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13235 | hardcode_into_libs=yes | |
13236 | ;; | |
13237 | ||
13238 | # No shared lib support for Linux oldld, aout, or coff. | |
13239 | linux*oldld* | linux*aout* | linux*coff*) | |
13240 | dynamic_linker=no | |
13241 | ;; | |
13242 | ||
13243 | # This must be Linux ELF. | |
13244 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13245 | version_type=linux | |
13246 | need_lib_prefix=no | |
13247 | need_version=no | |
13248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13249 | soname_spec='${libname}${release}${shared_ext}$major' | |
13250 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13251 | shlibpath_var=LD_LIBRARY_PATH | |
13252 | shlibpath_overrides_runpath=no | |
13253 | # Some binutils ld are patched to set DT_RUNPATH | |
13254 | save_LDFLAGS=$LDFLAGS | |
13255 | save_libdir=$libdir | |
13256 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13257 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13259 | /* end confdefs.h. */ | |
13260 | ||
13261 | int | |
13262 | main () | |
13263 | { | |
13264 | ||
13265 | ; | |
13266 | return 0; | |
13267 | } | |
13268 | _ACEOF | |
13269 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13270 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13271 | shlibpath_overrides_runpath=yes | |
13272 | fi | |
13273 | fi | |
13274 | rm -f core conftest.err conftest.$ac_objext \ | |
13275 | conftest$ac_exeext conftest.$ac_ext | |
13276 | LDFLAGS=$save_LDFLAGS | |
13277 | libdir=$save_libdir | |
13278 | ||
13279 | # This implies no fast_install, which is unacceptable. | |
13280 | # Some rework will be needed to allow for fast_install | |
13281 | # before this can be enabled. | |
13282 | hardcode_into_libs=yes | |
13283 | ||
13284 | # Append ld.so.conf contents to the search path | |
13285 | if test -f /etc/ld.so.conf; then | |
13286 | 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;/^$/d' | tr '\n' ' '` | |
13287 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13288 | fi | |
13289 | ||
13290 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13291 | # powerpc, because MkLinux only supported shared libraries with the | |
13292 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13293 | # most powerpc-linux boxes support dynamic linking these days and | |
13294 | # people can always --disable-shared, the test was removed, and we | |
13295 | # assume the GNU/Linux dynamic linker is in use. | |
13296 | dynamic_linker='GNU/Linux ld.so' | |
13297 | ;; | |
13298 | ||
13299 | netbsdelf*-gnu) | |
13300 | version_type=linux | |
13301 | need_lib_prefix=no | |
13302 | need_version=no | |
13303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13304 | soname_spec='${libname}${release}${shared_ext}$major' | |
13305 | shlibpath_var=LD_LIBRARY_PATH | |
13306 | shlibpath_overrides_runpath=no | |
13307 | hardcode_into_libs=yes | |
13308 | dynamic_linker='NetBSD ld.elf_so' | |
13309 | ;; | |
13310 | ||
13311 | netbsd*) | |
13312 | version_type=sunos | |
13313 | need_lib_prefix=no | |
13314 | need_version=no | |
13315 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13317 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13318 | dynamic_linker='NetBSD (a.out) ld.so' | |
13319 | else | |
13320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13321 | soname_spec='${libname}${release}${shared_ext}$major' | |
13322 | dynamic_linker='NetBSD ld.elf_so' | |
13323 | fi | |
13324 | shlibpath_var=LD_LIBRARY_PATH | |
13325 | shlibpath_overrides_runpath=yes | |
13326 | hardcode_into_libs=yes | |
13327 | ;; | |
13328 | ||
13329 | newsos6) | |
13330 | version_type=linux | |
13331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13332 | shlibpath_var=LD_LIBRARY_PATH | |
13333 | shlibpath_overrides_runpath=yes | |
13334 | ;; | |
13335 | ||
13336 | *nto* | *qnx*) | |
13337 | version_type=qnx | |
13338 | need_lib_prefix=no | |
13339 | need_version=no | |
13340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13341 | soname_spec='${libname}${release}${shared_ext}$major' | |
13342 | shlibpath_var=LD_LIBRARY_PATH | |
13343 | shlibpath_overrides_runpath=no | |
13344 | hardcode_into_libs=yes | |
13345 | dynamic_linker='ldqnx.so' | |
13346 | ;; | |
13347 | ||
13348 | openbsd*) | |
13349 | version_type=sunos | |
13350 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13351 | need_lib_prefix=no | |
13352 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13353 | case $host_os in | |
13354 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13355 | *) need_version=no ;; | |
13356 | esac | |
13357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13358 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13359 | shlibpath_var=LD_LIBRARY_PATH | |
13360 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13361 | case $host_os in | |
13362 | openbsd2.[89] | openbsd2.[89].*) | |
13363 | shlibpath_overrides_runpath=no | |
13364 | ;; | |
13365 | *) | |
13366 | shlibpath_overrides_runpath=yes | |
13367 | ;; | |
13368 | esac | |
13369 | else | |
13370 | shlibpath_overrides_runpath=yes | |
13371 | fi | |
13372 | ;; | |
13373 | ||
13374 | os2*) | |
13375 | libname_spec='$name' | |
13376 | shrext_cmds=".dll" | |
13377 | need_lib_prefix=no | |
13378 | library_names_spec='$libname${shared_ext} $libname.a' | |
13379 | dynamic_linker='OS/2 ld.exe' | |
13380 | shlibpath_var=LIBPATH | |
13381 | ;; | |
13382 | ||
13383 | osf3* | osf4* | osf5*) | |
13384 | version_type=osf | |
13385 | need_lib_prefix=no | |
13386 | need_version=no | |
13387 | soname_spec='${libname}${release}${shared_ext}$major' | |
13388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13389 | shlibpath_var=LD_LIBRARY_PATH | |
13390 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13391 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13392 | ;; | |
13393 | ||
13394 | rdos*) | |
13395 | dynamic_linker=no | |
13396 | ;; | |
13397 | ||
13398 | solaris*) | |
13399 | version_type=linux | |
13400 | need_lib_prefix=no | |
13401 | need_version=no | |
13402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13403 | soname_spec='${libname}${release}${shared_ext}$major' | |
13404 | shlibpath_var=LD_LIBRARY_PATH | |
13405 | shlibpath_overrides_runpath=yes | |
13406 | hardcode_into_libs=yes | |
13407 | # ldd complains unless libraries are executable | |
13408 | postinstall_cmds='chmod +x $lib' | |
13409 | ;; | |
13410 | ||
13411 | sunos4*) | |
13412 | version_type=sunos | |
13413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13414 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13415 | shlibpath_var=LD_LIBRARY_PATH | |
13416 | shlibpath_overrides_runpath=yes | |
13417 | if test "$with_gnu_ld" = yes; then | |
13418 | need_lib_prefix=no | |
13419 | fi | |
13420 | need_version=yes | |
13421 | ;; | |
13422 | ||
13423 | sysv4 | sysv4.3*) | |
13424 | version_type=linux | |
13425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13426 | soname_spec='${libname}${release}${shared_ext}$major' | |
13427 | shlibpath_var=LD_LIBRARY_PATH | |
13428 | case $host_vendor in | |
13429 | sni) | |
13430 | shlibpath_overrides_runpath=no | |
13431 | need_lib_prefix=no | |
13432 | runpath_var=LD_RUN_PATH | |
13433 | ;; | |
13434 | siemens) | |
13435 | need_lib_prefix=no | |
13436 | ;; | |
13437 | motorola) | |
13438 | need_lib_prefix=no | |
13439 | need_version=no | |
13440 | shlibpath_overrides_runpath=no | |
13441 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13442 | ;; | |
13443 | esac | |
13444 | ;; | |
13445 | ||
13446 | sysv4*MP*) | |
13447 | if test -d /usr/nec ;then | |
13448 | version_type=linux | |
13449 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13450 | soname_spec='$libname${shared_ext}.$major' | |
13451 | shlibpath_var=LD_LIBRARY_PATH | |
13452 | fi | |
13453 | ;; | |
13454 | ||
13455 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13456 | version_type=freebsd-elf | |
13457 | need_lib_prefix=no | |
13458 | need_version=no | |
13459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13460 | soname_spec='${libname}${release}${shared_ext}$major' | |
13461 | shlibpath_var=LD_LIBRARY_PATH | |
13462 | shlibpath_overrides_runpath=yes | |
13463 | hardcode_into_libs=yes | |
13464 | if test "$with_gnu_ld" = yes; then | |
13465 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13466 | else | |
13467 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13468 | case $host_os in | |
13469 | sco3.2v5*) | |
13470 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13471 | ;; | |
13472 | esac | |
13473 | fi | |
13474 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13475 | ;; | |
13476 | ||
13477 | tpf*) | |
13478 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13479 | version_type=linux | |
13480 | need_lib_prefix=no | |
13481 | need_version=no | |
13482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13483 | shlibpath_var=LD_LIBRARY_PATH | |
13484 | shlibpath_overrides_runpath=no | |
13485 | hardcode_into_libs=yes | |
13486 | ;; | |
13487 | ||
13488 | uts4*) | |
13489 | version_type=linux | |
13490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13491 | soname_spec='${libname}${release}${shared_ext}$major' | |
13492 | shlibpath_var=LD_LIBRARY_PATH | |
13493 | ;; | |
13494 | ||
13495 | *) | |
13496 | dynamic_linker=no | |
13497 | ;; | |
13498 | esac | |
13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
13500 | $as_echo "$dynamic_linker" >&6; } | |
13501 | test "$dynamic_linker" = no && can_build_shared=no | |
13502 | ||
13503 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13504 | if test "$GCC" = yes; then | |
13505 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
13506 | fi | |
13507 | ||
13508 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
13509 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
13510 | fi | |
13511 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
13512 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
13513 | fi | |
13514 | ||
13515 | ||
13516 | ||
13517 | ||
13518 | ||
13519 | ||
13520 | ||
13521 | ||
13522 | ||
13523 | ||
13524 | ||
13525 | ||
13526 | ||
13527 | ||
13528 | ||
13529 | ||
13530 | ||
13531 | ||
13532 | ||
13533 | ||
13534 | ||
13535 | ||
13536 | ||
13537 | ||
13538 | ||
13539 | ||
13540 | ||
13541 | ||
13542 | ||
13543 | ||
13544 | ||
13545 | ||
13546 | ||
13547 | ||
13548 | ||
13549 | ||
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
13551 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
13552 | hardcode_action_CXX= | |
13553 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
13554 | test -n "$runpath_var_CXX" || | |
13555 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
13556 | ||
13557 | # We can hardcode non-existent directories. | |
13558 | if test "$hardcode_direct_CXX" != no && | |
13559 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13560 | # have to relink, otherwise we might link with an installed library | |
13561 | # when we should be linking with a yet-to-be-installed one | |
13562 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13563 | test "$hardcode_minus_L_CXX" != no; then | |
13564 | # Linking always hardcodes the temporary library directory. | |
13565 | hardcode_action_CXX=relink | |
13566 | else | |
13567 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13568 | hardcode_action_CXX=immediate | |
13569 | fi | |
13570 | else | |
13571 | # We cannot hardcode anything, or else we can only hardcode existing | |
13572 | # directories. | |
13573 | hardcode_action_CXX=unsupported | |
13574 | fi | |
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
13576 | $as_echo "$hardcode_action_CXX" >&6; } | |
13577 | ||
13578 | if test "$hardcode_action_CXX" = relink || | |
13579 | test "$inherit_rpath_CXX" = yes; then | |
13580 | # Fast installation is not supported | |
13581 | enable_fast_install=no | |
13582 | elif test "$shlibpath_overrides_runpath" = yes || | |
13583 | test "$enable_shared" = no; then | |
13584 | # Fast installation is not necessary | |
13585 | enable_fast_install=needless | |
13586 | fi | |
13587 | ||
13588 | ||
13589 | ||
13590 | ||
13591 | ||
13592 | ||
13593 | ||
13594 | fi # test -n "$compiler" | |
13595 | ||
13596 | CC=$lt_save_CC | |
13597 | LDCXX=$LD | |
13598 | LD=$lt_save_LD | |
13599 | GCC=$lt_save_GCC | |
13600 | with_gnu_ld=$lt_save_with_gnu_ld | |
13601 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13602 | lt_cv_path_LD=$lt_save_path_LD | |
13603 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13604 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13605 | fi # test "$_lt_caught_CXX_error" != yes | |
13606 | ||
13607 | ac_ext=c | |
13608 | ac_cpp='$CPP $CPPFLAGS' | |
13609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13612 | ||
13613 | ||
13614 | ac_ext=cpp | |
13615 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13616 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13617 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13618 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13619 | ||
13620 | for ac_prog in 'bison -y' byacc | |
13621 | do | |
13622 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13623 | set dummy $ac_prog; ac_word=$2 | |
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13625 | $as_echo_n "checking for $ac_word... " >&6; } | |
13626 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
13627 | $as_echo_n "(cached) " >&6 | |
13628 | else | |
13629 | if test -n "$YACC"; then | |
13630 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
13631 | else | |
13632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13633 | for as_dir in $PATH | |
13634 | do | |
13635 | IFS=$as_save_IFS | |
13636 | test -z "$as_dir" && as_dir=. | |
13637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13639 | ac_cv_prog_YACC="$ac_prog" | |
13640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13641 | break 2 | |
13642 | fi | |
13643 | done | |
13644 | done | |
13645 | IFS=$as_save_IFS | |
13646 | ||
13647 | fi | |
13648 | fi | |
13649 | YACC=$ac_cv_prog_YACC | |
13650 | if test -n "$YACC"; then | |
13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
13652 | $as_echo "$YACC" >&6; } | |
13653 | else | |
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13655 | $as_echo "no" >&6; } | |
13656 | fi | |
13657 | ||
13658 | ||
13659 | test -n "$YACC" && break | |
13660 | done | |
13661 | test -n "$YACC" || YACC="yacc" | |
13662 | ||
13663 | ||
13664 | ||
13665 | ||
13666 | ||
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5 | |
13668 | $as_echo_n "checking if bison is the parser generator... " >&6; } | |
13669 | if test "${ax_cv_prog_bison+set}" = set; then : | |
13670 | $as_echo_n "(cached) " >&6 | |
13671 | else | |
13672 | ||
13673 | if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then : | |
13674 | ||
13675 | ax_cv_prog_bison=yes | |
13676 | ||
13677 | else | |
13678 | ||
13679 | ax_cv_prog_bison=no | |
13680 | ||
13681 | fi | |
13682 | ||
13683 | fi | |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5 | |
13685 | $as_echo "$ax_cv_prog_bison" >&6; } | |
13686 | if test "$ax_cv_prog_bison" = yes; then : | |
13687 | ||
13688 | : | |
13689 | ||
13690 | BISON=`echo $YACC | $SED -e 's/ -y//'` | |
13691 | BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
13692 | ||
13693 | ||
13694 | else | |
13695 | ||
13696 | : | |
13697 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 | |
13698 | ||
13699 | fi | |
13700 | ||
13701 | for ac_prog in gawk mawk nawk awk | |
13702 | do | |
13703 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13704 | set dummy $ac_prog; ac_word=$2 | |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13706 | $as_echo_n "checking for $ac_word... " >&6; } | |
13707 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
13708 | $as_echo_n "(cached) " >&6 | |
13709 | else | |
13710 | if test -n "$AWK"; then | |
13711 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
13712 | else | |
13713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13714 | for as_dir in $PATH | |
13715 | do | |
13716 | IFS=$as_save_IFS | |
13717 | test -z "$as_dir" && as_dir=. | |
13718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13720 | ac_cv_prog_AWK="$ac_prog" | |
13721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13722 | break 2 | |
13723 | fi | |
13724 | done | |
13725 | done | |
13726 | IFS=$as_save_IFS | |
13727 | ||
13728 | fi | |
13729 | fi | |
13730 | AWK=$ac_cv_prog_AWK | |
13731 | if test -n "$AWK"; then | |
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
13733 | $as_echo "$AWK" >&6; } | |
13734 | else | |
13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13736 | $as_echo "no" >&6; } | |
13737 | fi | |
13738 | ||
13739 | ||
13740 | test -n "$AWK" && break | |
13741 | done | |
13742 | ||
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5 | |
13744 | $as_echo_n "checking if bison is >= 2.3... " >&6; } | |
13745 | as_arg_v1=$BISON_VERSION | |
13746 | as_arg_v2=2.3 | |
13747 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
13748 | case $? in #( | |
13749 | 1) : | |
13750 | ||
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13752 | $as_echo "no" >&6; } | |
13753 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 | |
13754 | ;; #( | |
13755 | 0) : | |
13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13757 | $as_echo "yes" >&6; } ;; #( | |
13758 | 2) : | |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13760 | $as_echo "yes" >&6; } ;; #( | |
13761 | *) : | |
13762 | ;; | |
13763 | esac | |
13764 | ||
13765 | # expand $ac_aux_dir to an absolute path | |
13766 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
13767 | ||
13768 | if test x"${MISSING+set}" != xset; then | |
13769 | case $am_aux_dir in | |
13770 | *\ * | *\ *) | |
13771 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
13772 | *) | |
13773 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
13774 | esac | |
13775 | fi | |
13776 | # Use eval to expand $SHELL | |
13777 | if eval "$MISSING --run true"; then | |
13778 | am_missing_run="$MISSING --run " | |
13779 | else | |
13780 | am_missing_run= | |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
13782 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
13783 | fi | |
13784 | ||
13785 | for ac_prog in flex lex | |
13786 | do | |
13787 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13788 | set dummy $ac_prog; ac_word=$2 | |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13790 | $as_echo_n "checking for $ac_word... " >&6; } | |
13791 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
13792 | $as_echo_n "(cached) " >&6 | |
13793 | else | |
13794 | if test -n "$LEX"; then | |
13795 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
13796 | else | |
13797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13798 | for as_dir in $PATH | |
13799 | do | |
13800 | IFS=$as_save_IFS | |
13801 | test -z "$as_dir" && as_dir=. | |
13802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13804 | ac_cv_prog_LEX="$ac_prog" | |
13805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13806 | break 2 | |
13807 | fi | |
13808 | done | |
13809 | done | |
13810 | IFS=$as_save_IFS | |
13811 | ||
13812 | fi | |
13813 | fi | |
13814 | LEX=$ac_cv_prog_LEX | |
13815 | if test -n "$LEX"; then | |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
13817 | $as_echo "$LEX" >&6; } | |
13818 | else | |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13820 | $as_echo "no" >&6; } | |
13821 | fi | |
13822 | ||
13823 | ||
13824 | test -n "$LEX" && break | |
13825 | done | |
13826 | test -n "$LEX" || LEX=":" | |
13827 | ||
13828 | if test "x$LEX" != "x:"; then | |
13829 | cat >conftest.l <<_ACEOF | |
13830 | %% | |
13831 | a { ECHO; } | |
13832 | b { REJECT; } | |
13833 | c { yymore (); } | |
13834 | d { yyless (1); } | |
13835 | e { yyless (input () != 0); } | |
13836 | f { unput (yytext[0]); } | |
13837 | . { BEGIN INITIAL; } | |
13838 | %% | |
13839 | #ifdef YYTEXT_POINTER | |
13840 | extern char *yytext; | |
13841 | #endif | |
13842 | int | |
13843 | main (void) | |
13844 | { | |
13845 | return ! yylex () + ! yywrap (); | |
13846 | } | |
13847 | _ACEOF | |
13848 | { { ac_try="$LEX conftest.l" | |
13849 | case "(($ac_try" in | |
13850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13851 | *) ac_try_echo=$ac_try;; | |
13852 | esac | |
13853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13854 | $as_echo "$ac_try_echo"; } >&5 | |
13855 | (eval "$LEX conftest.l") 2>&5 | |
13856 | ac_status=$? | |
13857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13858 | test $ac_status = 0; } | |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
13860 | $as_echo_n "checking lex output file root... " >&6; } | |
13861 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
13862 | $as_echo_n "(cached) " >&6 | |
13863 | else | |
13864 | ||
13865 | if test -f lex.yy.c; then | |
13866 | ac_cv_prog_lex_root=lex.yy | |
13867 | elif test -f lexyy.c; then | |
13868 | ac_cv_prog_lex_root=lexyy | |
13869 | else | |
13870 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
13871 | fi | |
13872 | fi | |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
13874 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
13875 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
13876 | ||
13877 | if test -z "${LEXLIB+set}"; then | |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
13879 | $as_echo_n "checking lex library... " >&6; } | |
13880 | if test "${ac_cv_lib_lex+set}" = set; then : | |
13881 | $as_echo_n "(cached) " >&6 | |
13882 | else | |
13883 | ||
13884 | ac_save_LIBS=$LIBS | |
13885 | ac_cv_lib_lex='none needed' | |
13886 | for ac_lib in '' -lfl -ll; do | |
13887 | LIBS="$ac_lib $ac_save_LIBS" | |
13888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13889 | /* end confdefs.h. */ | |
13890 | `cat $LEX_OUTPUT_ROOT.c` | |
13891 | _ACEOF | |
13892 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13893 | ac_cv_lib_lex=$ac_lib | |
13894 | fi | |
13895 | rm -f core conftest.err conftest.$ac_objext \ | |
13896 | conftest$ac_exeext conftest.$ac_ext | |
13897 | test "$ac_cv_lib_lex" != 'none needed' && break | |
13898 | done | |
13899 | LIBS=$ac_save_LIBS | |
13900 | ||
13901 | fi | |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
13903 | $as_echo "$ac_cv_lib_lex" >&6; } | |
13904 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
13905 | fi | |
13906 | ||
13907 | ||
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
13909 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
13910 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
13911 | $as_echo_n "(cached) " >&6 | |
13912 | else | |
13913 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
13914 | # default is implementation-dependent. Figure out which it is, since | |
13915 | # not all implementations provide the %pointer and %array declarations. | |
13916 | ac_cv_prog_lex_yytext_pointer=no | |
13917 | ac_save_LIBS=$LIBS | |
13918 | LIBS="$LEXLIB $ac_save_LIBS" | |
13919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13920 | /* end confdefs.h. */ | |
13921 | #define YYTEXT_POINTER 1 | |
13922 | `cat $LEX_OUTPUT_ROOT.c` | |
13923 | _ACEOF | |
13924 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13925 | ac_cv_prog_lex_yytext_pointer=yes | |
13926 | fi | |
13927 | rm -f core conftest.err conftest.$ac_objext \ | |
13928 | conftest$ac_exeext conftest.$ac_ext | |
13929 | LIBS=$ac_save_LIBS | |
13930 | ||
13931 | fi | |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
13933 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
13934 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
13935 | ||
13936 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h | |
13937 | ||
13938 | fi | |
13939 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
13940 | ||
13941 | fi | |
13942 | if test "$LEX" = :; then | |
13943 | LEX=${am_missing_run}flex | |
13944 | fi | |
13945 | ||
13946 | ||
13947 | ||
13948 | ||
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5 | |
13950 | $as_echo_n "checking if flex is the lexer generator... " >&6; } | |
13951 | if test "${ax_cv_prog_flex+set}" = set; then : | |
13952 | $as_echo_n "(cached) " >&6 | |
13953 | else | |
13954 | ||
13955 | if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then : | |
13956 | ||
13957 | ax_cv_prog_flex=yes | |
13958 | ||
13959 | else | |
13960 | ||
13961 | ax_cv_prog_flex=no | |
13962 | ||
13963 | fi | |
13964 | ||
13965 | fi | |
13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5 | |
13967 | $as_echo "$ax_cv_prog_flex" >&6; } | |
13968 | if test "$ax_cv_prog_flex" = yes; then : | |
13969 | ||
13970 | : | |
13971 | ||
13972 | FLEX=$LEX | |
13973 | FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
13974 | ||
13975 | ||
13976 | else | |
13977 | ||
13978 | : | |
13979 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
13980 | ||
13981 | fi | |
13982 | ||
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5 | |
13984 | $as_echo_n "checking if flex is >= 2.5.33... " >&6; } | |
13985 | as_arg_v1=$FLEX_VERSION | |
13986 | as_arg_v2=2.5.33 | |
13987 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
13988 | case $? in #( | |
13989 | 1) : | |
13990 | ||
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13992 | $as_echo "no" >&6; } | |
13993 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
13994 | ;; #( | |
13995 | 0) : | |
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13997 | $as_echo "yes" >&6; } ;; #( | |
13998 | 2) : | |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14000 | $as_echo "yes" >&6; } ;; #( | |
14001 | *) : | |
14002 | ;; | |
14003 | esac | |
14004 | ||
14005 | for ac_prog in bash | |
14006 | do | |
14007 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14008 | set dummy $ac_prog; ac_word=$2 | |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14010 | $as_echo_n "checking for $ac_word... " >&6; } | |
14011 | if test "${ac_cv_prog__BASH+set}" = set; then : | |
14012 | $as_echo_n "(cached) " >&6 | |
14013 | else | |
14014 | if test -n "$_BASH"; then | |
14015 | ac_cv_prog__BASH="$_BASH" # Let the user override the test. | |
14016 | else | |
14017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14018 | for as_dir in $PATH | |
14019 | do | |
14020 | IFS=$as_save_IFS | |
14021 | test -z "$as_dir" && as_dir=. | |
14022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14024 | ac_cv_prog__BASH="$ac_prog" | |
14025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14026 | break 2 | |
14027 | fi | |
14028 | done | |
14029 | done | |
14030 | IFS=$as_save_IFS | |
14031 | ||
14032 | fi | |
14033 | fi | |
14034 | _BASH=$ac_cv_prog__BASH | |
14035 | if test -n "$_BASH"; then | |
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
14037 | $as_echo "$_BASH" >&6; } | |
14038 | else | |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14040 | $as_echo "no" >&6; } | |
14041 | fi | |
14042 | ||
14043 | ||
14044 | test -n "$_BASH" && break | |
14045 | done | |
14046 | ||
14047 | ||
14048 | for ac_prog in gperf | |
14049 | do | |
14050 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14051 | set dummy $ac_prog; ac_word=$2 | |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14053 | $as_echo_n "checking for $ac_word... " >&6; } | |
14054 | if test "${ac_cv_prog_GPERF+set}" = set; then : | |
14055 | $as_echo_n "(cached) " >&6 | |
14056 | else | |
14057 | if test -n "$GPERF"; then | |
14058 | ac_cv_prog_GPERF="$GPERF" # Let the user override the test. | |
14059 | else | |
14060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14061 | for as_dir in $PATH | |
14062 | do | |
14063 | IFS=$as_save_IFS | |
14064 | test -z "$as_dir" && as_dir=. | |
14065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14067 | ac_cv_prog_GPERF="$ac_prog" | |
14068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14069 | break 2 | |
14070 | fi | |
14071 | done | |
14072 | done | |
14073 | IFS=$as_save_IFS | |
14074 | ||
14075 | fi | |
14076 | fi | |
14077 | GPERF=$ac_cv_prog_GPERF | |
14078 | if test -n "$GPERF"; then | |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 | |
14080 | $as_echo "$GPERF" >&6; } | |
14081 | else | |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14083 | $as_echo "no" >&6; } | |
14084 | fi | |
14085 | ||
14086 | ||
14087 | test -n "$GPERF" && break | |
14088 | done | |
14089 | ||
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5 | |
14091 | $as_echo_n "checking if gperf >= 3.0.3... " >&6; } | |
14092 | GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
14093 | as_arg_v1=$GPERF_VERSION | |
14094 | as_arg_v2=3.0.3 | |
14095 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
14096 | case $? in #( | |
14097 | 1) : | |
14098 | ||
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14100 | $as_echo "no" >&6; } | |
14101 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 | |
14102 | ;; #( | |
14103 | 0) : | |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14105 | $as_echo "yes" >&6; } ;; #( | |
14106 | 2) : | |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14108 | $as_echo "yes" >&6; } ;; #( | |
14109 | *) : | |
14110 | ;; | |
14111 | esac | |
14112 | for ac_prog in time | |
14113 | do | |
14114 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14115 | set dummy $ac_prog; ac_word=$2 | |
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14117 | $as_echo_n "checking for $ac_word... " >&6; } | |
14118 | if test "${ac_cv_prog_TIME+set}" = set; then : | |
14119 | $as_echo_n "(cached) " >&6 | |
14120 | else | |
14121 | if test -n "$TIME"; then | |
14122 | ac_cv_prog_TIME="$TIME" # Let the user override the test. | |
14123 | else | |
14124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14125 | for as_dir in $PATH | |
14126 | do | |
14127 | IFS=$as_save_IFS | |
14128 | test -z "$as_dir" && as_dir=. | |
14129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14131 | ac_cv_prog_TIME="$ac_prog" | |
14132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14133 | break 2 | |
14134 | fi | |
14135 | done | |
14136 | done | |
14137 | IFS=$as_save_IFS | |
14138 | ||
14139 | fi | |
14140 | fi | |
14141 | TIME=$ac_cv_prog_TIME | |
14142 | if test -n "$TIME"; then | |
14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
14144 | $as_echo "$TIME" >&6; } | |
14145 | else | |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14147 | $as_echo "no" >&6; } | |
14148 | fi | |
14149 | ||
14150 | ||
14151 | test -n "$TIME" && break | |
14152 | done | |
14153 | ||
14154 | ||
14155 | apr_found="no" | |
14156 | ||
14157 | if test "$target_os" = "os2-emx"; then | |
14158 | # Scripts don't pass test -x on OS/2 | |
14159 | TEST_X="test -f" | |
14160 | else | |
14161 | TEST_X="test -x" | |
14162 | fi | |
14163 | ||
14164 | acceptable_majors="1" | |
14165 | ||
14166 | apr_temp_acceptable_apr_config="" | |
14167 | for apr_temp_major in $acceptable_majors | |
14168 | do | |
14169 | case $apr_temp_major in | |
14170 | 0) | |
14171 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14172 | ;; | |
14173 | *) | |
14174 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14175 | ;; | |
14176 | esac | |
14177 | done | |
14178 | ||
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
14180 | $as_echo_n "checking for APR... " >&6; } | |
14181 | ||
14182 | # Check whether --with-apr was given. | |
14183 | if test "${with_apr+set}" = set; then : | |
14184 | withval=$with_apr; | |
14185 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14186 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14187 | fi | |
14188 | ||
14189 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14190 | do | |
14191 | for lookdir in "$withval/bin" "$withval" | |
14192 | do | |
14193 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14194 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
14195 | ||
14196 | apr_found="yes" | |
14197 | break 2 | |
14198 | fi | |
14199 | done | |
14200 | done | |
14201 | ||
14202 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
14203 | apr_config="$withval" | |
14204 | apr_found="yes" | |
14205 | fi | |
14206 | ||
14207 | if test "$apr_found" != "yes"; then | |
14208 | as_fn_error "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 | |
14209 | fi | |
14210 | ||
14211 | else | |
14212 | ||
14213 | if test -n "1" && test "1" = "1"; then | |
14214 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14215 | do | |
14216 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14217 | apr_config="$apr_temp_apr_config_file" | |
14218 | ||
14219 | apr_found="yes" | |
14220 | break | |
14221 | else | |
14222 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14223 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14224 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
14225 | ||
14226 | apr_found="yes" | |
14227 | break 2 | |
14228 | fi | |
14229 | done | |
14230 | fi | |
14231 | done | |
14232 | fi | |
14233 | if test "$apr_found" = "no" && test -d ""; then | |
14234 | apr_temp_abs_srcdir="`cd && pwd`" | |
14235 | apr_found="reconfig" | |
14236 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14237 | case $apr_bundled_major in | |
14238 | "") | |
14239 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14240 | ;; | |
14241 | 0) | |
14242 | apr_temp_apr_config_file="apr-config" | |
14243 | ;; | |
14244 | *) | |
14245 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14246 | ;; | |
14247 | esac | |
14248 | if test -n ""; then | |
14249 | apr_config="/$apr_temp_apr_config_file" | |
14250 | else | |
14251 | apr_config="/$apr_temp_apr_config_file" | |
14252 | fi | |
14253 | fi | |
14254 | ||
14255 | fi | |
14256 | ||
14257 | ||
14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 | |
14259 | $as_echo "$apr_found" >&6; } | |
14260 | ||
14261 | case $apr_found in #( | |
14262 | yes) : | |
14263 | ||
14264 | ||
14265 | for element in `$apr_config --includes`; do | |
14266 | haveit= | |
14267 | for x in $CPPFLAGS; do | |
14268 | ||
14269 | acl_save_prefix="$prefix" | |
14270 | prefix="$acl_final_prefix" | |
14271 | acl_save_exec_prefix="$exec_prefix" | |
14272 | exec_prefix="$acl_final_exec_prefix" | |
14273 | eval x=\"$x\" | |
14274 | exec_prefix="$acl_save_exec_prefix" | |
14275 | prefix="$acl_save_prefix" | |
14276 | ||
14277 | if test "X$x" = "X$element"; then | |
14278 | haveit=yes | |
14279 | break | |
14280 | fi | |
14281 | done | |
14282 | if test -z "$haveit"; then | |
14283 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
14284 | fi | |
14285 | done | |
14286 | ||
14287 | LTLIBAPR=`$apr_config --link-libtool` | |
14288 | ||
14289 | ;; #( | |
14290 | *) : | |
14291 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
14292 | esac | |
14293 | ||
14294 | ||
14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
14296 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
14297 | if test "${vl_cv_lib_readline+set}" = set; then : | |
14298 | $as_echo_n "(cached) " >&6 | |
14299 | else | |
14300 | ||
14301 | ORIG_LIBS="$LIBS" | |
14302 | for readline_lib in readline edit editline; do | |
14303 | for termcap_lib in "" termcap curses ncurses; do | |
14304 | if test -z "$termcap_lib"; then | |
14305 | TRY_LIB="-l$readline_lib" | |
14306 | else | |
14307 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
14308 | fi | |
14309 | LIBS="$ORIG_LIBS $TRY_LIB" | |
14310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14311 | /* end confdefs.h. */ | |
14312 | ||
14313 | /* Override any GCC internal prototype to avoid an error. | |
14314 | Use char because int might match the return type of a GCC | |
14315 | builtin and then its argument prototype would still apply. */ | |
14316 | #ifdef __cplusplus | |
14317 | extern "C" | |
14318 | #endif | |
14319 | char readline (); | |
14320 | int | |
14321 | main () | |
14322 | { | |
14323 | return readline (); | |
14324 | ; | |
14325 | return 0; | |
14326 | } | |
14327 | _ACEOF | |
14328 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14329 | vl_cv_lib_readline="$TRY_LIB" | |
14330 | fi | |
14331 | rm -f core conftest.err conftest.$ac_objext \ | |
14332 | conftest$ac_exeext conftest.$ac_ext | |
14333 | if test -n "$vl_cv_lib_readline"; then | |
14334 | break | |
14335 | fi | |
14336 | done | |
14337 | if test -n "$vl_cv_lib_readline"; then | |
14338 | break | |
14339 | fi | |
14340 | done | |
14341 | if test -z "$vl_cv_lib_readline"; then | |
14342 | vl_cv_lib_readline="no" | |
14343 | LIBS="$ORIG_LIBS" | |
14344 | fi | |
14345 | ||
14346 | fi | |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 | |
14348 | $as_echo "$vl_cv_lib_readline" >&6; } | |
14349 | ||
14350 | if test "$vl_cv_lib_readline" != "no"; then | |
14351 | ||
14352 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
14353 | ||
14354 | for ac_header in readline.h readline/readline.h | |
14355 | do : | |
14356 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14357 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14358 | eval as_val=\$$as_ac_Header | |
14359 | if test "x$as_val" = x""yes; then : | |
14360 | cat >>confdefs.h <<_ACEOF | |
14361 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14362 | _ACEOF | |
14363 | ||
14364 | fi | |
14365 | ||
14366 | done | |
14367 | ||
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
14369 | $as_echo_n "checking whether readline supports history... " >&6; } | |
14370 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
14371 | $as_echo_n "(cached) " >&6 | |
14372 | else | |
14373 | ||
14374 | vl_cv_lib_readline_history="no" | |
14375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14376 | /* end confdefs.h. */ | |
14377 | ||
14378 | /* Override any GCC internal prototype to avoid an error. | |
14379 | Use char because int might match the return type of a GCC | |
14380 | builtin and then its argument prototype would still apply. */ | |
14381 | #ifdef __cplusplus | |
14382 | extern "C" | |
14383 | #endif | |
14384 | char add_history (); | |
14385 | int | |
14386 | main () | |
14387 | { | |
14388 | return add_history (); | |
14389 | ; | |
14390 | return 0; | |
14391 | } | |
14392 | _ACEOF | |
14393 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14394 | vl_cv_lib_readline_history="yes" | |
14395 | fi | |
14396 | rm -f core conftest.err conftest.$ac_objext \ | |
14397 | conftest$ac_exeext conftest.$ac_ext | |
14398 | ||
14399 | fi | |
14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
14401 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
14402 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
14403 | ||
14404 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
14405 | ||
14406 | for ac_header in history.h readline/history.h | |
14407 | do : | |
14408 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14409 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14410 | eval as_val=\$$as_ac_Header | |
14411 | if test "x$as_val" = x""yes; then : | |
14412 | cat >>confdefs.h <<_ACEOF | |
14413 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14414 | _ACEOF | |
14415 | ||
14416 | fi | |
14417 | ||
14418 | done | |
14419 | ||
14420 | fi | |
14421 | fi | |
14422 | ||
14423 | # Find a good install program. We prefer a C program (faster), | |
14424 | # so one script is as good as another. But avoid the broken or | |
14425 | # incompatible versions: | |
14426 | # SysV /etc/install, /usr/sbin/install | |
14427 | # SunOS /usr/etc/install | |
14428 | # IRIX /sbin/install | |
14429 | # AIX /bin/install | |
14430 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14431 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14432 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14433 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
14434 | # OS/2's system install, which has a completely different semantic | |
14435 | # ./install, which can be erroneously created by make from ./install.sh. | |
14436 | # Reject install programs that cannot install multiple files. | |
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
14438 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
14439 | if test -z "$INSTALL"; then | |
14440 | if test "${ac_cv_path_install+set}" = set; then : | |
14441 | $as_echo_n "(cached) " >&6 | |
14442 | else | |
14443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14444 | for as_dir in $PATH | |
14445 | do | |
14446 | IFS=$as_save_IFS | |
14447 | test -z "$as_dir" && as_dir=. | |
14448 | # Account for people who put trailing slashes in PATH elements. | |
14449 | case $as_dir/ in #(( | |
14450 | ./ | .// | /[cC]/* | \ | |
14451 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
14452 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
14453 | /usr/ucb/* ) ;; | |
14454 | *) | |
14455 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14456 | # Don't use installbsd from OSF since it installs stuff as root | |
14457 | # by default. | |
14458 | for ac_prog in ginstall scoinst install; do | |
14459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14460 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
14461 | if test $ac_prog = install && | |
14462 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14463 | # AIX install. It has an incompatible calling convention. | |
14464 | : | |
14465 | elif test $ac_prog = install && | |
14466 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14467 | # program-specific install script used by HP pwplus--don't use. | |
14468 | : | |
14469 | else | |
14470 | rm -rf conftest.one conftest.two conftest.dir | |
14471 | echo one > conftest.one | |
14472 | echo two > conftest.two | |
14473 | mkdir conftest.dir | |
14474 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
14475 | test -s conftest.one && test -s conftest.two && | |
14476 | test -s conftest.dir/conftest.one && | |
14477 | test -s conftest.dir/conftest.two | |
14478 | then | |
14479 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14480 | break 3 | |
14481 | fi | |
14482 | fi | |
14483 | fi | |
14484 | done | |
14485 | done | |
14486 | ;; | |
14487 | esac | |
14488 | ||
14489 | done | |
14490 | IFS=$as_save_IFS | |
14491 | ||
14492 | rm -rf conftest.one conftest.two conftest.dir | |
14493 | ||
14494 | fi | |
14495 | if test "${ac_cv_path_install+set}" = set; then | |
14496 | INSTALL=$ac_cv_path_install | |
14497 | else | |
14498 | # As a last resort, use the slow shell script. Don't cache a | |
14499 | # value for INSTALL within a source directory, because that will | |
14500 | # break other packages using the cache if that directory is | |
14501 | # removed, or if the value is a relative name. | |
14502 | INSTALL=$ac_install_sh | |
14503 | fi | |
14504 | fi | |
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
14506 | $as_echo "$INSTALL" >&6; } | |
14507 | ||
14508 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14509 | # It thinks the first close brace ends the variable substitution. | |
14510 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14511 | ||
14512 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14513 | ||
14514 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14515 | ||
14516 | ac_ext=c | |
14517 | ac_cpp='$CPP $CPPFLAGS' | |
14518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14521 | ||
14522 | ||
14523 | if test "X$prefix" = "XNONE"; then | |
14524 | acl_final_prefix="$ac_default_prefix" | |
14525 | else | |
14526 | acl_final_prefix="$prefix" | |
14527 | fi | |
14528 | if test "X$exec_prefix" = "XNONE"; then | |
14529 | acl_final_exec_prefix='${prefix}' | |
14530 | else | |
14531 | acl_final_exec_prefix="$exec_prefix" | |
14532 | fi | |
14533 | acl_save_prefix="$prefix" | |
14534 | prefix="$acl_final_prefix" | |
14535 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
14536 | prefix="$acl_save_prefix" | |
14537 | ||
14538 | ||
14539 | # Check whether --with-gnu-ld was given. | |
14540 | if test "${with_gnu_ld+set}" = set; then : | |
14541 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
14542 | else | |
14543 | with_gnu_ld=no | |
14544 | fi | |
14545 | ||
14546 | # Prepare PATH_SEPARATOR. | |
14547 | # The user is always right. | |
14548 | if test "${PATH_SEPARATOR+set}" != set; then | |
14549 | echo "#! /bin/sh" >conf$$.sh | |
14550 | echo "exit 0" >>conf$$.sh | |
14551 | chmod +x conf$$.sh | |
14552 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14553 | PATH_SEPARATOR=';' | |
14554 | else | |
14555 | PATH_SEPARATOR=: | |
14556 | fi | |
14557 | rm -f conf$$.sh | |
14558 | fi | |
14559 | ac_prog=ld | |
14560 | if test "$GCC" = yes; then | |
14561 | # Check if gcc -print-prog-name=ld gives a path. | |
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
14563 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
14564 | case $host in | |
14565 | *-*-mingw*) | |
14566 | # gcc leaves a trailing carriage return which upsets mingw | |
14567 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
14568 | *) | |
14569 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
14570 | esac | |
14571 | case $ac_prog in | |
14572 | # Accept absolute paths. | |
14573 | [\\/]* | [A-Za-z]:[\\/]*) | |
14574 | re_direlt='/[^/][^/]*/\.\./' | |
14575 | # Canonicalize the path of ld | |
14576 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
14577 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
14578 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
14579 | done | |
14580 | test -z "$LD" && LD="$ac_prog" | |
14581 | ;; | |
14582 | "") | |
14583 | # If it fails, then pretend we aren't using GCC. | |
14584 | ac_prog=ld | |
14585 | ;; | |
14586 | *) | |
14587 | # If it is relative, then search for the first ld in PATH. | |
14588 | with_gnu_ld=unknown | |
14589 | ;; | |
14590 | esac | |
14591 | elif test "$with_gnu_ld" = yes; then | |
14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
14593 | $as_echo_n "checking for GNU ld... " >&6; } | |
14594 | else | |
14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
14596 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
14597 | fi | |
14598 | if test "${acl_cv_path_LD+set}" = set; then : | |
14599 | $as_echo_n "(cached) " >&6 | |
14600 | else | |
14601 | if test -z "$LD"; then | |
14602 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
14603 | for ac_dir in $PATH; do | |
14604 | test -z "$ac_dir" && ac_dir=. | |
14605 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
14606 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
14607 | # Check to see if the program is GNU ld. I'd rather use --version, | |
14608 | # but apparently some GNU ld's only accept -v. | |
14609 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
14610 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
14611 | *GNU* | *'with BFD'*) | |
14612 | test "$with_gnu_ld" != no && break ;; | |
14613 | *) | |
14614 | test "$with_gnu_ld" != yes && break ;; | |
14615 | esac | |
14616 | fi | |
14617 | done | |
14618 | IFS="$ac_save_ifs" | |
14619 | else | |
14620 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
14621 | fi | |
14622 | fi | |
14623 | ||
14624 | LD="$acl_cv_path_LD" | |
14625 | if test -n "$LD"; then | |
14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14627 | $as_echo "$LD" >&6; } | |
14628 | else | |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14630 | $as_echo "no" >&6; } | |
14631 | fi | |
14632 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
14634 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
14635 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
14636 | $as_echo_n "(cached) " >&6 | |
14637 | else | |
14638 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
14639 | case `$LD -v 2>&1 </dev/null` in | |
14640 | *GNU* | *'with BFD'*) | |
14641 | acl_cv_prog_gnu_ld=yes ;; | |
14642 | *) | |
14643 | acl_cv_prog_gnu_ld=no ;; | |
14644 | esac | |
14645 | fi | |
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
14647 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
14648 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
14649 | ||
14650 | ||
14651 | ||
14652 | ||
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
14654 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
14655 | if test "${acl_cv_rpath+set}" = set; then : | |
14656 | $as_echo_n "(cached) " >&6 | |
14657 | else | |
14658 | ||
14659 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
14660 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
14661 | . ./conftest.sh | |
14662 | rm -f ./conftest.sh | |
14663 | acl_cv_rpath=done | |
14664 | ||
14665 | fi | |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
14667 | $as_echo "$acl_cv_rpath" >&6; } | |
14668 | wl="$acl_cv_wl" | |
14669 | acl_libext="$acl_cv_libext" | |
14670 | acl_shlibext="$acl_cv_shlibext" | |
14671 | acl_libname_spec="$acl_cv_libname_spec" | |
14672 | acl_library_names_spec="$acl_cv_library_names_spec" | |
14673 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
14674 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
14675 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
14676 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
14677 | # Check whether --enable-rpath was given. | |
14678 | if test "${enable_rpath+set}" = set; then : | |
14679 | enableval=$enable_rpath; : | |
14680 | else | |
14681 | enable_rpath=yes | |
14682 | fi | |
14683 | ||
14684 | ||
14685 | ||
14686 | acl_libdirstem=lib | |
14687 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
14688 | if test -n "$searchpath"; then | |
14689 | acl_save_IFS="${IFS= }"; IFS=":" | |
14690 | for searchdir in $searchpath; do | |
14691 | if test -d "$searchdir"; then | |
14692 | case "$searchdir" in | |
14693 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
14694 | *) searchdir=`cd "$searchdir" && pwd` | |
14695 | case "$searchdir" in | |
14696 | */lib64 ) acl_libdirstem=lib64 ;; | |
14697 | esac ;; | |
14698 | esac | |
14699 | fi | |
14700 | done | |
14701 | IFS="$acl_save_IFS" | |
14702 | fi | |
14703 | ||
14704 | ||
14705 | ||
14706 | ||
14707 | ||
14708 | ||
14709 | ||
14710 | ||
14711 | ||
14712 | use_additional=yes | |
14713 | ||
14714 | acl_save_prefix="$prefix" | |
14715 | prefix="$acl_final_prefix" | |
14716 | acl_save_exec_prefix="$exec_prefix" | |
14717 | exec_prefix="$acl_final_exec_prefix" | |
14718 | ||
14719 | eval additional_includedir=\"$includedir\" | |
14720 | eval additional_libdir=\"$libdir\" | |
14721 | ||
14722 | exec_prefix="$acl_save_exec_prefix" | |
14723 | prefix="$acl_save_prefix" | |
14724 | ||
14725 | ||
14726 | # Check whether --with-libiconv-prefix was given. | |
14727 | if test "${with_libiconv_prefix+set}" = set; then : | |
14728 | withval=$with_libiconv_prefix; | |
14729 | if test "X$withval" = "Xno"; then | |
14730 | use_additional=no | |
14731 | else | |
14732 | if test "X$withval" = "X"; then | |
14733 | ||
14734 | acl_save_prefix="$prefix" | |
14735 | prefix="$acl_final_prefix" | |
14736 | acl_save_exec_prefix="$exec_prefix" | |
14737 | exec_prefix="$acl_final_exec_prefix" | |
14738 | ||
14739 | eval additional_includedir=\"$includedir\" | |
14740 | eval additional_libdir=\"$libdir\" | |
14741 | ||
14742 | exec_prefix="$acl_save_exec_prefix" | |
14743 | prefix="$acl_save_prefix" | |
14744 | ||
14745 | else | |
14746 | additional_includedir="$withval/include" | |
14747 | additional_libdir="$withval/$acl_libdirstem" | |
14748 | fi | |
14749 | fi | |
14750 | ||
14751 | fi | |
14752 | ||
14753 | LIBICONV= | |
14754 | LTLIBICONV= | |
14755 | INCICONV= | |
14756 | LIBICONV_PREFIX= | |
14757 | rpathdirs= | |
14758 | ltrpathdirs= | |
14759 | names_already_handled= | |
14760 | names_next_round='iconv ' | |
14761 | while test -n "$names_next_round"; do | |
14762 | names_this_round="$names_next_round" | |
14763 | names_next_round= | |
14764 | for name in $names_this_round; do | |
14765 | already_handled= | |
14766 | for n in $names_already_handled; do | |
14767 | if test "$n" = "$name"; then | |
14768 | already_handled=yes | |
14769 | break | |
14770 | fi | |
14771 | done | |
14772 | if test -z "$already_handled"; then | |
14773 | names_already_handled="$names_already_handled $name" | |
14774 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
14775 | eval value=\"\$HAVE_LIB$uppername\" | |
14776 | if test -n "$value"; then | |
14777 | if test "$value" = yes; then | |
14778 | eval value=\"\$LIB$uppername\" | |
14779 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
14780 | eval value=\"\$LTLIB$uppername\" | |
14781 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
14782 | else | |
14783 | : | |
14784 | fi | |
14785 | else | |
14786 | found_dir= | |
14787 | found_la= | |
14788 | found_so= | |
14789 | found_a= | |
14790 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
14791 | if test -n "$acl_shlibext"; then | |
14792 | shrext=".$acl_shlibext" # typically: shrext=.so | |
14793 | else | |
14794 | shrext= | |
14795 | fi | |
14796 | if test $use_additional = yes; then | |
14797 | dir="$additional_libdir" | |
14798 | if test -n "$acl_shlibext"; then | |
14799 | if test -f "$dir/$libname$shrext"; then | |
14800 | found_dir="$dir" | |
14801 | found_so="$dir/$libname$shrext" | |
14802 | else | |
14803 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14804 | ver=`(cd "$dir" && \ | |
14805 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14806 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14807 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14808 | | sed 1q ) 2>/dev/null` | |
14809 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14810 | found_dir="$dir" | |
14811 | found_so="$dir/$libname$shrext.$ver" | |
14812 | fi | |
14813 | else | |
14814 | eval library_names=\"$acl_library_names_spec\" | |
14815 | for f in $library_names; do | |
14816 | if test -f "$dir/$f"; then | |
14817 | found_dir="$dir" | |
14818 | found_so="$dir/$f" | |
14819 | break | |
14820 | fi | |
14821 | done | |
14822 | fi | |
14823 | fi | |
14824 | fi | |
14825 | if test "X$found_dir" = "X"; then | |
14826 | if test -f "$dir/$libname.$acl_libext"; then | |
14827 | found_dir="$dir" | |
14828 | found_a="$dir/$libname.$acl_libext" | |
14829 | fi | |
14830 | fi | |
14831 | if test "X$found_dir" != "X"; then | |
14832 | if test -f "$dir/$libname.la"; then | |
14833 | found_la="$dir/$libname.la" | |
14834 | fi | |
14835 | fi | |
14836 | fi | |
14837 | if test "X$found_dir" = "X"; then | |
14838 | for x in $LDFLAGS $LTLIBICONV; do | |
14839 | ||
14840 | acl_save_prefix="$prefix" | |
14841 | prefix="$acl_final_prefix" | |
14842 | acl_save_exec_prefix="$exec_prefix" | |
14843 | exec_prefix="$acl_final_exec_prefix" | |
14844 | eval x=\"$x\" | |
14845 | exec_prefix="$acl_save_exec_prefix" | |
14846 | prefix="$acl_save_prefix" | |
14847 | ||
14848 | case "$x" in | |
14849 | -L*) | |
14850 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
14851 | if test -n "$acl_shlibext"; then | |
14852 | if test -f "$dir/$libname$shrext"; then | |
14853 | found_dir="$dir" | |
14854 | found_so="$dir/$libname$shrext" | |
14855 | else | |
14856 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14857 | ver=`(cd "$dir" && \ | |
14858 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14859 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14860 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14861 | | sed 1q ) 2>/dev/null` | |
14862 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14863 | found_dir="$dir" | |
14864 | found_so="$dir/$libname$shrext.$ver" | |
14865 | fi | |
14866 | else | |
14867 | eval library_names=\"$acl_library_names_spec\" | |
14868 | for f in $library_names; do | |
14869 | if test -f "$dir/$f"; then | |
14870 | found_dir="$dir" | |
14871 | found_so="$dir/$f" | |
14872 | break | |
14873 | fi | |
14874 | done | |
14875 | fi | |
14876 | fi | |
14877 | fi | |
14878 | if test "X$found_dir" = "X"; then | |
14879 | if test -f "$dir/$libname.$acl_libext"; then | |
14880 | found_dir="$dir" | |
14881 | found_a="$dir/$libname.$acl_libext" | |
14882 | fi | |
14883 | fi | |
14884 | if test "X$found_dir" != "X"; then | |
14885 | if test -f "$dir/$libname.la"; then | |
14886 | found_la="$dir/$libname.la" | |
14887 | fi | |
14888 | fi | |
14889 | ;; | |
14890 | esac | |
14891 | if test "X$found_dir" != "X"; then | |
14892 | break | |
14893 | fi | |
14894 | done | |
14895 | fi | |
14896 | if test "X$found_dir" != "X"; then | |
14897 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
14898 | if test "X$found_so" != "X"; then | |
14899 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
14900 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14901 | else | |
14902 | haveit= | |
14903 | for x in $ltrpathdirs; do | |
14904 | if test "X$x" = "X$found_dir"; then | |
14905 | haveit=yes | |
14906 | break | |
14907 | fi | |
14908 | done | |
14909 | if test -z "$haveit"; then | |
14910 | ltrpathdirs="$ltrpathdirs $found_dir" | |
14911 | fi | |
14912 | if test "$acl_hardcode_direct" = yes; then | |
14913 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14914 | else | |
14915 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
14916 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14917 | haveit= | |
14918 | for x in $rpathdirs; do | |
14919 | if test "X$x" = "X$found_dir"; then | |
14920 | haveit=yes | |
14921 | break | |
14922 | fi | |
14923 | done | |
14924 | if test -z "$haveit"; then | |
14925 | rpathdirs="$rpathdirs $found_dir" | |
14926 | fi | |
14927 | else | |
14928 | haveit= | |
14929 | for x in $LDFLAGS $LIBICONV; do | |
14930 | ||
14931 | acl_save_prefix="$prefix" | |
14932 | prefix="$acl_final_prefix" | |
14933 | acl_save_exec_prefix="$exec_prefix" | |
14934 | exec_prefix="$acl_final_exec_prefix" | |
14935 | eval x=\"$x\" | |
14936 | exec_prefix="$acl_save_exec_prefix" | |
14937 | prefix="$acl_save_prefix" | |
14938 | ||
14939 | if test "X$x" = "X-L$found_dir"; then | |
14940 | haveit=yes | |
14941 | break | |
14942 | fi | |
14943 | done | |
14944 | if test -z "$haveit"; then | |
14945 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
14946 | fi | |
14947 | if test "$acl_hardcode_minus_L" != no; then | |
14948 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14949 | else | |
14950 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
14951 | fi | |
14952 | fi | |
14953 | fi | |
14954 | fi | |
14955 | else | |
14956 | if test "X$found_a" != "X"; then | |
14957 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
14958 | else | |
14959 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
14960 | fi | |
14961 | fi | |
14962 | additional_includedir= | |
14963 | case "$found_dir" in | |
14964 | */$acl_libdirstem | */$acl_libdirstem/) | |
14965 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
14966 | LIBICONV_PREFIX="$basedir" | |
14967 | additional_includedir="$basedir/include" | |
14968 | ;; | |
14969 | esac | |
14970 | if test "X$additional_includedir" != "X"; then | |
14971 | if test "X$additional_includedir" != "X/usr/include"; then | |
14972 | haveit= | |
14973 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
14974 | if test -n "$GCC"; then | |
14975 | case $host_os in | |
14976 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
14977 | esac | |
14978 | fi | |
14979 | fi | |
14980 | if test -z "$haveit"; then | |
14981 | for x in $CPPFLAGS $INCICONV; do | |
14982 | ||
14983 | acl_save_prefix="$prefix" | |
14984 | prefix="$acl_final_prefix" | |
14985 | acl_save_exec_prefix="$exec_prefix" | |
14986 | exec_prefix="$acl_final_exec_prefix" | |
14987 | eval x=\"$x\" | |
14988 | exec_prefix="$acl_save_exec_prefix" | |
14989 | prefix="$acl_save_prefix" | |
14990 | ||
14991 | if test "X$x" = "X-I$additional_includedir"; then | |
14992 | haveit=yes | |
14993 | break | |
14994 | fi | |
14995 | done | |
14996 | if test -z "$haveit"; then | |
14997 | if test -d "$additional_includedir"; then | |
14998 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
14999 | fi | |
15000 | fi | |
15001 | fi | |
15002 | fi | |
15003 | fi | |
15004 | if test -n "$found_la"; then | |
15005 | save_libdir="$libdir" | |
15006 | case "$found_la" in | |
15007 | */* | *\\*) . "$found_la" ;; | |
15008 | *) . "./$found_la" ;; | |
15009 | esac | |
15010 | libdir="$save_libdir" | |
15011 | for dep in $dependency_libs; do | |
15012 | case "$dep" in | |
15013 | -L*) | |
15014 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
15015 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
15016 | haveit= | |
15017 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
15018 | if test -n "$GCC"; then | |
15019 | case $host_os in | |
15020 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15021 | esac | |
15022 | fi | |
15023 | fi | |
15024 | if test -z "$haveit"; then | |
15025 | haveit= | |
15026 | for x in $LDFLAGS $LIBICONV; do | |
15027 | ||
15028 | acl_save_prefix="$prefix" | |
15029 | prefix="$acl_final_prefix" | |
15030 | acl_save_exec_prefix="$exec_prefix" | |
15031 | exec_prefix="$acl_final_exec_prefix" | |
15032 | eval x=\"$x\" | |
15033 | exec_prefix="$acl_save_exec_prefix" | |
15034 | prefix="$acl_save_prefix" | |
15035 | ||
15036 | if test "X$x" = "X-L$additional_libdir"; then | |
15037 | haveit=yes | |
15038 | break | |
15039 | fi | |
15040 | done | |
15041 | if test -z "$haveit"; then | |
15042 | if test -d "$additional_libdir"; then | |
15043 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
15044 | fi | |
15045 | fi | |
15046 | haveit= | |
15047 | for x in $LDFLAGS $LTLIBICONV; do | |
15048 | ||
15049 | acl_save_prefix="$prefix" | |
15050 | prefix="$acl_final_prefix" | |
15051 | acl_save_exec_prefix="$exec_prefix" | |
15052 | exec_prefix="$acl_final_exec_prefix" | |
15053 | eval x=\"$x\" | |
15054 | exec_prefix="$acl_save_exec_prefix" | |
15055 | prefix="$acl_save_prefix" | |
15056 | ||
15057 | if test "X$x" = "X-L$additional_libdir"; then | |
15058 | haveit=yes | |
15059 | break | |
15060 | fi | |
15061 | done | |
15062 | if test -z "$haveit"; then | |
15063 | if test -d "$additional_libdir"; then | |
15064 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
15065 | fi | |
15066 | fi | |
15067 | fi | |
15068 | fi | |
15069 | ;; | |
15070 | -R*) | |
15071 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
15072 | if test "$enable_rpath" != no; then | |
15073 | haveit= | |
15074 | for x in $rpathdirs; do | |
15075 | if test "X$x" = "X$dir"; then | |
15076 | haveit=yes | |
15077 | break | |
15078 | fi | |
15079 | done | |
15080 | if test -z "$haveit"; then | |
15081 | rpathdirs="$rpathdirs $dir" | |
15082 | fi | |
15083 | haveit= | |
15084 | for x in $ltrpathdirs; do | |
15085 | if test "X$x" = "X$dir"; then | |
15086 | haveit=yes | |
15087 | break | |
15088 | fi | |
15089 | done | |
15090 | if test -z "$haveit"; then | |
15091 | ltrpathdirs="$ltrpathdirs $dir" | |
15092 | fi | |
15093 | fi | |
15094 | ;; | |
15095 | -l*) | |
15096 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
15097 | ;; | |
15098 | *.la) | |
15099 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
15100 | ;; | |
15101 | *) | |
15102 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
15103 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
15104 | ;; | |
15105 | esac | |
15106 | done | |
15107 | fi | |
15108 | else | |
15109 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15110 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
15111 | fi | |
15112 | fi | |
15113 | fi | |
15114 | done | |
15115 | done | |
15116 | if test "X$rpathdirs" != "X"; then | |
15117 | if test -n "$acl_hardcode_libdir_separator"; then | |
15118 | alldirs= | |
15119 | for found_dir in $rpathdirs; do | |
15120 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
15121 | done | |
15122 | acl_save_libdir="$libdir" | |
15123 | libdir="$alldirs" | |
15124 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15125 | libdir="$acl_save_libdir" | |
15126 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15127 | else | |
15128 | for found_dir in $rpathdirs; do | |
15129 | acl_save_libdir="$libdir" | |
15130 | libdir="$found_dir" | |
15131 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15132 | libdir="$acl_save_libdir" | |
15133 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15134 | done | |
15135 | fi | |
15136 | fi | |
15137 | if test "X$ltrpathdirs" != "X"; then | |
15138 | for found_dir in $ltrpathdirs; do | |
15139 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
15140 | done | |
15141 | fi | |
15142 | ||
15143 | ||
15144 | ||
15145 | ||
15146 | ||
15147 | ||
15148 | ||
15149 | am_save_CPPFLAGS="$CPPFLAGS" | |
15150 | ||
15151 | for element in $INCICONV; do | |
15152 | haveit= | |
15153 | for x in $CPPFLAGS; do | |
15154 | ||
15155 | acl_save_prefix="$prefix" | |
15156 | prefix="$acl_final_prefix" | |
15157 | acl_save_exec_prefix="$exec_prefix" | |
15158 | exec_prefix="$acl_final_exec_prefix" | |
15159 | eval x=\"$x\" | |
15160 | exec_prefix="$acl_save_exec_prefix" | |
15161 | prefix="$acl_save_prefix" | |
15162 | ||
15163 | if test "X$x" = "X$element"; then | |
15164 | haveit=yes | |
15165 | break | |
15166 | fi | |
15167 | done | |
15168 | if test -z "$haveit"; then | |
15169 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
15170 | fi | |
15171 | done | |
15172 | ||
15173 | ||
15174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
15175 | $as_echo_n "checking for iconv... " >&6; } | |
15176 | if test "${am_cv_func_iconv+set}" = set; then : | |
15177 | $as_echo_n "(cached) " >&6 | |
15178 | else | |
15179 | ||
15180 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
15181 | am_cv_lib_iconv=no | |
15182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15183 | /* end confdefs.h. */ | |
15184 | #include <stdlib.h> | |
15185 | #include <iconv.h> | |
15186 | int | |
15187 | main () | |
15188 | { | |
15189 | iconv_t cd = iconv_open("",""); | |
15190 | iconv(cd,NULL,NULL,NULL,NULL); | |
15191 | iconv_close(cd); | |
15192 | ; | |
15193 | return 0; | |
15194 | } | |
15195 | _ACEOF | |
15196 | if ac_fn_c_try_link "$LINENO"; then : | |
15197 | am_cv_func_iconv=yes | |
15198 | fi | |
15199 | rm -f core conftest.err conftest.$ac_objext \ | |
15200 | conftest$ac_exeext conftest.$ac_ext | |
15201 | if test "$am_cv_func_iconv" != yes; then | |
15202 | am_save_LIBS="$LIBS" | |
15203 | LIBS="$LIBS $LIBICONV" | |
15204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15205 | /* end confdefs.h. */ | |
15206 | #include <stdlib.h> | |
15207 | #include <iconv.h> | |
15208 | int | |
15209 | main () | |
15210 | { | |
15211 | iconv_t cd = iconv_open("",""); | |
15212 | iconv(cd,NULL,NULL,NULL,NULL); | |
15213 | iconv_close(cd); | |
15214 | ; | |
15215 | return 0; | |
15216 | } | |
15217 | _ACEOF | |
15218 | if ac_fn_c_try_link "$LINENO"; then : | |
15219 | am_cv_lib_iconv=yes | |
15220 | am_cv_func_iconv=yes | |
15221 | fi | |
15222 | rm -f core conftest.err conftest.$ac_objext \ | |
15223 | conftest$ac_exeext conftest.$ac_ext | |
15224 | LIBS="$am_save_LIBS" | |
15225 | fi | |
15226 | ||
15227 | fi | |
15228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
15229 | $as_echo "$am_cv_func_iconv" >&6; } | |
15230 | if test "$am_cv_func_iconv" = yes; then | |
15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
15232 | $as_echo_n "checking for working iconv... " >&6; } | |
15233 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
15234 | $as_echo_n "(cached) " >&6 | |
15235 | else | |
15236 | ||
15237 | am_save_LIBS="$LIBS" | |
15238 | if test $am_cv_lib_iconv = yes; then | |
15239 | LIBS="$LIBS $LIBICONV" | |
15240 | fi | |
15241 | if test "$cross_compiling" = yes; then : | |
15242 | case "$host_os" in | |
15243 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
15244 | *) am_cv_func_iconv_works="guessing yes" ;; | |
15245 | esac | |
15246 | else | |
15247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15248 | /* end confdefs.h. */ | |
15249 | ||
15250 | #include <iconv.h> | |
15251 | #include <string.h> | |
15252 | int main () | |
15253 | { | |
15254 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
15255 | returns. */ | |
15256 | { | |
15257 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
15258 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
15259 | { | |
15260 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
15261 | char buf[10]; | |
15262 | const char *inptr = input; | |
15263 | size_t inbytesleft = strlen (input); | |
15264 | char *outptr = buf; | |
15265 | size_t outbytesleft = sizeof (buf); | |
15266 | size_t res = iconv (cd_utf8_to_88591, | |
15267 | (char **) &inptr, &inbytesleft, | |
15268 | &outptr, &outbytesleft); | |
15269 | if (res == 0) | |
15270 | return 1; | |
15271 | } | |
15272 | } | |
15273 | #if 0 /* This bug could be worked around by the caller. */ | |
15274 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
15275 | { | |
15276 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
15277 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
15278 | { | |
15279 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
15280 | char buf[50]; | |
15281 | const char *inptr = input; | |
15282 | size_t inbytesleft = strlen (input); | |
15283 | char *outptr = buf; | |
15284 | size_t outbytesleft = sizeof (buf); | |
15285 | size_t res = iconv (cd_88591_to_utf8, | |
15286 | (char **) &inptr, &inbytesleft, | |
15287 | &outptr, &outbytesleft); | |
15288 | if ((int)res > 0) | |
15289 | return 1; | |
15290 | } | |
15291 | } | |
15292 | #endif | |
15293 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
15294 | provided. */ | |
15295 | if (/* Try standardized names. */ | |
15296 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
15297 | /* Try IRIX, OSF/1 names. */ | |
15298 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
15299 | /* Try AIX names. */ | |
15300 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
15301 | /* Try HP-UX names. */ | |
15302 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
15303 | return 1; | |
15304 | return 0; | |
15305 | } | |
15306 | _ACEOF | |
15307 | if ac_fn_c_try_run "$LINENO"; then : | |
15308 | am_cv_func_iconv_works=yes | |
15309 | else | |
15310 | am_cv_func_iconv_works=no | |
15311 | fi | |
15312 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15313 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15314 | fi | |
15315 | ||
15316 | LIBS="$am_save_LIBS" | |
15317 | ||
15318 | fi | |
15319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
15320 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
15321 | case "$am_cv_func_iconv_works" in | |
15322 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
15323 | *) am_func_iconv=yes ;; | |
15324 | esac | |
15325 | else | |
15326 | am_func_iconv=no am_cv_lib_iconv=no | |
15327 | fi | |
15328 | if test "$am_func_iconv" = yes; then | |
15329 | ||
15330 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
15331 | ||
15332 | fi | |
15333 | if test "$am_cv_lib_iconv" = yes; then | |
15334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
15335 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
15336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
15337 | $as_echo "$LIBICONV" >&6; } | |
15338 | else | |
15339 | CPPFLAGS="$am_save_CPPFLAGS" | |
15340 | LIBICONV= | |
15341 | LTLIBICONV= | |
15342 | fi | |
15343 | ||
15344 | ||
15345 | ||
15346 | if test "$am_cv_func_iconv" = yes; then | |
15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
15348 | $as_echo_n "checking for iconv declaration... " >&6; } | |
15349 | if test "${am_cv_proto_iconv+set}" = set; then : | |
15350 | $as_echo_n "(cached) " >&6 | |
15351 | else | |
15352 | ||
15353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15354 | /* end confdefs.h. */ | |
15355 | ||
15356 | #include <stdlib.h> | |
15357 | #include <iconv.h> | |
15358 | extern | |
15359 | #ifdef __cplusplus | |
15360 | "C" | |
15361 | #endif | |
15362 | #if defined(__STDC__) || defined(__cplusplus) | |
15363 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15364 | #else | |
15365 | size_t iconv(); | |
15366 | #endif | |
15367 | ||
15368 | int | |
15369 | main () | |
15370 | { | |
15371 | ||
15372 | ; | |
15373 | return 0; | |
15374 | } | |
15375 | _ACEOF | |
15376 | if ac_fn_c_try_compile "$LINENO"; then : | |
15377 | am_cv_proto_iconv_arg1="" | |
15378 | else | |
15379 | am_cv_proto_iconv_arg1="const" | |
15380 | fi | |
15381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15382 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
15383 | fi | |
15384 | ||
15385 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
15386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
15387 | }$am_cv_proto_iconv" >&5 | |
15388 | $as_echo "${ac_t:- | |
15389 | }$am_cv_proto_iconv" >&6; } | |
15390 | ||
15391 | cat >>confdefs.h <<_ACEOF | |
15392 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
15393 | _ACEOF | |
15394 | ||
15395 | fi | |
15396 | ||
15397 | ac_ext=cpp | |
15398 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15402 | ||
15403 | case $am_cv_func_iconv in #( | |
15404 | yes) : | |
15405 | ;; #( | |
15406 | *) : | |
15407 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
15408 | esac | |
15409 | ||
15410 | pkg_failed=no | |
15411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15412 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15413 | ||
15414 | if test -n "$PKG_CONFIG"; then | |
15415 | if test -n "$WEBKIT_CFLAGS"; then | |
15416 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15417 | else | |
15418 | if test -n "$PKG_CONFIG" && \ | |
15419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15420 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15421 | ac_status=$? | |
15422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15423 | test $ac_status = 0; }; then | |
15424 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15425 | else | |
15426 | pkg_failed=yes | |
15427 | fi | |
15428 | fi | |
15429 | else | |
15430 | pkg_failed=untried | |
15431 | fi | |
15432 | if test -n "$PKG_CONFIG"; then | |
15433 | if test -n "$WEBKIT_LIBS"; then | |
15434 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15435 | else | |
15436 | if test -n "$PKG_CONFIG" && \ | |
15437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15438 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15439 | ac_status=$? | |
15440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15441 | test $ac_status = 0; }; then | |
15442 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15443 | else | |
15444 | pkg_failed=yes | |
15445 | fi | |
15446 | fi | |
15447 | else | |
15448 | pkg_failed=untried | |
15449 | fi | |
15450 | ||
15451 | ||
15452 | ||
15453 | if test $pkg_failed = yes; then | |
15454 | ||
15455 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15456 | _pkg_short_errors_supported=yes | |
15457 | else | |
15458 | _pkg_short_errors_supported=no | |
15459 | fi | |
15460 | if test $_pkg_short_errors_supported = yes; then | |
15461 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
15462 | else | |
15463 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
15464 | fi | |
15465 | # Put the nasty error message in config.log where it belongs | |
15466 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15467 | ||
15468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15469 | $as_echo "no" >&6; } | |
15470 | ||
15471 | ||
15472 | pkg_failed=no | |
15473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15474 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15475 | ||
15476 | if test -n "$PKG_CONFIG"; then | |
15477 | if test -n "$WEBKIT_CFLAGS"; then | |
15478 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15479 | else | |
15480 | if test -n "$PKG_CONFIG" && \ | |
15481 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15482 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15483 | ac_status=$? | |
15484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15485 | test $ac_status = 0; }; then | |
15486 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15487 | else | |
15488 | pkg_failed=yes | |
15489 | fi | |
15490 | fi | |
15491 | else | |
15492 | pkg_failed=untried | |
15493 | fi | |
15494 | if test -n "$PKG_CONFIG"; then | |
15495 | if test -n "$WEBKIT_LIBS"; then | |
15496 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15497 | else | |
15498 | if test -n "$PKG_CONFIG" && \ | |
15499 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15500 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15501 | ac_status=$? | |
15502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15503 | test $ac_status = 0; }; then | |
15504 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15505 | else | |
15506 | pkg_failed=yes | |
15507 | fi | |
15508 | fi | |
15509 | else | |
15510 | pkg_failed=untried | |
15511 | fi | |
15512 | ||
15513 | ||
15514 | ||
15515 | if test $pkg_failed = yes; then | |
15516 | ||
15517 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15518 | _pkg_short_errors_supported=yes | |
15519 | else | |
15520 | _pkg_short_errors_supported=no | |
15521 | fi | |
15522 | if test $_pkg_short_errors_supported = yes; then | |
15523 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15524 | else | |
15525 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15526 | fi | |
15527 | # Put the nasty error message in config.log where it belongs | |
15528 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15529 | ||
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15531 | $as_echo "no" >&6; } | |
15532 | CY_EXECUTE=0 | |
15533 | elif test $pkg_failed = untried; then | |
15534 | CY_EXECUTE=0 | |
15535 | else | |
15536 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15537 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15539 | $as_echo "yes" >&6; } | |
15540 | ||
15541 | CY_EXECUTE=1 | |
15542 | ||
15543 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15544 | haveit= | |
15545 | for x in $CXXFLAGS; do | |
15546 | ||
15547 | acl_save_prefix="$prefix" | |
15548 | prefix="$acl_final_prefix" | |
15549 | acl_save_exec_prefix="$exec_prefix" | |
15550 | exec_prefix="$acl_final_exec_prefix" | |
15551 | eval x=\"$x\" | |
15552 | exec_prefix="$acl_save_exec_prefix" | |
15553 | prefix="$acl_save_prefix" | |
15554 | ||
15555 | if test "X$x" = "X$element"; then | |
15556 | haveit=yes | |
15557 | break | |
15558 | fi | |
15559 | done | |
15560 | if test -z "$haveit"; then | |
15561 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15562 | fi | |
15563 | done | |
15564 | ||
15565 | ||
15566 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15567 | haveit= | |
15568 | for x in $LIBS; do | |
15569 | ||
15570 | acl_save_prefix="$prefix" | |
15571 | prefix="$acl_final_prefix" | |
15572 | acl_save_exec_prefix="$exec_prefix" | |
15573 | exec_prefix="$acl_final_exec_prefix" | |
15574 | eval x=\"$x\" | |
15575 | exec_prefix="$acl_save_exec_prefix" | |
15576 | prefix="$acl_save_prefix" | |
15577 | ||
15578 | if test "X$x" = "X$element"; then | |
15579 | haveit=yes | |
15580 | break | |
15581 | fi | |
15582 | done | |
15583 | if test -z "$haveit"; then | |
15584 | LIBS="${LIBS}${LIBS:+ }$element" | |
15585 | fi | |
15586 | done | |
15587 | ||
15588 | ||
15589 | fi | |
15590 | ||
15591 | elif test $pkg_failed = untried; then | |
15592 | ||
15593 | ||
15594 | pkg_failed=no | |
15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15596 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15597 | ||
15598 | if test -n "$PKG_CONFIG"; then | |
15599 | if test -n "$WEBKIT_CFLAGS"; then | |
15600 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15601 | else | |
15602 | if test -n "$PKG_CONFIG" && \ | |
15603 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15604 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15605 | ac_status=$? | |
15606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15607 | test $ac_status = 0; }; then | |
15608 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15609 | else | |
15610 | pkg_failed=yes | |
15611 | fi | |
15612 | fi | |
15613 | else | |
15614 | pkg_failed=untried | |
15615 | fi | |
15616 | if test -n "$PKG_CONFIG"; then | |
15617 | if test -n "$WEBKIT_LIBS"; then | |
15618 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15619 | else | |
15620 | if test -n "$PKG_CONFIG" && \ | |
15621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15622 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15623 | ac_status=$? | |
15624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15625 | test $ac_status = 0; }; then | |
15626 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15627 | else | |
15628 | pkg_failed=yes | |
15629 | fi | |
15630 | fi | |
15631 | else | |
15632 | pkg_failed=untried | |
15633 | fi | |
15634 | ||
15635 | ||
15636 | ||
15637 | if test $pkg_failed = yes; then | |
15638 | ||
15639 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15640 | _pkg_short_errors_supported=yes | |
15641 | else | |
15642 | _pkg_short_errors_supported=no | |
15643 | fi | |
15644 | if test $_pkg_short_errors_supported = yes; then | |
15645 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15646 | else | |
15647 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15648 | fi | |
15649 | # Put the nasty error message in config.log where it belongs | |
15650 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15651 | ||
15652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15653 | $as_echo "no" >&6; } | |
15654 | CY_EXECUTE=0 | |
15655 | elif test $pkg_failed = untried; then | |
15656 | CY_EXECUTE=0 | |
15657 | else | |
15658 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15659 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15661 | $as_echo "yes" >&6; } | |
15662 | ||
15663 | CY_EXECUTE=1 | |
15664 | ||
15665 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15666 | haveit= | |
15667 | for x in $CXXFLAGS; do | |
15668 | ||
15669 | acl_save_prefix="$prefix" | |
15670 | prefix="$acl_final_prefix" | |
15671 | acl_save_exec_prefix="$exec_prefix" | |
15672 | exec_prefix="$acl_final_exec_prefix" | |
15673 | eval x=\"$x\" | |
15674 | exec_prefix="$acl_save_exec_prefix" | |
15675 | prefix="$acl_save_prefix" | |
15676 | ||
15677 | if test "X$x" = "X$element"; then | |
15678 | haveit=yes | |
15679 | break | |
15680 | fi | |
15681 | done | |
15682 | if test -z "$haveit"; then | |
15683 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15684 | fi | |
15685 | done | |
15686 | ||
15687 | ||
15688 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15689 | haveit= | |
15690 | for x in $LIBS; do | |
15691 | ||
15692 | acl_save_prefix="$prefix" | |
15693 | prefix="$acl_final_prefix" | |
15694 | acl_save_exec_prefix="$exec_prefix" | |
15695 | exec_prefix="$acl_final_exec_prefix" | |
15696 | eval x=\"$x\" | |
15697 | exec_prefix="$acl_save_exec_prefix" | |
15698 | prefix="$acl_save_prefix" | |
15699 | ||
15700 | if test "X$x" = "X$element"; then | |
15701 | haveit=yes | |
15702 | break | |
15703 | fi | |
15704 | done | |
15705 | if test -z "$haveit"; then | |
15706 | LIBS="${LIBS}${LIBS:+ }$element" | |
15707 | fi | |
15708 | done | |
15709 | ||
15710 | ||
15711 | fi | |
15712 | ||
15713 | else | |
15714 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15715 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15717 | $as_echo "yes" >&6; } | |
15718 | ||
15719 | CY_EXECUTE=1 | |
15720 | ||
15721 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
15722 | haveit= | |
15723 | for x in $CXXFLAGS; do | |
15724 | ||
15725 | acl_save_prefix="$prefix" | |
15726 | prefix="$acl_final_prefix" | |
15727 | acl_save_exec_prefix="$exec_prefix" | |
15728 | exec_prefix="$acl_final_exec_prefix" | |
15729 | eval x=\"$x\" | |
15730 | exec_prefix="$acl_save_exec_prefix" | |
15731 | prefix="$acl_save_prefix" | |
15732 | ||
15733 | if test "X$x" = "X$element"; then | |
15734 | haveit=yes | |
15735 | break | |
15736 | fi | |
15737 | done | |
15738 | if test -z "$haveit"; then | |
15739 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15740 | fi | |
15741 | done | |
15742 | ||
15743 | ||
15744 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
15745 | haveit= | |
15746 | for x in $LIBS; do | |
15747 | ||
15748 | acl_save_prefix="$prefix" | |
15749 | prefix="$acl_final_prefix" | |
15750 | acl_save_exec_prefix="$exec_prefix" | |
15751 | exec_prefix="$acl_final_exec_prefix" | |
15752 | eval x=\"$x\" | |
15753 | exec_prefix="$acl_save_exec_prefix" | |
15754 | prefix="$acl_save_prefix" | |
15755 | ||
15756 | if test "X$x" = "X$element"; then | |
15757 | haveit=yes | |
15758 | break | |
15759 | fi | |
15760 | done | |
15761 | if test -z "$haveit"; then | |
15762 | LIBS="${LIBS}${LIBS:+ }$element" | |
15763 | fi | |
15764 | done | |
15765 | ||
15766 | ||
15767 | fi | |
15768 | ac_ext=mm | |
15769 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
15770 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15771 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15772 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
15773 | if test -n "$ac_tool_prefix"; then | |
15774 | for ac_prog in g++ objc++ objcxx c++ CXX | |
15775 | do | |
15776 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
15777 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
15778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15779 | $as_echo_n "checking for $ac_word... " >&6; } | |
15780 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : | |
15781 | $as_echo_n "(cached) " >&6 | |
15782 | else | |
15783 | if test -n "$OBJCXX"; then | |
15784 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
15785 | else | |
15786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15787 | for as_dir in $PATH | |
15788 | do | |
15789 | IFS=$as_save_IFS | |
15790 | test -z "$as_dir" && as_dir=. | |
15791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15793 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
15794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15795 | break 2 | |
15796 | fi | |
15797 | done | |
15798 | done | |
15799 | IFS=$as_save_IFS | |
15800 | ||
15801 | fi | |
15802 | fi | |
15803 | OBJCXX=$ac_cv_prog_OBJCXX | |
15804 | if test -n "$OBJCXX"; then | |
15805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
15806 | $as_echo "$OBJCXX" >&6; } | |
15807 | else | |
15808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15809 | $as_echo "no" >&6; } | |
15810 | fi | |
15811 | ||
15812 | ||
15813 | test -n "$OBJCXX" && break | |
15814 | done | |
15815 | fi | |
15816 | if test -z "$OBJCXX"; then | |
15817 | ac_ct_OBJCXX=$OBJCXX | |
15818 | for ac_prog in g++ objc++ objcxx c++ CXX | |
15819 | do | |
15820 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15821 | set dummy $ac_prog; ac_word=$2 | |
15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15823 | $as_echo_n "checking for $ac_word... " >&6; } | |
15824 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : | |
15825 | $as_echo_n "(cached) " >&6 | |
15826 | else | |
15827 | if test -n "$ac_ct_OBJCXX"; then | |
15828 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
15829 | else | |
15830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15831 | for as_dir in $PATH | |
15832 | do | |
15833 | IFS=$as_save_IFS | |
15834 | test -z "$as_dir" && as_dir=. | |
15835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15837 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
15838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15839 | break 2 | |
15840 | fi | |
15841 | done | |
15842 | done | |
15843 | IFS=$as_save_IFS | |
15844 | ||
15845 | fi | |
15846 | fi | |
15847 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
15848 | if test -n "$ac_ct_OBJCXX"; then | |
15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
15850 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
15851 | else | |
15852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15853 | $as_echo "no" >&6; } | |
15854 | fi | |
15855 | ||
15856 | ||
15857 | test -n "$ac_ct_OBJCXX" && break | |
15858 | done | |
15859 | ||
15860 | if test "x$ac_ct_OBJCXX" = x; then | |
15861 | OBJCXX="g++" | |
15862 | else | |
15863 | case $cross_compiling:$ac_tool_warned in | |
15864 | yes:) | |
15865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15866 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15867 | ac_tool_warned=yes ;; | |
15868 | esac | |
15869 | OBJCXX=$ac_ct_OBJCXX | |
15870 | fi | |
15871 | fi | |
15872 | ||
15873 | # Provide some information about the compiler. | |
15874 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
15875 | set X $ac_compile | |
15876 | ac_compiler=$2 | |
15877 | for ac_option in --version -v -V -qversion; do | |
15878 | { { ac_try="$ac_compiler $ac_option >&5" | |
15879 | case "(($ac_try" in | |
15880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15881 | *) ac_try_echo=$ac_try;; | |
15882 | esac | |
15883 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
15884 | $as_echo "$ac_try_echo"; } >&5 | |
15885 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
15886 | ac_status=$? | |
15887 | if test -s conftest.err; then | |
15888 | sed '10a\ | |
15889 | ... rest of stderr output deleted ... | |
15890 | 10q' conftest.err >conftest.er1 | |
15891 | cat conftest.er1 >&5 | |
15892 | fi | |
15893 | rm -f conftest.er1 conftest.err | |
15894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15895 | test $ac_status = 0; } | |
15896 | done | |
15897 | ||
15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 | |
15899 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
15900 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
15901 | $as_echo_n "(cached) " >&6 | |
15902 | else | |
15903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15904 | /* end confdefs.h. */ | |
15905 | ||
15906 | int | |
15907 | main () | |
15908 | { | |
15909 | #ifndef __GNUC__ | |
15910 | choke me | |
15911 | #endif | |
15912 | ||
15913 | ; | |
15914 | return 0; | |
15915 | } | |
15916 | _ACEOF | |
15917 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
15918 | ac_compiler_gnu=yes | |
15919 | else | |
15920 | ac_compiler_gnu=no | |
15921 | fi | |
15922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15923 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
15924 | ||
15925 | fi | |
15926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 | |
15927 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
15928 | if test $ac_compiler_gnu = yes; then | |
15929 | GOBJCXX=yes | |
15930 | else | |
15931 | GOBJCXX= | |
15932 | fi | |
15933 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
15934 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
15936 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
15937 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
15938 | $as_echo_n "(cached) " >&6 | |
15939 | else | |
15940 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
15941 | ac_objcxx_werror_flag=yes | |
15942 | ac_cv_prog_objcxx_g=no | |
15943 | OBJCXXFLAGS="-g" | |
15944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15945 | /* end confdefs.h. */ | |
15946 | ||
15947 | int | |
15948 | main () | |
15949 | { | |
15950 | ||
15951 | ; | |
15952 | return 0; | |
15953 | } | |
15954 | _ACEOF | |
15955 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
15956 | ac_cv_prog_objcxx_g=yes | |
15957 | else | |
15958 | OBJCXXFLAGS="" | |
15959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15960 | /* end confdefs.h. */ | |
15961 | ||
15962 | int | |
15963 | main () | |
15964 | { | |
15965 | ||
15966 | ; | |
15967 | return 0; | |
15968 | } | |
15969 | _ACEOF | |
15970 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
15971 | ||
15972 | else | |
15973 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
15974 | OBJCXXFLAGS="-g" | |
15975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15976 | /* end confdefs.h. */ | |
15977 | ||
15978 | int | |
15979 | main () | |
15980 | { | |
15981 | ||
15982 | ; | |
15983 | return 0; | |
15984 | } | |
15985 | _ACEOF | |
15986 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
15987 | ac_cv_prog_objcxx_g=yes | |
15988 | fi | |
15989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15990 | fi | |
15991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15992 | fi | |
15993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15994 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
15995 | fi | |
15996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
15997 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
15998 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
15999 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
16000 | elif test $ac_cv_prog_objcxx_g = yes; then | |
16001 | if test "$GOBJCXX" = yes; then | |
16002 | OBJCXXFLAGS="-g -O2" | |
16003 | else | |
16004 | OBJCXXFLAGS="-g" | |
16005 | fi | |
16006 | else | |
16007 | if test "$GOBJCXX" = yes; then | |
16008 | OBJCXXFLAGS="-O2" | |
16009 | else | |
16010 | OBJCXXFLAGS= | |
16011 | fi | |
16012 | fi | |
16013 | ac_ext=cpp | |
16014 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16015 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16016 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16017 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16018 | ||
16019 | ||
16020 | case $CY_EXECUTE in #( | |
16021 | 1) : | |
16022 | ||
16023 | ||
16024 | ||
16025 | pkg_failed=no | |
16026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
16027 | $as_echo_n "checking for LIBFFI... " >&6; } | |
16028 | ||
16029 | if test -n "$PKG_CONFIG"; then | |
16030 | if test -n "$LIBFFI_CFLAGS"; then | |
16031 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
16032 | else | |
16033 | if test -n "$PKG_CONFIG" && \ | |
16034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
16035 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16036 | ac_status=$? | |
16037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16038 | test $ac_status = 0; }; then | |
16039 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
16040 | else | |
16041 | pkg_failed=yes | |
16042 | fi | |
16043 | fi | |
16044 | else | |
16045 | pkg_failed=untried | |
16046 | fi | |
16047 | if test -n "$PKG_CONFIG"; then | |
16048 | if test -n "$LIBFFI_LIBS"; then | |
16049 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
16050 | else | |
16051 | if test -n "$PKG_CONFIG" && \ | |
16052 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
16053 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16054 | ac_status=$? | |
16055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16056 | test $ac_status = 0; }; then | |
16057 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
16058 | else | |
16059 | pkg_failed=yes | |
16060 | fi | |
16061 | fi | |
16062 | else | |
16063 | pkg_failed=untried | |
16064 | fi | |
16065 | ||
16066 | ||
16067 | ||
16068 | if test $pkg_failed = yes; then | |
16069 | ||
16070 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16071 | _pkg_short_errors_supported=yes | |
16072 | else | |
16073 | _pkg_short_errors_supported=no | |
16074 | fi | |
16075 | if test $_pkg_short_errors_supported = yes; then | |
16076 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` | |
16077 | else | |
16078 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` | |
16079 | fi | |
16080 | # Put the nasty error message in config.log where it belongs | |
16081 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
16082 | ||
16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16084 | $as_echo "no" >&6; } | |
16085 | ||
16086 | for ac_header in ffi.h ffi/ffi.h | |
16087 | do : | |
16088 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16089 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16090 | eval as_val=\$$as_ac_Header | |
16091 | if test "x$as_val" = x""yes; then : | |
16092 | cat >>confdefs.h <<_ACEOF | |
16093 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16094 | _ACEOF | |
16095 | break | |
16096 | fi | |
16097 | ||
16098 | done | |
16099 | ||
16100 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16101 | ||
16102 | as_fn_error "You need libffi" "$LINENO" 5 | |
16103 | ||
16104 | fi | |
16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
16106 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
16107 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16108 | $as_echo_n "(cached) " >&6 | |
16109 | else | |
16110 | ac_func_search_save_LIBS=$LIBS | |
16111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16112 | /* end confdefs.h. */ | |
16113 | ||
16114 | /* Override any GCC internal prototype to avoid an error. | |
16115 | Use char because int might match the return type of a GCC | |
16116 | builtin and then its argument prototype would still apply. */ | |
16117 | #ifdef __cplusplus | |
16118 | extern "C" | |
16119 | #endif | |
16120 | char ffi_call (); | |
16121 | int | |
16122 | main () | |
16123 | { | |
16124 | return ffi_call (); | |
16125 | ; | |
16126 | return 0; | |
16127 | } | |
16128 | _ACEOF | |
16129 | for ac_lib in '' ffi; do | |
16130 | if test -z "$ac_lib"; then | |
16131 | ac_res="none required" | |
16132 | else | |
16133 | ac_res=-l$ac_lib | |
16134 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16135 | fi | |
16136 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16137 | ac_cv_search_ffi_call=$ac_res | |
16138 | fi | |
16139 | rm -f core conftest.err conftest.$ac_objext \ | |
16140 | conftest$ac_exeext | |
16141 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16142 | break | |
16143 | fi | |
16144 | done | |
16145 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16146 | ||
16147 | else | |
16148 | ac_cv_search_ffi_call=no | |
16149 | fi | |
16150 | rm conftest.$ac_ext | |
16151 | LIBS=$ac_func_search_save_LIBS | |
16152 | fi | |
16153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
16154 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
16155 | ac_res=$ac_cv_search_ffi_call | |
16156 | if test "$ac_res" != no; then : | |
16157 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16158 | ||
16159 | fi | |
16160 | ||
16161 | case $ac_cv_search_ffi_call in #( | |
16162 | no) : | |
16163 | ||
16164 | as_fn_error "You need libffi" "$LINENO" 5 | |
16165 | ;; #( | |
16166 | *) : | |
16167 | ;; | |
16168 | esac | |
16169 | ||
16170 | elif test $pkg_failed = untried; then | |
16171 | ||
16172 | for ac_header in ffi.h ffi/ffi.h | |
16173 | do : | |
16174 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16175 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16176 | eval as_val=\$$as_ac_Header | |
16177 | if test "x$as_val" = x""yes; then : | |
16178 | cat >>confdefs.h <<_ACEOF | |
16179 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16180 | _ACEOF | |
16181 | break | |
16182 | fi | |
16183 | ||
16184 | done | |
16185 | ||
16186 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16187 | ||
16188 | as_fn_error "You need libffi" "$LINENO" 5 | |
16189 | ||
16190 | fi | |
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
16192 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
16193 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16194 | $as_echo_n "(cached) " >&6 | |
16195 | else | |
16196 | ac_func_search_save_LIBS=$LIBS | |
16197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16198 | /* end confdefs.h. */ | |
16199 | ||
16200 | /* Override any GCC internal prototype to avoid an error. | |
16201 | Use char because int might match the return type of a GCC | |
16202 | builtin and then its argument prototype would still apply. */ | |
16203 | #ifdef __cplusplus | |
16204 | extern "C" | |
16205 | #endif | |
16206 | char ffi_call (); | |
16207 | int | |
16208 | main () | |
16209 | { | |
16210 | return ffi_call (); | |
16211 | ; | |
16212 | return 0; | |
16213 | } | |
16214 | _ACEOF | |
16215 | for ac_lib in '' ffi; do | |
16216 | if test -z "$ac_lib"; then | |
16217 | ac_res="none required" | |
16218 | else | |
16219 | ac_res=-l$ac_lib | |
16220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16221 | fi | |
16222 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16223 | ac_cv_search_ffi_call=$ac_res | |
16224 | fi | |
16225 | rm -f core conftest.err conftest.$ac_objext \ | |
16226 | conftest$ac_exeext | |
16227 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16228 | break | |
16229 | fi | |
16230 | done | |
16231 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16232 | ||
16233 | else | |
16234 | ac_cv_search_ffi_call=no | |
16235 | fi | |
16236 | rm conftest.$ac_ext | |
16237 | LIBS=$ac_func_search_save_LIBS | |
16238 | fi | |
16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
16240 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
16241 | ac_res=$ac_cv_search_ffi_call | |
16242 | if test "$ac_res" != no; then : | |
16243 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16244 | ||
16245 | fi | |
16246 | ||
16247 | case $ac_cv_search_ffi_call in #( | |
16248 | no) : | |
16249 | ||
16250 | as_fn_error "You need libffi" "$LINENO" 5 | |
16251 | ;; #( | |
16252 | *) : | |
16253 | ;; | |
16254 | esac | |
16255 | ||
16256 | else | |
16257 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
16258 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
16259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16260 | $as_echo "yes" >&6; } | |
16261 | ||
16262 | ||
16263 | for element in `$PKG_CONFIG --cflags libffi`; do | |
16264 | haveit= | |
16265 | for x in $CXXFLAGS; do | |
16266 | ||
16267 | acl_save_prefix="$prefix" | |
16268 | prefix="$acl_final_prefix" | |
16269 | acl_save_exec_prefix="$exec_prefix" | |
16270 | exec_prefix="$acl_final_exec_prefix" | |
16271 | eval x=\"$x\" | |
16272 | exec_prefix="$acl_save_exec_prefix" | |
16273 | prefix="$acl_save_prefix" | |
16274 | ||
16275 | if test "X$x" = "X$element"; then | |
16276 | haveit=yes | |
16277 | break | |
16278 | fi | |
16279 | done | |
16280 | if test -z "$haveit"; then | |
16281 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16282 | fi | |
16283 | done | |
16284 | ||
16285 | ||
16286 | for element in `$PKG_CONFIG --libs libffi`; do | |
16287 | haveit= | |
16288 | for x in $LIBS; do | |
16289 | ||
16290 | acl_save_prefix="$prefix" | |
16291 | prefix="$acl_final_prefix" | |
16292 | acl_save_exec_prefix="$exec_prefix" | |
16293 | exec_prefix="$acl_final_exec_prefix" | |
16294 | eval x=\"$x\" | |
16295 | exec_prefix="$acl_save_exec_prefix" | |
16296 | prefix="$acl_save_prefix" | |
16297 | ||
16298 | if test "X$x" = "X$element"; then | |
16299 | haveit=yes | |
16300 | break | |
16301 | fi | |
16302 | done | |
16303 | if test -z "$haveit"; then | |
16304 | LIBS="${LIBS}${LIBS:+ }$element" | |
16305 | fi | |
16306 | done | |
16307 | ||
16308 | ||
16309 | fi | |
16310 | ac_ext=mm | |
16311 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
16312 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16313 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16314 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16315 | ||
16316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
16317 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
16318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16319 | /* end confdefs.h. */ | |
16320 | ||
16321 | // This space intentionally left blank | |
16322 | ||
16323 | _ACEOF | |
16324 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16325 | ||
16326 | CY_OBJECTIVEC=1 | |
16327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16328 | $as_echo "yes" >&6; } | |
16329 | ||
16330 | else | |
16331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16332 | $as_echo "no" >&6; } | |
16333 | fi | |
16334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16335 | ac_ext=cpp | |
16336 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16337 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16338 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16339 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16340 | ||
16341 | if test "x$CY_OBJECTIVEC" = x1; then : | |
16342 | ||
16343 | # TODO: Darwin | |
16344 | for ac_prog in gnustep-config | |
16345 | do | |
16346 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16347 | set dummy $ac_prog; ac_word=$2 | |
16348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16349 | $as_echo_n "checking for $ac_word... " >&6; } | |
16350 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
16351 | $as_echo_n "(cached) " >&6 | |
16352 | else | |
16353 | if test -n "$GNUSTEP_CONFIG"; then | |
16354 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
16355 | else | |
16356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16357 | for as_dir in $PATH | |
16358 | do | |
16359 | IFS=$as_save_IFS | |
16360 | test -z "$as_dir" && as_dir=. | |
16361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16363 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
16364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16365 | break 2 | |
16366 | fi | |
16367 | done | |
16368 | done | |
16369 | IFS=$as_save_IFS | |
16370 | ||
16371 | fi | |
16372 | fi | |
16373 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
16374 | if test -n "$GNUSTEP_CONFIG"; then | |
16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
16376 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
16377 | else | |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16379 | $as_echo "no" >&6; } | |
16380 | fi | |
16381 | ||
16382 | ||
16383 | test -n "$GNUSTEP_CONFIG" && break | |
16384 | done | |
16385 | ||
16386 | if test "x$GNUSTEP_CONFIG" != x; then : | |
16387 | ||
16388 | ||
16389 | ||
16390 | for element in `$GNUSTEP_CONFIG --objc-flags`; do | |
16391 | haveit= | |
16392 | for x in $OBJCXXFLAGS; do | |
16393 | ||
16394 | acl_save_prefix="$prefix" | |
16395 | prefix="$acl_final_prefix" | |
16396 | acl_save_exec_prefix="$exec_prefix" | |
16397 | exec_prefix="$acl_final_exec_prefix" | |
16398 | eval x=\"$x\" | |
16399 | exec_prefix="$acl_save_exec_prefix" | |
16400 | prefix="$acl_save_prefix" | |
16401 | ||
16402 | if test "X$x" = "X$element"; then | |
16403 | haveit=yes | |
16404 | break | |
16405 | fi | |
16406 | done | |
16407 | if test -z "$haveit"; then | |
16408 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16409 | fi | |
16410 | done | |
16411 | ||
16412 | ||
16413 | for element in `$GNUSTEP_CONFIG --base-libs`; do | |
16414 | haveit= | |
16415 | for x in $LIBS; do | |
16416 | ||
16417 | acl_save_prefix="$prefix" | |
16418 | prefix="$acl_final_prefix" | |
16419 | acl_save_exec_prefix="$exec_prefix" | |
16420 | exec_prefix="$acl_final_exec_prefix" | |
16421 | eval x=\"$x\" | |
16422 | exec_prefix="$acl_save_exec_prefix" | |
16423 | prefix="$acl_save_prefix" | |
16424 | ||
16425 | if test "X$x" = "X$element"; then | |
16426 | haveit=yes | |
16427 | break | |
16428 | fi | |
16429 | done | |
16430 | if test -z "$haveit"; then | |
16431 | LIBS="${LIBS}${LIBS:+ }$element" | |
16432 | fi | |
16433 | done | |
16434 | ||
16435 | ||
16436 | fi | |
16437 | ||
16438 | fi | |
16439 | ;; #( | |
16440 | *) : | |
16441 | ||
16442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5 | |
16443 | $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} | |
16444 | ;; | |
16445 | esac | |
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
16447 | $as_echo_n "checking for GNU make... " >&6; } | |
16448 | if test "${_cv_gnu_make_command+set}" = set; then : | |
16449 | $as_echo_n "(cached) " >&6 | |
16450 | else | |
16451 | _cv_gnu_make_command='' ; | |
16452 | for a in "$MAKE" make gmake gnumake ; do | |
16453 | if test -z "$a" ; then continue ; fi ; | |
16454 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
16455 | _cv_gnu_make_command=$a ; | |
16456 | break; | |
16457 | fi | |
16458 | done ; | |
16459 | ||
16460 | fi | |
16461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
16462 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
16463 | if test "x$_cv_gnu_make_command" != "x" ; then | |
16464 | ifGNUmake='' ; | |
16465 | else | |
16466 | ifGNUmake='#' ; | |
16467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
16468 | $as_echo "\"Not found\"" >&6; }; | |
16469 | fi | |
16470 | ||
16471 | ||
16472 | if test "x$_cv_gnu_make_command" = x; then : | |
16473 | as_fn_error "You need GNU make" "$LINENO" 5 | |
16474 | fi | |
16475 | ac_config_files="$ac_config_files GNUmakefile" | |
16476 | ||
16477 | cat >confcache <<\_ACEOF | |
16478 | # This file is a shell script that caches the results of configure | |
16479 | # tests run on this system so they can be shared between configure | |
16480 | # scripts and configure runs, see configure's option --config-cache. | |
16481 | # It is not useful on other systems. If it contains results you don't | |
16482 | # want to keep, you may remove or edit it. | |
16483 | # | |
16484 | # config.status only pays attention to the cache file if you give it | |
16485 | # the --recheck option to rerun configure. | |
16486 | # | |
16487 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16488 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16489 | # following values. | |
16490 | ||
16491 | _ACEOF | |
16492 | ||
16493 | # The following way of writing the cache mishandles newlines in values, | |
16494 | # but we know of no workaround that is simple, portable, and efficient. | |
16495 | # So, we kill variables containing newlines. | |
16496 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16497 | # and sets the high bit in the cache file unless we assign to the vars. | |
16498 | ( | |
16499 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16500 | eval ac_val=\$$ac_var | |
16501 | case $ac_val in #( | |
16502 | *${as_nl}*) | |
16503 | case $ac_var in #( | |
16504 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16505 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16506 | esac | |
16507 | case $ac_var in #( | |
16508 | _ | IFS | as_nl) ;; #( | |
16509 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16510 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16511 | esac ;; | |
16512 | esac | |
16513 | done | |
16514 | ||
16515 | (set) 2>&1 | | |
16516 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16517 | *${as_nl}ac_space=\ *) | |
16518 | # `set' does not quote correctly, so add quotes: double-quote | |
16519 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16520 | sed -n \ | |
16521 | "s/'/'\\\\''/g; | |
16522 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16523 | ;; #( | |
16524 | *) | |
16525 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16526 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16527 | ;; | |
16528 | esac | | |
16529 | sort | |
16530 | ) | | |
16531 | sed ' | |
16532 | /^ac_cv_env_/b end | |
16533 | t clear | |
16534 | :clear | |
16535 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16536 | t end | |
16537 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16538 | :end' >>confcache | |
16539 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16540 | if test -w "$cache_file"; then | |
16541 | test "x$cache_file" != "x/dev/null" && | |
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16543 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
16544 | cat confcache >$cache_file | |
16545 | else | |
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16547 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16548 | fi | |
16549 | fi | |
16550 | rm -f confcache | |
16551 | ||
16552 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16553 | # Let make expand exec_prefix. | |
16554 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16555 | ||
16556 | # Transform confdefs.h into DEFS. | |
16557 | # Protect against shell expansion while executing Makefile rules. | |
16558 | # Protect against Makefile macro expansion. | |
16559 | # | |
16560 | # If the first sed substitution is executed (which looks for macros that | |
16561 | # take arguments), then branch to the quote section. Otherwise, | |
16562 | # look for a macro that doesn't take arguments. | |
16563 | ac_script=' | |
16564 | :mline | |
16565 | /\\$/{ | |
16566 | N | |
16567 | s,\\\n,, | |
16568 | b mline | |
16569 | } | |
16570 | t clear | |
16571 | :clear | |
16572 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
16573 | t quote | |
16574 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
16575 | t quote | |
16576 | b any | |
16577 | :quote | |
16578 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
16579 | s/\[/\\&/g | |
16580 | s/\]/\\&/g | |
16581 | s/\$/$$/g | |
16582 | H | |
16583 | :any | |
16584 | ${ | |
16585 | g | |
16586 | s/^\n// | |
16587 | s/\n/ /g | |
16588 | p | |
16589 | } | |
16590 | ' | |
16591 | DEFS=`sed -n "$ac_script" confdefs.h` | |
16592 | ||
16593 | ||
16594 | ac_libobjs= | |
16595 | ac_ltlibobjs= | |
16596 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16597 | # 1. Remove the extension, and $U if already installed. | |
16598 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16599 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16600 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16601 | # will be set to the directory where LIBOBJS objects are built. | |
16602 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16603 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
16604 | done | |
16605 | LIBOBJS=$ac_libobjs | |
16606 | ||
16607 | LTLIBOBJS=$ac_ltlibobjs | |
16608 | ||
16609 | ||
16610 | ||
16611 | : ${CONFIG_STATUS=./config.status} | |
16612 | ac_write_fail=0 | |
16613 | ac_clean_files_save=$ac_clean_files | |
16614 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16615 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
16616 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16617 | as_write_fail=0 | |
16618 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
16619 | #! $SHELL | |
16620 | # Generated by $as_me. | |
16621 | # Run this file to recreate the current configuration. | |
16622 | # Compiler output produced by configure, useful for debugging | |
16623 | # configure, is in config.log if it exists. | |
16624 | ||
16625 | debug=false | |
16626 | ac_cs_recheck=false | |
16627 | ac_cs_silent=false | |
16628 | ||
16629 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16630 | export SHELL | |
16631 | _ASEOF | |
16632 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16633 | ## -------------------- ## | |
16634 | ## M4sh Initialization. ## | |
16635 | ## -------------------- ## | |
16636 | ||
16637 | # Be more Bourne compatible | |
16638 | DUALCASE=1; export DUALCASE # for MKS sh | |
16639 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
16640 | emulate sh | |
16641 | NULLCMD=: | |
16642 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16643 | # is contrary to our usage. Disable this feature. | |
16644 | alias -g '${1+"$@"}'='"$@"' | |
16645 | setopt NO_GLOB_SUBST | |
16646 | else | |
16647 | case `(set -o) 2>/dev/null` in #( | |
16648 | *posix*) : | |
16649 | set -o posix ;; #( | |
16650 | *) : | |
16651 | ;; | |
16652 | esac | |
16653 | fi | |
16654 | ||
16655 | ||
16656 | as_nl=' | |
16657 | ' | |
16658 | export as_nl | |
16659 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16660 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16661 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16662 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16663 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16664 | # but without wasting forks for bash or zsh. | |
16665 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16666 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16667 | as_echo='print -r --' | |
16668 | as_echo_n='print -rn --' | |
16669 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16670 | as_echo='printf %s\n' | |
16671 | as_echo_n='printf %s' | |
16672 | else | |
16673 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16674 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16675 | as_echo_n='/usr/ucb/echo -n' | |
16676 | else | |
16677 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16678 | as_echo_n_body='eval | |
16679 | arg=$1; | |
16680 | case $arg in #( | |
16681 | *"$as_nl"*) | |
16682 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16683 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16684 | esac; | |
16685 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16686 | ' | |
16687 | export as_echo_n_body | |
16688 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16689 | fi | |
16690 | export as_echo_body | |
16691 | as_echo='sh -c $as_echo_body as_echo' | |
16692 | fi | |
16693 | ||
16694 | # The user is always right. | |
16695 | if test "${PATH_SEPARATOR+set}" != set; then | |
16696 | PATH_SEPARATOR=: | |
16697 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16698 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16699 | PATH_SEPARATOR=';' | |
16700 | } | |
16701 | fi | |
16702 | ||
16703 | ||
16704 | # IFS | |
16705 | # We need space, tab and new line, in precisely that order. Quoting is | |
16706 | # there to prevent editors from complaining about space-tab. | |
16707 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16708 | # splitting by setting IFS to empty value.) | |
16709 | IFS=" "" $as_nl" | |
16710 | ||
16711 | # Find who we are. Look in the path if we contain no directory separator. | |
16712 | case $0 in #(( | |
16713 | *[\\/]* ) as_myself=$0 ;; | |
16714 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16715 | for as_dir in $PATH | |
16716 | do | |
16717 | IFS=$as_save_IFS | |
16718 | test -z "$as_dir" && as_dir=. | |
16719 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16720 | done | |
16721 | IFS=$as_save_IFS | |
16722 | ||
16723 | ;; | |
16724 | esac | |
16725 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16726 | # in which case we are not to be found in the path. | |
16727 | if test "x$as_myself" = x; then | |
16728 | as_myself=$0 | |
16729 | fi | |
16730 | if test ! -f "$as_myself"; then | |
16731 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16732 | exit 1 | |
16733 | fi | |
16734 | ||
16735 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16736 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16737 | # suppresses any "Segmentation fault" message there. '((' could | |
16738 | # trigger a bug in pdksh 5.2.14. | |
16739 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16740 | do eval test x\${$as_var+set} = xset \ | |
16741 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16742 | done | |
16743 | PS1='$ ' | |
16744 | PS2='> ' | |
16745 | PS4='+ ' | |
16746 | ||
16747 | # NLS nuisances. | |
16748 | LC_ALL=C | |
16749 | export LC_ALL | |
16750 | LANGUAGE=C | |
16751 | export LANGUAGE | |
16752 | ||
16753 | # CDPATH. | |
16754 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16755 | ||
16756 | ||
16757 | # as_fn_error ERROR [LINENO LOG_FD] | |
16758 | # --------------------------------- | |
16759 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16760 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16761 | # script with status $?, using 1 if that was 0. | |
16762 | as_fn_error () | |
16763 | { | |
16764 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
16765 | if test "$3"; then | |
16766 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16767 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
16768 | fi | |
16769 | $as_echo "$as_me: error: $1" >&2 | |
16770 | as_fn_exit $as_status | |
16771 | } # as_fn_error | |
16772 | ||
16773 | ||
16774 | # as_fn_set_status STATUS | |
16775 | # ----------------------- | |
16776 | # Set $? to STATUS, without forking. | |
16777 | as_fn_set_status () | |
16778 | { | |
16779 | return $1 | |
16780 | } # as_fn_set_status | |
16781 | ||
16782 | # as_fn_exit STATUS | |
16783 | # ----------------- | |
16784 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16785 | as_fn_exit () | |
16786 | { | |
16787 | set +e | |
16788 | as_fn_set_status $1 | |
16789 | exit $1 | |
16790 | } # as_fn_exit | |
16791 | ||
16792 | # as_fn_unset VAR | |
16793 | # --------------- | |
16794 | # Portably unset VAR. | |
16795 | as_fn_unset () | |
16796 | { | |
16797 | { eval $1=; unset $1;} | |
16798 | } | |
16799 | as_unset=as_fn_unset | |
16800 | # as_fn_append VAR VALUE | |
16801 | # ---------------------- | |
16802 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16803 | # advantage of any shell optimizations that allow amortized linear growth over | |
16804 | # repeated appends, instead of the typical quadratic growth present in naive | |
16805 | # implementations. | |
16806 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16807 | eval 'as_fn_append () | |
16808 | { | |
16809 | eval $1+=\$2 | |
16810 | }' | |
16811 | else | |
16812 | as_fn_append () | |
16813 | { | |
16814 | eval $1=\$$1\$2 | |
16815 | } | |
16816 | fi # as_fn_append | |
16817 | ||
16818 | # as_fn_arith ARG... | |
16819 | # ------------------ | |
16820 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16821 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16822 | # must be portable across $(()) and expr. | |
16823 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16824 | eval 'as_fn_arith () | |
16825 | { | |
16826 | as_val=$(( $* )) | |
16827 | }' | |
16828 | else | |
16829 | as_fn_arith () | |
16830 | { | |
16831 | as_val=`expr "$@" || test $? -eq 1` | |
16832 | } | |
16833 | fi # as_fn_arith | |
16834 | ||
16835 | ||
16836 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16837 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16838 | as_expr=expr | |
16839 | else | |
16840 | as_expr=false | |
16841 | fi | |
16842 | ||
16843 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16844 | as_basename=basename | |
16845 | else | |
16846 | as_basename=false | |
16847 | fi | |
16848 | ||
16849 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16850 | as_dirname=dirname | |
16851 | else | |
16852 | as_dirname=false | |
16853 | fi | |
16854 | ||
16855 | as_me=`$as_basename -- "$0" || | |
16856 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16857 | X"$0" : 'X\(//\)$' \| \ | |
16858 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16859 | $as_echo X/"$0" | | |
16860 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16861 | s//\1/ | |
16862 | q | |
16863 | } | |
16864 | /^X\/\(\/\/\)$/{ | |
16865 | s//\1/ | |
16866 | q | |
16867 | } | |
16868 | /^X\/\(\/\).*/{ | |
16869 | s//\1/ | |
16870 | q | |
16871 | } | |
16872 | s/.*/./; q'` | |
16873 | ||
16874 | # Avoid depending upon Character Ranges. | |
16875 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16876 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16877 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16878 | as_cr_digits='0123456789' | |
16879 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16880 | ||
16881 | ECHO_C= ECHO_N= ECHO_T= | |
16882 | case `echo -n x` in #((((( | |
16883 | -n*) | |
16884 | case `echo 'xy\c'` in | |
16885 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16886 | xy) ECHO_C='\c';; | |
16887 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16888 | ECHO_T=' ';; | |
16889 | esac;; | |
16890 | *) | |
16891 | ECHO_N='-n';; | |
16892 | esac | |
16893 | ||
16894 | rm -f conf$$ conf$$.exe conf$$.file | |
16895 | if test -d conf$$.dir; then | |
16896 | rm -f conf$$.dir/conf$$.file | |
16897 | else | |
16898 | rm -f conf$$.dir | |
16899 | mkdir conf$$.dir 2>/dev/null | |
16900 | fi | |
16901 | if (echo >conf$$.file) 2>/dev/null; then | |
16902 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16903 | as_ln_s='ln -s' | |
16904 | # ... but there are two gotchas: | |
16905 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16906 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16907 | # In both cases, we have to default to `cp -p'. | |
16908 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16909 | as_ln_s='cp -p' | |
16910 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16911 | as_ln_s=ln | |
16912 | else | |
16913 | as_ln_s='cp -p' | |
16914 | fi | |
16915 | else | |
16916 | as_ln_s='cp -p' | |
16917 | fi | |
16918 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16919 | rmdir conf$$.dir 2>/dev/null | |
16920 | ||
16921 | ||
16922 | # as_fn_mkdir_p | |
16923 | # ------------- | |
16924 | # Create "$as_dir" as a directory, including parents if necessary. | |
16925 | as_fn_mkdir_p () | |
16926 | { | |
16927 | ||
16928 | case $as_dir in #( | |
16929 | -*) as_dir=./$as_dir;; | |
16930 | esac | |
16931 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16932 | as_dirs= | |
16933 | while :; do | |
16934 | case $as_dir in #( | |
16935 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16936 | *) as_qdir=$as_dir;; | |
16937 | esac | |
16938 | as_dirs="'$as_qdir' $as_dirs" | |
16939 | as_dir=`$as_dirname -- "$as_dir" || | |
16940 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16941 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16942 | X"$as_dir" : 'X\(//\)$' \| \ | |
16943 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16944 | $as_echo X"$as_dir" | | |
16945 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16946 | s//\1/ | |
16947 | q | |
16948 | } | |
16949 | /^X\(\/\/\)[^/].*/{ | |
16950 | s//\1/ | |
16951 | q | |
16952 | } | |
16953 | /^X\(\/\/\)$/{ | |
16954 | s//\1/ | |
16955 | q | |
16956 | } | |
16957 | /^X\(\/\).*/{ | |
16958 | s//\1/ | |
16959 | q | |
16960 | } | |
16961 | s/.*/./; q'` | |
16962 | test -d "$as_dir" && break | |
16963 | done | |
16964 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
16965 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
16966 | ||
16967 | ||
16968 | } # as_fn_mkdir_p | |
16969 | if mkdir -p . 2>/dev/null; then | |
16970 | as_mkdir_p='mkdir -p "$as_dir"' | |
16971 | else | |
16972 | test -d ./-p && rmdir ./-p | |
16973 | as_mkdir_p=false | |
16974 | fi | |
16975 | ||
16976 | if test -x / >/dev/null 2>&1; then | |
16977 | as_test_x='test -x' | |
16978 | else | |
16979 | if ls -dL / >/dev/null 2>&1; then | |
16980 | as_ls_L_option=L | |
16981 | else | |
16982 | as_ls_L_option= | |
16983 | fi | |
16984 | as_test_x=' | |
16985 | eval sh -c '\'' | |
16986 | if test -d "$1"; then | |
16987 | test -d "$1/."; | |
16988 | else | |
16989 | case $1 in #( | |
16990 | -*)set "./$1";; | |
16991 | esac; | |
16992 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
16993 | ???[sx]*):;;*)false;;esac;fi | |
16994 | '\'' sh | |
16995 | ' | |
16996 | fi | |
16997 | as_executable_p=$as_test_x | |
16998 | ||
16999 | # Sed expression to map a string onto a valid CPP name. | |
17000 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17001 | ||
17002 | # Sed expression to map a string onto a valid variable name. | |
17003 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17004 | ||
17005 | ||
17006 | exec 6>&1 | |
17007 | ## ----------------------------------- ## | |
17008 | ## Main body of $CONFIG_STATUS script. ## | |
17009 | ## ----------------------------------- ## | |
17010 | _ASEOF | |
17011 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17012 | ||
17013 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17014 | # Save the log message, to keep $0 and so on meaningful, and to | |
17015 | # report actual input values of CONFIG_FILES etc. instead of their | |
17016 | # values after options handling. | |
17017 | ac_log=" | |
17018 | This file was extended by Cycript $as_me 0.9, which was | |
17019 | generated by GNU Autoconf 2.65. Invocation command line was | |
17020 | ||
17021 | CONFIG_FILES = $CONFIG_FILES | |
17022 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17023 | CONFIG_LINKS = $CONFIG_LINKS | |
17024 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17025 | $ $0 $@ | |
17026 | ||
17027 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
17028 | " | |
17029 | ||
17030 | _ACEOF | |
17031 | ||
17032 | case $ac_config_files in *" | |
17033 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17034 | esac | |
17035 | ||
17036 | ||
17037 | ||
17038 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17039 | # Files that config.status was made for. | |
17040 | config_files="$ac_config_files" | |
17041 | config_commands="$ac_config_commands" | |
17042 | ||
17043 | _ACEOF | |
17044 | ||
17045 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17046 | ac_cs_usage="\ | |
17047 | \`$as_me' instantiates files and other configuration actions | |
17048 | from templates according to the current configuration. Unless the files | |
17049 | and actions are specified as TAGs, all are instantiated by default. | |
17050 | ||
17051 | Usage: $0 [OPTION]... [TAG]... | |
17052 | ||
17053 | -h, --help print this help, then exit | |
17054 | -V, --version print version number and configuration settings, then exit | |
17055 | --config print configuration, then exit | |
17056 | -q, --quiet, --silent | |
17057 | do not print progress messages | |
17058 | -d, --debug don't remove temporary files | |
17059 | --recheck update $as_me by reconfiguring in the same conditions | |
17060 | --file=FILE[:TEMPLATE] | |
17061 | instantiate the configuration file FILE | |
17062 | ||
17063 | Configuration files: | |
17064 | $config_files | |
17065 | ||
17066 | Configuration commands: | |
17067 | $config_commands | |
17068 | ||
17069 | Report bugs to <saurik@saurik.com>. | |
17070 | Cycript home page: <http://www.cycript.org/>." | |
17071 | ||
17072 | _ACEOF | |
17073 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17074 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
17075 | ac_cs_version="\\ | |
17076 | Cycript config.status 0.9 | |
17077 | configured by $0, generated by GNU Autoconf 2.65, | |
17078 | with options \\"\$ac_cs_config\\" | |
17079 | ||
17080 | Copyright (C) 2009 Free Software Foundation, Inc. | |
17081 | This config.status script is free software; the Free Software Foundation | |
17082 | gives unlimited permission to copy, distribute and modify it." | |
17083 | ||
17084 | ac_pwd='$ac_pwd' | |
17085 | srcdir='$srcdir' | |
17086 | INSTALL='$INSTALL' | |
17087 | AWK='$AWK' | |
17088 | test -n "\$AWK" || AWK=awk | |
17089 | _ACEOF | |
17090 | ||
17091 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17092 | # The default lists apply if the user does not specify any file. | |
17093 | ac_need_defaults=: | |
17094 | while test $# != 0 | |
17095 | do | |
17096 | case $1 in | |
17097 | --*=*) | |
17098 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17099 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17100 | ac_shift=: | |
17101 | ;; | |
17102 | *) | |
17103 | ac_option=$1 | |
17104 | ac_optarg=$2 | |
17105 | ac_shift=shift | |
17106 | ;; | |
17107 | esac | |
17108 | ||
17109 | case $ac_option in | |
17110 | # Handling of the options. | |
17111 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17112 | ac_cs_recheck=: ;; | |
17113 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17114 | $as_echo "$ac_cs_version"; exit ;; | |
17115 | --config | --confi | --conf | --con | --co | --c ) | |
17116 | $as_echo "$ac_cs_config"; exit ;; | |
17117 | --debug | --debu | --deb | --de | --d | -d ) | |
17118 | debug=: ;; | |
17119 | --file | --fil | --fi | --f ) | |
17120 | $ac_shift | |
17121 | case $ac_optarg in | |
17122 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17123 | esac | |
17124 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
17125 | ac_need_defaults=false;; | |
17126 | --he | --h | --help | --hel | -h ) | |
17127 | $as_echo "$ac_cs_usage"; exit ;; | |
17128 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17129 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17130 | ac_cs_silent=: ;; | |
17131 | ||
17132 | # This is an error. | |
17133 | -*) as_fn_error "unrecognized option: \`$1' | |
17134 | Try \`$0 --help' for more information." ;; | |
17135 | ||
17136 | *) as_fn_append ac_config_targets " $1" | |
17137 | ac_need_defaults=false ;; | |
17138 | ||
17139 | esac | |
17140 | shift | |
17141 | done | |
17142 | ||
17143 | ac_configure_extra_args= | |
17144 | ||
17145 | if $ac_cs_silent; then | |
17146 | exec 6>/dev/null | |
17147 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17148 | fi | |
17149 | ||
17150 | _ACEOF | |
17151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17152 | if \$ac_cs_recheck; then | |
17153 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17154 | shift | |
17155 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17156 | CONFIG_SHELL='$SHELL' | |
17157 | export CONFIG_SHELL | |
17158 | exec "\$@" | |
17159 | fi | |
17160 | ||
17161 | _ACEOF | |
17162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17163 | exec 5>>config.log | |
17164 | { | |
17165 | echo | |
17166 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17167 | ## Running $as_me. ## | |
17168 | _ASBOX | |
17169 | $as_echo "$ac_log" | |
17170 | } >&5 | |
17171 | ||
17172 | _ACEOF | |
17173 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17174 | # | |
17175 | # INIT-COMMANDS | |
17176 | # | |
17177 | ||
17178 | ||
17179 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17180 | # if CDPATH is set. | |
17181 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17182 | ||
17183 | sed_quote_subst='$sed_quote_subst' | |
17184 | double_quote_subst='$double_quote_subst' | |
17185 | delay_variable_subst='$delay_variable_subst' | |
17186 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17187 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
17188 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17189 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
17190 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
17191 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
17192 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17193 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
17194 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17195 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17196 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
17197 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17198 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
17199 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
17200 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17201 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17202 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17203 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
17204 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
17205 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
17206 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
17207 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
17208 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
17209 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
17210 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
17211 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
17212 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17213 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17214 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
17215 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
17216 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
17217 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
17218 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17219 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
17220 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
17221 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17222 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17223 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17224 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
17225 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17226 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
17227 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
17228 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
17229 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
17230 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
17231 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
17232 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
17233 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
17234 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
17235 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
17236 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17237 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
17238 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
17239 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17240 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
17241 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
17242 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
17243 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
17244 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
17245 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
17246 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
17247 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
17248 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17249 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17250 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
17251 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
17252 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17253 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17254 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
17255 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17256 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17257 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17258 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17259 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17260 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17261 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17262 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17263 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17264 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17265 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17266 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
17267 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
17268 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
17269 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
17270 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17271 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
17272 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17273 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
17274 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17275 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
17276 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17277 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17278 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17279 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17280 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17281 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
17282 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
17283 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17284 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
17285 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17286 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17287 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17288 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17289 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17290 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17291 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17292 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17293 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17294 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
17295 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
17296 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17297 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17298 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
17299 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
17300 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
17301 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17302 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17303 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17304 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
17305 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17306 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17307 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17308 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17309 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17310 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17311 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17312 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17313 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17314 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17315 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17316 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17317 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17318 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17319 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17320 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17321 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17322 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17323 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17324 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17325 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17326 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17327 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17328 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17329 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17330 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17331 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17332 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17333 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17334 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17335 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17336 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17337 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17338 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17339 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17340 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17341 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17342 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17343 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17344 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17345 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17346 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17347 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17348 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17349 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17350 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17351 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17352 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17353 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17354 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17355 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17356 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17357 | ||
17358 | LTCC='$LTCC' | |
17359 | LTCFLAGS='$LTCFLAGS' | |
17360 | compiler='$compiler_DEFAULT' | |
17361 | ||
17362 | # Quote evaled strings. | |
17363 | for var in SED \ | |
17364 | GREP \ | |
17365 | EGREP \ | |
17366 | FGREP \ | |
17367 | LD \ | |
17368 | NM \ | |
17369 | LN_S \ | |
17370 | lt_SP2NL \ | |
17371 | lt_NL2SP \ | |
17372 | reload_flag \ | |
17373 | OBJDUMP \ | |
17374 | deplibs_check_method \ | |
17375 | file_magic_cmd \ | |
17376 | AR \ | |
17377 | AR_FLAGS \ | |
17378 | STRIP \ | |
17379 | RANLIB \ | |
17380 | CC \ | |
17381 | CFLAGS \ | |
17382 | compiler \ | |
17383 | lt_cv_sys_global_symbol_pipe \ | |
17384 | lt_cv_sys_global_symbol_to_cdecl \ | |
17385 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17386 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
17387 | SHELL \ | |
17388 | ECHO \ | |
17389 | lt_prog_compiler_no_builtin_flag \ | |
17390 | lt_prog_compiler_wl \ | |
17391 | lt_prog_compiler_pic \ | |
17392 | lt_prog_compiler_static \ | |
17393 | lt_cv_prog_compiler_c_o \ | |
17394 | need_locks \ | |
17395 | DSYMUTIL \ | |
17396 | NMEDIT \ | |
17397 | LIPO \ | |
17398 | OTOOL \ | |
17399 | OTOOL64 \ | |
17400 | shrext_cmds \ | |
17401 | export_dynamic_flag_spec \ | |
17402 | whole_archive_flag_spec \ | |
17403 | compiler_needs_object \ | |
17404 | with_gnu_ld \ | |
17405 | allow_undefined_flag \ | |
17406 | no_undefined_flag \ | |
17407 | hardcode_libdir_flag_spec \ | |
17408 | hardcode_libdir_flag_spec_ld \ | |
17409 | hardcode_libdir_separator \ | |
17410 | fix_srcfile_path \ | |
17411 | exclude_expsyms \ | |
17412 | include_expsyms \ | |
17413 | file_list_spec \ | |
17414 | variables_saved_for_relink \ | |
17415 | libname_spec \ | |
17416 | library_names_spec \ | |
17417 | soname_spec \ | |
17418 | finish_eval \ | |
17419 | old_striplib \ | |
17420 | striplib \ | |
17421 | compiler_lib_search_dirs \ | |
17422 | predep_objects \ | |
17423 | postdep_objects \ | |
17424 | predeps \ | |
17425 | postdeps \ | |
17426 | compiler_lib_search_path \ | |
17427 | LD_CXX \ | |
17428 | compiler_CXX \ | |
17429 | lt_prog_compiler_no_builtin_flag_CXX \ | |
17430 | lt_prog_compiler_wl_CXX \ | |
17431 | lt_prog_compiler_pic_CXX \ | |
17432 | lt_prog_compiler_static_CXX \ | |
17433 | lt_cv_prog_compiler_c_o_CXX \ | |
17434 | export_dynamic_flag_spec_CXX \ | |
17435 | whole_archive_flag_spec_CXX \ | |
17436 | compiler_needs_object_CXX \ | |
17437 | with_gnu_ld_CXX \ | |
17438 | allow_undefined_flag_CXX \ | |
17439 | no_undefined_flag_CXX \ | |
17440 | hardcode_libdir_flag_spec_CXX \ | |
17441 | hardcode_libdir_flag_spec_ld_CXX \ | |
17442 | hardcode_libdir_separator_CXX \ | |
17443 | fix_srcfile_path_CXX \ | |
17444 | exclude_expsyms_CXX \ | |
17445 | include_expsyms_CXX \ | |
17446 | file_list_spec_CXX \ | |
17447 | compiler_lib_search_dirs_CXX \ | |
17448 | predep_objects_CXX \ | |
17449 | postdep_objects_CXX \ | |
17450 | predeps_CXX \ | |
17451 | postdeps_CXX \ | |
17452 | compiler_lib_search_path_CXX; do | |
17453 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17454 | *[\\\\\\\`\\"\\\$]*) | |
17455 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17456 | ;; | |
17457 | *) | |
17458 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17459 | ;; | |
17460 | esac | |
17461 | done | |
17462 | ||
17463 | # Double-quote double-evaled strings. | |
17464 | for var in reload_cmds \ | |
17465 | old_postinstall_cmds \ | |
17466 | old_postuninstall_cmds \ | |
17467 | old_archive_cmds \ | |
17468 | extract_expsyms_cmds \ | |
17469 | old_archive_from_new_cmds \ | |
17470 | old_archive_from_expsyms_cmds \ | |
17471 | archive_cmds \ | |
17472 | archive_expsym_cmds \ | |
17473 | module_cmds \ | |
17474 | module_expsym_cmds \ | |
17475 | export_symbols_cmds \ | |
17476 | prelink_cmds \ | |
17477 | postinstall_cmds \ | |
17478 | postuninstall_cmds \ | |
17479 | finish_cmds \ | |
17480 | sys_lib_search_path_spec \ | |
17481 | sys_lib_dlsearch_path_spec \ | |
17482 | old_archive_cmds_CXX \ | |
17483 | old_archive_from_new_cmds_CXX \ | |
17484 | old_archive_from_expsyms_cmds_CXX \ | |
17485 | archive_cmds_CXX \ | |
17486 | archive_expsym_cmds_CXX \ | |
17487 | module_cmds_CXX \ | |
17488 | module_expsym_cmds_CXX \ | |
17489 | export_symbols_cmds_CXX \ | |
17490 | prelink_cmds_CXX; do | |
17491 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17492 | *[\\\\\\\`\\"\\\$]*) | |
17493 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17494 | ;; | |
17495 | *) | |
17496 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17497 | ;; | |
17498 | esac | |
17499 | done | |
17500 | ||
17501 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
17502 | case \$lt_ECHO in | |
17503 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
17504 | ;; | |
17505 | esac | |
17506 | ||
17507 | ac_aux_dir='$ac_aux_dir' | |
17508 | xsi_shell='$xsi_shell' | |
17509 | lt_shell_append='$lt_shell_append' | |
17510 | ||
17511 | # See if we are running on zsh, and set the options which allow our | |
17512 | # commands through without removal of \ escapes INIT. | |
17513 | if test -n "\${ZSH_VERSION+set}" ; then | |
17514 | setopt NO_GLOB_SUBST | |
17515 | fi | |
17516 | ||
17517 | ||
17518 | PACKAGE='$PACKAGE' | |
17519 | VERSION='$VERSION' | |
17520 | TIMESTAMP='$TIMESTAMP' | |
17521 | RM='$RM' | |
17522 | ofile='$ofile' | |
17523 | ||
17524 | ||
17525 | ||
17526 | ||
17527 | ||
17528 | ||
17529 | _ACEOF | |
17530 | ||
17531 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17532 | ||
17533 | # Handling of arguments. | |
17534 | for ac_config_target in $ac_config_targets | |
17535 | do | |
17536 | case $ac_config_target in | |
17537 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
17538 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; | |
17539 | ||
17540 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
17541 | esac | |
17542 | done | |
17543 | ||
17544 | ||
17545 | # If the user did not use the arguments to specify the items to instantiate, | |
17546 | # then the envvar interface is used. Set only those that are not. | |
17547 | # We use the long form for the default assignment because of an extremely | |
17548 | # bizarre bug on SunOS 4.1.3. | |
17549 | if $ac_need_defaults; then | |
17550 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17551 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17552 | fi | |
17553 | ||
17554 | # Have a temporary directory for convenience. Make it in the build tree | |
17555 | # simply because there is no reason against having it here, and in addition, | |
17556 | # creating and moving files from /tmp can sometimes cause problems. | |
17557 | # Hook for its removal unless debugging. | |
17558 | # Note that there is a small window in which the directory will not be cleaned: | |
17559 | # after its creation but before its name has been assigned to `$tmp'. | |
17560 | $debug || | |
17561 | { | |
17562 | tmp= | |
17563 | trap 'exit_status=$? | |
17564 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
17565 | ' 0 | |
17566 | trap 'as_fn_exit 1' 1 2 13 15 | |
17567 | } | |
17568 | # Create a (secure) tmp directory for tmp files. | |
17569 | ||
17570 | { | |
17571 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
17572 | test -n "$tmp" && test -d "$tmp" | |
17573 | } || | |
17574 | { | |
17575 | tmp=./conf$$-$RANDOM | |
17576 | (umask 077 && mkdir "$tmp") | |
17577 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
17578 | ||
17579 | # Set up the scripts for CONFIG_FILES section. | |
17580 | # No need to generate them if there are no CONFIG_FILES. | |
17581 | # This happens for instance with `./config.status config.h'. | |
17582 | if test -n "$CONFIG_FILES"; then | |
17583 | ||
17584 | ||
17585 | ac_cr=`echo X | tr X '\015'` | |
17586 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17587 | # But we know of no other shell where ac_cr would be empty at this | |
17588 | # point, so we can use a bashism as a fallback. | |
17589 | if test "x$ac_cr" = x; then | |
17590 | eval ac_cr=\$\'\\r\' | |
17591 | fi | |
17592 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17593 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17594 | ac_cs_awk_cr='\r' | |
17595 | else | |
17596 | ac_cs_awk_cr=$ac_cr | |
17597 | fi | |
17598 | ||
17599 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
17600 | _ACEOF | |
17601 | ||
17602 | ||
17603 | { | |
17604 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17605 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17606 | echo "_ACEOF" | |
17607 | } >conf$$subs.sh || | |
17608 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17609 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
17610 | ac_delim='%!_!# ' | |
17611 | for ac_last_try in false false false false false :; do | |
17612 | . ./conf$$subs.sh || | |
17613 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17614 | ||
17615 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17616 | if test $ac_delim_n = $ac_delim_num; then | |
17617 | break | |
17618 | elif $ac_last_try; then | |
17619 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17620 | else | |
17621 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17622 | fi | |
17623 | done | |
17624 | rm -f conf$$subs.sh | |
17625 | ||
17626 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17627 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
17628 | _ACEOF | |
17629 | sed -n ' | |
17630 | h | |
17631 | s/^/S["/; s/!.*/"]=/ | |
17632 | p | |
17633 | g | |
17634 | s/^[^!]*!// | |
17635 | :repl | |
17636 | t repl | |
17637 | s/'"$ac_delim"'$// | |
17638 | t delim | |
17639 | :nl | |
17640 | h | |
17641 | s/\(.\{148\}\)..*/\1/ | |
17642 | t more1 | |
17643 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17644 | p | |
17645 | n | |
17646 | b repl | |
17647 | :more1 | |
17648 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17649 | p | |
17650 | g | |
17651 | s/.\{148\}// | |
17652 | t nl | |
17653 | :delim | |
17654 | h | |
17655 | s/\(.\{148\}\)..*/\1/ | |
17656 | t more2 | |
17657 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17658 | p | |
17659 | b | |
17660 | :more2 | |
17661 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17662 | p | |
17663 | g | |
17664 | s/.\{148\}// | |
17665 | t delim | |
17666 | ' <conf$$subs.awk | sed ' | |
17667 | /^[^""]/{ | |
17668 | N | |
17669 | s/\n// | |
17670 | } | |
17671 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17672 | rm -f conf$$subs.awk | |
17673 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17674 | _ACAWK | |
17675 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
17676 | for (key in S) S_is_set[key] = 1 | |
17677 | FS = "\a" | |
17678 | ||
17679 | } | |
17680 | { | |
17681 | line = $ 0 | |
17682 | nfields = split(line, field, "@") | |
17683 | substed = 0 | |
17684 | len = length(field[1]) | |
17685 | for (i = 2; i < nfields; i++) { | |
17686 | key = field[i] | |
17687 | keylen = length(key) | |
17688 | if (S_is_set[key]) { | |
17689 | value = S[key] | |
17690 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17691 | len += length(value) + length(field[++i]) | |
17692 | substed = 1 | |
17693 | } else | |
17694 | len += 1 + keylen | |
17695 | } | |
17696 | ||
17697 | print line | |
17698 | } | |
17699 | ||
17700 | _ACAWK | |
17701 | _ACEOF | |
17702 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17703 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17704 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17705 | else | |
17706 | cat | |
17707 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
17708 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
17709 | _ACEOF | |
17710 | ||
17711 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
17712 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
17713 | # trailing colons and then remove the whole line if VPATH becomes empty | |
17714 | # (actually we leave an empty line to preserve line numbers). | |
17715 | if test "x$srcdir" = x.; then | |
17716 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
17717 | s/:*\$(srcdir):*/:/ | |
17718 | s/:*\${srcdir}:*/:/ | |
17719 | s/:*@srcdir@:*/:/ | |
17720 | s/^\([^=]*=[ ]*\):*/\1/ | |
17721 | s/:*$// | |
17722 | s/^[^=]*=[ ]*$// | |
17723 | }' | |
17724 | fi | |
17725 | ||
17726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17727 | fi # test -n "$CONFIG_FILES" | |
17728 | ||
17729 | ||
17730 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
17731 | shift | |
17732 | for ac_tag | |
17733 | do | |
17734 | case $ac_tag in | |
17735 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17736 | esac | |
17737 | case $ac_mode$ac_tag in | |
17738 | :[FHL]*:*);; | |
17739 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
17740 | :[FH]-) ac_tag=-:-;; | |
17741 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17742 | esac | |
17743 | ac_save_IFS=$IFS | |
17744 | IFS=: | |
17745 | set x $ac_tag | |
17746 | IFS=$ac_save_IFS | |
17747 | shift | |
17748 | ac_file=$1 | |
17749 | shift | |
17750 | ||
17751 | case $ac_mode in | |
17752 | :L) ac_source=$1;; | |
17753 | :[FH]) | |
17754 | ac_file_inputs= | |
17755 | for ac_f | |
17756 | do | |
17757 | case $ac_f in | |
17758 | -) ac_f="$tmp/stdin";; | |
17759 | *) # Look for the file first in the build tree, then in the source tree | |
17760 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17761 | # because $ac_f cannot contain `:'. | |
17762 | test -f "$ac_f" || | |
17763 | case $ac_f in | |
17764 | [\\/$]*) false;; | |
17765 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17766 | esac || | |
17767 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
17768 | esac | |
17769 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17770 | as_fn_append ac_file_inputs " '$ac_f'" | |
17771 | done | |
17772 | ||
17773 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17774 | # use $as_me), people would be surprised to read: | |
17775 | # /* config.h. Generated by config.status. */ | |
17776 | configure_input='Generated from '` | |
17777 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17778 | `' by configure.' | |
17779 | if test x"$ac_file" != x-; then | |
17780 | configure_input="$ac_file. $configure_input" | |
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17782 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17783 | fi | |
17784 | # Neutralize special characters interpreted by sed in replacement strings. | |
17785 | case $configure_input in #( | |
17786 | *\&* | *\|* | *\\* ) | |
17787 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17788 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17789 | *) ac_sed_conf_input=$configure_input;; | |
17790 | esac | |
17791 | ||
17792 | case $ac_tag in | |
17793 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
17794 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
17795 | esac | |
17796 | ;; | |
17797 | esac | |
17798 | ||
17799 | ac_dir=`$as_dirname -- "$ac_file" || | |
17800 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17801 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17802 | X"$ac_file" : 'X\(//\)$' \| \ | |
17803 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17804 | $as_echo X"$ac_file" | | |
17805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17806 | s//\1/ | |
17807 | q | |
17808 | } | |
17809 | /^X\(\/\/\)[^/].*/{ | |
17810 | s//\1/ | |
17811 | q | |
17812 | } | |
17813 | /^X\(\/\/\)$/{ | |
17814 | s//\1/ | |
17815 | q | |
17816 | } | |
17817 | /^X\(\/\).*/{ | |
17818 | s//\1/ | |
17819 | q | |
17820 | } | |
17821 | s/.*/./; q'` | |
17822 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17823 | ac_builddir=. | |
17824 | ||
17825 | case "$ac_dir" in | |
17826 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17827 | *) | |
17828 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17829 | # A ".." for each directory in $ac_dir_suffix. | |
17830 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17831 | case $ac_top_builddir_sub in | |
17832 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17833 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17834 | esac ;; | |
17835 | esac | |
17836 | ac_abs_top_builddir=$ac_pwd | |
17837 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17838 | # for backward compatibility: | |
17839 | ac_top_builddir=$ac_top_build_prefix | |
17840 | ||
17841 | case $srcdir in | |
17842 | .) # We are building in place. | |
17843 | ac_srcdir=. | |
17844 | ac_top_srcdir=$ac_top_builddir_sub | |
17845 | ac_abs_top_srcdir=$ac_pwd ;; | |
17846 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17847 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17848 | ac_top_srcdir=$srcdir | |
17849 | ac_abs_top_srcdir=$srcdir ;; | |
17850 | *) # Relative name. | |
17851 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17852 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17853 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17854 | esac | |
17855 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17856 | ||
17857 | ||
17858 | case $ac_mode in | |
17859 | :F) | |
17860 | # | |
17861 | # CONFIG_FILE | |
17862 | # | |
17863 | ||
17864 | case $INSTALL in | |
17865 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17866 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17867 | esac | |
17868 | _ACEOF | |
17869 | ||
17870 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17871 | # If the template does not know about datarootdir, expand it. | |
17872 | # FIXME: This hack should be removed a few years after 2.60. | |
17873 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17874 | ac_sed_dataroot=' | |
17875 | /datarootdir/ { | |
17876 | p | |
17877 | q | |
17878 | } | |
17879 | /@datadir@/p | |
17880 | /@docdir@/p | |
17881 | /@infodir@/p | |
17882 | /@localedir@/p | |
17883 | /@mandir@/p' | |
17884 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17885 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17886 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17888 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17889 | _ACEOF | |
17890 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17891 | ac_datarootdir_hack=' | |
17892 | s&@datadir@&$datadir&g | |
17893 | s&@docdir@&$docdir&g | |
17894 | s&@infodir@&$infodir&g | |
17895 | s&@localedir@&$localedir&g | |
17896 | s&@mandir@&$mandir&g | |
17897 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17898 | esac | |
17899 | _ACEOF | |
17900 | ||
17901 | # Neutralize VPATH when `$srcdir' = `.'. | |
17902 | # Shell code in configure.ac might set extrasub. | |
17903 | # FIXME: do we really want to maintain this feature? | |
17904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17905 | ac_sed_extra="$ac_vpsub | |
17906 | $extrasub | |
17907 | _ACEOF | |
17908 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17909 | :t | |
17910 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17911 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17912 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17913 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17914 | s&@srcdir@&$ac_srcdir&;t t | |
17915 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17916 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17917 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17918 | s&@builddir@&$ac_builddir&;t t | |
17919 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17920 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17921 | s&@INSTALL@&$ac_INSTALL&;t t | |
17922 | $ac_datarootdir_hack | |
17923 | " | |
17924 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
17925 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17926 | ||
17927 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17928 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
17929 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
17930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17931 | which seems to be undefined. Please make sure it is defined." >&5 | |
17932 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17933 | which seems to be undefined. Please make sure it is defined." >&2;} | |
17934 | ||
17935 | rm -f "$tmp/stdin" | |
17936 | case $ac_file in | |
17937 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
17938 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
17939 | esac \ | |
17940 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17941 | ;; | |
17942 | ||
17943 | ||
17944 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
17945 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17946 | ;; | |
17947 | esac | |
17948 | ||
17949 | ||
17950 | case $ac_file$ac_mode in | |
17951 | "libtool":C) | |
17952 | ||
17953 | # See if we are running on zsh, and set the options which allow our | |
17954 | # commands through without removal of \ escapes. | |
17955 | if test -n "${ZSH_VERSION+set}" ; then | |
17956 | setopt NO_GLOB_SUBST | |
17957 | fi | |
17958 | ||
17959 | cfgfile="${ofile}T" | |
17960 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17961 | $RM "$cfgfile" | |
17962 | ||
17963 | cat <<_LT_EOF >> "$cfgfile" | |
17964 | #! $SHELL | |
17965 | ||
17966 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17967 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17968 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17969 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17970 | # | |
17971 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
17972 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
17973 | # Written by Gordon Matzigkeit, 1996 | |
17974 | # | |
17975 | # This file is part of GNU Libtool. | |
17976 | # | |
17977 | # GNU Libtool is free software; you can redistribute it and/or | |
17978 | # modify it under the terms of the GNU General Public License as | |
17979 | # published by the Free Software Foundation; either version 2 of | |
17980 | # the License, or (at your option) any later version. | |
17981 | # | |
17982 | # As a special exception to the GNU General Public License, | |
17983 | # if you distribute this file as part of a program or library that | |
17984 | # is built using GNU Libtool, you may include this file under the | |
17985 | # same distribution terms that you use for the rest of that program. | |
17986 | # | |
17987 | # GNU Libtool is distributed in the hope that it will be useful, | |
17988 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17989 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17990 | # GNU General Public License for more details. | |
17991 | # | |
17992 | # You should have received a copy of the GNU General Public License | |
17993 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
17994 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17995 | # obtained by writing to the Free Software Foundation, Inc., | |
17996 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17997 | ||
17998 | ||
17999 | # The names of the tagged configurations supported by this script. | |
18000 | available_tags="CXX " | |
18001 | ||
18002 | # ### BEGIN LIBTOOL CONFIG | |
18003 | ||
18004 | # Which release of libtool.m4 was used? | |
18005 | macro_version=$macro_version | |
18006 | macro_revision=$macro_revision | |
18007 | ||
18008 | # Whether or not to build static libraries. | |
18009 | build_old_libs=$enable_static | |
18010 | ||
18011 | # Whether or not to build shared libraries. | |
18012 | build_libtool_libs=$enable_shared | |
18013 | ||
18014 | # What type of objects to build. | |
18015 | pic_mode=$pic_mode | |
18016 | ||
18017 | # Whether or not to optimize for fast installation. | |
18018 | fast_install=$enable_fast_install | |
18019 | ||
18020 | # The host system. | |
18021 | host_alias=$host_alias | |
18022 | host=$host | |
18023 | host_os=$host_os | |
18024 | ||
18025 | # The build system. | |
18026 | build_alias=$build_alias | |
18027 | build=$build | |
18028 | build_os=$build_os | |
18029 | ||
18030 | # A sed program that does not truncate output. | |
18031 | SED=$lt_SED | |
18032 | ||
18033 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18034 | Xsed="\$SED -e 1s/^X//" | |
18035 | ||
18036 | # A grep program that handles long lines. | |
18037 | GREP=$lt_GREP | |
18038 | ||
18039 | # An ERE matcher. | |
18040 | EGREP=$lt_EGREP | |
18041 | ||
18042 | # A literal string matcher. | |
18043 | FGREP=$lt_FGREP | |
18044 | ||
18045 | # A BSD- or MS-compatible name lister. | |
18046 | NM=$lt_NM | |
18047 | ||
18048 | # Whether we need soft or hard links. | |
18049 | LN_S=$lt_LN_S | |
18050 | ||
18051 | # What is the maximum length of a command? | |
18052 | max_cmd_len=$max_cmd_len | |
18053 | ||
18054 | # Object file suffix (normally "o"). | |
18055 | objext=$ac_objext | |
18056 | ||
18057 | # Executable file suffix (normally ""). | |
18058 | exeext=$exeext | |
18059 | ||
18060 | # whether the shell understands "unset". | |
18061 | lt_unset=$lt_unset | |
18062 | ||
18063 | # turn spaces into newlines. | |
18064 | SP2NL=$lt_lt_SP2NL | |
18065 | ||
18066 | # turn newlines into spaces. | |
18067 | NL2SP=$lt_lt_NL2SP | |
18068 | ||
18069 | # How to create reloadable object files. | |
18070 | reload_flag=$lt_reload_flag | |
18071 | reload_cmds=$lt_reload_cmds | |
18072 | ||
18073 | # An object symbol dumper. | |
18074 | OBJDUMP=$lt_OBJDUMP | |
18075 | ||
18076 | # Method to check whether dependent libraries are shared objects. | |
18077 | deplibs_check_method=$lt_deplibs_check_method | |
18078 | ||
18079 | # Command to use when deplibs_check_method == "file_magic". | |
18080 | file_magic_cmd=$lt_file_magic_cmd | |
18081 | ||
18082 | # The archiver. | |
18083 | AR=$lt_AR | |
18084 | AR_FLAGS=$lt_AR_FLAGS | |
18085 | ||
18086 | # A symbol stripping program. | |
18087 | STRIP=$lt_STRIP | |
18088 | ||
18089 | # Commands used to install an old-style archive. | |
18090 | RANLIB=$lt_RANLIB | |
18091 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18092 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18093 | ||
18094 | # A C compiler. | |
18095 | LTCC=$lt_CC | |
18096 | ||
18097 | # LTCC compiler flags. | |
18098 | LTCFLAGS=$lt_CFLAGS | |
18099 | ||
18100 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18101 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18102 | ||
18103 | # Transform the output of nm in a proper C declaration. | |
18104 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18105 | ||
18106 | # Transform the output of nm in a C name address pair. | |
18107 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18108 | ||
18109 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
18110 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18111 | ||
18112 | # The name of the directory that contains temporary libtool files. | |
18113 | objdir=$objdir | |
18114 | ||
18115 | # Shell to use when invoking shell scripts. | |
18116 | SHELL=$lt_SHELL | |
18117 | ||
18118 | # An echo program that does not interpret backslashes. | |
18119 | ECHO=$lt_ECHO | |
18120 | ||
18121 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18122 | MAGIC_CMD=$MAGIC_CMD | |
18123 | ||
18124 | # Must we lock files when doing compilation? | |
18125 | need_locks=$lt_need_locks | |
18126 | ||
18127 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
18128 | DSYMUTIL=$lt_DSYMUTIL | |
18129 | ||
18130 | # Tool to change global to local symbols on Mac OS X. | |
18131 | NMEDIT=$lt_NMEDIT | |
18132 | ||
18133 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18134 | LIPO=$lt_LIPO | |
18135 | ||
18136 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18137 | OTOOL=$lt_OTOOL | |
18138 | ||
18139 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18140 | OTOOL64=$lt_OTOOL64 | |
18141 | ||
18142 | # Old archive suffix (normally "a"). | |
18143 | libext=$libext | |
18144 | ||
18145 | # Shared library suffix (normally ".so"). | |
18146 | shrext_cmds=$lt_shrext_cmds | |
18147 | ||
18148 | # The commands to extract the exported symbol list from a shared archive. | |
18149 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18150 | ||
18151 | # Variables whose values should be saved in libtool wrapper scripts and | |
18152 | # restored at link time. | |
18153 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
18154 | ||
18155 | # Do we need the "lib" prefix for modules? | |
18156 | need_lib_prefix=$need_lib_prefix | |
18157 | ||
18158 | # Do we need a version for libraries? | |
18159 | need_version=$need_version | |
18160 | ||
18161 | # Library versioning type. | |
18162 | version_type=$version_type | |
18163 | ||
18164 | # Shared library runtime path variable. | |
18165 | runpath_var=$runpath_var | |
18166 | ||
18167 | # Shared library path variable. | |
18168 | shlibpath_var=$shlibpath_var | |
18169 | ||
18170 | # Is shlibpath searched before the hard-coded library search path? | |
18171 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18172 | ||
18173 | # Format of library name prefix. | |
18174 | libname_spec=$lt_libname_spec | |
18175 | ||
18176 | # List of archive names. First name is the real one, the rest are links. | |
18177 | # The last name is the one that the linker finds with -lNAME | |
18178 | library_names_spec=$lt_library_names_spec | |
18179 | ||
18180 | # The coded name of the library, if different from the real name. | |
18181 | soname_spec=$lt_soname_spec | |
18182 | ||
18183 | # Command to use after installation of a shared archive. | |
18184 | postinstall_cmds=$lt_postinstall_cmds | |
18185 | ||
18186 | # Command to use after uninstallation of a shared archive. | |
18187 | postuninstall_cmds=$lt_postuninstall_cmds | |
18188 | ||
18189 | # Commands used to finish a libtool library installation in a directory. | |
18190 | finish_cmds=$lt_finish_cmds | |
18191 | ||
18192 | # As "finish_cmds", except a single script fragment to be evaled but | |
18193 | # not shown. | |
18194 | finish_eval=$lt_finish_eval | |
18195 | ||
18196 | # Whether we should hardcode library paths into libraries. | |
18197 | hardcode_into_libs=$hardcode_into_libs | |
18198 | ||
18199 | # Compile-time system search path for libraries. | |
18200 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18201 | ||
18202 | # Run-time system search path for libraries. | |
18203 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18204 | ||
18205 | # Whether dlopen is supported. | |
18206 | dlopen_support=$enable_dlopen | |
18207 | ||
18208 | # Whether dlopen of programs is supported. | |
18209 | dlopen_self=$enable_dlopen_self | |
18210 | ||
18211 | # Whether dlopen of statically linked programs is supported. | |
18212 | dlopen_self_static=$enable_dlopen_self_static | |
18213 | ||
18214 | # Commands to strip libraries. | |
18215 | old_striplib=$lt_old_striplib | |
18216 | striplib=$lt_striplib | |
18217 | ||
18218 | ||
18219 | # The linker used to build libraries. | |
18220 | LD=$lt_LD | |
18221 | ||
18222 | # Commands used to build an old-style archive. | |
18223 | old_archive_cmds=$lt_old_archive_cmds | |
18224 | ||
18225 | # A language specific compiler. | |
18226 | CC=$lt_compiler | |
18227 | ||
18228 | # Is the compiler the GNU compiler? | |
18229 | with_gcc=$GCC | |
18230 | ||
18231 | # Compiler flag to turn off builtin functions. | |
18232 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18233 | ||
18234 | # How to pass a linker flag through the compiler. | |
18235 | wl=$lt_lt_prog_compiler_wl | |
18236 | ||
18237 | # Additional compiler flags for building library objects. | |
18238 | pic_flag=$lt_lt_prog_compiler_pic | |
18239 | ||
18240 | # Compiler flag to prevent dynamic linking. | |
18241 | link_static_flag=$lt_lt_prog_compiler_static | |
18242 | ||
18243 | # Does compiler simultaneously support -c and -o options? | |
18244 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18245 | ||
18246 | # Whether or not to add -lc for building shared libraries. | |
18247 | build_libtool_need_lc=$archive_cmds_need_lc | |
18248 | ||
18249 | # Whether or not to disallow shared libs when runtime libs are static. | |
18250 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18251 | ||
18252 | # Compiler flag to allow reflexive dlopens. | |
18253 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18254 | ||
18255 | # Compiler flag to generate shared objects directly from archives. | |
18256 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18257 | ||
18258 | # Whether the compiler copes with passing no objects directly. | |
18259 | compiler_needs_object=$lt_compiler_needs_object | |
18260 | ||
18261 | # Create an old-style archive from a shared archive. | |
18262 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18263 | ||
18264 | # Create a temporary old-style archive to link instead of a shared archive. | |
18265 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18266 | ||
18267 | # Commands used to build a shared archive. | |
18268 | archive_cmds=$lt_archive_cmds | |
18269 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18270 | ||
18271 | # Commands used to build a loadable module if different from building | |
18272 | # a shared archive. | |
18273 | module_cmds=$lt_module_cmds | |
18274 | module_expsym_cmds=$lt_module_expsym_cmds | |
18275 | ||
18276 | # Whether we are building with GNU ld or not. | |
18277 | with_gnu_ld=$lt_with_gnu_ld | |
18278 | ||
18279 | # Flag that allows shared libraries with undefined symbols to be built. | |
18280 | allow_undefined_flag=$lt_allow_undefined_flag | |
18281 | ||
18282 | # Flag that enforces no undefined symbols. | |
18283 | no_undefined_flag=$lt_no_undefined_flag | |
18284 | ||
18285 | # Flag to hardcode \$libdir into a binary during linking. | |
18286 | # This must work even if \$libdir does not exist | |
18287 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18288 | ||
18289 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18290 | # during linking. This must work even if \$libdir does not exist. | |
18291 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
18292 | ||
18293 | # Whether we need a single "-rpath" flag with a separated argument. | |
18294 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18295 | ||
18296 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18297 | # DIR into the resulting binary. | |
18298 | hardcode_direct=$hardcode_direct | |
18299 | ||
18300 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18301 | # DIR into the resulting binary and the resulting library dependency is | |
18302 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18303 | # library is relocated. | |
18304 | hardcode_direct_absolute=$hardcode_direct_absolute | |
18305 | ||
18306 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18307 | # into the resulting binary. | |
18308 | hardcode_minus_L=$hardcode_minus_L | |
18309 | ||
18310 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18311 | # into the resulting binary. | |
18312 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18313 | ||
18314 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18315 | # into the library and all subsequent libraries and executables linked | |
18316 | # against it. | |
18317 | hardcode_automatic=$hardcode_automatic | |
18318 | ||
18319 | # Set to yes if linker adds runtime paths of dependent libraries | |
18320 | # to runtime path list. | |
18321 | inherit_rpath=$inherit_rpath | |
18322 | ||
18323 | # Whether libtool must link a program against all its dependency libraries. | |
18324 | link_all_deplibs=$link_all_deplibs | |
18325 | ||
18326 | # Fix the shell variable \$srcfile for the compiler. | |
18327 | fix_srcfile_path=$lt_fix_srcfile_path | |
18328 | ||
18329 | # Set to "yes" if exported symbols are required. | |
18330 | always_export_symbols=$always_export_symbols | |
18331 | ||
18332 | # The commands to list exported symbols. | |
18333 | export_symbols_cmds=$lt_export_symbols_cmds | |
18334 | ||
18335 | # Symbols that should not be listed in the preloaded symbols. | |
18336 | exclude_expsyms=$lt_exclude_expsyms | |
18337 | ||
18338 | # Symbols that must always be exported. | |
18339 | include_expsyms=$lt_include_expsyms | |
18340 | ||
18341 | # Commands necessary for linking programs (against libraries) with templates. | |
18342 | prelink_cmds=$lt_prelink_cmds | |
18343 | ||
18344 | # Specify filename containing input files. | |
18345 | file_list_spec=$lt_file_list_spec | |
18346 | ||
18347 | # How to hardcode a shared library path into an executable. | |
18348 | hardcode_action=$hardcode_action | |
18349 | ||
18350 | # The directories searched by this compiler when creating a shared library. | |
18351 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
18352 | ||
18353 | # Dependencies to place before and after the objects being linked to | |
18354 | # create a shared library. | |
18355 | predep_objects=$lt_predep_objects | |
18356 | postdep_objects=$lt_postdep_objects | |
18357 | predeps=$lt_predeps | |
18358 | postdeps=$lt_postdeps | |
18359 | ||
18360 | # The library search path used internally by the compiler when linking | |
18361 | # a shared library. | |
18362 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
18363 | ||
18364 | # ### END LIBTOOL CONFIG | |
18365 | ||
18366 | _LT_EOF | |
18367 | ||
18368 | case $host_os in | |
18369 | aix3*) | |
18370 | cat <<\_LT_EOF >> "$cfgfile" | |
18371 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18372 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18373 | # vanish in a puff of smoke. | |
18374 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18375 | COLLECT_NAMES= | |
18376 | export COLLECT_NAMES | |
18377 | fi | |
18378 | _LT_EOF | |
18379 | ;; | |
18380 | esac | |
18381 | ||
18382 | ||
18383 | ltmain="$ac_aux_dir/ltmain.sh" | |
18384 | ||
18385 | ||
18386 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18387 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18388 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18389 | # is reportedly fixed, but why not run on old versions too? | |
18390 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
18391 | || (rm -f "$cfgfile"; exit 1) | |
18392 | ||
18393 | case $xsi_shell in | |
18394 | yes) | |
18395 | cat << \_LT_EOF >> "$cfgfile" | |
18396 | ||
18397 | # func_dirname file append nondir_replacement | |
18398 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18399 | # otherwise set result to NONDIR_REPLACEMENT. | |
18400 | func_dirname () | |
18401 | { | |
18402 | case ${1} in | |
18403 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18404 | * ) func_dirname_result="${3}" ;; | |
18405 | esac | |
18406 | } | |
18407 | ||
18408 | # func_basename file | |
18409 | func_basename () | |
18410 | { | |
18411 | func_basename_result="${1##*/}" | |
18412 | } | |
18413 | ||
18414 | # func_dirname_and_basename file append nondir_replacement | |
18415 | # perform func_basename and func_dirname in a single function | |
18416 | # call: | |
18417 | # dirname: Compute the dirname of FILE. If nonempty, | |
18418 | # add APPEND to the result, otherwise set result | |
18419 | # to NONDIR_REPLACEMENT. | |
18420 | # value returned in "$func_dirname_result" | |
18421 | # basename: Compute filename of FILE. | |
18422 | # value retuned in "$func_basename_result" | |
18423 | # Implementation must be kept synchronized with func_dirname | |
18424 | # and func_basename. For efficiency, we do not delegate to | |
18425 | # those functions but instead duplicate the functionality here. | |
18426 | func_dirname_and_basename () | |
18427 | { | |
18428 | case ${1} in | |
18429 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18430 | * ) func_dirname_result="${3}" ;; | |
18431 | esac | |
18432 | func_basename_result="${1##*/}" | |
18433 | } | |
18434 | ||
18435 | # func_stripname prefix suffix name | |
18436 | # strip PREFIX and SUFFIX off of NAME. | |
18437 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18438 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18439 | # dot (in which case that matches only a dot). | |
18440 | func_stripname () | |
18441 | { | |
18442 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18443 | # positional parameters, so assign one to ordinary parameter first. | |
18444 | func_stripname_result=${3} | |
18445 | func_stripname_result=${func_stripname_result#"${1}"} | |
18446 | func_stripname_result=${func_stripname_result%"${2}"} | |
18447 | } | |
18448 | ||
18449 | # func_opt_split | |
18450 | func_opt_split () | |
18451 | { | |
18452 | func_opt_split_opt=${1%%=*} | |
18453 | func_opt_split_arg=${1#*=} | |
18454 | } | |
18455 | ||
18456 | # func_lo2o object | |
18457 | func_lo2o () | |
18458 | { | |
18459 | case ${1} in | |
18460 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18461 | *) func_lo2o_result=${1} ;; | |
18462 | esac | |
18463 | } | |
18464 | ||
18465 | # func_xform libobj-or-source | |
18466 | func_xform () | |
18467 | { | |
18468 | func_xform_result=${1%.*}.lo | |
18469 | } | |
18470 | ||
18471 | # func_arith arithmetic-term... | |
18472 | func_arith () | |
18473 | { | |
18474 | func_arith_result=$(( $* )) | |
18475 | } | |
18476 | ||
18477 | # func_len string | |
18478 | # STRING may not start with a hyphen. | |
18479 | func_len () | |
18480 | { | |
18481 | func_len_result=${#1} | |
18482 | } | |
18483 | ||
18484 | _LT_EOF | |
18485 | ;; | |
18486 | *) # Bourne compatible functions. | |
18487 | cat << \_LT_EOF >> "$cfgfile" | |
18488 | ||
18489 | # func_dirname file append nondir_replacement | |
18490 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18491 | # otherwise set result to NONDIR_REPLACEMENT. | |
18492 | func_dirname () | |
18493 | { | |
18494 | # Extract subdirectory from the argument. | |
18495 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
18496 | if test "X$func_dirname_result" = "X${1}"; then | |
18497 | func_dirname_result="${3}" | |
18498 | else | |
18499 | func_dirname_result="$func_dirname_result${2}" | |
18500 | fi | |
18501 | } | |
18502 | ||
18503 | # func_basename file | |
18504 | func_basename () | |
18505 | { | |
18506 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
18507 | } | |
18508 | ||
18509 | ||
18510 | # func_stripname prefix suffix name | |
18511 | # strip PREFIX and SUFFIX off of NAME. | |
18512 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18513 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18514 | # dot (in which case that matches only a dot). | |
18515 | # func_strip_suffix prefix name | |
18516 | func_stripname () | |
18517 | { | |
18518 | case ${2} in | |
18519 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
18520 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
18521 | *) func_stripname_result=`$ECHO "X${3}" \ | |
18522 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
18523 | esac | |
18524 | } | |
18525 | ||
18526 | # sed scripts: | |
18527 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18528 | my_sed_long_arg='1s/^-[^=]*=//' | |
18529 | ||
18530 | # func_opt_split | |
18531 | func_opt_split () | |
18532 | { | |
18533 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
18534 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
18535 | } | |
18536 | ||
18537 | # func_lo2o object | |
18538 | func_lo2o () | |
18539 | { | |
18540 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
18541 | } | |
18542 | ||
18543 | # func_xform libobj-or-source | |
18544 | func_xform () | |
18545 | { | |
18546 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
18547 | } | |
18548 | ||
18549 | # func_arith arithmetic-term... | |
18550 | func_arith () | |
18551 | { | |
18552 | func_arith_result=`expr "$@"` | |
18553 | } | |
18554 | ||
18555 | # func_len string | |
18556 | # STRING may not start with a hyphen. | |
18557 | func_len () | |
18558 | { | |
18559 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18560 | } | |
18561 | ||
18562 | _LT_EOF | |
18563 | esac | |
18564 | ||
18565 | case $lt_shell_append in | |
18566 | yes) | |
18567 | cat << \_LT_EOF >> "$cfgfile" | |
18568 | ||
18569 | # func_append var value | |
18570 | # Append VALUE to the end of shell variable VAR. | |
18571 | func_append () | |
18572 | { | |
18573 | eval "$1+=\$2" | |
18574 | } | |
18575 | _LT_EOF | |
18576 | ;; | |
18577 | *) | |
18578 | cat << \_LT_EOF >> "$cfgfile" | |
18579 | ||
18580 | # func_append var value | |
18581 | # Append VALUE to the end of shell variable VAR. | |
18582 | func_append () | |
18583 | { | |
18584 | eval "$1=\$$1\$2" | |
18585 | } | |
18586 | ||
18587 | _LT_EOF | |
18588 | ;; | |
18589 | esac | |
18590 | ||
18591 | ||
18592 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18593 | || (rm -f "$cfgfile"; exit 1) | |
18594 | ||
18595 | mv -f "$cfgfile" "$ofile" || | |
18596 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18597 | chmod +x "$ofile" | |
18598 | ||
18599 | ||
18600 | cat <<_LT_EOF >> "$ofile" | |
18601 | ||
18602 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
18603 | ||
18604 | # The linker used to build libraries. | |
18605 | LD=$lt_LD_CXX | |
18606 | ||
18607 | # Commands used to build an old-style archive. | |
18608 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
18609 | ||
18610 | # A language specific compiler. | |
18611 | CC=$lt_compiler_CXX | |
18612 | ||
18613 | # Is the compiler the GNU compiler? | |
18614 | with_gcc=$GCC_CXX | |
18615 | ||
18616 | # Compiler flag to turn off builtin functions. | |
18617 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
18618 | ||
18619 | # How to pass a linker flag through the compiler. | |
18620 | wl=$lt_lt_prog_compiler_wl_CXX | |
18621 | ||
18622 | # Additional compiler flags for building library objects. | |
18623 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
18624 | ||
18625 | # Compiler flag to prevent dynamic linking. | |
18626 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
18627 | ||
18628 | # Does compiler simultaneously support -c and -o options? | |
18629 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
18630 | ||
18631 | # Whether or not to add -lc for building shared libraries. | |
18632 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
18633 | ||
18634 | # Whether or not to disallow shared libs when runtime libs are static. | |
18635 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
18636 | ||
18637 | # Compiler flag to allow reflexive dlopens. | |
18638 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
18639 | ||
18640 | # Compiler flag to generate shared objects directly from archives. | |
18641 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
18642 | ||
18643 | # Whether the compiler copes with passing no objects directly. | |
18644 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
18645 | ||
18646 | # Create an old-style archive from a shared archive. | |
18647 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
18648 | ||
18649 | # Create a temporary old-style archive to link instead of a shared archive. | |
18650 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
18651 | ||
18652 | # Commands used to build a shared archive. | |
18653 | archive_cmds=$lt_archive_cmds_CXX | |
18654 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
18655 | ||
18656 | # Commands used to build a loadable module if different from building | |
18657 | # a shared archive. | |
18658 | module_cmds=$lt_module_cmds_CXX | |
18659 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
18660 | ||
18661 | # Whether we are building with GNU ld or not. | |
18662 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
18663 | ||
18664 | # Flag that allows shared libraries with undefined symbols to be built. | |
18665 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
18666 | ||
18667 | # Flag that enforces no undefined symbols. | |
18668 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
18669 | ||
18670 | # Flag to hardcode \$libdir into a binary during linking. | |
18671 | # This must work even if \$libdir does not exist | |
18672 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
18673 | ||
18674 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18675 | # during linking. This must work even if \$libdir does not exist. | |
18676 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
18677 | ||
18678 | # Whether we need a single "-rpath" flag with a separated argument. | |
18679 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
18680 | ||
18681 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18682 | # DIR into the resulting binary. | |
18683 | hardcode_direct=$hardcode_direct_CXX | |
18684 | ||
18685 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18686 | # DIR into the resulting binary and the resulting library dependency is | |
18687 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18688 | # library is relocated. | |
18689 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
18690 | ||
18691 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18692 | # into the resulting binary. | |
18693 | hardcode_minus_L=$hardcode_minus_L_CXX | |
18694 | ||
18695 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18696 | # into the resulting binary. | |
18697 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
18698 | ||
18699 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18700 | # into the library and all subsequent libraries and executables linked | |
18701 | # against it. | |
18702 | hardcode_automatic=$hardcode_automatic_CXX | |
18703 | ||
18704 | # Set to yes if linker adds runtime paths of dependent libraries | |
18705 | # to runtime path list. | |
18706 | inherit_rpath=$inherit_rpath_CXX | |
18707 | ||
18708 | # Whether libtool must link a program against all its dependency libraries. | |
18709 | link_all_deplibs=$link_all_deplibs_CXX | |
18710 | ||
18711 | # Fix the shell variable \$srcfile for the compiler. | |
18712 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
18713 | ||
18714 | # Set to "yes" if exported symbols are required. | |
18715 | always_export_symbols=$always_export_symbols_CXX | |
18716 | ||
18717 | # The commands to list exported symbols. | |
18718 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
18719 | ||
18720 | # Symbols that should not be listed in the preloaded symbols. | |
18721 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
18722 | ||
18723 | # Symbols that must always be exported. | |
18724 | include_expsyms=$lt_include_expsyms_CXX | |
18725 | ||
18726 | # Commands necessary for linking programs (against libraries) with templates. | |
18727 | prelink_cmds=$lt_prelink_cmds_CXX | |
18728 | ||
18729 | # Specify filename containing input files. | |
18730 | file_list_spec=$lt_file_list_spec_CXX | |
18731 | ||
18732 | # How to hardcode a shared library path into an executable. | |
18733 | hardcode_action=$hardcode_action_CXX | |
18734 | ||
18735 | # The directories searched by this compiler when creating a shared library. | |
18736 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
18737 | ||
18738 | # Dependencies to place before and after the objects being linked to | |
18739 | # create a shared library. | |
18740 | predep_objects=$lt_predep_objects_CXX | |
18741 | postdep_objects=$lt_postdep_objects_CXX | |
18742 | predeps=$lt_predeps_CXX | |
18743 | postdeps=$lt_postdeps_CXX | |
18744 | ||
18745 | # The library search path used internally by the compiler when linking | |
18746 | # a shared library. | |
18747 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
18748 | ||
18749 | # ### END LIBTOOL TAG CONFIG: CXX | |
18750 | _LT_EOF | |
18751 | ||
18752 | ;; | |
18753 | ||
18754 | esac | |
18755 | done # for ac_tag | |
18756 | ||
18757 | ||
18758 | as_fn_exit 0 | |
18759 | _ACEOF | |
18760 | ac_clean_files=$ac_clean_files_save | |
18761 | ||
18762 | test $ac_write_fail = 0 || | |
18763 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
18764 | ||
18765 | ||
18766 | # configure is writing to config.log, and then calls config.status. | |
18767 | # config.status does its own redirection, appending to config.log. | |
18768 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18769 | # by configure, so config.status won't be able to write to it; its | |
18770 | # output is simply discarded. So we exec the FD to /dev/null, | |
18771 | # effectively closing config.log, so it can be properly (re)opened and | |
18772 | # appended to by config.status. When coming back to configure, we | |
18773 | # need to make the FD available again. | |
18774 | if test "$no_create" != yes; then | |
18775 | ac_cs_success=: | |
18776 | ac_config_status_args= | |
18777 | test "$silent" = yes && | |
18778 | ac_config_status_args="$ac_config_status_args --quiet" | |
18779 | exec 5>/dev/null | |
18780 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18781 | exec 5>>config.log | |
18782 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18783 | # would make configure fail if this is the last instruction. | |
18784 | $ac_cs_success || as_fn_exit $? | |
18785 | fi | |
18786 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
18787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18788 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18789 | fi | |
18790 |