]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69 for Cycript 0.9. | |
4 | # | |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | # | |
14 | # Copyright (C) 2009-2014 Jay Freeman (saurik) | |
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 | as_myself= | |
95 | case $0 in #(( | |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 | done | |
104 | IFS=$as_save_IFS | |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | # Use a proper internal environment variable to ensure we don't fall | |
140 | # into an infinite loop, continuously re-executing ourselves. | |
141 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
142 | _as_can_reexec=no; export _as_can_reexec; | |
143 | # We cannot yet assume a decent shell, so we have to provide a | |
144 | # neutralization value for shells without unset; and this also | |
145 | # works around shells that cannot unset nonexistent variables. | |
146 | # Preserve -v and -x to the replacement shell. | |
147 | BASH_ENV=/dev/null | |
148 | ENV=/dev/null | |
149 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
150 | case $- in # (((( | |
151 | *v*x* | *x*v* ) as_opts=-vx ;; | |
152 | *v* ) as_opts=-v ;; | |
153 | *x* ) as_opts=-x ;; | |
154 | * ) as_opts= ;; | |
155 | esac | |
156 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
157 | # Admittedly, this is quite paranoid, since all the known shells bail | |
158 | # out after a failed `exec'. | |
159 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
160 | as_fn_exit 255 | |
161 | fi | |
162 | # We don't want this to propagate to other subprocesses. | |
163 | { _as_can_reexec=; unset _as_can_reexec;} | |
164 | if test "x$CONFIG_SHELL" = x; then | |
165 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
166 | emulate sh | |
167 | NULLCMD=: | |
168 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
169 | # is contrary to our usage. Disable this feature. | |
170 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
171 | setopt NO_GLOB_SUBST | |
172 | else | |
173 | case \`(set -o) 2>/dev/null\` in #( | |
174 | *posix*) : | |
175 | set -o posix ;; #( | |
176 | *) : | |
177 | ;; | |
178 | esac | |
179 | fi | |
180 | " | |
181 | as_required="as_fn_return () { (exit \$1); } | |
182 | as_fn_success () { as_fn_return 0; } | |
183 | as_fn_failure () { as_fn_return 1; } | |
184 | as_fn_ret_success () { return 0; } | |
185 | as_fn_ret_failure () { return 1; } | |
186 | ||
187 | exitcode=0 | |
188 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
189 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
190 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
191 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
192 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
193 | ||
194 | else | |
195 | exitcode=1; echo positional parameters were not saved. | |
196 | fi | |
197 | test x\$exitcode = x0 || exit 1 | |
198 | test -x / || exit 1" | |
199 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
200 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
201 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
202 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
203 | ||
204 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
205 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
208 | PATH=/empty FPATH=/empty; export PATH FPATH | |
209 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
210 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
211 | test \$(( 1 + 1 )) = 2 || exit 1" | |
212 | if (eval "$as_required") 2>/dev/null; then : | |
213 | as_have_required=yes | |
214 | else | |
215 | as_have_required=no | |
216 | fi | |
217 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
218 | ||
219 | else | |
220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
221 | as_found=false | |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
223 | do | |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
226 | as_found=: | |
227 | case $as_dir in #( | |
228 | /*) | |
229 | for as_base in sh bash ksh sh5; do | |
230 | # Try only shells that exist, to save several forks. | |
231 | as_shell=$as_dir/$as_base | |
232 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | CONFIG_SHELL=$as_shell as_have_required=yes | |
235 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
236 | break 2 | |
237 | fi | |
238 | fi | |
239 | done;; | |
240 | esac | |
241 | as_found=false | |
242 | done | |
243 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
244 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
245 | CONFIG_SHELL=$SHELL as_have_required=yes | |
246 | fi; } | |
247 | IFS=$as_save_IFS | |
248 | ||
249 | ||
250 | if test "x$CONFIG_SHELL" != x; then : | |
251 | export CONFIG_SHELL | |
252 | # We cannot yet assume a decent shell, so we have to provide a | |
253 | # neutralization value for shells without unset; and this also | |
254 | # works around shells that cannot unset nonexistent variables. | |
255 | # Preserve -v and -x to the replacement shell. | |
256 | BASH_ENV=/dev/null | |
257 | ENV=/dev/null | |
258 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
259 | case $- in # (((( | |
260 | *v*x* | *x*v* ) as_opts=-vx ;; | |
261 | *v* ) as_opts=-v ;; | |
262 | *x* ) as_opts=-x ;; | |
263 | * ) as_opts= ;; | |
264 | esac | |
265 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
266 | # Admittedly, this is quite paranoid, since all the known shells bail | |
267 | # out after a failed `exec'. | |
268 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
269 | exit 255 | |
270 | fi | |
271 | ||
272 | if test x$as_have_required = xno; then : | |
273 | $as_echo "$0: This script requires a shell more modern than all" | |
274 | $as_echo "$0: the shells that I found on your system." | |
275 | if test x${ZSH_VERSION+set} = xset ; then | |
276 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
277 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
278 | else | |
279 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
280 | $0: about your system, including any error possibly output | |
281 | $0: before this message. Then install a modern shell, or | |
282 | $0: manually run the script under such a shell if you do | |
283 | $0: have one." | |
284 | fi | |
285 | exit 1 | |
286 | fi | |
287 | fi | |
288 | fi | |
289 | SHELL=${CONFIG_SHELL-/bin/sh} | |
290 | export SHELL | |
291 | # Unset more variables known to interfere with behavior of common tools. | |
292 | CLICOLOR_FORCE= GREP_OPTIONS= | |
293 | unset CLICOLOR_FORCE GREP_OPTIONS | |
294 | ||
295 | ## --------------------- ## | |
296 | ## M4sh Shell Functions. ## | |
297 | ## --------------------- ## | |
298 | # as_fn_unset VAR | |
299 | # --------------- | |
300 | # Portably unset VAR. | |
301 | as_fn_unset () | |
302 | { | |
303 | { eval $1=; unset $1;} | |
304 | } | |
305 | as_unset=as_fn_unset | |
306 | ||
307 | # as_fn_set_status STATUS | |
308 | # ----------------------- | |
309 | # Set $? to STATUS, without forking. | |
310 | as_fn_set_status () | |
311 | { | |
312 | return $1 | |
313 | } # as_fn_set_status | |
314 | ||
315 | # as_fn_exit STATUS | |
316 | # ----------------- | |
317 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
318 | as_fn_exit () | |
319 | { | |
320 | set +e | |
321 | as_fn_set_status $1 | |
322 | exit $1 | |
323 | } # as_fn_exit | |
324 | ||
325 | # as_fn_mkdir_p | |
326 | # ------------- | |
327 | # Create "$as_dir" as a directory, including parents if necessary. | |
328 | as_fn_mkdir_p () | |
329 | { | |
330 | ||
331 | case $as_dir in #( | |
332 | -*) as_dir=./$as_dir;; | |
333 | esac | |
334 | test -d "$as_dir" || eval $as_mkdir_p || { | |
335 | as_dirs= | |
336 | while :; do | |
337 | case $as_dir in #( | |
338 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
339 | *) as_qdir=$as_dir;; | |
340 | esac | |
341 | as_dirs="'$as_qdir' $as_dirs" | |
342 | as_dir=`$as_dirname -- "$as_dir" || | |
343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
344 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
345 | X"$as_dir" : 'X\(//\)$' \| \ | |
346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
347 | $as_echo X"$as_dir" | | |
348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
349 | s//\1/ | |
350 | q | |
351 | } | |
352 | /^X\(\/\/\)[^/].*/{ | |
353 | s//\1/ | |
354 | q | |
355 | } | |
356 | /^X\(\/\/\)$/{ | |
357 | s//\1/ | |
358 | q | |
359 | } | |
360 | /^X\(\/\).*/{ | |
361 | s//\1/ | |
362 | q | |
363 | } | |
364 | s/.*/./; q'` | |
365 | test -d "$as_dir" && break | |
366 | done | |
367 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
368 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
369 | ||
370 | ||
371 | } # as_fn_mkdir_p | |
372 | ||
373 | # as_fn_executable_p FILE | |
374 | # ----------------------- | |
375 | # Test if FILE is an executable regular file. | |
376 | as_fn_executable_p () | |
377 | { | |
378 | test -f "$1" && test -x "$1" | |
379 | } # as_fn_executable_p | |
380 | # as_fn_append VAR VALUE | |
381 | # ---------------------- | |
382 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
383 | # advantage of any shell optimizations that allow amortized linear growth over | |
384 | # repeated appends, instead of the typical quadratic growth present in naive | |
385 | # implementations. | |
386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
387 | eval 'as_fn_append () | |
388 | { | |
389 | eval $1+=\$2 | |
390 | }' | |
391 | else | |
392 | as_fn_append () | |
393 | { | |
394 | eval $1=\$$1\$2 | |
395 | } | |
396 | fi # as_fn_append | |
397 | ||
398 | # as_fn_arith ARG... | |
399 | # ------------------ | |
400 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
401 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
402 | # must be portable across $(()) and expr. | |
403 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
404 | eval 'as_fn_arith () | |
405 | { | |
406 | as_val=$(( $* )) | |
407 | }' | |
408 | else | |
409 | as_fn_arith () | |
410 | { | |
411 | as_val=`expr "$@" || test $? -eq 1` | |
412 | } | |
413 | fi # as_fn_arith | |
414 | ||
415 | ||
416 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
417 | # ---------------------------------------- | |
418 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
419 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
420 | # script with STATUS, using 1 if that was 0. | |
421 | as_fn_error () | |
422 | { | |
423 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
424 | if test "$4"; then | |
425 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
426 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
427 | fi | |
428 | $as_echo "$as_me: error: $2" >&2 | |
429 | as_fn_exit $as_status | |
430 | } # as_fn_error | |
431 | ||
432 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
433 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
434 | as_expr=expr | |
435 | else | |
436 | as_expr=false | |
437 | fi | |
438 | ||
439 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
440 | as_basename=basename | |
441 | else | |
442 | as_basename=false | |
443 | fi | |
444 | ||
445 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
446 | as_dirname=dirname | |
447 | else | |
448 | as_dirname=false | |
449 | fi | |
450 | ||
451 | as_me=`$as_basename -- "$0" || | |
452 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
453 | X"$0" : 'X\(//\)$' \| \ | |
454 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
455 | $as_echo X/"$0" | | |
456 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
457 | s//\1/ | |
458 | q | |
459 | } | |
460 | /^X\/\(\/\/\)$/{ | |
461 | s//\1/ | |
462 | q | |
463 | } | |
464 | /^X\/\(\/\).*/{ | |
465 | s//\1/ | |
466 | q | |
467 | } | |
468 | s/.*/./; q'` | |
469 | ||
470 | # Avoid depending upon Character Ranges. | |
471 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
472 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
473 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
474 | as_cr_digits='0123456789' | |
475 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
476 | ||
477 | ||
478 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
479 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
480 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
481 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
482 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
483 | sed -n ' | |
484 | p | |
485 | /[$]LINENO/= | |
486 | ' <$as_myself | | |
487 | sed ' | |
488 | s/[$]LINENO.*/&-/ | |
489 | t lineno | |
490 | b | |
491 | :lineno | |
492 | N | |
493 | :loop | |
494 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
495 | t loop | |
496 | s/-\n.*// | |
497 | ' >$as_me.lineno && | |
498 | chmod +x "$as_me.lineno" || | |
499 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
500 | ||
501 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
502 | # already done that, so ensure we don't try to do so again and fall | |
503 | # in an infinite loop. This has already happened in practice. | |
504 | _as_can_reexec=no; export _as_can_reexec | |
505 | # Don't try to exec as it changes $[0], causing all sort of problems | |
506 | # (the dirname of $[0] is not the place where we might find the | |
507 | # original and so on. Autoconf is especially sensitive to this). | |
508 | . "./$as_me.lineno" | |
509 | # Exit status is that of the last command. | |
510 | exit | |
511 | } | |
512 | ||
513 | ECHO_C= ECHO_N= ECHO_T= | |
514 | case `echo -n x` in #((((( | |
515 | -n*) | |
516 | case `echo 'xy\c'` in | |
517 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
518 | xy) ECHO_C='\c';; | |
519 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
520 | ECHO_T=' ';; | |
521 | esac;; | |
522 | *) | |
523 | ECHO_N='-n';; | |
524 | esac | |
525 | ||
526 | rm -f conf$$ conf$$.exe conf$$.file | |
527 | if test -d conf$$.dir; then | |
528 | rm -f conf$$.dir/conf$$.file | |
529 | else | |
530 | rm -f conf$$.dir | |
531 | mkdir conf$$.dir 2>/dev/null | |
532 | fi | |
533 | if (echo >conf$$.file) 2>/dev/null; then | |
534 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
535 | as_ln_s='ln -s' | |
536 | # ... but there are two gotchas: | |
537 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
538 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
539 | # In both cases, we have to default to `cp -pR'. | |
540 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
541 | as_ln_s='cp -pR' | |
542 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
543 | as_ln_s=ln | |
544 | else | |
545 | as_ln_s='cp -pR' | |
546 | fi | |
547 | else | |
548 | as_ln_s='cp -pR' | |
549 | fi | |
550 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
551 | rmdir conf$$.dir 2>/dev/null | |
552 | ||
553 | if mkdir -p . 2>/dev/null; then | |
554 | as_mkdir_p='mkdir -p "$as_dir"' | |
555 | else | |
556 | test -d ./-p && rmdir ./-p | |
557 | as_mkdir_p=false | |
558 | fi | |
559 | ||
560 | as_test_x='test -x' | |
561 | as_executable_p=as_fn_executable_p | |
562 | ||
563 | # Sed expression to map a string onto a valid CPP name. | |
564 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
565 | ||
566 | # Sed expression to map a string onto a valid variable name. | |
567 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
569 | SHELL=${CONFIG_SHELL-/bin/sh} | |
570 | ||
571 | ||
572 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
573 | exec 6>&1 | |
574 | ||
575 | # Name of the host. | |
576 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
577 | # so uname gets run too. | |
578 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
579 | ||
580 | # | |
581 | # Initializations. | |
582 | # | |
583 | ac_default_prefix=/usr/local | |
584 | ac_clean_files= | |
585 | ac_config_libobj_dir=. | |
586 | LIBOBJS= | |
587 | cross_compiling=no | |
588 | subdirs= | |
589 | MFLAGS= | |
590 | MAKEFLAGS= | |
591 | ||
592 | # Identity of this package. | |
593 | PACKAGE_NAME='Cycript' | |
594 | PACKAGE_TARNAME='cycript' | |
595 | PACKAGE_VERSION='0.9' | |
596 | PACKAGE_STRING='Cycript 0.9' | |
597 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
598 | PACKAGE_URL='http://www.cycript.org/' | |
599 | ||
600 | ac_unique_file="Console.cpp" | |
601 | # Factoring default headers for most tests. | |
602 | ac_includes_default="\ | |
603 | #include <stdio.h> | |
604 | #ifdef HAVE_SYS_TYPES_H | |
605 | # include <sys/types.h> | |
606 | #endif | |
607 | #ifdef HAVE_SYS_STAT_H | |
608 | # include <sys/stat.h> | |
609 | #endif | |
610 | #ifdef STDC_HEADERS | |
611 | # include <stdlib.h> | |
612 | # include <stddef.h> | |
613 | #else | |
614 | # ifdef HAVE_STDLIB_H | |
615 | # include <stdlib.h> | |
616 | # endif | |
617 | #endif | |
618 | #ifdef HAVE_STRING_H | |
619 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
620 | # include <memory.h> | |
621 | # endif | |
622 | # include <string.h> | |
623 | #endif | |
624 | #ifdef HAVE_STRINGS_H | |
625 | # include <strings.h> | |
626 | #endif | |
627 | #ifdef HAVE_INTTYPES_H | |
628 | # include <inttypes.h> | |
629 | #endif | |
630 | #ifdef HAVE_STDINT_H | |
631 | # include <stdint.h> | |
632 | #endif | |
633 | #ifdef HAVE_UNISTD_H | |
634 | # include <unistd.h> | |
635 | #endif" | |
636 | ||
637 | ac_subst_vars='am__EXEEXT_FALSE | |
638 | am__EXEEXT_TRUE | |
639 | LTLIBOBJS | |
640 | LIBOBJS | |
641 | CY_MACH_FALSE | |
642 | CY_MACH_TRUE | |
643 | CY_MACH | |
644 | CY_ATTACH_GROUP | |
645 | ac_ct__OTOOL | |
646 | _OTOOL | |
647 | ac_ct__NM | |
648 | _NM | |
649 | ac_ct__LIPO | |
650 | _LIPO | |
651 | SO | |
652 | LTFLAGS | |
653 | LTLIBGCC | |
654 | LTLIBTERMCAP | |
655 | LTLIBREADLINE | |
656 | CY_OBJECTIVEC_FALSE | |
657 | CY_OBJECTIVEC_TRUE | |
658 | CY_JAVA_FALSE | |
659 | CY_JAVA_TRUE | |
660 | LTOBJECTIVEC | |
661 | GNUSTEP_CONFIG | |
662 | CY_OBJECTIVEC | |
663 | LTJAVA | |
664 | CY_JAVA | |
665 | LTLIBFFI | |
666 | LIBFFI_LIBS | |
667 | LIBFFI_CFLAGS | |
668 | CY_EXECUTE_FALSE | |
669 | CY_EXECUTE_TRUE | |
670 | CY_CONSOLE_FALSE | |
671 | CY_CONSOLE_TRUE | |
672 | LTJAVASCRIPTCORE | |
673 | WEBKIT_LIBS | |
674 | WEBKIT_CFLAGS | |
675 | CY_EXECUTE | |
676 | CY_ARCH | |
677 | GNUTAR | |
678 | GPERF | |
679 | FLEX | |
680 | BISON | |
681 | TIME | |
682 | GIT | |
683 | PKG_CONFIG_LIBDIR | |
684 | PKG_CONFIG_PATH | |
685 | PKG_CONFIG | |
686 | HAVE_CXX11 | |
687 | CXXCPP | |
688 | CPP | |
689 | LT_SYS_LIBRARY_PATH | |
690 | OTOOL64 | |
691 | OTOOL | |
692 | LIPO | |
693 | NMEDIT | |
694 | DSYMUTIL | |
695 | MANIFEST_TOOL | |
696 | RANLIB | |
697 | DLLTOOL | |
698 | OBJDUMP | |
699 | LN_S | |
700 | NM | |
701 | ac_ct_DUMPBIN | |
702 | DUMPBIN | |
703 | LD | |
704 | FGREP | |
705 | EGREP | |
706 | GREP | |
707 | SED | |
708 | host_os | |
709 | host_vendor | |
710 | host_cpu | |
711 | host | |
712 | build_os | |
713 | build_vendor | |
714 | build_cpu | |
715 | build | |
716 | LIBTOOL | |
717 | ac_ct_AR | |
718 | AR | |
719 | am__fastdepOBJCXX_FALSE | |
720 | am__fastdepOBJCXX_TRUE | |
721 | OBJCXXDEPMODE | |
722 | ac_ct_OBJCXX | |
723 | OBJCXXFLAGS | |
724 | OBJCXX | |
725 | am__fastdepCXX_FALSE | |
726 | am__fastdepCXX_TRUE | |
727 | CXXDEPMODE | |
728 | ac_ct_CXX | |
729 | CXXFLAGS | |
730 | CXX | |
731 | am__fastdepCC_FALSE | |
732 | am__fastdepCC_TRUE | |
733 | CCDEPMODE | |
734 | am__nodep | |
735 | AMDEPBACKSLASH | |
736 | AMDEP_FALSE | |
737 | AMDEP_TRUE | |
738 | am__quote | |
739 | am__include | |
740 | DEPDIR | |
741 | OBJEXT | |
742 | EXEEXT | |
743 | ac_ct_CC | |
744 | CPPFLAGS | |
745 | LDFLAGS | |
746 | CFLAGS | |
747 | CC | |
748 | MAINT | |
749 | MAINTAINER_MODE_FALSE | |
750 | MAINTAINER_MODE_TRUE | |
751 | AM_BACKSLASH | |
752 | AM_DEFAULT_VERBOSITY | |
753 | AM_DEFAULT_V | |
754 | AM_V | |
755 | am__untar | |
756 | am__tar | |
757 | AMTAR | |
758 | am__leading_dot | |
759 | SET_MAKE | |
760 | AWK | |
761 | mkdir_p | |
762 | MKDIR_P | |
763 | INSTALL_STRIP_PROGRAM | |
764 | STRIP | |
765 | install_sh | |
766 | MAKEINFO | |
767 | AUTOHEADER | |
768 | AUTOMAKE | |
769 | AUTOCONF | |
770 | ACLOCAL | |
771 | VERSION | |
772 | PACKAGE | |
773 | CYGPATH_W | |
774 | am__isrc | |
775 | INSTALL_DATA | |
776 | INSTALL_SCRIPT | |
777 | INSTALL_PROGRAM | |
778 | target_alias | |
779 | host_alias | |
780 | build_alias | |
781 | LIBS | |
782 | ECHO_T | |
783 | ECHO_N | |
784 | ECHO_C | |
785 | DEFS | |
786 | mandir | |
787 | localedir | |
788 | libdir | |
789 | psdir | |
790 | pdfdir | |
791 | dvidir | |
792 | htmldir | |
793 | infodir | |
794 | docdir | |
795 | oldincludedir | |
796 | includedir | |
797 | localstatedir | |
798 | sharedstatedir | |
799 | sysconfdir | |
800 | datadir | |
801 | datarootdir | |
802 | libexecdir | |
803 | sbindir | |
804 | bindir | |
805 | program_transform_name | |
806 | prefix | |
807 | exec_prefix | |
808 | PACKAGE_URL | |
809 | PACKAGE_BUGREPORT | |
810 | PACKAGE_STRING | |
811 | PACKAGE_VERSION | |
812 | PACKAGE_TARNAME | |
813 | PACKAGE_NAME | |
814 | PATH_SEPARATOR | |
815 | SHELL' | |
816 | ac_subst_files='' | |
817 | ac_user_opts=' | |
818 | enable_option_checking | |
819 | enable_silent_rules | |
820 | enable_maintainer_mode | |
821 | enable_dependency_tracking | |
822 | enable_static | |
823 | enable_shared | |
824 | with_pic | |
825 | enable_fast_install | |
826 | with_aix_soname | |
827 | with_gnu_ld | |
828 | with_sysroot | |
829 | enable_libtool_lock | |
830 | enable_javascript | |
831 | enable_console | |
832 | ' | |
833 | ac_precious_vars='build_alias | |
834 | host_alias | |
835 | target_alias | |
836 | CC | |
837 | CFLAGS | |
838 | LDFLAGS | |
839 | LIBS | |
840 | CPPFLAGS | |
841 | CXX | |
842 | CXXFLAGS | |
843 | CCC | |
844 | OBJCXX | |
845 | OBJCXXFLAGS | |
846 | LT_SYS_LIBRARY_PATH | |
847 | CPP | |
848 | CXXCPP | |
849 | PKG_CONFIG | |
850 | PKG_CONFIG_PATH | |
851 | PKG_CONFIG_LIBDIR | |
852 | BISON | |
853 | FLEX | |
854 | GPERF | |
855 | GNUTAR | |
856 | WEBKIT_CFLAGS | |
857 | WEBKIT_LIBS | |
858 | LIBFFI_CFLAGS | |
859 | LIBFFI_LIBS | |
860 | GNUSTEP_CONFIG' | |
861 | ||
862 | ||
863 | # Initialize some variables set by options. | |
864 | ac_init_help= | |
865 | ac_init_version=false | |
866 | ac_unrecognized_opts= | |
867 | ac_unrecognized_sep= | |
868 | # The variables have the same names as the options, with | |
869 | # dashes changed to underlines. | |
870 | cache_file=/dev/null | |
871 | exec_prefix=NONE | |
872 | no_create= | |
873 | no_recursion= | |
874 | prefix=NONE | |
875 | program_prefix=NONE | |
876 | program_suffix=NONE | |
877 | program_transform_name=s,x,x, | |
878 | silent= | |
879 | site= | |
880 | srcdir= | |
881 | verbose= | |
882 | x_includes=NONE | |
883 | x_libraries=NONE | |
884 | ||
885 | # Installation directory options. | |
886 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
887 | # and all the variables that are supposed to be based on exec_prefix | |
888 | # by default will actually change. | |
889 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
890 | # (The list follows the same order as the GNU Coding Standards.) | |
891 | bindir='${exec_prefix}/bin' | |
892 | sbindir='${exec_prefix}/sbin' | |
893 | libexecdir='${exec_prefix}/libexec' | |
894 | datarootdir='${prefix}/share' | |
895 | datadir='${datarootdir}' | |
896 | sysconfdir='${prefix}/etc' | |
897 | sharedstatedir='${prefix}/com' | |
898 | localstatedir='${prefix}/var' | |
899 | includedir='${prefix}/include' | |
900 | oldincludedir='/usr/include' | |
901 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
902 | infodir='${datarootdir}/info' | |
903 | htmldir='${docdir}' | |
904 | dvidir='${docdir}' | |
905 | pdfdir='${docdir}' | |
906 | psdir='${docdir}' | |
907 | libdir='${exec_prefix}/lib' | |
908 | localedir='${datarootdir}/locale' | |
909 | mandir='${datarootdir}/man' | |
910 | ||
911 | ac_prev= | |
912 | ac_dashdash= | |
913 | for ac_option | |
914 | do | |
915 | # If the previous option needs an argument, assign it. | |
916 | if test -n "$ac_prev"; then | |
917 | eval $ac_prev=\$ac_option | |
918 | ac_prev= | |
919 | continue | |
920 | fi | |
921 | ||
922 | case $ac_option in | |
923 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
924 | *=) ac_optarg= ;; | |
925 | *) ac_optarg=yes ;; | |
926 | esac | |
927 | ||
928 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
929 | ||
930 | case $ac_dashdash$ac_option in | |
931 | --) | |
932 | ac_dashdash=yes ;; | |
933 | ||
934 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
935 | ac_prev=bindir ;; | |
936 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
937 | bindir=$ac_optarg ;; | |
938 | ||
939 | -build | --build | --buil | --bui | --bu) | |
940 | ac_prev=build_alias ;; | |
941 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
942 | build_alias=$ac_optarg ;; | |
943 | ||
944 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
945 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
946 | ac_prev=cache_file ;; | |
947 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
948 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
949 | cache_file=$ac_optarg ;; | |
950 | ||
951 | --config-cache | -C) | |
952 | cache_file=config.cache ;; | |
953 | ||
954 | -datadir | --datadir | --datadi | --datad) | |
955 | ac_prev=datadir ;; | |
956 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
957 | datadir=$ac_optarg ;; | |
958 | ||
959 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
960 | | --dataroo | --dataro | --datar) | |
961 | ac_prev=datarootdir ;; | |
962 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
963 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
964 | datarootdir=$ac_optarg ;; | |
965 | ||
966 | -disable-* | --disable-*) | |
967 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
968 | # Reject names that are not valid shell variable names. | |
969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
970 | as_fn_error $? "invalid feature name: $ac_useropt" | |
971 | ac_useropt_orig=$ac_useropt | |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
979 | esac | |
980 | eval enable_$ac_useropt=no ;; | |
981 | ||
982 | -docdir | --docdir | --docdi | --doc | --do) | |
983 | ac_prev=docdir ;; | |
984 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
985 | docdir=$ac_optarg ;; | |
986 | ||
987 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
988 | ac_prev=dvidir ;; | |
989 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
990 | dvidir=$ac_optarg ;; | |
991 | ||
992 | -enable-* | --enable-*) | |
993 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
994 | # Reject names that are not valid shell variable names. | |
995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
996 | as_fn_error $? "invalid feature name: $ac_useropt" | |
997 | ac_useropt_orig=$ac_useropt | |
998 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
999 | case $ac_user_opts in | |
1000 | *" | |
1001 | "enable_$ac_useropt" | |
1002 | "*) ;; | |
1003 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1004 | ac_unrecognized_sep=', ';; | |
1005 | esac | |
1006 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1007 | ||
1008 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1009 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1010 | | --exec | --exe | --ex) | |
1011 | ac_prev=exec_prefix ;; | |
1012 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1013 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1014 | | --exec=* | --exe=* | --ex=*) | |
1015 | exec_prefix=$ac_optarg ;; | |
1016 | ||
1017 | -gas | --gas | --ga | --g) | |
1018 | # Obsolete; use --with-gas. | |
1019 | with_gas=yes ;; | |
1020 | ||
1021 | -help | --help | --hel | --he | -h) | |
1022 | ac_init_help=long ;; | |
1023 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1024 | ac_init_help=recursive ;; | |
1025 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1026 | ac_init_help=short ;; | |
1027 | ||
1028 | -host | --host | --hos | --ho) | |
1029 | ac_prev=host_alias ;; | |
1030 | -host=* | --host=* | --hos=* | --ho=*) | |
1031 | host_alias=$ac_optarg ;; | |
1032 | ||
1033 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1034 | ac_prev=htmldir ;; | |
1035 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1036 | | --ht=*) | |
1037 | htmldir=$ac_optarg ;; | |
1038 | ||
1039 | -includedir | --includedir | --includedi | --included | --include \ | |
1040 | | --includ | --inclu | --incl | --inc) | |
1041 | ac_prev=includedir ;; | |
1042 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1043 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1044 | includedir=$ac_optarg ;; | |
1045 | ||
1046 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1047 | ac_prev=infodir ;; | |
1048 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1049 | infodir=$ac_optarg ;; | |
1050 | ||
1051 | -libdir | --libdir | --libdi | --libd) | |
1052 | ac_prev=libdir ;; | |
1053 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1054 | libdir=$ac_optarg ;; | |
1055 | ||
1056 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1057 | | --libexe | --libex | --libe) | |
1058 | ac_prev=libexecdir ;; | |
1059 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1060 | | --libexe=* | --libex=* | --libe=*) | |
1061 | libexecdir=$ac_optarg ;; | |
1062 | ||
1063 | -localedir | --localedir | --localedi | --localed | --locale) | |
1064 | ac_prev=localedir ;; | |
1065 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1066 | localedir=$ac_optarg ;; | |
1067 | ||
1068 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1069 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1070 | ac_prev=localstatedir ;; | |
1071 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1072 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1073 | localstatedir=$ac_optarg ;; | |
1074 | ||
1075 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1076 | ac_prev=mandir ;; | |
1077 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1078 | mandir=$ac_optarg ;; | |
1079 | ||
1080 | -nfp | --nfp | --nf) | |
1081 | # Obsolete; use --without-fp. | |
1082 | with_fp=no ;; | |
1083 | ||
1084 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1085 | | --no-cr | --no-c | -n) | |
1086 | no_create=yes ;; | |
1087 | ||
1088 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1089 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1090 | no_recursion=yes ;; | |
1091 | ||
1092 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1093 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1094 | | --oldin | --oldi | --old | --ol | --o) | |
1095 | ac_prev=oldincludedir ;; | |
1096 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1097 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1098 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1099 | oldincludedir=$ac_optarg ;; | |
1100 | ||
1101 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1102 | ac_prev=prefix ;; | |
1103 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1104 | prefix=$ac_optarg ;; | |
1105 | ||
1106 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1107 | | --program-pre | --program-pr | --program-p) | |
1108 | ac_prev=program_prefix ;; | |
1109 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1110 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1111 | program_prefix=$ac_optarg ;; | |
1112 | ||
1113 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1114 | | --program-suf | --program-su | --program-s) | |
1115 | ac_prev=program_suffix ;; | |
1116 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1117 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1118 | program_suffix=$ac_optarg ;; | |
1119 | ||
1120 | -program-transform-name | --program-transform-name \ | |
1121 | | --program-transform-nam | --program-transform-na \ | |
1122 | | --program-transform-n | --program-transform- \ | |
1123 | | --program-transform | --program-transfor \ | |
1124 | | --program-transfo | --program-transf \ | |
1125 | | --program-trans | --program-tran \ | |
1126 | | --progr-tra | --program-tr | --program-t) | |
1127 | ac_prev=program_transform_name ;; | |
1128 | -program-transform-name=* | --program-transform-name=* \ | |
1129 | | --program-transform-nam=* | --program-transform-na=* \ | |
1130 | | --program-transform-n=* | --program-transform-=* \ | |
1131 | | --program-transform=* | --program-transfor=* \ | |
1132 | | --program-transfo=* | --program-transf=* \ | |
1133 | | --program-trans=* | --program-tran=* \ | |
1134 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1135 | program_transform_name=$ac_optarg ;; | |
1136 | ||
1137 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1138 | ac_prev=pdfdir ;; | |
1139 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1140 | pdfdir=$ac_optarg ;; | |
1141 | ||
1142 | -psdir | --psdir | --psdi | --psd | --ps) | |
1143 | ac_prev=psdir ;; | |
1144 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1145 | psdir=$ac_optarg ;; | |
1146 | ||
1147 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1148 | | -silent | --silent | --silen | --sile | --sil) | |
1149 | silent=yes ;; | |
1150 | ||
1151 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1152 | ac_prev=sbindir ;; | |
1153 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1154 | | --sbi=* | --sb=*) | |
1155 | sbindir=$ac_optarg ;; | |
1156 | ||
1157 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1158 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1159 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1160 | | --sha | --sh) | |
1161 | ac_prev=sharedstatedir ;; | |
1162 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1163 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1164 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1165 | | --sha=* | --sh=*) | |
1166 | sharedstatedir=$ac_optarg ;; | |
1167 | ||
1168 | -site | --site | --sit) | |
1169 | ac_prev=site ;; | |
1170 | -site=* | --site=* | --sit=*) | |
1171 | site=$ac_optarg ;; | |
1172 | ||
1173 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1174 | ac_prev=srcdir ;; | |
1175 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1176 | srcdir=$ac_optarg ;; | |
1177 | ||
1178 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1179 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1180 | ac_prev=sysconfdir ;; | |
1181 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1182 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1183 | sysconfdir=$ac_optarg ;; | |
1184 | ||
1185 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1186 | ac_prev=target_alias ;; | |
1187 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1188 | target_alias=$ac_optarg ;; | |
1189 | ||
1190 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1191 | verbose=yes ;; | |
1192 | ||
1193 | -version | --version | --versio | --versi | --vers | -V) | |
1194 | ac_init_version=: ;; | |
1195 | ||
1196 | -with-* | --with-*) | |
1197 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1198 | # Reject names that are not valid shell variable names. | |
1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1200 | as_fn_error $? "invalid package name: $ac_useropt" | |
1201 | ac_useropt_orig=$ac_useropt | |
1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1203 | case $ac_user_opts in | |
1204 | *" | |
1205 | "with_$ac_useropt" | |
1206 | "*) ;; | |
1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1208 | ac_unrecognized_sep=', ';; | |
1209 | esac | |
1210 | eval with_$ac_useropt=\$ac_optarg ;; | |
1211 | ||
1212 | -without-* | --without-*) | |
1213 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1214 | # Reject names that are not valid shell variable names. | |
1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1216 | as_fn_error $? "invalid package name: $ac_useropt" | |
1217 | ac_useropt_orig=$ac_useropt | |
1218 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1219 | case $ac_user_opts in | |
1220 | *" | |
1221 | "with_$ac_useropt" | |
1222 | "*) ;; | |
1223 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1224 | ac_unrecognized_sep=', ';; | |
1225 | esac | |
1226 | eval with_$ac_useropt=no ;; | |
1227 | ||
1228 | --x) | |
1229 | # Obsolete; use --with-x. | |
1230 | with_x=yes ;; | |
1231 | ||
1232 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1233 | | --x-incl | --x-inc | --x-in | --x-i) | |
1234 | ac_prev=x_includes ;; | |
1235 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1236 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1237 | x_includes=$ac_optarg ;; | |
1238 | ||
1239 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1240 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1241 | ac_prev=x_libraries ;; | |
1242 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1243 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1244 | x_libraries=$ac_optarg ;; | |
1245 | ||
1246 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1247 | Try \`$0 --help' for more information" | |
1248 | ;; | |
1249 | ||
1250 | *=*) | |
1251 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1252 | # Reject names that are not valid shell variable names. | |
1253 | case $ac_envvar in #( | |
1254 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1255 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1256 | esac | |
1257 | eval $ac_envvar=\$ac_optarg | |
1258 | export $ac_envvar ;; | |
1259 | ||
1260 | *) | |
1261 | # FIXME: should be removed in autoconf 3.0. | |
1262 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1263 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1264 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1265 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1266 | ;; | |
1267 | ||
1268 | esac | |
1269 | done | |
1270 | ||
1271 | if test -n "$ac_prev"; then | |
1272 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1273 | as_fn_error $? "missing argument to $ac_option" | |
1274 | fi | |
1275 | ||
1276 | if test -n "$ac_unrecognized_opts"; then | |
1277 | case $enable_option_checking in | |
1278 | no) ;; | |
1279 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1280 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1281 | esac | |
1282 | fi | |
1283 | ||
1284 | # Check all directory arguments for consistency. | |
1285 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1286 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1287 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1288 | libdir localedir mandir | |
1289 | do | |
1290 | eval ac_val=\$$ac_var | |
1291 | # Remove trailing slashes. | |
1292 | case $ac_val in | |
1293 | */ ) | |
1294 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1295 | eval $ac_var=\$ac_val;; | |
1296 | esac | |
1297 | # Be sure to have absolute directory names. | |
1298 | case $ac_val in | |
1299 | [\\/$]* | ?:[\\/]* ) continue;; | |
1300 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1301 | esac | |
1302 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1303 | done | |
1304 | ||
1305 | # There might be people who depend on the old broken behavior: `$host' | |
1306 | # used to hold the argument of --host etc. | |
1307 | # FIXME: To remove some day. | |
1308 | build=$build_alias | |
1309 | host=$host_alias | |
1310 | target=$target_alias | |
1311 | ||
1312 | # FIXME: To remove some day. | |
1313 | if test "x$host_alias" != x; then | |
1314 | if test "x$build_alias" = x; then | |
1315 | cross_compiling=maybe | |
1316 | elif test "x$build_alias" != "x$host_alias"; then | |
1317 | cross_compiling=yes | |
1318 | fi | |
1319 | fi | |
1320 | ||
1321 | ac_tool_prefix= | |
1322 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1323 | ||
1324 | test "$silent" = yes && exec 6>/dev/null | |
1325 | ||
1326 | ||
1327 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1328 | ac_ls_di=`ls -di .` && | |
1329 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1330 | as_fn_error $? "working directory cannot be determined" | |
1331 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1332 | as_fn_error $? "pwd does not report name of working directory" | |
1333 | ||
1334 | ||
1335 | # Find the source files, if location was not specified. | |
1336 | if test -z "$srcdir"; then | |
1337 | ac_srcdir_defaulted=yes | |
1338 | # Try the directory containing this script, then the parent directory. | |
1339 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1340 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1341 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1342 | X"$as_myself" : 'X\(//\)$' \| \ | |
1343 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1344 | $as_echo X"$as_myself" | | |
1345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1346 | s//\1/ | |
1347 | q | |
1348 | } | |
1349 | /^X\(\/\/\)[^/].*/{ | |
1350 | s//\1/ | |
1351 | q | |
1352 | } | |
1353 | /^X\(\/\/\)$/{ | |
1354 | s//\1/ | |
1355 | q | |
1356 | } | |
1357 | /^X\(\/\).*/{ | |
1358 | s//\1/ | |
1359 | q | |
1360 | } | |
1361 | s/.*/./; q'` | |
1362 | srcdir=$ac_confdir | |
1363 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1364 | srcdir=.. | |
1365 | fi | |
1366 | else | |
1367 | ac_srcdir_defaulted=no | |
1368 | fi | |
1369 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1370 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1371 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1372 | fi | |
1373 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1374 | ac_abs_confdir=`( | |
1375 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1376 | pwd)` | |
1377 | # When building in place, set srcdir=. | |
1378 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1379 | srcdir=. | |
1380 | fi | |
1381 | # Remove unnecessary trailing slashes from srcdir. | |
1382 | # Double slashes in file names in object file debugging info | |
1383 | # mess up M-x gdb in Emacs. | |
1384 | case $srcdir in | |
1385 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1386 | esac | |
1387 | for ac_var in $ac_precious_vars; do | |
1388 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1389 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1390 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1391 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1392 | done | |
1393 | ||
1394 | # | |
1395 | # Report the --help message. | |
1396 | # | |
1397 | if test "$ac_init_help" = "long"; then | |
1398 | # Omit some internal or obsolete options to make the list less imposing. | |
1399 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1400 | cat <<_ACEOF | |
1401 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1402 | ||
1403 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1404 | ||
1405 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1406 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1407 | ||
1408 | Defaults for the options are specified in brackets. | |
1409 | ||
1410 | Configuration: | |
1411 | -h, --help display this help and exit | |
1412 | --help=short display options specific to this package | |
1413 | --help=recursive display the short help of all the included packages | |
1414 | -V, --version display version information and exit | |
1415 | -q, --quiet, --silent do not print \`checking ...' messages | |
1416 | --cache-file=FILE cache test results in FILE [disabled] | |
1417 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1418 | -n, --no-create do not create output files | |
1419 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1420 | ||
1421 | Installation directories: | |
1422 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1423 | [$ac_default_prefix] | |
1424 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1425 | [PREFIX] | |
1426 | ||
1427 | By default, \`make install' will install all the files in | |
1428 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1429 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1430 | for instance \`--prefix=\$HOME'. | |
1431 | ||
1432 | For better control, use the options below. | |
1433 | ||
1434 | Fine tuning of the installation directories: | |
1435 | --bindir=DIR user executables [EPREFIX/bin] | |
1436 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1437 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1438 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1439 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1440 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1441 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1442 | --includedir=DIR C header files [PREFIX/include] | |
1443 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1444 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1445 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1446 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1447 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1448 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1449 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1450 | --htmldir=DIR html documentation [DOCDIR] | |
1451 | --dvidir=DIR dvi documentation [DOCDIR] | |
1452 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1453 | --psdir=DIR ps documentation [DOCDIR] | |
1454 | _ACEOF | |
1455 | ||
1456 | cat <<\_ACEOF | |
1457 | ||
1458 | Program names: | |
1459 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1460 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1461 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1462 | ||
1463 | System types: | |
1464 | --build=BUILD configure for building on BUILD [guessed] | |
1465 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1466 | _ACEOF | |
1467 | fi | |
1468 | ||
1469 | if test -n "$ac_init_help"; then | |
1470 | case $ac_init_help in | |
1471 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1472 | esac | |
1473 | cat <<\_ACEOF | |
1474 | ||
1475 | Optional Features: | |
1476 | --disable-option-checking ignore unrecognized --enable/--with options | |
1477 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1478 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1479 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1480 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1481 | --enable-maintainer-mode | |
1482 | enable make rules and dependencies not useful (and | |
1483 | sometimes confusing) to the casual installer | |
1484 | --enable-dependency-tracking | |
1485 | do not reject slow dependency extractors | |
1486 | --disable-dependency-tracking | |
1487 | speeds up one-time build | |
1488 | --enable-static[=PKGS] build static libraries [default=no] | |
1489 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1490 | --enable-fast-install[=PKGS] | |
1491 | optimize for fast installation [default=yes] | |
1492 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1493 | --enable-javascript[=ENGINE] | |
1494 | use a JavaScript runtime (currently the only | |
1495 | available option for ENGINE is JavaScriptCore) | |
1496 | [default=yes] | |
1497 | --disable-console disable console | |
1498 | ||
1499 | Optional Packages: | |
1500 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1501 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1502 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1503 | both] | |
1504 | --with-aix-soname=aix|svr4|both | |
1505 | shared library versioning (aka "SONAME") variant to | |
1506 | provide on AIX, [default=aix]. | |
1507 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1508 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
1509 | compiler's sysroot if not specified). | |
1510 | ||
1511 | Some influential environment variables: | |
1512 | CC C compiler command | |
1513 | CFLAGS C compiler flags | |
1514 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1515 | nonstandard directory <lib dir> | |
1516 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1517 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1518 | you have headers in a nonstandard directory <include dir> | |
1519 | CXX C++ compiler command | |
1520 | CXXFLAGS C++ compiler flags | |
1521 | OBJCXX Objective C++ compiler command | |
1522 | OBJCXXFLAGS Objective C++ compiler flags | |
1523 | LT_SYS_LIBRARY_PATH | |
1524 | User-defined run-time library search path. | |
1525 | CPP C preprocessor | |
1526 | CXXCPP C++ preprocessor | |
1527 | PKG_CONFIG path to pkg-config utility | |
1528 | PKG_CONFIG_PATH | |
1529 | directories to add to pkg-config's search path | |
1530 | PKG_CONFIG_LIBDIR | |
1531 | path overriding pkg-config's built-in search path | |
1532 | BISON GNU Project parser generator (yacc replacement) | |
1533 | FLEX the fast lexical analyser generator | |
1534 | GPERF perfect hash function generator | |
1535 | GNUTAR a very sticky lump of files | |
1536 | WEBKIT_CFLAGS | |
1537 | C compiler flags for WEBKIT, overriding pkg-config | |
1538 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1539 | GNUSTEP_CONFIG | |
1540 | prints information about the current gnustep installation | |
1541 | ||
1542 | Use these variables to override the choices made by `configure' or to help | |
1543 | it to find libraries and programs with nonstandard names/locations. | |
1544 | ||
1545 | Report bugs to <saurik@saurik.com>. | |
1546 | Cycript home page: <http://www.cycript.org/>. | |
1547 | _ACEOF | |
1548 | ac_status=$? | |
1549 | fi | |
1550 | ||
1551 | if test "$ac_init_help" = "recursive"; then | |
1552 | # If there are subdirs, report their specific --help. | |
1553 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1554 | test -d "$ac_dir" || | |
1555 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1556 | continue | |
1557 | ac_builddir=. | |
1558 | ||
1559 | case "$ac_dir" in | |
1560 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1561 | *) | |
1562 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1563 | # A ".." for each directory in $ac_dir_suffix. | |
1564 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1565 | case $ac_top_builddir_sub in | |
1566 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1567 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1568 | esac ;; | |
1569 | esac | |
1570 | ac_abs_top_builddir=$ac_pwd | |
1571 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1572 | # for backward compatibility: | |
1573 | ac_top_builddir=$ac_top_build_prefix | |
1574 | ||
1575 | case $srcdir in | |
1576 | .) # We are building in place. | |
1577 | ac_srcdir=. | |
1578 | ac_top_srcdir=$ac_top_builddir_sub | |
1579 | ac_abs_top_srcdir=$ac_pwd ;; | |
1580 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1581 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1582 | ac_top_srcdir=$srcdir | |
1583 | ac_abs_top_srcdir=$srcdir ;; | |
1584 | *) # Relative name. | |
1585 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1586 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1587 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1588 | esac | |
1589 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1590 | ||
1591 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1592 | # Check for guested configure. | |
1593 | if test -f "$ac_srcdir/configure.gnu"; then | |
1594 | echo && | |
1595 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1596 | elif test -f "$ac_srcdir/configure"; then | |
1597 | echo && | |
1598 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1599 | else | |
1600 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1601 | fi || ac_status=$? | |
1602 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1603 | done | |
1604 | fi | |
1605 | ||
1606 | test -n "$ac_init_help" && exit $ac_status | |
1607 | if $ac_init_version; then | |
1608 | cat <<\_ACEOF | |
1609 | Cycript configure 0.9 | |
1610 | generated by GNU Autoconf 2.69 | |
1611 | ||
1612 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1613 | This configure script is free software; the Free Software Foundation | |
1614 | gives unlimited permission to copy, distribute and modify it. | |
1615 | ||
1616 | Copyright (C) 2009-2014 Jay Freeman (saurik) | |
1617 | _ACEOF | |
1618 | exit | |
1619 | fi | |
1620 | ||
1621 | ## ------------------------ ## | |
1622 | ## Autoconf initialization. ## | |
1623 | ## ------------------------ ## | |
1624 | ||
1625 | # ac_fn_c_try_compile LINENO | |
1626 | # -------------------------- | |
1627 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1628 | ac_fn_c_try_compile () | |
1629 | { | |
1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1631 | rm -f conftest.$ac_objext | |
1632 | if { { ac_try="$ac_compile" | |
1633 | case "(($ac_try" in | |
1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1635 | *) ac_try_echo=$ac_try;; | |
1636 | esac | |
1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1638 | $as_echo "$ac_try_echo"; } >&5 | |
1639 | (eval "$ac_compile") 2>conftest.err | |
1640 | ac_status=$? | |
1641 | if test -s conftest.err; then | |
1642 | grep -v '^ *+' conftest.err >conftest.er1 | |
1643 | cat conftest.er1 >&5 | |
1644 | mv -f conftest.er1 conftest.err | |
1645 | fi | |
1646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1647 | test $ac_status = 0; } && { | |
1648 | test -z "$ac_c_werror_flag" || | |
1649 | test ! -s conftest.err | |
1650 | } && test -s conftest.$ac_objext; then : | |
1651 | ac_retval=0 | |
1652 | else | |
1653 | $as_echo "$as_me: failed program was:" >&5 | |
1654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1655 | ||
1656 | ac_retval=1 | |
1657 | fi | |
1658 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1659 | as_fn_set_status $ac_retval | |
1660 | ||
1661 | } # ac_fn_c_try_compile | |
1662 | ||
1663 | # ac_fn_cxx_try_compile LINENO | |
1664 | # ---------------------------- | |
1665 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1666 | ac_fn_cxx_try_compile () | |
1667 | { | |
1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1669 | rm -f conftest.$ac_objext | |
1670 | if { { ac_try="$ac_compile" | |
1671 | case "(($ac_try" in | |
1672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1673 | *) ac_try_echo=$ac_try;; | |
1674 | esac | |
1675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1676 | $as_echo "$ac_try_echo"; } >&5 | |
1677 | (eval "$ac_compile") 2>conftest.err | |
1678 | ac_status=$? | |
1679 | if test -s conftest.err; then | |
1680 | grep -v '^ *+' conftest.err >conftest.er1 | |
1681 | cat conftest.er1 >&5 | |
1682 | mv -f conftest.er1 conftest.err | |
1683 | fi | |
1684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1685 | test $ac_status = 0; } && { | |
1686 | test -z "$ac_cxx_werror_flag" || | |
1687 | test ! -s conftest.err | |
1688 | } && test -s conftest.$ac_objext; then : | |
1689 | ac_retval=0 | |
1690 | else | |
1691 | $as_echo "$as_me: failed program was:" >&5 | |
1692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1693 | ||
1694 | ac_retval=1 | |
1695 | fi | |
1696 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1697 | as_fn_set_status $ac_retval | |
1698 | ||
1699 | } # ac_fn_cxx_try_compile | |
1700 | ||
1701 | # ac_fn_objcxx_try_compile LINENO | |
1702 | # ------------------------------- | |
1703 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1704 | ac_fn_objcxx_try_compile () | |
1705 | { | |
1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1707 | rm -f conftest.$ac_objext | |
1708 | if { { ac_try="$ac_compile" | |
1709 | case "(($ac_try" in | |
1710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1711 | *) ac_try_echo=$ac_try;; | |
1712 | esac | |
1713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1714 | $as_echo "$ac_try_echo"; } >&5 | |
1715 | (eval "$ac_compile") 2>conftest.err | |
1716 | ac_status=$? | |
1717 | if test -s conftest.err; then | |
1718 | grep -v '^ *+' conftest.err >conftest.er1 | |
1719 | cat conftest.er1 >&5 | |
1720 | mv -f conftest.er1 conftest.err | |
1721 | fi | |
1722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1723 | test $ac_status = 0; } && { | |
1724 | test -z "$ac_objcxx_werror_flag" || | |
1725 | test ! -s conftest.err | |
1726 | } && test -s conftest.$ac_objext; then : | |
1727 | ac_retval=0 | |
1728 | else | |
1729 | $as_echo "$as_me: failed program was:" >&5 | |
1730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1731 | ||
1732 | ac_retval=1 | |
1733 | fi | |
1734 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1735 | as_fn_set_status $ac_retval | |
1736 | ||
1737 | } # ac_fn_objcxx_try_compile | |
1738 | ||
1739 | # ac_fn_c_try_link LINENO | |
1740 | # ----------------------- | |
1741 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1742 | ac_fn_c_try_link () | |
1743 | { | |
1744 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1746 | if { { ac_try="$ac_link" | |
1747 | case "(($ac_try" in | |
1748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1749 | *) ac_try_echo=$ac_try;; | |
1750 | esac | |
1751 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1752 | $as_echo "$ac_try_echo"; } >&5 | |
1753 | (eval "$ac_link") 2>conftest.err | |
1754 | ac_status=$? | |
1755 | if test -s conftest.err; then | |
1756 | grep -v '^ *+' conftest.err >conftest.er1 | |
1757 | cat conftest.er1 >&5 | |
1758 | mv -f conftest.er1 conftest.err | |
1759 | fi | |
1760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1761 | test $ac_status = 0; } && { | |
1762 | test -z "$ac_c_werror_flag" || | |
1763 | test ! -s conftest.err | |
1764 | } && test -s conftest$ac_exeext && { | |
1765 | test "$cross_compiling" = yes || | |
1766 | test -x conftest$ac_exeext | |
1767 | }; then : | |
1768 | ac_retval=0 | |
1769 | else | |
1770 | $as_echo "$as_me: failed program was:" >&5 | |
1771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1772 | ||
1773 | ac_retval=1 | |
1774 | fi | |
1775 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1776 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1777 | # interfere with the next link command; also delete a directory that is | |
1778 | # left behind by Apple's compiler. We do this before executing the actions. | |
1779 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1781 | as_fn_set_status $ac_retval | |
1782 | ||
1783 | } # ac_fn_c_try_link | |
1784 | ||
1785 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1786 | # ------------------------------------------------------- | |
1787 | # Tests whether HEADER exists and can be compiled using the include files in | |
1788 | # INCLUDES, setting the cache variable VAR accordingly. | |
1789 | ac_fn_c_check_header_compile () | |
1790 | { | |
1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1793 | $as_echo_n "checking for $2... " >&6; } | |
1794 | if eval \${$3+:} false; then : | |
1795 | $as_echo_n "(cached) " >&6 | |
1796 | else | |
1797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1798 | /* end confdefs.h. */ | |
1799 | $4 | |
1800 | #include <$2> | |
1801 | _ACEOF | |
1802 | if ac_fn_c_try_compile "$LINENO"; then : | |
1803 | eval "$3=yes" | |
1804 | else | |
1805 | eval "$3=no" | |
1806 | fi | |
1807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1808 | fi | |
1809 | eval ac_res=\$$3 | |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1811 | $as_echo "$ac_res" >&6; } | |
1812 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1813 | ||
1814 | } # ac_fn_c_check_header_compile | |
1815 | ||
1816 | # ac_fn_c_try_cpp LINENO | |
1817 | # ---------------------- | |
1818 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1819 | ac_fn_c_try_cpp () | |
1820 | { | |
1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1822 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1823 | case "(($ac_try" in | |
1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1825 | *) ac_try_echo=$ac_try;; | |
1826 | esac | |
1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1828 | $as_echo "$ac_try_echo"; } >&5 | |
1829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1830 | ac_status=$? | |
1831 | if test -s conftest.err; then | |
1832 | grep -v '^ *+' conftest.err >conftest.er1 | |
1833 | cat conftest.er1 >&5 | |
1834 | mv -f conftest.er1 conftest.err | |
1835 | fi | |
1836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1837 | test $ac_status = 0; } > conftest.i && { | |
1838 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1839 | test ! -s conftest.err | |
1840 | }; then : | |
1841 | ac_retval=0 | |
1842 | else | |
1843 | $as_echo "$as_me: failed program was:" >&5 | |
1844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1845 | ||
1846 | ac_retval=1 | |
1847 | fi | |
1848 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1849 | as_fn_set_status $ac_retval | |
1850 | ||
1851 | } # ac_fn_c_try_cpp | |
1852 | ||
1853 | # ac_fn_c_try_run LINENO | |
1854 | # ---------------------- | |
1855 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1856 | # that executables *can* be run. | |
1857 | ac_fn_c_try_run () | |
1858 | { | |
1859 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1860 | if { { ac_try="$ac_link" | |
1861 | case "(($ac_try" in | |
1862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1863 | *) ac_try_echo=$ac_try;; | |
1864 | esac | |
1865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1866 | $as_echo "$ac_try_echo"; } >&5 | |
1867 | (eval "$ac_link") 2>&5 | |
1868 | ac_status=$? | |
1869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1870 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1871 | { { case "(($ac_try" in | |
1872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1873 | *) ac_try_echo=$ac_try;; | |
1874 | esac | |
1875 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1876 | $as_echo "$ac_try_echo"; } >&5 | |
1877 | (eval "$ac_try") 2>&5 | |
1878 | ac_status=$? | |
1879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1880 | test $ac_status = 0; }; }; then : | |
1881 | ac_retval=0 | |
1882 | else | |
1883 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1884 | $as_echo "$as_me: failed program was:" >&5 | |
1885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1886 | ||
1887 | ac_retval=$ac_status | |
1888 | fi | |
1889 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1890 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1891 | as_fn_set_status $ac_retval | |
1892 | ||
1893 | } # ac_fn_c_try_run | |
1894 | ||
1895 | # ac_fn_c_check_func LINENO FUNC VAR | |
1896 | # ---------------------------------- | |
1897 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1898 | ac_fn_c_check_func () | |
1899 | { | |
1900 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1902 | $as_echo_n "checking for $2... " >&6; } | |
1903 | if eval \${$3+:} false; then : | |
1904 | $as_echo_n "(cached) " >&6 | |
1905 | else | |
1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1907 | /* end confdefs.h. */ | |
1908 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1910 | #define $2 innocuous_$2 | |
1911 | ||
1912 | /* System header to define __stub macros and hopefully few prototypes, | |
1913 | which can conflict with char $2 (); below. | |
1914 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1915 | <limits.h> exists even on freestanding compilers. */ | |
1916 | ||
1917 | #ifdef __STDC__ | |
1918 | # include <limits.h> | |
1919 | #else | |
1920 | # include <assert.h> | |
1921 | #endif | |
1922 | ||
1923 | #undef $2 | |
1924 | ||
1925 | /* Override any GCC internal prototype to avoid an error. | |
1926 | Use char because int might match the return type of a GCC | |
1927 | builtin and then its argument prototype would still apply. */ | |
1928 | #ifdef __cplusplus | |
1929 | extern "C" | |
1930 | #endif | |
1931 | char $2 (); | |
1932 | /* The GNU C library defines this for functions which it implements | |
1933 | to always fail with ENOSYS. Some functions are actually named | |
1934 | something starting with __ and the normal name is an alias. */ | |
1935 | #if defined __stub_$2 || defined __stub___$2 | |
1936 | choke me | |
1937 | #endif | |
1938 | ||
1939 | int | |
1940 | main () | |
1941 | { | |
1942 | return $2 (); | |
1943 | ; | |
1944 | return 0; | |
1945 | } | |
1946 | _ACEOF | |
1947 | if ac_fn_c_try_link "$LINENO"; then : | |
1948 | eval "$3=yes" | |
1949 | else | |
1950 | eval "$3=no" | |
1951 | fi | |
1952 | rm -f core conftest.err conftest.$ac_objext \ | |
1953 | conftest$ac_exeext conftest.$ac_ext | |
1954 | fi | |
1955 | eval ac_res=\$$3 | |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1957 | $as_echo "$ac_res" >&6; } | |
1958 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1959 | ||
1960 | } # ac_fn_c_check_func | |
1961 | ||
1962 | # ac_fn_cxx_try_cpp LINENO | |
1963 | # ------------------------ | |
1964 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1965 | ac_fn_cxx_try_cpp () | |
1966 | { | |
1967 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1968 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1969 | case "(($ac_try" in | |
1970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1971 | *) ac_try_echo=$ac_try;; | |
1972 | esac | |
1973 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1974 | $as_echo "$ac_try_echo"; } >&5 | |
1975 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1976 | ac_status=$? | |
1977 | if test -s conftest.err; then | |
1978 | grep -v '^ *+' conftest.err >conftest.er1 | |
1979 | cat conftest.er1 >&5 | |
1980 | mv -f conftest.er1 conftest.err | |
1981 | fi | |
1982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1983 | test $ac_status = 0; } > conftest.i && { | |
1984 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1985 | test ! -s conftest.err | |
1986 | }; then : | |
1987 | ac_retval=0 | |
1988 | else | |
1989 | $as_echo "$as_me: failed program was:" >&5 | |
1990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1991 | ||
1992 | ac_retval=1 | |
1993 | fi | |
1994 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1995 | as_fn_set_status $ac_retval | |
1996 | ||
1997 | } # ac_fn_cxx_try_cpp | |
1998 | ||
1999 | # ac_fn_cxx_try_link LINENO | |
2000 | # ------------------------- | |
2001 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2002 | ac_fn_cxx_try_link () | |
2003 | { | |
2004 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2006 | if { { ac_try="$ac_link" | |
2007 | case "(($ac_try" in | |
2008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2009 | *) ac_try_echo=$ac_try;; | |
2010 | esac | |
2011 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2012 | $as_echo "$ac_try_echo"; } >&5 | |
2013 | (eval "$ac_link") 2>conftest.err | |
2014 | ac_status=$? | |
2015 | if test -s conftest.err; then | |
2016 | grep -v '^ *+' conftest.err >conftest.er1 | |
2017 | cat conftest.er1 >&5 | |
2018 | mv -f conftest.er1 conftest.err | |
2019 | fi | |
2020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2021 | test $ac_status = 0; } && { | |
2022 | test -z "$ac_cxx_werror_flag" || | |
2023 | test ! -s conftest.err | |
2024 | } && test -s conftest$ac_exeext && { | |
2025 | test "$cross_compiling" = yes || | |
2026 | test -x conftest$ac_exeext | |
2027 | }; then : | |
2028 | ac_retval=0 | |
2029 | else | |
2030 | $as_echo "$as_me: failed program was:" >&5 | |
2031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2032 | ||
2033 | ac_retval=1 | |
2034 | fi | |
2035 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2036 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2037 | # interfere with the next link command; also delete a directory that is | |
2038 | # left behind by Apple's compiler. We do this before executing the actions. | |
2039 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2040 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2041 | as_fn_set_status $ac_retval | |
2042 | ||
2043 | } # ac_fn_cxx_try_link | |
2044 | ||
2045 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2046 | # --------------------------------------------------------- | |
2047 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2048 | # the include files in INCLUDES and setting the cache variable VAR | |
2049 | # accordingly. | |
2050 | ac_fn_cxx_check_header_mongrel () | |
2051 | { | |
2052 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2053 | if eval \${$3+:} false; then : | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2055 | $as_echo_n "checking for $2... " >&6; } | |
2056 | if eval \${$3+:} false; then : | |
2057 | $as_echo_n "(cached) " >&6 | |
2058 | fi | |
2059 | eval ac_res=\$$3 | |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2061 | $as_echo "$ac_res" >&6; } | |
2062 | else | |
2063 | # Is the header compilable? | |
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2065 | $as_echo_n "checking $2 usability... " >&6; } | |
2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2067 | /* end confdefs.h. */ | |
2068 | $4 | |
2069 | #include <$2> | |
2070 | _ACEOF | |
2071 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2072 | ac_header_compiler=yes | |
2073 | else | |
2074 | ac_header_compiler=no | |
2075 | fi | |
2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2078 | $as_echo "$ac_header_compiler" >&6; } | |
2079 | ||
2080 | # Is the header present? | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2082 | $as_echo_n "checking $2 presence... " >&6; } | |
2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2084 | /* end confdefs.h. */ | |
2085 | #include <$2> | |
2086 | _ACEOF | |
2087 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2088 | ac_header_preproc=yes | |
2089 | else | |
2090 | ac_header_preproc=no | |
2091 | fi | |
2092 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2094 | $as_echo "$ac_header_preproc" >&6; } | |
2095 | ||
2096 | # So? What about this header? | |
2097 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2098 | yes:no: ) | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2100 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2102 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2103 | ;; | |
2104 | no:yes:* ) | |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2106 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2108 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2110 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2112 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2114 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2115 | ( $as_echo "## -------------------------------- ## | |
2116 | ## Report this to saurik@saurik.com ## | |
2117 | ## -------------------------------- ##" | |
2118 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2119 | ;; | |
2120 | esac | |
2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2122 | $as_echo_n "checking for $2... " >&6; } | |
2123 | if eval \${$3+:} false; then : | |
2124 | $as_echo_n "(cached) " >&6 | |
2125 | else | |
2126 | eval "$3=\$ac_header_compiler" | |
2127 | fi | |
2128 | eval ac_res=\$$3 | |
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2130 | $as_echo "$ac_res" >&6; } | |
2131 | fi | |
2132 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2133 | ||
2134 | } # ac_fn_cxx_check_header_mongrel | |
2135 | ||
2136 | # ac_fn_objcxx_try_link LINENO | |
2137 | # ---------------------------- | |
2138 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2139 | ac_fn_objcxx_try_link () | |
2140 | { | |
2141 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2143 | if { { ac_try="$ac_link" | |
2144 | case "(($ac_try" in | |
2145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2146 | *) ac_try_echo=$ac_try;; | |
2147 | esac | |
2148 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2149 | $as_echo "$ac_try_echo"; } >&5 | |
2150 | (eval "$ac_link") 2>conftest.err | |
2151 | ac_status=$? | |
2152 | if test -s conftest.err; then | |
2153 | grep -v '^ *+' conftest.err >conftest.er1 | |
2154 | cat conftest.er1 >&5 | |
2155 | mv -f conftest.er1 conftest.err | |
2156 | fi | |
2157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2158 | test $ac_status = 0; } && { | |
2159 | test -z "$ac_objcxx_werror_flag" || | |
2160 | test ! -s conftest.err | |
2161 | } && test -s conftest$ac_exeext && { | |
2162 | test "$cross_compiling" = yes || | |
2163 | test -x conftest$ac_exeext | |
2164 | }; then : | |
2165 | ac_retval=0 | |
2166 | else | |
2167 | $as_echo "$as_me: failed program was:" >&5 | |
2168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2169 | ||
2170 | ac_retval=1 | |
2171 | fi | |
2172 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2173 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2174 | # interfere with the next link command; also delete a directory that is | |
2175 | # left behind by Apple's compiler. We do this before executing the actions. | |
2176 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2177 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2178 | as_fn_set_status $ac_retval | |
2179 | ||
2180 | } # ac_fn_objcxx_try_link | |
2181 | cat >config.log <<_ACEOF | |
2182 | This file contains any messages produced by compilers while | |
2183 | running configure, to aid debugging if configure makes a mistake. | |
2184 | ||
2185 | It was created by Cycript $as_me 0.9, which was | |
2186 | generated by GNU Autoconf 2.69. Invocation command line was | |
2187 | ||
2188 | $ $0 $@ | |
2189 | ||
2190 | _ACEOF | |
2191 | exec 5>>config.log | |
2192 | { | |
2193 | cat <<_ASUNAME | |
2194 | ## --------- ## | |
2195 | ## Platform. ## | |
2196 | ## --------- ## | |
2197 | ||
2198 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2199 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2200 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2201 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2202 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2203 | ||
2204 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2205 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2206 | ||
2207 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2208 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2209 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2210 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2211 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2212 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2213 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2214 | ||
2215 | _ASUNAME | |
2216 | ||
2217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2218 | for as_dir in $PATH | |
2219 | do | |
2220 | IFS=$as_save_IFS | |
2221 | test -z "$as_dir" && as_dir=. | |
2222 | $as_echo "PATH: $as_dir" | |
2223 | done | |
2224 | IFS=$as_save_IFS | |
2225 | ||
2226 | } >&5 | |
2227 | ||
2228 | cat >&5 <<_ACEOF | |
2229 | ||
2230 | ||
2231 | ## ----------- ## | |
2232 | ## Core tests. ## | |
2233 | ## ----------- ## | |
2234 | ||
2235 | _ACEOF | |
2236 | ||
2237 | ||
2238 | # Keep a trace of the command line. | |
2239 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2240 | # Strip out --silent because we don't want to record it for future runs. | |
2241 | # Also quote any args containing shell meta-characters. | |
2242 | # Make two passes to allow for proper duplicate-argument suppression. | |
2243 | ac_configure_args= | |
2244 | ac_configure_args0= | |
2245 | ac_configure_args1= | |
2246 | ac_must_keep_next=false | |
2247 | for ac_pass in 1 2 | |
2248 | do | |
2249 | for ac_arg | |
2250 | do | |
2251 | case $ac_arg in | |
2252 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2253 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2254 | | -silent | --silent | --silen | --sile | --sil) | |
2255 | continue ;; | |
2256 | *\'*) | |
2257 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2258 | esac | |
2259 | case $ac_pass in | |
2260 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2261 | 2) | |
2262 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2263 | if test $ac_must_keep_next = true; then | |
2264 | ac_must_keep_next=false # Got value, back to normal. | |
2265 | else | |
2266 | case $ac_arg in | |
2267 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2268 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2269 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2270 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2271 | case "$ac_configure_args0 " in | |
2272 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2273 | esac | |
2274 | ;; | |
2275 | -* ) ac_must_keep_next=true ;; | |
2276 | esac | |
2277 | fi | |
2278 | as_fn_append ac_configure_args " '$ac_arg'" | |
2279 | ;; | |
2280 | esac | |
2281 | done | |
2282 | done | |
2283 | { ac_configure_args0=; unset ac_configure_args0;} | |
2284 | { ac_configure_args1=; unset ac_configure_args1;} | |
2285 | ||
2286 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2287 | # config.log. We remove comments because anyway the quotes in there | |
2288 | # would cause problems or look ugly. | |
2289 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2290 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2291 | trap 'exit_status=$? | |
2292 | # Save into config.log some information that might help in debugging. | |
2293 | { | |
2294 | echo | |
2295 | ||
2296 | $as_echo "## ---------------- ## | |
2297 | ## Cache variables. ## | |
2298 | ## ---------------- ##" | |
2299 | echo | |
2300 | # The following way of writing the cache mishandles newlines in values, | |
2301 | ( | |
2302 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2303 | eval ac_val=\$$ac_var | |
2304 | case $ac_val in #( | |
2305 | *${as_nl}*) | |
2306 | case $ac_var in #( | |
2307 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2308 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2309 | esac | |
2310 | case $ac_var in #( | |
2311 | _ | IFS | as_nl) ;; #( | |
2312 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2313 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2314 | esac ;; | |
2315 | esac | |
2316 | done | |
2317 | (set) 2>&1 | | |
2318 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2319 | *${as_nl}ac_space=\ *) | |
2320 | sed -n \ | |
2321 | "s/'\''/'\''\\\\'\'''\''/g; | |
2322 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2323 | ;; #( | |
2324 | *) | |
2325 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2326 | ;; | |
2327 | esac | | |
2328 | sort | |
2329 | ) | |
2330 | echo | |
2331 | ||
2332 | $as_echo "## ----------------- ## | |
2333 | ## Output variables. ## | |
2334 | ## ----------------- ##" | |
2335 | echo | |
2336 | for ac_var in $ac_subst_vars | |
2337 | do | |
2338 | eval ac_val=\$$ac_var | |
2339 | case $ac_val in | |
2340 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2341 | esac | |
2342 | $as_echo "$ac_var='\''$ac_val'\''" | |
2343 | done | sort | |
2344 | echo | |
2345 | ||
2346 | if test -n "$ac_subst_files"; then | |
2347 | $as_echo "## ------------------- ## | |
2348 | ## File substitutions. ## | |
2349 | ## ------------------- ##" | |
2350 | echo | |
2351 | for ac_var in $ac_subst_files | |
2352 | do | |
2353 | eval ac_val=\$$ac_var | |
2354 | case $ac_val in | |
2355 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2356 | esac | |
2357 | $as_echo "$ac_var='\''$ac_val'\''" | |
2358 | done | sort | |
2359 | echo | |
2360 | fi | |
2361 | ||
2362 | if test -s confdefs.h; then | |
2363 | $as_echo "## ----------- ## | |
2364 | ## confdefs.h. ## | |
2365 | ## ----------- ##" | |
2366 | echo | |
2367 | cat confdefs.h | |
2368 | echo | |
2369 | fi | |
2370 | test "$ac_signal" != 0 && | |
2371 | $as_echo "$as_me: caught signal $ac_signal" | |
2372 | $as_echo "$as_me: exit $exit_status" | |
2373 | } >&5 | |
2374 | rm -f core *.core core.conftest.* && | |
2375 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2376 | exit $exit_status | |
2377 | ' 0 | |
2378 | for ac_signal in 1 2 13 15; do | |
2379 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2380 | done | |
2381 | ac_signal=0 | |
2382 | ||
2383 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2384 | rm -f -r conftest* confdefs.h | |
2385 | ||
2386 | $as_echo "/* confdefs.h */" > confdefs.h | |
2387 | ||
2388 | # Predefined preprocessor variables. | |
2389 | ||
2390 | cat >>confdefs.h <<_ACEOF | |
2391 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2392 | _ACEOF | |
2393 | ||
2394 | cat >>confdefs.h <<_ACEOF | |
2395 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2396 | _ACEOF | |
2397 | ||
2398 | cat >>confdefs.h <<_ACEOF | |
2399 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2400 | _ACEOF | |
2401 | ||
2402 | cat >>confdefs.h <<_ACEOF | |
2403 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2404 | _ACEOF | |
2405 | ||
2406 | cat >>confdefs.h <<_ACEOF | |
2407 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2408 | _ACEOF | |
2409 | ||
2410 | cat >>confdefs.h <<_ACEOF | |
2411 | #define PACKAGE_URL "$PACKAGE_URL" | |
2412 | _ACEOF | |
2413 | ||
2414 | ||
2415 | # Let the site file select an alternate cache file if it wants to. | |
2416 | # Prefer an explicitly selected file to automatically selected ones. | |
2417 | ac_site_file1=NONE | |
2418 | ac_site_file2=NONE | |
2419 | if test -n "$CONFIG_SITE"; then | |
2420 | # We do not want a PATH search for config.site. | |
2421 | case $CONFIG_SITE in #(( | |
2422 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2423 | */*) ac_site_file1=$CONFIG_SITE;; | |
2424 | *) ac_site_file1=./$CONFIG_SITE;; | |
2425 | esac | |
2426 | elif test "x$prefix" != xNONE; then | |
2427 | ac_site_file1=$prefix/share/config.site | |
2428 | ac_site_file2=$prefix/etc/config.site | |
2429 | else | |
2430 | ac_site_file1=$ac_default_prefix/share/config.site | |
2431 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2432 | fi | |
2433 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2434 | do | |
2435 | test "x$ac_site_file" = xNONE && continue | |
2436 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2438 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2439 | sed 's/^/| /' "$ac_site_file" >&5 | |
2440 | . "$ac_site_file" \ | |
2441 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2443 | as_fn_error $? "failed to load site script $ac_site_file | |
2444 | See \`config.log' for more details" "$LINENO" 5; } | |
2445 | fi | |
2446 | done | |
2447 | ||
2448 | if test -r "$cache_file"; then | |
2449 | # Some versions of bash will fail to source /dev/null (special files | |
2450 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2451 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2453 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2454 | case $cache_file in | |
2455 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2456 | *) . "./$cache_file";; | |
2457 | esac | |
2458 | fi | |
2459 | else | |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2461 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2462 | >$cache_file | |
2463 | fi | |
2464 | ||
2465 | # Check that the precious variables saved in the cache have kept the same | |
2466 | # value. | |
2467 | ac_cache_corrupted=false | |
2468 | for ac_var in $ac_precious_vars; do | |
2469 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2470 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2471 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2472 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2473 | case $ac_old_set,$ac_new_set in | |
2474 | set,) | |
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2476 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2477 | ac_cache_corrupted=: ;; | |
2478 | ,set) | |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2480 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2481 | ac_cache_corrupted=: ;; | |
2482 | ,);; | |
2483 | *) | |
2484 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2485 | # differences in whitespace do not lead to failure. | |
2486 | ac_old_val_w=`echo x $ac_old_val` | |
2487 | ac_new_val_w=`echo x $ac_new_val` | |
2488 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2490 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2491 | ac_cache_corrupted=: | |
2492 | else | |
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2494 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2495 | eval $ac_var=\$ac_old_val | |
2496 | fi | |
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2498 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2500 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2501 | fi;; | |
2502 | esac | |
2503 | # Pass precious variables to config.status. | |
2504 | if test "$ac_new_set" = set; then | |
2505 | case $ac_new_val in | |
2506 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2507 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2508 | esac | |
2509 | case " $ac_configure_args " in | |
2510 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2511 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2512 | esac | |
2513 | fi | |
2514 | done | |
2515 | if $ac_cache_corrupted; then | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2517 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2519 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2520 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2521 | fi | |
2522 | ## -------------------- ## | |
2523 | ## Main body of script. ## | |
2524 | ## -------------------- ## | |
2525 | ||
2526 | ac_ext=c | |
2527 | ac_cpp='$CPP $CPPFLAGS' | |
2528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2531 | ||
2532 | ||
2533 | ||
2534 | ||
2535 | ||
2536 | ac_aux_dir= | |
2537 | for ac_dir in . "$srcdir"/.; do | |
2538 | if test -f "$ac_dir/install-sh"; then | |
2539 | ac_aux_dir=$ac_dir | |
2540 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2541 | break | |
2542 | elif test -f "$ac_dir/install.sh"; then | |
2543 | ac_aux_dir=$ac_dir | |
2544 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2545 | break | |
2546 | elif test -f "$ac_dir/shtool"; then | |
2547 | ac_aux_dir=$ac_dir | |
2548 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2549 | break | |
2550 | fi | |
2551 | done | |
2552 | if test -z "$ac_aux_dir"; then | |
2553 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2554 | fi | |
2555 | ||
2556 | # These three variables are undocumented and unsupported, | |
2557 | # and are intended to be withdrawn in a future Autoconf release. | |
2558 | # They can cause serious problems if a builder's source tree is in a directory | |
2559 | # whose full name contains unusual characters. | |
2560 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2561 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2562 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2563 | ||
2564 | ||
2565 | ||
2566 | ac_config_headers="$ac_config_headers config.h" | |
2567 | ||
2568 | ||
2569 | am__api_version='1.14' | |
2570 | ||
2571 | # Find a good install program. We prefer a C program (faster), | |
2572 | # so one script is as good as another. But avoid the broken or | |
2573 | # incompatible versions: | |
2574 | # SysV /etc/install, /usr/sbin/install | |
2575 | # SunOS /usr/etc/install | |
2576 | # IRIX /sbin/install | |
2577 | # AIX /bin/install | |
2578 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2579 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2580 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2581 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2582 | # OS/2's system install, which has a completely different semantic | |
2583 | # ./install, which can be erroneously created by make from ./install.sh. | |
2584 | # Reject install programs that cannot install multiple files. | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2586 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2587 | if test -z "$INSTALL"; then | |
2588 | if ${ac_cv_path_install+:} false; then : | |
2589 | $as_echo_n "(cached) " >&6 | |
2590 | else | |
2591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2592 | for as_dir in $PATH | |
2593 | do | |
2594 | IFS=$as_save_IFS | |
2595 | test -z "$as_dir" && as_dir=. | |
2596 | # Account for people who put trailing slashes in PATH elements. | |
2597 | case $as_dir/ in #(( | |
2598 | ./ | .// | /[cC]/* | \ | |
2599 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2600 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2601 | /usr/ucb/* ) ;; | |
2602 | *) | |
2603 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2604 | # Don't use installbsd from OSF since it installs stuff as root | |
2605 | # by default. | |
2606 | for ac_prog in ginstall scoinst install; do | |
2607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2608 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2609 | if test $ac_prog = install && | |
2610 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2611 | # AIX install. It has an incompatible calling convention. | |
2612 | : | |
2613 | elif test $ac_prog = install && | |
2614 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2615 | # program-specific install script used by HP pwplus--don't use. | |
2616 | : | |
2617 | else | |
2618 | rm -rf conftest.one conftest.two conftest.dir | |
2619 | echo one > conftest.one | |
2620 | echo two > conftest.two | |
2621 | mkdir conftest.dir | |
2622 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2623 | test -s conftest.one && test -s conftest.two && | |
2624 | test -s conftest.dir/conftest.one && | |
2625 | test -s conftest.dir/conftest.two | |
2626 | then | |
2627 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2628 | break 3 | |
2629 | fi | |
2630 | fi | |
2631 | fi | |
2632 | done | |
2633 | done | |
2634 | ;; | |
2635 | esac | |
2636 | ||
2637 | done | |
2638 | IFS=$as_save_IFS | |
2639 | ||
2640 | rm -rf conftest.one conftest.two conftest.dir | |
2641 | ||
2642 | fi | |
2643 | if test "${ac_cv_path_install+set}" = set; then | |
2644 | INSTALL=$ac_cv_path_install | |
2645 | else | |
2646 | # As a last resort, use the slow shell script. Don't cache a | |
2647 | # value for INSTALL within a source directory, because that will | |
2648 | # break other packages using the cache if that directory is | |
2649 | # removed, or if the value is a relative name. | |
2650 | INSTALL=$ac_install_sh | |
2651 | fi | |
2652 | fi | |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2654 | $as_echo "$INSTALL" >&6; } | |
2655 | ||
2656 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2657 | # It thinks the first close brace ends the variable substitution. | |
2658 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2659 | ||
2660 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2661 | ||
2662 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2663 | ||
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2665 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2666 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2667 | # name. Accept space and tab only in the latter. | |
2668 | am_lf=' | |
2669 | ' | |
2670 | case `pwd` in | |
2671 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2672 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2673 | esac | |
2674 | case $srcdir in | |
2675 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2676 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2677 | esac | |
2678 | ||
2679 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2680 | # arguments. Must try -L first in case configure is actually a | |
2681 | # symlink; some systems play weird games with the mod time of symlinks | |
2682 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2683 | # directory). | |
2684 | if ( | |
2685 | am_has_slept=no | |
2686 | for am_try in 1 2; do | |
2687 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2688 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2689 | if test "$*" = "X"; then | |
2690 | # -L didn't work. | |
2691 | set X `ls -t "$srcdir/configure" conftest.file` | |
2692 | fi | |
2693 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2694 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2695 | ||
2696 | # If neither matched, then we have a broken ls. This can happen | |
2697 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2698 | # broken ls alias from the environment. This has actually | |
2699 | # happened. Such a system could not be considered "sane". | |
2700 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2701 | alias in your environment" "$LINENO" 5 | |
2702 | fi | |
2703 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2704 | break | |
2705 | fi | |
2706 | # Just in case. | |
2707 | sleep 1 | |
2708 | am_has_slept=yes | |
2709 | done | |
2710 | test "$2" = conftest.file | |
2711 | ) | |
2712 | then | |
2713 | # Ok. | |
2714 | : | |
2715 | else | |
2716 | as_fn_error $? "newly created file is older than distributed files! | |
2717 | Check your system clock" "$LINENO" 5 | |
2718 | fi | |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2720 | $as_echo "yes" >&6; } | |
2721 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2722 | # generated files are strictly newer. | |
2723 | am_sleep_pid= | |
2724 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2725 | ( sleep 1 ) & | |
2726 | am_sleep_pid=$! | |
2727 | fi | |
2728 | ||
2729 | rm -f conftest.file | |
2730 | ||
2731 | test "$program_prefix" != NONE && | |
2732 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2733 | # Use a double $ so make ignores it. | |
2734 | test "$program_suffix" != NONE && | |
2735 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2736 | # Double any \ or $. | |
2737 | # By default was `s,x,x', remove it if useless. | |
2738 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2739 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2740 | ||
2741 | # expand $ac_aux_dir to an absolute path | |
2742 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2743 | ||
2744 | if test x"${MISSING+set}" != xset; then | |
2745 | case $am_aux_dir in | |
2746 | *\ * | *\ *) | |
2747 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2748 | *) | |
2749 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2750 | esac | |
2751 | fi | |
2752 | # Use eval to expand $SHELL | |
2753 | if eval "$MISSING --is-lightweight"; then | |
2754 | am_missing_run="$MISSING " | |
2755 | else | |
2756 | am_missing_run= | |
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2758 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2759 | fi | |
2760 | ||
2761 | if test x"${install_sh}" != xset; then | |
2762 | case $am_aux_dir in | |
2763 | *\ * | *\ *) | |
2764 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2765 | *) | |
2766 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2767 | esac | |
2768 | fi | |
2769 | ||
2770 | # Installed binaries are usually stripped using 'strip' when the user | |
2771 | # run "make install-strip". However 'strip' might not be the right | |
2772 | # tool to use in cross-compilation environments, therefore Automake | |
2773 | # will honor the 'STRIP' environment variable to overrule this program. | |
2774 | if test "$cross_compiling" != no; then | |
2775 | if test -n "$ac_tool_prefix"; then | |
2776 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2777 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2779 | $as_echo_n "checking for $ac_word... " >&6; } | |
2780 | if ${ac_cv_prog_STRIP+:} false; then : | |
2781 | $as_echo_n "(cached) " >&6 | |
2782 | else | |
2783 | if test -n "$STRIP"; then | |
2784 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2785 | else | |
2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2787 | for as_dir in $PATH | |
2788 | do | |
2789 | IFS=$as_save_IFS | |
2790 | test -z "$as_dir" && as_dir=. | |
2791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2793 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2795 | break 2 | |
2796 | fi | |
2797 | done | |
2798 | done | |
2799 | IFS=$as_save_IFS | |
2800 | ||
2801 | fi | |
2802 | fi | |
2803 | STRIP=$ac_cv_prog_STRIP | |
2804 | if test -n "$STRIP"; then | |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2806 | $as_echo "$STRIP" >&6; } | |
2807 | else | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2809 | $as_echo "no" >&6; } | |
2810 | fi | |
2811 | ||
2812 | ||
2813 | fi | |
2814 | if test -z "$ac_cv_prog_STRIP"; then | |
2815 | ac_ct_STRIP=$STRIP | |
2816 | # Extract the first word of "strip", so it can be a program name with args. | |
2817 | set dummy strip; ac_word=$2 | |
2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2819 | $as_echo_n "checking for $ac_word... " >&6; } | |
2820 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2821 | $as_echo_n "(cached) " >&6 | |
2822 | else | |
2823 | if test -n "$ac_ct_STRIP"; then | |
2824 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2825 | else | |
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2833 | ac_cv_prog_ac_ct_STRIP="strip" | |
2834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2835 | break 2 | |
2836 | fi | |
2837 | done | |
2838 | done | |
2839 | IFS=$as_save_IFS | |
2840 | ||
2841 | fi | |
2842 | fi | |
2843 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2844 | if test -n "$ac_ct_STRIP"; then | |
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2846 | $as_echo "$ac_ct_STRIP" >&6; } | |
2847 | else | |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2849 | $as_echo "no" >&6; } | |
2850 | fi | |
2851 | ||
2852 | if test "x$ac_ct_STRIP" = x; then | |
2853 | STRIP=":" | |
2854 | else | |
2855 | case $cross_compiling:$ac_tool_warned in | |
2856 | yes:) | |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2858 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2859 | ac_tool_warned=yes ;; | |
2860 | esac | |
2861 | STRIP=$ac_ct_STRIP | |
2862 | fi | |
2863 | else | |
2864 | STRIP="$ac_cv_prog_STRIP" | |
2865 | fi | |
2866 | ||
2867 | fi | |
2868 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2869 | ||
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2871 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2872 | if test -z "$MKDIR_P"; then | |
2873 | if ${ac_cv_path_mkdir+:} false; then : | |
2874 | $as_echo_n "(cached) " >&6 | |
2875 | else | |
2876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2877 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2878 | do | |
2879 | IFS=$as_save_IFS | |
2880 | test -z "$as_dir" && as_dir=. | |
2881 | for ac_prog in mkdir gmkdir; do | |
2882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2883 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2884 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2885 | 'mkdir (GNU coreutils) '* | \ | |
2886 | 'mkdir (coreutils) '* | \ | |
2887 | 'mkdir (fileutils) '4.1*) | |
2888 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2889 | break 3;; | |
2890 | esac | |
2891 | done | |
2892 | done | |
2893 | done | |
2894 | IFS=$as_save_IFS | |
2895 | ||
2896 | fi | |
2897 | ||
2898 | test -d ./--version && rmdir ./--version | |
2899 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2900 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2901 | else | |
2902 | # As a last resort, use the slow shell script. Don't cache a | |
2903 | # value for MKDIR_P within a source directory, because that will | |
2904 | # break other packages using the cache if that directory is | |
2905 | # removed, or if the value is a relative name. | |
2906 | MKDIR_P="$ac_install_sh -d" | |
2907 | fi | |
2908 | fi | |
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2910 | $as_echo "$MKDIR_P" >&6; } | |
2911 | ||
2912 | for ac_prog in gawk mawk nawk awk | |
2913 | do | |
2914 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2915 | set dummy $ac_prog; ac_word=$2 | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2917 | $as_echo_n "checking for $ac_word... " >&6; } | |
2918 | if ${ac_cv_prog_AWK+:} false; then : | |
2919 | $as_echo_n "(cached) " >&6 | |
2920 | else | |
2921 | if test -n "$AWK"; then | |
2922 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2923 | else | |
2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2925 | for as_dir in $PATH | |
2926 | do | |
2927 | IFS=$as_save_IFS | |
2928 | test -z "$as_dir" && as_dir=. | |
2929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2931 | ac_cv_prog_AWK="$ac_prog" | |
2932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2933 | break 2 | |
2934 | fi | |
2935 | done | |
2936 | done | |
2937 | IFS=$as_save_IFS | |
2938 | ||
2939 | fi | |
2940 | fi | |
2941 | AWK=$ac_cv_prog_AWK | |
2942 | if test -n "$AWK"; then | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2944 | $as_echo "$AWK" >&6; } | |
2945 | else | |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2947 | $as_echo "no" >&6; } | |
2948 | fi | |
2949 | ||
2950 | ||
2951 | test -n "$AWK" && break | |
2952 | done | |
2953 | ||
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2955 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2956 | set x ${MAKE-make} | |
2957 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2958 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2959 | $as_echo_n "(cached) " >&6 | |
2960 | else | |
2961 | cat >conftest.make <<\_ACEOF | |
2962 | SHELL = /bin/sh | |
2963 | all: | |
2964 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2965 | _ACEOF | |
2966 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2967 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2968 | *@@@%%%=?*=@@@%%%*) | |
2969 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2970 | *) | |
2971 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2972 | esac | |
2973 | rm -f conftest.make | |
2974 | fi | |
2975 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2977 | $as_echo "yes" >&6; } | |
2978 | SET_MAKE= | |
2979 | else | |
2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2981 | $as_echo "no" >&6; } | |
2982 | SET_MAKE="MAKE=${MAKE-make}" | |
2983 | fi | |
2984 | ||
2985 | rm -rf .tst 2>/dev/null | |
2986 | mkdir .tst 2>/dev/null | |
2987 | if test -d .tst; then | |
2988 | am__leading_dot=. | |
2989 | else | |
2990 | am__leading_dot=_ | |
2991 | fi | |
2992 | rmdir .tst 2>/dev/null | |
2993 | ||
2994 | # Check whether --enable-silent-rules was given. | |
2995 | if test "${enable_silent_rules+set}" = set; then : | |
2996 | enableval=$enable_silent_rules; | |
2997 | fi | |
2998 | ||
2999 | case $enable_silent_rules in # ((( | |
3000 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3001 | no) AM_DEFAULT_VERBOSITY=1;; | |
3002 | *) AM_DEFAULT_VERBOSITY=1;; | |
3003 | esac | |
3004 | am_make=${MAKE-make} | |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3006 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3007 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3008 | $as_echo_n "(cached) " >&6 | |
3009 | else | |
3010 | if $as_echo 'TRUE=$(BAR$(V)) | |
3011 | BAR0=false | |
3012 | BAR1=true | |
3013 | V=1 | |
3014 | am__doit: | |
3015 | @$(TRUE) | |
3016 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3017 | am_cv_make_support_nested_variables=yes | |
3018 | else | |
3019 | am_cv_make_support_nested_variables=no | |
3020 | fi | |
3021 | fi | |
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3023 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3024 | if test $am_cv_make_support_nested_variables = yes; then | |
3025 | AM_V='$(V)' | |
3026 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3027 | else | |
3028 | AM_V=$AM_DEFAULT_VERBOSITY | |
3029 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3030 | fi | |
3031 | AM_BACKSLASH='\' | |
3032 | ||
3033 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3034 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3035 | # is not polluted with repeated "-I." | |
3036 | am__isrc=' -I$(srcdir)' | |
3037 | # test to see if srcdir already configured | |
3038 | if test -f $srcdir/config.status; then | |
3039 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3040 | fi | |
3041 | fi | |
3042 | ||
3043 | # test whether we have cygpath | |
3044 | if test -z "$CYGPATH_W"; then | |
3045 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3046 | CYGPATH_W='cygpath -w' | |
3047 | else | |
3048 | CYGPATH_W=echo | |
3049 | fi | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | # Define the identity of the package. | |
3054 | PACKAGE='cycript' | |
3055 | VERSION='0.9' | |
3056 | ||
3057 | ||
3058 | cat >>confdefs.h <<_ACEOF | |
3059 | #define PACKAGE "$PACKAGE" | |
3060 | _ACEOF | |
3061 | ||
3062 | ||
3063 | cat >>confdefs.h <<_ACEOF | |
3064 | #define VERSION "$VERSION" | |
3065 | _ACEOF | |
3066 | ||
3067 | # Some tools Automake needs. | |
3068 | ||
3069 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3070 | ||
3071 | ||
3072 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3073 | ||
3074 | ||
3075 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3076 | ||
3077 | ||
3078 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3079 | ||
3080 | ||
3081 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3082 | ||
3083 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3084 | # dies out for good. For more background, see: | |
3085 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3086 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3087 | mkdir_p='$(MKDIR_P)' | |
3088 | ||
3089 | # We need awk for the "check" target. The system "awk" is bad on | |
3090 | # some platforms. | |
3091 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3092 | # in the wild :-( We should find a proper way to deprecate it ... | |
3093 | AMTAR='$${TAR-tar}' | |
3094 | ||
3095 | ||
3096 | # We'll loop over all known methods to create a tar archive until one works. | |
3097 | _am_tools='gnutar pax cpio none' | |
3098 | ||
3099 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3100 | ||
3101 | ||
3102 | ||
3103 | ||
3104 | ||
3105 | ||
3106 | # POSIX will say in a future version that running "rm -f" with no argument | |
3107 | # is OK; and we want to be able to make that assumption in our Makefile | |
3108 | # recipes. So use an aggressive probe to check that the usage we want is | |
3109 | # actually supported "in the wild" to an acceptable degree. | |
3110 | # See automake bug#10828. | |
3111 | # To make any issue more visible, cause the running configure to be aborted | |
3112 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3113 | # user can still override this though. | |
3114 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3115 | cat >&2 <<'END' | |
3116 | Oops! | |
3117 | ||
3118 | Your 'rm' program seems unable to run without file operands specified | |
3119 | on the command line, even when the '-f' option is present. This is contrary | |
3120 | to the behaviour of most rm programs out there, and not conforming with | |
3121 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3122 | ||
3123 | Please tell bug-automake@gnu.org about your system, including the value | |
3124 | of your $PATH and any error possibly output before this message. This | |
3125 | can help us improve future automake versions. | |
3126 | ||
3127 | END | |
3128 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3129 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3130 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3131 | echo >&2 | |
3132 | else | |
3133 | cat >&2 <<'END' | |
3134 | Aborting the configuration process, to ensure you take notice of the issue. | |
3135 | ||
3136 | You can download and install GNU coreutils to get an 'rm' implementation | |
3137 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3138 | ||
3139 | If you want to complete the configuration process using your problematic | |
3140 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3141 | to "yes", and re-run configure. | |
3142 | ||
3143 | END | |
3144 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3145 | fi | |
3146 | fi | |
3147 | ||
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3149 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3150 | # Check whether --enable-maintainer-mode was given. | |
3151 | if test "${enable_maintainer_mode+set}" = set; then : | |
3152 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3153 | else | |
3154 | USE_MAINTAINER_MODE=no | |
3155 | fi | |
3156 | ||
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3158 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3159 | if test $USE_MAINTAINER_MODE = yes; then | |
3160 | MAINTAINER_MODE_TRUE= | |
3161 | MAINTAINER_MODE_FALSE='#' | |
3162 | else | |
3163 | MAINTAINER_MODE_TRUE='#' | |
3164 | MAINTAINER_MODE_FALSE= | |
3165 | fi | |
3166 | ||
3167 | MAINT=$MAINTAINER_MODE_TRUE | |
3168 | ||
3169 | ||
3170 | ||
3171 | ac_ext=c | |
3172 | ac_cpp='$CPP $CPPFLAGS' | |
3173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3176 | if test -n "$ac_tool_prefix"; then | |
3177 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3178 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3180 | $as_echo_n "checking for $ac_word... " >&6; } | |
3181 | if ${ac_cv_prog_CC+:} false; then : | |
3182 | $as_echo_n "(cached) " >&6 | |
3183 | else | |
3184 | if test -n "$CC"; then | |
3185 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3186 | else | |
3187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3188 | for as_dir in $PATH | |
3189 | do | |
3190 | IFS=$as_save_IFS | |
3191 | test -z "$as_dir" && as_dir=. | |
3192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3194 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3196 | break 2 | |
3197 | fi | |
3198 | done | |
3199 | done | |
3200 | IFS=$as_save_IFS | |
3201 | ||
3202 | fi | |
3203 | fi | |
3204 | CC=$ac_cv_prog_CC | |
3205 | if test -n "$CC"; then | |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3207 | $as_echo "$CC" >&6; } | |
3208 | else | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3210 | $as_echo "no" >&6; } | |
3211 | fi | |
3212 | ||
3213 | ||
3214 | fi | |
3215 | if test -z "$ac_cv_prog_CC"; then | |
3216 | ac_ct_CC=$CC | |
3217 | # Extract the first word of "gcc", so it can be a program name with args. | |
3218 | set dummy gcc; ac_word=$2 | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3220 | $as_echo_n "checking for $ac_word... " >&6; } | |
3221 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3222 | $as_echo_n "(cached) " >&6 | |
3223 | else | |
3224 | if test -n "$ac_ct_CC"; then | |
3225 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3226 | else | |
3227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3228 | for as_dir in $PATH | |
3229 | do | |
3230 | IFS=$as_save_IFS | |
3231 | test -z "$as_dir" && as_dir=. | |
3232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3233 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3234 | ac_cv_prog_ac_ct_CC="gcc" | |
3235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3236 | break 2 | |
3237 | fi | |
3238 | done | |
3239 | done | |
3240 | IFS=$as_save_IFS | |
3241 | ||
3242 | fi | |
3243 | fi | |
3244 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3245 | if test -n "$ac_ct_CC"; then | |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3247 | $as_echo "$ac_ct_CC" >&6; } | |
3248 | else | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3250 | $as_echo "no" >&6; } | |
3251 | fi | |
3252 | ||
3253 | if test "x$ac_ct_CC" = x; then | |
3254 | CC="" | |
3255 | else | |
3256 | case $cross_compiling:$ac_tool_warned in | |
3257 | yes:) | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3259 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3260 | ac_tool_warned=yes ;; | |
3261 | esac | |
3262 | CC=$ac_ct_CC | |
3263 | fi | |
3264 | else | |
3265 | CC="$ac_cv_prog_CC" | |
3266 | fi | |
3267 | ||
3268 | if test -z "$CC"; then | |
3269 | if test -n "$ac_tool_prefix"; then | |
3270 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3271 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3273 | $as_echo_n "checking for $ac_word... " >&6; } | |
3274 | if ${ac_cv_prog_CC+:} false; then : | |
3275 | $as_echo_n "(cached) " >&6 | |
3276 | else | |
3277 | if test -n "$CC"; then | |
3278 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3279 | else | |
3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3281 | for as_dir in $PATH | |
3282 | do | |
3283 | IFS=$as_save_IFS | |
3284 | test -z "$as_dir" && as_dir=. | |
3285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3287 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3289 | break 2 | |
3290 | fi | |
3291 | done | |
3292 | done | |
3293 | IFS=$as_save_IFS | |
3294 | ||
3295 | fi | |
3296 | fi | |
3297 | CC=$ac_cv_prog_CC | |
3298 | if test -n "$CC"; then | |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3300 | $as_echo "$CC" >&6; } | |
3301 | else | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3303 | $as_echo "no" >&6; } | |
3304 | fi | |
3305 | ||
3306 | ||
3307 | fi | |
3308 | fi | |
3309 | if test -z "$CC"; then | |
3310 | # Extract the first word of "cc", so it can be a program name with args. | |
3311 | set dummy cc; ac_word=$2 | |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3313 | $as_echo_n "checking for $ac_word... " >&6; } | |
3314 | if ${ac_cv_prog_CC+:} false; then : | |
3315 | $as_echo_n "(cached) " >&6 | |
3316 | else | |
3317 | if test -n "$CC"; then | |
3318 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3319 | else | |
3320 | ac_prog_rejected=no | |
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3322 | for as_dir in $PATH | |
3323 | do | |
3324 | IFS=$as_save_IFS | |
3325 | test -z "$as_dir" && as_dir=. | |
3326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3328 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3329 | ac_prog_rejected=yes | |
3330 | continue | |
3331 | fi | |
3332 | ac_cv_prog_CC="cc" | |
3333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3334 | break 2 | |
3335 | fi | |
3336 | done | |
3337 | done | |
3338 | IFS=$as_save_IFS | |
3339 | ||
3340 | if test $ac_prog_rejected = yes; then | |
3341 | # We found a bogon in the path, so make sure we never use it. | |
3342 | set dummy $ac_cv_prog_CC | |
3343 | shift | |
3344 | if test $# != 0; then | |
3345 | # We chose a different compiler from the bogus one. | |
3346 | # However, it has the same basename, so the bogon will be chosen | |
3347 | # first if we set CC to just the basename; use the full file name. | |
3348 | shift | |
3349 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3350 | fi | |
3351 | fi | |
3352 | fi | |
3353 | fi | |
3354 | CC=$ac_cv_prog_CC | |
3355 | if test -n "$CC"; then | |
3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3357 | $as_echo "$CC" >&6; } | |
3358 | else | |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3360 | $as_echo "no" >&6; } | |
3361 | fi | |
3362 | ||
3363 | ||
3364 | fi | |
3365 | if test -z "$CC"; then | |
3366 | if test -n "$ac_tool_prefix"; then | |
3367 | for ac_prog in cl.exe | |
3368 | do | |
3369 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3370 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3372 | $as_echo_n "checking for $ac_word... " >&6; } | |
3373 | if ${ac_cv_prog_CC+:} false; then : | |
3374 | $as_echo_n "(cached) " >&6 | |
3375 | else | |
3376 | if test -n "$CC"; then | |
3377 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3378 | else | |
3379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3380 | for as_dir in $PATH | |
3381 | do | |
3382 | IFS=$as_save_IFS | |
3383 | test -z "$as_dir" && as_dir=. | |
3384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3386 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3388 | break 2 | |
3389 | fi | |
3390 | done | |
3391 | done | |
3392 | IFS=$as_save_IFS | |
3393 | ||
3394 | fi | |
3395 | fi | |
3396 | CC=$ac_cv_prog_CC | |
3397 | if test -n "$CC"; then | |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3399 | $as_echo "$CC" >&6; } | |
3400 | else | |
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3402 | $as_echo "no" >&6; } | |
3403 | fi | |
3404 | ||
3405 | ||
3406 | test -n "$CC" && break | |
3407 | done | |
3408 | fi | |
3409 | if test -z "$CC"; then | |
3410 | ac_ct_CC=$CC | |
3411 | for ac_prog in cl.exe | |
3412 | do | |
3413 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3414 | set dummy $ac_prog; ac_word=$2 | |
3415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3416 | $as_echo_n "checking for $ac_word... " >&6; } | |
3417 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3418 | $as_echo_n "(cached) " >&6 | |
3419 | else | |
3420 | if test -n "$ac_ct_CC"; then | |
3421 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3422 | else | |
3423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3424 | for as_dir in $PATH | |
3425 | do | |
3426 | IFS=$as_save_IFS | |
3427 | test -z "$as_dir" && as_dir=. | |
3428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3430 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3432 | break 2 | |
3433 | fi | |
3434 | done | |
3435 | done | |
3436 | IFS=$as_save_IFS | |
3437 | ||
3438 | fi | |
3439 | fi | |
3440 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3441 | if test -n "$ac_ct_CC"; then | |
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3443 | $as_echo "$ac_ct_CC" >&6; } | |
3444 | else | |
3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3446 | $as_echo "no" >&6; } | |
3447 | fi | |
3448 | ||
3449 | ||
3450 | test -n "$ac_ct_CC" && break | |
3451 | done | |
3452 | ||
3453 | if test "x$ac_ct_CC" = x; then | |
3454 | CC="" | |
3455 | else | |
3456 | case $cross_compiling:$ac_tool_warned in | |
3457 | yes:) | |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3459 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3460 | ac_tool_warned=yes ;; | |
3461 | esac | |
3462 | CC=$ac_ct_CC | |
3463 | fi | |
3464 | fi | |
3465 | ||
3466 | fi | |
3467 | ||
3468 | ||
3469 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3470 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3471 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3472 | See \`config.log' for more details" "$LINENO" 5; } | |
3473 | ||
3474 | # Provide some information about the compiler. | |
3475 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3476 | set X $ac_compile | |
3477 | ac_compiler=$2 | |
3478 | for ac_option in --version -v -V -qversion; do | |
3479 | { { ac_try="$ac_compiler $ac_option >&5" | |
3480 | case "(($ac_try" in | |
3481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3482 | *) ac_try_echo=$ac_try;; | |
3483 | esac | |
3484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3485 | $as_echo "$ac_try_echo"; } >&5 | |
3486 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3487 | ac_status=$? | |
3488 | if test -s conftest.err; then | |
3489 | sed '10a\ | |
3490 | ... rest of stderr output deleted ... | |
3491 | 10q' conftest.err >conftest.er1 | |
3492 | cat conftest.er1 >&5 | |
3493 | fi | |
3494 | rm -f conftest.er1 conftest.err | |
3495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3496 | test $ac_status = 0; } | |
3497 | done | |
3498 | ||
3499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3500 | /* end confdefs.h. */ | |
3501 | ||
3502 | int | |
3503 | main () | |
3504 | { | |
3505 | ||
3506 | ; | |
3507 | return 0; | |
3508 | } | |
3509 | _ACEOF | |
3510 | ac_clean_files_save=$ac_clean_files | |
3511 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3512 | # Try to create an executable without -o first, disregard a.out. | |
3513 | # It will help us diagnose broken compilers, and finding out an intuition | |
3514 | # of exeext. | |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3516 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3517 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3518 | ||
3519 | # The possible output files: | |
3520 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3521 | ||
3522 | ac_rmfiles= | |
3523 | for ac_file in $ac_files | |
3524 | do | |
3525 | case $ac_file in | |
3526 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3527 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3528 | esac | |
3529 | done | |
3530 | rm -f $ac_rmfiles | |
3531 | ||
3532 | if { { ac_try="$ac_link_default" | |
3533 | case "(($ac_try" in | |
3534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3535 | *) ac_try_echo=$ac_try;; | |
3536 | esac | |
3537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3538 | $as_echo "$ac_try_echo"; } >&5 | |
3539 | (eval "$ac_link_default") 2>&5 | |
3540 | ac_status=$? | |
3541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3542 | test $ac_status = 0; }; then : | |
3543 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3544 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3545 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3546 | # so that the user can short-circuit this test for compilers unknown to | |
3547 | # Autoconf. | |
3548 | for ac_file in $ac_files '' | |
3549 | do | |
3550 | test -f "$ac_file" || continue | |
3551 | case $ac_file in | |
3552 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3553 | ;; | |
3554 | [ab].out ) | |
3555 | # We found the default executable, but exeext='' is most | |
3556 | # certainly right. | |
3557 | break;; | |
3558 | *.* ) | |
3559 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3560 | then :; else | |
3561 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3562 | fi | |
3563 | # We set ac_cv_exeext here because the later test for it is not | |
3564 | # safe: cross compilers may not add the suffix if given an `-o' | |
3565 | # argument, so we may need to know it at that point already. | |
3566 | # Even if this section looks crufty: it has the advantage of | |
3567 | # actually working. | |
3568 | break;; | |
3569 | * ) | |
3570 | break;; | |
3571 | esac | |
3572 | done | |
3573 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3574 | ||
3575 | else | |
3576 | ac_file='' | |
3577 | fi | |
3578 | if test -z "$ac_file"; then : | |
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3580 | $as_echo "no" >&6; } | |
3581 | $as_echo "$as_me: failed program was:" >&5 | |
3582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3583 | ||
3584 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3585 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3586 | as_fn_error 77 "C compiler cannot create executables | |
3587 | See \`config.log' for more details" "$LINENO" 5; } | |
3588 | else | |
3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3590 | $as_echo "yes" >&6; } | |
3591 | fi | |
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3593 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3595 | $as_echo "$ac_file" >&6; } | |
3596 | ac_exeext=$ac_cv_exeext | |
3597 | ||
3598 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3599 | ac_clean_files=$ac_clean_files_save | |
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3601 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3602 | if { { ac_try="$ac_link" | |
3603 | case "(($ac_try" in | |
3604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3605 | *) ac_try_echo=$ac_try;; | |
3606 | esac | |
3607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3608 | $as_echo "$ac_try_echo"; } >&5 | |
3609 | (eval "$ac_link") 2>&5 | |
3610 | ac_status=$? | |
3611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3612 | test $ac_status = 0; }; then : | |
3613 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3614 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3615 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3616 | # `rm'. | |
3617 | for ac_file in conftest.exe conftest conftest.*; do | |
3618 | test -f "$ac_file" || continue | |
3619 | case $ac_file in | |
3620 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3621 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3622 | break;; | |
3623 | * ) break;; | |
3624 | esac | |
3625 | done | |
3626 | else | |
3627 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3628 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3629 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3630 | See \`config.log' for more details" "$LINENO" 5; } | |
3631 | fi | |
3632 | rm -f conftest conftest$ac_cv_exeext | |
3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3634 | $as_echo "$ac_cv_exeext" >&6; } | |
3635 | ||
3636 | rm -f conftest.$ac_ext | |
3637 | EXEEXT=$ac_cv_exeext | |
3638 | ac_exeext=$EXEEXT | |
3639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3640 | /* end confdefs.h. */ | |
3641 | #include <stdio.h> | |
3642 | int | |
3643 | main () | |
3644 | { | |
3645 | FILE *f = fopen ("conftest.out", "w"); | |
3646 | return ferror (f) || fclose (f) != 0; | |
3647 | ||
3648 | ; | |
3649 | return 0; | |
3650 | } | |
3651 | _ACEOF | |
3652 | ac_clean_files="$ac_clean_files conftest.out" | |
3653 | # Check that the compiler produces executables we can run. If not, either | |
3654 | # the compiler is broken, or we cross compile. | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3656 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3657 | if test "$cross_compiling" != yes; then | |
3658 | { { ac_try="$ac_link" | |
3659 | case "(($ac_try" in | |
3660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3661 | *) ac_try_echo=$ac_try;; | |
3662 | esac | |
3663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3664 | $as_echo "$ac_try_echo"; } >&5 | |
3665 | (eval "$ac_link") 2>&5 | |
3666 | ac_status=$? | |
3667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3668 | test $ac_status = 0; } | |
3669 | if { ac_try='./conftest$ac_cv_exeext' | |
3670 | { { case "(($ac_try" in | |
3671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3672 | *) ac_try_echo=$ac_try;; | |
3673 | esac | |
3674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3675 | $as_echo "$ac_try_echo"; } >&5 | |
3676 | (eval "$ac_try") 2>&5 | |
3677 | ac_status=$? | |
3678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3679 | test $ac_status = 0; }; }; then | |
3680 | cross_compiling=no | |
3681 | else | |
3682 | if test "$cross_compiling" = maybe; then | |
3683 | cross_compiling=yes | |
3684 | else | |
3685 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3686 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3687 | as_fn_error $? "cannot run C compiled programs. | |
3688 | If you meant to cross compile, use \`--host'. | |
3689 | See \`config.log' for more details" "$LINENO" 5; } | |
3690 | fi | |
3691 | fi | |
3692 | fi | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3694 | $as_echo "$cross_compiling" >&6; } | |
3695 | ||
3696 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3697 | ac_clean_files=$ac_clean_files_save | |
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3699 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3700 | if ${ac_cv_objext+:} false; then : | |
3701 | $as_echo_n "(cached) " >&6 | |
3702 | else | |
3703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3704 | /* end confdefs.h. */ | |
3705 | ||
3706 | int | |
3707 | main () | |
3708 | { | |
3709 | ||
3710 | ; | |
3711 | return 0; | |
3712 | } | |
3713 | _ACEOF | |
3714 | rm -f conftest.o conftest.obj | |
3715 | if { { ac_try="$ac_compile" | |
3716 | case "(($ac_try" in | |
3717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3718 | *) ac_try_echo=$ac_try;; | |
3719 | esac | |
3720 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3721 | $as_echo "$ac_try_echo"; } >&5 | |
3722 | (eval "$ac_compile") 2>&5 | |
3723 | ac_status=$? | |
3724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3725 | test $ac_status = 0; }; then : | |
3726 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3727 | test -f "$ac_file" || continue; | |
3728 | case $ac_file in | |
3729 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3730 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3731 | break;; | |
3732 | esac | |
3733 | done | |
3734 | else | |
3735 | $as_echo "$as_me: failed program was:" >&5 | |
3736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3737 | ||
3738 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3739 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3740 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3741 | See \`config.log' for more details" "$LINENO" 5; } | |
3742 | fi | |
3743 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3744 | fi | |
3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3746 | $as_echo "$ac_cv_objext" >&6; } | |
3747 | OBJEXT=$ac_cv_objext | |
3748 | ac_objext=$OBJEXT | |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3750 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3751 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3752 | $as_echo_n "(cached) " >&6 | |
3753 | else | |
3754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3755 | /* end confdefs.h. */ | |
3756 | ||
3757 | int | |
3758 | main () | |
3759 | { | |
3760 | #ifndef __GNUC__ | |
3761 | choke me | |
3762 | #endif | |
3763 | ||
3764 | ; | |
3765 | return 0; | |
3766 | } | |
3767 | _ACEOF | |
3768 | if ac_fn_c_try_compile "$LINENO"; then : | |
3769 | ac_compiler_gnu=yes | |
3770 | else | |
3771 | ac_compiler_gnu=no | |
3772 | fi | |
3773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3774 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3775 | ||
3776 | fi | |
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3778 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3779 | if test $ac_compiler_gnu = yes; then | |
3780 | GCC=yes | |
3781 | else | |
3782 | GCC= | |
3783 | fi | |
3784 | ac_test_CFLAGS=${CFLAGS+set} | |
3785 | ac_save_CFLAGS=$CFLAGS | |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3787 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3788 | if ${ac_cv_prog_cc_g+:} false; then : | |
3789 | $as_echo_n "(cached) " >&6 | |
3790 | else | |
3791 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3792 | ac_c_werror_flag=yes | |
3793 | ac_cv_prog_cc_g=no | |
3794 | CFLAGS="-g" | |
3795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3796 | /* end confdefs.h. */ | |
3797 | ||
3798 | int | |
3799 | main () | |
3800 | { | |
3801 | ||
3802 | ; | |
3803 | return 0; | |
3804 | } | |
3805 | _ACEOF | |
3806 | if ac_fn_c_try_compile "$LINENO"; then : | |
3807 | ac_cv_prog_cc_g=yes | |
3808 | else | |
3809 | CFLAGS="" | |
3810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3811 | /* end confdefs.h. */ | |
3812 | ||
3813 | int | |
3814 | main () | |
3815 | { | |
3816 | ||
3817 | ; | |
3818 | return 0; | |
3819 | } | |
3820 | _ACEOF | |
3821 | if ac_fn_c_try_compile "$LINENO"; then : | |
3822 | ||
3823 | else | |
3824 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3825 | CFLAGS="-g" | |
3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3827 | /* end confdefs.h. */ | |
3828 | ||
3829 | int | |
3830 | main () | |
3831 | { | |
3832 | ||
3833 | ; | |
3834 | return 0; | |
3835 | } | |
3836 | _ACEOF | |
3837 | if ac_fn_c_try_compile "$LINENO"; then : | |
3838 | ac_cv_prog_cc_g=yes | |
3839 | fi | |
3840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3841 | fi | |
3842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3843 | fi | |
3844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3845 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3846 | fi | |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3848 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3849 | if test "$ac_test_CFLAGS" = set; then | |
3850 | CFLAGS=$ac_save_CFLAGS | |
3851 | elif test $ac_cv_prog_cc_g = yes; then | |
3852 | if test "$GCC" = yes; then | |
3853 | CFLAGS="-g -O2" | |
3854 | else | |
3855 | CFLAGS="-g" | |
3856 | fi | |
3857 | else | |
3858 | if test "$GCC" = yes; then | |
3859 | CFLAGS="-O2" | |
3860 | else | |
3861 | CFLAGS= | |
3862 | fi | |
3863 | fi | |
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3865 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3866 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3867 | $as_echo_n "(cached) " >&6 | |
3868 | else | |
3869 | ac_cv_prog_cc_c89=no | |
3870 | ac_save_CC=$CC | |
3871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3872 | /* end confdefs.h. */ | |
3873 | #include <stdarg.h> | |
3874 | #include <stdio.h> | |
3875 | struct stat; | |
3876 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3877 | struct buf { int x; }; | |
3878 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3879 | static char *e (p, i) | |
3880 | char **p; | |
3881 | int i; | |
3882 | { | |
3883 | return p[i]; | |
3884 | } | |
3885 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3886 | { | |
3887 | char *s; | |
3888 | va_list v; | |
3889 | va_start (v,p); | |
3890 | s = g (p, va_arg (v,int)); | |
3891 | va_end (v); | |
3892 | return s; | |
3893 | } | |
3894 | ||
3895 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3896 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3897 | These don't provoke an error unfortunately, instead are silently treated | |
3898 | as 'x'. The following induces an error, until -std is added to get | |
3899 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3900 | array size at least. It's necessary to write '\x00'==0 to get something | |
3901 | that's true only with -std. */ | |
3902 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3903 | ||
3904 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3905 | inside strings and character constants. */ | |
3906 | #define FOO(x) 'x' | |
3907 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3908 | ||
3909 | int test (int i, double x); | |
3910 | struct s1 {int (*f) (int a);}; | |
3911 | struct s2 {int (*f) (double a);}; | |
3912 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3913 | int argc; | |
3914 | char **argv; | |
3915 | int | |
3916 | main () | |
3917 | { | |
3918 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3919 | ; | |
3920 | return 0; | |
3921 | } | |
3922 | _ACEOF | |
3923 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3924 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3925 | do | |
3926 | CC="$ac_save_CC $ac_arg" | |
3927 | if ac_fn_c_try_compile "$LINENO"; then : | |
3928 | ac_cv_prog_cc_c89=$ac_arg | |
3929 | fi | |
3930 | rm -f core conftest.err conftest.$ac_objext | |
3931 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3932 | done | |
3933 | rm -f conftest.$ac_ext | |
3934 | CC=$ac_save_CC | |
3935 | ||
3936 | fi | |
3937 | # AC_CACHE_VAL | |
3938 | case "x$ac_cv_prog_cc_c89" in | |
3939 | x) | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3941 | $as_echo "none needed" >&6; } ;; | |
3942 | xno) | |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3944 | $as_echo "unsupported" >&6; } ;; | |
3945 | *) | |
3946 | CC="$CC $ac_cv_prog_cc_c89" | |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3948 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3949 | esac | |
3950 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3951 | ||
3952 | fi | |
3953 | ||
3954 | ac_ext=c | |
3955 | ac_cpp='$CPP $CPPFLAGS' | |
3956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3959 | ||
3960 | ac_ext=c | |
3961 | ac_cpp='$CPP $CPPFLAGS' | |
3962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3966 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3967 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3968 | $as_echo_n "(cached) " >&6 | |
3969 | else | |
3970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3971 | /* end confdefs.h. */ | |
3972 | ||
3973 | int | |
3974 | main () | |
3975 | { | |
3976 | ||
3977 | ; | |
3978 | return 0; | |
3979 | } | |
3980 | _ACEOF | |
3981 | # Make sure it works both with $CC and with simple cc. | |
3982 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3983 | # compilers refuse to overwrite an existing .o file with -o, | |
3984 | # though they will create one. | |
3985 | am_cv_prog_cc_c_o=yes | |
3986 | for am_i in 1 2; do | |
3987 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3988 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3989 | ac_status=$? | |
3990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3991 | (exit $ac_status); } \ | |
3992 | && test -f conftest2.$ac_objext; then | |
3993 | : OK | |
3994 | else | |
3995 | am_cv_prog_cc_c_o=no | |
3996 | break | |
3997 | fi | |
3998 | done | |
3999 | rm -f core conftest* | |
4000 | unset am_i | |
4001 | fi | |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4003 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4004 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4005 | # Losing compiler, so override with the script. | |
4006 | # FIXME: It is wrong to rewrite CC. | |
4007 | # But if we don't then we get into trouble of one sort or another. | |
4008 | # A longer-term fix would be to have automake use am__CC in this case, | |
4009 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4010 | CC="$am_aux_dir/compile $CC" | |
4011 | fi | |
4012 | ac_ext=c | |
4013 | ac_cpp='$CPP $CPPFLAGS' | |
4014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4017 | ||
4018 | DEPDIR="${am__leading_dot}deps" | |
4019 | ||
4020 | ac_config_commands="$ac_config_commands depfiles" | |
4021 | ||
4022 | ||
4023 | am_make=${MAKE-make} | |
4024 | cat > confinc << 'END' | |
4025 | am__doit: | |
4026 | @echo this is the am__doit target | |
4027 | .PHONY: am__doit | |
4028 | END | |
4029 | # If we don't find an include directive, just comment out the code. | |
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4031 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4032 | am__include="#" | |
4033 | am__quote= | |
4034 | _am_result=none | |
4035 | # First try GNU make style include. | |
4036 | echo "include confinc" > confmf | |
4037 | # Ignore all kinds of additional output from 'make'. | |
4038 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4039 | *the\ am__doit\ target*) | |
4040 | am__include=include | |
4041 | am__quote= | |
4042 | _am_result=GNU | |
4043 | ;; | |
4044 | esac | |
4045 | # Now try BSD make style include. | |
4046 | if test "$am__include" = "#"; then | |
4047 | echo '.include "confinc"' > confmf | |
4048 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4049 | *the\ am__doit\ target*) | |
4050 | am__include=.include | |
4051 | am__quote="\"" | |
4052 | _am_result=BSD | |
4053 | ;; | |
4054 | esac | |
4055 | fi | |
4056 | ||
4057 | ||
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4059 | $as_echo "$_am_result" >&6; } | |
4060 | rm -f confinc confmf | |
4061 | ||
4062 | # Check whether --enable-dependency-tracking was given. | |
4063 | if test "${enable_dependency_tracking+set}" = set; then : | |
4064 | enableval=$enable_dependency_tracking; | |
4065 | fi | |
4066 | ||
4067 | if test "x$enable_dependency_tracking" != xno; then | |
4068 | am_depcomp="$ac_aux_dir/depcomp" | |
4069 | AMDEPBACKSLASH='\' | |
4070 | am__nodep='_no' | |
4071 | fi | |
4072 | if test "x$enable_dependency_tracking" != xno; then | |
4073 | AMDEP_TRUE= | |
4074 | AMDEP_FALSE='#' | |
4075 | else | |
4076 | AMDEP_TRUE='#' | |
4077 | AMDEP_FALSE= | |
4078 | fi | |
4079 | ||
4080 | ||
4081 | ||
4082 | depcc="$CC" am_compiler_list= | |
4083 | ||
4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4085 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4086 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4087 | $as_echo_n "(cached) " >&6 | |
4088 | else | |
4089 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4090 | # We make a subdir and do the tests there. Otherwise we can end up | |
4091 | # making bogus files that we don't know about and never remove. For | |
4092 | # instance it was reported that on HP-UX the gcc test will end up | |
4093 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4094 | # in D". | |
4095 | rm -rf conftest.dir | |
4096 | mkdir conftest.dir | |
4097 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4098 | # using a relative directory. | |
4099 | cp "$am_depcomp" conftest.dir | |
4100 | cd conftest.dir | |
4101 | # We will build objects and dependencies in a subdirectory because | |
4102 | # it helps to detect inapplicable dependency modes. For instance | |
4103 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4104 | # side effect of compilation, but ICC will put the dependencies in | |
4105 | # the current directory while Tru64 will put them in the object | |
4106 | # directory. | |
4107 | mkdir sub | |
4108 | ||
4109 | am_cv_CC_dependencies_compiler_type=none | |
4110 | if test "$am_compiler_list" = ""; then | |
4111 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4112 | fi | |
4113 | am__universal=false | |
4114 | case " $depcc " in #( | |
4115 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4116 | esac | |
4117 | ||
4118 | for depmode in $am_compiler_list; do | |
4119 | # Setup a source with many dependencies, because some compilers | |
4120 | # like to wrap large dependency lists on column 80 (with \), and | |
4121 | # we should not choose a depcomp mode which is confused by this. | |
4122 | # | |
4123 | # We need to recreate these files for each test, as the compiler may | |
4124 | # overwrite some of them when testing with obscure command lines. | |
4125 | # This happens at least with the AIX C compiler. | |
4126 | : > sub/conftest.c | |
4127 | for i in 1 2 3 4 5 6; do | |
4128 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4129 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4130 | # Solaris 10 /bin/sh. | |
4131 | echo '/* dummy */' > sub/conftst$i.h | |
4132 | done | |
4133 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4134 | ||
4135 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4136 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4137 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4138 | # versions had trouble with output in subdirs. | |
4139 | am__obj=sub/conftest.${OBJEXT-o} | |
4140 | am__minus_obj="-o $am__obj" | |
4141 | case $depmode in | |
4142 | gcc) | |
4143 | # This depmode causes a compiler race in universal mode. | |
4144 | test "$am__universal" = false || continue | |
4145 | ;; | |
4146 | nosideeffect) | |
4147 | # After this tag, mechanisms are not by side-effect, so they'll | |
4148 | # only be used when explicitly requested. | |
4149 | if test "x$enable_dependency_tracking" = xyes; then | |
4150 | continue | |
4151 | else | |
4152 | break | |
4153 | fi | |
4154 | ;; | |
4155 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4156 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4157 | # not run yet. These depmodes are late enough in the game, and | |
4158 | # so weak that their functioning should not be impacted. | |
4159 | am__obj=conftest.${OBJEXT-o} | |
4160 | am__minus_obj= | |
4161 | ;; | |
4162 | none) break ;; | |
4163 | esac | |
4164 | if depmode=$depmode \ | |
4165 | source=sub/conftest.c object=$am__obj \ | |
4166 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4167 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4168 | >/dev/null 2>conftest.err && | |
4169 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4170 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4171 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4172 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4173 | # icc doesn't choke on unknown options, it will just issue warnings | |
4174 | # or remarks (even with -Werror). So we grep stderr for any message | |
4175 | # that says an option was ignored or not supported. | |
4176 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4177 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4178 | # The diagnosis changed in icc 8.0: | |
4179 | # icc: Command line remark: option '-MP' not supported | |
4180 | if (grep 'ignoring option' conftest.err || | |
4181 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4182 | am_cv_CC_dependencies_compiler_type=$depmode | |
4183 | break | |
4184 | fi | |
4185 | fi | |
4186 | done | |
4187 | ||
4188 | cd .. | |
4189 | rm -rf conftest.dir | |
4190 | else | |
4191 | am_cv_CC_dependencies_compiler_type=none | |
4192 | fi | |
4193 | ||
4194 | fi | |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4196 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4197 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4198 | ||
4199 | if | |
4200 | test "x$enable_dependency_tracking" != xno \ | |
4201 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4202 | am__fastdepCC_TRUE= | |
4203 | am__fastdepCC_FALSE='#' | |
4204 | else | |
4205 | am__fastdepCC_TRUE='#' | |
4206 | am__fastdepCC_FALSE= | |
4207 | fi | |
4208 | ||
4209 | ||
4210 | ac_ext=cpp | |
4211 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4215 | if test -z "$CXX"; then | |
4216 | if test -n "$CCC"; then | |
4217 | CXX=$CCC | |
4218 | else | |
4219 | if test -n "$ac_tool_prefix"; then | |
4220 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4221 | do | |
4222 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4223 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4225 | $as_echo_n "checking for $ac_word... " >&6; } | |
4226 | if ${ac_cv_prog_CXX+:} false; then : | |
4227 | $as_echo_n "(cached) " >&6 | |
4228 | else | |
4229 | if test -n "$CXX"; then | |
4230 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4231 | else | |
4232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4233 | for as_dir in $PATH | |
4234 | do | |
4235 | IFS=$as_save_IFS | |
4236 | test -z "$as_dir" && as_dir=. | |
4237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4239 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4241 | break 2 | |
4242 | fi | |
4243 | done | |
4244 | done | |
4245 | IFS=$as_save_IFS | |
4246 | ||
4247 | fi | |
4248 | fi | |
4249 | CXX=$ac_cv_prog_CXX | |
4250 | if test -n "$CXX"; then | |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4252 | $as_echo "$CXX" >&6; } | |
4253 | else | |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4255 | $as_echo "no" >&6; } | |
4256 | fi | |
4257 | ||
4258 | ||
4259 | test -n "$CXX" && break | |
4260 | done | |
4261 | fi | |
4262 | if test -z "$CXX"; then | |
4263 | ac_ct_CXX=$CXX | |
4264 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4265 | do | |
4266 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4267 | set dummy $ac_prog; ac_word=$2 | |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4269 | $as_echo_n "checking for $ac_word... " >&6; } | |
4270 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
4271 | $as_echo_n "(cached) " >&6 | |
4272 | else | |
4273 | if test -n "$ac_ct_CXX"; then | |
4274 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4275 | else | |
4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4277 | for as_dir in $PATH | |
4278 | do | |
4279 | IFS=$as_save_IFS | |
4280 | test -z "$as_dir" && as_dir=. | |
4281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4283 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4285 | break 2 | |
4286 | fi | |
4287 | done | |
4288 | done | |
4289 | IFS=$as_save_IFS | |
4290 | ||
4291 | fi | |
4292 | fi | |
4293 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4294 | if test -n "$ac_ct_CXX"; then | |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4296 | $as_echo "$ac_ct_CXX" >&6; } | |
4297 | else | |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4299 | $as_echo "no" >&6; } | |
4300 | fi | |
4301 | ||
4302 | ||
4303 | test -n "$ac_ct_CXX" && break | |
4304 | done | |
4305 | ||
4306 | if test "x$ac_ct_CXX" = x; then | |
4307 | CXX="g++" | |
4308 | else | |
4309 | case $cross_compiling:$ac_tool_warned in | |
4310 | yes:) | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4313 | ac_tool_warned=yes ;; | |
4314 | esac | |
4315 | CXX=$ac_ct_CXX | |
4316 | fi | |
4317 | fi | |
4318 | ||
4319 | fi | |
4320 | fi | |
4321 | # Provide some information about the compiler. | |
4322 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4323 | set X $ac_compile | |
4324 | ac_compiler=$2 | |
4325 | for ac_option in --version -v -V -qversion; do | |
4326 | { { ac_try="$ac_compiler $ac_option >&5" | |
4327 | case "(($ac_try" in | |
4328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4329 | *) ac_try_echo=$ac_try;; | |
4330 | esac | |
4331 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4332 | $as_echo "$ac_try_echo"; } >&5 | |
4333 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4334 | ac_status=$? | |
4335 | if test -s conftest.err; then | |
4336 | sed '10a\ | |
4337 | ... rest of stderr output deleted ... | |
4338 | 10q' conftest.err >conftest.er1 | |
4339 | cat conftest.er1 >&5 | |
4340 | fi | |
4341 | rm -f conftest.er1 conftest.err | |
4342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4343 | test $ac_status = 0; } | |
4344 | done | |
4345 | ||
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
4347 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4348 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
4349 | $as_echo_n "(cached) " >&6 | |
4350 | else | |
4351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4352 | /* end confdefs.h. */ | |
4353 | ||
4354 | int | |
4355 | main () | |
4356 | { | |
4357 | #ifndef __GNUC__ | |
4358 | choke me | |
4359 | #endif | |
4360 | ||
4361 | ; | |
4362 | return 0; | |
4363 | } | |
4364 | _ACEOF | |
4365 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4366 | ac_compiler_gnu=yes | |
4367 | else | |
4368 | ac_compiler_gnu=no | |
4369 | fi | |
4370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4371 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4372 | ||
4373 | fi | |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4375 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4376 | if test $ac_compiler_gnu = yes; then | |
4377 | GXX=yes | |
4378 | else | |
4379 | GXX= | |
4380 | fi | |
4381 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4382 | ac_save_CXXFLAGS=$CXXFLAGS | |
4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4384 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4385 | if ${ac_cv_prog_cxx_g+:} false; then : | |
4386 | $as_echo_n "(cached) " >&6 | |
4387 | else | |
4388 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4389 | ac_cxx_werror_flag=yes | |
4390 | ac_cv_prog_cxx_g=no | |
4391 | CXXFLAGS="-g" | |
4392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4393 | /* end confdefs.h. */ | |
4394 | ||
4395 | int | |
4396 | main () | |
4397 | { | |
4398 | ||
4399 | ; | |
4400 | return 0; | |
4401 | } | |
4402 | _ACEOF | |
4403 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4404 | ac_cv_prog_cxx_g=yes | |
4405 | else | |
4406 | CXXFLAGS="" | |
4407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4408 | /* end confdefs.h. */ | |
4409 | ||
4410 | int | |
4411 | main () | |
4412 | { | |
4413 | ||
4414 | ; | |
4415 | return 0; | |
4416 | } | |
4417 | _ACEOF | |
4418 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4419 | ||
4420 | else | |
4421 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4422 | CXXFLAGS="-g" | |
4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4424 | /* end confdefs.h. */ | |
4425 | ||
4426 | int | |
4427 | main () | |
4428 | { | |
4429 | ||
4430 | ; | |
4431 | return 0; | |
4432 | } | |
4433 | _ACEOF | |
4434 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
4435 | ac_cv_prog_cxx_g=yes | |
4436 | fi | |
4437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4438 | fi | |
4439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4440 | fi | |
4441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4442 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4443 | fi | |
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4445 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4446 | if test "$ac_test_CXXFLAGS" = set; then | |
4447 | CXXFLAGS=$ac_save_CXXFLAGS | |
4448 | elif test $ac_cv_prog_cxx_g = yes; then | |
4449 | if test "$GXX" = yes; then | |
4450 | CXXFLAGS="-g -O2" | |
4451 | else | |
4452 | CXXFLAGS="-g" | |
4453 | fi | |
4454 | else | |
4455 | if test "$GXX" = yes; then | |
4456 | CXXFLAGS="-O2" | |
4457 | else | |
4458 | CXXFLAGS= | |
4459 | fi | |
4460 | fi | |
4461 | ac_ext=c | |
4462 | ac_cpp='$CPP $CPPFLAGS' | |
4463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4466 | ||
4467 | depcc="$CXX" am_compiler_list= | |
4468 | ||
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4470 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4471 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
4472 | $as_echo_n "(cached) " >&6 | |
4473 | else | |
4474 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4475 | # We make a subdir and do the tests there. Otherwise we can end up | |
4476 | # making bogus files that we don't know about and never remove. For | |
4477 | # instance it was reported that on HP-UX the gcc test will end up | |
4478 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4479 | # in D". | |
4480 | rm -rf conftest.dir | |
4481 | mkdir conftest.dir | |
4482 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4483 | # using a relative directory. | |
4484 | cp "$am_depcomp" conftest.dir | |
4485 | cd conftest.dir | |
4486 | # We will build objects and dependencies in a subdirectory because | |
4487 | # it helps to detect inapplicable dependency modes. For instance | |
4488 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4489 | # side effect of compilation, but ICC will put the dependencies in | |
4490 | # the current directory while Tru64 will put them in the object | |
4491 | # directory. | |
4492 | mkdir sub | |
4493 | ||
4494 | am_cv_CXX_dependencies_compiler_type=none | |
4495 | if test "$am_compiler_list" = ""; then | |
4496 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4497 | fi | |
4498 | am__universal=false | |
4499 | case " $depcc " in #( | |
4500 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4501 | esac | |
4502 | ||
4503 | for depmode in $am_compiler_list; do | |
4504 | # Setup a source with many dependencies, because some compilers | |
4505 | # like to wrap large dependency lists on column 80 (with \), and | |
4506 | # we should not choose a depcomp mode which is confused by this. | |
4507 | # | |
4508 | # We need to recreate these files for each test, as the compiler may | |
4509 | # overwrite some of them when testing with obscure command lines. | |
4510 | # This happens at least with the AIX C compiler. | |
4511 | : > sub/conftest.c | |
4512 | for i in 1 2 3 4 5 6; do | |
4513 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4514 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4515 | # Solaris 10 /bin/sh. | |
4516 | echo '/* dummy */' > sub/conftst$i.h | |
4517 | done | |
4518 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4519 | ||
4520 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4521 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4522 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4523 | # versions had trouble with output in subdirs. | |
4524 | am__obj=sub/conftest.${OBJEXT-o} | |
4525 | am__minus_obj="-o $am__obj" | |
4526 | case $depmode in | |
4527 | gcc) | |
4528 | # This depmode causes a compiler race in universal mode. | |
4529 | test "$am__universal" = false || continue | |
4530 | ;; | |
4531 | nosideeffect) | |
4532 | # After this tag, mechanisms are not by side-effect, so they'll | |
4533 | # only be used when explicitly requested. | |
4534 | if test "x$enable_dependency_tracking" = xyes; then | |
4535 | continue | |
4536 | else | |
4537 | break | |
4538 | fi | |
4539 | ;; | |
4540 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4541 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4542 | # not run yet. These depmodes are late enough in the game, and | |
4543 | # so weak that their functioning should not be impacted. | |
4544 | am__obj=conftest.${OBJEXT-o} | |
4545 | am__minus_obj= | |
4546 | ;; | |
4547 | none) break ;; | |
4548 | esac | |
4549 | if depmode=$depmode \ | |
4550 | source=sub/conftest.c object=$am__obj \ | |
4551 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4552 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4553 | >/dev/null 2>conftest.err && | |
4554 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4555 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4556 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4557 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4558 | # icc doesn't choke on unknown options, it will just issue warnings | |
4559 | # or remarks (even with -Werror). So we grep stderr for any message | |
4560 | # that says an option was ignored or not supported. | |
4561 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4562 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4563 | # The diagnosis changed in icc 8.0: | |
4564 | # icc: Command line remark: option '-MP' not supported | |
4565 | if (grep 'ignoring option' conftest.err || | |
4566 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4567 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4568 | break | |
4569 | fi | |
4570 | fi | |
4571 | done | |
4572 | ||
4573 | cd .. | |
4574 | rm -rf conftest.dir | |
4575 | else | |
4576 | am_cv_CXX_dependencies_compiler_type=none | |
4577 | fi | |
4578 | ||
4579 | fi | |
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4581 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4582 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4583 | ||
4584 | if | |
4585 | test "x$enable_dependency_tracking" != xno \ | |
4586 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4587 | am__fastdepCXX_TRUE= | |
4588 | am__fastdepCXX_FALSE='#' | |
4589 | else | |
4590 | am__fastdepCXX_TRUE='#' | |
4591 | am__fastdepCXX_FALSE= | |
4592 | fi | |
4593 | ||
4594 | ||
4595 | ac_ext=mm | |
4596 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
4597 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4598 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4599 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
4600 | if test -n "$ac_tool_prefix"; then | |
4601 | for ac_prog in g++ objc++ objcxx c++ CXX | |
4602 | do | |
4603 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4604 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4606 | $as_echo_n "checking for $ac_word... " >&6; } | |
4607 | if ${ac_cv_prog_OBJCXX+:} false; then : | |
4608 | $as_echo_n "(cached) " >&6 | |
4609 | else | |
4610 | if test -n "$OBJCXX"; then | |
4611 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
4612 | else | |
4613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4614 | for as_dir in $PATH | |
4615 | do | |
4616 | IFS=$as_save_IFS | |
4617 | test -z "$as_dir" && as_dir=. | |
4618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4620 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
4621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4622 | break 2 | |
4623 | fi | |
4624 | done | |
4625 | done | |
4626 | IFS=$as_save_IFS | |
4627 | ||
4628 | fi | |
4629 | fi | |
4630 | OBJCXX=$ac_cv_prog_OBJCXX | |
4631 | if test -n "$OBJCXX"; then | |
4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
4633 | $as_echo "$OBJCXX" >&6; } | |
4634 | else | |
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4636 | $as_echo "no" >&6; } | |
4637 | fi | |
4638 | ||
4639 | ||
4640 | test -n "$OBJCXX" && break | |
4641 | done | |
4642 | fi | |
4643 | if test -z "$OBJCXX"; then | |
4644 | ac_ct_OBJCXX=$OBJCXX | |
4645 | for ac_prog in g++ objc++ objcxx c++ CXX | |
4646 | do | |
4647 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4648 | set dummy $ac_prog; ac_word=$2 | |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4650 | $as_echo_n "checking for $ac_word... " >&6; } | |
4651 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : | |
4652 | $as_echo_n "(cached) " >&6 | |
4653 | else | |
4654 | if test -n "$ac_ct_OBJCXX"; then | |
4655 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
4656 | else | |
4657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4658 | for as_dir in $PATH | |
4659 | do | |
4660 | IFS=$as_save_IFS | |
4661 | test -z "$as_dir" && as_dir=. | |
4662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4664 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
4665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4666 | break 2 | |
4667 | fi | |
4668 | done | |
4669 | done | |
4670 | IFS=$as_save_IFS | |
4671 | ||
4672 | fi | |
4673 | fi | |
4674 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
4675 | if test -n "$ac_ct_OBJCXX"; then | |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
4677 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
4678 | else | |
4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4680 | $as_echo "no" >&6; } | |
4681 | fi | |
4682 | ||
4683 | ||
4684 | test -n "$ac_ct_OBJCXX" && break | |
4685 | done | |
4686 | ||
4687 | if test "x$ac_ct_OBJCXX" = x; then | |
4688 | OBJCXX="g++" | |
4689 | else | |
4690 | case $cross_compiling:$ac_tool_warned in | |
4691 | yes:) | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4693 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4694 | ac_tool_warned=yes ;; | |
4695 | esac | |
4696 | OBJCXX=$ac_ct_OBJCXX | |
4697 | fi | |
4698 | fi | |
4699 | ||
4700 | # Provide some information about the compiler. | |
4701 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
4702 | set X $ac_compile | |
4703 | ac_compiler=$2 | |
4704 | for ac_option in --version -v -V -qversion; do | |
4705 | { { ac_try="$ac_compiler $ac_option >&5" | |
4706 | case "(($ac_try" in | |
4707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4708 | *) ac_try_echo=$ac_try;; | |
4709 | esac | |
4710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4711 | $as_echo "$ac_try_echo"; } >&5 | |
4712 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4713 | ac_status=$? | |
4714 | if test -s conftest.err; then | |
4715 | sed '10a\ | |
4716 | ... rest of stderr output deleted ... | |
4717 | 10q' conftest.err >conftest.er1 | |
4718 | cat conftest.er1 >&5 | |
4719 | fi | |
4720 | rm -f conftest.er1 conftest.err | |
4721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4722 | test $ac_status = 0; } | |
4723 | done | |
4724 | ||
4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 | |
4726 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
4727 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : | |
4728 | $as_echo_n "(cached) " >&6 | |
4729 | else | |
4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4731 | /* end confdefs.h. */ | |
4732 | ||
4733 | int | |
4734 | main () | |
4735 | { | |
4736 | #ifndef __GNUC__ | |
4737 | choke me | |
4738 | #endif | |
4739 | ||
4740 | ; | |
4741 | return 0; | |
4742 | } | |
4743 | _ACEOF | |
4744 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4745 | ac_compiler_gnu=yes | |
4746 | else | |
4747 | ac_compiler_gnu=no | |
4748 | fi | |
4749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4750 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
4751 | ||
4752 | fi | |
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 | |
4754 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
4755 | if test $ac_compiler_gnu = yes; then | |
4756 | GOBJCXX=yes | |
4757 | else | |
4758 | GOBJCXX= | |
4759 | fi | |
4760 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
4761 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
4763 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
4764 | if ${ac_cv_prog_objcxx_g+:} false; then : | |
4765 | $as_echo_n "(cached) " >&6 | |
4766 | else | |
4767 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
4768 | ac_objcxx_werror_flag=yes | |
4769 | ac_cv_prog_objcxx_g=no | |
4770 | OBJCXXFLAGS="-g" | |
4771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4772 | /* end confdefs.h. */ | |
4773 | ||
4774 | int | |
4775 | main () | |
4776 | { | |
4777 | ||
4778 | ; | |
4779 | return 0; | |
4780 | } | |
4781 | _ACEOF | |
4782 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4783 | ac_cv_prog_objcxx_g=yes | |
4784 | else | |
4785 | OBJCXXFLAGS="" | |
4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4787 | /* end confdefs.h. */ | |
4788 | ||
4789 | int | |
4790 | main () | |
4791 | { | |
4792 | ||
4793 | ; | |
4794 | return 0; | |
4795 | } | |
4796 | _ACEOF | |
4797 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4798 | ||
4799 | else | |
4800 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
4801 | OBJCXXFLAGS="-g" | |
4802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4803 | /* end confdefs.h. */ | |
4804 | ||
4805 | int | |
4806 | main () | |
4807 | { | |
4808 | ||
4809 | ; | |
4810 | return 0; | |
4811 | } | |
4812 | _ACEOF | |
4813 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
4814 | ac_cv_prog_objcxx_g=yes | |
4815 | fi | |
4816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4817 | fi | |
4818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4819 | fi | |
4820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4821 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
4822 | fi | |
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
4824 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
4825 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
4826 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
4827 | elif test $ac_cv_prog_objcxx_g = yes; then | |
4828 | if test "$GOBJCXX" = yes; then | |
4829 | OBJCXXFLAGS="-g -O2" | |
4830 | else | |
4831 | OBJCXXFLAGS="-g" | |
4832 | fi | |
4833 | else | |
4834 | if test "$GOBJCXX" = yes; then | |
4835 | OBJCXXFLAGS="-O2" | |
4836 | else | |
4837 | OBJCXXFLAGS= | |
4838 | fi | |
4839 | fi | |
4840 | ac_ext=c | |
4841 | ac_cpp='$CPP $CPPFLAGS' | |
4842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4845 | ||
4846 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' | |
4847 | ||
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4849 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4850 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : | |
4851 | $as_echo_n "(cached) " >&6 | |
4852 | else | |
4853 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4854 | # We make a subdir and do the tests there. Otherwise we can end up | |
4855 | # making bogus files that we don't know about and never remove. For | |
4856 | # instance it was reported that on HP-UX the gcc test will end up | |
4857 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4858 | # in D". | |
4859 | rm -rf conftest.dir | |
4860 | mkdir conftest.dir | |
4861 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4862 | # using a relative directory. | |
4863 | cp "$am_depcomp" conftest.dir | |
4864 | cd conftest.dir | |
4865 | # We will build objects and dependencies in a subdirectory because | |
4866 | # it helps to detect inapplicable dependency modes. For instance | |
4867 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4868 | # side effect of compilation, but ICC will put the dependencies in | |
4869 | # the current directory while Tru64 will put them in the object | |
4870 | # directory. | |
4871 | mkdir sub | |
4872 | ||
4873 | am_cv_OBJCXX_dependencies_compiler_type=none | |
4874 | if test "$am_compiler_list" = ""; then | |
4875 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4876 | fi | |
4877 | am__universal=false | |
4878 | ||
4879 | ||
4880 | for depmode in $am_compiler_list; do | |
4881 | # Setup a source with many dependencies, because some compilers | |
4882 | # like to wrap large dependency lists on column 80 (with \), and | |
4883 | # we should not choose a depcomp mode which is confused by this. | |
4884 | # | |
4885 | # We need to recreate these files for each test, as the compiler may | |
4886 | # overwrite some of them when testing with obscure command lines. | |
4887 | # This happens at least with the AIX C compiler. | |
4888 | : > sub/conftest.c | |
4889 | for i in 1 2 3 4 5 6; do | |
4890 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4891 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4892 | # Solaris 10 /bin/sh. | |
4893 | echo '/* dummy */' > sub/conftst$i.h | |
4894 | done | |
4895 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4896 | ||
4897 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4898 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4899 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4900 | # versions had trouble with output in subdirs. | |
4901 | am__obj=sub/conftest.${OBJEXT-o} | |
4902 | am__minus_obj="-o $am__obj" | |
4903 | case $depmode in | |
4904 | gcc) | |
4905 | # This depmode causes a compiler race in universal mode. | |
4906 | test "$am__universal" = false || continue | |
4907 | ;; | |
4908 | nosideeffect) | |
4909 | # After this tag, mechanisms are not by side-effect, so they'll | |
4910 | # only be used when explicitly requested. | |
4911 | if test "x$enable_dependency_tracking" = xyes; then | |
4912 | continue | |
4913 | else | |
4914 | break | |
4915 | fi | |
4916 | ;; | |
4917 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4918 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4919 | # not run yet. These depmodes are late enough in the game, and | |
4920 | # so weak that their functioning should not be impacted. | |
4921 | am__obj=conftest.${OBJEXT-o} | |
4922 | am__minus_obj= | |
4923 | ;; | |
4924 | none) break ;; | |
4925 | esac | |
4926 | if depmode=$depmode \ | |
4927 | source=sub/conftest.c object=$am__obj \ | |
4928 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4929 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4930 | >/dev/null 2>conftest.err && | |
4931 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4932 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4933 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4934 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4935 | # icc doesn't choke on unknown options, it will just issue warnings | |
4936 | # or remarks (even with -Werror). So we grep stderr for any message | |
4937 | # that says an option was ignored or not supported. | |
4938 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4939 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4940 | # The diagnosis changed in icc 8.0: | |
4941 | # icc: Command line remark: option '-MP' not supported | |
4942 | if (grep 'ignoring option' conftest.err || | |
4943 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4944 | am_cv_OBJCXX_dependencies_compiler_type=$depmode | |
4945 | break | |
4946 | fi | |
4947 | fi | |
4948 | done | |
4949 | ||
4950 | cd .. | |
4951 | rm -rf conftest.dir | |
4952 | else | |
4953 | am_cv_OBJCXX_dependencies_compiler_type=none | |
4954 | fi | |
4955 | ||
4956 | fi | |
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 | |
4958 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } | |
4959 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type | |
4960 | ||
4961 | if | |
4962 | test "x$enable_dependency_tracking" != xno \ | |
4963 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then | |
4964 | am__fastdepOBJCXX_TRUE= | |
4965 | am__fastdepOBJCXX_FALSE='#' | |
4966 | else | |
4967 | am__fastdepOBJCXX_TRUE='#' | |
4968 | am__fastdepOBJCXX_FALSE= | |
4969 | fi | |
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | if test -n "$ac_tool_prefix"; then | |
4975 | for ac_prog in ar lib "link -lib" | |
4976 | do | |
4977 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4978 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4980 | $as_echo_n "checking for $ac_word... " >&6; } | |
4981 | if ${ac_cv_prog_AR+:} false; then : | |
4982 | $as_echo_n "(cached) " >&6 | |
4983 | else | |
4984 | if test -n "$AR"; then | |
4985 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4986 | else | |
4987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4988 | for as_dir in $PATH | |
4989 | do | |
4990 | IFS=$as_save_IFS | |
4991 | test -z "$as_dir" && as_dir=. | |
4992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4994 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4996 | break 2 | |
4997 | fi | |
4998 | done | |
4999 | done | |
5000 | IFS=$as_save_IFS | |
5001 | ||
5002 | fi | |
5003 | fi | |
5004 | AR=$ac_cv_prog_AR | |
5005 | if test -n "$AR"; then | |
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5007 | $as_echo "$AR" >&6; } | |
5008 | else | |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5010 | $as_echo "no" >&6; } | |
5011 | fi | |
5012 | ||
5013 | ||
5014 | test -n "$AR" && break | |
5015 | done | |
5016 | fi | |
5017 | if test -z "$AR"; then | |
5018 | ac_ct_AR=$AR | |
5019 | for ac_prog in ar lib "link -lib" | |
5020 | do | |
5021 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5022 | set dummy $ac_prog; ac_word=$2 | |
5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5024 | $as_echo_n "checking for $ac_word... " >&6; } | |
5025 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5026 | $as_echo_n "(cached) " >&6 | |
5027 | else | |
5028 | if test -n "$ac_ct_AR"; then | |
5029 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5030 | else | |
5031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5032 | for as_dir in $PATH | |
5033 | do | |
5034 | IFS=$as_save_IFS | |
5035 | test -z "$as_dir" && as_dir=. | |
5036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5038 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5040 | break 2 | |
5041 | fi | |
5042 | done | |
5043 | done | |
5044 | IFS=$as_save_IFS | |
5045 | ||
5046 | fi | |
5047 | fi | |
5048 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5049 | if test -n "$ac_ct_AR"; then | |
5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5051 | $as_echo "$ac_ct_AR" >&6; } | |
5052 | else | |
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5054 | $as_echo "no" >&6; } | |
5055 | fi | |
5056 | ||
5057 | ||
5058 | test -n "$ac_ct_AR" && break | |
5059 | done | |
5060 | ||
5061 | if test "x$ac_ct_AR" = x; then | |
5062 | AR="false" | |
5063 | else | |
5064 | case $cross_compiling:$ac_tool_warned in | |
5065 | yes:) | |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5067 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5068 | ac_tool_warned=yes ;; | |
5069 | esac | |
5070 | AR=$ac_ct_AR | |
5071 | fi | |
5072 | fi | |
5073 | ||
5074 | : ${AR=ar} | |
5075 | ||
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5077 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5078 | if ${am_cv_ar_interface+:} false; then : | |
5079 | $as_echo_n "(cached) " >&6 | |
5080 | else | |
5081 | ac_ext=c | |
5082 | ac_cpp='$CPP $CPPFLAGS' | |
5083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5086 | ||
5087 | am_cv_ar_interface=ar | |
5088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5089 | /* end confdefs.h. */ | |
5090 | int some_variable = 0; | |
5091 | _ACEOF | |
5092 | if ac_fn_c_try_compile "$LINENO"; then : | |
5093 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5094 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5095 | (eval $am_ar_try) 2>&5 | |
5096 | ac_status=$? | |
5097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5098 | test $ac_status = 0; } | |
5099 | if test "$ac_status" -eq 0; then | |
5100 | am_cv_ar_interface=ar | |
5101 | else | |
5102 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5103 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5104 | (eval $am_ar_try) 2>&5 | |
5105 | ac_status=$? | |
5106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5107 | test $ac_status = 0; } | |
5108 | if test "$ac_status" -eq 0; then | |
5109 | am_cv_ar_interface=lib | |
5110 | else | |
5111 | am_cv_ar_interface=unknown | |
5112 | fi | |
5113 | fi | |
5114 | rm -f conftest.lib libconftest.a | |
5115 | ||
5116 | fi | |
5117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5118 | ac_ext=c | |
5119 | ac_cpp='$CPP $CPPFLAGS' | |
5120 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5121 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5122 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5123 | ||
5124 | fi | |
5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5126 | $as_echo "$am_cv_ar_interface" >&6; } | |
5127 | ||
5128 | case $am_cv_ar_interface in | |
5129 | ar) | |
5130 | ;; | |
5131 | lib) | |
5132 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5133 | # FIXME: It is wrong to rewrite AR. | |
5134 | # But if we don't then we get into trouble of one sort or another. | |
5135 | # A longer-term fix would be to have automake use am__AR in this case, | |
5136 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5137 | # similar. | |
5138 | AR="$am_aux_dir/ar-lib $AR" | |
5139 | ;; | |
5140 | unknown) | |
5141 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5142 | ;; | |
5143 | esac | |
5144 | ||
5145 | ||
5146 | ||
5147 | case `pwd` in | |
5148 | *\ * | *\ *) | |
5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5150 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5151 | esac | |
5152 | ||
5153 | ||
5154 | ||
5155 | macro_version='2.4.6' | |
5156 | macro_revision='2.4.6' | |
5157 | ||
5158 | ||
5159 | ||
5160 | ||
5161 | ||
5162 | ||
5163 | ||
5164 | ||
5165 | ||
5166 | ||
5167 | ||
5168 | ||
5169 | ||
5170 | ltmain=$ac_aux_dir/ltmain.sh | |
5171 | ||
5172 | # Make sure we can run config.sub. | |
5173 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5174 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5175 | ||
5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
5177 | $as_echo_n "checking build system type... " >&6; } | |
5178 | if ${ac_cv_build+:} false; then : | |
5179 | $as_echo_n "(cached) " >&6 | |
5180 | else | |
5181 | ac_build_alias=$build_alias | |
5182 | test "x$ac_build_alias" = x && | |
5183 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5184 | test "x$ac_build_alias" = x && | |
5185 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5186 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5187 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5188 | ||
5189 | fi | |
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5191 | $as_echo "$ac_cv_build" >&6; } | |
5192 | case $ac_cv_build in | |
5193 | *-*-*) ;; | |
5194 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5195 | esac | |
5196 | build=$ac_cv_build | |
5197 | ac_save_IFS=$IFS; IFS='-' | |
5198 | set x $ac_cv_build | |
5199 | shift | |
5200 | build_cpu=$1 | |
5201 | build_vendor=$2 | |
5202 | shift; shift | |
5203 | # Remember, the first character of IFS is used to create $*, | |
5204 | # except with old shells: | |
5205 | build_os=$* | |
5206 | IFS=$ac_save_IFS | |
5207 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5208 | ||
5209 | ||
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
5211 | $as_echo_n "checking host system type... " >&6; } | |
5212 | if ${ac_cv_host+:} false; then : | |
5213 | $as_echo_n "(cached) " >&6 | |
5214 | else | |
5215 | if test "x$host_alias" = x; then | |
5216 | ac_cv_host=$ac_cv_build | |
5217 | else | |
5218 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5219 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5220 | fi | |
5221 | ||
5222 | fi | |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5224 | $as_echo "$ac_cv_host" >&6; } | |
5225 | case $ac_cv_host in | |
5226 | *-*-*) ;; | |
5227 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
5228 | esac | |
5229 | host=$ac_cv_host | |
5230 | ac_save_IFS=$IFS; IFS='-' | |
5231 | set x $ac_cv_host | |
5232 | shift | |
5233 | host_cpu=$1 | |
5234 | host_vendor=$2 | |
5235 | shift; shift | |
5236 | # Remember, the first character of IFS is used to create $*, | |
5237 | # except with old shells: | |
5238 | host_os=$* | |
5239 | IFS=$ac_save_IFS | |
5240 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5241 | ||
5242 | ||
5243 | # Backslashify metacharacters that are still active within | |
5244 | # double-quoted strings. | |
5245 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5246 | ||
5247 | # Same as above, but do not quote variable references. | |
5248 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5249 | ||
5250 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5251 | # double_quote_subst'ed string. | |
5252 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5253 | ||
5254 | # Sed substitution to delay expansion of an escaped single quote. | |
5255 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5256 | ||
5257 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5258 | no_glob_subst='s/\*/\\\*/g' | |
5259 | ||
5260 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5261 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5262 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5263 | ||
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5265 | $as_echo_n "checking how to print strings... " >&6; } | |
5266 | # Test print first, because it will be a builtin if present. | |
5267 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5268 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5269 | ECHO='print -r --' | |
5270 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5271 | ECHO='printf %s\n' | |
5272 | else | |
5273 | # Use this function as a fallback that always works. | |
5274 | func_fallback_echo () | |
5275 | { | |
5276 | eval 'cat <<_LTECHO_EOF | |
5277 | $1 | |
5278 | _LTECHO_EOF' | |
5279 | } | |
5280 | ECHO='func_fallback_echo' | |
5281 | fi | |
5282 | ||
5283 | # func_echo_all arg... | |
5284 | # Invoke $ECHO with all args, space-separated. | |
5285 | func_echo_all () | |
5286 | { | |
5287 | $ECHO "" | |
5288 | } | |
5289 | ||
5290 | case $ECHO in | |
5291 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5292 | $as_echo "printf" >&6; } ;; | |
5293 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5294 | $as_echo "print -r" >&6; } ;; | |
5295 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5296 | $as_echo "cat" >&6; } ;; | |
5297 | esac | |
5298 | ||
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | ||
5306 | ||
5307 | ||
5308 | ||
5309 | ||
5310 | ||
5311 | ||
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5313 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5314 | if ${ac_cv_path_SED+:} false; then : | |
5315 | $as_echo_n "(cached) " >&6 | |
5316 | else | |
5317 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5318 | for ac_i in 1 2 3 4 5 6 7; do | |
5319 | ac_script="$ac_script$as_nl$ac_script" | |
5320 | done | |
5321 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5322 | { ac_script=; unset ac_script;} | |
5323 | if test -z "$SED"; then | |
5324 | ac_path_SED_found=false | |
5325 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5327 | for as_dir in $PATH | |
5328 | do | |
5329 | IFS=$as_save_IFS | |
5330 | test -z "$as_dir" && as_dir=. | |
5331 | for ac_prog in sed gsed; do | |
5332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5333 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5334 | as_fn_executable_p "$ac_path_SED" || continue | |
5335 | # Check for GNU ac_path_SED and select it if it is found. | |
5336 | # Check for GNU $ac_path_SED | |
5337 | case `"$ac_path_SED" --version 2>&1` in | |
5338 | *GNU*) | |
5339 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5340 | *) | |
5341 | ac_count=0 | |
5342 | $as_echo_n 0123456789 >"conftest.in" | |
5343 | while : | |
5344 | do | |
5345 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5346 | mv "conftest.tmp" "conftest.in" | |
5347 | cp "conftest.in" "conftest.nl" | |
5348 | $as_echo '' >> "conftest.nl" | |
5349 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5350 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5351 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5352 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5353 | # Best one so far, save it but keep looking for a better one | |
5354 | ac_cv_path_SED="$ac_path_SED" | |
5355 | ac_path_SED_max=$ac_count | |
5356 | fi | |
5357 | # 10*(2^10) chars as input seems more than enough | |
5358 | test $ac_count -gt 10 && break | |
5359 | done | |
5360 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5361 | esac | |
5362 | ||
5363 | $ac_path_SED_found && break 3 | |
5364 | done | |
5365 | done | |
5366 | done | |
5367 | IFS=$as_save_IFS | |
5368 | if test -z "$ac_cv_path_SED"; then | |
5369 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5370 | fi | |
5371 | else | |
5372 | ac_cv_path_SED=$SED | |
5373 | fi | |
5374 | ||
5375 | fi | |
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5377 | $as_echo "$ac_cv_path_SED" >&6; } | |
5378 | SED="$ac_cv_path_SED" | |
5379 | rm -f conftest.sed | |
5380 | ||
5381 | test -z "$SED" && SED=sed | |
5382 | Xsed="$SED -e 1s/^X//" | |
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5395 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5396 | if ${ac_cv_path_GREP+:} false; then : | |
5397 | $as_echo_n "(cached) " >&6 | |
5398 | else | |
5399 | if test -z "$GREP"; then | |
5400 | ac_path_GREP_found=false | |
5401 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5403 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5404 | do | |
5405 | IFS=$as_save_IFS | |
5406 | test -z "$as_dir" && as_dir=. | |
5407 | for ac_prog in grep ggrep; do | |
5408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5409 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5410 | as_fn_executable_p "$ac_path_GREP" || continue | |
5411 | # Check for GNU ac_path_GREP and select it if it is found. | |
5412 | # Check for GNU $ac_path_GREP | |
5413 | case `"$ac_path_GREP" --version 2>&1` in | |
5414 | *GNU*) | |
5415 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5416 | *) | |
5417 | ac_count=0 | |
5418 | $as_echo_n 0123456789 >"conftest.in" | |
5419 | while : | |
5420 | do | |
5421 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5422 | mv "conftest.tmp" "conftest.in" | |
5423 | cp "conftest.in" "conftest.nl" | |
5424 | $as_echo 'GREP' >> "conftest.nl" | |
5425 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5426 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5427 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5428 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5429 | # Best one so far, save it but keep looking for a better one | |
5430 | ac_cv_path_GREP="$ac_path_GREP" | |
5431 | ac_path_GREP_max=$ac_count | |
5432 | fi | |
5433 | # 10*(2^10) chars as input seems more than enough | |
5434 | test $ac_count -gt 10 && break | |
5435 | done | |
5436 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5437 | esac | |
5438 | ||
5439 | $ac_path_GREP_found && break 3 | |
5440 | done | |
5441 | done | |
5442 | done | |
5443 | IFS=$as_save_IFS | |
5444 | if test -z "$ac_cv_path_GREP"; then | |
5445 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5446 | fi | |
5447 | else | |
5448 | ac_cv_path_GREP=$GREP | |
5449 | fi | |
5450 | ||
5451 | fi | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5453 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5454 | GREP="$ac_cv_path_GREP" | |
5455 | ||
5456 | ||
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5458 | $as_echo_n "checking for egrep... " >&6; } | |
5459 | if ${ac_cv_path_EGREP+:} false; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5463 | then ac_cv_path_EGREP="$GREP -E" | |
5464 | else | |
5465 | if test -z "$EGREP"; then | |
5466 | ac_path_EGREP_found=false | |
5467 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5469 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5470 | do | |
5471 | IFS=$as_save_IFS | |
5472 | test -z "$as_dir" && as_dir=. | |
5473 | for ac_prog in egrep; do | |
5474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5475 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5476 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5477 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5478 | # Check for GNU $ac_path_EGREP | |
5479 | case `"$ac_path_EGREP" --version 2>&1` in | |
5480 | *GNU*) | |
5481 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5482 | *) | |
5483 | ac_count=0 | |
5484 | $as_echo_n 0123456789 >"conftest.in" | |
5485 | while : | |
5486 | do | |
5487 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5488 | mv "conftest.tmp" "conftest.in" | |
5489 | cp "conftest.in" "conftest.nl" | |
5490 | $as_echo 'EGREP' >> "conftest.nl" | |
5491 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5492 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5493 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5494 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5495 | # Best one so far, save it but keep looking for a better one | |
5496 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5497 | ac_path_EGREP_max=$ac_count | |
5498 | fi | |
5499 | # 10*(2^10) chars as input seems more than enough | |
5500 | test $ac_count -gt 10 && break | |
5501 | done | |
5502 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5503 | esac | |
5504 | ||
5505 | $ac_path_EGREP_found && break 3 | |
5506 | done | |
5507 | done | |
5508 | done | |
5509 | IFS=$as_save_IFS | |
5510 | if test -z "$ac_cv_path_EGREP"; then | |
5511 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5512 | fi | |
5513 | else | |
5514 | ac_cv_path_EGREP=$EGREP | |
5515 | fi | |
5516 | ||
5517 | fi | |
5518 | fi | |
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5520 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5521 | EGREP="$ac_cv_path_EGREP" | |
5522 | ||
5523 | ||
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5525 | $as_echo_n "checking for fgrep... " >&6; } | |
5526 | if ${ac_cv_path_FGREP+:} false; then : | |
5527 | $as_echo_n "(cached) " >&6 | |
5528 | else | |
5529 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5530 | then ac_cv_path_FGREP="$GREP -F" | |
5531 | else | |
5532 | if test -z "$FGREP"; then | |
5533 | ac_path_FGREP_found=false | |
5534 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5536 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5537 | do | |
5538 | IFS=$as_save_IFS | |
5539 | test -z "$as_dir" && as_dir=. | |
5540 | for ac_prog in fgrep; do | |
5541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5542 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5543 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5544 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5545 | # Check for GNU $ac_path_FGREP | |
5546 | case `"$ac_path_FGREP" --version 2>&1` in | |
5547 | *GNU*) | |
5548 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5549 | *) | |
5550 | ac_count=0 | |
5551 | $as_echo_n 0123456789 >"conftest.in" | |
5552 | while : | |
5553 | do | |
5554 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5555 | mv "conftest.tmp" "conftest.in" | |
5556 | cp "conftest.in" "conftest.nl" | |
5557 | $as_echo 'FGREP' >> "conftest.nl" | |
5558 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5559 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5560 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5561 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5562 | # Best one so far, save it but keep looking for a better one | |
5563 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5564 | ac_path_FGREP_max=$ac_count | |
5565 | fi | |
5566 | # 10*(2^10) chars as input seems more than enough | |
5567 | test $ac_count -gt 10 && break | |
5568 | done | |
5569 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5570 | esac | |
5571 | ||
5572 | $ac_path_FGREP_found && break 3 | |
5573 | done | |
5574 | done | |
5575 | done | |
5576 | IFS=$as_save_IFS | |
5577 | if test -z "$ac_cv_path_FGREP"; then | |
5578 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5579 | fi | |
5580 | else | |
5581 | ac_cv_path_FGREP=$FGREP | |
5582 | fi | |
5583 | ||
5584 | fi | |
5585 | fi | |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5587 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5588 | FGREP="$ac_cv_path_FGREP" | |
5589 | ||
5590 | ||
5591 | test -z "$GREP" && GREP=grep | |
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
5605 | ||
5606 | ||
5607 | ||
5608 | ||
5609 | ||
5610 | ||
5611 | # Check whether --with-gnu-ld was given. | |
5612 | if test "${with_gnu_ld+set}" = set; then : | |
5613 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
5614 | else | |
5615 | with_gnu_ld=no | |
5616 | fi | |
5617 | ||
5618 | ac_prog=ld | |
5619 | if test yes = "$GCC"; then | |
5620 | # Check if gcc -print-prog-name=ld gives a path. | |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5622 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5623 | case $host in | |
5624 | *-*-mingw*) | |
5625 | # gcc leaves a trailing carriage return, which upsets mingw | |
5626 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5627 | *) | |
5628 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5629 | esac | |
5630 | case $ac_prog in | |
5631 | # Accept absolute paths. | |
5632 | [\\/]* | ?:[\\/]*) | |
5633 | re_direlt='/[^/][^/]*/\.\./' | |
5634 | # Canonicalize the pathname of ld | |
5635 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5636 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5637 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5638 | done | |
5639 | test -z "$LD" && LD=$ac_prog | |
5640 | ;; | |
5641 | "") | |
5642 | # If it fails, then pretend we aren't using GCC. | |
5643 | ac_prog=ld | |
5644 | ;; | |
5645 | *) | |
5646 | # If it is relative, then search for the first ld in PATH. | |
5647 | with_gnu_ld=unknown | |
5648 | ;; | |
5649 | esac | |
5650 | elif test yes = "$with_gnu_ld"; then | |
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5652 | $as_echo_n "checking for GNU ld... " >&6; } | |
5653 | else | |
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5655 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5656 | fi | |
5657 | if ${lt_cv_path_LD+:} false; then : | |
5658 | $as_echo_n "(cached) " >&6 | |
5659 | else | |
5660 | if test -z "$LD"; then | |
5661 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
5662 | for ac_dir in $PATH; do | |
5663 | IFS=$lt_save_ifs | |
5664 | test -z "$ac_dir" && ac_dir=. | |
5665 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5666 | lt_cv_path_LD=$ac_dir/$ac_prog | |
5667 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5668 | # but apparently some variants of GNU ld only accept -v. | |
5669 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5670 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5671 | *GNU* | *'with BFD'*) | |
5672 | test no != "$with_gnu_ld" && break | |
5673 | ;; | |
5674 | *) | |
5675 | test yes != "$with_gnu_ld" && break | |
5676 | ;; | |
5677 | esac | |
5678 | fi | |
5679 | done | |
5680 | IFS=$lt_save_ifs | |
5681 | else | |
5682 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
5683 | fi | |
5684 | fi | |
5685 | ||
5686 | LD=$lt_cv_path_LD | |
5687 | if test -n "$LD"; then | |
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5689 | $as_echo "$LD" >&6; } | |
5690 | else | |
5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5692 | $as_echo "no" >&6; } | |
5693 | fi | |
5694 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5696 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5697 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5698 | $as_echo_n "(cached) " >&6 | |
5699 | else | |
5700 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5701 | case `$LD -v 2>&1 </dev/null` in | |
5702 | *GNU* | *'with BFD'*) | |
5703 | lt_cv_prog_gnu_ld=yes | |
5704 | ;; | |
5705 | *) | |
5706 | lt_cv_prog_gnu_ld=no | |
5707 | ;; | |
5708 | esac | |
5709 | fi | |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5711 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5712 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5723 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5724 | if ${lt_cv_path_NM+:} false; then : | |
5725 | $as_echo_n "(cached) " >&6 | |
5726 | else | |
5727 | if test -n "$NM"; then | |
5728 | # Let the user override the test. | |
5729 | lt_cv_path_NM=$NM | |
5730 | else | |
5731 | lt_nm_to_check=${ac_tool_prefix}nm | |
5732 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5733 | lt_nm_to_check="$lt_nm_to_check nm" | |
5734 | fi | |
5735 | for lt_tmp_nm in $lt_nm_to_check; do | |
5736 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
5737 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5738 | IFS=$lt_save_ifs | |
5739 | test -z "$ac_dir" && ac_dir=. | |
5740 | tmp_nm=$ac_dir/$lt_tmp_nm | |
5741 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
5742 | # Check to see if the nm accepts a BSD-compat flag. | |
5743 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
5744 | # nm: unknown option "B" ignored | |
5745 | # Tru64's nm complains that /dev/null is an invalid object file | |
5746 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
5747 | case $build_os in | |
5748 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
5749 | *) lt_bad_file=/dev/null ;; | |
5750 | esac | |
5751 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
5752 | *$lt_bad_file* | *'Invalid file or object type'*) | |
5753 | lt_cv_path_NM="$tmp_nm -B" | |
5754 | break 2 | |
5755 | ;; | |
5756 | *) | |
5757 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5758 | */dev/null*) | |
5759 | lt_cv_path_NM="$tmp_nm -p" | |
5760 | break 2 | |
5761 | ;; | |
5762 | *) | |
5763 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5764 | continue # so that we can try to find one that supports BSD flags | |
5765 | ;; | |
5766 | esac | |
5767 | ;; | |
5768 | esac | |
5769 | fi | |
5770 | done | |
5771 | IFS=$lt_save_ifs | |
5772 | done | |
5773 | : ${lt_cv_path_NM=no} | |
5774 | fi | |
5775 | fi | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5777 | $as_echo "$lt_cv_path_NM" >&6; } | |
5778 | if test no != "$lt_cv_path_NM"; then | |
5779 | NM=$lt_cv_path_NM | |
5780 | else | |
5781 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5782 | if test -n "$DUMPBIN"; then : | |
5783 | # Let the user override the test. | |
5784 | else | |
5785 | if test -n "$ac_tool_prefix"; then | |
5786 | for ac_prog in dumpbin "link -dump" | |
5787 | do | |
5788 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5789 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5791 | $as_echo_n "checking for $ac_word... " >&6; } | |
5792 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5793 | $as_echo_n "(cached) " >&6 | |
5794 | else | |
5795 | if test -n "$DUMPBIN"; then | |
5796 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5797 | else | |
5798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5799 | for as_dir in $PATH | |
5800 | do | |
5801 | IFS=$as_save_IFS | |
5802 | test -z "$as_dir" && as_dir=. | |
5803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5805 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5807 | break 2 | |
5808 | fi | |
5809 | done | |
5810 | done | |
5811 | IFS=$as_save_IFS | |
5812 | ||
5813 | fi | |
5814 | fi | |
5815 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5816 | if test -n "$DUMPBIN"; then | |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5818 | $as_echo "$DUMPBIN" >&6; } | |
5819 | else | |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5821 | $as_echo "no" >&6; } | |
5822 | fi | |
5823 | ||
5824 | ||
5825 | test -n "$DUMPBIN" && break | |
5826 | done | |
5827 | fi | |
5828 | if test -z "$DUMPBIN"; then | |
5829 | ac_ct_DUMPBIN=$DUMPBIN | |
5830 | for ac_prog in dumpbin "link -dump" | |
5831 | do | |
5832 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5833 | set dummy $ac_prog; ac_word=$2 | |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5835 | $as_echo_n "checking for $ac_word... " >&6; } | |
5836 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5837 | $as_echo_n "(cached) " >&6 | |
5838 | else | |
5839 | if test -n "$ac_ct_DUMPBIN"; then | |
5840 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5841 | else | |
5842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5843 | for as_dir in $PATH | |
5844 | do | |
5845 | IFS=$as_save_IFS | |
5846 | test -z "$as_dir" && as_dir=. | |
5847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5849 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5851 | break 2 | |
5852 | fi | |
5853 | done | |
5854 | done | |
5855 | IFS=$as_save_IFS | |
5856 | ||
5857 | fi | |
5858 | fi | |
5859 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5860 | if test -n "$ac_ct_DUMPBIN"; then | |
5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5862 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5863 | else | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5865 | $as_echo "no" >&6; } | |
5866 | fi | |
5867 | ||
5868 | ||
5869 | test -n "$ac_ct_DUMPBIN" && break | |
5870 | done | |
5871 | ||
5872 | if test "x$ac_ct_DUMPBIN" = x; then | |
5873 | DUMPBIN=":" | |
5874 | else | |
5875 | case $cross_compiling:$ac_tool_warned in | |
5876 | yes:) | |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5878 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5879 | ac_tool_warned=yes ;; | |
5880 | esac | |
5881 | DUMPBIN=$ac_ct_DUMPBIN | |
5882 | fi | |
5883 | fi | |
5884 | ||
5885 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
5886 | *COFF*) | |
5887 | DUMPBIN="$DUMPBIN -symbols -headers" | |
5888 | ;; | |
5889 | *) | |
5890 | DUMPBIN=: | |
5891 | ;; | |
5892 | esac | |
5893 | fi | |
5894 | ||
5895 | if test : != "$DUMPBIN"; then | |
5896 | NM=$DUMPBIN | |
5897 | fi | |
5898 | fi | |
5899 | test -z "$NM" && NM=nm | |
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5907 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5908 | if ${lt_cv_nm_interface+:} false; then : | |
5909 | $as_echo_n "(cached) " >&6 | |
5910 | else | |
5911 | lt_cv_nm_interface="BSD nm" | |
5912 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5913 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5914 | (eval "$ac_compile" 2>conftest.err) | |
5915 | cat conftest.err >&5 | |
5916 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5917 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5918 | cat conftest.err >&5 | |
5919 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5920 | cat conftest.out >&5 | |
5921 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5922 | lt_cv_nm_interface="MS dumpbin" | |
5923 | fi | |
5924 | rm -rf conftest* | |
5925 | fi | |
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5927 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5928 | ||
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5930 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5931 | LN_S=$as_ln_s | |
5932 | if test "$LN_S" = "ln -s"; then | |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5934 | $as_echo "yes" >&6; } | |
5935 | else | |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5937 | $as_echo "no, using $LN_S" >&6; } | |
5938 | fi | |
5939 | ||
5940 | # find the maximum length of command line arguments | |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5942 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5943 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5944 | $as_echo_n "(cached) " >&6 | |
5945 | else | |
5946 | i=0 | |
5947 | teststring=ABCD | |
5948 | ||
5949 | case $build_os in | |
5950 | msdosdjgpp*) | |
5951 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5952 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5953 | # during glob expansion). Even if it were fixed, the result of this | |
5954 | # check would be larger than it should be. | |
5955 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5956 | ;; | |
5957 | ||
5958 | gnu*) | |
5959 | # Under GNU Hurd, this test is not required because there is | |
5960 | # no limit to the length of command line arguments. | |
5961 | # Libtool will interpret -1 as no limit whatsoever | |
5962 | lt_cv_sys_max_cmd_len=-1; | |
5963 | ;; | |
5964 | ||
5965 | cygwin* | mingw* | cegcc*) | |
5966 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5967 | # about 5 minutes as the teststring grows exponentially. | |
5968 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5969 | # you end up with a "frozen" computer, even though with patience | |
5970 | # the test eventually succeeds (with a max line length of 256k). | |
5971 | # Instead, let's just punt: use the minimum linelength reported by | |
5972 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5973 | lt_cv_sys_max_cmd_len=8192; | |
5974 | ;; | |
5975 | ||
5976 | mint*) | |
5977 | # On MiNT this can take a long time and run out of memory. | |
5978 | lt_cv_sys_max_cmd_len=8192; | |
5979 | ;; | |
5980 | ||
5981 | amigaos*) | |
5982 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5983 | # So we just punt and use a minimum line length of 8192. | |
5984 | lt_cv_sys_max_cmd_len=8192; | |
5985 | ;; | |
5986 | ||
5987 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
5988 | # This has been around since 386BSD, at least. Likely further. | |
5989 | if test -x /sbin/sysctl; then | |
5990 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5991 | elif test -x /usr/sbin/sysctl; then | |
5992 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5993 | else | |
5994 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5995 | fi | |
5996 | # And add a safety zone | |
5997 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5998 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5999 | ;; | |
6000 | ||
6001 | interix*) | |
6002 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6003 | lt_cv_sys_max_cmd_len=196608 | |
6004 | ;; | |
6005 | ||
6006 | os2*) | |
6007 | # The test takes a long time on OS/2. | |
6008 | lt_cv_sys_max_cmd_len=8192 | |
6009 | ;; | |
6010 | ||
6011 | osf*) | |
6012 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6013 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6014 | # nice to cause kernel panics so lets avoid the loop below. | |
6015 | # First set a reasonable default. | |
6016 | lt_cv_sys_max_cmd_len=16384 | |
6017 | # | |
6018 | if test -x /sbin/sysconfig; then | |
6019 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6020 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6021 | esac | |
6022 | fi | |
6023 | ;; | |
6024 | sco3.2v5*) | |
6025 | lt_cv_sys_max_cmd_len=102400 | |
6026 | ;; | |
6027 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6028 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6029 | if test -n "$kargmax"; then | |
6030 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6031 | else | |
6032 | lt_cv_sys_max_cmd_len=32768 | |
6033 | fi | |
6034 | ;; | |
6035 | *) | |
6036 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6037 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
6038 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
6039 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6040 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6041 | else | |
6042 | # Make teststring a little bigger before we do anything with it. | |
6043 | # a 1K string should be a reasonable start. | |
6044 | for i in 1 2 3 4 5 6 7 8; do | |
6045 | teststring=$teststring$teststring | |
6046 | done | |
6047 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6048 | # If test is not a shell built-in, we'll probably end up computing a | |
6049 | # maximum length that is only half of the actual maximum length, but | |
6050 | # we can't tell. | |
6051 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
6052 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6053 | test 17 != "$i" # 1/2 MB should be enough | |
6054 | do | |
6055 | i=`expr $i + 1` | |
6056 | teststring=$teststring$teststring | |
6057 | done | |
6058 | # Only check the string length outside the loop. | |
6059 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6060 | teststring= | |
6061 | # Add a significant safety factor because C++ compilers can tack on | |
6062 | # massive amounts of additional arguments before passing them to the | |
6063 | # linker. It appears as though 1/2 is a usable value. | |
6064 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6065 | fi | |
6066 | ;; | |
6067 | esac | |
6068 | ||
6069 | fi | |
6070 | ||
6071 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6073 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6074 | else | |
6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6076 | $as_echo "none" >&6; } | |
6077 | fi | |
6078 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6079 | ||
6080 | ||
6081 | ||
6082 | ||
6083 | ||
6084 | ||
6085 | : ${CP="cp -f"} | |
6086 | : ${MV="mv -f"} | |
6087 | : ${RM="rm -f"} | |
6088 | ||
6089 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6090 | lt_unset=unset | |
6091 | else | |
6092 | lt_unset=false | |
6093 | fi | |
6094 | ||
6095 | ||
6096 | ||
6097 | ||
6098 | ||
6099 | # test EBCDIC or ASCII | |
6100 | case `echo X|tr X '\101'` in | |
6101 | A) # ASCII based system | |
6102 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6103 | lt_SP2NL='tr \040 \012' | |
6104 | lt_NL2SP='tr \015\012 \040\040' | |
6105 | ;; | |
6106 | *) # EBCDIC based system | |
6107 | lt_SP2NL='tr \100 \n' | |
6108 | lt_NL2SP='tr \r\n \100\100' | |
6109 | ;; | |
6110 | esac | |
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6119 | ||
6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6121 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6122 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6123 | $as_echo_n "(cached) " >&6 | |
6124 | else | |
6125 | case $host in | |
6126 | *-*-mingw* ) | |
6127 | case $build in | |
6128 | *-*-mingw* ) # actually msys | |
6129 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6130 | ;; | |
6131 | *-*-cygwin* ) | |
6132 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6133 | ;; | |
6134 | * ) # otherwise, assume *nix | |
6135 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6136 | ;; | |
6137 | esac | |
6138 | ;; | |
6139 | *-*-cygwin* ) | |
6140 | case $build in | |
6141 | *-*-mingw* ) # actually msys | |
6142 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6143 | ;; | |
6144 | *-*-cygwin* ) | |
6145 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6146 | ;; | |
6147 | * ) # otherwise, assume *nix | |
6148 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6149 | ;; | |
6150 | esac | |
6151 | ;; | |
6152 | * ) # unhandled hosts (and "normal" native builds) | |
6153 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6154 | ;; | |
6155 | esac | |
6156 | ||
6157 | fi | |
6158 | ||
6159 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6161 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | ||
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6168 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6169 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6170 | $as_echo_n "(cached) " >&6 | |
6171 | else | |
6172 | #assume ordinary cross tools, or native build. | |
6173 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6174 | case $host in | |
6175 | *-*-mingw* ) | |
6176 | case $build in | |
6177 | *-*-mingw* ) # actually msys | |
6178 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6179 | ;; | |
6180 | esac | |
6181 | ;; | |
6182 | esac | |
6183 | ||
6184 | fi | |
6185 | ||
6186 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6188 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6189 | ||
6190 | ||
6191 | ||
6192 | ||
6193 | ||
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6195 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6196 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6197 | $as_echo_n "(cached) " >&6 | |
6198 | else | |
6199 | lt_cv_ld_reload_flag='-r' | |
6200 | fi | |
6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6202 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6203 | reload_flag=$lt_cv_ld_reload_flag | |
6204 | case $reload_flag in | |
6205 | "" | " "*) ;; | |
6206 | *) reload_flag=" $reload_flag" ;; | |
6207 | esac | |
6208 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6209 | case $host_os in | |
6210 | cygwin* | mingw* | pw32* | cegcc*) | |
6211 | if test yes != "$GCC"; then | |
6212 | reload_cmds=false | |
6213 | fi | |
6214 | ;; | |
6215 | darwin*) | |
6216 | if test yes = "$GCC"; then | |
6217 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
6218 | else | |
6219 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6220 | fi | |
6221 | ;; | |
6222 | esac | |
6223 | ||
6224 | ||
6225 | ||
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | if test -n "$ac_tool_prefix"; then | |
6233 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6234 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6236 | $as_echo_n "checking for $ac_word... " >&6; } | |
6237 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6238 | $as_echo_n "(cached) " >&6 | |
6239 | else | |
6240 | if test -n "$OBJDUMP"; then | |
6241 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6242 | else | |
6243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6244 | for as_dir in $PATH | |
6245 | do | |
6246 | IFS=$as_save_IFS | |
6247 | test -z "$as_dir" && as_dir=. | |
6248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6250 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6252 | break 2 | |
6253 | fi | |
6254 | done | |
6255 | done | |
6256 | IFS=$as_save_IFS | |
6257 | ||
6258 | fi | |
6259 | fi | |
6260 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6261 | if test -n "$OBJDUMP"; then | |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6263 | $as_echo "$OBJDUMP" >&6; } | |
6264 | else | |
6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6266 | $as_echo "no" >&6; } | |
6267 | fi | |
6268 | ||
6269 | ||
6270 | fi | |
6271 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6272 | ac_ct_OBJDUMP=$OBJDUMP | |
6273 | # Extract the first word of "objdump", so it can be a program name with args. | |
6274 | set dummy objdump; ac_word=$2 | |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6276 | $as_echo_n "checking for $ac_word... " >&6; } | |
6277 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6278 | $as_echo_n "(cached) " >&6 | |
6279 | else | |
6280 | if test -n "$ac_ct_OBJDUMP"; then | |
6281 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6282 | else | |
6283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6284 | for as_dir in $PATH | |
6285 | do | |
6286 | IFS=$as_save_IFS | |
6287 | test -z "$as_dir" && as_dir=. | |
6288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6290 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6292 | break 2 | |
6293 | fi | |
6294 | done | |
6295 | done | |
6296 | IFS=$as_save_IFS | |
6297 | ||
6298 | fi | |
6299 | fi | |
6300 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6301 | if test -n "$ac_ct_OBJDUMP"; then | |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6303 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6304 | else | |
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6306 | $as_echo "no" >&6; } | |
6307 | fi | |
6308 | ||
6309 | if test "x$ac_ct_OBJDUMP" = x; then | |
6310 | OBJDUMP="false" | |
6311 | else | |
6312 | case $cross_compiling:$ac_tool_warned in | |
6313 | yes:) | |
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6316 | ac_tool_warned=yes ;; | |
6317 | esac | |
6318 | OBJDUMP=$ac_ct_OBJDUMP | |
6319 | fi | |
6320 | else | |
6321 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6322 | fi | |
6323 | ||
6324 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | ||
6333 | ||
6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6335 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6336 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6337 | $as_echo_n "(cached) " >&6 | |
6338 | else | |
6339 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6340 | lt_cv_file_magic_test_file= | |
6341 | lt_cv_deplibs_check_method='unknown' | |
6342 | # Need to set the preceding variable on all platforms that support | |
6343 | # interlibrary dependencies. | |
6344 | # 'none' -- dependencies not supported. | |
6345 | # 'unknown' -- same as none, but documents that we really don't know. | |
6346 | # 'pass_all' -- all dependencies passed with no checks. | |
6347 | # 'test_compile' -- check by making test program. | |
6348 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6349 | # that responds to the $file_magic_cmd with a given extended regex. | |
6350 | # If you have 'file' or equivalent on your system and you're not sure | |
6351 | # whether 'pass_all' will *always* work, you probably want this one. | |
6352 | ||
6353 | case $host_os in | |
6354 | aix[4-9]*) | |
6355 | lt_cv_deplibs_check_method=pass_all | |
6356 | ;; | |
6357 | ||
6358 | beos*) | |
6359 | lt_cv_deplibs_check_method=pass_all | |
6360 | ;; | |
6361 | ||
6362 | bsdi[45]*) | |
6363 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6364 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6365 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6366 | ;; | |
6367 | ||
6368 | cygwin*) | |
6369 | # func_win32_libid is a shell function defined in ltmain.sh | |
6370 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6371 | lt_cv_file_magic_cmd='func_win32_libid' | |
6372 | ;; | |
6373 | ||
6374 | mingw* | pw32*) | |
6375 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6376 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6377 | # unless we find 'file', for example because we are cross-compiling. | |
6378 | if ( file / ) >/dev/null 2>&1; then | |
6379 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6380 | lt_cv_file_magic_cmd='func_win32_libid' | |
6381 | else | |
6382 | # Keep this pattern in sync with the one in func_win32_libid. | |
6383 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6384 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6385 | fi | |
6386 | ;; | |
6387 | ||
6388 | cegcc*) | |
6389 | # use the weaker test based on 'objdump'. See mingw*. | |
6390 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6391 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6392 | ;; | |
6393 | ||
6394 | darwin* | rhapsody*) | |
6395 | lt_cv_deplibs_check_method=pass_all | |
6396 | ;; | |
6397 | ||
6398 | freebsd* | dragonfly*) | |
6399 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6400 | case $host_cpu in | |
6401 | i*86 ) | |
6402 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6403 | # Let's accept both of them until this is cleared up. | |
6404 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6405 | lt_cv_file_magic_cmd=/usr/bin/file | |
6406 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6407 | ;; | |
6408 | esac | |
6409 | else | |
6410 | lt_cv_deplibs_check_method=pass_all | |
6411 | fi | |
6412 | ;; | |
6413 | ||
6414 | haiku*) | |
6415 | lt_cv_deplibs_check_method=pass_all | |
6416 | ;; | |
6417 | ||
6418 | hpux10.20* | hpux11*) | |
6419 | lt_cv_file_magic_cmd=/usr/bin/file | |
6420 | case $host_cpu in | |
6421 | ia64*) | |
6422 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6423 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6424 | ;; | |
6425 | hppa*64*) | |
6426 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
6427 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6428 | ;; | |
6429 | *) | |
6430 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6431 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6432 | ;; | |
6433 | esac | |
6434 | ;; | |
6435 | ||
6436 | interix[3-9]*) | |
6437 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6438 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6439 | ;; | |
6440 | ||
6441 | irix5* | irix6* | nonstopux*) | |
6442 | case $LD in | |
6443 | *-32|*"-32 ") libmagic=32-bit;; | |
6444 | *-n32|*"-n32 ") libmagic=N32;; | |
6445 | *-64|*"-64 ") libmagic=64-bit;; | |
6446 | *) libmagic=never-match;; | |
6447 | esac | |
6448 | lt_cv_deplibs_check_method=pass_all | |
6449 | ;; | |
6450 | ||
6451 | # This must be glibc/ELF. | |
6452 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6453 | lt_cv_deplibs_check_method=pass_all | |
6454 | ;; | |
6455 | ||
6456 | netbsd*) | |
6457 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6458 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6459 | else | |
6460 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6461 | fi | |
6462 | ;; | |
6463 | ||
6464 | newos6*) | |
6465 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6466 | lt_cv_file_magic_cmd=/usr/bin/file | |
6467 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6468 | ;; | |
6469 | ||
6470 | *nto* | *qnx*) | |
6471 | lt_cv_deplibs_check_method=pass_all | |
6472 | ;; | |
6473 | ||
6474 | openbsd* | bitrig*) | |
6475 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
6476 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6477 | else | |
6478 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6479 | fi | |
6480 | ;; | |
6481 | ||
6482 | osf3* | osf4* | osf5*) | |
6483 | lt_cv_deplibs_check_method=pass_all | |
6484 | ;; | |
6485 | ||
6486 | rdos*) | |
6487 | lt_cv_deplibs_check_method=pass_all | |
6488 | ;; | |
6489 | ||
6490 | solaris*) | |
6491 | lt_cv_deplibs_check_method=pass_all | |
6492 | ;; | |
6493 | ||
6494 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6495 | lt_cv_deplibs_check_method=pass_all | |
6496 | ;; | |
6497 | ||
6498 | sysv4 | sysv4.3*) | |
6499 | case $host_vendor in | |
6500 | motorola) | |
6501 | 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]' | |
6502 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6503 | ;; | |
6504 | ncr) | |
6505 | lt_cv_deplibs_check_method=pass_all | |
6506 | ;; | |
6507 | sequent) | |
6508 | lt_cv_file_magic_cmd='/bin/file' | |
6509 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6510 | ;; | |
6511 | sni) | |
6512 | lt_cv_file_magic_cmd='/bin/file' | |
6513 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6514 | lt_cv_file_magic_test_file=/lib/libc.so | |
6515 | ;; | |
6516 | siemens) | |
6517 | lt_cv_deplibs_check_method=pass_all | |
6518 | ;; | |
6519 | pc) | |
6520 | lt_cv_deplibs_check_method=pass_all | |
6521 | ;; | |
6522 | esac | |
6523 | ;; | |
6524 | ||
6525 | tpf*) | |
6526 | lt_cv_deplibs_check_method=pass_all | |
6527 | ;; | |
6528 | os2*) | |
6529 | lt_cv_deplibs_check_method=pass_all | |
6530 | ;; | |
6531 | esac | |
6532 | ||
6533 | fi | |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6535 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6536 | ||
6537 | file_magic_glob= | |
6538 | want_nocaseglob=no | |
6539 | if test "$build" = "$host"; then | |
6540 | case $host_os in | |
6541 | mingw* | pw32*) | |
6542 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6543 | want_nocaseglob=yes | |
6544 | else | |
6545 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6546 | fi | |
6547 | ;; | |
6548 | esac | |
6549 | fi | |
6550 | ||
6551 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6552 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6553 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | if test -n "$ac_tool_prefix"; then | |
6577 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6578 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6580 | $as_echo_n "checking for $ac_word... " >&6; } | |
6581 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6582 | $as_echo_n "(cached) " >&6 | |
6583 | else | |
6584 | if test -n "$DLLTOOL"; then | |
6585 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6586 | else | |
6587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6588 | for as_dir in $PATH | |
6589 | do | |
6590 | IFS=$as_save_IFS | |
6591 | test -z "$as_dir" && as_dir=. | |
6592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6594 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6596 | break 2 | |
6597 | fi | |
6598 | done | |
6599 | done | |
6600 | IFS=$as_save_IFS | |
6601 | ||
6602 | fi | |
6603 | fi | |
6604 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6605 | if test -n "$DLLTOOL"; then | |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6607 | $as_echo "$DLLTOOL" >&6; } | |
6608 | else | |
6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6610 | $as_echo "no" >&6; } | |
6611 | fi | |
6612 | ||
6613 | ||
6614 | fi | |
6615 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6616 | ac_ct_DLLTOOL=$DLLTOOL | |
6617 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6618 | set dummy dlltool; ac_word=$2 | |
6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6620 | $as_echo_n "checking for $ac_word... " >&6; } | |
6621 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6622 | $as_echo_n "(cached) " >&6 | |
6623 | else | |
6624 | if test -n "$ac_ct_DLLTOOL"; then | |
6625 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6626 | else | |
6627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6628 | for as_dir in $PATH | |
6629 | do | |
6630 | IFS=$as_save_IFS | |
6631 | test -z "$as_dir" && as_dir=. | |
6632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6633 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6634 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6636 | break 2 | |
6637 | fi | |
6638 | done | |
6639 | done | |
6640 | IFS=$as_save_IFS | |
6641 | ||
6642 | fi | |
6643 | fi | |
6644 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6645 | if test -n "$ac_ct_DLLTOOL"; then | |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6647 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6648 | else | |
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6650 | $as_echo "no" >&6; } | |
6651 | fi | |
6652 | ||
6653 | if test "x$ac_ct_DLLTOOL" = x; then | |
6654 | DLLTOOL="false" | |
6655 | else | |
6656 | case $cross_compiling:$ac_tool_warned in | |
6657 | yes:) | |
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6659 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6660 | ac_tool_warned=yes ;; | |
6661 | esac | |
6662 | DLLTOOL=$ac_ct_DLLTOOL | |
6663 | fi | |
6664 | else | |
6665 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6666 | fi | |
6667 | ||
6668 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6669 | ||
6670 | ||
6671 | ||
6672 | ||
6673 | ||
6674 | ||
6675 | ||
6676 | ||
6677 | ||
6678 | ||
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6680 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6681 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6682 | $as_echo_n "(cached) " >&6 | |
6683 | else | |
6684 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6685 | ||
6686 | case $host_os in | |
6687 | cygwin* | mingw* | pw32* | cegcc*) | |
6688 | # two different shell functions defined in ltmain.sh; | |
6689 | # decide which one to use based on capabilities of $DLLTOOL | |
6690 | case `$DLLTOOL --help 2>&1` in | |
6691 | *--identify-strict*) | |
6692 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6693 | ;; | |
6694 | *) | |
6695 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6696 | ;; | |
6697 | esac | |
6698 | ;; | |
6699 | *) | |
6700 | # fallback: assume linklib IS sharedlib | |
6701 | lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
6702 | ;; | |
6703 | esac | |
6704 | ||
6705 | fi | |
6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6707 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6708 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6709 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6710 | ||
6711 | ||
6712 | ||
6713 | ||
6714 | ||
6715 | ||
6716 | ||
6717 | if test -n "$ac_tool_prefix"; then | |
6718 | for ac_prog in ar | |
6719 | do | |
6720 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6721 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6723 | $as_echo_n "checking for $ac_word... " >&6; } | |
6724 | if ${ac_cv_prog_AR+:} false; then : | |
6725 | $as_echo_n "(cached) " >&6 | |
6726 | else | |
6727 | if test -n "$AR"; then | |
6728 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6729 | else | |
6730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6731 | for as_dir in $PATH | |
6732 | do | |
6733 | IFS=$as_save_IFS | |
6734 | test -z "$as_dir" && as_dir=. | |
6735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6737 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6739 | break 2 | |
6740 | fi | |
6741 | done | |
6742 | done | |
6743 | IFS=$as_save_IFS | |
6744 | ||
6745 | fi | |
6746 | fi | |
6747 | AR=$ac_cv_prog_AR | |
6748 | if test -n "$AR"; then | |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6750 | $as_echo "$AR" >&6; } | |
6751 | else | |
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6753 | $as_echo "no" >&6; } | |
6754 | fi | |
6755 | ||
6756 | ||
6757 | test -n "$AR" && break | |
6758 | done | |
6759 | fi | |
6760 | if test -z "$AR"; then | |
6761 | ac_ct_AR=$AR | |
6762 | for ac_prog in ar | |
6763 | do | |
6764 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6765 | set dummy $ac_prog; ac_word=$2 | |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6767 | $as_echo_n "checking for $ac_word... " >&6; } | |
6768 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6769 | $as_echo_n "(cached) " >&6 | |
6770 | else | |
6771 | if test -n "$ac_ct_AR"; then | |
6772 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6773 | else | |
6774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6775 | for as_dir in $PATH | |
6776 | do | |
6777 | IFS=$as_save_IFS | |
6778 | test -z "$as_dir" && as_dir=. | |
6779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6781 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6783 | break 2 | |
6784 | fi | |
6785 | done | |
6786 | done | |
6787 | IFS=$as_save_IFS | |
6788 | ||
6789 | fi | |
6790 | fi | |
6791 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6792 | if test -n "$ac_ct_AR"; then | |
6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6794 | $as_echo "$ac_ct_AR" >&6; } | |
6795 | else | |
6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6797 | $as_echo "no" >&6; } | |
6798 | fi | |
6799 | ||
6800 | ||
6801 | test -n "$ac_ct_AR" && break | |
6802 | done | |
6803 | ||
6804 | if test "x$ac_ct_AR" = x; then | |
6805 | AR="false" | |
6806 | else | |
6807 | case $cross_compiling:$ac_tool_warned in | |
6808 | yes:) | |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6811 | ac_tool_warned=yes ;; | |
6812 | esac | |
6813 | AR=$ac_ct_AR | |
6814 | fi | |
6815 | fi | |
6816 | ||
6817 | : ${AR=ar} | |
6818 | : ${AR_FLAGS=cru} | |
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | ||
6826 | ||
6827 | ||
6828 | ||
6829 | ||
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6831 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6832 | if ${lt_cv_ar_at_file+:} false; then : | |
6833 | $as_echo_n "(cached) " >&6 | |
6834 | else | |
6835 | lt_cv_ar_at_file=no | |
6836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6837 | /* end confdefs.h. */ | |
6838 | ||
6839 | int | |
6840 | main () | |
6841 | { | |
6842 | ||
6843 | ; | |
6844 | return 0; | |
6845 | } | |
6846 | _ACEOF | |
6847 | if ac_fn_c_try_compile "$LINENO"; then : | |
6848 | echo conftest.$ac_objext > conftest.lst | |
6849 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6850 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6851 | (eval $lt_ar_try) 2>&5 | |
6852 | ac_status=$? | |
6853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6854 | test $ac_status = 0; } | |
6855 | if test 0 -eq "$ac_status"; then | |
6856 | # Ensure the archiver fails upon bogus file names. | |
6857 | rm -f conftest.$ac_objext libconftest.a | |
6858 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6859 | (eval $lt_ar_try) 2>&5 | |
6860 | ac_status=$? | |
6861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6862 | test $ac_status = 0; } | |
6863 | if test 0 -ne "$ac_status"; then | |
6864 | lt_cv_ar_at_file=@ | |
6865 | fi | |
6866 | fi | |
6867 | rm -f conftest.* libconftest.a | |
6868 | ||
6869 | fi | |
6870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6871 | ||
6872 | fi | |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6874 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6875 | ||
6876 | if test no = "$lt_cv_ar_at_file"; then | |
6877 | archiver_list_spec= | |
6878 | else | |
6879 | archiver_list_spec=$lt_cv_ar_at_file | |
6880 | fi | |
6881 | ||
6882 | ||
6883 | ||
6884 | ||
6885 | ||
6886 | ||
6887 | ||
6888 | if test -n "$ac_tool_prefix"; then | |
6889 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6890 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6892 | $as_echo_n "checking for $ac_word... " >&6; } | |
6893 | if ${ac_cv_prog_STRIP+:} false; then : | |
6894 | $as_echo_n "(cached) " >&6 | |
6895 | else | |
6896 | if test -n "$STRIP"; then | |
6897 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6898 | else | |
6899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6900 | for as_dir in $PATH | |
6901 | do | |
6902 | IFS=$as_save_IFS | |
6903 | test -z "$as_dir" && as_dir=. | |
6904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6906 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6908 | break 2 | |
6909 | fi | |
6910 | done | |
6911 | done | |
6912 | IFS=$as_save_IFS | |
6913 | ||
6914 | fi | |
6915 | fi | |
6916 | STRIP=$ac_cv_prog_STRIP | |
6917 | if test -n "$STRIP"; then | |
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6919 | $as_echo "$STRIP" >&6; } | |
6920 | else | |
6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6922 | $as_echo "no" >&6; } | |
6923 | fi | |
6924 | ||
6925 | ||
6926 | fi | |
6927 | if test -z "$ac_cv_prog_STRIP"; then | |
6928 | ac_ct_STRIP=$STRIP | |
6929 | # Extract the first word of "strip", so it can be a program name with args. | |
6930 | set dummy strip; ac_word=$2 | |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6932 | $as_echo_n "checking for $ac_word... " >&6; } | |
6933 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6934 | $as_echo_n "(cached) " >&6 | |
6935 | else | |
6936 | if test -n "$ac_ct_STRIP"; then | |
6937 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6938 | else | |
6939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6940 | for as_dir in $PATH | |
6941 | do | |
6942 | IFS=$as_save_IFS | |
6943 | test -z "$as_dir" && as_dir=. | |
6944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6946 | ac_cv_prog_ac_ct_STRIP="strip" | |
6947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6948 | break 2 | |
6949 | fi | |
6950 | done | |
6951 | done | |
6952 | IFS=$as_save_IFS | |
6953 | ||
6954 | fi | |
6955 | fi | |
6956 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6957 | if test -n "$ac_ct_STRIP"; then | |
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6959 | $as_echo "$ac_ct_STRIP" >&6; } | |
6960 | else | |
6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6962 | $as_echo "no" >&6; } | |
6963 | fi | |
6964 | ||
6965 | if test "x$ac_ct_STRIP" = x; then | |
6966 | STRIP=":" | |
6967 | else | |
6968 | case $cross_compiling:$ac_tool_warned in | |
6969 | yes:) | |
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6972 | ac_tool_warned=yes ;; | |
6973 | esac | |
6974 | STRIP=$ac_ct_STRIP | |
6975 | fi | |
6976 | else | |
6977 | STRIP="$ac_cv_prog_STRIP" | |
6978 | fi | |
6979 | ||
6980 | test -z "$STRIP" && STRIP=: | |
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | if test -n "$ac_tool_prefix"; then | |
6988 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6989 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6991 | $as_echo_n "checking for $ac_word... " >&6; } | |
6992 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6993 | $as_echo_n "(cached) " >&6 | |
6994 | else | |
6995 | if test -n "$RANLIB"; then | |
6996 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6997 | else | |
6998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6999 | for as_dir in $PATH | |
7000 | do | |
7001 | IFS=$as_save_IFS | |
7002 | test -z "$as_dir" && as_dir=. | |
7003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7005 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7007 | break 2 | |
7008 | fi | |
7009 | done | |
7010 | done | |
7011 | IFS=$as_save_IFS | |
7012 | ||
7013 | fi | |
7014 | fi | |
7015 | RANLIB=$ac_cv_prog_RANLIB | |
7016 | if test -n "$RANLIB"; then | |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7018 | $as_echo "$RANLIB" >&6; } | |
7019 | else | |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7021 | $as_echo "no" >&6; } | |
7022 | fi | |
7023 | ||
7024 | ||
7025 | fi | |
7026 | if test -z "$ac_cv_prog_RANLIB"; then | |
7027 | ac_ct_RANLIB=$RANLIB | |
7028 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7029 | set dummy ranlib; ac_word=$2 | |
7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7031 | $as_echo_n "checking for $ac_word... " >&6; } | |
7032 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
7033 | $as_echo_n "(cached) " >&6 | |
7034 | else | |
7035 | if test -n "$ac_ct_RANLIB"; then | |
7036 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7037 | else | |
7038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7039 | for as_dir in $PATH | |
7040 | do | |
7041 | IFS=$as_save_IFS | |
7042 | test -z "$as_dir" && as_dir=. | |
7043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7045 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7047 | break 2 | |
7048 | fi | |
7049 | done | |
7050 | done | |
7051 | IFS=$as_save_IFS | |
7052 | ||
7053 | fi | |
7054 | fi | |
7055 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7056 | if test -n "$ac_ct_RANLIB"; then | |
7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7058 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7059 | else | |
7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7061 | $as_echo "no" >&6; } | |
7062 | fi | |
7063 | ||
7064 | if test "x$ac_ct_RANLIB" = x; then | |
7065 | RANLIB=":" | |
7066 | else | |
7067 | case $cross_compiling:$ac_tool_warned in | |
7068 | yes:) | |
7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7070 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7071 | ac_tool_warned=yes ;; | |
7072 | esac | |
7073 | RANLIB=$ac_ct_RANLIB | |
7074 | fi | |
7075 | else | |
7076 | RANLIB="$ac_cv_prog_RANLIB" | |
7077 | fi | |
7078 | ||
7079 | test -z "$RANLIB" && RANLIB=: | |
7080 | ||
7081 | ||
7082 | ||
7083 | ||
7084 | ||
7085 | ||
7086 | # Determine commands to create old-style static archives. | |
7087 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7088 | old_postinstall_cmds='chmod 644 $oldlib' | |
7089 | old_postuninstall_cmds= | |
7090 | ||
7091 | if test -n "$RANLIB"; then | |
7092 | case $host_os in | |
7093 | bitrig* | openbsd*) | |
7094 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7095 | ;; | |
7096 | *) | |
7097 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7098 | ;; | |
7099 | esac | |
7100 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
7101 | fi | |
7102 | ||
7103 | case $host_os in | |
7104 | darwin*) | |
7105 | lock_old_archive_extraction=yes ;; | |
7106 | *) | |
7107 | lock_old_archive_extraction=no ;; | |
7108 | esac | |
7109 | ||
7110 | ||
7111 | ||
7112 | ||
7113 | ||
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | ||
7124 | ||
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | # If no C compiler was specified, use CC. | |
7149 | LTCC=${LTCC-"$CC"} | |
7150 | ||
7151 | # If no C compiler flags were specified, use CFLAGS. | |
7152 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7153 | ||
7154 | # Allow CC to be a program name with arguments. | |
7155 | compiler=$CC | |
7156 | ||
7157 | ||
7158 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7160 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7161 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7162 | $as_echo_n "(cached) " >&6 | |
7163 | else | |
7164 | ||
7165 | # These are sane defaults that work on at least a few old systems. | |
7166 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7167 | ||
7168 | # Character class describing NM global symbol codes. | |
7169 | symcode='[BCDEGRST]' | |
7170 | ||
7171 | # Regexp to match symbols that can be accessed directly from C. | |
7172 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7173 | ||
7174 | # Define system-specific variables. | |
7175 | case $host_os in | |
7176 | aix*) | |
7177 | symcode='[BCDT]' | |
7178 | ;; | |
7179 | cygwin* | mingw* | pw32* | cegcc*) | |
7180 | symcode='[ABCDGISTW]' | |
7181 | ;; | |
7182 | hpux*) | |
7183 | if test ia64 = "$host_cpu"; then | |
7184 | symcode='[ABCDEGRST]' | |
7185 | fi | |
7186 | ;; | |
7187 | irix* | nonstopux*) | |
7188 | symcode='[BCDEGRST]' | |
7189 | ;; | |
7190 | osf*) | |
7191 | symcode='[BCDEGQRST]' | |
7192 | ;; | |
7193 | solaris*) | |
7194 | symcode='[BDRT]' | |
7195 | ;; | |
7196 | sco3.2v5*) | |
7197 | symcode='[DT]' | |
7198 | ;; | |
7199 | sysv4.2uw2*) | |
7200 | symcode='[DT]' | |
7201 | ;; | |
7202 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7203 | symcode='[ABDT]' | |
7204 | ;; | |
7205 | sysv4) | |
7206 | symcode='[DFNSTU]' | |
7207 | ;; | |
7208 | esac | |
7209 | ||
7210 | # If we're using GNU nm, then use its standard symbol codes. | |
7211 | case `$NM -V 2>&1` in | |
7212 | *GNU* | *'with BFD'*) | |
7213 | symcode='[ABCDGIRSTW]' ;; | |
7214 | esac | |
7215 | ||
7216 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7217 | # Gets list of data symbols to import. | |
7218 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
7219 | # Adjust the below global symbol transforms to fixup imported variables. | |
7220 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
7221 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
7222 | lt_c_name_lib_hook="\ | |
7223 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
7224 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
7225 | else | |
7226 | # Disable hooks by default. | |
7227 | lt_cv_sys_global_symbol_to_import= | |
7228 | lt_cdecl_hook= | |
7229 | lt_c_name_hook= | |
7230 | lt_c_name_lib_hook= | |
7231 | fi | |
7232 | ||
7233 | # Transform an extracted symbol line into a proper C declaration. | |
7234 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7235 | # so use this general approach. | |
7236 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
7237 | $lt_cdecl_hook\ | |
7238 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
7239 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
7240 | ||
7241 | # Transform an extracted symbol line into symbol name and symbol address | |
7242 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
7243 | $lt_c_name_hook\ | |
7244 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7245 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
7246 | ||
7247 | # Transform an extracted symbol line into symbol name with lib prefix and | |
7248 | # symbol address. | |
7249 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
7250 | $lt_c_name_lib_hook\ | |
7251 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
7252 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
7253 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
7254 | ||
7255 | # Handle CRLF in mingw tool chain | |
7256 | opt_cr= | |
7257 | case $build_os in | |
7258 | mingw*) | |
7259 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7260 | ;; | |
7261 | esac | |
7262 | ||
7263 | # Try without a prefix underscore, then with it. | |
7264 | for ac_symprfx in "" "_"; do | |
7265 | ||
7266 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7267 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7268 | ||
7269 | # Write the raw and C identifiers. | |
7270 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7271 | # Fake it for dumpbin and say T for any non-static function, | |
7272 | # D for any global variable and I for any imported variable. | |
7273 | # Also find C++ and __fastcall symbols from MSVC++, | |
7274 | # which start with @ or ?. | |
7275 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7276 | " {last_section=section; section=\$ 3};"\ | |
7277 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7278 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7279 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
7280 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
7281 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
7282 | " \$ 0!~/External *\|/{next};"\ | |
7283 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7284 | " {if(hide[section]) next};"\ | |
7285 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
7286 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
7287 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
7288 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
7289 | " ' prfx=^$ac_symprfx" | |
7290 | else | |
7291 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7292 | fi | |
7293 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
7294 | ||
7295 | # Check to see that the pipe works correctly. | |
7296 | pipe_works=no | |
7297 | ||
7298 | rm -rf conftest* | |
7299 | cat > conftest.$ac_ext <<_LT_EOF | |
7300 | #ifdef __cplusplus | |
7301 | extern "C" { | |
7302 | #endif | |
7303 | char nm_test_var; | |
7304 | void nm_test_func(void); | |
7305 | void nm_test_func(void){} | |
7306 | #ifdef __cplusplus | |
7307 | } | |
7308 | #endif | |
7309 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7310 | _LT_EOF | |
7311 | ||
7312 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7313 | (eval $ac_compile) 2>&5 | |
7314 | ac_status=$? | |
7315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7316 | test $ac_status = 0; }; then | |
7317 | # Now try to grab the symbols. | |
7318 | nlist=conftest.nm | |
7319 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7320 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7321 | ac_status=$? | |
7322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7323 | test $ac_status = 0; } && test -s "$nlist"; then | |
7324 | # Try sorting and uniquifying the output. | |
7325 | if sort "$nlist" | uniq > "$nlist"T; then | |
7326 | mv -f "$nlist"T "$nlist" | |
7327 | else | |
7328 | rm -f "$nlist"T | |
7329 | fi | |
7330 | ||
7331 | # Make sure that we snagged all the symbols we need. | |
7332 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7333 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7334 | cat <<_LT_EOF > conftest.$ac_ext | |
7335 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7336 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
7337 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
7338 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7339 | # define LT_DLSYM_CONST | |
7340 | #elif defined __osf__ | |
7341 | /* This system does not cope well with relocations in const data. */ | |
7342 | # define LT_DLSYM_CONST | |
7343 | #else | |
7344 | # define LT_DLSYM_CONST const | |
7345 | #endif | |
7346 | ||
7347 | #ifdef __cplusplus | |
7348 | extern "C" { | |
7349 | #endif | |
7350 | ||
7351 | _LT_EOF | |
7352 | # Now generate the symbol file. | |
7353 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7354 | ||
7355 | cat <<_LT_EOF >> conftest.$ac_ext | |
7356 | ||
7357 | /* The mapping between symbol names and symbols. */ | |
7358 | LT_DLSYM_CONST struct { | |
7359 | const char *name; | |
7360 | void *address; | |
7361 | } | |
7362 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7363 | { | |
7364 | { "@PROGRAM@", (void *) 0 }, | |
7365 | _LT_EOF | |
7366 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7367 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7368 | {0, (void *) 0} | |
7369 | }; | |
7370 | ||
7371 | /* This works around a problem in FreeBSD linker */ | |
7372 | #ifdef FREEBSD_WORKAROUND | |
7373 | static const void *lt_preloaded_setup() { | |
7374 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7375 | } | |
7376 | #endif | |
7377 | ||
7378 | #ifdef __cplusplus | |
7379 | } | |
7380 | #endif | |
7381 | _LT_EOF | |
7382 | # Now try linking the two files. | |
7383 | mv conftest.$ac_objext conftstm.$ac_objext | |
7384 | lt_globsym_save_LIBS=$LIBS | |
7385 | lt_globsym_save_CFLAGS=$CFLAGS | |
7386 | LIBS=conftstm.$ac_objext | |
7387 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7388 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7389 | (eval $ac_link) 2>&5 | |
7390 | ac_status=$? | |
7391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7392 | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
7393 | pipe_works=yes | |
7394 | fi | |
7395 | LIBS=$lt_globsym_save_LIBS | |
7396 | CFLAGS=$lt_globsym_save_CFLAGS | |
7397 | else | |
7398 | echo "cannot find nm_test_func in $nlist" >&5 | |
7399 | fi | |
7400 | else | |
7401 | echo "cannot find nm_test_var in $nlist" >&5 | |
7402 | fi | |
7403 | else | |
7404 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7405 | fi | |
7406 | else | |
7407 | echo "$progname: failed program was:" >&5 | |
7408 | cat conftest.$ac_ext >&5 | |
7409 | fi | |
7410 | rm -rf conftest* conftst* | |
7411 | ||
7412 | # Do not use the global_symbol_pipe unless it works. | |
7413 | if test yes = "$pipe_works"; then | |
7414 | break | |
7415 | else | |
7416 | lt_cv_sys_global_symbol_pipe= | |
7417 | fi | |
7418 | done | |
7419 | ||
7420 | fi | |
7421 | ||
7422 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7423 | lt_cv_sys_global_symbol_to_cdecl= | |
7424 | fi | |
7425 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7427 | $as_echo "failed" >&6; } | |
7428 | else | |
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7430 | $as_echo "ok" >&6; } | |
7431 | fi | |
7432 | ||
7433 | # Response file support. | |
7434 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7435 | nm_file_list_spec='@' | |
7436 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7437 | nm_file_list_spec='@' | |
7438 | fi | |
7439 | ||
7440 | ||
7441 | ||
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | ||
7474 | ||
7475 | ||
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7477 | $as_echo_n "checking for sysroot... " >&6; } | |
7478 | ||
7479 | # Check whether --with-sysroot was given. | |
7480 | if test "${with_sysroot+set}" = set; then : | |
7481 | withval=$with_sysroot; | |
7482 | else | |
7483 | with_sysroot=no | |
7484 | fi | |
7485 | ||
7486 | ||
7487 | lt_sysroot= | |
7488 | case $with_sysroot in #( | |
7489 | yes) | |
7490 | if test yes = "$GCC"; then | |
7491 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7492 | fi | |
7493 | ;; #( | |
7494 | /*) | |
7495 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7496 | ;; #( | |
7497 | no|'') | |
7498 | ;; #( | |
7499 | *) | |
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
7501 | $as_echo "$with_sysroot" >&6; } | |
7502 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7503 | ;; | |
7504 | esac | |
7505 | ||
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7507 | $as_echo "${lt_sysroot:-no}" >&6; } | |
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
7514 | $as_echo_n "checking for a working dd... " >&6; } | |
7515 | if ${ac_cv_path_lt_DD+:} false; then : | |
7516 | $as_echo_n "(cached) " >&6 | |
7517 | else | |
7518 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7519 | cat conftest.i conftest.i >conftest2.i | |
7520 | : ${lt_DD:=$DD} | |
7521 | if test -z "$lt_DD"; then | |
7522 | ac_path_lt_DD_found=false | |
7523 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7525 | for as_dir in $PATH | |
7526 | do | |
7527 | IFS=$as_save_IFS | |
7528 | test -z "$as_dir" && as_dir=. | |
7529 | for ac_prog in dd; do | |
7530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7531 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
7532 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
7533 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7534 | cmp -s conftest.i conftest.out \ | |
7535 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
7536 | fi | |
7537 | $ac_path_lt_DD_found && break 3 | |
7538 | done | |
7539 | done | |
7540 | done | |
7541 | IFS=$as_save_IFS | |
7542 | if test -z "$ac_cv_path_lt_DD"; then | |
7543 | : | |
7544 | fi | |
7545 | else | |
7546 | ac_cv_path_lt_DD=$lt_DD | |
7547 | fi | |
7548 | ||
7549 | rm -f conftest.i conftest2.i conftest.out | |
7550 | fi | |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
7552 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
7553 | ||
7554 | ||
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
7556 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
7557 | if ${lt_cv_truncate_bin+:} false; then : | |
7558 | $as_echo_n "(cached) " >&6 | |
7559 | else | |
7560 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
7561 | cat conftest.i conftest.i >conftest2.i | |
7562 | lt_cv_truncate_bin= | |
7563 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
7564 | cmp -s conftest.i conftest.out \ | |
7565 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
7566 | fi | |
7567 | rm -f conftest.i conftest2.i conftest.out | |
7568 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
7569 | fi | |
7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
7571 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
7580 | func_cc_basename () | |
7581 | { | |
7582 | for cc_temp in $*""; do | |
7583 | case $cc_temp in | |
7584 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7585 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7586 | \-*) ;; | |
7587 | *) break;; | |
7588 | esac | |
7589 | done | |
7590 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7591 | } | |
7592 | ||
7593 | # Check whether --enable-libtool-lock was given. | |
7594 | if test "${enable_libtool_lock+set}" = set; then : | |
7595 | enableval=$enable_libtool_lock; | |
7596 | fi | |
7597 | ||
7598 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
7599 | ||
7600 | # Some flags need to be propagated to the compiler or linker for good | |
7601 | # libtool support. | |
7602 | case $host in | |
7603 | ia64-*-hpux*) | |
7604 | # Find out what ABI is being produced by ac_compile, and set mode | |
7605 | # options accordingly. | |
7606 | echo 'int i;' > conftest.$ac_ext | |
7607 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7608 | (eval $ac_compile) 2>&5 | |
7609 | ac_status=$? | |
7610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7611 | test $ac_status = 0; }; then | |
7612 | case `/usr/bin/file conftest.$ac_objext` in | |
7613 | *ELF-32*) | |
7614 | HPUX_IA64_MODE=32 | |
7615 | ;; | |
7616 | *ELF-64*) | |
7617 | HPUX_IA64_MODE=64 | |
7618 | ;; | |
7619 | esac | |
7620 | fi | |
7621 | rm -rf conftest* | |
7622 | ;; | |
7623 | *-*-irix6*) | |
7624 | # Find out what ABI is being produced by ac_compile, and set linker | |
7625 | # options accordingly. | |
7626 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7627 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7628 | (eval $ac_compile) 2>&5 | |
7629 | ac_status=$? | |
7630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7631 | test $ac_status = 0; }; then | |
7632 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
7633 | case `/usr/bin/file conftest.$ac_objext` in | |
7634 | *32-bit*) | |
7635 | LD="${LD-ld} -melf32bsmip" | |
7636 | ;; | |
7637 | *N32*) | |
7638 | LD="${LD-ld} -melf32bmipn32" | |
7639 | ;; | |
7640 | *64-bit*) | |
7641 | LD="${LD-ld} -melf64bmip" | |
7642 | ;; | |
7643 | esac | |
7644 | else | |
7645 | case `/usr/bin/file conftest.$ac_objext` in | |
7646 | *32-bit*) | |
7647 | LD="${LD-ld} -32" | |
7648 | ;; | |
7649 | *N32*) | |
7650 | LD="${LD-ld} -n32" | |
7651 | ;; | |
7652 | *64-bit*) | |
7653 | LD="${LD-ld} -64" | |
7654 | ;; | |
7655 | esac | |
7656 | fi | |
7657 | fi | |
7658 | rm -rf conftest* | |
7659 | ;; | |
7660 | ||
7661 | mips64*-*linux*) | |
7662 | # Find out what ABI is being produced by ac_compile, and set linker | |
7663 | # options accordingly. | |
7664 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7665 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7666 | (eval $ac_compile) 2>&5 | |
7667 | ac_status=$? | |
7668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7669 | test $ac_status = 0; }; then | |
7670 | emul=elf | |
7671 | case `/usr/bin/file conftest.$ac_objext` in | |
7672 | *32-bit*) | |
7673 | emul="${emul}32" | |
7674 | ;; | |
7675 | *64-bit*) | |
7676 | emul="${emul}64" | |
7677 | ;; | |
7678 | esac | |
7679 | case `/usr/bin/file conftest.$ac_objext` in | |
7680 | *MSB*) | |
7681 | emul="${emul}btsmip" | |
7682 | ;; | |
7683 | *LSB*) | |
7684 | emul="${emul}ltsmip" | |
7685 | ;; | |
7686 | esac | |
7687 | case `/usr/bin/file conftest.$ac_objext` in | |
7688 | *N32*) | |
7689 | emul="${emul}n32" | |
7690 | ;; | |
7691 | esac | |
7692 | LD="${LD-ld} -m $emul" | |
7693 | fi | |
7694 | rm -rf conftest* | |
7695 | ;; | |
7696 | ||
7697 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7698 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7699 | # Find out what ABI is being produced by ac_compile, and set linker | |
7700 | # options accordingly. Note that the listed cases only cover the | |
7701 | # situations where additional linker options are needed (such as when | |
7702 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
7703 | # vice versa); the common cases where no linker options are needed do | |
7704 | # not appear in the list. | |
7705 | echo 'int i;' > conftest.$ac_ext | |
7706 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7707 | (eval $ac_compile) 2>&5 | |
7708 | ac_status=$? | |
7709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7710 | test $ac_status = 0; }; then | |
7711 | case `/usr/bin/file conftest.o` in | |
7712 | *32-bit*) | |
7713 | case $host in | |
7714 | x86_64-*kfreebsd*-gnu) | |
7715 | LD="${LD-ld} -m elf_i386_fbsd" | |
7716 | ;; | |
7717 | x86_64-*linux*) | |
7718 | case `/usr/bin/file conftest.o` in | |
7719 | *x86-64*) | |
7720 | LD="${LD-ld} -m elf32_x86_64" | |
7721 | ;; | |
7722 | *) | |
7723 | LD="${LD-ld} -m elf_i386" | |
7724 | ;; | |
7725 | esac | |
7726 | ;; | |
7727 | powerpc64le-*linux*) | |
7728 | LD="${LD-ld} -m elf32lppclinux" | |
7729 | ;; | |
7730 | powerpc64-*linux*) | |
7731 | LD="${LD-ld} -m elf32ppclinux" | |
7732 | ;; | |
7733 | s390x-*linux*) | |
7734 | LD="${LD-ld} -m elf_s390" | |
7735 | ;; | |
7736 | sparc64-*linux*) | |
7737 | LD="${LD-ld} -m elf32_sparc" | |
7738 | ;; | |
7739 | esac | |
7740 | ;; | |
7741 | *64-bit*) | |
7742 | case $host in | |
7743 | x86_64-*kfreebsd*-gnu) | |
7744 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7745 | ;; | |
7746 | x86_64-*linux*) | |
7747 | LD="${LD-ld} -m elf_x86_64" | |
7748 | ;; | |
7749 | powerpcle-*linux*) | |
7750 | LD="${LD-ld} -m elf64lppc" | |
7751 | ;; | |
7752 | powerpc-*linux*) | |
7753 | LD="${LD-ld} -m elf64ppc" | |
7754 | ;; | |
7755 | s390*-*linux*|s390*-*tpf*) | |
7756 | LD="${LD-ld} -m elf64_s390" | |
7757 | ;; | |
7758 | sparc*-*linux*) | |
7759 | LD="${LD-ld} -m elf64_sparc" | |
7760 | ;; | |
7761 | esac | |
7762 | ;; | |
7763 | esac | |
7764 | fi | |
7765 | rm -rf conftest* | |
7766 | ;; | |
7767 | ||
7768 | *-*-sco3.2v5*) | |
7769 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7770 | SAVE_CFLAGS=$CFLAGS | |
7771 | CFLAGS="$CFLAGS -belf" | |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7773 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7774 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7775 | $as_echo_n "(cached) " >&6 | |
7776 | else | |
7777 | ac_ext=c | |
7778 | ac_cpp='$CPP $CPPFLAGS' | |
7779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7782 | ||
7783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7784 | /* end confdefs.h. */ | |
7785 | ||
7786 | int | |
7787 | main () | |
7788 | { | |
7789 | ||
7790 | ; | |
7791 | return 0; | |
7792 | } | |
7793 | _ACEOF | |
7794 | if ac_fn_c_try_link "$LINENO"; then : | |
7795 | lt_cv_cc_needs_belf=yes | |
7796 | else | |
7797 | lt_cv_cc_needs_belf=no | |
7798 | fi | |
7799 | rm -f core conftest.err conftest.$ac_objext \ | |
7800 | conftest$ac_exeext conftest.$ac_ext | |
7801 | ac_ext=c | |
7802 | ac_cpp='$CPP $CPPFLAGS' | |
7803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7806 | ||
7807 | fi | |
7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7809 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7810 | if test yes != "$lt_cv_cc_needs_belf"; then | |
7811 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7812 | CFLAGS=$SAVE_CFLAGS | |
7813 | fi | |
7814 | ;; | |
7815 | *-*solaris*) | |
7816 | # Find out what ABI is being produced by ac_compile, and set linker | |
7817 | # options accordingly. | |
7818 | echo 'int i;' > conftest.$ac_ext | |
7819 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7820 | (eval $ac_compile) 2>&5 | |
7821 | ac_status=$? | |
7822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7823 | test $ac_status = 0; }; then | |
7824 | case `/usr/bin/file conftest.o` in | |
7825 | *64-bit*) | |
7826 | case $lt_cv_prog_gnu_ld in | |
7827 | yes*) | |
7828 | case $host in | |
7829 | i?86-*-solaris*|x86_64-*-solaris*) | |
7830 | LD="${LD-ld} -m elf_x86_64" | |
7831 | ;; | |
7832 | sparc*-*-solaris*) | |
7833 | LD="${LD-ld} -m elf64_sparc" | |
7834 | ;; | |
7835 | esac | |
7836 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7837 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7838 | LD=${LD-ld}_sol2 | |
7839 | fi | |
7840 | ;; | |
7841 | *) | |
7842 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7843 | LD="${LD-ld} -64" | |
7844 | fi | |
7845 | ;; | |
7846 | esac | |
7847 | ;; | |
7848 | esac | |
7849 | fi | |
7850 | rm -rf conftest* | |
7851 | ;; | |
7852 | esac | |
7853 | ||
7854 | need_locks=$enable_libtool_lock | |
7855 | ||
7856 | if test -n "$ac_tool_prefix"; then | |
7857 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7858 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7860 | $as_echo_n "checking for $ac_word... " >&6; } | |
7861 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7862 | $as_echo_n "(cached) " >&6 | |
7863 | else | |
7864 | if test -n "$MANIFEST_TOOL"; then | |
7865 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7866 | else | |
7867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7868 | for as_dir in $PATH | |
7869 | do | |
7870 | IFS=$as_save_IFS | |
7871 | test -z "$as_dir" && as_dir=. | |
7872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7874 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7876 | break 2 | |
7877 | fi | |
7878 | done | |
7879 | done | |
7880 | IFS=$as_save_IFS | |
7881 | ||
7882 | fi | |
7883 | fi | |
7884 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7885 | if test -n "$MANIFEST_TOOL"; then | |
7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7887 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7888 | else | |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7890 | $as_echo "no" >&6; } | |
7891 | fi | |
7892 | ||
7893 | ||
7894 | fi | |
7895 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7896 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7897 | # Extract the first word of "mt", so it can be a program name with args. | |
7898 | set dummy mt; ac_word=$2 | |
7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7900 | $as_echo_n "checking for $ac_word... " >&6; } | |
7901 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7902 | $as_echo_n "(cached) " >&6 | |
7903 | else | |
7904 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7905 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7906 | else | |
7907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7908 | for as_dir in $PATH | |
7909 | do | |
7910 | IFS=$as_save_IFS | |
7911 | test -z "$as_dir" && as_dir=. | |
7912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7914 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7916 | break 2 | |
7917 | fi | |
7918 | done | |
7919 | done | |
7920 | IFS=$as_save_IFS | |
7921 | ||
7922 | fi | |
7923 | fi | |
7924 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7925 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7927 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7928 | else | |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7930 | $as_echo "no" >&6; } | |
7931 | fi | |
7932 | ||
7933 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7934 | MANIFEST_TOOL=":" | |
7935 | else | |
7936 | case $cross_compiling:$ac_tool_warned in | |
7937 | yes:) | |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7939 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7940 | ac_tool_warned=yes ;; | |
7941 | esac | |
7942 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7943 | fi | |
7944 | else | |
7945 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7946 | fi | |
7947 | ||
7948 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7950 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7951 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7952 | $as_echo_n "(cached) " >&6 | |
7953 | else | |
7954 | lt_cv_path_mainfest_tool=no | |
7955 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7956 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7957 | cat conftest.err >&5 | |
7958 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7959 | lt_cv_path_mainfest_tool=yes | |
7960 | fi | |
7961 | rm -rf conftest* | |
7962 | fi | |
7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7964 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7965 | if test yes != "$lt_cv_path_mainfest_tool"; then | |
7966 | MANIFEST_TOOL=: | |
7967 | fi | |
7968 | ||
7969 | ||
7970 | ||
7971 | ||
7972 | ||
7973 | ||
7974 | case $host_os in | |
7975 | rhapsody* | darwin*) | |
7976 | if test -n "$ac_tool_prefix"; then | |
7977 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7978 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7980 | $as_echo_n "checking for $ac_word... " >&6; } | |
7981 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7982 | $as_echo_n "(cached) " >&6 | |
7983 | else | |
7984 | if test -n "$DSYMUTIL"; then | |
7985 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7986 | else | |
7987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7988 | for as_dir in $PATH | |
7989 | do | |
7990 | IFS=$as_save_IFS | |
7991 | test -z "$as_dir" && as_dir=. | |
7992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7994 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7996 | break 2 | |
7997 | fi | |
7998 | done | |
7999 | done | |
8000 | IFS=$as_save_IFS | |
8001 | ||
8002 | fi | |
8003 | fi | |
8004 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8005 | if test -n "$DSYMUTIL"; then | |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8007 | $as_echo "$DSYMUTIL" >&6; } | |
8008 | else | |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8010 | $as_echo "no" >&6; } | |
8011 | fi | |
8012 | ||
8013 | ||
8014 | fi | |
8015 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8016 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8017 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8018 | set dummy dsymutil; ac_word=$2 | |
8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8020 | $as_echo_n "checking for $ac_word... " >&6; } | |
8021 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
8022 | $as_echo_n "(cached) " >&6 | |
8023 | else | |
8024 | if test -n "$ac_ct_DSYMUTIL"; then | |
8025 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8026 | else | |
8027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8028 | for as_dir in $PATH | |
8029 | do | |
8030 | IFS=$as_save_IFS | |
8031 | test -z "$as_dir" && as_dir=. | |
8032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8034 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8036 | break 2 | |
8037 | fi | |
8038 | done | |
8039 | done | |
8040 | IFS=$as_save_IFS | |
8041 | ||
8042 | fi | |
8043 | fi | |
8044 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8045 | if test -n "$ac_ct_DSYMUTIL"; then | |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8047 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
8048 | else | |
8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8050 | $as_echo "no" >&6; } | |
8051 | fi | |
8052 | ||
8053 | if test "x$ac_ct_DSYMUTIL" = x; then | |
8054 | DSYMUTIL=":" | |
8055 | else | |
8056 | case $cross_compiling:$ac_tool_warned in | |
8057 | yes:) | |
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8059 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8060 | ac_tool_warned=yes ;; | |
8061 | esac | |
8062 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8063 | fi | |
8064 | else | |
8065 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8066 | fi | |
8067 | ||
8068 | if test -n "$ac_tool_prefix"; then | |
8069 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8070 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8072 | $as_echo_n "checking for $ac_word... " >&6; } | |
8073 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
8074 | $as_echo_n "(cached) " >&6 | |
8075 | else | |
8076 | if test -n "$NMEDIT"; then | |
8077 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8078 | else | |
8079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8080 | for as_dir in $PATH | |
8081 | do | |
8082 | IFS=$as_save_IFS | |
8083 | test -z "$as_dir" && as_dir=. | |
8084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8086 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8088 | break 2 | |
8089 | fi | |
8090 | done | |
8091 | done | |
8092 | IFS=$as_save_IFS | |
8093 | ||
8094 | fi | |
8095 | fi | |
8096 | NMEDIT=$ac_cv_prog_NMEDIT | |
8097 | if test -n "$NMEDIT"; then | |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8099 | $as_echo "$NMEDIT" >&6; } | |
8100 | else | |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8102 | $as_echo "no" >&6; } | |
8103 | fi | |
8104 | ||
8105 | ||
8106 | fi | |
8107 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8108 | ac_ct_NMEDIT=$NMEDIT | |
8109 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8110 | set dummy nmedit; ac_word=$2 | |
8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8112 | $as_echo_n "checking for $ac_word... " >&6; } | |
8113 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
8114 | $as_echo_n "(cached) " >&6 | |
8115 | else | |
8116 | if test -n "$ac_ct_NMEDIT"; then | |
8117 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8118 | else | |
8119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8120 | for as_dir in $PATH | |
8121 | do | |
8122 | IFS=$as_save_IFS | |
8123 | test -z "$as_dir" && as_dir=. | |
8124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8126 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8128 | break 2 | |
8129 | fi | |
8130 | done | |
8131 | done | |
8132 | IFS=$as_save_IFS | |
8133 | ||
8134 | fi | |
8135 | fi | |
8136 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8137 | if test -n "$ac_ct_NMEDIT"; then | |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8139 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
8140 | else | |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8142 | $as_echo "no" >&6; } | |
8143 | fi | |
8144 | ||
8145 | if test "x$ac_ct_NMEDIT" = x; then | |
8146 | NMEDIT=":" | |
8147 | else | |
8148 | case $cross_compiling:$ac_tool_warned in | |
8149 | yes:) | |
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8151 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8152 | ac_tool_warned=yes ;; | |
8153 | esac | |
8154 | NMEDIT=$ac_ct_NMEDIT | |
8155 | fi | |
8156 | else | |
8157 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8158 | fi | |
8159 | ||
8160 | if test -n "$ac_tool_prefix"; then | |
8161 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8162 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8164 | $as_echo_n "checking for $ac_word... " >&6; } | |
8165 | if ${ac_cv_prog_LIPO+:} false; then : | |
8166 | $as_echo_n "(cached) " >&6 | |
8167 | else | |
8168 | if test -n "$LIPO"; then | |
8169 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8170 | else | |
8171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8172 | for as_dir in $PATH | |
8173 | do | |
8174 | IFS=$as_save_IFS | |
8175 | test -z "$as_dir" && as_dir=. | |
8176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8178 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8180 | break 2 | |
8181 | fi | |
8182 | done | |
8183 | done | |
8184 | IFS=$as_save_IFS | |
8185 | ||
8186 | fi | |
8187 | fi | |
8188 | LIPO=$ac_cv_prog_LIPO | |
8189 | if test -n "$LIPO"; then | |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8191 | $as_echo "$LIPO" >&6; } | |
8192 | else | |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8194 | $as_echo "no" >&6; } | |
8195 | fi | |
8196 | ||
8197 | ||
8198 | fi | |
8199 | if test -z "$ac_cv_prog_LIPO"; then | |
8200 | ac_ct_LIPO=$LIPO | |
8201 | # Extract the first word of "lipo", so it can be a program name with args. | |
8202 | set dummy lipo; ac_word=$2 | |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8204 | $as_echo_n "checking for $ac_word... " >&6; } | |
8205 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
8206 | $as_echo_n "(cached) " >&6 | |
8207 | else | |
8208 | if test -n "$ac_ct_LIPO"; then | |
8209 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8210 | else | |
8211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8212 | for as_dir in $PATH | |
8213 | do | |
8214 | IFS=$as_save_IFS | |
8215 | test -z "$as_dir" && as_dir=. | |
8216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8218 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8220 | break 2 | |
8221 | fi | |
8222 | done | |
8223 | done | |
8224 | IFS=$as_save_IFS | |
8225 | ||
8226 | fi | |
8227 | fi | |
8228 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8229 | if test -n "$ac_ct_LIPO"; then | |
8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8231 | $as_echo "$ac_ct_LIPO" >&6; } | |
8232 | else | |
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8234 | $as_echo "no" >&6; } | |
8235 | fi | |
8236 | ||
8237 | if test "x$ac_ct_LIPO" = x; then | |
8238 | LIPO=":" | |
8239 | else | |
8240 | case $cross_compiling:$ac_tool_warned in | |
8241 | yes:) | |
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8244 | ac_tool_warned=yes ;; | |
8245 | esac | |
8246 | LIPO=$ac_ct_LIPO | |
8247 | fi | |
8248 | else | |
8249 | LIPO="$ac_cv_prog_LIPO" | |
8250 | fi | |
8251 | ||
8252 | if test -n "$ac_tool_prefix"; then | |
8253 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8254 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8256 | $as_echo_n "checking for $ac_word... " >&6; } | |
8257 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8258 | $as_echo_n "(cached) " >&6 | |
8259 | else | |
8260 | if test -n "$OTOOL"; then | |
8261 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8262 | else | |
8263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8264 | for as_dir in $PATH | |
8265 | do | |
8266 | IFS=$as_save_IFS | |
8267 | test -z "$as_dir" && as_dir=. | |
8268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8270 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8272 | break 2 | |
8273 | fi | |
8274 | done | |
8275 | done | |
8276 | IFS=$as_save_IFS | |
8277 | ||
8278 | fi | |
8279 | fi | |
8280 | OTOOL=$ac_cv_prog_OTOOL | |
8281 | if test -n "$OTOOL"; then | |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8283 | $as_echo "$OTOOL" >&6; } | |
8284 | else | |
8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8286 | $as_echo "no" >&6; } | |
8287 | fi | |
8288 | ||
8289 | ||
8290 | fi | |
8291 | if test -z "$ac_cv_prog_OTOOL"; then | |
8292 | ac_ct_OTOOL=$OTOOL | |
8293 | # Extract the first word of "otool", so it can be a program name with args. | |
8294 | set dummy otool; ac_word=$2 | |
8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8296 | $as_echo_n "checking for $ac_word... " >&6; } | |
8297 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8298 | $as_echo_n "(cached) " >&6 | |
8299 | else | |
8300 | if test -n "$ac_ct_OTOOL"; then | |
8301 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8302 | else | |
8303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8304 | for as_dir in $PATH | |
8305 | do | |
8306 | IFS=$as_save_IFS | |
8307 | test -z "$as_dir" && as_dir=. | |
8308 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8309 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8310 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8312 | break 2 | |
8313 | fi | |
8314 | done | |
8315 | done | |
8316 | IFS=$as_save_IFS | |
8317 | ||
8318 | fi | |
8319 | fi | |
8320 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8321 | if test -n "$ac_ct_OTOOL"; then | |
8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8323 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8324 | else | |
8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8326 | $as_echo "no" >&6; } | |
8327 | fi | |
8328 | ||
8329 | if test "x$ac_ct_OTOOL" = x; then | |
8330 | OTOOL=":" | |
8331 | else | |
8332 | case $cross_compiling:$ac_tool_warned in | |
8333 | yes:) | |
8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8335 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8336 | ac_tool_warned=yes ;; | |
8337 | esac | |
8338 | OTOOL=$ac_ct_OTOOL | |
8339 | fi | |
8340 | else | |
8341 | OTOOL="$ac_cv_prog_OTOOL" | |
8342 | fi | |
8343 | ||
8344 | if test -n "$ac_tool_prefix"; then | |
8345 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8346 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8348 | $as_echo_n "checking for $ac_word... " >&6; } | |
8349 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8350 | $as_echo_n "(cached) " >&6 | |
8351 | else | |
8352 | if test -n "$OTOOL64"; then | |
8353 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8354 | else | |
8355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8356 | for as_dir in $PATH | |
8357 | do | |
8358 | IFS=$as_save_IFS | |
8359 | test -z "$as_dir" && as_dir=. | |
8360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8362 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8364 | break 2 | |
8365 | fi | |
8366 | done | |
8367 | done | |
8368 | IFS=$as_save_IFS | |
8369 | ||
8370 | fi | |
8371 | fi | |
8372 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8373 | if test -n "$OTOOL64"; then | |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8375 | $as_echo "$OTOOL64" >&6; } | |
8376 | else | |
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8378 | $as_echo "no" >&6; } | |
8379 | fi | |
8380 | ||
8381 | ||
8382 | fi | |
8383 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8384 | ac_ct_OTOOL64=$OTOOL64 | |
8385 | # Extract the first word of "otool64", so it can be a program name with args. | |
8386 | set dummy otool64; ac_word=$2 | |
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8388 | $as_echo_n "checking for $ac_word... " >&6; } | |
8389 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8390 | $as_echo_n "(cached) " >&6 | |
8391 | else | |
8392 | if test -n "$ac_ct_OTOOL64"; then | |
8393 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8394 | else | |
8395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8396 | for as_dir in $PATH | |
8397 | do | |
8398 | IFS=$as_save_IFS | |
8399 | test -z "$as_dir" && as_dir=. | |
8400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8402 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8404 | break 2 | |
8405 | fi | |
8406 | done | |
8407 | done | |
8408 | IFS=$as_save_IFS | |
8409 | ||
8410 | fi | |
8411 | fi | |
8412 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8413 | if test -n "$ac_ct_OTOOL64"; then | |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8415 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8416 | else | |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8418 | $as_echo "no" >&6; } | |
8419 | fi | |
8420 | ||
8421 | if test "x$ac_ct_OTOOL64" = x; then | |
8422 | OTOOL64=":" | |
8423 | else | |
8424 | case $cross_compiling:$ac_tool_warned in | |
8425 | yes:) | |
8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8427 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8428 | ac_tool_warned=yes ;; | |
8429 | esac | |
8430 | OTOOL64=$ac_ct_OTOOL64 | |
8431 | fi | |
8432 | else | |
8433 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8434 | fi | |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8463 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8464 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8465 | $as_echo_n "(cached) " >&6 | |
8466 | else | |
8467 | lt_cv_apple_cc_single_mod=no | |
8468 | if test -z "$LT_MULTI_MODULE"; then | |
8469 | # By default we will add the -single_module flag. You can override | |
8470 | # by either setting the environment variable LT_MULTI_MODULE | |
8471 | # non-empty at configure time, or by adding -multi_module to the | |
8472 | # link flags. | |
8473 | rm -rf libconftest.dylib* | |
8474 | echo "int foo(void){return 1;}" > conftest.c | |
8475 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8476 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8477 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8478 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8479 | _lt_result=$? | |
8480 | # If there is a non-empty error log, and "single_module" | |
8481 | # appears in it, assume the flag caused a linker warning | |
8482 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8483 | cat conftest.err >&5 | |
8484 | # Otherwise, if the output was created with a 0 exit code from | |
8485 | # the compiler, it worked. | |
8486 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
8487 | lt_cv_apple_cc_single_mod=yes | |
8488 | else | |
8489 | cat conftest.err >&5 | |
8490 | fi | |
8491 | rm -rf libconftest.dylib* | |
8492 | rm -f conftest.* | |
8493 | fi | |
8494 | fi | |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8496 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8497 | ||
8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8499 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8500 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8501 | $as_echo_n "(cached) " >&6 | |
8502 | else | |
8503 | lt_cv_ld_exported_symbols_list=no | |
8504 | save_LDFLAGS=$LDFLAGS | |
8505 | echo "_main" > conftest.sym | |
8506 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8508 | /* end confdefs.h. */ | |
8509 | ||
8510 | int | |
8511 | main () | |
8512 | { | |
8513 | ||
8514 | ; | |
8515 | return 0; | |
8516 | } | |
8517 | _ACEOF | |
8518 | if ac_fn_c_try_link "$LINENO"; then : | |
8519 | lt_cv_ld_exported_symbols_list=yes | |
8520 | else | |
8521 | lt_cv_ld_exported_symbols_list=no | |
8522 | fi | |
8523 | rm -f core conftest.err conftest.$ac_objext \ | |
8524 | conftest$ac_exeext conftest.$ac_ext | |
8525 | LDFLAGS=$save_LDFLAGS | |
8526 | ||
8527 | fi | |
8528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8529 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8530 | ||
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8532 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8533 | if ${lt_cv_ld_force_load+:} false; then : | |
8534 | $as_echo_n "(cached) " >&6 | |
8535 | else | |
8536 | lt_cv_ld_force_load=no | |
8537 | cat > conftest.c << _LT_EOF | |
8538 | int forced_loaded() { return 2;} | |
8539 | _LT_EOF | |
8540 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8541 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8542 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8543 | $AR cru libconftest.a conftest.o 2>&5 | |
8544 | echo "$RANLIB libconftest.a" >&5 | |
8545 | $RANLIB libconftest.a 2>&5 | |
8546 | cat > conftest.c << _LT_EOF | |
8547 | int main() { return 0;} | |
8548 | _LT_EOF | |
8549 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8550 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8551 | _lt_result=$? | |
8552 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8553 | cat conftest.err >&5 | |
8554 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
8555 | lt_cv_ld_force_load=yes | |
8556 | else | |
8557 | cat conftest.err >&5 | |
8558 | fi | |
8559 | rm -f conftest.err libconftest.a conftest conftest.c | |
8560 | rm -rf conftest.dSYM | |
8561 | ||
8562 | fi | |
8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8564 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8565 | case $host_os in | |
8566 | rhapsody* | darwin1.[012]) | |
8567 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
8568 | darwin1.*) | |
8569 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8570 | darwin*) # darwin 5.x on | |
8571 | # if running on 10.5 or later, the deployment target defaults | |
8572 | # to the OS version, if on x86, and 10.4, the deployment | |
8573 | # target defaults to 10.4. Don't you love it? | |
8574 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8575 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8576 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
8577 | 10.[012][,.]*) | |
8578 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8579 | 10.*) | |
8580 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
8581 | esac | |
8582 | ;; | |
8583 | esac | |
8584 | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
8585 | _lt_dar_single_mod='$single_module' | |
8586 | fi | |
8587 | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
8588 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8589 | else | |
8590 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
8591 | fi | |
8592 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
8593 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8594 | else | |
8595 | _lt_dsymutil= | |
8596 | fi | |
8597 | ;; | |
8598 | esac | |
8599 | ||
8600 | # func_munge_path_list VARIABLE PATH | |
8601 | # ----------------------------------- | |
8602 | # VARIABLE is name of variable containing _space_ separated list of | |
8603 | # directories to be munged by the contents of PATH, which is string | |
8604 | # having a format: | |
8605 | # "DIR[:DIR]:" | |
8606 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
8607 | # ":DIR[:DIR]" | |
8608 | # string "DIR[ DIR]" will be appended to VARIABLE | |
8609 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
8610 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
8611 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
8612 | # "DIR[:DIR]" | |
8613 | # VARIABLE will be replaced by "DIR[ DIR]" | |
8614 | func_munge_path_list () | |
8615 | { | |
8616 | case x$2 in | |
8617 | x) | |
8618 | ;; | |
8619 | *:) | |
8620 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
8621 | ;; | |
8622 | x:*) | |
8623 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
8624 | ;; | |
8625 | *::*) | |
8626 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
8627 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
8628 | ;; | |
8629 | *) | |
8630 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
8631 | ;; | |
8632 | esac | |
8633 | } | |
8634 | ||
8635 | ac_ext=c | |
8636 | ac_cpp='$CPP $CPPFLAGS' | |
8637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8641 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8642 | # On Suns, sometimes $CPP names a directory. | |
8643 | if test -n "$CPP" && test -d "$CPP"; then | |
8644 | CPP= | |
8645 | fi | |
8646 | if test -z "$CPP"; then | |
8647 | if ${ac_cv_prog_CPP+:} false; then : | |
8648 | $as_echo_n "(cached) " >&6 | |
8649 | else | |
8650 | # Double quotes because CPP needs to be expanded | |
8651 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8652 | do | |
8653 | ac_preproc_ok=false | |
8654 | for ac_c_preproc_warn_flag in '' yes | |
8655 | do | |
8656 | # Use a header file that comes with gcc, so configuring glibc | |
8657 | # with a fresh cross-compiler works. | |
8658 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8659 | # <limits.h> exists even on freestanding compilers. | |
8660 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8661 | # not just through cpp. "Syntax error" is here to catch this case. | |
8662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8663 | /* end confdefs.h. */ | |
8664 | #ifdef __STDC__ | |
8665 | # include <limits.h> | |
8666 | #else | |
8667 | # include <assert.h> | |
8668 | #endif | |
8669 | Syntax error | |
8670 | _ACEOF | |
8671 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8672 | ||
8673 | else | |
8674 | # Broken: fails on valid input. | |
8675 | continue | |
8676 | fi | |
8677 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8678 | ||
8679 | # OK, works on sane cases. Now check whether nonexistent headers | |
8680 | # can be detected and how. | |
8681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8682 | /* end confdefs.h. */ | |
8683 | #include <ac_nonexistent.h> | |
8684 | _ACEOF | |
8685 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8686 | # Broken: success on invalid input. | |
8687 | continue | |
8688 | else | |
8689 | # Passes both tests. | |
8690 | ac_preproc_ok=: | |
8691 | break | |
8692 | fi | |
8693 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8694 | ||
8695 | done | |
8696 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8697 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8698 | if $ac_preproc_ok; then : | |
8699 | break | |
8700 | fi | |
8701 | ||
8702 | done | |
8703 | ac_cv_prog_CPP=$CPP | |
8704 | ||
8705 | fi | |
8706 | CPP=$ac_cv_prog_CPP | |
8707 | else | |
8708 | ac_cv_prog_CPP=$CPP | |
8709 | fi | |
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8711 | $as_echo "$CPP" >&6; } | |
8712 | ac_preproc_ok=false | |
8713 | for ac_c_preproc_warn_flag in '' yes | |
8714 | do | |
8715 | # Use a header file that comes with gcc, so configuring glibc | |
8716 | # with a fresh cross-compiler works. | |
8717 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8718 | # <limits.h> exists even on freestanding compilers. | |
8719 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8720 | # not just through cpp. "Syntax error" is here to catch this case. | |
8721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8722 | /* end confdefs.h. */ | |
8723 | #ifdef __STDC__ | |
8724 | # include <limits.h> | |
8725 | #else | |
8726 | # include <assert.h> | |
8727 | #endif | |
8728 | Syntax error | |
8729 | _ACEOF | |
8730 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8731 | ||
8732 | else | |
8733 | # Broken: fails on valid input. | |
8734 | continue | |
8735 | fi | |
8736 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8737 | ||
8738 | # OK, works on sane cases. Now check whether nonexistent headers | |
8739 | # can be detected and how. | |
8740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8741 | /* end confdefs.h. */ | |
8742 | #include <ac_nonexistent.h> | |
8743 | _ACEOF | |
8744 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8745 | # Broken: success on invalid input. | |
8746 | continue | |
8747 | else | |
8748 | # Passes both tests. | |
8749 | ac_preproc_ok=: | |
8750 | break | |
8751 | fi | |
8752 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8753 | ||
8754 | done | |
8755 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8756 | rm -f conftest.i conftest.err conftest.$ac_ext | |
8757 | if $ac_preproc_ok; then : | |
8758 | ||
8759 | else | |
8760 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8762 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8763 | See \`config.log' for more details" "$LINENO" 5; } | |
8764 | fi | |
8765 | ||
8766 | ac_ext=c | |
8767 | ac_cpp='$CPP $CPPFLAGS' | |
8768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8771 | ||
8772 | ||
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
8774 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
8775 | if ${ac_cv_header_stdc+:} false; then : | |
8776 | $as_echo_n "(cached) " >&6 | |
8777 | else | |
8778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8779 | /* end confdefs.h. */ | |
8780 | #include <stdlib.h> | |
8781 | #include <stdarg.h> | |
8782 | #include <string.h> | |
8783 | #include <float.h> | |
8784 | ||
8785 | int | |
8786 | main () | |
8787 | { | |
8788 | ||
8789 | ; | |
8790 | return 0; | |
8791 | } | |
8792 | _ACEOF | |
8793 | if ac_fn_c_try_compile "$LINENO"; then : | |
8794 | ac_cv_header_stdc=yes | |
8795 | else | |
8796 | ac_cv_header_stdc=no | |
8797 | fi | |
8798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8799 | ||
8800 | if test $ac_cv_header_stdc = yes; then | |
8801 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8803 | /* end confdefs.h. */ | |
8804 | #include <string.h> | |
8805 | ||
8806 | _ACEOF | |
8807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8808 | $EGREP "memchr" >/dev/null 2>&1; then : | |
8809 | ||
8810 | else | |
8811 | ac_cv_header_stdc=no | |
8812 | fi | |
8813 | rm -f conftest* | |
8814 | ||
8815 | fi | |
8816 | ||
8817 | if test $ac_cv_header_stdc = yes; then | |
8818 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8820 | /* end confdefs.h. */ | |
8821 | #include <stdlib.h> | |
8822 | ||
8823 | _ACEOF | |
8824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8825 | $EGREP "free" >/dev/null 2>&1; then : | |
8826 | ||
8827 | else | |
8828 | ac_cv_header_stdc=no | |
8829 | fi | |
8830 | rm -f conftest* | |
8831 | ||
8832 | fi | |
8833 | ||
8834 | if test $ac_cv_header_stdc = yes; then | |
8835 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8836 | if test "$cross_compiling" = yes; then : | |
8837 | : | |
8838 | else | |
8839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8840 | /* end confdefs.h. */ | |
8841 | #include <ctype.h> | |
8842 | #include <stdlib.h> | |
8843 | #if ((' ' & 0x0FF) == 0x020) | |
8844 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8845 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8846 | #else | |
8847 | # define ISLOWER(c) \ | |
8848 | (('a' <= (c) && (c) <= 'i') \ | |
8849 | || ('j' <= (c) && (c) <= 'r') \ | |
8850 | || ('s' <= (c) && (c) <= 'z')) | |
8851 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8852 | #endif | |
8853 | ||
8854 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8855 | int | |
8856 | main () | |
8857 | { | |
8858 | int i; | |
8859 | for (i = 0; i < 256; i++) | |
8860 | if (XOR (islower (i), ISLOWER (i)) | |
8861 | || toupper (i) != TOUPPER (i)) | |
8862 | return 2; | |
8863 | return 0; | |
8864 | } | |
8865 | _ACEOF | |
8866 | if ac_fn_c_try_run "$LINENO"; then : | |
8867 | ||
8868 | else | |
8869 | ac_cv_header_stdc=no | |
8870 | fi | |
8871 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8872 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8873 | fi | |
8874 | ||
8875 | fi | |
8876 | fi | |
8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8878 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8879 | if test $ac_cv_header_stdc = yes; then | |
8880 | ||
8881 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
8882 | ||
8883 | fi | |
8884 | ||
8885 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8886 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8887 | inttypes.h stdint.h unistd.h | |
8888 | do : | |
8889 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8890 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8891 | " | |
8892 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8893 | cat >>confdefs.h <<_ACEOF | |
8894 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8895 | _ACEOF | |
8896 | ||
8897 | fi | |
8898 | ||
8899 | done | |
8900 | ||
8901 | ||
8902 | for ac_header in dlfcn.h | |
8903 | do : | |
8904 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8905 | " | |
8906 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8907 | cat >>confdefs.h <<_ACEOF | |
8908 | #define HAVE_DLFCN_H 1 | |
8909 | _ACEOF | |
8910 | ||
8911 | fi | |
8912 | ||
8913 | done | |
8914 | ||
8915 | ||
8916 | ||
8917 | ||
8918 | func_stripname_cnf () | |
8919 | { | |
8920 | case $2 in | |
8921 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
8922 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
8923 | esac | |
8924 | } # func_stripname_cnf | |
8925 | ||
8926 | ||
8927 | ||
8928 | ||
8929 | ||
8930 | # Set options | |
8931 | # Check whether --enable-static was given. | |
8932 | if test "${enable_static+set}" = set; then : | |
8933 | enableval=$enable_static; p=${PACKAGE-default} | |
8934 | case $enableval in | |
8935 | yes) enable_static=yes ;; | |
8936 | no) enable_static=no ;; | |
8937 | *) | |
8938 | enable_static=no | |
8939 | # Look at the argument we got. We use all the common list separators. | |
8940 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8941 | for pkg in $enableval; do | |
8942 | IFS=$lt_save_ifs | |
8943 | if test "X$pkg" = "X$p"; then | |
8944 | enable_static=yes | |
8945 | fi | |
8946 | done | |
8947 | IFS=$lt_save_ifs | |
8948 | ;; | |
8949 | esac | |
8950 | else | |
8951 | enable_static=no | |
8952 | fi | |
8953 | ||
8954 | ||
8955 | ||
8956 | ||
8957 | ||
8958 | ||
8959 | ||
8960 | ||
8961 | ||
8962 | ||
8963 | enable_dlopen=no | |
8964 | ||
8965 | ||
8966 | enable_win32_dll=no | |
8967 | ||
8968 | ||
8969 | # Check whether --enable-shared was given. | |
8970 | if test "${enable_shared+set}" = set; then : | |
8971 | enableval=$enable_shared; p=${PACKAGE-default} | |
8972 | case $enableval in | |
8973 | yes) enable_shared=yes ;; | |
8974 | no) enable_shared=no ;; | |
8975 | *) | |
8976 | enable_shared=no | |
8977 | # Look at the argument we got. We use all the common list separators. | |
8978 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
8979 | for pkg in $enableval; do | |
8980 | IFS=$lt_save_ifs | |
8981 | if test "X$pkg" = "X$p"; then | |
8982 | enable_shared=yes | |
8983 | fi | |
8984 | done | |
8985 | IFS=$lt_save_ifs | |
8986 | ;; | |
8987 | esac | |
8988 | else | |
8989 | enable_shared=yes | |
8990 | fi | |
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | ||
9002 | # Check whether --with-pic was given. | |
9003 | if test "${with_pic+set}" = set; then : | |
9004 | withval=$with_pic; lt_p=${PACKAGE-default} | |
9005 | case $withval in | |
9006 | yes|no) pic_mode=$withval ;; | |
9007 | *) | |
9008 | pic_mode=default | |
9009 | # Look at the argument we got. We use all the common list separators. | |
9010 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
9011 | for lt_pkg in $withval; do | |
9012 | IFS=$lt_save_ifs | |
9013 | if test "X$lt_pkg" = "X$lt_p"; then | |
9014 | pic_mode=yes | |
9015 | fi | |
9016 | done | |
9017 | IFS=$lt_save_ifs | |
9018 | ;; | |
9019 | esac | |
9020 | else | |
9021 | pic_mode=default | |
9022 | fi | |
9023 | ||
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | ||
9030 | ||
9031 | # Check whether --enable-fast-install was given. | |
9032 | if test "${enable_fast_install+set}" = set; then : | |
9033 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9034 | case $enableval in | |
9035 | yes) enable_fast_install=yes ;; | |
9036 | no) enable_fast_install=no ;; | |
9037 | *) | |
9038 | enable_fast_install=no | |
9039 | # Look at the argument we got. We use all the common list separators. | |
9040 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
9041 | for pkg in $enableval; do | |
9042 | IFS=$lt_save_ifs | |
9043 | if test "X$pkg" = "X$p"; then | |
9044 | enable_fast_install=yes | |
9045 | fi | |
9046 | done | |
9047 | IFS=$lt_save_ifs | |
9048 | ;; | |
9049 | esac | |
9050 | else | |
9051 | enable_fast_install=yes | |
9052 | fi | |
9053 | ||
9054 | ||
9055 | ||
9056 | ||
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | shared_archive_member_spec= | |
9062 | case $host,$enable_shared in | |
9063 | power*-*-aix[5-9]*,yes) | |
9064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
9065 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
9066 | ||
9067 | # Check whether --with-aix-soname was given. | |
9068 | if test "${with_aix_soname+set}" = set; then : | |
9069 | withval=$with_aix_soname; case $withval in | |
9070 | aix|svr4|both) | |
9071 | ;; | |
9072 | *) | |
9073 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
9074 | ;; | |
9075 | esac | |
9076 | lt_cv_with_aix_soname=$with_aix_soname | |
9077 | else | |
9078 | if ${lt_cv_with_aix_soname+:} false; then : | |
9079 | $as_echo_n "(cached) " >&6 | |
9080 | else | |
9081 | lt_cv_with_aix_soname=aix | |
9082 | fi | |
9083 | ||
9084 | with_aix_soname=$lt_cv_with_aix_soname | |
9085 | fi | |
9086 | ||
9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
9088 | $as_echo "$with_aix_soname" >&6; } | |
9089 | if test aix != "$with_aix_soname"; then | |
9090 | # For the AIX way of multilib, we name the shared archive member | |
9091 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
9092 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
9093 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
9094 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
9095 | if test 64 = "${OBJECT_MODE-32}"; then | |
9096 | shared_archive_member_spec=shr_64 | |
9097 | else | |
9098 | shared_archive_member_spec=shr | |
9099 | fi | |
9100 | fi | |
9101 | ;; | |
9102 | *) | |
9103 | with_aix_soname=aix | |
9104 | ;; | |
9105 | esac | |
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9115 | ||
9116 | # This can be used to rebuild libtool when needed | |
9117 | LIBTOOL_DEPS=$ltmain | |
9118 | ||
9119 | # Always use our own libtool. | |
9120 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | ||
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | ||
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | ||
9147 | ||
9148 | ||
9149 | ||
9150 | ||
9151 | test -z "$LN_S" && LN_S="ln -s" | |
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | if test -n "${ZSH_VERSION+set}"; then | |
9167 | setopt NO_GLOB_SUBST | |
9168 | fi | |
9169 | ||
9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
9171 | $as_echo_n "checking for objdir... " >&6; } | |
9172 | if ${lt_cv_objdir+:} false; then : | |
9173 | $as_echo_n "(cached) " >&6 | |
9174 | else | |
9175 | rm -f .libs 2>/dev/null | |
9176 | mkdir .libs 2>/dev/null | |
9177 | if test -d .libs; then | |
9178 | lt_cv_objdir=.libs | |
9179 | else | |
9180 | # MS-DOS does not allow filenames that begin with a dot. | |
9181 | lt_cv_objdir=_libs | |
9182 | fi | |
9183 | rmdir .libs 2>/dev/null | |
9184 | fi | |
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9186 | $as_echo "$lt_cv_objdir" >&6; } | |
9187 | objdir=$lt_cv_objdir | |
9188 | ||
9189 | ||
9190 | ||
9191 | ||
9192 | ||
9193 | cat >>confdefs.h <<_ACEOF | |
9194 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9195 | _ACEOF | |
9196 | ||
9197 | ||
9198 | ||
9199 | ||
9200 | case $host_os in | |
9201 | aix3*) | |
9202 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9203 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9204 | # vanish in a puff of smoke. | |
9205 | if test set != "${COLLECT_NAMES+set}"; then | |
9206 | COLLECT_NAMES= | |
9207 | export COLLECT_NAMES | |
9208 | fi | |
9209 | ;; | |
9210 | esac | |
9211 | ||
9212 | # Global variables: | |
9213 | ofile=libtool | |
9214 | can_build_shared=yes | |
9215 | ||
9216 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
9217 | # which needs '.lib'). | |
9218 | libext=a | |
9219 | ||
9220 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9221 | ||
9222 | old_CC=$CC | |
9223 | old_CFLAGS=$CFLAGS | |
9224 | ||
9225 | # Set sane defaults for various variables | |
9226 | test -z "$CC" && CC=cc | |
9227 | test -z "$LTCC" && LTCC=$CC | |
9228 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9229 | test -z "$LD" && LD=ld | |
9230 | test -z "$ac_objext" && ac_objext=o | |
9231 | ||
9232 | func_cc_basename $compiler | |
9233 | cc_basename=$func_cc_basename_result | |
9234 | ||
9235 | ||
9236 | # Only perform the check for file, if the check method requires it | |
9237 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9238 | case $deplibs_check_method in | |
9239 | file_magic*) | |
9240 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9242 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9243 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9244 | $as_echo_n "(cached) " >&6 | |
9245 | else | |
9246 | case $MAGIC_CMD in | |
9247 | [\\/*] | ?:[\\/]*) | |
9248 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
9249 | ;; | |
9250 | *) | |
9251 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
9252 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
9253 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9254 | for ac_dir in $ac_dummy; do | |
9255 | IFS=$lt_save_ifs | |
9256 | test -z "$ac_dir" && ac_dir=. | |
9257 | if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
9258 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
9259 | if test -n "$file_magic_test_file"; then | |
9260 | case $deplibs_check_method in | |
9261 | "file_magic "*) | |
9262 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9263 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
9264 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9265 | $EGREP "$file_magic_regex" > /dev/null; then | |
9266 | : | |
9267 | else | |
9268 | cat <<_LT_EOF 1>&2 | |
9269 | ||
9270 | *** Warning: the command libtool uses to detect shared libraries, | |
9271 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9272 | *** The result is that libtool may fail to recognize shared libraries | |
9273 | *** as such. This will affect the creation of libtool libraries that | |
9274 | *** depend on shared libraries, but programs linked with such libtool | |
9275 | *** libraries will work regardless of this problem. Nevertheless, you | |
9276 | *** may want to report the problem to your system manager and/or to | |
9277 | *** bug-libtool@gnu.org | |
9278 | ||
9279 | _LT_EOF | |
9280 | fi ;; | |
9281 | esac | |
9282 | fi | |
9283 | break | |
9284 | fi | |
9285 | done | |
9286 | IFS=$lt_save_ifs | |
9287 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
9288 | ;; | |
9289 | esac | |
9290 | fi | |
9291 | ||
9292 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
9293 | if test -n "$MAGIC_CMD"; then | |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9295 | $as_echo "$MAGIC_CMD" >&6; } | |
9296 | else | |
9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9298 | $as_echo "no" >&6; } | |
9299 | fi | |
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9306 | if test -n "$ac_tool_prefix"; then | |
9307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9308 | $as_echo_n "checking for file... " >&6; } | |
9309 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9310 | $as_echo_n "(cached) " >&6 | |
9311 | else | |
9312 | case $MAGIC_CMD in | |
9313 | [\\/*] | ?:[\\/]*) | |
9314 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
9315 | ;; | |
9316 | *) | |
9317 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
9318 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
9319 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9320 | for ac_dir in $ac_dummy; do | |
9321 | IFS=$lt_save_ifs | |
9322 | test -z "$ac_dir" && ac_dir=. | |
9323 | if test -f "$ac_dir/file"; then | |
9324 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
9325 | if test -n "$file_magic_test_file"; then | |
9326 | case $deplibs_check_method in | |
9327 | "file_magic "*) | |
9328 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9329 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
9330 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9331 | $EGREP "$file_magic_regex" > /dev/null; then | |
9332 | : | |
9333 | else | |
9334 | cat <<_LT_EOF 1>&2 | |
9335 | ||
9336 | *** Warning: the command libtool uses to detect shared libraries, | |
9337 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9338 | *** The result is that libtool may fail to recognize shared libraries | |
9339 | *** as such. This will affect the creation of libtool libraries that | |
9340 | *** depend on shared libraries, but programs linked with such libtool | |
9341 | *** libraries will work regardless of this problem. Nevertheless, you | |
9342 | *** may want to report the problem to your system manager and/or to | |
9343 | *** bug-libtool@gnu.org | |
9344 | ||
9345 | _LT_EOF | |
9346 | fi ;; | |
9347 | esac | |
9348 | fi | |
9349 | break | |
9350 | fi | |
9351 | done | |
9352 | IFS=$lt_save_ifs | |
9353 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
9354 | ;; | |
9355 | esac | |
9356 | fi | |
9357 | ||
9358 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
9359 | if test -n "$MAGIC_CMD"; then | |
9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9361 | $as_echo "$MAGIC_CMD" >&6; } | |
9362 | else | |
9363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9364 | $as_echo "no" >&6; } | |
9365 | fi | |
9366 | ||
9367 | ||
9368 | else | |
9369 | MAGIC_CMD=: | |
9370 | fi | |
9371 | fi | |
9372 | ||
9373 | fi | |
9374 | ;; | |
9375 | esac | |
9376 | ||
9377 | # Use C for the default configuration in the libtool script | |
9378 | ||
9379 | lt_save_CC=$CC | |
9380 | ac_ext=c | |
9381 | ac_cpp='$CPP $CPPFLAGS' | |
9382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9385 | ||
9386 | ||
9387 | # Source file extension for C test sources. | |
9388 | ac_ext=c | |
9389 | ||
9390 | # Object file extension for compiled C test sources. | |
9391 | objext=o | |
9392 | objext=$objext | |
9393 | ||
9394 | # Code to be used in simple compile tests | |
9395 | lt_simple_compile_test_code="int some_variable = 0;" | |
9396 | ||
9397 | # Code to be used in simple link tests | |
9398 | lt_simple_link_test_code='int main(){return(0);}' | |
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | # If no C compiler was specified, use CC. | |
9407 | LTCC=${LTCC-"$CC"} | |
9408 | ||
9409 | # If no C compiler flags were specified, use CFLAGS. | |
9410 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9411 | ||
9412 | # Allow CC to be a program name with arguments. | |
9413 | compiler=$CC | |
9414 | ||
9415 | # Save the default compiler, since it gets overwritten when the other | |
9416 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9417 | compiler_DEFAULT=$CC | |
9418 | ||
9419 | # save warnings/boilerplate of simple test code | |
9420 | ac_outfile=conftest.$ac_objext | |
9421 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9422 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9423 | _lt_compiler_boilerplate=`cat conftest.err` | |
9424 | $RM -r conftest* | |
9425 | ||
9426 | ac_outfile=conftest.$ac_objext | |
9427 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9428 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9429 | _lt_linker_boilerplate=`cat conftest.err` | |
9430 | $RM -r conftest* | |
9431 | ||
9432 | ||
9433 | ## CAVEAT EMPTOR: | |
9434 | ## There is no encapsulation within the following macros, do not change | |
9435 | ## the running order or otherwise move them around unless you know exactly | |
9436 | ## what you are doing... | |
9437 | if test -n "$compiler"; then | |
9438 | ||
9439 | lt_prog_compiler_no_builtin_flag= | |
9440 | ||
9441 | if test yes = "$GCC"; then | |
9442 | case $cc_basename in | |
9443 | nvcc*) | |
9444 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9445 | *) | |
9446 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9447 | esac | |
9448 | ||
9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9450 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9451 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9452 | $as_echo_n "(cached) " >&6 | |
9453 | else | |
9454 | lt_cv_prog_compiler_rtti_exceptions=no | |
9455 | ac_outfile=conftest.$ac_objext | |
9456 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9457 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
9458 | # Insert the option either (1) after the last *FLAGS variable, or | |
9459 | # (2) before a word containing "conftest.", or (3) at the end. | |
9460 | # Note that $ac_compile itself does not contain backslashes and begins | |
9461 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9462 | # The option is referenced via a variable to avoid confusing sed. | |
9463 | lt_compile=`echo "$ac_compile" | $SED \ | |
9464 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9465 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9466 | -e 's:$: $lt_compiler_flag:'` | |
9467 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9468 | (eval "$lt_compile" 2>conftest.err) | |
9469 | ac_status=$? | |
9470 | cat conftest.err >&5 | |
9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9472 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9473 | # The compiler can only warn and ignore the option if not recognized | |
9474 | # So say no if there are warnings other than the usual output. | |
9475 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9476 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9477 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9478 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9479 | fi | |
9480 | fi | |
9481 | $RM -r conftest* | |
9482 | ||
9483 | fi | |
9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9485 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9486 | ||
9487 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
9488 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9489 | else | |
9490 | : | |
9491 | fi | |
9492 | ||
9493 | fi | |
9494 | ||
9495 | ||
9496 | ||
9497 | ||
9498 | ||
9499 | ||
9500 | lt_prog_compiler_wl= | |
9501 | lt_prog_compiler_pic= | |
9502 | lt_prog_compiler_static= | |
9503 | ||
9504 | ||
9505 | if test yes = "$GCC"; then | |
9506 | lt_prog_compiler_wl='-Wl,' | |
9507 | lt_prog_compiler_static='-static' | |
9508 | ||
9509 | case $host_os in | |
9510 | aix*) | |
9511 | # All AIX code is PIC. | |
9512 | if test ia64 = "$host_cpu"; then | |
9513 | # AIX 5 now supports IA64 processor | |
9514 | lt_prog_compiler_static='-Bstatic' | |
9515 | fi | |
9516 | lt_prog_compiler_pic='-fPIC' | |
9517 | ;; | |
9518 | ||
9519 | amigaos*) | |
9520 | case $host_cpu in | |
9521 | powerpc) | |
9522 | # see comment about AmigaOS4 .so support | |
9523 | lt_prog_compiler_pic='-fPIC' | |
9524 | ;; | |
9525 | m68k) | |
9526 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9527 | # adding the '-m68020' flag to GCC prevents building anything better, | |
9528 | # like '-m68040'. | |
9529 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9530 | ;; | |
9531 | esac | |
9532 | ;; | |
9533 | ||
9534 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9535 | # PIC is the default for these OSes. | |
9536 | ;; | |
9537 | ||
9538 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9539 | # This hack is so that the source file can tell whether it is being | |
9540 | # built for inclusion in a dll (and should export symbols for example). | |
9541 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9542 | # (--disable-auto-import) libraries | |
9543 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9544 | case $host_os in | |
9545 | os2*) | |
9546 | lt_prog_compiler_static='$wl-static' | |
9547 | ;; | |
9548 | esac | |
9549 | ;; | |
9550 | ||
9551 | darwin* | rhapsody*) | |
9552 | # PIC is the default on this platform | |
9553 | # Common symbols not allowed in MH_DYLIB files | |
9554 | lt_prog_compiler_pic='-fno-common' | |
9555 | ;; | |
9556 | ||
9557 | haiku*) | |
9558 | # PIC is the default for Haiku. | |
9559 | # The "-static" flag exists, but is broken. | |
9560 | lt_prog_compiler_static= | |
9561 | ;; | |
9562 | ||
9563 | hpux*) | |
9564 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9565 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9566 | # sets the default TLS model and affects inlining. | |
9567 | case $host_cpu in | |
9568 | hppa*64*) | |
9569 | # +Z the default | |
9570 | ;; | |
9571 | *) | |
9572 | lt_prog_compiler_pic='-fPIC' | |
9573 | ;; | |
9574 | esac | |
9575 | ;; | |
9576 | ||
9577 | interix[3-9]*) | |
9578 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9579 | # Instead, we relocate shared libraries at runtime. | |
9580 | ;; | |
9581 | ||
9582 | msdosdjgpp*) | |
9583 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9584 | # on systems that don't support them. | |
9585 | lt_prog_compiler_can_build_shared=no | |
9586 | enable_shared=no | |
9587 | ;; | |
9588 | ||
9589 | *nto* | *qnx*) | |
9590 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9591 | # it will coredump. | |
9592 | lt_prog_compiler_pic='-fPIC -shared' | |
9593 | ;; | |
9594 | ||
9595 | sysv4*MP*) | |
9596 | if test -d /usr/nec; then | |
9597 | lt_prog_compiler_pic=-Kconform_pic | |
9598 | fi | |
9599 | ;; | |
9600 | ||
9601 | *) | |
9602 | lt_prog_compiler_pic='-fPIC' | |
9603 | ;; | |
9604 | esac | |
9605 | ||
9606 | case $cc_basename in | |
9607 | nvcc*) # Cuda Compiler Driver 2.2 | |
9608 | lt_prog_compiler_wl='-Xlinker ' | |
9609 | if test -n "$lt_prog_compiler_pic"; then | |
9610 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9611 | fi | |
9612 | ;; | |
9613 | esac | |
9614 | else | |
9615 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9616 | case $host_os in | |
9617 | aix*) | |
9618 | lt_prog_compiler_wl='-Wl,' | |
9619 | if test ia64 = "$host_cpu"; then | |
9620 | # AIX 5 now supports IA64 processor | |
9621 | lt_prog_compiler_static='-Bstatic' | |
9622 | else | |
9623 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9624 | fi | |
9625 | ;; | |
9626 | ||
9627 | darwin* | rhapsody*) | |
9628 | # PIC is the default on this platform | |
9629 | # Common symbols not allowed in MH_DYLIB files | |
9630 | lt_prog_compiler_pic='-fno-common' | |
9631 | case $cc_basename in | |
9632 | nagfor*) | |
9633 | # NAG Fortran compiler | |
9634 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9635 | lt_prog_compiler_pic='-PIC' | |
9636 | lt_prog_compiler_static='-Bstatic' | |
9637 | ;; | |
9638 | esac | |
9639 | ;; | |
9640 | ||
9641 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9642 | # This hack is so that the source file can tell whether it is being | |
9643 | # built for inclusion in a dll (and should export symbols for example). | |
9644 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9645 | case $host_os in | |
9646 | os2*) | |
9647 | lt_prog_compiler_static='$wl-static' | |
9648 | ;; | |
9649 | esac | |
9650 | ;; | |
9651 | ||
9652 | hpux9* | hpux10* | hpux11*) | |
9653 | lt_prog_compiler_wl='-Wl,' | |
9654 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9655 | # not for PA HP-UX. | |
9656 | case $host_cpu in | |
9657 | hppa*64*|ia64*) | |
9658 | # +Z the default | |
9659 | ;; | |
9660 | *) | |
9661 | lt_prog_compiler_pic='+Z' | |
9662 | ;; | |
9663 | esac | |
9664 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9665 | lt_prog_compiler_static='$wl-a ${wl}archive' | |
9666 | ;; | |
9667 | ||
9668 | irix5* | irix6* | nonstopux*) | |
9669 | lt_prog_compiler_wl='-Wl,' | |
9670 | # PIC (with -KPIC) is the default. | |
9671 | lt_prog_compiler_static='-non_shared' | |
9672 | ;; | |
9673 | ||
9674 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
9675 | case $cc_basename in | |
9676 | # old Intel for x86_64, which still supported -KPIC. | |
9677 | ecc*) | |
9678 | lt_prog_compiler_wl='-Wl,' | |
9679 | lt_prog_compiler_pic='-KPIC' | |
9680 | lt_prog_compiler_static='-static' | |
9681 | ;; | |
9682 | # icc used to be incompatible with GCC. | |
9683 | # ICC 10 doesn't accept -KPIC any more. | |
9684 | icc* | ifort*) | |
9685 | lt_prog_compiler_wl='-Wl,' | |
9686 | lt_prog_compiler_pic='-fPIC' | |
9687 | lt_prog_compiler_static='-static' | |
9688 | ;; | |
9689 | # Lahey Fortran 8.1. | |
9690 | lf95*) | |
9691 | lt_prog_compiler_wl='-Wl,' | |
9692 | lt_prog_compiler_pic='--shared' | |
9693 | lt_prog_compiler_static='--static' | |
9694 | ;; | |
9695 | nagfor*) | |
9696 | # NAG Fortran compiler | |
9697 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9698 | lt_prog_compiler_pic='-PIC' | |
9699 | lt_prog_compiler_static='-Bstatic' | |
9700 | ;; | |
9701 | tcc*) | |
9702 | # Fabrice Bellard et al's Tiny C Compiler | |
9703 | lt_prog_compiler_wl='-Wl,' | |
9704 | lt_prog_compiler_pic='-fPIC' | |
9705 | lt_prog_compiler_static='-static' | |
9706 | ;; | |
9707 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9708 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9709 | # which looks to be a dead project) | |
9710 | lt_prog_compiler_wl='-Wl,' | |
9711 | lt_prog_compiler_pic='-fpic' | |
9712 | lt_prog_compiler_static='-Bstatic' | |
9713 | ;; | |
9714 | ccc*) | |
9715 | lt_prog_compiler_wl='-Wl,' | |
9716 | # All Alpha code is PIC. | |
9717 | lt_prog_compiler_static='-non_shared' | |
9718 | ;; | |
9719 | xl* | bgxl* | bgf* | mpixl*) | |
9720 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9721 | lt_prog_compiler_wl='-Wl,' | |
9722 | lt_prog_compiler_pic='-qpic' | |
9723 | lt_prog_compiler_static='-qstaticlink' | |
9724 | ;; | |
9725 | *) | |
9726 | case `$CC -V 2>&1 | sed 5q` in | |
9727 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9728 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9729 | lt_prog_compiler_pic='-KPIC' | |
9730 | lt_prog_compiler_static='-Bstatic' | |
9731 | lt_prog_compiler_wl='' | |
9732 | ;; | |
9733 | *Sun\ F* | *Sun*Fortran*) | |
9734 | lt_prog_compiler_pic='-KPIC' | |
9735 | lt_prog_compiler_static='-Bstatic' | |
9736 | lt_prog_compiler_wl='-Qoption ld ' | |
9737 | ;; | |
9738 | *Sun\ C*) | |
9739 | # Sun C 5.9 | |
9740 | lt_prog_compiler_pic='-KPIC' | |
9741 | lt_prog_compiler_static='-Bstatic' | |
9742 | lt_prog_compiler_wl='-Wl,' | |
9743 | ;; | |
9744 | *Intel*\ [CF]*Compiler*) | |
9745 | lt_prog_compiler_wl='-Wl,' | |
9746 | lt_prog_compiler_pic='-fPIC' | |
9747 | lt_prog_compiler_static='-static' | |
9748 | ;; | |
9749 | *Portland\ Group*) | |
9750 | lt_prog_compiler_wl='-Wl,' | |
9751 | lt_prog_compiler_pic='-fpic' | |
9752 | lt_prog_compiler_static='-Bstatic' | |
9753 | ;; | |
9754 | esac | |
9755 | ;; | |
9756 | esac | |
9757 | ;; | |
9758 | ||
9759 | newsos6) | |
9760 | lt_prog_compiler_pic='-KPIC' | |
9761 | lt_prog_compiler_static='-Bstatic' | |
9762 | ;; | |
9763 | ||
9764 | *nto* | *qnx*) | |
9765 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9766 | # it will coredump. | |
9767 | lt_prog_compiler_pic='-fPIC -shared' | |
9768 | ;; | |
9769 | ||
9770 | osf3* | osf4* | osf5*) | |
9771 | lt_prog_compiler_wl='-Wl,' | |
9772 | # All OSF/1 code is PIC. | |
9773 | lt_prog_compiler_static='-non_shared' | |
9774 | ;; | |
9775 | ||
9776 | rdos*) | |
9777 | lt_prog_compiler_static='-non_shared' | |
9778 | ;; | |
9779 | ||
9780 | solaris*) | |
9781 | lt_prog_compiler_pic='-KPIC' | |
9782 | lt_prog_compiler_static='-Bstatic' | |
9783 | case $cc_basename in | |
9784 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9785 | lt_prog_compiler_wl='-Qoption ld ';; | |
9786 | *) | |
9787 | lt_prog_compiler_wl='-Wl,';; | |
9788 | esac | |
9789 | ;; | |
9790 | ||
9791 | sunos4*) | |
9792 | lt_prog_compiler_wl='-Qoption ld ' | |
9793 | lt_prog_compiler_pic='-PIC' | |
9794 | lt_prog_compiler_static='-Bstatic' | |
9795 | ;; | |
9796 | ||
9797 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9798 | lt_prog_compiler_wl='-Wl,' | |
9799 | lt_prog_compiler_pic='-KPIC' | |
9800 | lt_prog_compiler_static='-Bstatic' | |
9801 | ;; | |
9802 | ||
9803 | sysv4*MP*) | |
9804 | if test -d /usr/nec; then | |
9805 | lt_prog_compiler_pic='-Kconform_pic' | |
9806 | lt_prog_compiler_static='-Bstatic' | |
9807 | fi | |
9808 | ;; | |
9809 | ||
9810 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9811 | lt_prog_compiler_wl='-Wl,' | |
9812 | lt_prog_compiler_pic='-KPIC' | |
9813 | lt_prog_compiler_static='-Bstatic' | |
9814 | ;; | |
9815 | ||
9816 | unicos*) | |
9817 | lt_prog_compiler_wl='-Wl,' | |
9818 | lt_prog_compiler_can_build_shared=no | |
9819 | ;; | |
9820 | ||
9821 | uts4*) | |
9822 | lt_prog_compiler_pic='-pic' | |
9823 | lt_prog_compiler_static='-Bstatic' | |
9824 | ;; | |
9825 | ||
9826 | *) | |
9827 | lt_prog_compiler_can_build_shared=no | |
9828 | ;; | |
9829 | esac | |
9830 | fi | |
9831 | ||
9832 | case $host_os in | |
9833 | # For platforms that do not support PIC, -DPIC is meaningless: | |
9834 | *djgpp*) | |
9835 | lt_prog_compiler_pic= | |
9836 | ;; | |
9837 | *) | |
9838 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9839 | ;; | |
9840 | esac | |
9841 | ||
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9843 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9844 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9845 | $as_echo_n "(cached) " >&6 | |
9846 | else | |
9847 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9848 | fi | |
9849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9850 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9851 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9852 | ||
9853 | # | |
9854 | # Check to make sure the PIC flag actually works. | |
9855 | # | |
9856 | if test -n "$lt_prog_compiler_pic"; then | |
9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9858 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9859 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9860 | $as_echo_n "(cached) " >&6 | |
9861 | else | |
9862 | lt_cv_prog_compiler_pic_works=no | |
9863 | ac_outfile=conftest.$ac_objext | |
9864 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9865 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
9866 | # Insert the option either (1) after the last *FLAGS variable, or | |
9867 | # (2) before a word containing "conftest.", or (3) at the end. | |
9868 | # Note that $ac_compile itself does not contain backslashes and begins | |
9869 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9870 | # The option is referenced via a variable to avoid confusing sed. | |
9871 | lt_compile=`echo "$ac_compile" | $SED \ | |
9872 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9873 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9874 | -e 's:$: $lt_compiler_flag:'` | |
9875 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9876 | (eval "$lt_compile" 2>conftest.err) | |
9877 | ac_status=$? | |
9878 | cat conftest.err >&5 | |
9879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9880 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9881 | # The compiler can only warn and ignore the option if not recognized | |
9882 | # So say no if there are warnings other than the usual output. | |
9883 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9884 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9885 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9886 | lt_cv_prog_compiler_pic_works=yes | |
9887 | fi | |
9888 | fi | |
9889 | $RM -r conftest* | |
9890 | ||
9891 | fi | |
9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9893 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9894 | ||
9895 | if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
9896 | case $lt_prog_compiler_pic in | |
9897 | "" | " "*) ;; | |
9898 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9899 | esac | |
9900 | else | |
9901 | lt_prog_compiler_pic= | |
9902 | lt_prog_compiler_can_build_shared=no | |
9903 | fi | |
9904 | ||
9905 | fi | |
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | # | |
9918 | # Check to make sure the static flag actually works. | |
9919 | # | |
9920 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9922 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9923 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9924 | $as_echo_n "(cached) " >&6 | |
9925 | else | |
9926 | lt_cv_prog_compiler_static_works=no | |
9927 | save_LDFLAGS=$LDFLAGS | |
9928 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9929 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9930 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9931 | # The linker can only warn and ignore the option if not recognized | |
9932 | # So say no if there are warnings | |
9933 | if test -s conftest.err; then | |
9934 | # Append any errors to the config.log. | |
9935 | cat conftest.err 1>&5 | |
9936 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9937 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9938 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9939 | lt_cv_prog_compiler_static_works=yes | |
9940 | fi | |
9941 | else | |
9942 | lt_cv_prog_compiler_static_works=yes | |
9943 | fi | |
9944 | fi | |
9945 | $RM -r conftest* | |
9946 | LDFLAGS=$save_LDFLAGS | |
9947 | ||
9948 | fi | |
9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9950 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9951 | ||
9952 | if test yes = "$lt_cv_prog_compiler_static_works"; then | |
9953 | : | |
9954 | else | |
9955 | lt_prog_compiler_static= | |
9956 | fi | |
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9965 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9966 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9967 | $as_echo_n "(cached) " >&6 | |
9968 | else | |
9969 | lt_cv_prog_compiler_c_o=no | |
9970 | $RM -r conftest 2>/dev/null | |
9971 | mkdir conftest | |
9972 | cd conftest | |
9973 | mkdir out | |
9974 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9975 | ||
9976 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9977 | # Insert the option either (1) after the last *FLAGS variable, or | |
9978 | # (2) before a word containing "conftest.", or (3) at the end. | |
9979 | # Note that $ac_compile itself does not contain backslashes and begins | |
9980 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9981 | lt_compile=`echo "$ac_compile" | $SED \ | |
9982 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9983 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9984 | -e 's:$: $lt_compiler_flag:'` | |
9985 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9986 | (eval "$lt_compile" 2>out/conftest.err) | |
9987 | ac_status=$? | |
9988 | cat out/conftest.err >&5 | |
9989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9990 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9991 | then | |
9992 | # The compiler can only warn and ignore the option if not recognized | |
9993 | # So say no if there are warnings | |
9994 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9995 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9996 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9997 | lt_cv_prog_compiler_c_o=yes | |
9998 | fi | |
9999 | fi | |
10000 | chmod u+w . 2>&5 | |
10001 | $RM -r conftest* | |
10002 | # SGI C++ compiler will create directory out/ii_files/ for | |
10003 | # template instantiation | |
10004 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10005 | $RM out/* && rmdir out | |
10006 | cd .. | |
10007 | $RM -r conftest | |
10008 | $RM -r conftest* | |
10009 | ||
10010 | fi | |
10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10012 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10013 | ||
10014 | ||
10015 | ||
10016 | ||
10017 | ||
10018 | ||
10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10020 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10021 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10022 | $as_echo_n "(cached) " >&6 | |
10023 | else | |
10024 | lt_cv_prog_compiler_c_o=no | |
10025 | $RM -r conftest 2>/dev/null | |
10026 | mkdir conftest | |
10027 | cd conftest | |
10028 | mkdir out | |
10029 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10030 | ||
10031 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10032 | # Insert the option either (1) after the last *FLAGS variable, or | |
10033 | # (2) before a word containing "conftest.", or (3) at the end. | |
10034 | # Note that $ac_compile itself does not contain backslashes and begins | |
10035 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10036 | lt_compile=`echo "$ac_compile" | $SED \ | |
10037 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10038 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10039 | -e 's:$: $lt_compiler_flag:'` | |
10040 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10041 | (eval "$lt_compile" 2>out/conftest.err) | |
10042 | ac_status=$? | |
10043 | cat out/conftest.err >&5 | |
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10045 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10046 | then | |
10047 | # The compiler can only warn and ignore the option if not recognized | |
10048 | # So say no if there are warnings | |
10049 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10050 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10051 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10052 | lt_cv_prog_compiler_c_o=yes | |
10053 | fi | |
10054 | fi | |
10055 | chmod u+w . 2>&5 | |
10056 | $RM -r conftest* | |
10057 | # SGI C++ compiler will create directory out/ii_files/ for | |
10058 | # template instantiation | |
10059 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10060 | $RM out/* && rmdir out | |
10061 | cd .. | |
10062 | $RM -r conftest | |
10063 | $RM -r conftest* | |
10064 | ||
10065 | fi | |
10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10067 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10068 | ||
10069 | ||
10070 | ||
10071 | ||
10072 | hard_links=nottested | |
10073 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
10074 | # do not overwrite the value of need_locks provided by the user | |
10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10076 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10077 | hard_links=yes | |
10078 | $RM -r conftest* | |
10079 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10080 | touch conftest.a | |
10081 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10082 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10084 | $as_echo "$hard_links" >&6; } | |
10085 | if test no = "$hard_links"; then | |
10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
10087 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
10088 | need_locks=warn | |
10089 | fi | |
10090 | else | |
10091 | need_locks=no | |
10092 | fi | |
10093 | ||
10094 | ||
10095 | ||
10096 | ||
10097 | ||
10098 | ||
10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10100 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10101 | ||
10102 | runpath_var= | |
10103 | allow_undefined_flag= | |
10104 | always_export_symbols=no | |
10105 | archive_cmds= | |
10106 | archive_expsym_cmds= | |
10107 | compiler_needs_object=no | |
10108 | enable_shared_with_static_runtimes=no | |
10109 | export_dynamic_flag_spec= | |
10110 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10111 | hardcode_automatic=no | |
10112 | hardcode_direct=no | |
10113 | hardcode_direct_absolute=no | |
10114 | hardcode_libdir_flag_spec= | |
10115 | hardcode_libdir_separator= | |
10116 | hardcode_minus_L=no | |
10117 | hardcode_shlibpath_var=unsupported | |
10118 | inherit_rpath=no | |
10119 | link_all_deplibs=unknown | |
10120 | module_cmds= | |
10121 | module_expsym_cmds= | |
10122 | old_archive_from_new_cmds= | |
10123 | old_archive_from_expsyms_cmds= | |
10124 | thread_safe_flag_spec= | |
10125 | whole_archive_flag_spec= | |
10126 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10127 | # included in the symbol list | |
10128 | include_expsyms= | |
10129 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10130 | # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
10131 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
10132 | # as well as any symbol that contains 'd'. | |
10133 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10134 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10135 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10136 | # the symbol is explicitly referenced. Since portable code cannot | |
10137 | # rely on this symbol name, it's probably fine to never include it in | |
10138 | # preloaded symbol tables. | |
10139 | # Exclude shared library initialization/finalization symbols. | |
10140 | extract_expsyms_cmds= | |
10141 | ||
10142 | case $host_os in | |
10143 | cygwin* | mingw* | pw32* | cegcc*) | |
10144 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10145 | # When not using gcc, we currently assume that we are using | |
10146 | # Microsoft Visual C++. | |
10147 | if test yes != "$GCC"; then | |
10148 | with_gnu_ld=no | |
10149 | fi | |
10150 | ;; | |
10151 | interix*) | |
10152 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10153 | with_gnu_ld=yes | |
10154 | ;; | |
10155 | openbsd* | bitrig*) | |
10156 | with_gnu_ld=no | |
10157 | ;; | |
10158 | esac | |
10159 | ||
10160 | ld_shlibs=yes | |
10161 | ||
10162 | # On some targets, GNU ld is compatible enough with the native linker | |
10163 | # that we're better off using the native interface for both. | |
10164 | lt_use_gnu_ld_interface=no | |
10165 | if test yes = "$with_gnu_ld"; then | |
10166 | case $host_os in | |
10167 | aix*) | |
10168 | # The AIX port of GNU ld has always aspired to compatibility | |
10169 | # with the native linker. However, as the warning in the GNU ld | |
10170 | # block says, versions before 2.19.5* couldn't really create working | |
10171 | # shared libraries, regardless of the interface used. | |
10172 | case `$LD -v 2>&1` in | |
10173 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10174 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10175 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10176 | *) | |
10177 | lt_use_gnu_ld_interface=yes | |
10178 | ;; | |
10179 | esac | |
10180 | ;; | |
10181 | *) | |
10182 | lt_use_gnu_ld_interface=yes | |
10183 | ;; | |
10184 | esac | |
10185 | fi | |
10186 | ||
10187 | if test yes = "$lt_use_gnu_ld_interface"; then | |
10188 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10189 | wlarc='$wl' | |
10190 | ||
10191 | # Set some defaults for GNU ld with shared library support. These | |
10192 | # are reset later if shared libraries are not supported. Putting them | |
10193 | # here allows them to be overridden if necessary. | |
10194 | runpath_var=LD_RUN_PATH | |
10195 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10196 | export_dynamic_flag_spec='$wl--export-dynamic' | |
10197 | # ancient GNU ld didn't support --whole-archive et. al. | |
10198 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10199 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
10200 | else | |
10201 | whole_archive_flag_spec= | |
10202 | fi | |
10203 | supports_anon_versioning=no | |
10204 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
10205 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10206 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10207 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10208 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10209 | *\ 2.11.*) ;; # other 2.11 versions | |
10210 | *) supports_anon_versioning=yes ;; | |
10211 | esac | |
10212 | ||
10213 | # See if GNU ld supports shared libraries. | |
10214 | case $host_os in | |
10215 | aix[3-9]*) | |
10216 | # On AIX/PPC, the GNU linker is very broken | |
10217 | if test ia64 != "$host_cpu"; then | |
10218 | ld_shlibs=no | |
10219 | cat <<_LT_EOF 1>&2 | |
10220 | ||
10221 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10222 | *** to be unable to reliably create shared libraries on AIX. | |
10223 | *** Therefore, libtool is disabling shared libraries support. If you | |
10224 | *** really care for shared libraries, you may want to install binutils | |
10225 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10226 | *** You will then need to restart the configuration process. | |
10227 | ||
10228 | _LT_EOF | |
10229 | fi | |
10230 | ;; | |
10231 | ||
10232 | amigaos*) | |
10233 | case $host_cpu in | |
10234 | powerpc) | |
10235 | # see comment about AmigaOS4 .so support | |
10236 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10237 | archive_expsym_cmds='' | |
10238 | ;; | |
10239 | m68k) | |
10240 | 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)' | |
10241 | hardcode_libdir_flag_spec='-L$libdir' | |
10242 | hardcode_minus_L=yes | |
10243 | ;; | |
10244 | esac | |
10245 | ;; | |
10246 | ||
10247 | beos*) | |
10248 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10249 | allow_undefined_flag=unsupported | |
10250 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10251 | # support --undefined. This deserves some investigation. FIXME | |
10252 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10253 | else | |
10254 | ld_shlibs=no | |
10255 | fi | |
10256 | ;; | |
10257 | ||
10258 | cygwin* | mingw* | pw32* | cegcc*) | |
10259 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10260 | # as there is no search path for DLLs. | |
10261 | hardcode_libdir_flag_spec='-L$libdir' | |
10262 | export_dynamic_flag_spec='$wl--export-all-symbols' | |
10263 | allow_undefined_flag=unsupported | |
10264 | always_export_symbols=no | |
10265 | enable_shared_with_static_runtimes=yes | |
10266 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
10267 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
10268 | ||
10269 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10270 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10271 | # If the export-symbols file already is a .def file, use it as | |
10272 | # is; otherwise, prepend EXPORTS... | |
10273 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10274 | cp $export_symbols $output_objdir/$soname.def; | |
10275 | else | |
10276 | echo EXPORTS > $output_objdir/$soname.def; | |
10277 | cat $export_symbols >> $output_objdir/$soname.def; | |
10278 | fi~ | |
10279 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10280 | else | |
10281 | ld_shlibs=no | |
10282 | fi | |
10283 | ;; | |
10284 | ||
10285 | haiku*) | |
10286 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10287 | link_all_deplibs=yes | |
10288 | ;; | |
10289 | ||
10290 | os2*) | |
10291 | hardcode_libdir_flag_spec='-L$libdir' | |
10292 | hardcode_minus_L=yes | |
10293 | allow_undefined_flag=unsupported | |
10294 | shrext_cmds=.dll | |
10295 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10296 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10297 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10298 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10299 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10300 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10301 | emximp -o $lib $output_objdir/$libname.def' | |
10302 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10303 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10304 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10305 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10306 | prefix_cmds="$SED"~ | |
10307 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10308 | prefix_cmds="$prefix_cmds -e 1d"; | |
10309 | fi~ | |
10310 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10311 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10312 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10313 | emximp -o $lib $output_objdir/$libname.def' | |
10314 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10315 | enable_shared_with_static_runtimes=yes | |
10316 | ;; | |
10317 | ||
10318 | interix[3-9]*) | |
10319 | hardcode_direct=no | |
10320 | hardcode_shlibpath_var=no | |
10321 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10322 | export_dynamic_flag_spec='$wl-E' | |
10323 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10324 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10325 | # default) and relocated if they conflict, which is a slow very memory | |
10326 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10327 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10328 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10329 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10330 | 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' | |
10331 | ;; | |
10332 | ||
10333 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
10334 | tmp_diet=no | |
10335 | if test linux-dietlibc = "$host_os"; then | |
10336 | case $cc_basename in | |
10337 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10338 | esac | |
10339 | fi | |
10340 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10341 | && test no = "$tmp_diet" | |
10342 | then | |
10343 | tmp_addflag=' $pic_flag' | |
10344 | tmp_sharedflag='-shared' | |
10345 | case $cc_basename,$host_cpu in | |
10346 | pgcc*) # Portland Group C compiler | |
10347 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10348 | tmp_addflag=' $pic_flag' | |
10349 | ;; | |
10350 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10351 | # Portland Group f77 and f90 compilers | |
10352 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10353 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10354 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10355 | tmp_addflag=' -i_dynamic' ;; | |
10356 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10357 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10358 | ifc* | ifort*) # Intel Fortran compiler | |
10359 | tmp_addflag=' -nofor_main' ;; | |
10360 | lf95*) # Lahey Fortran 8.1 | |
10361 | whole_archive_flag_spec= | |
10362 | tmp_sharedflag='--shared' ;; | |
10363 | nagfor*) # NAGFOR 5.3 | |
10364 | tmp_sharedflag='-Wl,-shared' ;; | |
10365 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10366 | tmp_sharedflag='-qmkshrobj' | |
10367 | tmp_addflag= ;; | |
10368 | nvcc*) # Cuda Compiler Driver 2.2 | |
10369 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10370 | compiler_needs_object=yes | |
10371 | ;; | |
10372 | esac | |
10373 | case `$CC -V 2>&1 | sed 5q` in | |
10374 | *Sun\ C*) # Sun C 5.9 | |
10375 | whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
10376 | compiler_needs_object=yes | |
10377 | tmp_sharedflag='-G' ;; | |
10378 | *Sun\ F*) # Sun Fortran 8.3 | |
10379 | tmp_sharedflag='-G' ;; | |
10380 | esac | |
10381 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10382 | ||
10383 | if test yes = "$supports_anon_versioning"; then | |
10384 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10385 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10386 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10387 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
10388 | fi | |
10389 | ||
10390 | case $cc_basename in | |
10391 | tcc*) | |
10392 | export_dynamic_flag_spec='-rdynamic' | |
10393 | ;; | |
10394 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10395 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10396 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10397 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10398 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
10399 | if test yes = "$supports_anon_versioning"; then | |
10400 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10401 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10402 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10403 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10404 | fi | |
10405 | ;; | |
10406 | esac | |
10407 | else | |
10408 | ld_shlibs=no | |
10409 | fi | |
10410 | ;; | |
10411 | ||
10412 | netbsd*) | |
10413 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10414 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10415 | wlarc= | |
10416 | else | |
10417 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10418 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10419 | fi | |
10420 | ;; | |
10421 | ||
10422 | solaris*) | |
10423 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10424 | ld_shlibs=no | |
10425 | cat <<_LT_EOF 1>&2 | |
10426 | ||
10427 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10428 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10429 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10430 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10431 | *** your PATH or compiler configuration so that the native linker is | |
10432 | *** used, and then restart. | |
10433 | ||
10434 | _LT_EOF | |
10435 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10436 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10437 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10438 | else | |
10439 | ld_shlibs=no | |
10440 | fi | |
10441 | ;; | |
10442 | ||
10443 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10444 | case `$LD -v 2>&1` in | |
10445 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10446 | ld_shlibs=no | |
10447 | cat <<_LT_EOF 1>&2 | |
10448 | ||
10449 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
10450 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10451 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10452 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10453 | *** your PATH or compiler configuration so that the native linker is | |
10454 | *** used, and then restart. | |
10455 | ||
10456 | _LT_EOF | |
10457 | ;; | |
10458 | *) | |
10459 | # For security reasons, it is highly recommended that you always | |
10460 | # use absolute paths for naming shared libraries, and exclude the | |
10461 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10462 | # requires that you compile everything twice, which is a pain. | |
10463 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10464 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10465 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10466 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10467 | else | |
10468 | ld_shlibs=no | |
10469 | fi | |
10470 | ;; | |
10471 | esac | |
10472 | ;; | |
10473 | ||
10474 | sunos4*) | |
10475 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10476 | wlarc= | |
10477 | hardcode_direct=yes | |
10478 | hardcode_shlibpath_var=no | |
10479 | ;; | |
10480 | ||
10481 | *) | |
10482 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10483 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10484 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
10485 | else | |
10486 | ld_shlibs=no | |
10487 | fi | |
10488 | ;; | |
10489 | esac | |
10490 | ||
10491 | if test no = "$ld_shlibs"; then | |
10492 | runpath_var= | |
10493 | hardcode_libdir_flag_spec= | |
10494 | export_dynamic_flag_spec= | |
10495 | whole_archive_flag_spec= | |
10496 | fi | |
10497 | else | |
10498 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10499 | case $host_os in | |
10500 | aix3*) | |
10501 | allow_undefined_flag=unsupported | |
10502 | always_export_symbols=yes | |
10503 | 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' | |
10504 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10505 | # are no directories specified by -L. | |
10506 | hardcode_minus_L=yes | |
10507 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
10508 | # Neither direct hardcoding nor static linking is supported with a | |
10509 | # broken collect2. | |
10510 | hardcode_direct=unsupported | |
10511 | fi | |
10512 | ;; | |
10513 | ||
10514 | aix[4-9]*) | |
10515 | if test ia64 = "$host_cpu"; then | |
10516 | # On IA64, the linker does run time linking by default, so we don't | |
10517 | # have to do anything special. | |
10518 | aix_use_runtimelinking=no | |
10519 | exp_sym_flag='-Bexport' | |
10520 | no_entry_flag= | |
10521 | else | |
10522 | # If we're using GNU nm, then we don't want the "-C" option. | |
10523 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
10524 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
10525 | # weak defined symbols like other global defined symbols, whereas | |
10526 | # GNU nm marks them as "W". | |
10527 | # While the 'weak' keyword is ignored in the Export File, we need | |
10528 | # it in the Import File for the 'aix-soname' feature, so we have | |
10529 | # to replace the "-B" option with "-P" for AIX nm. | |
10530 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10531 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
10532 | else | |
10533 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
10534 | fi | |
10535 | aix_use_runtimelinking=no | |
10536 | ||
10537 | # Test if we are trying to use run time linking or normal | |
10538 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10539 | # have runtime linking enabled, and use it for executables. | |
10540 | # For shared libraries, we enable/disable runtime linking | |
10541 | # depending on the kind of the shared library created - | |
10542 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
10543 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
10544 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
10545 | # lib.a static archive | |
10546 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
10547 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
10548 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10549 | # lib.a(lib.so.V) shared, rtl:no | |
10550 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
10551 | # lib.a static archive | |
10552 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10553 | for ld_flag in $LDFLAGS; do | |
10554 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
10555 | aix_use_runtimelinking=yes | |
10556 | break | |
10557 | fi | |
10558 | done | |
10559 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
10560 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
10561 | # so we don't have lib.a shared libs to link our executables. | |
10562 | # We have to force runtime linking in this case. | |
10563 | aix_use_runtimelinking=yes | |
10564 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
10565 | fi | |
10566 | ;; | |
10567 | esac | |
10568 | ||
10569 | exp_sym_flag='-bexport' | |
10570 | no_entry_flag='-bnoentry' | |
10571 | fi | |
10572 | ||
10573 | # When large executables or shared objects are built, AIX ld can | |
10574 | # have problems creating the table of contents. If linking a library | |
10575 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10576 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10577 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10578 | ||
10579 | archive_cmds='' | |
10580 | hardcode_direct=yes | |
10581 | hardcode_direct_absolute=yes | |
10582 | hardcode_libdir_separator=':' | |
10583 | link_all_deplibs=yes | |
10584 | file_list_spec='$wl-f,' | |
10585 | case $with_aix_soname,$aix_use_runtimelinking in | |
10586 | aix,*) ;; # traditional, no import file | |
10587 | svr4,* | *,yes) # use import file | |
10588 | # The Import File defines what to hardcode. | |
10589 | hardcode_direct=no | |
10590 | hardcode_direct_absolute=no | |
10591 | ;; | |
10592 | esac | |
10593 | ||
10594 | if test yes = "$GCC"; then | |
10595 | case $host_os in aix4.[012]|aix4.[012].*) | |
10596 | # We only want to do this on AIX 4.2 and lower, the check | |
10597 | # below for broken collect2 doesn't work under 4.3+ | |
10598 | collect2name=`$CC -print-prog-name=collect2` | |
10599 | if test -f "$collect2name" && | |
10600 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10601 | then | |
10602 | # We have reworked collect2 | |
10603 | : | |
10604 | else | |
10605 | # We have old collect2 | |
10606 | hardcode_direct=unsupported | |
10607 | # It fails to find uninstalled libraries when the uninstalled | |
10608 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10609 | # to unsupported forces relinking | |
10610 | hardcode_minus_L=yes | |
10611 | hardcode_libdir_flag_spec='-L$libdir' | |
10612 | hardcode_libdir_separator= | |
10613 | fi | |
10614 | ;; | |
10615 | esac | |
10616 | shared_flag='-shared' | |
10617 | if test yes = "$aix_use_runtimelinking"; then | |
10618 | shared_flag="$shared_flag "'$wl-G' | |
10619 | fi | |
10620 | # Need to ensure runtime linking is disabled for the traditional | |
10621 | # shared library, or the linker may eventually find shared libraries | |
10622 | # /with/ Import File - we do not want to mix them. | |
10623 | shared_flag_aix='-shared' | |
10624 | shared_flag_svr4='-shared $wl-G' | |
10625 | else | |
10626 | # not using gcc | |
10627 | if test ia64 = "$host_cpu"; then | |
10628 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10629 | # chokes on -Wl,-G. The following line is correct: | |
10630 | shared_flag='-G' | |
10631 | else | |
10632 | if test yes = "$aix_use_runtimelinking"; then | |
10633 | shared_flag='$wl-G' | |
10634 | else | |
10635 | shared_flag='$wl-bM:SRE' | |
10636 | fi | |
10637 | shared_flag_aix='$wl-bM:SRE' | |
10638 | shared_flag_svr4='$wl-G' | |
10639 | fi | |
10640 | fi | |
10641 | ||
10642 | export_dynamic_flag_spec='$wl-bexpall' | |
10643 | # It seems that -bexpall does not export symbols beginning with | |
10644 | # underscore (_), so it is better to generate a list of symbols to export. | |
10645 | always_export_symbols=yes | |
10646 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
10647 | # Warning - without using the other runtime loading flags (-brtl), | |
10648 | # -berok will link without error, but may produce a broken library. | |
10649 | allow_undefined_flag='-berok' | |
10650 | # Determine the default libpath from the value encoded in an | |
10651 | # empty executable. | |
10652 | if test set = "${lt_cv_aix_libpath+set}"; then | |
10653 | aix_libpath=$lt_cv_aix_libpath | |
10654 | else | |
10655 | if ${lt_cv_aix_libpath_+:} false; then : | |
10656 | $as_echo_n "(cached) " >&6 | |
10657 | else | |
10658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10659 | /* end confdefs.h. */ | |
10660 | ||
10661 | int | |
10662 | main () | |
10663 | { | |
10664 | ||
10665 | ; | |
10666 | return 0; | |
10667 | } | |
10668 | _ACEOF | |
10669 | if ac_fn_c_try_link "$LINENO"; then : | |
10670 | ||
10671 | lt_aix_libpath_sed=' | |
10672 | /Import File Strings/,/^$/ { | |
10673 | /^0/ { | |
10674 | s/^0 *\([^ ]*\) *$/\1/ | |
10675 | p | |
10676 | } | |
10677 | }' | |
10678 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10679 | # Check for a 64-bit object if we didn't find anything. | |
10680 | if test -z "$lt_cv_aix_libpath_"; then | |
10681 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10682 | fi | |
10683 | fi | |
10684 | rm -f core conftest.err conftest.$ac_objext \ | |
10685 | conftest$ac_exeext conftest.$ac_ext | |
10686 | if test -z "$lt_cv_aix_libpath_"; then | |
10687 | lt_cv_aix_libpath_=/usr/lib:/lib | |
10688 | fi | |
10689 | ||
10690 | fi | |
10691 | ||
10692 | aix_libpath=$lt_cv_aix_libpath_ | |
10693 | fi | |
10694 | ||
10695 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
10696 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
10697 | else | |
10698 | if test ia64 = "$host_cpu"; then | |
10699 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
10700 | allow_undefined_flag="-z nodefs" | |
10701 | 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" | |
10702 | else | |
10703 | # Determine the default libpath from the value encoded in an | |
10704 | # empty executable. | |
10705 | if test set = "${lt_cv_aix_libpath+set}"; then | |
10706 | aix_libpath=$lt_cv_aix_libpath | |
10707 | else | |
10708 | if ${lt_cv_aix_libpath_+:} false; then : | |
10709 | $as_echo_n "(cached) " >&6 | |
10710 | else | |
10711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10712 | /* end confdefs.h. */ | |
10713 | ||
10714 | int | |
10715 | main () | |
10716 | { | |
10717 | ||
10718 | ; | |
10719 | return 0; | |
10720 | } | |
10721 | _ACEOF | |
10722 | if ac_fn_c_try_link "$LINENO"; then : | |
10723 | ||
10724 | lt_aix_libpath_sed=' | |
10725 | /Import File Strings/,/^$/ { | |
10726 | /^0/ { | |
10727 | s/^0 *\([^ ]*\) *$/\1/ | |
10728 | p | |
10729 | } | |
10730 | }' | |
10731 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10732 | # Check for a 64-bit object if we didn't find anything. | |
10733 | if test -z "$lt_cv_aix_libpath_"; then | |
10734 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10735 | fi | |
10736 | fi | |
10737 | rm -f core conftest.err conftest.$ac_objext \ | |
10738 | conftest$ac_exeext conftest.$ac_ext | |
10739 | if test -z "$lt_cv_aix_libpath_"; then | |
10740 | lt_cv_aix_libpath_=/usr/lib:/lib | |
10741 | fi | |
10742 | ||
10743 | fi | |
10744 | ||
10745 | aix_libpath=$lt_cv_aix_libpath_ | |
10746 | fi | |
10747 | ||
10748 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
10749 | # Warning - without using the other run time loading flags, | |
10750 | # -berok will link without error, but may produce a broken library. | |
10751 | no_undefined_flag=' $wl-bernotok' | |
10752 | allow_undefined_flag=' $wl-berok' | |
10753 | if test yes = "$with_gnu_ld"; then | |
10754 | # We only use this code for GNU lds that support --whole-archive. | |
10755 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
10756 | else | |
10757 | # Exported symbols can be pulled into shared objects from archives | |
10758 | whole_archive_flag_spec='$convenience' | |
10759 | fi | |
10760 | archive_cmds_need_lc=yes | |
10761 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
10762 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
10763 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
10764 | if test svr4 != "$with_aix_soname"; then | |
10765 | # This is similar to how AIX traditionally builds its shared libraries. | |
10766 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
10767 | fi | |
10768 | if test aix != "$with_aix_soname"; then | |
10769 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
10770 | else | |
10771 | # used by -dlpreopen to get the symbols | |
10772 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
10773 | fi | |
10774 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
10775 | fi | |
10776 | fi | |
10777 | ;; | |
10778 | ||
10779 | amigaos*) | |
10780 | case $host_cpu in | |
10781 | powerpc) | |
10782 | # see comment about AmigaOS4 .so support | |
10783 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
10784 | archive_expsym_cmds='' | |
10785 | ;; | |
10786 | m68k) | |
10787 | 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)' | |
10788 | hardcode_libdir_flag_spec='-L$libdir' | |
10789 | hardcode_minus_L=yes | |
10790 | ;; | |
10791 | esac | |
10792 | ;; | |
10793 | ||
10794 | bsdi[45]*) | |
10795 | export_dynamic_flag_spec=-rdynamic | |
10796 | ;; | |
10797 | ||
10798 | cygwin* | mingw* | pw32* | cegcc*) | |
10799 | # When not using gcc, we currently assume that we are using | |
10800 | # Microsoft Visual C++. | |
10801 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10802 | # no search path for DLLs. | |
10803 | case $cc_basename in | |
10804 | cl*) | |
10805 | # Native MSVC | |
10806 | hardcode_libdir_flag_spec=' ' | |
10807 | allow_undefined_flag=unsupported | |
10808 | always_export_symbols=yes | |
10809 | file_list_spec='@' | |
10810 | # Tell ltmain to make .lib files, not .a files. | |
10811 | libext=lib | |
10812 | # Tell ltmain to make .dll files, not .so files. | |
10813 | shrext_cmds=.dll | |
10814 | # FIXME: Setting linknames here is a bad hack. | |
10815 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
10816 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
10817 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
10818 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
10819 | else | |
10820 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
10821 | fi~ | |
10822 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10823 | linknames=' | |
10824 | # The linker will not automatically build a static lib if we build a DLL. | |
10825 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10826 | enable_shared_with_static_runtimes=yes | |
10827 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10828 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10829 | # Don't use ranlib | |
10830 | old_postinstall_cmds='chmod 644 $oldlib' | |
10831 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10832 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10833 | case $lt_outputfile in | |
10834 | *.exe|*.EXE) ;; | |
10835 | *) | |
10836 | lt_outputfile=$lt_outputfile.exe | |
10837 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
10838 | ;; | |
10839 | esac~ | |
10840 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
10841 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10842 | $RM "$lt_outputfile.manifest"; | |
10843 | fi' | |
10844 | ;; | |
10845 | *) | |
10846 | # Assume MSVC wrapper | |
10847 | hardcode_libdir_flag_spec=' ' | |
10848 | allow_undefined_flag=unsupported | |
10849 | # Tell ltmain to make .lib files, not .a files. | |
10850 | libext=lib | |
10851 | # Tell ltmain to make .dll files, not .so files. | |
10852 | shrext_cmds=.dll | |
10853 | # FIXME: Setting linknames here is a bad hack. | |
10854 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10855 | # The linker will automatically build a .lib file if we build a DLL. | |
10856 | old_archive_from_new_cmds='true' | |
10857 | # FIXME: Should let the user specify the lib program. | |
10858 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10859 | enable_shared_with_static_runtimes=yes | |
10860 | ;; | |
10861 | esac | |
10862 | ;; | |
10863 | ||
10864 | darwin* | rhapsody*) | |
10865 | ||
10866 | ||
10867 | archive_cmds_need_lc=no | |
10868 | hardcode_direct=no | |
10869 | hardcode_automatic=yes | |
10870 | hardcode_shlibpath_var=unsupported | |
10871 | if test yes = "$lt_cv_ld_force_load"; then | |
10872 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
10873 | ||
10874 | else | |
10875 | whole_archive_flag_spec='' | |
10876 | fi | |
10877 | link_all_deplibs=yes | |
10878 | allow_undefined_flag=$_lt_dar_allow_undefined | |
10879 | case $cc_basename in | |
10880 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
10881 | *) _lt_dar_can_shared=$GCC ;; | |
10882 | esac | |
10883 | if test yes = "$_lt_dar_can_shared"; then | |
10884 | output_verbose_link_cmd=func_echo_all | |
10885 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
10886 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
10887 | 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" | |
10888 | 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" | |
10889 | ||
10890 | else | |
10891 | ld_shlibs=no | |
10892 | fi | |
10893 | ||
10894 | ;; | |
10895 | ||
10896 | dgux*) | |
10897 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10898 | hardcode_libdir_flag_spec='-L$libdir' | |
10899 | hardcode_shlibpath_var=no | |
10900 | ;; | |
10901 | ||
10902 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10903 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10904 | # does not break anything, and helps significantly (at the cost of a little | |
10905 | # extra space). | |
10906 | freebsd2.2*) | |
10907 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10908 | hardcode_libdir_flag_spec='-R$libdir' | |
10909 | hardcode_direct=yes | |
10910 | hardcode_shlibpath_var=no | |
10911 | ;; | |
10912 | ||
10913 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10914 | freebsd2.*) | |
10915 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10916 | hardcode_direct=yes | |
10917 | hardcode_minus_L=yes | |
10918 | hardcode_shlibpath_var=no | |
10919 | ;; | |
10920 | ||
10921 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10922 | freebsd* | dragonfly*) | |
10923 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10924 | hardcode_libdir_flag_spec='-R$libdir' | |
10925 | hardcode_direct=yes | |
10926 | hardcode_shlibpath_var=no | |
10927 | ;; | |
10928 | ||
10929 | hpux9*) | |
10930 | if test yes = "$GCC"; then | |
10931 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
10932 | else | |
10933 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
10934 | fi | |
10935 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10936 | hardcode_libdir_separator=: | |
10937 | hardcode_direct=yes | |
10938 | ||
10939 | # hardcode_minus_L: Not really in the search PATH, | |
10940 | # but as the default location of the library. | |
10941 | hardcode_minus_L=yes | |
10942 | export_dynamic_flag_spec='$wl-E' | |
10943 | ;; | |
10944 | ||
10945 | hpux10*) | |
10946 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10947 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10948 | else | |
10949 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10950 | fi | |
10951 | if test no = "$with_gnu_ld"; then | |
10952 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
10953 | hardcode_libdir_separator=: | |
10954 | hardcode_direct=yes | |
10955 | hardcode_direct_absolute=yes | |
10956 | export_dynamic_flag_spec='$wl-E' | |
10957 | # hardcode_minus_L: Not really in the search PATH, | |
10958 | # but as the default location of the library. | |
10959 | hardcode_minus_L=yes | |
10960 | fi | |
10961 | ;; | |
10962 | ||
10963 | hpux11*) | |
10964 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
10965 | case $host_cpu in | |
10966 | hppa*64*) | |
10967 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10968 | ;; | |
10969 | ia64*) | |
10970 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10971 | ;; | |
10972 | *) | |
10973 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10974 | ;; | |
10975 | esac | |
10976 | else | |
10977 | case $host_cpu in | |
10978 | hppa*64*) | |
10979 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10980 | ;; | |
10981 | ia64*) | |
10982 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10983 | ;; | |
10984 | *) | |
10985 | ||
10986 | # Older versions of the 11.00 compiler do not understand -b yet | |
10987 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10989 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10990 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10991 | $as_echo_n "(cached) " >&6 | |
10992 | else | |
10993 | lt_cv_prog_compiler__b=no | |
10994 | save_LDFLAGS=$LDFLAGS | |
10995 | LDFLAGS="$LDFLAGS -b" | |
10996 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10997 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10998 | # The linker can only warn and ignore the option if not recognized | |
10999 | # So say no if there are warnings | |
11000 | if test -s conftest.err; then | |
11001 | # Append any errors to the config.log. | |
11002 | cat conftest.err 1>&5 | |
11003 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11004 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11005 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11006 | lt_cv_prog_compiler__b=yes | |
11007 | fi | |
11008 | else | |
11009 | lt_cv_prog_compiler__b=yes | |
11010 | fi | |
11011 | fi | |
11012 | $RM -r conftest* | |
11013 | LDFLAGS=$save_LDFLAGS | |
11014 | ||
11015 | fi | |
11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11017 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11018 | ||
11019 | if test yes = "$lt_cv_prog_compiler__b"; then | |
11020 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11021 | else | |
11022 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11023 | fi | |
11024 | ||
11025 | ;; | |
11026 | esac | |
11027 | fi | |
11028 | if test no = "$with_gnu_ld"; then | |
11029 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
11030 | hardcode_libdir_separator=: | |
11031 | ||
11032 | case $host_cpu in | |
11033 | hppa*64*|ia64*) | |
11034 | hardcode_direct=no | |
11035 | hardcode_shlibpath_var=no | |
11036 | ;; | |
11037 | *) | |
11038 | hardcode_direct=yes | |
11039 | hardcode_direct_absolute=yes | |
11040 | export_dynamic_flag_spec='$wl-E' | |
11041 | ||
11042 | # hardcode_minus_L: Not really in the search PATH, | |
11043 | # but as the default location of the library. | |
11044 | hardcode_minus_L=yes | |
11045 | ;; | |
11046 | esac | |
11047 | fi | |
11048 | ;; | |
11049 | ||
11050 | irix5* | irix6* | nonstopux*) | |
11051 | if test yes = "$GCC"; then | |
11052 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
11053 | # Try to use the -exported_symbol ld option, if it does not | |
11054 | # work, assume that -exports_file does not work either and | |
11055 | # implicitly export all symbols. | |
11056 | # This should be the same for all languages, so no per-tag cache variable. | |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
11058 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
11059 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
11060 | $as_echo_n "(cached) " >&6 | |
11061 | else | |
11062 | save_LDFLAGS=$LDFLAGS | |
11063 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
11064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11065 | /* end confdefs.h. */ | |
11066 | int foo (void) { return 0; } | |
11067 | _ACEOF | |
11068 | if ac_fn_c_try_link "$LINENO"; then : | |
11069 | lt_cv_irix_exported_symbol=yes | |
11070 | else | |
11071 | lt_cv_irix_exported_symbol=no | |
11072 | fi | |
11073 | rm -f core conftest.err conftest.$ac_objext \ | |
11074 | conftest$ac_exeext conftest.$ac_ext | |
11075 | LDFLAGS=$save_LDFLAGS | |
11076 | fi | |
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
11078 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
11079 | if test yes = "$lt_cv_irix_exported_symbol"; then | |
11080 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' | |
11081 | fi | |
11082 | else | |
11083 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
11084 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' | |
11085 | fi | |
11086 | archive_cmds_need_lc='no' | |
11087 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
11088 | hardcode_libdir_separator=: | |
11089 | inherit_rpath=yes | |
11090 | link_all_deplibs=yes | |
11091 | ;; | |
11092 | ||
11093 | linux*) | |
11094 | case $cc_basename in | |
11095 | tcc*) | |
11096 | # Fabrice Bellard et al's Tiny C Compiler | |
11097 | ld_shlibs=yes | |
11098 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11099 | ;; | |
11100 | esac | |
11101 | ;; | |
11102 | ||
11103 | netbsd*) | |
11104 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11105 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11106 | else | |
11107 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11108 | fi | |
11109 | hardcode_libdir_flag_spec='-R$libdir' | |
11110 | hardcode_direct=yes | |
11111 | hardcode_shlibpath_var=no | |
11112 | ;; | |
11113 | ||
11114 | newsos6) | |
11115 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11116 | hardcode_direct=yes | |
11117 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
11118 | hardcode_libdir_separator=: | |
11119 | hardcode_shlibpath_var=no | |
11120 | ;; | |
11121 | ||
11122 | *nto* | *qnx*) | |
11123 | ;; | |
11124 | ||
11125 | openbsd* | bitrig*) | |
11126 | if test -f /usr/libexec/ld.so; then | |
11127 | hardcode_direct=yes | |
11128 | hardcode_shlibpath_var=no | |
11129 | hardcode_direct_absolute=yes | |
11130 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
11131 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11132 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
11133 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
11134 | export_dynamic_flag_spec='$wl-E' | |
11135 | else | |
11136 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11137 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
11138 | fi | |
11139 | else | |
11140 | ld_shlibs=no | |
11141 | fi | |
11142 | ;; | |
11143 | ||
11144 | os2*) | |
11145 | hardcode_libdir_flag_spec='-L$libdir' | |
11146 | hardcode_minus_L=yes | |
11147 | allow_undefined_flag=unsupported | |
11148 | shrext_cmds=.dll | |
11149 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11150 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11151 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11152 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11153 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
11154 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11155 | emximp -o $lib $output_objdir/$libname.def' | |
11156 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
11157 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
11158 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
11159 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
11160 | prefix_cmds="$SED"~ | |
11161 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
11162 | prefix_cmds="$prefix_cmds -e 1d"; | |
11163 | fi~ | |
11164 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
11165 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
11166 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
11167 | emximp -o $lib $output_objdir/$libname.def' | |
11168 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
11169 | enable_shared_with_static_runtimes=yes | |
11170 | ;; | |
11171 | ||
11172 | osf3*) | |
11173 | if test yes = "$GCC"; then | |
11174 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11175 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
11176 | else | |
11177 | allow_undefined_flag=' -expect_unresolved \*' | |
11178 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
11179 | fi | |
11180 | archive_cmds_need_lc='no' | |
11181 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
11182 | hardcode_libdir_separator=: | |
11183 | ;; | |
11184 | ||
11185 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11186 | if test yes = "$GCC"; then | |
11187 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
11188 | archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
11189 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
11190 | else | |
11191 | allow_undefined_flag=' -expect_unresolved \*' | |
11192 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
11193 | 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~ | |
11194 | $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' | |
11195 | ||
11196 | # Both c and cxx compiler support -rpath directly | |
11197 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11198 | fi | |
11199 | archive_cmds_need_lc='no' | |
11200 | hardcode_libdir_separator=: | |
11201 | ;; | |
11202 | ||
11203 | solaris*) | |
11204 | no_undefined_flag=' -z defs' | |
11205 | if test yes = "$GCC"; then | |
11206 | wlarc='$wl' | |
11207 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11208 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11209 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11210 | else | |
11211 | case `$CC -V 2>&1` in | |
11212 | *"Compilers 5.0"*) | |
11213 | wlarc='' | |
11214 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11215 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11216 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11217 | ;; | |
11218 | *) | |
11219 | wlarc='$wl' | |
11220 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11221 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11222 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11223 | ;; | |
11224 | esac | |
11225 | fi | |
11226 | hardcode_libdir_flag_spec='-R$libdir' | |
11227 | hardcode_shlibpath_var=no | |
11228 | case $host_os in | |
11229 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11230 | *) | |
11231 | # The compiler driver will combine and reorder linker options, | |
11232 | # but understands '-z linker_flag'. GCC discards it without '$wl', | |
11233 | # but is careful enough not to reorder. | |
11234 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11235 | if test yes = "$GCC"; then | |
11236 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
11237 | else | |
11238 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11239 | fi | |
11240 | ;; | |
11241 | esac | |
11242 | link_all_deplibs=yes | |
11243 | ;; | |
11244 | ||
11245 | sunos4*) | |
11246 | if test sequent = "$host_vendor"; then | |
11247 | # Use $CC to link under sequent, because it throws in some extra .o | |
11248 | # files that make .init and .fini sections work. | |
11249 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11250 | else | |
11251 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11252 | fi | |
11253 | hardcode_libdir_flag_spec='-L$libdir' | |
11254 | hardcode_direct=yes | |
11255 | hardcode_minus_L=yes | |
11256 | hardcode_shlibpath_var=no | |
11257 | ;; | |
11258 | ||
11259 | sysv4) | |
11260 | case $host_vendor in | |
11261 | sni) | |
11262 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11263 | hardcode_direct=yes # is this really true??? | |
11264 | ;; | |
11265 | siemens) | |
11266 | ## LD is ld it makes a PLAMLIB | |
11267 | ## CC just makes a GrossModule. | |
11268 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11269 | reload_cmds='$CC -r -o $output$reload_objs' | |
11270 | hardcode_direct=no | |
11271 | ;; | |
11272 | motorola) | |
11273 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11274 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11275 | ;; | |
11276 | esac | |
11277 | runpath_var='LD_RUN_PATH' | |
11278 | hardcode_shlibpath_var=no | |
11279 | ;; | |
11280 | ||
11281 | sysv4.3*) | |
11282 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11283 | hardcode_shlibpath_var=no | |
11284 | export_dynamic_flag_spec='-Bexport' | |
11285 | ;; | |
11286 | ||
11287 | sysv4*MP*) | |
11288 | if test -d /usr/nec; then | |
11289 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11290 | hardcode_shlibpath_var=no | |
11291 | runpath_var=LD_RUN_PATH | |
11292 | hardcode_runpath_var=yes | |
11293 | ld_shlibs=yes | |
11294 | fi | |
11295 | ;; | |
11296 | ||
11297 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11298 | no_undefined_flag='$wl-z,text' | |
11299 | archive_cmds_need_lc=no | |
11300 | hardcode_shlibpath_var=no | |
11301 | runpath_var='LD_RUN_PATH' | |
11302 | ||
11303 | if test yes = "$GCC"; then | |
11304 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11305 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11306 | else | |
11307 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11308 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11309 | fi | |
11310 | ;; | |
11311 | ||
11312 | sysv5* | sco3.2v5* | sco5v6*) | |
11313 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
11314 | # link with -lc, and that would cause any symbols used from libc to | |
11315 | # always be unresolved, which means just about no library would | |
11316 | # ever link correctly. If we're not using GNU ld we use -z text | |
11317 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11318 | # as -z defs. | |
11319 | no_undefined_flag='$wl-z,text' | |
11320 | allow_undefined_flag='$wl-z,nodefs' | |
11321 | archive_cmds_need_lc=no | |
11322 | hardcode_shlibpath_var=no | |
11323 | hardcode_libdir_flag_spec='$wl-R,$libdir' | |
11324 | hardcode_libdir_separator=':' | |
11325 | link_all_deplibs=yes | |
11326 | export_dynamic_flag_spec='$wl-Bexport' | |
11327 | runpath_var='LD_RUN_PATH' | |
11328 | ||
11329 | if test yes = "$GCC"; then | |
11330 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11331 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11332 | else | |
11333 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11334 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11335 | fi | |
11336 | ;; | |
11337 | ||
11338 | uts4*) | |
11339 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11340 | hardcode_libdir_flag_spec='-L$libdir' | |
11341 | hardcode_shlibpath_var=no | |
11342 | ;; | |
11343 | ||
11344 | *) | |
11345 | ld_shlibs=no | |
11346 | ;; | |
11347 | esac | |
11348 | ||
11349 | if test sni = "$host_vendor"; then | |
11350 | case $host in | |
11351 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11352 | export_dynamic_flag_spec='$wl-Blargedynsym' | |
11353 | ;; | |
11354 | esac | |
11355 | fi | |
11356 | fi | |
11357 | ||
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11359 | $as_echo "$ld_shlibs" >&6; } | |
11360 | test no = "$ld_shlibs" && can_build_shared=no | |
11361 | ||
11362 | with_gnu_ld=$with_gnu_ld | |
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | # | |
11379 | # Do we need to explicitly link libc? | |
11380 | # | |
11381 | case "x$archive_cmds_need_lc" in | |
11382 | x|xyes) | |
11383 | # Assume -lc should be added | |
11384 | archive_cmds_need_lc=yes | |
11385 | ||
11386 | if test yes,yes = "$GCC,$enable_shared"; then | |
11387 | case $archive_cmds in | |
11388 | *'~'*) | |
11389 | # FIXME: we may have to deal with multi-command sequences. | |
11390 | ;; | |
11391 | '$CC '*) | |
11392 | # Test whether the compiler implicitly links with -lc since on some | |
11393 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11394 | # to ld, don't add -lc before -lgcc. | |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11396 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11397 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11398 | $as_echo_n "(cached) " >&6 | |
11399 | else | |
11400 | $RM -r conftest* | |
11401 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11402 | ||
11403 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11404 | (eval $ac_compile) 2>&5 | |
11405 | ac_status=$? | |
11406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11407 | test $ac_status = 0; } 2>conftest.err; then | |
11408 | soname=conftest | |
11409 | lib=conftest | |
11410 | libobjs=conftest.$ac_objext | |
11411 | deplibs= | |
11412 | wl=$lt_prog_compiler_wl | |
11413 | pic_flag=$lt_prog_compiler_pic | |
11414 | compiler_flags=-v | |
11415 | linker_flags=-v | |
11416 | verstring= | |
11417 | output_objdir=. | |
11418 | libname=conftest | |
11419 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11420 | allow_undefined_flag= | |
11421 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11422 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11423 | ac_status=$? | |
11424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11425 | test $ac_status = 0; } | |
11426 | then | |
11427 | lt_cv_archive_cmds_need_lc=no | |
11428 | else | |
11429 | lt_cv_archive_cmds_need_lc=yes | |
11430 | fi | |
11431 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11432 | else | |
11433 | cat conftest.err 1>&5 | |
11434 | fi | |
11435 | $RM -r conftest* | |
11436 | ||
11437 | fi | |
11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11439 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11440 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11441 | ;; | |
11442 | esac | |
11443 | fi | |
11444 | ;; | |
11445 | esac | |
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11599 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11600 | ||
11601 | if test yes = "$GCC"; then | |
11602 | case $host_os in | |
11603 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
11604 | *) lt_awk_arg='/^libraries:/' ;; | |
11605 | esac | |
11606 | case $host_os in | |
11607 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
11608 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
11609 | esac | |
11610 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11611 | case $lt_search_path_spec in | |
11612 | *\;*) | |
11613 | # if the path contains ";" then we assume it to be the separator | |
11614 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11615 | # assumed that no part of a normal pathname contains ";" but that should | |
11616 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11617 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11618 | ;; | |
11619 | *) | |
11620 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11621 | ;; | |
11622 | esac | |
11623 | # Ok, now we have the path, separated by spaces, we can step through it | |
11624 | # and add multilib dir if necessary... | |
11625 | lt_tmp_lt_search_path_spec= | |
11626 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11627 | # ...but if some path component already ends with the multilib dir we assume | |
11628 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
11629 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
11630 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
11631 | lt_multi_os_dir= | |
11632 | ;; | |
11633 | esac | |
11634 | for lt_sys_path in $lt_search_path_spec; do | |
11635 | if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
11636 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
11637 | elif test -n "$lt_multi_os_dir"; then | |
11638 | test -d "$lt_sys_path" && \ | |
11639 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11640 | fi | |
11641 | done | |
11642 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11643 | BEGIN {RS = " "; FS = "/|\n";} { | |
11644 | lt_foo = ""; | |
11645 | lt_count = 0; | |
11646 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11647 | if ($lt_i != "" && $lt_i != ".") { | |
11648 | if ($lt_i == "..") { | |
11649 | lt_count++; | |
11650 | } else { | |
11651 | if (lt_count == 0) { | |
11652 | lt_foo = "/" $lt_i lt_foo; | |
11653 | } else { | |
11654 | lt_count--; | |
11655 | } | |
11656 | } | |
11657 | } | |
11658 | } | |
11659 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11660 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11661 | }'` | |
11662 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11663 | # for these hosts. | |
11664 | case $host_os in | |
11665 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11666 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
11667 | esac | |
11668 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11669 | else | |
11670 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11671 | fi | |
11672 | library_names_spec= | |
11673 | libname_spec='lib$name' | |
11674 | soname_spec= | |
11675 | shrext_cmds=.so | |
11676 | postinstall_cmds= | |
11677 | postuninstall_cmds= | |
11678 | finish_cmds= | |
11679 | finish_eval= | |
11680 | shlibpath_var= | |
11681 | shlibpath_overrides_runpath=unknown | |
11682 | version_type=none | |
11683 | dynamic_linker="$host_os ld.so" | |
11684 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11685 | need_lib_prefix=unknown | |
11686 | hardcode_into_libs=no | |
11687 | ||
11688 | # when you set need_version to no, make sure it does not cause -set_version | |
11689 | # flags to be left without arguments | |
11690 | need_version=unknown | |
11691 | ||
11692 | ||
11693 | ||
11694 | case $host_os in | |
11695 | aix3*) | |
11696 | version_type=linux # correct to gnu/linux during the next big refactor | |
11697 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
11698 | shlibpath_var=LIBPATH | |
11699 | ||
11700 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11701 | soname_spec='$libname$release$shared_ext$major' | |
11702 | ;; | |
11703 | ||
11704 | aix[4-9]*) | |
11705 | version_type=linux # correct to gnu/linux during the next big refactor | |
11706 | need_lib_prefix=no | |
11707 | need_version=no | |
11708 | hardcode_into_libs=yes | |
11709 | if test ia64 = "$host_cpu"; then | |
11710 | # AIX 5 supports IA64 | |
11711 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
11712 | shlibpath_var=LD_LIBRARY_PATH | |
11713 | else | |
11714 | # With GCC up to 2.95.x, collect2 would create an import file | |
11715 | # for dependence libraries. The import file would start with | |
11716 | # the line '#! .'. This would cause the generated library to | |
11717 | # depend on '.', always an invalid library. This was fixed in | |
11718 | # development snapshots of GCC prior to 3.0. | |
11719 | case $host_os in | |
11720 | aix4 | aix4.[01] | aix4.[01].*) | |
11721 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11722 | echo ' yes ' | |
11723 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
11724 | : | |
11725 | else | |
11726 | can_build_shared=no | |
11727 | fi | |
11728 | ;; | |
11729 | esac | |
11730 | # Using Import Files as archive members, it is possible to support | |
11731 | # filename-based versioning of shared library archives on AIX. While | |
11732 | # this would work for both with and without runtime linking, it will | |
11733 | # prevent static linking of such archives. So we do filename-based | |
11734 | # shared library versioning with .so extension only, which is used | |
11735 | # when both runtime linking and shared linking is enabled. | |
11736 | # Unfortunately, runtime linking may impact performance, so we do | |
11737 | # not want this to be the default eventually. Also, we use the | |
11738 | # versioned .so libs for executables only if there is the -brtl | |
11739 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
11740 | # To allow for filename-based versioning support, we need to create | |
11741 | # libNAME.so.V as an archive file, containing: | |
11742 | # *) an Import File, referring to the versioned filename of the | |
11743 | # archive as well as the shared archive member, telling the | |
11744 | # bitwidth (32 or 64) of that shared object, and providing the | |
11745 | # list of exported symbols of that shared object, eventually | |
11746 | # decorated with the 'weak' keyword | |
11747 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
11748 | # it being seen by the linker. | |
11749 | # At run time we better use the real file rather than another symlink, | |
11750 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
11751 | ||
11752 | case $with_aix_soname,$aix_use_runtimelinking in | |
11753 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
11754 | # soname into executable. Probably we can add versioning support to | |
11755 | # collect2, so additional links can be useful in future. | |
11756 | aix,yes) # traditional libtool | |
11757 | dynamic_linker='AIX unversionable lib.so' | |
11758 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11759 | # instead of lib<name>.a to let people know that these are not | |
11760 | # typical AIX shared libraries. | |
11761 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11762 | ;; | |
11763 | aix,no) # traditional AIX only | |
11764 | dynamic_linker='AIX lib.a(lib.so.V)' | |
11765 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11766 | # and later when we are not doing run time linking. | |
11767 | library_names_spec='$libname$release.a $libname.a' | |
11768 | soname_spec='$libname$release$shared_ext$major' | |
11769 | ;; | |
11770 | svr4,*) # full svr4 only | |
11771 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
11772 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11773 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11774 | shlibpath_overrides_runpath=yes | |
11775 | ;; | |
11776 | *,yes) # both, prefer svr4 | |
11777 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
11778 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
11779 | # unpreferred sharedlib libNAME.a needs extra handling | |
11780 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
11781 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
11782 | # We do not specify a path in Import Files, so LIBPATH fires. | |
11783 | shlibpath_overrides_runpath=yes | |
11784 | ;; | |
11785 | *,no) # both, prefer aix | |
11786 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
11787 | library_names_spec='$libname$release.a $libname.a' | |
11788 | soname_spec='$libname$release$shared_ext$major' | |
11789 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
11790 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
11791 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
11792 | ;; | |
11793 | esac | |
11794 | shlibpath_var=LIBPATH | |
11795 | fi | |
11796 | ;; | |
11797 | ||
11798 | amigaos*) | |
11799 | case $host_cpu in | |
11800 | powerpc) | |
11801 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11802 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11803 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11804 | ;; | |
11805 | m68k) | |
11806 | library_names_spec='$libname.ixlibrary $libname.a' | |
11807 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11808 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' | |
11809 | ;; | |
11810 | esac | |
11811 | ;; | |
11812 | ||
11813 | beos*) | |
11814 | library_names_spec='$libname$shared_ext' | |
11815 | dynamic_linker="$host_os ld.so" | |
11816 | shlibpath_var=LIBRARY_PATH | |
11817 | ;; | |
11818 | ||
11819 | bsdi[45]*) | |
11820 | version_type=linux # correct to gnu/linux during the next big refactor | |
11821 | need_version=no | |
11822 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11823 | soname_spec='$libname$release$shared_ext$major' | |
11824 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11825 | shlibpath_var=LD_LIBRARY_PATH | |
11826 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11827 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11828 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11829 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11830 | # libtool to hard-code these into programs | |
11831 | ;; | |
11832 | ||
11833 | cygwin* | mingw* | pw32* | cegcc*) | |
11834 | version_type=windows | |
11835 | shrext_cmds=.dll | |
11836 | need_version=no | |
11837 | need_lib_prefix=no | |
11838 | ||
11839 | case $GCC,$cc_basename in | |
11840 | yes,*) | |
11841 | # gcc | |
11842 | library_names_spec='$libname.dll.a' | |
11843 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11844 | postinstall_cmds='base_file=`basename \$file`~ | |
11845 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
11846 | dldir=$destdir/`dirname \$dlpath`~ | |
11847 | test -d \$dldir || mkdir -p \$dldir~ | |
11848 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11849 | chmod a+x \$dldir/$dlname~ | |
11850 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11851 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11852 | fi' | |
11853 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11854 | dlpath=$dir/\$dldll~ | |
11855 | $RM \$dlpath' | |
11856 | shlibpath_overrides_runpath=yes | |
11857 | ||
11858 | case $host_os in | |
11859 | cygwin*) | |
11860 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11861 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11862 | ||
11863 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11864 | ;; | |
11865 | mingw* | cegcc*) | |
11866 | # MinGW DLLs use traditional 'lib' prefix | |
11867 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11868 | ;; | |
11869 | pw32*) | |
11870 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11871 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11872 | ;; | |
11873 | esac | |
11874 | dynamic_linker='Win32 ld.exe' | |
11875 | ;; | |
11876 | ||
11877 | *,cl*) | |
11878 | # Native MSVC | |
11879 | libname_spec='$name' | |
11880 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
11881 | library_names_spec='$libname.dll.lib' | |
11882 | ||
11883 | case $build_os in | |
11884 | mingw*) | |
11885 | sys_lib_search_path_spec= | |
11886 | lt_save_ifs=$IFS | |
11887 | IFS=';' | |
11888 | for lt_path in $LIB | |
11889 | do | |
11890 | IFS=$lt_save_ifs | |
11891 | # Let DOS variable expansion print the short 8.3 style file name. | |
11892 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11893 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11894 | done | |
11895 | IFS=$lt_save_ifs | |
11896 | # Convert to MSYS style. | |
11897 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11898 | ;; | |
11899 | cygwin*) | |
11900 | # Convert to unix form, then to dos form, then back to unix form | |
11901 | # but this time dos style (no spaces!) so that the unix form looks | |
11902 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11903 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11904 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11905 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11906 | ;; | |
11907 | *) | |
11908 | sys_lib_search_path_spec=$LIB | |
11909 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11910 | # It is most probably a Windows format PATH. | |
11911 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11912 | else | |
11913 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11914 | fi | |
11915 | # FIXME: find the short name or the path components, as spaces are | |
11916 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11917 | ;; | |
11918 | esac | |
11919 | ||
11920 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11921 | postinstall_cmds='base_file=`basename \$file`~ | |
11922 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
11923 | dldir=$destdir/`dirname \$dlpath`~ | |
11924 | test -d \$dldir || mkdir -p \$dldir~ | |
11925 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11926 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11927 | dlpath=$dir/\$dldll~ | |
11928 | $RM \$dlpath' | |
11929 | shlibpath_overrides_runpath=yes | |
11930 | dynamic_linker='Win32 link.exe' | |
11931 | ;; | |
11932 | ||
11933 | *) | |
11934 | # Assume MSVC wrapper | |
11935 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
11936 | dynamic_linker='Win32 ld.exe' | |
11937 | ;; | |
11938 | esac | |
11939 | # FIXME: first we should search . and the directory the executable is in | |
11940 | shlibpath_var=PATH | |
11941 | ;; | |
11942 | ||
11943 | darwin* | rhapsody*) | |
11944 | dynamic_linker="$host_os dyld" | |
11945 | version_type=darwin | |
11946 | need_lib_prefix=no | |
11947 | need_version=no | |
11948 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
11949 | soname_spec='$libname$release$major$shared_ext' | |
11950 | shlibpath_overrides_runpath=yes | |
11951 | shlibpath_var=DYLD_LIBRARY_PATH | |
11952 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11953 | ||
11954 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11955 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11956 | ;; | |
11957 | ||
11958 | dgux*) | |
11959 | version_type=linux # correct to gnu/linux during the next big refactor | |
11960 | need_lib_prefix=no | |
11961 | need_version=no | |
11962 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11963 | soname_spec='$libname$release$shared_ext$major' | |
11964 | shlibpath_var=LD_LIBRARY_PATH | |
11965 | ;; | |
11966 | ||
11967 | freebsd* | dragonfly*) | |
11968 | # DragonFly does not have aout. When/if they implement a new | |
11969 | # versioning mechanism, adjust this. | |
11970 | if test -x /usr/bin/objformat; then | |
11971 | objformat=`/usr/bin/objformat` | |
11972 | else | |
11973 | case $host_os in | |
11974 | freebsd[23].*) objformat=aout ;; | |
11975 | *) objformat=elf ;; | |
11976 | esac | |
11977 | fi | |
11978 | version_type=freebsd-$objformat | |
11979 | case $version_type in | |
11980 | freebsd-elf*) | |
11981 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11982 | soname_spec='$libname$release$shared_ext$major' | |
11983 | need_version=no | |
11984 | need_lib_prefix=no | |
11985 | ;; | |
11986 | freebsd-*) | |
11987 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11988 | need_version=yes | |
11989 | ;; | |
11990 | esac | |
11991 | shlibpath_var=LD_LIBRARY_PATH | |
11992 | case $host_os in | |
11993 | freebsd2.*) | |
11994 | shlibpath_overrides_runpath=yes | |
11995 | ;; | |
11996 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11997 | shlibpath_overrides_runpath=yes | |
11998 | hardcode_into_libs=yes | |
11999 | ;; | |
12000 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12001 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12002 | shlibpath_overrides_runpath=no | |
12003 | hardcode_into_libs=yes | |
12004 | ;; | |
12005 | *) # from 4.6 on, and DragonFly | |
12006 | shlibpath_overrides_runpath=yes | |
12007 | hardcode_into_libs=yes | |
12008 | ;; | |
12009 | esac | |
12010 | ;; | |
12011 | ||
12012 | haiku*) | |
12013 | version_type=linux # correct to gnu/linux during the next big refactor | |
12014 | need_lib_prefix=no | |
12015 | need_version=no | |
12016 | dynamic_linker="$host_os runtime_loader" | |
12017 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12018 | soname_spec='$libname$release$shared_ext$major' | |
12019 | shlibpath_var=LIBRARY_PATH | |
12020 | shlibpath_overrides_runpath=no | |
12021 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
12022 | hardcode_into_libs=yes | |
12023 | ;; | |
12024 | ||
12025 | hpux9* | hpux10* | hpux11*) | |
12026 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12027 | # link against other versions. | |
12028 | version_type=sunos | |
12029 | need_lib_prefix=no | |
12030 | need_version=no | |
12031 | case $host_cpu in | |
12032 | ia64*) | |
12033 | shrext_cmds='.so' | |
12034 | hardcode_into_libs=yes | |
12035 | dynamic_linker="$host_os dld.so" | |
12036 | shlibpath_var=LD_LIBRARY_PATH | |
12037 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12038 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12039 | soname_spec='$libname$release$shared_ext$major' | |
12040 | if test 32 = "$HPUX_IA64_MODE"; then | |
12041 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12042 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
12043 | else | |
12044 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12045 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
12046 | fi | |
12047 | ;; | |
12048 | hppa*64*) | |
12049 | shrext_cmds='.sl' | |
12050 | hardcode_into_libs=yes | |
12051 | dynamic_linker="$host_os dld.sl" | |
12052 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12053 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12054 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12055 | soname_spec='$libname$release$shared_ext$major' | |
12056 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12057 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12058 | ;; | |
12059 | *) | |
12060 | shrext_cmds='.sl' | |
12061 | dynamic_linker="$host_os dld.sl" | |
12062 | shlibpath_var=SHLIB_PATH | |
12063 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12064 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12065 | soname_spec='$libname$release$shared_ext$major' | |
12066 | ;; | |
12067 | esac | |
12068 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
12069 | postinstall_cmds='chmod 555 $lib' | |
12070 | # or fails outright, so override atomically: | |
12071 | install_override_mode=555 | |
12072 | ;; | |
12073 | ||
12074 | interix[3-9]*) | |
12075 | version_type=linux # correct to gnu/linux during the next big refactor | |
12076 | need_lib_prefix=no | |
12077 | need_version=no | |
12078 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12079 | soname_spec='$libname$release$shared_ext$major' | |
12080 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12081 | shlibpath_var=LD_LIBRARY_PATH | |
12082 | shlibpath_overrides_runpath=no | |
12083 | hardcode_into_libs=yes | |
12084 | ;; | |
12085 | ||
12086 | irix5* | irix6* | nonstopux*) | |
12087 | case $host_os in | |
12088 | nonstopux*) version_type=nonstopux ;; | |
12089 | *) | |
12090 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
12091 | version_type=linux # correct to gnu/linux during the next big refactor | |
12092 | else | |
12093 | version_type=irix | |
12094 | fi ;; | |
12095 | esac | |
12096 | need_lib_prefix=no | |
12097 | need_version=no | |
12098 | soname_spec='$libname$release$shared_ext$major' | |
12099 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
12100 | case $host_os in | |
12101 | irix5* | nonstopux*) | |
12102 | libsuff= shlibsuff= | |
12103 | ;; | |
12104 | *) | |
12105 | case $LD in # libtool.m4 will add one of these switches to LD | |
12106 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12107 | libsuff= shlibsuff= libmagic=32-bit;; | |
12108 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12109 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12110 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12111 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12112 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12113 | esac | |
12114 | ;; | |
12115 | esac | |
12116 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12117 | shlibpath_overrides_runpath=no | |
12118 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
12119 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
12120 | hardcode_into_libs=yes | |
12121 | ;; | |
12122 | ||
12123 | # No shared lib support for Linux oldld, aout, or coff. | |
12124 | linux*oldld* | linux*aout* | linux*coff*) | |
12125 | dynamic_linker=no | |
12126 | ;; | |
12127 | ||
12128 | linux*android*) | |
12129 | version_type=none # Android doesn't support versioned libraries. | |
12130 | need_lib_prefix=no | |
12131 | need_version=no | |
12132 | library_names_spec='$libname$release$shared_ext' | |
12133 | soname_spec='$libname$release$shared_ext' | |
12134 | finish_cmds= | |
12135 | shlibpath_var=LD_LIBRARY_PATH | |
12136 | shlibpath_overrides_runpath=yes | |
12137 | ||
12138 | # This implies no fast_install, which is unacceptable. | |
12139 | # Some rework will be needed to allow for fast_install | |
12140 | # before this can be enabled. | |
12141 | hardcode_into_libs=yes | |
12142 | ||
12143 | dynamic_linker='Android linker' | |
12144 | # Don't embed -rpath directories since the linker doesn't support them. | |
12145 | hardcode_libdir_flag_spec='-L$libdir' | |
12146 | ;; | |
12147 | ||
12148 | # This must be glibc/ELF. | |
12149 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
12150 | version_type=linux # correct to gnu/linux during the next big refactor | |
12151 | need_lib_prefix=no | |
12152 | need_version=no | |
12153 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12154 | soname_spec='$libname$release$shared_ext$major' | |
12155 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12156 | shlibpath_var=LD_LIBRARY_PATH | |
12157 | shlibpath_overrides_runpath=no | |
12158 | ||
12159 | # Some binutils ld are patched to set DT_RUNPATH | |
12160 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
12161 | $as_echo_n "(cached) " >&6 | |
12162 | else | |
12163 | lt_cv_shlibpath_overrides_runpath=no | |
12164 | save_LDFLAGS=$LDFLAGS | |
12165 | save_libdir=$libdir | |
12166 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12167 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12169 | /* end confdefs.h. */ | |
12170 | ||
12171 | int | |
12172 | main () | |
12173 | { | |
12174 | ||
12175 | ; | |
12176 | return 0; | |
12177 | } | |
12178 | _ACEOF | |
12179 | if ac_fn_c_try_link "$LINENO"; then : | |
12180 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
12181 | lt_cv_shlibpath_overrides_runpath=yes | |
12182 | fi | |
12183 | fi | |
12184 | rm -f core conftest.err conftest.$ac_objext \ | |
12185 | conftest$ac_exeext conftest.$ac_ext | |
12186 | LDFLAGS=$save_LDFLAGS | |
12187 | libdir=$save_libdir | |
12188 | ||
12189 | fi | |
12190 | ||
12191 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
12192 | ||
12193 | # This implies no fast_install, which is unacceptable. | |
12194 | # Some rework will be needed to allow for fast_install | |
12195 | # before this can be enabled. | |
12196 | hardcode_into_libs=yes | |
12197 | ||
12198 | # Ideally, we could use ldconfig to report *all* directores which are | |
12199 | # searched for libraries, however this is still not possible. Aside from not | |
12200 | # being certain /sbin/ldconfig is available, command | |
12201 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
12202 | # even though it is searched at run-time. Try to do the best guess by | |
12203 | # appending ld.so.conf contents (and includes) to the search path. | |
12204 | if test -f /etc/ld.so.conf; then | |
12205 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
12206 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12207 | fi | |
12208 | ||
12209 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12210 | # powerpc, because MkLinux only supported shared libraries with the | |
12211 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12212 | # most powerpc-linux boxes support dynamic linking these days and | |
12213 | # people can always --disable-shared, the test was removed, and we | |
12214 | # assume the GNU/Linux dynamic linker is in use. | |
12215 | dynamic_linker='GNU/Linux ld.so' | |
12216 | ;; | |
12217 | ||
12218 | netbsd*) | |
12219 | version_type=sunos | |
12220 | need_lib_prefix=no | |
12221 | need_version=no | |
12222 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12223 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
12224 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12225 | dynamic_linker='NetBSD (a.out) ld.so' | |
12226 | else | |
12227 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12228 | soname_spec='$libname$release$shared_ext$major' | |
12229 | dynamic_linker='NetBSD ld.elf_so' | |
12230 | fi | |
12231 | shlibpath_var=LD_LIBRARY_PATH | |
12232 | shlibpath_overrides_runpath=yes | |
12233 | hardcode_into_libs=yes | |
12234 | ;; | |
12235 | ||
12236 | newsos6) | |
12237 | version_type=linux # correct to gnu/linux during the next big refactor | |
12238 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12239 | shlibpath_var=LD_LIBRARY_PATH | |
12240 | shlibpath_overrides_runpath=yes | |
12241 | ;; | |
12242 | ||
12243 | *nto* | *qnx*) | |
12244 | version_type=qnx | |
12245 | need_lib_prefix=no | |
12246 | need_version=no | |
12247 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12248 | soname_spec='$libname$release$shared_ext$major' | |
12249 | shlibpath_var=LD_LIBRARY_PATH | |
12250 | shlibpath_overrides_runpath=no | |
12251 | hardcode_into_libs=yes | |
12252 | dynamic_linker='ldqnx.so' | |
12253 | ;; | |
12254 | ||
12255 | openbsd* | bitrig*) | |
12256 | version_type=sunos | |
12257 | sys_lib_dlsearch_path_spec=/usr/lib | |
12258 | need_lib_prefix=no | |
12259 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
12260 | need_version=no | |
12261 | else | |
12262 | need_version=yes | |
12263 | fi | |
12264 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
12265 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12266 | shlibpath_var=LD_LIBRARY_PATH | |
12267 | shlibpath_overrides_runpath=yes | |
12268 | ;; | |
12269 | ||
12270 | os2*) | |
12271 | libname_spec='$name' | |
12272 | version_type=windows | |
12273 | shrext_cmds=.dll | |
12274 | need_version=no | |
12275 | need_lib_prefix=no | |
12276 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
12277 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
12278 | v=$($ECHO $release$versuffix | tr -d .-); | |
12279 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
12280 | $ECHO $n$v`$shared_ext' | |
12281 | library_names_spec='${libname}_dll.$libext' | |
12282 | dynamic_linker='OS/2 ld.exe' | |
12283 | shlibpath_var=BEGINLIBPATH | |
12284 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12285 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12286 | postinstall_cmds='base_file=`basename \$file`~ | |
12287 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
12288 | dldir=$destdir/`dirname \$dlpath`~ | |
12289 | test -d \$dldir || mkdir -p \$dldir~ | |
12290 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12291 | chmod a+x \$dldir/$dlname~ | |
12292 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12293 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12294 | fi' | |
12295 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
12296 | dlpath=$dir/\$dldll~ | |
12297 | $RM \$dlpath' | |
12298 | ;; | |
12299 | ||
12300 | osf3* | osf4* | osf5*) | |
12301 | version_type=osf | |
12302 | need_lib_prefix=no | |
12303 | need_version=no | |
12304 | soname_spec='$libname$release$shared_ext$major' | |
12305 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12306 | shlibpath_var=LD_LIBRARY_PATH | |
12307 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12308 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12309 | ;; | |
12310 | ||
12311 | rdos*) | |
12312 | dynamic_linker=no | |
12313 | ;; | |
12314 | ||
12315 | solaris*) | |
12316 | version_type=linux # correct to gnu/linux during the next big refactor | |
12317 | need_lib_prefix=no | |
12318 | need_version=no | |
12319 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12320 | soname_spec='$libname$release$shared_ext$major' | |
12321 | shlibpath_var=LD_LIBRARY_PATH | |
12322 | shlibpath_overrides_runpath=yes | |
12323 | hardcode_into_libs=yes | |
12324 | # ldd complains unless libraries are executable | |
12325 | postinstall_cmds='chmod +x $lib' | |
12326 | ;; | |
12327 | ||
12328 | sunos4*) | |
12329 | version_type=sunos | |
12330 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
12331 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12332 | shlibpath_var=LD_LIBRARY_PATH | |
12333 | shlibpath_overrides_runpath=yes | |
12334 | if test yes = "$with_gnu_ld"; then | |
12335 | need_lib_prefix=no | |
12336 | fi | |
12337 | need_version=yes | |
12338 | ;; | |
12339 | ||
12340 | sysv4 | sysv4.3*) | |
12341 | version_type=linux # correct to gnu/linux during the next big refactor | |
12342 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12343 | soname_spec='$libname$release$shared_ext$major' | |
12344 | shlibpath_var=LD_LIBRARY_PATH | |
12345 | case $host_vendor in | |
12346 | sni) | |
12347 | shlibpath_overrides_runpath=no | |
12348 | need_lib_prefix=no | |
12349 | runpath_var=LD_RUN_PATH | |
12350 | ;; | |
12351 | siemens) | |
12352 | need_lib_prefix=no | |
12353 | ;; | |
12354 | motorola) | |
12355 | need_lib_prefix=no | |
12356 | need_version=no | |
12357 | shlibpath_overrides_runpath=no | |
12358 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12359 | ;; | |
12360 | esac | |
12361 | ;; | |
12362 | ||
12363 | sysv4*MP*) | |
12364 | if test -d /usr/nec; then | |
12365 | version_type=linux # correct to gnu/linux during the next big refactor | |
12366 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
12367 | soname_spec='$libname$shared_ext.$major' | |
12368 | shlibpath_var=LD_LIBRARY_PATH | |
12369 | fi | |
12370 | ;; | |
12371 | ||
12372 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12373 | version_type=sco | |
12374 | need_lib_prefix=no | |
12375 | need_version=no | |
12376 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
12377 | soname_spec='$libname$release$shared_ext$major' | |
12378 | shlibpath_var=LD_LIBRARY_PATH | |
12379 | shlibpath_overrides_runpath=yes | |
12380 | hardcode_into_libs=yes | |
12381 | if test yes = "$with_gnu_ld"; then | |
12382 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12383 | else | |
12384 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12385 | case $host_os in | |
12386 | sco3.2v5*) | |
12387 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12388 | ;; | |
12389 | esac | |
12390 | fi | |
12391 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12392 | ;; | |
12393 | ||
12394 | tpf*) | |
12395 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12396 | version_type=linux # correct to gnu/linux during the next big refactor | |
12397 | need_lib_prefix=no | |
12398 | need_version=no | |
12399 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12400 | shlibpath_var=LD_LIBRARY_PATH | |
12401 | shlibpath_overrides_runpath=no | |
12402 | hardcode_into_libs=yes | |
12403 | ;; | |
12404 | ||
12405 | uts4*) | |
12406 | version_type=linux # correct to gnu/linux during the next big refactor | |
12407 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
12408 | soname_spec='$libname$release$shared_ext$major' | |
12409 | shlibpath_var=LD_LIBRARY_PATH | |
12410 | ;; | |
12411 | ||
12412 | *) | |
12413 | dynamic_linker=no | |
12414 | ;; | |
12415 | esac | |
12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12417 | $as_echo "$dynamic_linker" >&6; } | |
12418 | test no = "$dynamic_linker" && can_build_shared=no | |
12419 | ||
12420 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12421 | if test yes = "$GCC"; then | |
12422 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12423 | fi | |
12424 | ||
12425 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
12426 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
12427 | fi | |
12428 | ||
12429 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
12430 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
12431 | fi | |
12432 | ||
12433 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
12434 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
12435 | ||
12436 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
12437 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
12438 | ||
12439 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
12440 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
12441 | ||
12442 | ||
12443 | ||
12444 | ||
12445 | ||
12446 | ||
12447 | ||
12448 | ||
12449 | ||
12450 | ||
12451 | ||
12452 | ||
12453 | ||
12454 | ||
12455 | ||
12456 | ||
12457 | ||
12458 | ||
12459 | ||
12460 | ||
12461 | ||
12462 | ||
12463 | ||
12464 | ||
12465 | ||
12466 | ||
12467 | ||
12468 | ||
12469 | ||
12470 | ||
12471 | ||
12472 | ||
12473 | ||
12474 | ||
12475 | ||
12476 | ||
12477 | ||
12478 | ||
12479 | ||
12480 | ||
12481 | ||
12482 | ||
12483 | ||
12484 | ||
12485 | ||
12486 | ||
12487 | ||
12488 | ||
12489 | ||
12490 | ||
12491 | ||
12492 | ||
12493 | ||
12494 | ||
12495 | ||
12496 | ||
12497 | ||
12498 | ||
12499 | ||
12500 | ||
12501 | ||
12502 | ||
12503 | ||
12504 | ||
12505 | ||
12506 | ||
12507 | ||
12508 | ||
12509 | ||
12510 | ||
12511 | ||
12512 | ||
12513 | ||
12514 | ||
12515 | ||
12516 | ||
12517 | ||
12518 | ||
12519 | ||
12520 | ||
12521 | ||
12522 | ||
12523 | ||
12524 | ||
12525 | ||
12526 | ||
12527 | ||
12528 | ||
12529 | ||
12530 | ||
12531 | ||
12532 | ||
12533 | ||
12534 | ||
12535 | ||
12536 | ||
12537 | ||
12538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12539 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12540 | hardcode_action= | |
12541 | if test -n "$hardcode_libdir_flag_spec" || | |
12542 | test -n "$runpath_var" || | |
12543 | test yes = "$hardcode_automatic"; then | |
12544 | ||
12545 | # We can hardcode non-existent directories. | |
12546 | if test no != "$hardcode_direct" && | |
12547 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12548 | # have to relink, otherwise we might link with an installed library | |
12549 | # when we should be linking with a yet-to-be-installed one | |
12550 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
12551 | test no != "$hardcode_minus_L"; then | |
12552 | # Linking always hardcodes the temporary library directory. | |
12553 | hardcode_action=relink | |
12554 | else | |
12555 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12556 | hardcode_action=immediate | |
12557 | fi | |
12558 | else | |
12559 | # We cannot hardcode anything, or else we can only hardcode existing | |
12560 | # directories. | |
12561 | hardcode_action=unsupported | |
12562 | fi | |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12564 | $as_echo "$hardcode_action" >&6; } | |
12565 | ||
12566 | if test relink = "$hardcode_action" || | |
12567 | test yes = "$inherit_rpath"; then | |
12568 | # Fast installation is not supported | |
12569 | enable_fast_install=no | |
12570 | elif test yes = "$shlibpath_overrides_runpath" || | |
12571 | test no = "$enable_shared"; then | |
12572 | # Fast installation is not necessary | |
12573 | enable_fast_install=needless | |
12574 | fi | |
12575 | ||
12576 | ||
12577 | ||
12578 | ||
12579 | ||
12580 | ||
12581 | if test yes != "$enable_dlopen"; then | |
12582 | enable_dlopen=unknown | |
12583 | enable_dlopen_self=unknown | |
12584 | enable_dlopen_self_static=unknown | |
12585 | else | |
12586 | lt_cv_dlopen=no | |
12587 | lt_cv_dlopen_libs= | |
12588 | ||
12589 | case $host_os in | |
12590 | beos*) | |
12591 | lt_cv_dlopen=load_add_on | |
12592 | lt_cv_dlopen_libs= | |
12593 | lt_cv_dlopen_self=yes | |
12594 | ;; | |
12595 | ||
12596 | mingw* | pw32* | cegcc*) | |
12597 | lt_cv_dlopen=LoadLibrary | |
12598 | lt_cv_dlopen_libs= | |
12599 | ;; | |
12600 | ||
12601 | cygwin*) | |
12602 | lt_cv_dlopen=dlopen | |
12603 | lt_cv_dlopen_libs= | |
12604 | ;; | |
12605 | ||
12606 | darwin*) | |
12607 | # if libdl is installed we need to link against it | |
12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12609 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12610 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12611 | $as_echo_n "(cached) " >&6 | |
12612 | else | |
12613 | ac_check_lib_save_LIBS=$LIBS | |
12614 | LIBS="-ldl $LIBS" | |
12615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12616 | /* end confdefs.h. */ | |
12617 | ||
12618 | /* Override any GCC internal prototype to avoid an error. | |
12619 | Use char because int might match the return type of a GCC | |
12620 | builtin and then its argument prototype would still apply. */ | |
12621 | #ifdef __cplusplus | |
12622 | extern "C" | |
12623 | #endif | |
12624 | char dlopen (); | |
12625 | int | |
12626 | main () | |
12627 | { | |
12628 | return dlopen (); | |
12629 | ; | |
12630 | return 0; | |
12631 | } | |
12632 | _ACEOF | |
12633 | if ac_fn_c_try_link "$LINENO"; then : | |
12634 | ac_cv_lib_dl_dlopen=yes | |
12635 | else | |
12636 | ac_cv_lib_dl_dlopen=no | |
12637 | fi | |
12638 | rm -f core conftest.err conftest.$ac_objext \ | |
12639 | conftest$ac_exeext conftest.$ac_ext | |
12640 | LIBS=$ac_check_lib_save_LIBS | |
12641 | fi | |
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12643 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12644 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12645 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
12646 | else | |
12647 | ||
12648 | lt_cv_dlopen=dyld | |
12649 | lt_cv_dlopen_libs= | |
12650 | lt_cv_dlopen_self=yes | |
12651 | ||
12652 | fi | |
12653 | ||
12654 | ;; | |
12655 | ||
12656 | tpf*) | |
12657 | # Don't try to run any link tests for TPF. We know it's impossible | |
12658 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
12659 | lt_cv_dlopen=dlopen | |
12660 | lt_cv_dlopen_libs= | |
12661 | lt_cv_dlopen_self=no | |
12662 | ;; | |
12663 | ||
12664 | *) | |
12665 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12666 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12667 | lt_cv_dlopen=shl_load | |
12668 | else | |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12670 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12671 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12672 | $as_echo_n "(cached) " >&6 | |
12673 | else | |
12674 | ac_check_lib_save_LIBS=$LIBS | |
12675 | LIBS="-ldld $LIBS" | |
12676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12677 | /* end confdefs.h. */ | |
12678 | ||
12679 | /* Override any GCC internal prototype to avoid an error. | |
12680 | Use char because int might match the return type of a GCC | |
12681 | builtin and then its argument prototype would still apply. */ | |
12682 | #ifdef __cplusplus | |
12683 | extern "C" | |
12684 | #endif | |
12685 | char shl_load (); | |
12686 | int | |
12687 | main () | |
12688 | { | |
12689 | return shl_load (); | |
12690 | ; | |
12691 | return 0; | |
12692 | } | |
12693 | _ACEOF | |
12694 | if ac_fn_c_try_link "$LINENO"; then : | |
12695 | ac_cv_lib_dld_shl_load=yes | |
12696 | else | |
12697 | ac_cv_lib_dld_shl_load=no | |
12698 | fi | |
12699 | rm -f core conftest.err conftest.$ac_objext \ | |
12700 | conftest$ac_exeext conftest.$ac_ext | |
12701 | LIBS=$ac_check_lib_save_LIBS | |
12702 | fi | |
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12704 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12705 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12706 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
12707 | else | |
12708 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12709 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12710 | lt_cv_dlopen=dlopen | |
12711 | else | |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12713 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12714 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12715 | $as_echo_n "(cached) " >&6 | |
12716 | else | |
12717 | ac_check_lib_save_LIBS=$LIBS | |
12718 | LIBS="-ldl $LIBS" | |
12719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12720 | /* end confdefs.h. */ | |
12721 | ||
12722 | /* Override any GCC internal prototype to avoid an error. | |
12723 | Use char because int might match the return type of a GCC | |
12724 | builtin and then its argument prototype would still apply. */ | |
12725 | #ifdef __cplusplus | |
12726 | extern "C" | |
12727 | #endif | |
12728 | char dlopen (); | |
12729 | int | |
12730 | main () | |
12731 | { | |
12732 | return dlopen (); | |
12733 | ; | |
12734 | return 0; | |
12735 | } | |
12736 | _ACEOF | |
12737 | if ac_fn_c_try_link "$LINENO"; then : | |
12738 | ac_cv_lib_dl_dlopen=yes | |
12739 | else | |
12740 | ac_cv_lib_dl_dlopen=no | |
12741 | fi | |
12742 | rm -f core conftest.err conftest.$ac_objext \ | |
12743 | conftest$ac_exeext conftest.$ac_ext | |
12744 | LIBS=$ac_check_lib_save_LIBS | |
12745 | fi | |
12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12747 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12748 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12749 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
12750 | else | |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12752 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12753 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12754 | $as_echo_n "(cached) " >&6 | |
12755 | else | |
12756 | ac_check_lib_save_LIBS=$LIBS | |
12757 | LIBS="-lsvld $LIBS" | |
12758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12759 | /* end confdefs.h. */ | |
12760 | ||
12761 | /* Override any GCC internal prototype to avoid an error. | |
12762 | Use char because int might match the return type of a GCC | |
12763 | builtin and then its argument prototype would still apply. */ | |
12764 | #ifdef __cplusplus | |
12765 | extern "C" | |
12766 | #endif | |
12767 | char dlopen (); | |
12768 | int | |
12769 | main () | |
12770 | { | |
12771 | return dlopen (); | |
12772 | ; | |
12773 | return 0; | |
12774 | } | |
12775 | _ACEOF | |
12776 | if ac_fn_c_try_link "$LINENO"; then : | |
12777 | ac_cv_lib_svld_dlopen=yes | |
12778 | else | |
12779 | ac_cv_lib_svld_dlopen=no | |
12780 | fi | |
12781 | rm -f core conftest.err conftest.$ac_objext \ | |
12782 | conftest$ac_exeext conftest.$ac_ext | |
12783 | LIBS=$ac_check_lib_save_LIBS | |
12784 | fi | |
12785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12786 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12787 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12788 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
12789 | else | |
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12791 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12792 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12793 | $as_echo_n "(cached) " >&6 | |
12794 | else | |
12795 | ac_check_lib_save_LIBS=$LIBS | |
12796 | LIBS="-ldld $LIBS" | |
12797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12798 | /* end confdefs.h. */ | |
12799 | ||
12800 | /* Override any GCC internal prototype to avoid an error. | |
12801 | Use char because int might match the return type of a GCC | |
12802 | builtin and then its argument prototype would still apply. */ | |
12803 | #ifdef __cplusplus | |
12804 | extern "C" | |
12805 | #endif | |
12806 | char dld_link (); | |
12807 | int | |
12808 | main () | |
12809 | { | |
12810 | return dld_link (); | |
12811 | ; | |
12812 | return 0; | |
12813 | } | |
12814 | _ACEOF | |
12815 | if ac_fn_c_try_link "$LINENO"; then : | |
12816 | ac_cv_lib_dld_dld_link=yes | |
12817 | else | |
12818 | ac_cv_lib_dld_dld_link=no | |
12819 | fi | |
12820 | rm -f core conftest.err conftest.$ac_objext \ | |
12821 | conftest$ac_exeext conftest.$ac_ext | |
12822 | LIBS=$ac_check_lib_save_LIBS | |
12823 | fi | |
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12825 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12826 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12827 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
12828 | fi | |
12829 | ||
12830 | ||
12831 | fi | |
12832 | ||
12833 | ||
12834 | fi | |
12835 | ||
12836 | ||
12837 | fi | |
12838 | ||
12839 | ||
12840 | fi | |
12841 | ||
12842 | ||
12843 | fi | |
12844 | ||
12845 | ;; | |
12846 | esac | |
12847 | ||
12848 | if test no = "$lt_cv_dlopen"; then | |
12849 | enable_dlopen=no | |
12850 | else | |
12851 | enable_dlopen=yes | |
12852 | fi | |
12853 | ||
12854 | case $lt_cv_dlopen in | |
12855 | dlopen) | |
12856 | save_CPPFLAGS=$CPPFLAGS | |
12857 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12858 | ||
12859 | save_LDFLAGS=$LDFLAGS | |
12860 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12861 | ||
12862 | save_LIBS=$LIBS | |
12863 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12864 | ||
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12866 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12867 | if ${lt_cv_dlopen_self+:} false; then : | |
12868 | $as_echo_n "(cached) " >&6 | |
12869 | else | |
12870 | if test yes = "$cross_compiling"; then : | |
12871 | lt_cv_dlopen_self=cross | |
12872 | else | |
12873 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12874 | lt_status=$lt_dlunknown | |
12875 | cat > conftest.$ac_ext <<_LT_EOF | |
12876 | #line $LINENO "configure" | |
12877 | #include "confdefs.h" | |
12878 | ||
12879 | #if HAVE_DLFCN_H | |
12880 | #include <dlfcn.h> | |
12881 | #endif | |
12882 | ||
12883 | #include <stdio.h> | |
12884 | ||
12885 | #ifdef RTLD_GLOBAL | |
12886 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12887 | #else | |
12888 | # ifdef DL_GLOBAL | |
12889 | # define LT_DLGLOBAL DL_GLOBAL | |
12890 | # else | |
12891 | # define LT_DLGLOBAL 0 | |
12892 | # endif | |
12893 | #endif | |
12894 | ||
12895 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12896 | find out it does not work in some platform. */ | |
12897 | #ifndef LT_DLLAZY_OR_NOW | |
12898 | # ifdef RTLD_LAZY | |
12899 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12900 | # else | |
12901 | # ifdef DL_LAZY | |
12902 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12903 | # else | |
12904 | # ifdef RTLD_NOW | |
12905 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12906 | # else | |
12907 | # ifdef DL_NOW | |
12908 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12909 | # else | |
12910 | # define LT_DLLAZY_OR_NOW 0 | |
12911 | # endif | |
12912 | # endif | |
12913 | # endif | |
12914 | # endif | |
12915 | #endif | |
12916 | ||
12917 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
12918 | correspondingly for the symbols needed. */ | |
12919 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12920 | int fnord () __attribute__((visibility("default"))); | |
12921 | #endif | |
12922 | ||
12923 | int fnord () { return 42; } | |
12924 | int main () | |
12925 | { | |
12926 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12927 | int status = $lt_dlunknown; | |
12928 | ||
12929 | if (self) | |
12930 | { | |
12931 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12932 | else | |
12933 | { | |
12934 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12935 | else puts (dlerror ()); | |
12936 | } | |
12937 | /* dlclose (self); */ | |
12938 | } | |
12939 | else | |
12940 | puts (dlerror ()); | |
12941 | ||
12942 | return status; | |
12943 | } | |
12944 | _LT_EOF | |
12945 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12946 | (eval $ac_link) 2>&5 | |
12947 | ac_status=$? | |
12948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12949 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
12950 | (./conftest; exit; ) >&5 2>/dev/null | |
12951 | lt_status=$? | |
12952 | case x$lt_status in | |
12953 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12954 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12955 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12956 | esac | |
12957 | else : | |
12958 | # compilation failed | |
12959 | lt_cv_dlopen_self=no | |
12960 | fi | |
12961 | fi | |
12962 | rm -fr conftest* | |
12963 | ||
12964 | ||
12965 | fi | |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12967 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12968 | ||
12969 | if test yes = "$lt_cv_dlopen_self"; then | |
12970 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12972 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12973 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12974 | $as_echo_n "(cached) " >&6 | |
12975 | else | |
12976 | if test yes = "$cross_compiling"; then : | |
12977 | lt_cv_dlopen_self_static=cross | |
12978 | else | |
12979 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12980 | lt_status=$lt_dlunknown | |
12981 | cat > conftest.$ac_ext <<_LT_EOF | |
12982 | #line $LINENO "configure" | |
12983 | #include "confdefs.h" | |
12984 | ||
12985 | #if HAVE_DLFCN_H | |
12986 | #include <dlfcn.h> | |
12987 | #endif | |
12988 | ||
12989 | #include <stdio.h> | |
12990 | ||
12991 | #ifdef RTLD_GLOBAL | |
12992 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12993 | #else | |
12994 | # ifdef DL_GLOBAL | |
12995 | # define LT_DLGLOBAL DL_GLOBAL | |
12996 | # else | |
12997 | # define LT_DLGLOBAL 0 | |
12998 | # endif | |
12999 | #endif | |
13000 | ||
13001 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13002 | find out it does not work in some platform. */ | |
13003 | #ifndef LT_DLLAZY_OR_NOW | |
13004 | # ifdef RTLD_LAZY | |
13005 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13006 | # else | |
13007 | # ifdef DL_LAZY | |
13008 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13009 | # else | |
13010 | # ifdef RTLD_NOW | |
13011 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13012 | # else | |
13013 | # ifdef DL_NOW | |
13014 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13015 | # else | |
13016 | # define LT_DLLAZY_OR_NOW 0 | |
13017 | # endif | |
13018 | # endif | |
13019 | # endif | |
13020 | # endif | |
13021 | #endif | |
13022 | ||
13023 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
13024 | correspondingly for the symbols needed. */ | |
13025 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13026 | int fnord () __attribute__((visibility("default"))); | |
13027 | #endif | |
13028 | ||
13029 | int fnord () { return 42; } | |
13030 | int main () | |
13031 | { | |
13032 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13033 | int status = $lt_dlunknown; | |
13034 | ||
13035 | if (self) | |
13036 | { | |
13037 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13038 | else | |
13039 | { | |
13040 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13041 | else puts (dlerror ()); | |
13042 | } | |
13043 | /* dlclose (self); */ | |
13044 | } | |
13045 | else | |
13046 | puts (dlerror ()); | |
13047 | ||
13048 | return status; | |
13049 | } | |
13050 | _LT_EOF | |
13051 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13052 | (eval $ac_link) 2>&5 | |
13053 | ac_status=$? | |
13054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13055 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
13056 | (./conftest; exit; ) >&5 2>/dev/null | |
13057 | lt_status=$? | |
13058 | case x$lt_status in | |
13059 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13060 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13061 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13062 | esac | |
13063 | else : | |
13064 | # compilation failed | |
13065 | lt_cv_dlopen_self_static=no | |
13066 | fi | |
13067 | fi | |
13068 | rm -fr conftest* | |
13069 | ||
13070 | ||
13071 | fi | |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
13073 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13074 | fi | |
13075 | ||
13076 | CPPFLAGS=$save_CPPFLAGS | |
13077 | LDFLAGS=$save_LDFLAGS | |
13078 | LIBS=$save_LIBS | |
13079 | ;; | |
13080 | esac | |
13081 | ||
13082 | case $lt_cv_dlopen_self in | |
13083 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13084 | *) enable_dlopen_self=unknown ;; | |
13085 | esac | |
13086 | ||
13087 | case $lt_cv_dlopen_self_static in | |
13088 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13089 | *) enable_dlopen_self_static=unknown ;; | |
13090 | esac | |
13091 | fi | |
13092 | ||
13093 | ||
13094 | ||
13095 | ||
13096 | ||
13097 | ||
13098 | ||
13099 | ||
13100 | ||
13101 | ||
13102 | ||
13103 | ||
13104 | ||
13105 | ||
13106 | ||
13107 | ||
13108 | ||
13109 | striplib= | |
13110 | old_striplib= | |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13112 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13113 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13114 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13115 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13117 | $as_echo "yes" >&6; } | |
13118 | else | |
13119 | # FIXME - insert some real tests, host_os isn't really good enough | |
13120 | case $host_os in | |
13121 | darwin*) | |
13122 | if test -n "$STRIP"; then | |
13123 | striplib="$STRIP -x" | |
13124 | old_striplib="$STRIP -S" | |
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13126 | $as_echo "yes" >&6; } | |
13127 | else | |
13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13129 | $as_echo "no" >&6; } | |
13130 | fi | |
13131 | ;; | |
13132 | *) | |
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13134 | $as_echo "no" >&6; } | |
13135 | ;; | |
13136 | esac | |
13137 | fi | |
13138 | ||
13139 | ||
13140 | ||
13141 | ||
13142 | ||
13143 | ||
13144 | ||
13145 | ||
13146 | ||
13147 | ||
13148 | ||
13149 | ||
13150 | # Report what library types will actually be built | |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13152 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13154 | $as_echo "$can_build_shared" >&6; } | |
13155 | ||
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
13157 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13158 | test no = "$can_build_shared" && enable_shared=no | |
13159 | ||
13160 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13161 | # are all built from PIC. | |
13162 | case $host_os in | |
13163 | aix3*) | |
13164 | test yes = "$enable_shared" && enable_static=no | |
13165 | if test -n "$RANLIB"; then | |
13166 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13167 | postinstall_cmds='$RANLIB $lib' | |
13168 | fi | |
13169 | ;; | |
13170 | ||
13171 | aix[4-9]*) | |
13172 | if test ia64 != "$host_cpu"; then | |
13173 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
13174 | yes,aix,yes) ;; # shared object as lib.so file only | |
13175 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
13176 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
13177 | esac | |
13178 | fi | |
13179 | ;; | |
13180 | esac | |
13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13182 | $as_echo "$enable_shared" >&6; } | |
13183 | ||
13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
13185 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13186 | # Make sure either enable_shared or enable_static is yes. | |
13187 | test yes = "$enable_shared" || enable_static=yes | |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13189 | $as_echo "$enable_static" >&6; } | |
13190 | ||
13191 | ||
13192 | ||
13193 | ||
13194 | fi | |
13195 | ac_ext=c | |
13196 | ac_cpp='$CPP $CPPFLAGS' | |
13197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13200 | ||
13201 | CC=$lt_save_CC | |
13202 | ||
13203 | if test -n "$CXX" && ( test no != "$CXX" && | |
13204 | ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
13205 | (test g++ != "$CXX"))); then | |
13206 | ac_ext=cpp | |
13207 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
13212 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
13213 | if test -z "$CXXCPP"; then | |
13214 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
13215 | $as_echo_n "(cached) " >&6 | |
13216 | else | |
13217 | # Double quotes because CXXCPP needs to be expanded | |
13218 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
13219 | do | |
13220 | ac_preproc_ok=false | |
13221 | for ac_cxx_preproc_warn_flag in '' yes | |
13222 | do | |
13223 | # Use a header file that comes with gcc, so configuring glibc | |
13224 | # with a fresh cross-compiler works. | |
13225 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13226 | # <limits.h> exists even on freestanding compilers. | |
13227 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13228 | # not just through cpp. "Syntax error" is here to catch this case. | |
13229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13230 | /* end confdefs.h. */ | |
13231 | #ifdef __STDC__ | |
13232 | # include <limits.h> | |
13233 | #else | |
13234 | # include <assert.h> | |
13235 | #endif | |
13236 | Syntax error | |
13237 | _ACEOF | |
13238 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13239 | ||
13240 | else | |
13241 | # Broken: fails on valid input. | |
13242 | continue | |
13243 | fi | |
13244 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13245 | ||
13246 | # OK, works on sane cases. Now check whether nonexistent headers | |
13247 | # can be detected and how. | |
13248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13249 | /* end confdefs.h. */ | |
13250 | #include <ac_nonexistent.h> | |
13251 | _ACEOF | |
13252 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13253 | # Broken: success on invalid input. | |
13254 | continue | |
13255 | else | |
13256 | # Passes both tests. | |
13257 | ac_preproc_ok=: | |
13258 | break | |
13259 | fi | |
13260 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13261 | ||
13262 | done | |
13263 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13264 | rm -f conftest.i conftest.err conftest.$ac_ext | |
13265 | if $ac_preproc_ok; then : | |
13266 | break | |
13267 | fi | |
13268 | ||
13269 | done | |
13270 | ac_cv_prog_CXXCPP=$CXXCPP | |
13271 | ||
13272 | fi | |
13273 | CXXCPP=$ac_cv_prog_CXXCPP | |
13274 | else | |
13275 | ac_cv_prog_CXXCPP=$CXXCPP | |
13276 | fi | |
13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
13278 | $as_echo "$CXXCPP" >&6; } | |
13279 | ac_preproc_ok=false | |
13280 | for ac_cxx_preproc_warn_flag in '' yes | |
13281 | do | |
13282 | # Use a header file that comes with gcc, so configuring glibc | |
13283 | # with a fresh cross-compiler works. | |
13284 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13285 | # <limits.h> exists even on freestanding compilers. | |
13286 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13287 | # not just through cpp. "Syntax error" is here to catch this case. | |
13288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13289 | /* end confdefs.h. */ | |
13290 | #ifdef __STDC__ | |
13291 | # include <limits.h> | |
13292 | #else | |
13293 | # include <assert.h> | |
13294 | #endif | |
13295 | Syntax error | |
13296 | _ACEOF | |
13297 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13298 | ||
13299 | else | |
13300 | # Broken: fails on valid input. | |
13301 | continue | |
13302 | fi | |
13303 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13304 | ||
13305 | # OK, works on sane cases. Now check whether nonexistent headers | |
13306 | # can be detected and how. | |
13307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13308 | /* end confdefs.h. */ | |
13309 | #include <ac_nonexistent.h> | |
13310 | _ACEOF | |
13311 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13312 | # Broken: success on invalid input. | |
13313 | continue | |
13314 | else | |
13315 | # Passes both tests. | |
13316 | ac_preproc_ok=: | |
13317 | break | |
13318 | fi | |
13319 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13320 | ||
13321 | done | |
13322 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13323 | rm -f conftest.i conftest.err conftest.$ac_ext | |
13324 | if $ac_preproc_ok; then : | |
13325 | ||
13326 | else | |
13327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13328 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13329 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
13330 | See \`config.log' for more details" "$LINENO" 5; } | |
13331 | fi | |
13332 | ||
13333 | ac_ext=c | |
13334 | ac_cpp='$CPP $CPPFLAGS' | |
13335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13338 | ||
13339 | else | |
13340 | _lt_caught_CXX_error=yes | |
13341 | fi | |
13342 | ||
13343 | ac_ext=cpp | |
13344 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13345 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13346 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13347 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13348 | ||
13349 | archive_cmds_need_lc_CXX=no | |
13350 | allow_undefined_flag_CXX= | |
13351 | always_export_symbols_CXX=no | |
13352 | archive_expsym_cmds_CXX= | |
13353 | compiler_needs_object_CXX=no | |
13354 | export_dynamic_flag_spec_CXX= | |
13355 | hardcode_direct_CXX=no | |
13356 | hardcode_direct_absolute_CXX=no | |
13357 | hardcode_libdir_flag_spec_CXX= | |
13358 | hardcode_libdir_separator_CXX= | |
13359 | hardcode_minus_L_CXX=no | |
13360 | hardcode_shlibpath_var_CXX=unsupported | |
13361 | hardcode_automatic_CXX=no | |
13362 | inherit_rpath_CXX=no | |
13363 | module_cmds_CXX= | |
13364 | module_expsym_cmds_CXX= | |
13365 | link_all_deplibs_CXX=unknown | |
13366 | old_archive_cmds_CXX=$old_archive_cmds | |
13367 | reload_flag_CXX=$reload_flag | |
13368 | reload_cmds_CXX=$reload_cmds | |
13369 | no_undefined_flag_CXX= | |
13370 | whole_archive_flag_spec_CXX= | |
13371 | enable_shared_with_static_runtimes_CXX=no | |
13372 | ||
13373 | # Source file extension for C++ test sources. | |
13374 | ac_ext=cpp | |
13375 | ||
13376 | # Object file extension for compiled C++ test sources. | |
13377 | objext=o | |
13378 | objext_CXX=$objext | |
13379 | ||
13380 | # No sense in running all these tests if we already determined that | |
13381 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
13382 | # are currently assumed to apply to all compilers on this platform, | |
13383 | # and will be corrupted by setting them based on a non-working compiler. | |
13384 | if test yes != "$_lt_caught_CXX_error"; then | |
13385 | # Code to be used in simple compile tests | |
13386 | lt_simple_compile_test_code="int some_variable = 0;" | |
13387 | ||
13388 | # Code to be used in simple link tests | |
13389 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
13390 | ||
13391 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13392 | ||
13393 | ||
13394 | ||
13395 | ||
13396 | ||
13397 | ||
13398 | # If no C compiler was specified, use CC. | |
13399 | LTCC=${LTCC-"$CC"} | |
13400 | ||
13401 | # If no C compiler flags were specified, use CFLAGS. | |
13402 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13403 | ||
13404 | # Allow CC to be a program name with arguments. | |
13405 | compiler=$CC | |
13406 | ||
13407 | ||
13408 | # save warnings/boilerplate of simple test code | |
13409 | ac_outfile=conftest.$ac_objext | |
13410 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13411 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13412 | _lt_compiler_boilerplate=`cat conftest.err` | |
13413 | $RM -r conftest* | |
13414 | ||
13415 | ac_outfile=conftest.$ac_objext | |
13416 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13417 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13418 | _lt_linker_boilerplate=`cat conftest.err` | |
13419 | $RM -r conftest* | |
13420 | ||
13421 | ||
13422 | # Allow CC to be a program name with arguments. | |
13423 | lt_save_CC=$CC | |
13424 | lt_save_CFLAGS=$CFLAGS | |
13425 | lt_save_LD=$LD | |
13426 | lt_save_GCC=$GCC | |
13427 | GCC=$GXX | |
13428 | lt_save_with_gnu_ld=$with_gnu_ld | |
13429 | lt_save_path_LD=$lt_cv_path_LD | |
13430 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
13431 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
13432 | else | |
13433 | $as_unset lt_cv_prog_gnu_ld | |
13434 | fi | |
13435 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
13436 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
13437 | else | |
13438 | $as_unset lt_cv_path_LD | |
13439 | fi | |
13440 | test -z "${LDCXX+set}" || LD=$LDCXX | |
13441 | CC=${CXX-"c++"} | |
13442 | CFLAGS=$CXXFLAGS | |
13443 | compiler=$CC | |
13444 | compiler_CXX=$CC | |
13445 | func_cc_basename $compiler | |
13446 | cc_basename=$func_cc_basename_result | |
13447 | ||
13448 | ||
13449 | if test -n "$compiler"; then | |
13450 | # We don't want -fno-exception when compiling C++ code, so set the | |
13451 | # no_builtin_flag separately | |
13452 | if test yes = "$GXX"; then | |
13453 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
13454 | else | |
13455 | lt_prog_compiler_no_builtin_flag_CXX= | |
13456 | fi | |
13457 | ||
13458 | if test yes = "$GXX"; then | |
13459 | # Set up default GNU C++ configuration | |
13460 | ||
13461 | ||
13462 | ||
13463 | # Check whether --with-gnu-ld was given. | |
13464 | if test "${with_gnu_ld+set}" = set; then : | |
13465 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
13466 | else | |
13467 | with_gnu_ld=no | |
13468 | fi | |
13469 | ||
13470 | ac_prog=ld | |
13471 | if test yes = "$GCC"; then | |
13472 | # Check if gcc -print-prog-name=ld gives a path. | |
13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
13474 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
13475 | case $host in | |
13476 | *-*-mingw*) | |
13477 | # gcc leaves a trailing carriage return, which upsets mingw | |
13478 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13479 | *) | |
13480 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13481 | esac | |
13482 | case $ac_prog in | |
13483 | # Accept absolute paths. | |
13484 | [\\/]* | ?:[\\/]*) | |
13485 | re_direlt='/[^/][^/]*/\.\./' | |
13486 | # Canonicalize the pathname of ld | |
13487 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13488 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13489 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13490 | done | |
13491 | test -z "$LD" && LD=$ac_prog | |
13492 | ;; | |
13493 | "") | |
13494 | # If it fails, then pretend we aren't using GCC. | |
13495 | ac_prog=ld | |
13496 | ;; | |
13497 | *) | |
13498 | # If it is relative, then search for the first ld in PATH. | |
13499 | with_gnu_ld=unknown | |
13500 | ;; | |
13501 | esac | |
13502 | elif test yes = "$with_gnu_ld"; then | |
13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
13504 | $as_echo_n "checking for GNU ld... " >&6; } | |
13505 | else | |
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13507 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
13508 | fi | |
13509 | if ${lt_cv_path_LD+:} false; then : | |
13510 | $as_echo_n "(cached) " >&6 | |
13511 | else | |
13512 | if test -z "$LD"; then | |
13513 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
13514 | for ac_dir in $PATH; do | |
13515 | IFS=$lt_save_ifs | |
13516 | test -z "$ac_dir" && ac_dir=. | |
13517 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13518 | lt_cv_path_LD=$ac_dir/$ac_prog | |
13519 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13520 | # but apparently some variants of GNU ld only accept -v. | |
13521 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13522 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13523 | *GNU* | *'with BFD'*) | |
13524 | test no != "$with_gnu_ld" && break | |
13525 | ;; | |
13526 | *) | |
13527 | test yes != "$with_gnu_ld" && break | |
13528 | ;; | |
13529 | esac | |
13530 | fi | |
13531 | done | |
13532 | IFS=$lt_save_ifs | |
13533 | else | |
13534 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
13535 | fi | |
13536 | fi | |
13537 | ||
13538 | LD=$lt_cv_path_LD | |
13539 | if test -n "$LD"; then | |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13541 | $as_echo "$LD" >&6; } | |
13542 | else | |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13544 | $as_echo "no" >&6; } | |
13545 | fi | |
13546 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
13548 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
13549 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
13550 | $as_echo_n "(cached) " >&6 | |
13551 | else | |
13552 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13553 | case `$LD -v 2>&1 </dev/null` in | |
13554 | *GNU* | *'with BFD'*) | |
13555 | lt_cv_prog_gnu_ld=yes | |
13556 | ;; | |
13557 | *) | |
13558 | lt_cv_prog_gnu_ld=no | |
13559 | ;; | |
13560 | esac | |
13561 | fi | |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13563 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13564 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
13565 | ||
13566 | ||
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
13573 | # archiving commands below assume that GNU ld is being used. | |
13574 | if test yes = "$with_gnu_ld"; then | |
13575 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
13576 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
13577 | ||
13578 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
13579 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
13580 | ||
13581 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
13582 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13583 | # investigate it a little bit more. (MM) | |
13584 | wlarc='$wl' | |
13585 | ||
13586 | # ancient GNU ld didn't support --whole-archive et. al. | |
13587 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13588 | $GREP 'no-whole-archive' > /dev/null; then | |
13589 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
13590 | else | |
13591 | whole_archive_flag_spec_CXX= | |
13592 | fi | |
13593 | else | |
13594 | with_gnu_ld=no | |
13595 | wlarc= | |
13596 | ||
13597 | # A generic and very simple default shared library creation | |
13598 | # command for GNU C++ for the case where it uses the native | |
13599 | # linker, instead of GNU ld. If possible, this setting should | |
13600 | # overridden to take advantage of the native linker features on | |
13601 | # the platform it is being used on. | |
13602 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13603 | fi | |
13604 | ||
13605 | # Commands to make compiler produce verbose output that lists | |
13606 | # what "hidden" libraries, object files and flags are used when | |
13607 | # linking a shared library. | |
13608 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13609 | ||
13610 | else | |
13611 | GXX=no | |
13612 | with_gnu_ld=no | |
13613 | wlarc= | |
13614 | fi | |
13615 | ||
13616 | # PORTME: fill in a description of your system's C++ link characteristics | |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13618 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13619 | ld_shlibs_CXX=yes | |
13620 | case $host_os in | |
13621 | aix3*) | |
13622 | # FIXME: insert proper C++ library support | |
13623 | ld_shlibs_CXX=no | |
13624 | ;; | |
13625 | aix[4-9]*) | |
13626 | if test ia64 = "$host_cpu"; then | |
13627 | # On IA64, the linker does run time linking by default, so we don't | |
13628 | # have to do anything special. | |
13629 | aix_use_runtimelinking=no | |
13630 | exp_sym_flag='-Bexport' | |
13631 | no_entry_flag= | |
13632 | else | |
13633 | aix_use_runtimelinking=no | |
13634 | ||
13635 | # Test if we are trying to use run time linking or normal | |
13636 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13637 | # have runtime linking enabled, and use it for executables. | |
13638 | # For shared libraries, we enable/disable runtime linking | |
13639 | # depending on the kind of the shared library created - | |
13640 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
13641 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
13642 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
13643 | # lib.a static archive | |
13644 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
13645 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
13646 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13647 | # lib.a(lib.so.V) shared, rtl:no | |
13648 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
13649 | # lib.a static archive | |
13650 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13651 | for ld_flag in $LDFLAGS; do | |
13652 | case $ld_flag in | |
13653 | *-brtl*) | |
13654 | aix_use_runtimelinking=yes | |
13655 | break | |
13656 | ;; | |
13657 | esac | |
13658 | done | |
13659 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
13660 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
13661 | # so we don't have lib.a shared libs to link our executables. | |
13662 | # We have to force runtime linking in this case. | |
13663 | aix_use_runtimelinking=yes | |
13664 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
13665 | fi | |
13666 | ;; | |
13667 | esac | |
13668 | ||
13669 | exp_sym_flag='-bexport' | |
13670 | no_entry_flag='-bnoentry' | |
13671 | fi | |
13672 | ||
13673 | # When large executables or shared objects are built, AIX ld can | |
13674 | # have problems creating the table of contents. If linking a library | |
13675 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13676 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13677 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13678 | ||
13679 | archive_cmds_CXX='' | |
13680 | hardcode_direct_CXX=yes | |
13681 | hardcode_direct_absolute_CXX=yes | |
13682 | hardcode_libdir_separator_CXX=':' | |
13683 | link_all_deplibs_CXX=yes | |
13684 | file_list_spec_CXX='$wl-f,' | |
13685 | case $with_aix_soname,$aix_use_runtimelinking in | |
13686 | aix,*) ;; # no import file | |
13687 | svr4,* | *,yes) # use import file | |
13688 | # The Import File defines what to hardcode. | |
13689 | hardcode_direct_CXX=no | |
13690 | hardcode_direct_absolute_CXX=no | |
13691 | ;; | |
13692 | esac | |
13693 | ||
13694 | if test yes = "$GXX"; then | |
13695 | case $host_os in aix4.[012]|aix4.[012].*) | |
13696 | # We only want to do this on AIX 4.2 and lower, the check | |
13697 | # below for broken collect2 doesn't work under 4.3+ | |
13698 | collect2name=`$CC -print-prog-name=collect2` | |
13699 | if test -f "$collect2name" && | |
13700 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13701 | then | |
13702 | # We have reworked collect2 | |
13703 | : | |
13704 | else | |
13705 | # We have old collect2 | |
13706 | hardcode_direct_CXX=unsupported | |
13707 | # It fails to find uninstalled libraries when the uninstalled | |
13708 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13709 | # to unsupported forces relinking | |
13710 | hardcode_minus_L_CXX=yes | |
13711 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13712 | hardcode_libdir_separator_CXX= | |
13713 | fi | |
13714 | esac | |
13715 | shared_flag='-shared' | |
13716 | if test yes = "$aix_use_runtimelinking"; then | |
13717 | shared_flag=$shared_flag' $wl-G' | |
13718 | fi | |
13719 | # Need to ensure runtime linking is disabled for the traditional | |
13720 | # shared library, or the linker may eventually find shared libraries | |
13721 | # /with/ Import File - we do not want to mix them. | |
13722 | shared_flag_aix='-shared' | |
13723 | shared_flag_svr4='-shared $wl-G' | |
13724 | else | |
13725 | # not using gcc | |
13726 | if test ia64 = "$host_cpu"; then | |
13727 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13728 | # chokes on -Wl,-G. The following line is correct: | |
13729 | shared_flag='-G' | |
13730 | else | |
13731 | if test yes = "$aix_use_runtimelinking"; then | |
13732 | shared_flag='$wl-G' | |
13733 | else | |
13734 | shared_flag='$wl-bM:SRE' | |
13735 | fi | |
13736 | shared_flag_aix='$wl-bM:SRE' | |
13737 | shared_flag_svr4='$wl-G' | |
13738 | fi | |
13739 | fi | |
13740 | ||
13741 | export_dynamic_flag_spec_CXX='$wl-bexpall' | |
13742 | # It seems that -bexpall does not export symbols beginning with | |
13743 | # underscore (_), so it is better to generate a list of symbols to | |
13744 | # export. | |
13745 | always_export_symbols_CXX=yes | |
13746 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
13747 | # Warning - without using the other runtime loading flags (-brtl), | |
13748 | # -berok will link without error, but may produce a broken library. | |
13749 | # The "-G" linker flag allows undefined symbols. | |
13750 | no_undefined_flag_CXX='-bernotok' | |
13751 | # Determine the default libpath from the value encoded in an empty | |
13752 | # executable. | |
13753 | if test set = "${lt_cv_aix_libpath+set}"; then | |
13754 | aix_libpath=$lt_cv_aix_libpath | |
13755 | else | |
13756 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13757 | $as_echo_n "(cached) " >&6 | |
13758 | else | |
13759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13760 | /* end confdefs.h. */ | |
13761 | ||
13762 | int | |
13763 | main () | |
13764 | { | |
13765 | ||
13766 | ; | |
13767 | return 0; | |
13768 | } | |
13769 | _ACEOF | |
13770 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13771 | ||
13772 | lt_aix_libpath_sed=' | |
13773 | /Import File Strings/,/^$/ { | |
13774 | /^0/ { | |
13775 | s/^0 *\([^ ]*\) *$/\1/ | |
13776 | p | |
13777 | } | |
13778 | }' | |
13779 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13780 | # Check for a 64-bit object if we didn't find anything. | |
13781 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13782 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13783 | fi | |
13784 | fi | |
13785 | rm -f core conftest.err conftest.$ac_objext \ | |
13786 | conftest$ac_exeext conftest.$ac_ext | |
13787 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13788 | lt_cv_aix_libpath__CXX=/usr/lib:/lib | |
13789 | fi | |
13790 | ||
13791 | fi | |
13792 | ||
13793 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13794 | fi | |
13795 | ||
13796 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" | |
13797 | ||
13798 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
13799 | else | |
13800 | if test ia64 = "$host_cpu"; then | |
13801 | hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' | |
13802 | allow_undefined_flag_CXX="-z nodefs" | |
13803 | 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" | |
13804 | else | |
13805 | # Determine the default libpath from the value encoded in an | |
13806 | # empty executable. | |
13807 | if test set = "${lt_cv_aix_libpath+set}"; then | |
13808 | aix_libpath=$lt_cv_aix_libpath | |
13809 | else | |
13810 | if ${lt_cv_aix_libpath__CXX+:} false; then : | |
13811 | $as_echo_n "(cached) " >&6 | |
13812 | else | |
13813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13814 | /* end confdefs.h. */ | |
13815 | ||
13816 | int | |
13817 | main () | |
13818 | { | |
13819 | ||
13820 | ; | |
13821 | return 0; | |
13822 | } | |
13823 | _ACEOF | |
13824 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13825 | ||
13826 | lt_aix_libpath_sed=' | |
13827 | /Import File Strings/,/^$/ { | |
13828 | /^0/ { | |
13829 | s/^0 *\([^ ]*\) *$/\1/ | |
13830 | p | |
13831 | } | |
13832 | }' | |
13833 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13834 | # Check for a 64-bit object if we didn't find anything. | |
13835 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13836 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13837 | fi | |
13838 | fi | |
13839 | rm -f core conftest.err conftest.$ac_objext \ | |
13840 | conftest$ac_exeext conftest.$ac_ext | |
13841 | if test -z "$lt_cv_aix_libpath__CXX"; then | |
13842 | lt_cv_aix_libpath__CXX=/usr/lib:/lib | |
13843 | fi | |
13844 | ||
13845 | fi | |
13846 | ||
13847 | aix_libpath=$lt_cv_aix_libpath__CXX | |
13848 | fi | |
13849 | ||
13850 | hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" | |
13851 | # Warning - without using the other run time loading flags, | |
13852 | # -berok will link without error, but may produce a broken library. | |
13853 | no_undefined_flag_CXX=' $wl-bernotok' | |
13854 | allow_undefined_flag_CXX=' $wl-berok' | |
13855 | if test yes = "$with_gnu_ld"; then | |
13856 | # We only use this code for GNU lds that support --whole-archive. | |
13857 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
13858 | else | |
13859 | # Exported symbols can be pulled into shared objects from archives | |
13860 | whole_archive_flag_spec_CXX='$convenience' | |
13861 | fi | |
13862 | archive_cmds_need_lc_CXX=yes | |
13863 | archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
13864 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
13865 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
13866 | if test svr4 != "$with_aix_soname"; then | |
13867 | # This is similar to how AIX traditionally builds its shared | |
13868 | # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
13869 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
13870 | fi | |
13871 | if test aix != "$with_aix_soname"; then | |
13872 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
13873 | else | |
13874 | # used by -dlpreopen to get the symbols | |
13875 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
13876 | fi | |
13877 | archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' | |
13878 | fi | |
13879 | fi | |
13880 | ;; | |
13881 | ||
13882 | beos*) | |
13883 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13884 | allow_undefined_flag_CXX=unsupported | |
13885 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13886 | # support --undefined. This deserves some investigation. FIXME | |
13887 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
13888 | else | |
13889 | ld_shlibs_CXX=no | |
13890 | fi | |
13891 | ;; | |
13892 | ||
13893 | chorus*) | |
13894 | case $cc_basename in | |
13895 | *) | |
13896 | # FIXME: insert proper C++ library support | |
13897 | ld_shlibs_CXX=no | |
13898 | ;; | |
13899 | esac | |
13900 | ;; | |
13901 | ||
13902 | cygwin* | mingw* | pw32* | cegcc*) | |
13903 | case $GXX,$cc_basename in | |
13904 | ,cl* | no,cl*) | |
13905 | # Native MSVC | |
13906 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13907 | # no search path for DLLs. | |
13908 | hardcode_libdir_flag_spec_CXX=' ' | |
13909 | allow_undefined_flag_CXX=unsupported | |
13910 | always_export_symbols_CXX=yes | |
13911 | file_list_spec_CXX='@' | |
13912 | # Tell ltmain to make .lib files, not .a files. | |
13913 | libext=lib | |
13914 | # Tell ltmain to make .dll files, not .so files. | |
13915 | shrext_cmds=.dll | |
13916 | # FIXME: Setting linknames here is a bad hack. | |
13917 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
13918 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13919 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
13920 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
13921 | else | |
13922 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
13923 | fi~ | |
13924 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
13925 | linknames=' | |
13926 | # The linker will not automatically build a static lib if we build a DLL. | |
13927 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
13928 | enable_shared_with_static_runtimes_CXX=yes | |
13929 | # Don't use ranlib | |
13930 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
13931 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
13932 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
13933 | case $lt_outputfile in | |
13934 | *.exe|*.EXE) ;; | |
13935 | *) | |
13936 | lt_outputfile=$lt_outputfile.exe | |
13937 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
13938 | ;; | |
13939 | esac~ | |
13940 | func_to_tool_file "$lt_outputfile"~ | |
13941 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
13942 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
13943 | $RM "$lt_outputfile.manifest"; | |
13944 | fi' | |
13945 | ;; | |
13946 | *) | |
13947 | # g++ | |
13948 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13949 | # as there is no search path for DLLs. | |
13950 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13951 | export_dynamic_flag_spec_CXX='$wl--export-all-symbols' | |
13952 | allow_undefined_flag_CXX=unsupported | |
13953 | always_export_symbols_CXX=no | |
13954 | enable_shared_with_static_runtimes_CXX=yes | |
13955 | ||
13956 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13957 | 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' | |
13958 | # If the export-symbols file already is a .def file, use it as | |
13959 | # is; otherwise, prepend EXPORTS... | |
13960 | archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
13961 | cp $export_symbols $output_objdir/$soname.def; | |
13962 | else | |
13963 | echo EXPORTS > $output_objdir/$soname.def; | |
13964 | cat $export_symbols >> $output_objdir/$soname.def; | |
13965 | fi~ | |
13966 | $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' | |
13967 | else | |
13968 | ld_shlibs_CXX=no | |
13969 | fi | |
13970 | ;; | |
13971 | esac | |
13972 | ;; | |
13973 | darwin* | rhapsody*) | |
13974 | ||
13975 | ||
13976 | archive_cmds_need_lc_CXX=no | |
13977 | hardcode_direct_CXX=no | |
13978 | hardcode_automatic_CXX=yes | |
13979 | hardcode_shlibpath_var_CXX=unsupported | |
13980 | if test yes = "$lt_cv_ld_force_load"; then | |
13981 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13982 | ||
13983 | else | |
13984 | whole_archive_flag_spec_CXX='' | |
13985 | fi | |
13986 | link_all_deplibs_CXX=yes | |
13987 | allow_undefined_flag_CXX=$_lt_dar_allow_undefined | |
13988 | case $cc_basename in | |
13989 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
13990 | *) _lt_dar_can_shared=$GCC ;; | |
13991 | esac | |
13992 | if test yes = "$_lt_dar_can_shared"; then | |
13993 | output_verbose_link_cmd=func_echo_all | |
13994 | 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" | |
13995 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
13996 | 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" | |
13997 | 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" | |
13998 | if test yes != "$lt_cv_apple_cc_single_mod"; then | |
13999 | 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" | |
14000 | 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" | |
14001 | fi | |
14002 | ||
14003 | else | |
14004 | ld_shlibs_CXX=no | |
14005 | fi | |
14006 | ||
14007 | ;; | |
14008 | ||
14009 | os2*) | |
14010 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
14011 | hardcode_minus_L_CXX=yes | |
14012 | allow_undefined_flag_CXX=unsupported | |
14013 | shrext_cmds=.dll | |
14014 | archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
14015 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
14016 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
14017 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
14018 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
14019 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
14020 | emximp -o $lib $output_objdir/$libname.def' | |
14021 | archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
14022 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
14023 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
14024 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
14025 | prefix_cmds="$SED"~ | |
14026 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
14027 | prefix_cmds="$prefix_cmds -e 1d"; | |
14028 | fi~ | |
14029 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
14030 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
14031 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
14032 | emximp -o $lib $output_objdir/$libname.def' | |
14033 | old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
14034 | enable_shared_with_static_runtimes_CXX=yes | |
14035 | ;; | |
14036 | ||
14037 | dgux*) | |
14038 | case $cc_basename in | |
14039 | ec++*) | |
14040 | # FIXME: insert proper C++ library support | |
14041 | ld_shlibs_CXX=no | |
14042 | ;; | |
14043 | ghcx*) | |
14044 | # Green Hills C++ Compiler | |
14045 | # FIXME: insert proper C++ library support | |
14046 | ld_shlibs_CXX=no | |
14047 | ;; | |
14048 | *) | |
14049 | # FIXME: insert proper C++ library support | |
14050 | ld_shlibs_CXX=no | |
14051 | ;; | |
14052 | esac | |
14053 | ;; | |
14054 | ||
14055 | freebsd2.*) | |
14056 | # C++ shared libraries reported to be fairly broken before | |
14057 | # switch to ELF | |
14058 | ld_shlibs_CXX=no | |
14059 | ;; | |
14060 | ||
14061 | freebsd-elf*) | |
14062 | archive_cmds_need_lc_CXX=no | |
14063 | ;; | |
14064 | ||
14065 | freebsd* | dragonfly*) | |
14066 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
14067 | # conventions | |
14068 | ld_shlibs_CXX=yes | |
14069 | ;; | |
14070 | ||
14071 | haiku*) | |
14072 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
14073 | link_all_deplibs_CXX=yes | |
14074 | ;; | |
14075 | ||
14076 | hpux9*) | |
14077 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
14078 | hardcode_libdir_separator_CXX=: | |
14079 | export_dynamic_flag_spec_CXX='$wl-E' | |
14080 | hardcode_direct_CXX=yes | |
14081 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14082 | # but as the default | |
14083 | # location of the library. | |
14084 | ||
14085 | case $cc_basename in | |
14086 | CC*) | |
14087 | # FIXME: insert proper C++ library support | |
14088 | ld_shlibs_CXX=no | |
14089 | ;; | |
14090 | aCC*) | |
14091 | 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
14092 | # Commands to make compiler produce verbose output that lists | |
14093 | # what "hidden" libraries, object files and flags are used when | |
14094 | # linking a shared library. | |
14095 | # | |
14096 | # There doesn't appear to be a way to prevent this compiler from | |
14097 | # explicitly linking system object files so we need to strip them | |
14098 | # from the output so that they don't get included in the library | |
14099 | # dependencies. | |
14100 | 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; func_echo_all "$list"' | |
14101 | ;; | |
14102 | *) | |
14103 | if test yes = "$GXX"; then | |
14104 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
14105 | else | |
14106 | # FIXME: insert proper C++ library support | |
14107 | ld_shlibs_CXX=no | |
14108 | fi | |
14109 | ;; | |
14110 | esac | |
14111 | ;; | |
14112 | ||
14113 | hpux10*|hpux11*) | |
14114 | if test no = "$with_gnu_ld"; then | |
14115 | hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
14116 | hardcode_libdir_separator_CXX=: | |
14117 | ||
14118 | case $host_cpu in | |
14119 | hppa*64*|ia64*) | |
14120 | ;; | |
14121 | *) | |
14122 | export_dynamic_flag_spec_CXX='$wl-E' | |
14123 | ;; | |
14124 | esac | |
14125 | fi | |
14126 | case $host_cpu in | |
14127 | hppa*64*|ia64*) | |
14128 | hardcode_direct_CXX=no | |
14129 | hardcode_shlibpath_var_CXX=no | |
14130 | ;; | |
14131 | *) | |
14132 | hardcode_direct_CXX=yes | |
14133 | hardcode_direct_absolute_CXX=yes | |
14134 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14135 | # but as the default | |
14136 | # location of the library. | |
14137 | ;; | |
14138 | esac | |
14139 | ||
14140 | case $cc_basename in | |
14141 | CC*) | |
14142 | # FIXME: insert proper C++ library support | |
14143 | ld_shlibs_CXX=no | |
14144 | ;; | |
14145 | aCC*) | |
14146 | case $host_cpu in | |
14147 | hppa*64*) | |
14148 | archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14149 | ;; | |
14150 | ia64*) | |
14151 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14152 | ;; | |
14153 | *) | |
14154 | archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14155 | ;; | |
14156 | esac | |
14157 | # Commands to make compiler produce verbose output that lists | |
14158 | # what "hidden" libraries, object files and flags are used when | |
14159 | # linking a shared library. | |
14160 | # | |
14161 | # There doesn't appear to be a way to prevent this compiler from | |
14162 | # explicitly linking system object files so we need to strip them | |
14163 | # from the output so that they don't get included in the library | |
14164 | # dependencies. | |
14165 | 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; func_echo_all "$list"' | |
14166 | ;; | |
14167 | *) | |
14168 | if test yes = "$GXX"; then | |
14169 | if test no = "$with_gnu_ld"; then | |
14170 | case $host_cpu in | |
14171 | hppa*64*) | |
14172 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14173 | ;; | |
14174 | ia64*) | |
14175 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14176 | ;; | |
14177 | *) | |
14178 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14179 | ;; | |
14180 | esac | |
14181 | fi | |
14182 | else | |
14183 | # FIXME: insert proper C++ library support | |
14184 | ld_shlibs_CXX=no | |
14185 | fi | |
14186 | ;; | |
14187 | esac | |
14188 | ;; | |
14189 | ||
14190 | interix[3-9]*) | |
14191 | hardcode_direct_CXX=no | |
14192 | hardcode_shlibpath_var_CXX=no | |
14193 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
14194 | export_dynamic_flag_spec_CXX='$wl-E' | |
14195 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14196 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14197 | # default) and relocated if they conflict, which is a slow very memory | |
14198 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14199 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14200 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14201 | 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' | |
14202 | 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' | |
14203 | ;; | |
14204 | irix5* | irix6*) | |
14205 | case $cc_basename in | |
14206 | CC*) | |
14207 | # SGI C++ | |
14208 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
14209 | ||
14210 | # Archives containing C++ object files must be created using | |
14211 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
14212 | # necessary to make sure instantiated templates are included | |
14213 | # in the archive. | |
14214 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
14215 | ;; | |
14216 | *) | |
14217 | if test yes = "$GXX"; then | |
14218 | if test no = "$with_gnu_ld"; then | |
14219 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
14220 | else | |
14221 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' | |
14222 | fi | |
14223 | fi | |
14224 | link_all_deplibs_CXX=yes | |
14225 | ;; | |
14226 | esac | |
14227 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
14228 | hardcode_libdir_separator_CXX=: | |
14229 | inherit_rpath_CXX=yes | |
14230 | ;; | |
14231 | ||
14232 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
14233 | case $cc_basename in | |
14234 | KCC*) | |
14235 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
14236 | ||
14237 | # KCC will only create a shared library if the output file | |
14238 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14239 | # to its proper name (with version) after linking. | |
14240 | 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' | |
14241 | 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' | |
14242 | # Commands to make compiler produce verbose output that lists | |
14243 | # what "hidden" libraries, object files and flags are used when | |
14244 | # linking a shared library. | |
14245 | # | |
14246 | # There doesn't appear to be a way to prevent this compiler from | |
14247 | # explicitly linking system object files so we need to strip them | |
14248 | # from the output so that they don't get included in the library | |
14249 | # dependencies. | |
14250 | 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; func_echo_all "$list"' | |
14251 | ||
14252 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
14253 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14254 | ||
14255 | # Archives containing C++ object files must be created using | |
14256 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
14257 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
14258 | ;; | |
14259 | icpc* | ecpc* ) | |
14260 | # Intel C++ | |
14261 | with_gnu_ld=yes | |
14262 | # version 8.0 and above of icpc choke on multiply defined symbols | |
14263 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
14264 | # earlier do not add the objects themselves. | |
14265 | case `$CC -V 2>&1` in | |
14266 | *"Version 7."*) | |
14267 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
14268 | 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' | |
14269 | ;; | |
14270 | *) # Version 8.0 or newer | |
14271 | tmp_idyn= | |
14272 | case $host_cpu in | |
14273 | ia64*) tmp_idyn=' -i_dynamic';; | |
14274 | esac | |
14275 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
14276 | 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' | |
14277 | ;; | |
14278 | esac | |
14279 | archive_cmds_need_lc_CXX=no | |
14280 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
14281 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14282 | whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
14283 | ;; | |
14284 | pgCC* | pgcpp*) | |
14285 | # Portland Group C++ compiler | |
14286 | case `$CC -V` in | |
14287 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
14288 | prelink_cmds_CXX='tpldir=Template.dir~ | |
14289 | rm -rf $tpldir~ | |
14290 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
14291 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
14292 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
14293 | rm -rf $tpldir~ | |
14294 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
14295 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
14296 | $RANLIB $oldlib' | |
14297 | archive_cmds_CXX='tpldir=Template.dir~ | |
14298 | rm -rf $tpldir~ | |
14299 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14300 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
14301 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
14302 | rm -rf $tpldir~ | |
14303 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14304 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
14305 | ;; | |
14306 | *) # Version 6 and above use weak symbols | |
14307 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
14308 | 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' | |
14309 | ;; | |
14310 | esac | |
14311 | ||
14312 | hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' | |
14313 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14314 | whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
14315 | ;; | |
14316 | cxx*) | |
14317 | # Compaq C++ | |
14318 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
14319 | 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' | |
14320 | ||
14321 | runpath_var=LD_RUN_PATH | |
14322 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14323 | hardcode_libdir_separator_CXX=: | |
14324 | ||
14325 | # Commands to make compiler produce verbose output that lists | |
14326 | # what "hidden" libraries, object files and flags are used when | |
14327 | # linking a shared library. | |
14328 | # | |
14329 | # There doesn't appear to be a way to prevent this compiler from | |
14330 | # explicitly linking system object files so we need to strip them | |
14331 | # from the output so that they don't get included in the library | |
14332 | # dependencies. | |
14333 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | |
14334 | ;; | |
14335 | xl* | mpixl* | bgxl*) | |
14336 | # IBM XL 8.0 on PPC, with GNU ld | |
14337 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
14338 | export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
14339 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
14340 | if test yes = "$supports_anon_versioning"; then | |
14341 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
14342 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14343 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14344 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
14345 | fi | |
14346 | ;; | |
14347 | *) | |
14348 | case `$CC -V 2>&1 | sed 5q` in | |
14349 | *Sun\ C*) | |
14350 | # Sun C++ 5.9 | |
14351 | no_undefined_flag_CXX=' -zdefs' | |
14352 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14353 | 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' | |
14354 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14355 | whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
14356 | compiler_needs_object_CXX=yes | |
14357 | ||
14358 | # Not sure whether something based on | |
14359 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
14360 | # would be better. | |
14361 | output_verbose_link_cmd='func_echo_all' | |
14362 | ||
14363 | # Archives containing C++ object files must be created using | |
14364 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14365 | # necessary to make sure instantiated templates are included | |
14366 | # in the archive. | |
14367 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14368 | ;; | |
14369 | esac | |
14370 | ;; | |
14371 | esac | |
14372 | ;; | |
14373 | ||
14374 | lynxos*) | |
14375 | # FIXME: insert proper C++ library support | |
14376 | ld_shlibs_CXX=no | |
14377 | ;; | |
14378 | ||
14379 | m88k*) | |
14380 | # FIXME: insert proper C++ library support | |
14381 | ld_shlibs_CXX=no | |
14382 | ;; | |
14383 | ||
14384 | mvs*) | |
14385 | case $cc_basename in | |
14386 | cxx*) | |
14387 | # FIXME: insert proper C++ library support | |
14388 | ld_shlibs_CXX=no | |
14389 | ;; | |
14390 | *) | |
14391 | # FIXME: insert proper C++ library support | |
14392 | ld_shlibs_CXX=no | |
14393 | ;; | |
14394 | esac | |
14395 | ;; | |
14396 | ||
14397 | netbsd*) | |
14398 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14399 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
14400 | wlarc= | |
14401 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14402 | hardcode_direct_CXX=yes | |
14403 | hardcode_shlibpath_var_CXX=no | |
14404 | fi | |
14405 | # Workaround some broken pre-1.5 toolchains | |
14406 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
14407 | ;; | |
14408 | ||
14409 | *nto* | *qnx*) | |
14410 | ld_shlibs_CXX=yes | |
14411 | ;; | |
14412 | ||
14413 | openbsd* | bitrig*) | |
14414 | if test -f /usr/libexec/ld.so; then | |
14415 | hardcode_direct_CXX=yes | |
14416 | hardcode_shlibpath_var_CXX=no | |
14417 | hardcode_direct_absolute_CXX=yes | |
14418 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
14419 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
14420 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
14421 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' | |
14422 | export_dynamic_flag_spec_CXX='$wl-E' | |
14423 | whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
14424 | fi | |
14425 | output_verbose_link_cmd=func_echo_all | |
14426 | else | |
14427 | ld_shlibs_CXX=no | |
14428 | fi | |
14429 | ;; | |
14430 | ||
14431 | osf3* | osf4* | osf5*) | |
14432 | case $cc_basename in | |
14433 | KCC*) | |
14434 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
14435 | ||
14436 | # KCC will only create a shared library if the output file | |
14437 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14438 | # to its proper name (with version) after linking. | |
14439 | 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' | |
14440 | ||
14441 | hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
14442 | hardcode_libdir_separator_CXX=: | |
14443 | ||
14444 | # Archives containing C++ object files must be created using | |
14445 | # the KAI C++ compiler. | |
14446 | case $host in | |
14447 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
14448 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
14449 | esac | |
14450 | ;; | |
14451 | RCC*) | |
14452 | # Rational C++ 2.4.1 | |
14453 | # FIXME: insert proper C++ library support | |
14454 | ld_shlibs_CXX=no | |
14455 | ;; | |
14456 | cxx*) | |
14457 | case $host in | |
14458 | osf3*) | |
14459 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
14460 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
14461 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
14462 | ;; | |
14463 | *) | |
14464 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
14465 | archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
14466 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
14467 | echo "-hidden">> $lib.exp~ | |
14468 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ | |
14469 | $RM $lib.exp' | |
14470 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14471 | ;; | |
14472 | esac | |
14473 | ||
14474 | hardcode_libdir_separator_CXX=: | |
14475 | ||
14476 | # Commands to make compiler produce verbose output that lists | |
14477 | # what "hidden" libraries, object files and flags are used when | |
14478 | # linking a shared library. | |
14479 | # | |
14480 | # There doesn't appear to be a way to prevent this compiler from | |
14481 | # explicitly linking system object files so we need to strip them | |
14482 | # from the output so that they don't get included in the library | |
14483 | # dependencies. | |
14484 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
14485 | ;; | |
14486 | *) | |
14487 | if test yes,no = "$GXX,$with_gnu_ld"; then | |
14488 | allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
14489 | case $host in | |
14490 | osf3*) | |
14491 | archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
14492 | ;; | |
14493 | *) | |
14494 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
14495 | ;; | |
14496 | esac | |
14497 | ||
14498 | hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
14499 | hardcode_libdir_separator_CXX=: | |
14500 | ||
14501 | # Commands to make compiler produce verbose output that lists | |
14502 | # what "hidden" libraries, object files and flags are used when | |
14503 | # linking a shared library. | |
14504 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14505 | ||
14506 | else | |
14507 | # FIXME: insert proper C++ library support | |
14508 | ld_shlibs_CXX=no | |
14509 | fi | |
14510 | ;; | |
14511 | esac | |
14512 | ;; | |
14513 | ||
14514 | psos*) | |
14515 | # FIXME: insert proper C++ library support | |
14516 | ld_shlibs_CXX=no | |
14517 | ;; | |
14518 | ||
14519 | sunos4*) | |
14520 | case $cc_basename in | |
14521 | CC*) | |
14522 | # Sun C++ 4.x | |
14523 | # FIXME: insert proper C++ library support | |
14524 | ld_shlibs_CXX=no | |
14525 | ;; | |
14526 | lcc*) | |
14527 | # Lucid | |
14528 | # FIXME: insert proper C++ library support | |
14529 | ld_shlibs_CXX=no | |
14530 | ;; | |
14531 | *) | |
14532 | # FIXME: insert proper C++ library support | |
14533 | ld_shlibs_CXX=no | |
14534 | ;; | |
14535 | esac | |
14536 | ;; | |
14537 | ||
14538 | solaris*) | |
14539 | case $cc_basename in | |
14540 | CC* | sunCC*) | |
14541 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14542 | archive_cmds_need_lc_CXX=yes | |
14543 | no_undefined_flag_CXX=' -zdefs' | |
14544 | archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14545 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14546 | $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' | |
14547 | ||
14548 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14549 | hardcode_shlibpath_var_CXX=no | |
14550 | case $host_os in | |
14551 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14552 | *) | |
14553 | # The compiler driver will combine and reorder linker options, | |
14554 | # but understands '-z linker_flag'. | |
14555 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14556 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14557 | ;; | |
14558 | esac | |
14559 | link_all_deplibs_CXX=yes | |
14560 | ||
14561 | output_verbose_link_cmd='func_echo_all' | |
14562 | ||
14563 | # Archives containing C++ object files must be created using | |
14564 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14565 | # necessary to make sure instantiated templates are included | |
14566 | # in the archive. | |
14567 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14568 | ;; | |
14569 | gcx*) | |
14570 | # Green Hills C++ Compiler | |
14571 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
14572 | ||
14573 | # The C++ compiler must be used to create the archive. | |
14574 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14575 | ;; | |
14576 | *) | |
14577 | # GNU C++ compiler with Solaris linker | |
14578 | if test yes,no = "$GXX,$with_gnu_ld"; then | |
14579 | no_undefined_flag_CXX=' $wl-z ${wl}defs' | |
14580 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
14581 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
14582 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14583 | $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14584 | ||
14585 | # Commands to make compiler produce verbose output that lists | |
14586 | # what "hidden" libraries, object files and flags are used when | |
14587 | # linking a shared library. | |
14588 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14589 | else | |
14590 | # g++ 2.7 appears to require '-G' NOT '-shared' on this | |
14591 | # platform. | |
14592 | archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
14593 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14594 | $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14595 | ||
14596 | # Commands to make compiler produce verbose output that lists | |
14597 | # what "hidden" libraries, object files and flags are used when | |
14598 | # linking a shared library. | |
14599 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14600 | fi | |
14601 | ||
14602 | hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' | |
14603 | case $host_os in | |
14604 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14605 | *) | |
14606 | whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
14607 | ;; | |
14608 | esac | |
14609 | fi | |
14610 | ;; | |
14611 | esac | |
14612 | ;; | |
14613 | ||
14614 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
14615 | no_undefined_flag_CXX='$wl-z,text' | |
14616 | archive_cmds_need_lc_CXX=no | |
14617 | hardcode_shlibpath_var_CXX=no | |
14618 | runpath_var='LD_RUN_PATH' | |
14619 | ||
14620 | case $cc_basename in | |
14621 | CC*) | |
14622 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14623 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14624 | ;; | |
14625 | *) | |
14626 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14627 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14628 | ;; | |
14629 | esac | |
14630 | ;; | |
14631 | ||
14632 | sysv5* | sco3.2v5* | sco5v6*) | |
14633 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
14634 | # link with -lc, and that would cause any symbols used from libc to | |
14635 | # always be unresolved, which means just about no library would | |
14636 | # ever link correctly. If we're not using GNU ld we use -z text | |
14637 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14638 | # as -z defs. | |
14639 | no_undefined_flag_CXX='$wl-z,text' | |
14640 | allow_undefined_flag_CXX='$wl-z,nodefs' | |
14641 | archive_cmds_need_lc_CXX=no | |
14642 | hardcode_shlibpath_var_CXX=no | |
14643 | hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' | |
14644 | hardcode_libdir_separator_CXX=':' | |
14645 | link_all_deplibs_CXX=yes | |
14646 | export_dynamic_flag_spec_CXX='$wl-Bexport' | |
14647 | runpath_var='LD_RUN_PATH' | |
14648 | ||
14649 | case $cc_basename in | |
14650 | CC*) | |
14651 | archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14652 | archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14653 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
14654 | '"$old_archive_cmds_CXX" | |
14655 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
14656 | '"$reload_cmds_CXX" | |
14657 | ;; | |
14658 | *) | |
14659 | archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14660 | archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14661 | ;; | |
14662 | esac | |
14663 | ;; | |
14664 | ||
14665 | tandem*) | |
14666 | case $cc_basename in | |
14667 | NCC*) | |
14668 | # NonStop-UX NCC 3.20 | |
14669 | # FIXME: insert proper C++ library support | |
14670 | ld_shlibs_CXX=no | |
14671 | ;; | |
14672 | *) | |
14673 | # FIXME: insert proper C++ library support | |
14674 | ld_shlibs_CXX=no | |
14675 | ;; | |
14676 | esac | |
14677 | ;; | |
14678 | ||
14679 | vxworks*) | |
14680 | # FIXME: insert proper C++ library support | |
14681 | ld_shlibs_CXX=no | |
14682 | ;; | |
14683 | ||
14684 | *) | |
14685 | # FIXME: insert proper C++ library support | |
14686 | ld_shlibs_CXX=no | |
14687 | ;; | |
14688 | esac | |
14689 | ||
14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14691 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14692 | test no = "$ld_shlibs_CXX" && can_build_shared=no | |
14693 | ||
14694 | GCC_CXX=$GXX | |
14695 | LD_CXX=$LD | |
14696 | ||
14697 | ## CAVEAT EMPTOR: | |
14698 | ## There is no encapsulation within the following macros, do not change | |
14699 | ## the running order or otherwise move them around unless you know exactly | |
14700 | ## what you are doing... | |
14701 | # Dependencies to place before and after the object being linked: | |
14702 | predep_objects_CXX= | |
14703 | postdep_objects_CXX= | |
14704 | predeps_CXX= | |
14705 | postdeps_CXX= | |
14706 | compiler_lib_search_path_CXX= | |
14707 | ||
14708 | cat > conftest.$ac_ext <<_LT_EOF | |
14709 | class Foo | |
14710 | { | |
14711 | public: | |
14712 | Foo (void) { a = 0; } | |
14713 | private: | |
14714 | int a; | |
14715 | }; | |
14716 | _LT_EOF | |
14717 | ||
14718 | ||
14719 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
14720 | case "$CC $CFLAGS " in #( | |
14721 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
14722 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
14723 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | |
14724 | esac | |
14725 | ||
14726 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14727 | (eval $ac_compile) 2>&5 | |
14728 | ac_status=$? | |
14729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14730 | test $ac_status = 0; }; then | |
14731 | # Parse the compiler output and extract the necessary | |
14732 | # objects, libraries and library flags. | |
14733 | ||
14734 | # Sentinel used to keep track of whether or not we are before | |
14735 | # the conftest object file. | |
14736 | pre_test_object_deps_done=no | |
14737 | ||
14738 | for p in `eval "$output_verbose_link_cmd"`; do | |
14739 | case $prev$p in | |
14740 | ||
14741 | -L* | -R* | -l*) | |
14742 | # Some compilers place space between "-{L,R}" and the path. | |
14743 | # Remove the space. | |
14744 | if test x-L = "$p" || | |
14745 | test x-R = "$p"; then | |
14746 | prev=$p | |
14747 | continue | |
14748 | fi | |
14749 | ||
14750 | # Expand the sysroot to ease extracting the directories later. | |
14751 | if test -z "$prev"; then | |
14752 | case $p in | |
14753 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
14754 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
14755 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
14756 | esac | |
14757 | fi | |
14758 | case $p in | |
14759 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
14760 | esac | |
14761 | if test no = "$pre_test_object_deps_done"; then | |
14762 | case $prev in | |
14763 | -L | -R) | |
14764 | # Internal compiler library paths should come after those | |
14765 | # provided the user. The postdeps already come after the | |
14766 | # user supplied libs so there is no need to process them. | |
14767 | if test -z "$compiler_lib_search_path_CXX"; then | |
14768 | compiler_lib_search_path_CXX=$prev$p | |
14769 | else | |
14770 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" | |
14771 | fi | |
14772 | ;; | |
14773 | # The "-l" case would never come before the object being | |
14774 | # linked, so don't bother handling this case. | |
14775 | esac | |
14776 | else | |
14777 | if test -z "$postdeps_CXX"; then | |
14778 | postdeps_CXX=$prev$p | |
14779 | else | |
14780 | postdeps_CXX="${postdeps_CXX} $prev$p" | |
14781 | fi | |
14782 | fi | |
14783 | prev= | |
14784 | ;; | |
14785 | ||
14786 | *.lto.$objext) ;; # Ignore GCC LTO objects | |
14787 | *.$objext) | |
14788 | # This assumes that the test object file only shows up | |
14789 | # once in the compiler output. | |
14790 | if test "$p" = "conftest.$objext"; then | |
14791 | pre_test_object_deps_done=yes | |
14792 | continue | |
14793 | fi | |
14794 | ||
14795 | if test no = "$pre_test_object_deps_done"; then | |
14796 | if test -z "$predep_objects_CXX"; then | |
14797 | predep_objects_CXX=$p | |
14798 | else | |
14799 | predep_objects_CXX="$predep_objects_CXX $p" | |
14800 | fi | |
14801 | else | |
14802 | if test -z "$postdep_objects_CXX"; then | |
14803 | postdep_objects_CXX=$p | |
14804 | else | |
14805 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14806 | fi | |
14807 | fi | |
14808 | ;; | |
14809 | ||
14810 | *) ;; # Ignore the rest. | |
14811 | ||
14812 | esac | |
14813 | done | |
14814 | ||
14815 | # Clean up. | |
14816 | rm -f a.out a.exe | |
14817 | else | |
14818 | echo "libtool.m4: error: problem compiling CXX test program" | |
14819 | fi | |
14820 | ||
14821 | $RM -f confest.$objext | |
14822 | CFLAGS=$_lt_libdeps_save_CFLAGS | |
14823 | ||
14824 | # PORTME: override above test on systems where it is broken | |
14825 | case $host_os in | |
14826 | interix[3-9]*) | |
14827 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14828 | # hack all around it, let's just trust "g++" to DTRT. | |
14829 | predep_objects_CXX= | |
14830 | postdep_objects_CXX= | |
14831 | postdeps_CXX= | |
14832 | ;; | |
14833 | esac | |
14834 | ||
14835 | ||
14836 | case " $postdeps_CXX " in | |
14837 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14838 | esac | |
14839 | compiler_lib_search_dirs_CXX= | |
14840 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14841 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` | |
14842 | fi | |
14843 | ||
14844 | ||
14845 | ||
14846 | ||
14847 | ||
14848 | ||
14849 | ||
14850 | ||
14851 | ||
14852 | ||
14853 | ||
14854 | ||
14855 | ||
14856 | ||
14857 | ||
14858 | ||
14859 | ||
14860 | ||
14861 | ||
14862 | ||
14863 | ||
14864 | ||
14865 | ||
14866 | ||
14867 | ||
14868 | ||
14869 | ||
14870 | ||
14871 | ||
14872 | ||
14873 | ||
14874 | lt_prog_compiler_wl_CXX= | |
14875 | lt_prog_compiler_pic_CXX= | |
14876 | lt_prog_compiler_static_CXX= | |
14877 | ||
14878 | ||
14879 | # C++ specific cases for pic, static, wl, etc. | |
14880 | if test yes = "$GXX"; then | |
14881 | lt_prog_compiler_wl_CXX='-Wl,' | |
14882 | lt_prog_compiler_static_CXX='-static' | |
14883 | ||
14884 | case $host_os in | |
14885 | aix*) | |
14886 | # All AIX code is PIC. | |
14887 | if test ia64 = "$host_cpu"; then | |
14888 | # AIX 5 now supports IA64 processor | |
14889 | lt_prog_compiler_static_CXX='-Bstatic' | |
14890 | fi | |
14891 | lt_prog_compiler_pic_CXX='-fPIC' | |
14892 | ;; | |
14893 | ||
14894 | amigaos*) | |
14895 | case $host_cpu in | |
14896 | powerpc) | |
14897 | # see comment about AmigaOS4 .so support | |
14898 | lt_prog_compiler_pic_CXX='-fPIC' | |
14899 | ;; | |
14900 | m68k) | |
14901 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14902 | # adding the '-m68020' flag to GCC prevents building anything better, | |
14903 | # like '-m68040'. | |
14904 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14905 | ;; | |
14906 | esac | |
14907 | ;; | |
14908 | ||
14909 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14910 | # PIC is the default for these OSes. | |
14911 | ;; | |
14912 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14913 | # This hack is so that the source file can tell whether it is being | |
14914 | # built for inclusion in a dll (and should export symbols for example). | |
14915 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14916 | # (--disable-auto-import) libraries | |
14917 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14918 | case $host_os in | |
14919 | os2*) | |
14920 | lt_prog_compiler_static_CXX='$wl-static' | |
14921 | ;; | |
14922 | esac | |
14923 | ;; | |
14924 | darwin* | rhapsody*) | |
14925 | # PIC is the default on this platform | |
14926 | # Common symbols not allowed in MH_DYLIB files | |
14927 | lt_prog_compiler_pic_CXX='-fno-common' | |
14928 | ;; | |
14929 | *djgpp*) | |
14930 | # DJGPP does not support shared libraries at all | |
14931 | lt_prog_compiler_pic_CXX= | |
14932 | ;; | |
14933 | haiku*) | |
14934 | # PIC is the default for Haiku. | |
14935 | # The "-static" flag exists, but is broken. | |
14936 | lt_prog_compiler_static_CXX= | |
14937 | ;; | |
14938 | interix[3-9]*) | |
14939 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14940 | # Instead, we relocate shared libraries at runtime. | |
14941 | ;; | |
14942 | sysv4*MP*) | |
14943 | if test -d /usr/nec; then | |
14944 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14945 | fi | |
14946 | ;; | |
14947 | hpux*) | |
14948 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14949 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14950 | # sets the default TLS model and affects inlining. | |
14951 | case $host_cpu in | |
14952 | hppa*64*) | |
14953 | ;; | |
14954 | *) | |
14955 | lt_prog_compiler_pic_CXX='-fPIC' | |
14956 | ;; | |
14957 | esac | |
14958 | ;; | |
14959 | *qnx* | *nto*) | |
14960 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14961 | # it will coredump. | |
14962 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14963 | ;; | |
14964 | *) | |
14965 | lt_prog_compiler_pic_CXX='-fPIC' | |
14966 | ;; | |
14967 | esac | |
14968 | else | |
14969 | case $host_os in | |
14970 | aix[4-9]*) | |
14971 | # All AIX code is PIC. | |
14972 | if test ia64 = "$host_cpu"; then | |
14973 | # AIX 5 now supports IA64 processor | |
14974 | lt_prog_compiler_static_CXX='-Bstatic' | |
14975 | else | |
14976 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14977 | fi | |
14978 | ;; | |
14979 | chorus*) | |
14980 | case $cc_basename in | |
14981 | cxch68*) | |
14982 | # Green Hills C++ Compiler | |
14983 | # _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" | |
14984 | ;; | |
14985 | esac | |
14986 | ;; | |
14987 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14988 | # This hack is so that the source file can tell whether it is being | |
14989 | # built for inclusion in a dll (and should export symbols for example). | |
14990 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14991 | ;; | |
14992 | dgux*) | |
14993 | case $cc_basename in | |
14994 | ec++*) | |
14995 | lt_prog_compiler_pic_CXX='-KPIC' | |
14996 | ;; | |
14997 | ghcx*) | |
14998 | # Green Hills C++ Compiler | |
14999 | lt_prog_compiler_pic_CXX='-pic' | |
15000 | ;; | |
15001 | *) | |
15002 | ;; | |
15003 | esac | |
15004 | ;; | |
15005 | freebsd* | dragonfly*) | |
15006 | # FreeBSD uses GNU C++ | |
15007 | ;; | |
15008 | hpux9* | hpux10* | hpux11*) | |
15009 | case $cc_basename in | |
15010 | CC*) | |
15011 | lt_prog_compiler_wl_CXX='-Wl,' | |
15012 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' | |
15013 | if test ia64 != "$host_cpu"; then | |
15014 | lt_prog_compiler_pic_CXX='+Z' | |
15015 | fi | |
15016 | ;; | |
15017 | aCC*) | |
15018 | lt_prog_compiler_wl_CXX='-Wl,' | |
15019 | lt_prog_compiler_static_CXX='$wl-a ${wl}archive' | |
15020 | case $host_cpu in | |
15021 | hppa*64*|ia64*) | |
15022 | # +Z the default | |
15023 | ;; | |
15024 | *) | |
15025 | lt_prog_compiler_pic_CXX='+Z' | |
15026 | ;; | |
15027 | esac | |
15028 | ;; | |
15029 | *) | |
15030 | ;; | |
15031 | esac | |
15032 | ;; | |
15033 | interix*) | |
15034 | # This is c89, which is MS Visual C++ (no shared libs) | |
15035 | # Anyone wants to do a port? | |
15036 | ;; | |
15037 | irix5* | irix6* | nonstopux*) | |
15038 | case $cc_basename in | |
15039 | CC*) | |
15040 | lt_prog_compiler_wl_CXX='-Wl,' | |
15041 | lt_prog_compiler_static_CXX='-non_shared' | |
15042 | # CC pic flag -KPIC is the default. | |
15043 | ;; | |
15044 | *) | |
15045 | ;; | |
15046 | esac | |
15047 | ;; | |
15048 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
15049 | case $cc_basename in | |
15050 | KCC*) | |
15051 | # KAI C++ Compiler | |
15052 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15053 | lt_prog_compiler_pic_CXX='-fPIC' | |
15054 | ;; | |
15055 | ecpc* ) | |
15056 | # old Intel C++ for x86_64, which still supported -KPIC. | |
15057 | lt_prog_compiler_wl_CXX='-Wl,' | |
15058 | lt_prog_compiler_pic_CXX='-KPIC' | |
15059 | lt_prog_compiler_static_CXX='-static' | |
15060 | ;; | |
15061 | icpc* ) | |
15062 | # Intel C++, used to be incompatible with GCC. | |
15063 | # ICC 10 doesn't accept -KPIC any more. | |
15064 | lt_prog_compiler_wl_CXX='-Wl,' | |
15065 | lt_prog_compiler_pic_CXX='-fPIC' | |
15066 | lt_prog_compiler_static_CXX='-static' | |
15067 | ;; | |
15068 | pgCC* | pgcpp*) | |
15069 | # Portland Group C++ compiler | |
15070 | lt_prog_compiler_wl_CXX='-Wl,' | |
15071 | lt_prog_compiler_pic_CXX='-fpic' | |
15072 | lt_prog_compiler_static_CXX='-Bstatic' | |
15073 | ;; | |
15074 | cxx*) | |
15075 | # Compaq C++ | |
15076 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15077 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15078 | lt_prog_compiler_pic_CXX= | |
15079 | lt_prog_compiler_static_CXX='-non_shared' | |
15080 | ;; | |
15081 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
15082 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
15083 | lt_prog_compiler_wl_CXX='-Wl,' | |
15084 | lt_prog_compiler_pic_CXX='-qpic' | |
15085 | lt_prog_compiler_static_CXX='-qstaticlink' | |
15086 | ;; | |
15087 | *) | |
15088 | case `$CC -V 2>&1 | sed 5q` in | |
15089 | *Sun\ C*) | |
15090 | # Sun C++ 5.9 | |
15091 | lt_prog_compiler_pic_CXX='-KPIC' | |
15092 | lt_prog_compiler_static_CXX='-Bstatic' | |
15093 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15094 | ;; | |
15095 | esac | |
15096 | ;; | |
15097 | esac | |
15098 | ;; | |
15099 | lynxos*) | |
15100 | ;; | |
15101 | m88k*) | |
15102 | ;; | |
15103 | mvs*) | |
15104 | case $cc_basename in | |
15105 | cxx*) | |
15106 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
15107 | ;; | |
15108 | *) | |
15109 | ;; | |
15110 | esac | |
15111 | ;; | |
15112 | netbsd*) | |
15113 | ;; | |
15114 | *qnx* | *nto*) | |
15115 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
15116 | # it will coredump. | |
15117 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
15118 | ;; | |
15119 | osf3* | osf4* | osf5*) | |
15120 | case $cc_basename in | |
15121 | KCC*) | |
15122 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15123 | ;; | |
15124 | RCC*) | |
15125 | # Rational C++ 2.4.1 | |
15126 | lt_prog_compiler_pic_CXX='-pic' | |
15127 | ;; | |
15128 | cxx*) | |
15129 | # Digital/Compaq C++ | |
15130 | lt_prog_compiler_wl_CXX='-Wl,' | |
15131 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15132 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15133 | lt_prog_compiler_pic_CXX= | |
15134 | lt_prog_compiler_static_CXX='-non_shared' | |
15135 | ;; | |
15136 | *) | |
15137 | ;; | |
15138 | esac | |
15139 | ;; | |
15140 | psos*) | |
15141 | ;; | |
15142 | solaris*) | |
15143 | case $cc_basename in | |
15144 | CC* | sunCC*) | |
15145 | # Sun C++ 4.2, 5.x and Centerline C++ | |
15146 | lt_prog_compiler_pic_CXX='-KPIC' | |
15147 | lt_prog_compiler_static_CXX='-Bstatic' | |
15148 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15149 | ;; | |
15150 | gcx*) | |
15151 | # Green Hills C++ Compiler | |
15152 | lt_prog_compiler_pic_CXX='-PIC' | |
15153 | ;; | |
15154 | *) | |
15155 | ;; | |
15156 | esac | |
15157 | ;; | |
15158 | sunos4*) | |
15159 | case $cc_basename in | |
15160 | CC*) | |
15161 | # Sun C++ 4.x | |
15162 | lt_prog_compiler_pic_CXX='-pic' | |
15163 | lt_prog_compiler_static_CXX='-Bstatic' | |
15164 | ;; | |
15165 | lcc*) | |
15166 | # Lucid | |
15167 | lt_prog_compiler_pic_CXX='-pic' | |
15168 | ;; | |
15169 | *) | |
15170 | ;; | |
15171 | esac | |
15172 | ;; | |
15173 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15174 | case $cc_basename in | |
15175 | CC*) | |
15176 | lt_prog_compiler_wl_CXX='-Wl,' | |
15177 | lt_prog_compiler_pic_CXX='-KPIC' | |
15178 | lt_prog_compiler_static_CXX='-Bstatic' | |
15179 | ;; | |
15180 | esac | |
15181 | ;; | |
15182 | tandem*) | |
15183 | case $cc_basename in | |
15184 | NCC*) | |
15185 | # NonStop-UX NCC 3.20 | |
15186 | lt_prog_compiler_pic_CXX='-KPIC' | |
15187 | ;; | |
15188 | *) | |
15189 | ;; | |
15190 | esac | |
15191 | ;; | |
15192 | vxworks*) | |
15193 | ;; | |
15194 | *) | |
15195 | lt_prog_compiler_can_build_shared_CXX=no | |
15196 | ;; | |
15197 | esac | |
15198 | fi | |
15199 | ||
15200 | case $host_os in | |
15201 | # For platforms that do not support PIC, -DPIC is meaningless: | |
15202 | *djgpp*) | |
15203 | lt_prog_compiler_pic_CXX= | |
15204 | ;; | |
15205 | *) | |
15206 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
15207 | ;; | |
15208 | esac | |
15209 | ||
15210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
15211 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
15212 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
15213 | $as_echo_n "(cached) " >&6 | |
15214 | else | |
15215 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
15216 | fi | |
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
15218 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
15219 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
15220 | ||
15221 | # | |
15222 | # Check to make sure the PIC flag actually works. | |
15223 | # | |
15224 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
15225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
15226 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
15227 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : | |
15228 | $as_echo_n "(cached) " >&6 | |
15229 | else | |
15230 | lt_cv_prog_compiler_pic_works_CXX=no | |
15231 | ac_outfile=conftest.$ac_objext | |
15232 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15233 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
15234 | # Insert the option either (1) after the last *FLAGS variable, or | |
15235 | # (2) before a word containing "conftest.", or (3) at the end. | |
15236 | # Note that $ac_compile itself does not contain backslashes and begins | |
15237 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15238 | # The option is referenced via a variable to avoid confusing sed. | |
15239 | lt_compile=`echo "$ac_compile" | $SED \ | |
15240 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15241 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15242 | -e 's:$: $lt_compiler_flag:'` | |
15243 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
15244 | (eval "$lt_compile" 2>conftest.err) | |
15245 | ac_status=$? | |
15246 | cat conftest.err >&5 | |
15247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15248 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
15249 | # The compiler can only warn and ignore the option if not recognized | |
15250 | # So say no if there are warnings other than the usual output. | |
15251 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
15252 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15253 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
15254 | lt_cv_prog_compiler_pic_works_CXX=yes | |
15255 | fi | |
15256 | fi | |
15257 | $RM -r conftest* | |
15258 | ||
15259 | fi | |
15260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
15261 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
15262 | ||
15263 | if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then | |
15264 | case $lt_prog_compiler_pic_CXX in | |
15265 | "" | " "*) ;; | |
15266 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
15267 | esac | |
15268 | else | |
15269 | lt_prog_compiler_pic_CXX= | |
15270 | lt_prog_compiler_can_build_shared_CXX=no | |
15271 | fi | |
15272 | ||
15273 | fi | |
15274 | ||
15275 | ||
15276 | ||
15277 | ||
15278 | ||
15279 | # | |
15280 | # Check to make sure the static flag actually works. | |
15281 | # | |
15282 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
15283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
15284 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
15285 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : | |
15286 | $as_echo_n "(cached) " >&6 | |
15287 | else | |
15288 | lt_cv_prog_compiler_static_works_CXX=no | |
15289 | save_LDFLAGS=$LDFLAGS | |
15290 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
15291 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
15292 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15293 | # The linker can only warn and ignore the option if not recognized | |
15294 | # So say no if there are warnings | |
15295 | if test -s conftest.err; then | |
15296 | # Append any errors to the config.log. | |
15297 | cat conftest.err 1>&5 | |
15298 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
15299 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15300 | if diff conftest.exp conftest.er2 >/dev/null; then | |
15301 | lt_cv_prog_compiler_static_works_CXX=yes | |
15302 | fi | |
15303 | else | |
15304 | lt_cv_prog_compiler_static_works_CXX=yes | |
15305 | fi | |
15306 | fi | |
15307 | $RM -r conftest* | |
15308 | LDFLAGS=$save_LDFLAGS | |
15309 | ||
15310 | fi | |
15311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
15312 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
15313 | ||
15314 | if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then | |
15315 | : | |
15316 | else | |
15317 | lt_prog_compiler_static_CXX= | |
15318 | fi | |
15319 | ||
15320 | ||
15321 | ||
15322 | ||
15323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15324 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15325 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
15326 | $as_echo_n "(cached) " >&6 | |
15327 | else | |
15328 | lt_cv_prog_compiler_c_o_CXX=no | |
15329 | $RM -r conftest 2>/dev/null | |
15330 | mkdir conftest | |
15331 | cd conftest | |
15332 | mkdir out | |
15333 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15334 | ||
15335 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15336 | # Insert the option either (1) after the last *FLAGS variable, or | |
15337 | # (2) before a word containing "conftest.", or (3) at the end. | |
15338 | # Note that $ac_compile itself does not contain backslashes and begins | |
15339 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15340 | lt_compile=`echo "$ac_compile" | $SED \ | |
15341 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15342 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15343 | -e 's:$: $lt_compiler_flag:'` | |
15344 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
15345 | (eval "$lt_compile" 2>out/conftest.err) | |
15346 | ac_status=$? | |
15347 | cat out/conftest.err >&5 | |
15348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15349 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15350 | then | |
15351 | # The compiler can only warn and ignore the option if not recognized | |
15352 | # So say no if there are warnings | |
15353 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
15354 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
15355 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15356 | lt_cv_prog_compiler_c_o_CXX=yes | |
15357 | fi | |
15358 | fi | |
15359 | chmod u+w . 2>&5 | |
15360 | $RM -r conftest* | |
15361 | # SGI C++ compiler will create directory out/ii_files/ for | |
15362 | # template instantiation | |
15363 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15364 | $RM out/* && rmdir out | |
15365 | cd .. | |
15366 | $RM -r conftest | |
15367 | $RM -r conftest* | |
15368 | ||
15369 | fi | |
15370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15371 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15372 | ||
15373 | ||
15374 | ||
15375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15376 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15377 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
15378 | $as_echo_n "(cached) " >&6 | |
15379 | else | |
15380 | lt_cv_prog_compiler_c_o_CXX=no | |
15381 | $RM -r conftest 2>/dev/null | |
15382 | mkdir conftest | |
15383 | cd conftest | |
15384 | mkdir out | |
15385 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15386 | ||
15387 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15388 | # Insert the option either (1) after the last *FLAGS variable, or | |
15389 | # (2) before a word containing "conftest.", or (3) at the end. | |
15390 | # Note that $ac_compile itself does not contain backslashes and begins | |
15391 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15392 | lt_compile=`echo "$ac_compile" | $SED \ | |
15393 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15394 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15395 | -e 's:$: $lt_compiler_flag:'` | |
15396 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
15397 | (eval "$lt_compile" 2>out/conftest.err) | |
15398 | ac_status=$? | |
15399 | cat out/conftest.err >&5 | |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
15402 | then | |
15403 | # The compiler can only warn and ignore the option if not recognized | |
15404 | # So say no if there are warnings | |
15405 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
15406 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
15407 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15408 | lt_cv_prog_compiler_c_o_CXX=yes | |
15409 | fi | |
15410 | fi | |
15411 | chmod u+w . 2>&5 | |
15412 | $RM -r conftest* | |
15413 | # SGI C++ compiler will create directory out/ii_files/ for | |
15414 | # template instantiation | |
15415 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15416 | $RM out/* && rmdir out | |
15417 | cd .. | |
15418 | $RM -r conftest | |
15419 | $RM -r conftest* | |
15420 | ||
15421 | fi | |
15422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
15423 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
15424 | ||
15425 | ||
15426 | ||
15427 | ||
15428 | hard_links=nottested | |
15429 | if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then | |
15430 | # do not overwrite the value of need_locks provided by the user | |
15431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
15432 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
15433 | hard_links=yes | |
15434 | $RM -r conftest* | |
15435 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15436 | touch conftest.a | |
15437 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15438 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
15440 | $as_echo "$hard_links" >&6; } | |
15441 | if test no = "$hard_links"; then | |
15442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
15443 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
15444 | need_locks=warn | |
15445 | fi | |
15446 | else | |
15447 | need_locks=no | |
15448 | fi | |
15449 | ||
15450 | ||
15451 | ||
15452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
15453 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
15454 | ||
15455 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15456 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
15457 | case $host_os in | |
15458 | aix[4-9]*) | |
15459 | # If we're using GNU nm, then we don't want the "-C" option. | |
15460 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
15461 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
15462 | # weak defined symbols like other global defined symbols, whereas | |
15463 | # GNU nm marks them as "W". | |
15464 | # While the 'weak' keyword is ignored in the Export File, we need | |
15465 | # it in the Import File for the 'aix-soname' feature, so we have | |
15466 | # to replace the "-B" option with "-P" for AIX nm. | |
15467 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
15468 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
15469 | else | |
15470 | export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
15471 | fi | |
15472 | ;; | |
15473 | pw32*) | |
15474 | export_symbols_cmds_CXX=$ltdll_cmds | |
15475 | ;; | |
15476 | cygwin* | mingw* | cegcc*) | |
15477 | case $cc_basename in | |
15478 | cl*) | |
15479 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
15480 | ;; | |
15481 | *) | |
15482 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
15483 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
15484 | ;; | |
15485 | esac | |
15486 | ;; | |
15487 | *) | |
15488 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15489 | ;; | |
15490 | esac | |
15491 | ||
15492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
15493 | $as_echo "$ld_shlibs_CXX" >&6; } | |
15494 | test no = "$ld_shlibs_CXX" && can_build_shared=no | |
15495 | ||
15496 | with_gnu_ld_CXX=$with_gnu_ld | |
15497 | ||
15498 | ||
15499 | ||
15500 | ||
15501 | ||
15502 | ||
15503 | # | |
15504 | # Do we need to explicitly link libc? | |
15505 | # | |
15506 | case "x$archive_cmds_need_lc_CXX" in | |
15507 | x|xyes) | |
15508 | # Assume -lc should be added | |
15509 | archive_cmds_need_lc_CXX=yes | |
15510 | ||
15511 | if test yes,yes = "$GCC,$enable_shared"; then | |
15512 | case $archive_cmds_CXX in | |
15513 | *'~'*) | |
15514 | # FIXME: we may have to deal with multi-command sequences. | |
15515 | ;; | |
15516 | '$CC '*) | |
15517 | # Test whether the compiler implicitly links with -lc since on some | |
15518 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15519 | # to ld, don't add -lc before -lgcc. | |
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
15521 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
15522 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : | |
15523 | $as_echo_n "(cached) " >&6 | |
15524 | else | |
15525 | $RM -r conftest* | |
15526 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15527 | ||
15528 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15529 | (eval $ac_compile) 2>&5 | |
15530 | ac_status=$? | |
15531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15532 | test $ac_status = 0; } 2>conftest.err; then | |
15533 | soname=conftest | |
15534 | lib=conftest | |
15535 | libobjs=conftest.$ac_objext | |
15536 | deplibs= | |
15537 | wl=$lt_prog_compiler_wl_CXX | |
15538 | pic_flag=$lt_prog_compiler_pic_CXX | |
15539 | compiler_flags=-v | |
15540 | linker_flags=-v | |
15541 | verstring= | |
15542 | output_objdir=. | |
15543 | libname=conftest | |
15544 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15545 | allow_undefined_flag_CXX= | |
15546 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
15547 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
15548 | ac_status=$? | |
15549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15550 | test $ac_status = 0; } | |
15551 | then | |
15552 | lt_cv_archive_cmds_need_lc_CXX=no | |
15553 | else | |
15554 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15555 | fi | |
15556 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15557 | else | |
15558 | cat conftest.err 1>&5 | |
15559 | fi | |
15560 | $RM -r conftest* | |
15561 | ||
15562 | fi | |
15563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
15564 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
15565 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
15566 | ;; | |
15567 | esac | |
15568 | fi | |
15569 | ;; | |
15570 | esac | |
15571 | ||
15572 | ||
15573 | ||
15574 | ||
15575 | ||
15576 | ||
15577 | ||
15578 | ||
15579 | ||
15580 | ||
15581 | ||
15582 | ||
15583 | ||
15584 | ||
15585 | ||
15586 | ||
15587 | ||
15588 | ||
15589 | ||
15590 | ||
15591 | ||
15592 | ||
15593 | ||
15594 | ||
15595 | ||
15596 | ||
15597 | ||
15598 | ||
15599 | ||
15600 | ||
15601 | ||
15602 | ||
15603 | ||
15604 | ||
15605 | ||
15606 | ||
15607 | ||
15608 | ||
15609 | ||
15610 | ||
15611 | ||
15612 | ||
15613 | ||
15614 | ||
15615 | ||
15616 | ||
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | ||
15622 | ||
15623 | ||
15624 | ||
15625 | ||
15626 | ||
15627 | ||
15628 | ||
15629 | ||
15630 | ||
15631 | ||
15632 | ||
15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15634 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15635 | ||
15636 | library_names_spec= | |
15637 | libname_spec='lib$name' | |
15638 | soname_spec= | |
15639 | shrext_cmds=.so | |
15640 | postinstall_cmds= | |
15641 | postuninstall_cmds= | |
15642 | finish_cmds= | |
15643 | finish_eval= | |
15644 | shlibpath_var= | |
15645 | shlibpath_overrides_runpath=unknown | |
15646 | version_type=none | |
15647 | dynamic_linker="$host_os ld.so" | |
15648 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15649 | need_lib_prefix=unknown | |
15650 | hardcode_into_libs=no | |
15651 | ||
15652 | # when you set need_version to no, make sure it does not cause -set_version | |
15653 | # flags to be left without arguments | |
15654 | need_version=unknown | |
15655 | ||
15656 | ||
15657 | ||
15658 | case $host_os in | |
15659 | aix3*) | |
15660 | version_type=linux # correct to gnu/linux during the next big refactor | |
15661 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
15662 | shlibpath_var=LIBPATH | |
15663 | ||
15664 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15665 | soname_spec='$libname$release$shared_ext$major' | |
15666 | ;; | |
15667 | ||
15668 | aix[4-9]*) | |
15669 | version_type=linux # correct to gnu/linux during the next big refactor | |
15670 | need_lib_prefix=no | |
15671 | need_version=no | |
15672 | hardcode_into_libs=yes | |
15673 | if test ia64 = "$host_cpu"; then | |
15674 | # AIX 5 supports IA64 | |
15675 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
15676 | shlibpath_var=LD_LIBRARY_PATH | |
15677 | else | |
15678 | # With GCC up to 2.95.x, collect2 would create an import file | |
15679 | # for dependence libraries. The import file would start with | |
15680 | # the line '#! .'. This would cause the generated library to | |
15681 | # depend on '.', always an invalid library. This was fixed in | |
15682 | # development snapshots of GCC prior to 3.0. | |
15683 | case $host_os in | |
15684 | aix4 | aix4.[01] | aix4.[01].*) | |
15685 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15686 | echo ' yes ' | |
15687 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
15688 | : | |
15689 | else | |
15690 | can_build_shared=no | |
15691 | fi | |
15692 | ;; | |
15693 | esac | |
15694 | # Using Import Files as archive members, it is possible to support | |
15695 | # filename-based versioning of shared library archives on AIX. While | |
15696 | # this would work for both with and without runtime linking, it will | |
15697 | # prevent static linking of such archives. So we do filename-based | |
15698 | # shared library versioning with .so extension only, which is used | |
15699 | # when both runtime linking and shared linking is enabled. | |
15700 | # Unfortunately, runtime linking may impact performance, so we do | |
15701 | # not want this to be the default eventually. Also, we use the | |
15702 | # versioned .so libs for executables only if there is the -brtl | |
15703 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
15704 | # To allow for filename-based versioning support, we need to create | |
15705 | # libNAME.so.V as an archive file, containing: | |
15706 | # *) an Import File, referring to the versioned filename of the | |
15707 | # archive as well as the shared archive member, telling the | |
15708 | # bitwidth (32 or 64) of that shared object, and providing the | |
15709 | # list of exported symbols of that shared object, eventually | |
15710 | # decorated with the 'weak' keyword | |
15711 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
15712 | # it being seen by the linker. | |
15713 | # At run time we better use the real file rather than another symlink, | |
15714 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
15715 | ||
15716 | case $with_aix_soname,$aix_use_runtimelinking in | |
15717 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
15718 | # soname into executable. Probably we can add versioning support to | |
15719 | # collect2, so additional links can be useful in future. | |
15720 | aix,yes) # traditional libtool | |
15721 | dynamic_linker='AIX unversionable lib.so' | |
15722 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15723 | # instead of lib<name>.a to let people know that these are not | |
15724 | # typical AIX shared libraries. | |
15725 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15726 | ;; | |
15727 | aix,no) # traditional AIX only | |
15728 | dynamic_linker='AIX lib.a(lib.so.V)' | |
15729 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15730 | # and later when we are not doing run time linking. | |
15731 | library_names_spec='$libname$release.a $libname.a' | |
15732 | soname_spec='$libname$release$shared_ext$major' | |
15733 | ;; | |
15734 | svr4,*) # full svr4 only | |
15735 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
15736 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15737 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15738 | shlibpath_overrides_runpath=yes | |
15739 | ;; | |
15740 | *,yes) # both, prefer svr4 | |
15741 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
15742 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
15743 | # unpreferred sharedlib libNAME.a needs extra handling | |
15744 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
15745 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
15746 | # We do not specify a path in Import Files, so LIBPATH fires. | |
15747 | shlibpath_overrides_runpath=yes | |
15748 | ;; | |
15749 | *,no) # both, prefer aix | |
15750 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
15751 | library_names_spec='$libname$release.a $libname.a' | |
15752 | soname_spec='$libname$release$shared_ext$major' | |
15753 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
15754 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
15755 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
15756 | ;; | |
15757 | esac | |
15758 | shlibpath_var=LIBPATH | |
15759 | fi | |
15760 | ;; | |
15761 | ||
15762 | amigaos*) | |
15763 | case $host_cpu in | |
15764 | powerpc) | |
15765 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15766 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15767 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15768 | ;; | |
15769 | m68k) | |
15770 | library_names_spec='$libname.ixlibrary $libname.a' | |
15771 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
15772 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' | |
15773 | ;; | |
15774 | esac | |
15775 | ;; | |
15776 | ||
15777 | beos*) | |
15778 | library_names_spec='$libname$shared_ext' | |
15779 | dynamic_linker="$host_os ld.so" | |
15780 | shlibpath_var=LIBRARY_PATH | |
15781 | ;; | |
15782 | ||
15783 | bsdi[45]*) | |
15784 | version_type=linux # correct to gnu/linux during the next big refactor | |
15785 | need_version=no | |
15786 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15787 | soname_spec='$libname$release$shared_ext$major' | |
15788 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15789 | shlibpath_var=LD_LIBRARY_PATH | |
15790 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15791 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15792 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15793 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15794 | # libtool to hard-code these into programs | |
15795 | ;; | |
15796 | ||
15797 | cygwin* | mingw* | pw32* | cegcc*) | |
15798 | version_type=windows | |
15799 | shrext_cmds=.dll | |
15800 | need_version=no | |
15801 | need_lib_prefix=no | |
15802 | ||
15803 | case $GCC,$cc_basename in | |
15804 | yes,*) | |
15805 | # gcc | |
15806 | library_names_spec='$libname.dll.a' | |
15807 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15808 | postinstall_cmds='base_file=`basename \$file`~ | |
15809 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
15810 | dldir=$destdir/`dirname \$dlpath`~ | |
15811 | test -d \$dldir || mkdir -p \$dldir~ | |
15812 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15813 | chmod a+x \$dldir/$dlname~ | |
15814 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15815 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15816 | fi' | |
15817 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15818 | dlpath=$dir/\$dldll~ | |
15819 | $RM \$dlpath' | |
15820 | shlibpath_overrides_runpath=yes | |
15821 | ||
15822 | case $host_os in | |
15823 | cygwin*) | |
15824 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15825 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15826 | ||
15827 | ;; | |
15828 | mingw* | cegcc*) | |
15829 | # MinGW DLLs use traditional 'lib' prefix | |
15830 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15831 | ;; | |
15832 | pw32*) | |
15833 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15834 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15835 | ;; | |
15836 | esac | |
15837 | dynamic_linker='Win32 ld.exe' | |
15838 | ;; | |
15839 | ||
15840 | *,cl*) | |
15841 | # Native MSVC | |
15842 | libname_spec='$name' | |
15843 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
15844 | library_names_spec='$libname.dll.lib' | |
15845 | ||
15846 | case $build_os in | |
15847 | mingw*) | |
15848 | sys_lib_search_path_spec= | |
15849 | lt_save_ifs=$IFS | |
15850 | IFS=';' | |
15851 | for lt_path in $LIB | |
15852 | do | |
15853 | IFS=$lt_save_ifs | |
15854 | # Let DOS variable expansion print the short 8.3 style file name. | |
15855 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
15856 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
15857 | done | |
15858 | IFS=$lt_save_ifs | |
15859 | # Convert to MSYS style. | |
15860 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
15861 | ;; | |
15862 | cygwin*) | |
15863 | # Convert to unix form, then to dos form, then back to unix form | |
15864 | # but this time dos style (no spaces!) so that the unix form looks | |
15865 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
15866 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
15867 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
15868 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15869 | ;; | |
15870 | *) | |
15871 | sys_lib_search_path_spec=$LIB | |
15872 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
15873 | # It is most probably a Windows format PATH. | |
15874 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15875 | else | |
15876 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15877 | fi | |
15878 | # FIXME: find the short name or the path components, as spaces are | |
15879 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
15880 | ;; | |
15881 | esac | |
15882 | ||
15883 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15884 | postinstall_cmds='base_file=`basename \$file`~ | |
15885 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
15886 | dldir=$destdir/`dirname \$dlpath`~ | |
15887 | test -d \$dldir || mkdir -p \$dldir~ | |
15888 | $install_prog $dir/$dlname \$dldir/$dlname' | |
15889 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15890 | dlpath=$dir/\$dldll~ | |
15891 | $RM \$dlpath' | |
15892 | shlibpath_overrides_runpath=yes | |
15893 | dynamic_linker='Win32 link.exe' | |
15894 | ;; | |
15895 | ||
15896 | *) | |
15897 | # Assume MSVC wrapper | |
15898 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
15899 | dynamic_linker='Win32 ld.exe' | |
15900 | ;; | |
15901 | esac | |
15902 | # FIXME: first we should search . and the directory the executable is in | |
15903 | shlibpath_var=PATH | |
15904 | ;; | |
15905 | ||
15906 | darwin* | rhapsody*) | |
15907 | dynamic_linker="$host_os dyld" | |
15908 | version_type=darwin | |
15909 | need_lib_prefix=no | |
15910 | need_version=no | |
15911 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
15912 | soname_spec='$libname$release$major$shared_ext' | |
15913 | shlibpath_overrides_runpath=yes | |
15914 | shlibpath_var=DYLD_LIBRARY_PATH | |
15915 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15916 | ||
15917 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15918 | ;; | |
15919 | ||
15920 | dgux*) | |
15921 | version_type=linux # correct to gnu/linux during the next big refactor | |
15922 | need_lib_prefix=no | |
15923 | need_version=no | |
15924 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15925 | soname_spec='$libname$release$shared_ext$major' | |
15926 | shlibpath_var=LD_LIBRARY_PATH | |
15927 | ;; | |
15928 | ||
15929 | freebsd* | dragonfly*) | |
15930 | # DragonFly does not have aout. When/if they implement a new | |
15931 | # versioning mechanism, adjust this. | |
15932 | if test -x /usr/bin/objformat; then | |
15933 | objformat=`/usr/bin/objformat` | |
15934 | else | |
15935 | case $host_os in | |
15936 | freebsd[23].*) objformat=aout ;; | |
15937 | *) objformat=elf ;; | |
15938 | esac | |
15939 | fi | |
15940 | version_type=freebsd-$objformat | |
15941 | case $version_type in | |
15942 | freebsd-elf*) | |
15943 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15944 | soname_spec='$libname$release$shared_ext$major' | |
15945 | need_version=no | |
15946 | need_lib_prefix=no | |
15947 | ;; | |
15948 | freebsd-*) | |
15949 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
15950 | need_version=yes | |
15951 | ;; | |
15952 | esac | |
15953 | shlibpath_var=LD_LIBRARY_PATH | |
15954 | case $host_os in | |
15955 | freebsd2.*) | |
15956 | shlibpath_overrides_runpath=yes | |
15957 | ;; | |
15958 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15959 | shlibpath_overrides_runpath=yes | |
15960 | hardcode_into_libs=yes | |
15961 | ;; | |
15962 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15963 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15964 | shlibpath_overrides_runpath=no | |
15965 | hardcode_into_libs=yes | |
15966 | ;; | |
15967 | *) # from 4.6 on, and DragonFly | |
15968 | shlibpath_overrides_runpath=yes | |
15969 | hardcode_into_libs=yes | |
15970 | ;; | |
15971 | esac | |
15972 | ;; | |
15973 | ||
15974 | haiku*) | |
15975 | version_type=linux # correct to gnu/linux during the next big refactor | |
15976 | need_lib_prefix=no | |
15977 | need_version=no | |
15978 | dynamic_linker="$host_os runtime_loader" | |
15979 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
15980 | soname_spec='$libname$release$shared_ext$major' | |
15981 | shlibpath_var=LIBRARY_PATH | |
15982 | shlibpath_overrides_runpath=no | |
15983 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
15984 | hardcode_into_libs=yes | |
15985 | ;; | |
15986 | ||
15987 | hpux9* | hpux10* | hpux11*) | |
15988 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15989 | # link against other versions. | |
15990 | version_type=sunos | |
15991 | need_lib_prefix=no | |
15992 | need_version=no | |
15993 | case $host_cpu in | |
15994 | ia64*) | |
15995 | shrext_cmds='.so' | |
15996 | hardcode_into_libs=yes | |
15997 | dynamic_linker="$host_os dld.so" | |
15998 | shlibpath_var=LD_LIBRARY_PATH | |
15999 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16000 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16001 | soname_spec='$libname$release$shared_ext$major' | |
16002 | if test 32 = "$HPUX_IA64_MODE"; then | |
16003 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
16004 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
16005 | else | |
16006 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
16007 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
16008 | fi | |
16009 | ;; | |
16010 | hppa*64*) | |
16011 | shrext_cmds='.sl' | |
16012 | hardcode_into_libs=yes | |
16013 | dynamic_linker="$host_os dld.sl" | |
16014 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
16015 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16016 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16017 | soname_spec='$libname$release$shared_ext$major' | |
16018 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
16019 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16020 | ;; | |
16021 | *) | |
16022 | shrext_cmds='.sl' | |
16023 | dynamic_linker="$host_os dld.sl" | |
16024 | shlibpath_var=SHLIB_PATH | |
16025 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
16026 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16027 | soname_spec='$libname$release$shared_ext$major' | |
16028 | ;; | |
16029 | esac | |
16030 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
16031 | postinstall_cmds='chmod 555 $lib' | |
16032 | # or fails outright, so override atomically: | |
16033 | install_override_mode=555 | |
16034 | ;; | |
16035 | ||
16036 | interix[3-9]*) | |
16037 | version_type=linux # correct to gnu/linux during the next big refactor | |
16038 | need_lib_prefix=no | |
16039 | need_version=no | |
16040 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16041 | soname_spec='$libname$release$shared_ext$major' | |
16042 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
16043 | shlibpath_var=LD_LIBRARY_PATH | |
16044 | shlibpath_overrides_runpath=no | |
16045 | hardcode_into_libs=yes | |
16046 | ;; | |
16047 | ||
16048 | irix5* | irix6* | nonstopux*) | |
16049 | case $host_os in | |
16050 | nonstopux*) version_type=nonstopux ;; | |
16051 | *) | |
16052 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
16053 | version_type=linux # correct to gnu/linux during the next big refactor | |
16054 | else | |
16055 | version_type=irix | |
16056 | fi ;; | |
16057 | esac | |
16058 | need_lib_prefix=no | |
16059 | need_version=no | |
16060 | soname_spec='$libname$release$shared_ext$major' | |
16061 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
16062 | case $host_os in | |
16063 | irix5* | nonstopux*) | |
16064 | libsuff= shlibsuff= | |
16065 | ;; | |
16066 | *) | |
16067 | case $LD in # libtool.m4 will add one of these switches to LD | |
16068 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
16069 | libsuff= shlibsuff= libmagic=32-bit;; | |
16070 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
16071 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
16072 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
16073 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
16074 | *) libsuff= shlibsuff= libmagic=never-match;; | |
16075 | esac | |
16076 | ;; | |
16077 | esac | |
16078 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
16079 | shlibpath_overrides_runpath=no | |
16080 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
16081 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
16082 | hardcode_into_libs=yes | |
16083 | ;; | |
16084 | ||
16085 | # No shared lib support for Linux oldld, aout, or coff. | |
16086 | linux*oldld* | linux*aout* | linux*coff*) | |
16087 | dynamic_linker=no | |
16088 | ;; | |
16089 | ||
16090 | linux*android*) | |
16091 | version_type=none # Android doesn't support versioned libraries. | |
16092 | need_lib_prefix=no | |
16093 | need_version=no | |
16094 | library_names_spec='$libname$release$shared_ext' | |
16095 | soname_spec='$libname$release$shared_ext' | |
16096 | finish_cmds= | |
16097 | shlibpath_var=LD_LIBRARY_PATH | |
16098 | shlibpath_overrides_runpath=yes | |
16099 | ||
16100 | # This implies no fast_install, which is unacceptable. | |
16101 | # Some rework will be needed to allow for fast_install | |
16102 | # before this can be enabled. | |
16103 | hardcode_into_libs=yes | |
16104 | ||
16105 | dynamic_linker='Android linker' | |
16106 | # Don't embed -rpath directories since the linker doesn't support them. | |
16107 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
16108 | ;; | |
16109 | ||
16110 | # This must be glibc/ELF. | |
16111 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
16112 | version_type=linux # correct to gnu/linux during the next big refactor | |
16113 | need_lib_prefix=no | |
16114 | need_version=no | |
16115 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16116 | soname_spec='$libname$release$shared_ext$major' | |
16117 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
16118 | shlibpath_var=LD_LIBRARY_PATH | |
16119 | shlibpath_overrides_runpath=no | |
16120 | ||
16121 | # Some binutils ld are patched to set DT_RUNPATH | |
16122 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
16123 | $as_echo_n "(cached) " >&6 | |
16124 | else | |
16125 | lt_cv_shlibpath_overrides_runpath=no | |
16126 | save_LDFLAGS=$LDFLAGS | |
16127 | save_libdir=$libdir | |
16128 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
16129 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
16130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16131 | /* end confdefs.h. */ | |
16132 | ||
16133 | int | |
16134 | main () | |
16135 | { | |
16136 | ||
16137 | ; | |
16138 | return 0; | |
16139 | } | |
16140 | _ACEOF | |
16141 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16142 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
16143 | lt_cv_shlibpath_overrides_runpath=yes | |
16144 | fi | |
16145 | fi | |
16146 | rm -f core conftest.err conftest.$ac_objext \ | |
16147 | conftest$ac_exeext conftest.$ac_ext | |
16148 | LDFLAGS=$save_LDFLAGS | |
16149 | libdir=$save_libdir | |
16150 | ||
16151 | fi | |
16152 | ||
16153 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
16154 | ||
16155 | # This implies no fast_install, which is unacceptable. | |
16156 | # Some rework will be needed to allow for fast_install | |
16157 | # before this can be enabled. | |
16158 | hardcode_into_libs=yes | |
16159 | ||
16160 | # Ideally, we could use ldconfig to report *all* directores which are | |
16161 | # searched for libraries, however this is still not possible. Aside from not | |
16162 | # being certain /sbin/ldconfig is available, command | |
16163 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
16164 | # even though it is searched at run-time. Try to do the best guess by | |
16165 | # appending ld.so.conf contents (and includes) to the search path. | |
16166 | if test -f /etc/ld.so.conf; then | |
16167 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
16168 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
16169 | fi | |
16170 | ||
16171 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
16172 | # powerpc, because MkLinux only supported shared libraries with the | |
16173 | # GNU dynamic linker. Since this was broken with cross compilers, | |
16174 | # most powerpc-linux boxes support dynamic linking these days and | |
16175 | # people can always --disable-shared, the test was removed, and we | |
16176 | # assume the GNU/Linux dynamic linker is in use. | |
16177 | dynamic_linker='GNU/Linux ld.so' | |
16178 | ;; | |
16179 | ||
16180 | netbsd*) | |
16181 | version_type=sunos | |
16182 | need_lib_prefix=no | |
16183 | need_version=no | |
16184 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
16185 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
16186 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16187 | dynamic_linker='NetBSD (a.out) ld.so' | |
16188 | else | |
16189 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16190 | soname_spec='$libname$release$shared_ext$major' | |
16191 | dynamic_linker='NetBSD ld.elf_so' | |
16192 | fi | |
16193 | shlibpath_var=LD_LIBRARY_PATH | |
16194 | shlibpath_overrides_runpath=yes | |
16195 | hardcode_into_libs=yes | |
16196 | ;; | |
16197 | ||
16198 | newsos6) | |
16199 | version_type=linux # correct to gnu/linux during the next big refactor | |
16200 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16201 | shlibpath_var=LD_LIBRARY_PATH | |
16202 | shlibpath_overrides_runpath=yes | |
16203 | ;; | |
16204 | ||
16205 | *nto* | *qnx*) | |
16206 | version_type=qnx | |
16207 | need_lib_prefix=no | |
16208 | need_version=no | |
16209 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16210 | soname_spec='$libname$release$shared_ext$major' | |
16211 | shlibpath_var=LD_LIBRARY_PATH | |
16212 | shlibpath_overrides_runpath=no | |
16213 | hardcode_into_libs=yes | |
16214 | dynamic_linker='ldqnx.so' | |
16215 | ;; | |
16216 | ||
16217 | openbsd* | bitrig*) | |
16218 | version_type=sunos | |
16219 | sys_lib_dlsearch_path_spec=/usr/lib | |
16220 | need_lib_prefix=no | |
16221 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
16222 | need_version=no | |
16223 | else | |
16224 | need_version=yes | |
16225 | fi | |
16226 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
16227 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16228 | shlibpath_var=LD_LIBRARY_PATH | |
16229 | shlibpath_overrides_runpath=yes | |
16230 | ;; | |
16231 | ||
16232 | os2*) | |
16233 | libname_spec='$name' | |
16234 | version_type=windows | |
16235 | shrext_cmds=.dll | |
16236 | need_version=no | |
16237 | need_lib_prefix=no | |
16238 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
16239 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
16240 | v=$($ECHO $release$versuffix | tr -d .-); | |
16241 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
16242 | $ECHO $n$v`$shared_ext' | |
16243 | library_names_spec='${libname}_dll.$libext' | |
16244 | dynamic_linker='OS/2 ld.exe' | |
16245 | shlibpath_var=BEGINLIBPATH | |
16246 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
16247 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16248 | postinstall_cmds='base_file=`basename \$file`~ | |
16249 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
16250 | dldir=$destdir/`dirname \$dlpath`~ | |
16251 | test -d \$dldir || mkdir -p \$dldir~ | |
16252 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
16253 | chmod a+x \$dldir/$dlname~ | |
16254 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
16255 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
16256 | fi' | |
16257 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
16258 | dlpath=$dir/\$dldll~ | |
16259 | $RM \$dlpath' | |
16260 | ;; | |
16261 | ||
16262 | osf3* | osf4* | osf5*) | |
16263 | version_type=osf | |
16264 | need_lib_prefix=no | |
16265 | need_version=no | |
16266 | soname_spec='$libname$release$shared_ext$major' | |
16267 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16268 | shlibpath_var=LD_LIBRARY_PATH | |
16269 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
16270 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16271 | ;; | |
16272 | ||
16273 | rdos*) | |
16274 | dynamic_linker=no | |
16275 | ;; | |
16276 | ||
16277 | solaris*) | |
16278 | version_type=linux # correct to gnu/linux during the next big refactor | |
16279 | need_lib_prefix=no | |
16280 | need_version=no | |
16281 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16282 | soname_spec='$libname$release$shared_ext$major' | |
16283 | shlibpath_var=LD_LIBRARY_PATH | |
16284 | shlibpath_overrides_runpath=yes | |
16285 | hardcode_into_libs=yes | |
16286 | # ldd complains unless libraries are executable | |
16287 | postinstall_cmds='chmod +x $lib' | |
16288 | ;; | |
16289 | ||
16290 | sunos4*) | |
16291 | version_type=sunos | |
16292 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
16293 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
16294 | shlibpath_var=LD_LIBRARY_PATH | |
16295 | shlibpath_overrides_runpath=yes | |
16296 | if test yes = "$with_gnu_ld"; then | |
16297 | need_lib_prefix=no | |
16298 | fi | |
16299 | need_version=yes | |
16300 | ;; | |
16301 | ||
16302 | sysv4 | sysv4.3*) | |
16303 | version_type=linux # correct to gnu/linux during the next big refactor | |
16304 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16305 | soname_spec='$libname$release$shared_ext$major' | |
16306 | shlibpath_var=LD_LIBRARY_PATH | |
16307 | case $host_vendor in | |
16308 | sni) | |
16309 | shlibpath_overrides_runpath=no | |
16310 | need_lib_prefix=no | |
16311 | runpath_var=LD_RUN_PATH | |
16312 | ;; | |
16313 | siemens) | |
16314 | need_lib_prefix=no | |
16315 | ;; | |
16316 | motorola) | |
16317 | need_lib_prefix=no | |
16318 | need_version=no | |
16319 | shlibpath_overrides_runpath=no | |
16320 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16321 | ;; | |
16322 | esac | |
16323 | ;; | |
16324 | ||
16325 | sysv4*MP*) | |
16326 | if test -d /usr/nec; then | |
16327 | version_type=linux # correct to gnu/linux during the next big refactor | |
16328 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
16329 | soname_spec='$libname$shared_ext.$major' | |
16330 | shlibpath_var=LD_LIBRARY_PATH | |
16331 | fi | |
16332 | ;; | |
16333 | ||
16334 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16335 | version_type=sco | |
16336 | need_lib_prefix=no | |
16337 | need_version=no | |
16338 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
16339 | soname_spec='$libname$release$shared_ext$major' | |
16340 | shlibpath_var=LD_LIBRARY_PATH | |
16341 | shlibpath_overrides_runpath=yes | |
16342 | hardcode_into_libs=yes | |
16343 | if test yes = "$with_gnu_ld"; then | |
16344 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16345 | else | |
16346 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16347 | case $host_os in | |
16348 | sco3.2v5*) | |
16349 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16350 | ;; | |
16351 | esac | |
16352 | fi | |
16353 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16354 | ;; | |
16355 | ||
16356 | tpf*) | |
16357 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16358 | version_type=linux # correct to gnu/linux during the next big refactor | |
16359 | need_lib_prefix=no | |
16360 | need_version=no | |
16361 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16362 | shlibpath_var=LD_LIBRARY_PATH | |
16363 | shlibpath_overrides_runpath=no | |
16364 | hardcode_into_libs=yes | |
16365 | ;; | |
16366 | ||
16367 | uts4*) | |
16368 | version_type=linux # correct to gnu/linux during the next big refactor | |
16369 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
16370 | soname_spec='$libname$release$shared_ext$major' | |
16371 | shlibpath_var=LD_LIBRARY_PATH | |
16372 | ;; | |
16373 | ||
16374 | *) | |
16375 | dynamic_linker=no | |
16376 | ;; | |
16377 | esac | |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
16379 | $as_echo "$dynamic_linker" >&6; } | |
16380 | test no = "$dynamic_linker" && can_build_shared=no | |
16381 | ||
16382 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16383 | if test yes = "$GCC"; then | |
16384 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
16385 | fi | |
16386 | ||
16387 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
16388 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
16389 | fi | |
16390 | ||
16391 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
16392 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
16393 | fi | |
16394 | ||
16395 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
16396 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
16397 | ||
16398 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
16399 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
16400 | ||
16401 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
16402 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
16403 | ||
16404 | ||
16405 | ||
16406 | ||
16407 | ||
16408 | ||
16409 | ||
16410 | ||
16411 | ||
16412 | ||
16413 | ||
16414 | ||
16415 | ||
16416 | ||
16417 | ||
16418 | ||
16419 | ||
16420 | ||
16421 | ||
16422 | ||
16423 | ||
16424 | ||
16425 | ||
16426 | ||
16427 | ||
16428 | ||
16429 | ||
16430 | ||
16431 | ||
16432 | ||
16433 | ||
16434 | ||
16435 | ||
16436 | ||
16437 | ||
16438 | ||
16439 | ||
16440 | ||
16441 | ||
16442 | ||
16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
16444 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
16445 | hardcode_action_CXX= | |
16446 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
16447 | test -n "$runpath_var_CXX" || | |
16448 | test yes = "$hardcode_automatic_CXX"; then | |
16449 | ||
16450 | # We can hardcode non-existent directories. | |
16451 | if test no != "$hardcode_direct_CXX" && | |
16452 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16453 | # have to relink, otherwise we might link with an installed library | |
16454 | # when we should be linking with a yet-to-be-installed one | |
16455 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && | |
16456 | test no != "$hardcode_minus_L_CXX"; then | |
16457 | # Linking always hardcodes the temporary library directory. | |
16458 | hardcode_action_CXX=relink | |
16459 | else | |
16460 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16461 | hardcode_action_CXX=immediate | |
16462 | fi | |
16463 | else | |
16464 | # We cannot hardcode anything, or else we can only hardcode existing | |
16465 | # directories. | |
16466 | hardcode_action_CXX=unsupported | |
16467 | fi | |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
16469 | $as_echo "$hardcode_action_CXX" >&6; } | |
16470 | ||
16471 | if test relink = "$hardcode_action_CXX" || | |
16472 | test yes = "$inherit_rpath_CXX"; then | |
16473 | # Fast installation is not supported | |
16474 | enable_fast_install=no | |
16475 | elif test yes = "$shlibpath_overrides_runpath" || | |
16476 | test no = "$enable_shared"; then | |
16477 | # Fast installation is not necessary | |
16478 | enable_fast_install=needless | |
16479 | fi | |
16480 | ||
16481 | ||
16482 | ||
16483 | ||
16484 | ||
16485 | ||
16486 | ||
16487 | fi # test -n "$compiler" | |
16488 | ||
16489 | CC=$lt_save_CC | |
16490 | CFLAGS=$lt_save_CFLAGS | |
16491 | LDCXX=$LD | |
16492 | LD=$lt_save_LD | |
16493 | GCC=$lt_save_GCC | |
16494 | with_gnu_ld=$lt_save_with_gnu_ld | |
16495 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
16496 | lt_cv_path_LD=$lt_save_path_LD | |
16497 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
16498 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
16499 | fi # test yes != "$_lt_caught_CXX_error" | |
16500 | ||
16501 | ac_ext=c | |
16502 | ac_cpp='$CPP $CPPFLAGS' | |
16503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16506 | ||
16507 | ||
16508 | ||
16509 | ||
16510 | ||
16511 | ||
16512 | ||
16513 | ||
16514 | ||
16515 | ||
16516 | ||
16517 | ||
16518 | ||
16519 | ||
16520 | ||
16521 | ac_config_commands="$ac_config_commands libtool" | |
16522 | ||
16523 | ||
16524 | ||
16525 | ||
16526 | # Only expand once: | |
16527 | ||
16528 | ||
16529 | ||
16530 | ac_ext=cpp | |
16531 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16535 | ||
16536 | ||
16537 | ax_cxx_compile_cxx11_required=true | |
16538 | ac_ext=cpp | |
16539 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16540 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16541 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16542 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16543 | ac_success=no | |
16544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
16545 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
16546 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
16547 | $as_echo_n "(cached) " >&6 | |
16548 | else | |
16549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16550 | /* end confdefs.h. */ | |
16551 | ||
16552 | template <typename T> | |
16553 | struct check | |
16554 | { | |
16555 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
16556 | }; | |
16557 | ||
16558 | struct Base { | |
16559 | virtual void f() {} | |
16560 | }; | |
16561 | struct Child : public Base { | |
16562 | virtual void f() override {} | |
16563 | }; | |
16564 | ||
16565 | typedef check<check<bool>> right_angle_brackets; | |
16566 | ||
16567 | int a; | |
16568 | decltype(a) b; | |
16569 | ||
16570 | typedef check<int> check_type; | |
16571 | check_type c; | |
16572 | check_type&& cr = static_cast<check_type&&>(c); | |
16573 | ||
16574 | auto d = a; | |
16575 | auto l = [](){}; | |
16576 | ||
16577 | _ACEOF | |
16578 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16579 | ax_cv_cxx_compile_cxx11=yes | |
16580 | else | |
16581 | ax_cv_cxx_compile_cxx11=no | |
16582 | fi | |
16583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16584 | fi | |
16585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
16586 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
16587 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
16588 | ac_success=yes | |
16589 | fi | |
16590 | ||
16591 | if test x$ac_success = xno; then | |
16592 | for switch in -std=gnu++11 -std=gnu++0x; do | |
16593 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
16594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
16595 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
16596 | if eval \${$cachevar+:} false; then : | |
16597 | $as_echo_n "(cached) " >&6 | |
16598 | else | |
16599 | ac_save_CXXFLAGS="$CXXFLAGS" | |
16600 | CXXFLAGS="$CXXFLAGS $switch" | |
16601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16602 | /* end confdefs.h. */ | |
16603 | ||
16604 | template <typename T> | |
16605 | struct check | |
16606 | { | |
16607 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
16608 | }; | |
16609 | ||
16610 | struct Base { | |
16611 | virtual void f() {} | |
16612 | }; | |
16613 | struct Child : public Base { | |
16614 | virtual void f() override {} | |
16615 | }; | |
16616 | ||
16617 | typedef check<check<bool>> right_angle_brackets; | |
16618 | ||
16619 | int a; | |
16620 | decltype(a) b; | |
16621 | ||
16622 | typedef check<int> check_type; | |
16623 | check_type c; | |
16624 | check_type&& cr = static_cast<check_type&&>(c); | |
16625 | ||
16626 | auto d = a; | |
16627 | auto l = [](){}; | |
16628 | ||
16629 | _ACEOF | |
16630 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
16631 | eval $cachevar=yes | |
16632 | else | |
16633 | eval $cachevar=no | |
16634 | fi | |
16635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16636 | CXXFLAGS="$ac_save_CXXFLAGS" | |
16637 | fi | |
16638 | eval ac_res=\$$cachevar | |
16639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16640 | $as_echo "$ac_res" >&6; } | |
16641 | if eval test x\$$cachevar = xyes; then | |
16642 | CXXFLAGS="$CXXFLAGS $switch" | |
16643 | ac_success=yes | |
16644 | break | |
16645 | fi | |
16646 | done | |
16647 | fi | |
16648 | ||
16649 | ||
16650 | ac_ext=cpp | |
16651 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16652 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16653 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16654 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16655 | ||
16656 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
16657 | if test x$ac_success = xno; then | |
16658 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
16659 | fi | |
16660 | else | |
16661 | if test x$ac_success = xno; then | |
16662 | HAVE_CXX11=0 | |
16663 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
16664 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
16665 | else | |
16666 | HAVE_CXX11=1 | |
16667 | ||
16668 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
16669 | ||
16670 | fi | |
16671 | ||
16672 | ||
16673 | fi | |
16674 | ||
16675 | OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}" | |
16676 | ||
16677 | ||
16678 | ||
16679 | ||
16680 | ||
16681 | ||
16682 | ||
16683 | ||
16684 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
16685 | if test -n "$ac_tool_prefix"; then | |
16686 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
16687 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
16688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16689 | $as_echo_n "checking for $ac_word... " >&6; } | |
16690 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
16691 | $as_echo_n "(cached) " >&6 | |
16692 | else | |
16693 | case $PKG_CONFIG in | |
16694 | [\\/]* | ?:[\\/]*) | |
16695 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
16696 | ;; | |
16697 | *) | |
16698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16699 | for as_dir in $PATH | |
16700 | do | |
16701 | IFS=$as_save_IFS | |
16702 | test -z "$as_dir" && as_dir=. | |
16703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16705 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16707 | break 2 | |
16708 | fi | |
16709 | done | |
16710 | done | |
16711 | IFS=$as_save_IFS | |
16712 | ||
16713 | ;; | |
16714 | esac | |
16715 | fi | |
16716 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
16717 | if test -n "$PKG_CONFIG"; then | |
16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
16719 | $as_echo "$PKG_CONFIG" >&6; } | |
16720 | else | |
16721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16722 | $as_echo "no" >&6; } | |
16723 | fi | |
16724 | ||
16725 | ||
16726 | fi | |
16727 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
16728 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16729 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16730 | set dummy pkg-config; ac_word=$2 | |
16731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16732 | $as_echo_n "checking for $ac_word... " >&6; } | |
16733 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
16734 | $as_echo_n "(cached) " >&6 | |
16735 | else | |
16736 | case $ac_pt_PKG_CONFIG in | |
16737 | [\\/]* | ?:[\\/]*) | |
16738 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16739 | ;; | |
16740 | *) | |
16741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16742 | for as_dir in $PATH | |
16743 | do | |
16744 | IFS=$as_save_IFS | |
16745 | test -z "$as_dir" && as_dir=. | |
16746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16748 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16750 | break 2 | |
16751 | fi | |
16752 | done | |
16753 | done | |
16754 | IFS=$as_save_IFS | |
16755 | ||
16756 | ;; | |
16757 | esac | |
16758 | fi | |
16759 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16760 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16762 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
16763 | else | |
16764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16765 | $as_echo "no" >&6; } | |
16766 | fi | |
16767 | ||
16768 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16769 | PKG_CONFIG="" | |
16770 | else | |
16771 | case $cross_compiling:$ac_tool_warned in | |
16772 | yes:) | |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16775 | ac_tool_warned=yes ;; | |
16776 | esac | |
16777 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16778 | fi | |
16779 | else | |
16780 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
16781 | fi | |
16782 | ||
16783 | fi | |
16784 | if test -n "$PKG_CONFIG"; then | |
16785 | _pkg_min_version=0.22 | |
16786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16787 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16788 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16790 | $as_echo "yes" >&6; } | |
16791 | else | |
16792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16793 | $as_echo "no" >&6; } | |
16794 | PKG_CONFIG="" | |
16795 | fi | |
16796 | fi | |
16797 | ||
16798 | # Extract the first word of "git", so it can be a program name with args. | |
16799 | set dummy git; ac_word=$2 | |
16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16801 | $as_echo_n "checking for $ac_word... " >&6; } | |
16802 | if ${ac_cv_path_GIT+:} false; then : | |
16803 | $as_echo_n "(cached) " >&6 | |
16804 | else | |
16805 | case $GIT in | |
16806 | [\\/]* | ?:[\\/]*) | |
16807 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. | |
16808 | ;; | |
16809 | *) | |
16810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16811 | for as_dir in $PATH | |
16812 | do | |
16813 | IFS=$as_save_IFS | |
16814 | test -z "$as_dir" && as_dir=. | |
16815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16817 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" | |
16818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16819 | break 2 | |
16820 | fi | |
16821 | done | |
16822 | done | |
16823 | IFS=$as_save_IFS | |
16824 | ||
16825 | ;; | |
16826 | esac | |
16827 | fi | |
16828 | GIT=$ac_cv_path_GIT | |
16829 | if test -n "$GIT"; then | |
16830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
16831 | $as_echo "$GIT" >&6; } | |
16832 | else | |
16833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16834 | $as_echo "no" >&6; } | |
16835 | fi | |
16836 | ||
16837 | ||
16838 | # Extract the first word of "time", so it can be a program name with args. | |
16839 | set dummy time; ac_word=$2 | |
16840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16841 | $as_echo_n "checking for $ac_word... " >&6; } | |
16842 | if ${ac_cv_path_TIME+:} false; then : | |
16843 | $as_echo_n "(cached) " >&6 | |
16844 | else | |
16845 | case $TIME in | |
16846 | [\\/]* | ?:[\\/]*) | |
16847 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
16848 | ;; | |
16849 | *) | |
16850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16851 | for as_dir in $PATH | |
16852 | do | |
16853 | IFS=$as_save_IFS | |
16854 | test -z "$as_dir" && as_dir=. | |
16855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16857 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" | |
16858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16859 | break 2 | |
16860 | fi | |
16861 | done | |
16862 | done | |
16863 | IFS=$as_save_IFS | |
16864 | ||
16865 | ;; | |
16866 | esac | |
16867 | fi | |
16868 | TIME=$ac_cv_path_TIME | |
16869 | if test -n "$TIME"; then | |
16870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
16871 | $as_echo "$TIME" >&6; } | |
16872 | else | |
16873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16874 | $as_echo "no" >&6; } | |
16875 | fi | |
16876 | ||
16877 | ||
16878 | ||
16879 | ||
16880 | ||
16881 | ||
16882 | ||
16883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5 | |
16884 | $as_echo_n "checking for bison >= 3.0... " >&6; } | |
16885 | if test -z "$BISON"; then | |
16886 | ac_path_BISON_found=false | |
16887 | # Loop through the user's path and test for each of PROGNAME-LIST | |
16888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16889 | for as_dir in $PATH | |
16890 | do | |
16891 | IFS=$as_save_IFS | |
16892 | test -z "$as_dir" && as_dir=. | |
16893 | for ac_prog in bison; do | |
16894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16895 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
16896 | as_fn_executable_p "$ac_path_BISON" || continue | |
16897 | version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
16898 | if ${version:+false} :; then : | |
16899 | ||
16900 | else | |
16901 | as_awk_strverscmp=' | |
16902 | # Use only awk features that work with 7th edition Unix awk (1978). | |
16903 | # My, what an old awk you have, Mr. Solaris! | |
16904 | END { | |
16905 | while (length(v1) && length(v2)) { | |
16906 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
16907 | # Normally this is a single character, but if v1 and v2 contain digits, | |
16908 | # compare them as integers and fractions as strverscmp does. | |
16909 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
16910 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
16911 | # and advance v1 and v2 past the leading digit strings. | |
16912 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
16913 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
16914 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
16915 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
16916 | if (d1 ~ /^0/) { | |
16917 | if (d2 ~ /^0/) { | |
16918 | # Compare two fractions. | |
16919 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
16920 | d1 = substr(d1, 2); len1-- | |
16921 | d2 = substr(d2, 2); len2-- | |
16922 | } | |
16923 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
16924 | # The two components differ in length, and the common prefix | |
16925 | # contains only leading zeros. Consider the longer to be less. | |
16926 | d1 = -len1 | |
16927 | d2 = -len2 | |
16928 | } else { | |
16929 | # Otherwise, compare as strings. | |
16930 | d1 = "x" d1 | |
16931 | d2 = "x" d2 | |
16932 | } | |
16933 | } else { | |
16934 | # A fraction is less than an integer. | |
16935 | exit 1 | |
16936 | } | |
16937 | } else { | |
16938 | if (d2 ~ /^0/) { | |
16939 | # An integer is greater than a fraction. | |
16940 | exit 2 | |
16941 | } else { | |
16942 | # Compare two integers. | |
16943 | d1 += 0 | |
16944 | d2 += 0 | |
16945 | } | |
16946 | } | |
16947 | } else { | |
16948 | # The normal case, without worrying about digits. | |
16949 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
16950 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
16951 | } | |
16952 | if (d1 < d2) exit 1 | |
16953 | if (d1 > d2) exit 2 | |
16954 | } | |
16955 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
16956 | # which mishandles some comparisons of empty strings to integers. | |
16957 | if (length(v2)) exit 1 | |
16958 | if (length(v1)) exit 2 | |
16959 | } | |
16960 | ' | |
16961 | as_arg_v1=$version | |
16962 | as_arg_v2=3.0 | |
16963 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
16964 | case $? in #( | |
16965 | 1) : | |
16966 | ;; #( | |
16967 | 0) : | |
16968 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16969 | 2) : | |
16970 | ac_cv_path_BISON=$ac_path_BISON ;; #( | |
16971 | *) : | |
16972 | ;; | |
16973 | esac | |
16974 | fi | |
16975 | ||
16976 | $ac_path_BISON_found && break 3 | |
16977 | done | |
16978 | done | |
16979 | done | |
16980 | IFS=$as_save_IFS | |
16981 | if test -z "$ac_cv_path_BISON"; then | |
16982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16983 | $as_echo "no" >&6; } | |
16984 | fi | |
16985 | else | |
16986 | ac_cv_path_BISON=$BISON | |
16987 | fi | |
16988 | ||
16989 | ||
16990 | if true; then : | |
16991 | ||
16992 | BISON=$ac_cv_path_BISON | |
16993 | ||
16994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
16995 | $as_echo "$BISON" >&6; } | |
16996 | ||
16997 | else | |
16998 | if true; then : | |
16999 | ||
17000 | as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5 | |
17001 | ||
17002 | else | |
17003 | ||
17004 | BISON=: | |
17005 | ||
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17007 | $as_echo "no" >&6; } | |
17008 | ||
17009 | fi | |
17010 | fi | |
17011 | ||
17012 | ||
17013 | ||
17014 | ||
17015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 | |
17016 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
17017 | if test -z "$FLEX"; then | |
17018 | ac_path_FLEX_found=false | |
17019 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17021 | for as_dir in $PATH | |
17022 | do | |
17023 | IFS=$as_save_IFS | |
17024 | test -z "$as_dir" && as_dir=. | |
17025 | for ac_prog in flex; do | |
17026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17027 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" | |
17028 | as_fn_executable_p "$ac_path_FLEX" || continue | |
17029 | version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'` | |
17030 | if ${version:+false} :; then : | |
17031 | ||
17032 | else | |
17033 | as_arg_v1=$version | |
17034 | as_arg_v2=2.5.33 | |
17035 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17036 | case $? in #( | |
17037 | 1) : | |
17038 | ;; #( | |
17039 | 0) : | |
17040 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
17041 | 2) : | |
17042 | ac_cv_path_FLEX=$ac_path_FLEX ;; #( | |
17043 | *) : | |
17044 | ;; | |
17045 | esac | |
17046 | fi | |
17047 | ||
17048 | $ac_path_FLEX_found && break 3 | |
17049 | done | |
17050 | done | |
17051 | done | |
17052 | IFS=$as_save_IFS | |
17053 | if test -z "$ac_cv_path_FLEX"; then | |
17054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17055 | $as_echo "no" >&6; } | |
17056 | fi | |
17057 | else | |
17058 | ac_cv_path_FLEX=$FLEX | |
17059 | fi | |
17060 | ||
17061 | ||
17062 | if true; then : | |
17063 | ||
17064 | FLEX=$ac_cv_path_FLEX | |
17065 | ||
17066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 | |
17067 | $as_echo "$FLEX" >&6; } | |
17068 | ||
17069 | else | |
17070 | if true; then : | |
17071 | ||
17072 | as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5 | |
17073 | ||
17074 | else | |
17075 | ||
17076 | FLEX=: | |
17077 | ||
17078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17079 | $as_echo "no" >&6; } | |
17080 | ||
17081 | fi | |
17082 | fi | |
17083 | ||
17084 | ||
17085 | ||
17086 | ||
17087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
17088 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
17089 | if test -z "$GPERF"; then | |
17090 | ac_path_GPERF_found=false | |
17091 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17093 | for as_dir in $PATH | |
17094 | do | |
17095 | IFS=$as_save_IFS | |
17096 | test -z "$as_dir" && as_dir=. | |
17097 | for ac_prog in gperf; do | |
17098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17099 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" | |
17100 | as_fn_executable_p "$ac_path_GPERF" || continue | |
17101 | version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
17102 | if ${version:+false} :; then : | |
17103 | ||
17104 | else | |
17105 | as_arg_v1=$version | |
17106 | as_arg_v2=3.0.3 | |
17107 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17108 | case $? in #( | |
17109 | 1) : | |
17110 | ;; #( | |
17111 | 0) : | |
17112 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
17113 | 2) : | |
17114 | ac_cv_path_GPERF=$ac_path_GPERF ;; #( | |
17115 | *) : | |
17116 | ;; | |
17117 | esac | |
17118 | fi | |
17119 | ||
17120 | $ac_path_GPERF_found && break 3 | |
17121 | done | |
17122 | done | |
17123 | done | |
17124 | IFS=$as_save_IFS | |
17125 | if test -z "$ac_cv_path_GPERF"; then | |
17126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17127 | $as_echo "no" >&6; } | |
17128 | fi | |
17129 | else | |
17130 | ac_cv_path_GPERF=$GPERF | |
17131 | fi | |
17132 | ||
17133 | ||
17134 | if true; then : | |
17135 | ||
17136 | GPERF=$ac_cv_path_GPERF | |
17137 | ||
17138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 | |
17139 | $as_echo "$GPERF" >&6; } | |
17140 | ||
17141 | else | |
17142 | if true; then : | |
17143 | ||
17144 | as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5 | |
17145 | ||
17146 | else | |
17147 | ||
17148 | GPERF=: | |
17149 | ||
17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17151 | $as_echo "no" >&6; } | |
17152 | ||
17153 | fi | |
17154 | fi | |
17155 | ||
17156 | ||
17157 | ||
17158 | ||
17159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5 | |
17160 | $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; } | |
17161 | if test -z "$GNUTAR"; then | |
17162 | ac_path_GNUTAR_found=false | |
17163 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17165 | for as_dir in $PATH | |
17166 | do | |
17167 | IFS=$as_save_IFS | |
17168 | test -z "$as_dir" && as_dir=. | |
17169 | for ac_prog in tar gtar gnutar; do | |
17170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17171 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
17172 | as_fn_executable_p "$ac_path_GNUTAR" || continue | |
17173 | version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` | |
17174 | if ${version:+false} :; then : | |
17175 | ||
17176 | else | |
17177 | as_arg_v1=$version | |
17178 | as_arg_v2=1.19 | |
17179 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
17180 | case $? in #( | |
17181 | 1) : | |
17182 | ;; #( | |
17183 | 0) : | |
17184 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
17185 | 2) : | |
17186 | ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #( | |
17187 | *) : | |
17188 | ;; | |
17189 | esac | |
17190 | fi | |
17191 | ||
17192 | $ac_path_GNUTAR_found && break 3 | |
17193 | done | |
17194 | done | |
17195 | done | |
17196 | IFS=$as_save_IFS | |
17197 | if test -z "$ac_cv_path_GNUTAR"; then | |
17198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17199 | $as_echo "no" >&6; } | |
17200 | fi | |
17201 | else | |
17202 | ac_cv_path_GNUTAR=$GNUTAR | |
17203 | fi | |
17204 | ||
17205 | ||
17206 | if true; then : | |
17207 | ||
17208 | GNUTAR=$ac_cv_path_GNUTAR | |
17209 | ||
17210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 | |
17211 | $as_echo "$GNUTAR" >&6; } | |
17212 | ||
17213 | else | |
17214 | if true; then : | |
17215 | ||
17216 | as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5 | |
17217 | ||
17218 | else | |
17219 | ||
17220 | GNUTAR=: | |
17221 | ||
17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17223 | $as_echo "no" >&6; } | |
17224 | ||
17225 | fi | |
17226 | fi | |
17227 | ||
17228 | ||
17229 | ||
17230 | ||
17231 | ||
17232 | ||
17233 | ||
17234 | ||
17235 | ||
17236 | ||
17237 | ac_ext=c | |
17238 | ac_cpp='$CPP $CPPFLAGS' | |
17239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17242 | ||
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 | |
17244 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | |
17245 | if ${ac_cv_cflags_warn_all+:} false; then : | |
17246 | $as_echo_n "(cached) " >&6 | |
17247 | else | |
17248 | ac_cv_cflags_warn_all="no, unknown" | |
17249 | ac_save_CFLAGS="$CFLAGS" | |
17250 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17251 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17253 | /* end confdefs.h. */ | |
17254 | ||
17255 | int | |
17256 | main () | |
17257 | { | |
17258 | ||
17259 | ; | |
17260 | return 0; | |
17261 | } | |
17262 | _ACEOF | |
17263 | if ac_fn_c_try_compile "$LINENO"; then : | |
17264 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17265 | fi | |
17266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17267 | done | |
17268 | CFLAGS="$ac_save_CFLAGS" | |
17269 | ||
17270 | fi | |
17271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | |
17272 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | |
17273 | ||
17274 | ||
17275 | case ".$ac_cv_cflags_warn_all" in | |
17276 | .ok|.ok,*) ;; | |
17277 | .|.no|.no,*) ;; | |
17278 | *) if ${CFLAGS+:} false; then : | |
17279 | case " $CFLAGS " in | |
17280 | *" $ac_cv_cflags_warn_all "*) | |
17281 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 | |
17282 | (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 | |
17283 | ac_status=$? | |
17284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17285 | test $ac_status = 0; } | |
17286 | ;; | |
17287 | *) | |
17288 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | |
17289 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | |
17290 | ac_status=$? | |
17291 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17292 | test $ac_status = 0; } | |
17293 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | |
17294 | ;; | |
17295 | esac | |
17296 | else | |
17297 | CFLAGS="$ac_cv_cflags_warn_all" | |
17298 | fi | |
17299 | ;; | |
17300 | esac | |
17301 | ||
17302 | ac_ext=cpp | |
17303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17304 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17305 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17306 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17307 | ||
17308 | ||
17309 | ac_ext=cpp | |
17310 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17311 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17312 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17313 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17314 | ||
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 | |
17316 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
17317 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
17318 | $as_echo_n "(cached) " >&6 | |
17319 | else | |
17320 | ac_cv_cxxflags_warn_all="no, unknown" | |
17321 | ac_save_CXXFLAGS="$CXXFLAGS" | |
17322 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17323 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17325 | /* end confdefs.h. */ | |
17326 | ||
17327 | int | |
17328 | main () | |
17329 | { | |
17330 | ||
17331 | ; | |
17332 | return 0; | |
17333 | } | |
17334 | _ACEOF | |
17335 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17336 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17337 | fi | |
17338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17339 | done | |
17340 | CXXFLAGS="$ac_save_CXXFLAGS" | |
17341 | ||
17342 | fi | |
17343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
17344 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
17345 | ||
17346 | ||
17347 | case ".$ac_cv_cxxflags_warn_all" in | |
17348 | .ok|.ok,*) ;; | |
17349 | .|.no|.no,*) ;; | |
17350 | *) if ${CXXFLAGS+:} false; then : | |
17351 | case " $CXXFLAGS " in | |
17352 | *" $ac_cv_cxxflags_warn_all "*) | |
17353 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
17354 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
17355 | ac_status=$? | |
17356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17357 | test $ac_status = 0; } | |
17358 | ;; | |
17359 | *) | |
17360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
17361 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
17362 | ac_status=$? | |
17363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17364 | test $ac_status = 0; } | |
17365 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
17366 | ;; | |
17367 | esac | |
17368 | else | |
17369 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
17370 | fi | |
17371 | ;; | |
17372 | esac | |
17373 | ||
17374 | ac_ext=cpp | |
17375 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17376 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17377 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17378 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17379 | ||
17380 | ||
17381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5 | |
17382 | $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; } | |
17383 | if ${ac_cv_cxxflags_warn_all+:} false; then : | |
17384 | $as_echo_n "(cached) " >&6 | |
17385 | else | |
17386 | ac_cv_cxxflags_warn_all="no, unknown" | |
17387 | ac_save_CXXFLAGS="$CXXFLAGS" | |
17388 | for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # | |
17389 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
17390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17391 | /* end confdefs.h. */ | |
17392 | ||
17393 | int | |
17394 | main () | |
17395 | { | |
17396 | ||
17397 | ; | |
17398 | return 0; | |
17399 | } | |
17400 | _ACEOF | |
17401 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17402 | ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | |
17403 | fi | |
17404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17405 | done | |
17406 | CXXFLAGS="$ac_save_CXXFLAGS" | |
17407 | ||
17408 | fi | |
17409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5 | |
17410 | $as_echo "$ac_cv_cxxflags_warn_all" >&6; } | |
17411 | ||
17412 | ||
17413 | case ".$ac_cv_cxxflags_warn_all" in | |
17414 | .ok|.ok,*) ;; | |
17415 | .|.no|.no,*) ;; | |
17416 | *) if ${CXXFLAGS+:} false; then : | |
17417 | case " $CXXFLAGS " in | |
17418 | *" $ac_cv_cxxflags_warn_all "*) | |
17419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5 | |
17420 | (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5 | |
17421 | ac_status=$? | |
17422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17423 | test $ac_status = 0; } | |
17424 | ;; | |
17425 | *) | |
17426 | { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5 | |
17427 | (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5 | |
17428 | ac_status=$? | |
17429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17430 | test $ac_status = 0; } | |
17431 | CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all" | |
17432 | ;; | |
17433 | esac | |
17434 | else | |
17435 | CXXFLAGS="$ac_cv_cxxflags_warn_all" | |
17436 | fi | |
17437 | ;; | |
17438 | esac | |
17439 | ||
17440 | ||
17441 | ||
17442 | ||
17443 | ||
17444 | ac_ext=c | |
17445 | ac_cpp='$CPP $CPPFLAGS' | |
17446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17449 | ||
17450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5 | |
17451 | $as_echo_n "checking for cc -Werror... " >&6; } | |
17452 | ||
17453 | cy_save=$CFLAGS | |
17454 | ||
17455 | for element in -Werror; do | |
17456 | haveit= | |
17457 | for x in $CFLAGS; do | |
17458 | ||
17459 | acl_save_prefix="$prefix" | |
17460 | prefix="$acl_final_prefix" | |
17461 | acl_save_exec_prefix="$exec_prefix" | |
17462 | exec_prefix="$acl_final_exec_prefix" | |
17463 | eval x=\"$x\" | |
17464 | exec_prefix="$acl_save_exec_prefix" | |
17465 | prefix="$acl_save_prefix" | |
17466 | ||
17467 | if test "X$x" = "X$element"; then | |
17468 | haveit=yes | |
17469 | break | |
17470 | fi | |
17471 | done | |
17472 | if test -z "$haveit"; then | |
17473 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17474 | fi | |
17475 | done | |
17476 | ||
17477 | ||
17478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17479 | /* end confdefs.h. */ | |
17480 | ||
17481 | _ACEOF | |
17482 | if ac_fn_c_try_compile "$LINENO"; then : | |
17483 | cy_good=1 | |
17484 | else | |
17485 | cy_good=0 | |
17486 | fi | |
17487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17488 | ||
17489 | CFLAGS=$cy_save | |
17490 | if test "x$cy_good" = x1; then : | |
17491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17492 | $as_echo "yes" >&6; } | |
17493 | ||
17494 | for element in -Werror; do | |
17495 | haveit= | |
17496 | for x in $CFLAGS; do | |
17497 | ||
17498 | acl_save_prefix="$prefix" | |
17499 | prefix="$acl_final_prefix" | |
17500 | acl_save_exec_prefix="$exec_prefix" | |
17501 | exec_prefix="$acl_final_exec_prefix" | |
17502 | eval x=\"$x\" | |
17503 | exec_prefix="$acl_save_exec_prefix" | |
17504 | prefix="$acl_save_prefix" | |
17505 | ||
17506 | if test "X$x" = "X$element"; then | |
17507 | haveit=yes | |
17508 | break | |
17509 | fi | |
17510 | done | |
17511 | if test -z "$haveit"; then | |
17512 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17513 | fi | |
17514 | done | |
17515 | ||
17516 | ||
17517 | else | |
17518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17519 | $as_echo "no" >&6; } | |
17520 | fi | |
17521 | ||
17522 | ac_ext=cpp | |
17523 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17524 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17525 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17526 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17527 | ||
17528 | ||
17529 | ||
17530 | ac_ext=cpp | |
17531 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17535 | ||
17536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5 | |
17537 | $as_echo_n "checking for c++ -Werror... " >&6; } | |
17538 | ||
17539 | cy_save=$CXXFLAGS | |
17540 | ||
17541 | for element in -Werror; do | |
17542 | haveit= | |
17543 | for x in $CXXFLAGS; do | |
17544 | ||
17545 | acl_save_prefix="$prefix" | |
17546 | prefix="$acl_final_prefix" | |
17547 | acl_save_exec_prefix="$exec_prefix" | |
17548 | exec_prefix="$acl_final_exec_prefix" | |
17549 | eval x=\"$x\" | |
17550 | exec_prefix="$acl_save_exec_prefix" | |
17551 | prefix="$acl_save_prefix" | |
17552 | ||
17553 | if test "X$x" = "X$element"; then | |
17554 | haveit=yes | |
17555 | break | |
17556 | fi | |
17557 | done | |
17558 | if test -z "$haveit"; then | |
17559 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17560 | fi | |
17561 | done | |
17562 | ||
17563 | ||
17564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17565 | /* end confdefs.h. */ | |
17566 | ||
17567 | _ACEOF | |
17568 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17569 | cy_good=1 | |
17570 | else | |
17571 | cy_good=0 | |
17572 | fi | |
17573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17574 | ||
17575 | CXXFLAGS=$cy_save | |
17576 | if test "x$cy_good" = x1; then : | |
17577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17578 | $as_echo "yes" >&6; } | |
17579 | ||
17580 | for element in -Werror; do | |
17581 | haveit= | |
17582 | for x in $CXXFLAGS; do | |
17583 | ||
17584 | acl_save_prefix="$prefix" | |
17585 | prefix="$acl_final_prefix" | |
17586 | acl_save_exec_prefix="$exec_prefix" | |
17587 | exec_prefix="$acl_final_exec_prefix" | |
17588 | eval x=\"$x\" | |
17589 | exec_prefix="$acl_save_exec_prefix" | |
17590 | prefix="$acl_save_prefix" | |
17591 | ||
17592 | if test "X$x" = "X$element"; then | |
17593 | haveit=yes | |
17594 | break | |
17595 | fi | |
17596 | done | |
17597 | if test -z "$haveit"; then | |
17598 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17599 | fi | |
17600 | done | |
17601 | ||
17602 | ||
17603 | else | |
17604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17605 | $as_echo "no" >&6; } | |
17606 | fi | |
17607 | ||
17608 | ac_ext=cpp | |
17609 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17610 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17611 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17612 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17613 | ||
17614 | ||
17615 | ||
17616 | ac_ext=mm | |
17617 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17618 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17619 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17620 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17621 | ||
17622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5 | |
17623 | $as_echo_n "checking for c++ -ObjC -Werror... " >&6; } | |
17624 | ||
17625 | cy_save=$OBJCXXFLAGS | |
17626 | ||
17627 | for element in -Werror; do | |
17628 | haveit= | |
17629 | for x in $OBJCXXFLAGS; do | |
17630 | ||
17631 | acl_save_prefix="$prefix" | |
17632 | prefix="$acl_final_prefix" | |
17633 | acl_save_exec_prefix="$exec_prefix" | |
17634 | exec_prefix="$acl_final_exec_prefix" | |
17635 | eval x=\"$x\" | |
17636 | exec_prefix="$acl_save_exec_prefix" | |
17637 | prefix="$acl_save_prefix" | |
17638 | ||
17639 | if test "X$x" = "X$element"; then | |
17640 | haveit=yes | |
17641 | break | |
17642 | fi | |
17643 | done | |
17644 | if test -z "$haveit"; then | |
17645 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17646 | fi | |
17647 | done | |
17648 | ||
17649 | ||
17650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17651 | /* end confdefs.h. */ | |
17652 | ||
17653 | _ACEOF | |
17654 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17655 | cy_good=1 | |
17656 | else | |
17657 | cy_good=0 | |
17658 | fi | |
17659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17660 | ||
17661 | OBJCXXFLAGS=$cy_save | |
17662 | if test "x$cy_good" = x1; then : | |
17663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17664 | $as_echo "yes" >&6; } | |
17665 | ||
17666 | for element in -Werror; do | |
17667 | haveit= | |
17668 | for x in $OBJCXXFLAGS; do | |
17669 | ||
17670 | acl_save_prefix="$prefix" | |
17671 | prefix="$acl_final_prefix" | |
17672 | acl_save_exec_prefix="$exec_prefix" | |
17673 | exec_prefix="$acl_final_exec_prefix" | |
17674 | eval x=\"$x\" | |
17675 | exec_prefix="$acl_save_exec_prefix" | |
17676 | prefix="$acl_save_prefix" | |
17677 | ||
17678 | if test "X$x" = "X$element"; then | |
17679 | haveit=yes | |
17680 | break | |
17681 | fi | |
17682 | done | |
17683 | if test -z "$haveit"; then | |
17684 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17685 | fi | |
17686 | done | |
17687 | ||
17688 | ||
17689 | else | |
17690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17691 | $as_echo "no" >&6; } | |
17692 | fi | |
17693 | ||
17694 | ac_ext=cpp | |
17695 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17696 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17697 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17698 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17699 | ||
17700 | ||
17701 | ||
17702 | ||
17703 | ||
17704 | ||
17705 | ac_ext=c | |
17706 | ac_cpp='$CPP $CPPFLAGS' | |
17707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17710 | ||
17711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5 | |
17712 | $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; } | |
17713 | ||
17714 | cy_save=$CFLAGS | |
17715 | ||
17716 | for element in -Wno-deprecated-declarations; do | |
17717 | haveit= | |
17718 | for x in $CFLAGS; do | |
17719 | ||
17720 | acl_save_prefix="$prefix" | |
17721 | prefix="$acl_final_prefix" | |
17722 | acl_save_exec_prefix="$exec_prefix" | |
17723 | exec_prefix="$acl_final_exec_prefix" | |
17724 | eval x=\"$x\" | |
17725 | exec_prefix="$acl_save_exec_prefix" | |
17726 | prefix="$acl_save_prefix" | |
17727 | ||
17728 | if test "X$x" = "X$element"; then | |
17729 | haveit=yes | |
17730 | break | |
17731 | fi | |
17732 | done | |
17733 | if test -z "$haveit"; then | |
17734 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17735 | fi | |
17736 | done | |
17737 | ||
17738 | ||
17739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17740 | /* end confdefs.h. */ | |
17741 | ||
17742 | _ACEOF | |
17743 | if ac_fn_c_try_compile "$LINENO"; then : | |
17744 | cy_good=1 | |
17745 | else | |
17746 | cy_good=0 | |
17747 | fi | |
17748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17749 | ||
17750 | CFLAGS=$cy_save | |
17751 | if test "x$cy_good" = x1; then : | |
17752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17753 | $as_echo "yes" >&6; } | |
17754 | ||
17755 | for element in -Wno-deprecated-declarations; do | |
17756 | haveit= | |
17757 | for x in $CFLAGS; do | |
17758 | ||
17759 | acl_save_prefix="$prefix" | |
17760 | prefix="$acl_final_prefix" | |
17761 | acl_save_exec_prefix="$exec_prefix" | |
17762 | exec_prefix="$acl_final_exec_prefix" | |
17763 | eval x=\"$x\" | |
17764 | exec_prefix="$acl_save_exec_prefix" | |
17765 | prefix="$acl_save_prefix" | |
17766 | ||
17767 | if test "X$x" = "X$element"; then | |
17768 | haveit=yes | |
17769 | break | |
17770 | fi | |
17771 | done | |
17772 | if test -z "$haveit"; then | |
17773 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17774 | fi | |
17775 | done | |
17776 | ||
17777 | ||
17778 | else | |
17779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17780 | $as_echo "no" >&6; } | |
17781 | fi | |
17782 | ||
17783 | ac_ext=cpp | |
17784 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17788 | ||
17789 | ||
17790 | ||
17791 | ac_ext=cpp | |
17792 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17796 | ||
17797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5 | |
17798 | $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; } | |
17799 | ||
17800 | cy_save=$CXXFLAGS | |
17801 | ||
17802 | for element in -Wno-deprecated-declarations; do | |
17803 | haveit= | |
17804 | for x in $CXXFLAGS; do | |
17805 | ||
17806 | acl_save_prefix="$prefix" | |
17807 | prefix="$acl_final_prefix" | |
17808 | acl_save_exec_prefix="$exec_prefix" | |
17809 | exec_prefix="$acl_final_exec_prefix" | |
17810 | eval x=\"$x\" | |
17811 | exec_prefix="$acl_save_exec_prefix" | |
17812 | prefix="$acl_save_prefix" | |
17813 | ||
17814 | if test "X$x" = "X$element"; then | |
17815 | haveit=yes | |
17816 | break | |
17817 | fi | |
17818 | done | |
17819 | if test -z "$haveit"; then | |
17820 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17821 | fi | |
17822 | done | |
17823 | ||
17824 | ||
17825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17826 | /* end confdefs.h. */ | |
17827 | ||
17828 | _ACEOF | |
17829 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
17830 | cy_good=1 | |
17831 | else | |
17832 | cy_good=0 | |
17833 | fi | |
17834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17835 | ||
17836 | CXXFLAGS=$cy_save | |
17837 | if test "x$cy_good" = x1; then : | |
17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17839 | $as_echo "yes" >&6; } | |
17840 | ||
17841 | for element in -Wno-deprecated-declarations; do | |
17842 | haveit= | |
17843 | for x in $CXXFLAGS; do | |
17844 | ||
17845 | acl_save_prefix="$prefix" | |
17846 | prefix="$acl_final_prefix" | |
17847 | acl_save_exec_prefix="$exec_prefix" | |
17848 | exec_prefix="$acl_final_exec_prefix" | |
17849 | eval x=\"$x\" | |
17850 | exec_prefix="$acl_save_exec_prefix" | |
17851 | prefix="$acl_save_prefix" | |
17852 | ||
17853 | if test "X$x" = "X$element"; then | |
17854 | haveit=yes | |
17855 | break | |
17856 | fi | |
17857 | done | |
17858 | if test -z "$haveit"; then | |
17859 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17860 | fi | |
17861 | done | |
17862 | ||
17863 | ||
17864 | else | |
17865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17866 | $as_echo "no" >&6; } | |
17867 | fi | |
17868 | ||
17869 | ac_ext=cpp | |
17870 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17871 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17872 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17873 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17874 | ||
17875 | ||
17876 | ||
17877 | ac_ext=mm | |
17878 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17879 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17880 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17881 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17882 | ||
17883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5 | |
17884 | $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; } | |
17885 | ||
17886 | cy_save=$OBJCXXFLAGS | |
17887 | ||
17888 | for element in -Wno-deprecated-declarations; do | |
17889 | haveit= | |
17890 | for x in $OBJCXXFLAGS; do | |
17891 | ||
17892 | acl_save_prefix="$prefix" | |
17893 | prefix="$acl_final_prefix" | |
17894 | acl_save_exec_prefix="$exec_prefix" | |
17895 | exec_prefix="$acl_final_exec_prefix" | |
17896 | eval x=\"$x\" | |
17897 | exec_prefix="$acl_save_exec_prefix" | |
17898 | prefix="$acl_save_prefix" | |
17899 | ||
17900 | if test "X$x" = "X$element"; then | |
17901 | haveit=yes | |
17902 | break | |
17903 | fi | |
17904 | done | |
17905 | if test -z "$haveit"; then | |
17906 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17907 | fi | |
17908 | done | |
17909 | ||
17910 | ||
17911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17912 | /* end confdefs.h. */ | |
17913 | ||
17914 | _ACEOF | |
17915 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17916 | cy_good=1 | |
17917 | else | |
17918 | cy_good=0 | |
17919 | fi | |
17920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17921 | ||
17922 | OBJCXXFLAGS=$cy_save | |
17923 | if test "x$cy_good" = x1; then : | |
17924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17925 | $as_echo "yes" >&6; } | |
17926 | ||
17927 | for element in -Wno-deprecated-declarations; do | |
17928 | haveit= | |
17929 | for x in $OBJCXXFLAGS; do | |
17930 | ||
17931 | acl_save_prefix="$prefix" | |
17932 | prefix="$acl_final_prefix" | |
17933 | acl_save_exec_prefix="$exec_prefix" | |
17934 | exec_prefix="$acl_final_exec_prefix" | |
17935 | eval x=\"$x\" | |
17936 | exec_prefix="$acl_save_exec_prefix" | |
17937 | prefix="$acl_save_prefix" | |
17938 | ||
17939 | if test "X$x" = "X$element"; then | |
17940 | haveit=yes | |
17941 | break | |
17942 | fi | |
17943 | done | |
17944 | if test -z "$haveit"; then | |
17945 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
17946 | fi | |
17947 | done | |
17948 | ||
17949 | ||
17950 | else | |
17951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17952 | $as_echo "no" >&6; } | |
17953 | fi | |
17954 | ||
17955 | ac_ext=cpp | |
17956 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17957 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17958 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17959 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17960 | ||
17961 | ||
17962 | ||
17963 | ||
17964 | ||
17965 | ||
17966 | ac_ext=c | |
17967 | ac_cpp='$CPP $CPPFLAGS' | |
17968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17971 | ||
17972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5 | |
17973 | $as_echo_n "checking for cc -Wno-dangling-else... " >&6; } | |
17974 | ||
17975 | cy_save=$CFLAGS | |
17976 | ||
17977 | for element in -Wno-dangling-else; do | |
17978 | haveit= | |
17979 | for x in $CFLAGS; do | |
17980 | ||
17981 | acl_save_prefix="$prefix" | |
17982 | prefix="$acl_final_prefix" | |
17983 | acl_save_exec_prefix="$exec_prefix" | |
17984 | exec_prefix="$acl_final_exec_prefix" | |
17985 | eval x=\"$x\" | |
17986 | exec_prefix="$acl_save_exec_prefix" | |
17987 | prefix="$acl_save_prefix" | |
17988 | ||
17989 | if test "X$x" = "X$element"; then | |
17990 | haveit=yes | |
17991 | break | |
17992 | fi | |
17993 | done | |
17994 | if test -z "$haveit"; then | |
17995 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
17996 | fi | |
17997 | done | |
17998 | ||
17999 | ||
18000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18001 | /* end confdefs.h. */ | |
18002 | ||
18003 | _ACEOF | |
18004 | if ac_fn_c_try_compile "$LINENO"; then : | |
18005 | cy_good=1 | |
18006 | else | |
18007 | cy_good=0 | |
18008 | fi | |
18009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18010 | ||
18011 | CFLAGS=$cy_save | |
18012 | if test "x$cy_good" = x1; then : | |
18013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18014 | $as_echo "yes" >&6; } | |
18015 | ||
18016 | for element in -Wno-dangling-else; do | |
18017 | haveit= | |
18018 | for x in $CFLAGS; do | |
18019 | ||
18020 | acl_save_prefix="$prefix" | |
18021 | prefix="$acl_final_prefix" | |
18022 | acl_save_exec_prefix="$exec_prefix" | |
18023 | exec_prefix="$acl_final_exec_prefix" | |
18024 | eval x=\"$x\" | |
18025 | exec_prefix="$acl_save_exec_prefix" | |
18026 | prefix="$acl_save_prefix" | |
18027 | ||
18028 | if test "X$x" = "X$element"; then | |
18029 | haveit=yes | |
18030 | break | |
18031 | fi | |
18032 | done | |
18033 | if test -z "$haveit"; then | |
18034 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18035 | fi | |
18036 | done | |
18037 | ||
18038 | ||
18039 | else | |
18040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18041 | $as_echo "no" >&6; } | |
18042 | fi | |
18043 | ||
18044 | ac_ext=cpp | |
18045 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18046 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18047 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18048 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18049 | ||
18050 | ||
18051 | ||
18052 | ac_ext=cpp | |
18053 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18054 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18055 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18056 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18057 | ||
18058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5 | |
18059 | $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; } | |
18060 | ||
18061 | cy_save=$CXXFLAGS | |
18062 | ||
18063 | for element in -Wno-dangling-else; do | |
18064 | haveit= | |
18065 | for x in $CXXFLAGS; do | |
18066 | ||
18067 | acl_save_prefix="$prefix" | |
18068 | prefix="$acl_final_prefix" | |
18069 | acl_save_exec_prefix="$exec_prefix" | |
18070 | exec_prefix="$acl_final_exec_prefix" | |
18071 | eval x=\"$x\" | |
18072 | exec_prefix="$acl_save_exec_prefix" | |
18073 | prefix="$acl_save_prefix" | |
18074 | ||
18075 | if test "X$x" = "X$element"; then | |
18076 | haveit=yes | |
18077 | break | |
18078 | fi | |
18079 | done | |
18080 | if test -z "$haveit"; then | |
18081 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18082 | fi | |
18083 | done | |
18084 | ||
18085 | ||
18086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18087 | /* end confdefs.h. */ | |
18088 | ||
18089 | _ACEOF | |
18090 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18091 | cy_good=1 | |
18092 | else | |
18093 | cy_good=0 | |
18094 | fi | |
18095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18096 | ||
18097 | CXXFLAGS=$cy_save | |
18098 | if test "x$cy_good" = x1; then : | |
18099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18100 | $as_echo "yes" >&6; } | |
18101 | ||
18102 | for element in -Wno-dangling-else; do | |
18103 | haveit= | |
18104 | for x in $CXXFLAGS; do | |
18105 | ||
18106 | acl_save_prefix="$prefix" | |
18107 | prefix="$acl_final_prefix" | |
18108 | acl_save_exec_prefix="$exec_prefix" | |
18109 | exec_prefix="$acl_final_exec_prefix" | |
18110 | eval x=\"$x\" | |
18111 | exec_prefix="$acl_save_exec_prefix" | |
18112 | prefix="$acl_save_prefix" | |
18113 | ||
18114 | if test "X$x" = "X$element"; then | |
18115 | haveit=yes | |
18116 | break | |
18117 | fi | |
18118 | done | |
18119 | if test -z "$haveit"; then | |
18120 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18121 | fi | |
18122 | done | |
18123 | ||
18124 | ||
18125 | else | |
18126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18127 | $as_echo "no" >&6; } | |
18128 | fi | |
18129 | ||
18130 | ac_ext=cpp | |
18131 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18132 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18133 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18134 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18135 | ||
18136 | ||
18137 | ||
18138 | ac_ext=mm | |
18139 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18140 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18141 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18142 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18143 | ||
18144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5 | |
18145 | $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; } | |
18146 | ||
18147 | cy_save=$OBJCXXFLAGS | |
18148 | ||
18149 | for element in -Wno-dangling-else; do | |
18150 | haveit= | |
18151 | for x in $OBJCXXFLAGS; do | |
18152 | ||
18153 | acl_save_prefix="$prefix" | |
18154 | prefix="$acl_final_prefix" | |
18155 | acl_save_exec_prefix="$exec_prefix" | |
18156 | exec_prefix="$acl_final_exec_prefix" | |
18157 | eval x=\"$x\" | |
18158 | exec_prefix="$acl_save_exec_prefix" | |
18159 | prefix="$acl_save_prefix" | |
18160 | ||
18161 | if test "X$x" = "X$element"; then | |
18162 | haveit=yes | |
18163 | break | |
18164 | fi | |
18165 | done | |
18166 | if test -z "$haveit"; then | |
18167 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18168 | fi | |
18169 | done | |
18170 | ||
18171 | ||
18172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18173 | /* end confdefs.h. */ | |
18174 | ||
18175 | _ACEOF | |
18176 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18177 | cy_good=1 | |
18178 | else | |
18179 | cy_good=0 | |
18180 | fi | |
18181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18182 | ||
18183 | OBJCXXFLAGS=$cy_save | |
18184 | if test "x$cy_good" = x1; then : | |
18185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18186 | $as_echo "yes" >&6; } | |
18187 | ||
18188 | for element in -Wno-dangling-else; do | |
18189 | haveit= | |
18190 | for x in $OBJCXXFLAGS; do | |
18191 | ||
18192 | acl_save_prefix="$prefix" | |
18193 | prefix="$acl_final_prefix" | |
18194 | acl_save_exec_prefix="$exec_prefix" | |
18195 | exec_prefix="$acl_final_exec_prefix" | |
18196 | eval x=\"$x\" | |
18197 | exec_prefix="$acl_save_exec_prefix" | |
18198 | prefix="$acl_save_prefix" | |
18199 | ||
18200 | if test "X$x" = "X$element"; then | |
18201 | haveit=yes | |
18202 | break | |
18203 | fi | |
18204 | done | |
18205 | if test -z "$haveit"; then | |
18206 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18207 | fi | |
18208 | done | |
18209 | ||
18210 | ||
18211 | else | |
18212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18213 | $as_echo "no" >&6; } | |
18214 | fi | |
18215 | ||
18216 | ac_ext=cpp | |
18217 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18218 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18219 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18220 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18221 | ||
18222 | ||
18223 | ||
18224 | ||
18225 | ||
18226 | ac_ext=c | |
18227 | ac_cpp='$CPP $CPPFLAGS' | |
18228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18231 | ||
18232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5 | |
18233 | $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; } | |
18234 | ||
18235 | cy_save=$CFLAGS | |
18236 | ||
18237 | for element in -Wno-overloaded-virtual; do | |
18238 | haveit= | |
18239 | for x in $CFLAGS; do | |
18240 | ||
18241 | acl_save_prefix="$prefix" | |
18242 | prefix="$acl_final_prefix" | |
18243 | acl_save_exec_prefix="$exec_prefix" | |
18244 | exec_prefix="$acl_final_exec_prefix" | |
18245 | eval x=\"$x\" | |
18246 | exec_prefix="$acl_save_exec_prefix" | |
18247 | prefix="$acl_save_prefix" | |
18248 | ||
18249 | if test "X$x" = "X$element"; then | |
18250 | haveit=yes | |
18251 | break | |
18252 | fi | |
18253 | done | |
18254 | if test -z "$haveit"; then | |
18255 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18256 | fi | |
18257 | done | |
18258 | ||
18259 | ||
18260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18261 | /* end confdefs.h. */ | |
18262 | ||
18263 | _ACEOF | |
18264 | if ac_fn_c_try_compile "$LINENO"; then : | |
18265 | cy_good=1 | |
18266 | else | |
18267 | cy_good=0 | |
18268 | fi | |
18269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18270 | ||
18271 | CFLAGS=$cy_save | |
18272 | if test "x$cy_good" = x1; then : | |
18273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18274 | $as_echo "yes" >&6; } | |
18275 | ||
18276 | for element in -Wno-overloaded-virtual; do | |
18277 | haveit= | |
18278 | for x in $CFLAGS; do | |
18279 | ||
18280 | acl_save_prefix="$prefix" | |
18281 | prefix="$acl_final_prefix" | |
18282 | acl_save_exec_prefix="$exec_prefix" | |
18283 | exec_prefix="$acl_final_exec_prefix" | |
18284 | eval x=\"$x\" | |
18285 | exec_prefix="$acl_save_exec_prefix" | |
18286 | prefix="$acl_save_prefix" | |
18287 | ||
18288 | if test "X$x" = "X$element"; then | |
18289 | haveit=yes | |
18290 | break | |
18291 | fi | |
18292 | done | |
18293 | if test -z "$haveit"; then | |
18294 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18295 | fi | |
18296 | done | |
18297 | ||
18298 | ||
18299 | else | |
18300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18301 | $as_echo "no" >&6; } | |
18302 | fi | |
18303 | ||
18304 | ac_ext=cpp | |
18305 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18309 | ||
18310 | ||
18311 | ||
18312 | ac_ext=cpp | |
18313 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18314 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18315 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18316 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18317 | ||
18318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5 | |
18319 | $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; } | |
18320 | ||
18321 | cy_save=$CXXFLAGS | |
18322 | ||
18323 | for element in -Wno-overloaded-virtual; do | |
18324 | haveit= | |
18325 | for x in $CXXFLAGS; do | |
18326 | ||
18327 | acl_save_prefix="$prefix" | |
18328 | prefix="$acl_final_prefix" | |
18329 | acl_save_exec_prefix="$exec_prefix" | |
18330 | exec_prefix="$acl_final_exec_prefix" | |
18331 | eval x=\"$x\" | |
18332 | exec_prefix="$acl_save_exec_prefix" | |
18333 | prefix="$acl_save_prefix" | |
18334 | ||
18335 | if test "X$x" = "X$element"; then | |
18336 | haveit=yes | |
18337 | break | |
18338 | fi | |
18339 | done | |
18340 | if test -z "$haveit"; then | |
18341 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18342 | fi | |
18343 | done | |
18344 | ||
18345 | ||
18346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18347 | /* end confdefs.h. */ | |
18348 | ||
18349 | _ACEOF | |
18350 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18351 | cy_good=1 | |
18352 | else | |
18353 | cy_good=0 | |
18354 | fi | |
18355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18356 | ||
18357 | CXXFLAGS=$cy_save | |
18358 | if test "x$cy_good" = x1; then : | |
18359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18360 | $as_echo "yes" >&6; } | |
18361 | ||
18362 | for element in -Wno-overloaded-virtual; do | |
18363 | haveit= | |
18364 | for x in $CXXFLAGS; do | |
18365 | ||
18366 | acl_save_prefix="$prefix" | |
18367 | prefix="$acl_final_prefix" | |
18368 | acl_save_exec_prefix="$exec_prefix" | |
18369 | exec_prefix="$acl_final_exec_prefix" | |
18370 | eval x=\"$x\" | |
18371 | exec_prefix="$acl_save_exec_prefix" | |
18372 | prefix="$acl_save_prefix" | |
18373 | ||
18374 | if test "X$x" = "X$element"; then | |
18375 | haveit=yes | |
18376 | break | |
18377 | fi | |
18378 | done | |
18379 | if test -z "$haveit"; then | |
18380 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18381 | fi | |
18382 | done | |
18383 | ||
18384 | ||
18385 | else | |
18386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18387 | $as_echo "no" >&6; } | |
18388 | fi | |
18389 | ||
18390 | ac_ext=cpp | |
18391 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18392 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18393 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18394 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18395 | ||
18396 | ||
18397 | ||
18398 | ac_ext=mm | |
18399 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18400 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18401 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18402 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18403 | ||
18404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5 | |
18405 | $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; } | |
18406 | ||
18407 | cy_save=$OBJCXXFLAGS | |
18408 | ||
18409 | for element in -Wno-overloaded-virtual; do | |
18410 | haveit= | |
18411 | for x in $OBJCXXFLAGS; do | |
18412 | ||
18413 | acl_save_prefix="$prefix" | |
18414 | prefix="$acl_final_prefix" | |
18415 | acl_save_exec_prefix="$exec_prefix" | |
18416 | exec_prefix="$acl_final_exec_prefix" | |
18417 | eval x=\"$x\" | |
18418 | exec_prefix="$acl_save_exec_prefix" | |
18419 | prefix="$acl_save_prefix" | |
18420 | ||
18421 | if test "X$x" = "X$element"; then | |
18422 | haveit=yes | |
18423 | break | |
18424 | fi | |
18425 | done | |
18426 | if test -z "$haveit"; then | |
18427 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18428 | fi | |
18429 | done | |
18430 | ||
18431 | ||
18432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18433 | /* end confdefs.h. */ | |
18434 | ||
18435 | _ACEOF | |
18436 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18437 | cy_good=1 | |
18438 | else | |
18439 | cy_good=0 | |
18440 | fi | |
18441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18442 | ||
18443 | OBJCXXFLAGS=$cy_save | |
18444 | if test "x$cy_good" = x1; then : | |
18445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18446 | $as_echo "yes" >&6; } | |
18447 | ||
18448 | for element in -Wno-overloaded-virtual; do | |
18449 | haveit= | |
18450 | for x in $OBJCXXFLAGS; do | |
18451 | ||
18452 | acl_save_prefix="$prefix" | |
18453 | prefix="$acl_final_prefix" | |
18454 | acl_save_exec_prefix="$exec_prefix" | |
18455 | exec_prefix="$acl_final_exec_prefix" | |
18456 | eval x=\"$x\" | |
18457 | exec_prefix="$acl_save_exec_prefix" | |
18458 | prefix="$acl_save_prefix" | |
18459 | ||
18460 | if test "X$x" = "X$element"; then | |
18461 | haveit=yes | |
18462 | break | |
18463 | fi | |
18464 | done | |
18465 | if test -z "$haveit"; then | |
18466 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18467 | fi | |
18468 | done | |
18469 | ||
18470 | ||
18471 | else | |
18472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18473 | $as_echo "no" >&6; } | |
18474 | fi | |
18475 | ||
18476 | ac_ext=cpp | |
18477 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18478 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18479 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18480 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18481 | ||
18482 | ||
18483 | ||
18484 | ||
18485 | ||
18486 | ac_ext=c | |
18487 | ac_cpp='$CPP $CPPFLAGS' | |
18488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18491 | ||
18492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5 | |
18493 | $as_echo_n "checking for cc -Wno-parentheses... " >&6; } | |
18494 | ||
18495 | cy_save=$CFLAGS | |
18496 | ||
18497 | for element in -Wno-parentheses; do | |
18498 | haveit= | |
18499 | for x in $CFLAGS; do | |
18500 | ||
18501 | acl_save_prefix="$prefix" | |
18502 | prefix="$acl_final_prefix" | |
18503 | acl_save_exec_prefix="$exec_prefix" | |
18504 | exec_prefix="$acl_final_exec_prefix" | |
18505 | eval x=\"$x\" | |
18506 | exec_prefix="$acl_save_exec_prefix" | |
18507 | prefix="$acl_save_prefix" | |
18508 | ||
18509 | if test "X$x" = "X$element"; then | |
18510 | haveit=yes | |
18511 | break | |
18512 | fi | |
18513 | done | |
18514 | if test -z "$haveit"; then | |
18515 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18516 | fi | |
18517 | done | |
18518 | ||
18519 | ||
18520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18521 | /* end confdefs.h. */ | |
18522 | ||
18523 | _ACEOF | |
18524 | if ac_fn_c_try_compile "$LINENO"; then : | |
18525 | cy_good=1 | |
18526 | else | |
18527 | cy_good=0 | |
18528 | fi | |
18529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18530 | ||
18531 | CFLAGS=$cy_save | |
18532 | if test "x$cy_good" = x1; then : | |
18533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18534 | $as_echo "yes" >&6; } | |
18535 | ||
18536 | for element in -Wno-parentheses; do | |
18537 | haveit= | |
18538 | for x in $CFLAGS; do | |
18539 | ||
18540 | acl_save_prefix="$prefix" | |
18541 | prefix="$acl_final_prefix" | |
18542 | acl_save_exec_prefix="$exec_prefix" | |
18543 | exec_prefix="$acl_final_exec_prefix" | |
18544 | eval x=\"$x\" | |
18545 | exec_prefix="$acl_save_exec_prefix" | |
18546 | prefix="$acl_save_prefix" | |
18547 | ||
18548 | if test "X$x" = "X$element"; then | |
18549 | haveit=yes | |
18550 | break | |
18551 | fi | |
18552 | done | |
18553 | if test -z "$haveit"; then | |
18554 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18555 | fi | |
18556 | done | |
18557 | ||
18558 | ||
18559 | else | |
18560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18561 | $as_echo "no" >&6; } | |
18562 | fi | |
18563 | ||
18564 | ac_ext=cpp | |
18565 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18566 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18567 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18568 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18569 | ||
18570 | ||
18571 | ||
18572 | ac_ext=cpp | |
18573 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18574 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18575 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18576 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18577 | ||
18578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5 | |
18579 | $as_echo_n "checking for c++ -Wno-parentheses... " >&6; } | |
18580 | ||
18581 | cy_save=$CXXFLAGS | |
18582 | ||
18583 | for element in -Wno-parentheses; do | |
18584 | haveit= | |
18585 | for x in $CXXFLAGS; do | |
18586 | ||
18587 | acl_save_prefix="$prefix" | |
18588 | prefix="$acl_final_prefix" | |
18589 | acl_save_exec_prefix="$exec_prefix" | |
18590 | exec_prefix="$acl_final_exec_prefix" | |
18591 | eval x=\"$x\" | |
18592 | exec_prefix="$acl_save_exec_prefix" | |
18593 | prefix="$acl_save_prefix" | |
18594 | ||
18595 | if test "X$x" = "X$element"; then | |
18596 | haveit=yes | |
18597 | break | |
18598 | fi | |
18599 | done | |
18600 | if test -z "$haveit"; then | |
18601 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18602 | fi | |
18603 | done | |
18604 | ||
18605 | ||
18606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18607 | /* end confdefs.h. */ | |
18608 | ||
18609 | _ACEOF | |
18610 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18611 | cy_good=1 | |
18612 | else | |
18613 | cy_good=0 | |
18614 | fi | |
18615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18616 | ||
18617 | CXXFLAGS=$cy_save | |
18618 | if test "x$cy_good" = x1; then : | |
18619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18620 | $as_echo "yes" >&6; } | |
18621 | ||
18622 | for element in -Wno-parentheses; do | |
18623 | haveit= | |
18624 | for x in $CXXFLAGS; do | |
18625 | ||
18626 | acl_save_prefix="$prefix" | |
18627 | prefix="$acl_final_prefix" | |
18628 | acl_save_exec_prefix="$exec_prefix" | |
18629 | exec_prefix="$acl_final_exec_prefix" | |
18630 | eval x=\"$x\" | |
18631 | exec_prefix="$acl_save_exec_prefix" | |
18632 | prefix="$acl_save_prefix" | |
18633 | ||
18634 | if test "X$x" = "X$element"; then | |
18635 | haveit=yes | |
18636 | break | |
18637 | fi | |
18638 | done | |
18639 | if test -z "$haveit"; then | |
18640 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18641 | fi | |
18642 | done | |
18643 | ||
18644 | ||
18645 | else | |
18646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18647 | $as_echo "no" >&6; } | |
18648 | fi | |
18649 | ||
18650 | ac_ext=cpp | |
18651 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18652 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18653 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18654 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18655 | ||
18656 | ||
18657 | ||
18658 | ac_ext=mm | |
18659 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18660 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18661 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18662 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18663 | ||
18664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5 | |
18665 | $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; } | |
18666 | ||
18667 | cy_save=$OBJCXXFLAGS | |
18668 | ||
18669 | for element in -Wno-parentheses; do | |
18670 | haveit= | |
18671 | for x in $OBJCXXFLAGS; do | |
18672 | ||
18673 | acl_save_prefix="$prefix" | |
18674 | prefix="$acl_final_prefix" | |
18675 | acl_save_exec_prefix="$exec_prefix" | |
18676 | exec_prefix="$acl_final_exec_prefix" | |
18677 | eval x=\"$x\" | |
18678 | exec_prefix="$acl_save_exec_prefix" | |
18679 | prefix="$acl_save_prefix" | |
18680 | ||
18681 | if test "X$x" = "X$element"; then | |
18682 | haveit=yes | |
18683 | break | |
18684 | fi | |
18685 | done | |
18686 | if test -z "$haveit"; then | |
18687 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18688 | fi | |
18689 | done | |
18690 | ||
18691 | ||
18692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18693 | /* end confdefs.h. */ | |
18694 | ||
18695 | _ACEOF | |
18696 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18697 | cy_good=1 | |
18698 | else | |
18699 | cy_good=0 | |
18700 | fi | |
18701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18702 | ||
18703 | OBJCXXFLAGS=$cy_save | |
18704 | if test "x$cy_good" = x1; then : | |
18705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18706 | $as_echo "yes" >&6; } | |
18707 | ||
18708 | for element in -Wno-parentheses; do | |
18709 | haveit= | |
18710 | for x in $OBJCXXFLAGS; do | |
18711 | ||
18712 | acl_save_prefix="$prefix" | |
18713 | prefix="$acl_final_prefix" | |
18714 | acl_save_exec_prefix="$exec_prefix" | |
18715 | exec_prefix="$acl_final_exec_prefix" | |
18716 | eval x=\"$x\" | |
18717 | exec_prefix="$acl_save_exec_prefix" | |
18718 | prefix="$acl_save_prefix" | |
18719 | ||
18720 | if test "X$x" = "X$element"; then | |
18721 | haveit=yes | |
18722 | break | |
18723 | fi | |
18724 | done | |
18725 | if test -z "$haveit"; then | |
18726 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18727 | fi | |
18728 | done | |
18729 | ||
18730 | ||
18731 | else | |
18732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18733 | $as_echo "no" >&6; } | |
18734 | fi | |
18735 | ||
18736 | ac_ext=cpp | |
18737 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18738 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18739 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18740 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18741 | ||
18742 | ||
18743 | ||
18744 | ||
18745 | ||
18746 | ac_ext=c | |
18747 | ac_cpp='$CPP $CPPFLAGS' | |
18748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18751 | ||
18752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5 | |
18753 | $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; } | |
18754 | ||
18755 | cy_save=$CFLAGS | |
18756 | ||
18757 | for element in -Wno-unneeded-internal-declaration; do | |
18758 | haveit= | |
18759 | for x in $CFLAGS; do | |
18760 | ||
18761 | acl_save_prefix="$prefix" | |
18762 | prefix="$acl_final_prefix" | |
18763 | acl_save_exec_prefix="$exec_prefix" | |
18764 | exec_prefix="$acl_final_exec_prefix" | |
18765 | eval x=\"$x\" | |
18766 | exec_prefix="$acl_save_exec_prefix" | |
18767 | prefix="$acl_save_prefix" | |
18768 | ||
18769 | if test "X$x" = "X$element"; then | |
18770 | haveit=yes | |
18771 | break | |
18772 | fi | |
18773 | done | |
18774 | if test -z "$haveit"; then | |
18775 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18776 | fi | |
18777 | done | |
18778 | ||
18779 | ||
18780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18781 | /* end confdefs.h. */ | |
18782 | ||
18783 | _ACEOF | |
18784 | if ac_fn_c_try_compile "$LINENO"; then : | |
18785 | cy_good=1 | |
18786 | else | |
18787 | cy_good=0 | |
18788 | fi | |
18789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18790 | ||
18791 | CFLAGS=$cy_save | |
18792 | if test "x$cy_good" = x1; then : | |
18793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18794 | $as_echo "yes" >&6; } | |
18795 | ||
18796 | for element in -Wno-unneeded-internal-declaration; do | |
18797 | haveit= | |
18798 | for x in $CFLAGS; do | |
18799 | ||
18800 | acl_save_prefix="$prefix" | |
18801 | prefix="$acl_final_prefix" | |
18802 | acl_save_exec_prefix="$exec_prefix" | |
18803 | exec_prefix="$acl_final_exec_prefix" | |
18804 | eval x=\"$x\" | |
18805 | exec_prefix="$acl_save_exec_prefix" | |
18806 | prefix="$acl_save_prefix" | |
18807 | ||
18808 | if test "X$x" = "X$element"; then | |
18809 | haveit=yes | |
18810 | break | |
18811 | fi | |
18812 | done | |
18813 | if test -z "$haveit"; then | |
18814 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
18815 | fi | |
18816 | done | |
18817 | ||
18818 | ||
18819 | else | |
18820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18821 | $as_echo "no" >&6; } | |
18822 | fi | |
18823 | ||
18824 | ac_ext=cpp | |
18825 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18826 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18827 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18828 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18829 | ||
18830 | ||
18831 | ||
18832 | ac_ext=cpp | |
18833 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18837 | ||
18838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5 | |
18839 | $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; } | |
18840 | ||
18841 | cy_save=$CXXFLAGS | |
18842 | ||
18843 | for element in -Wno-unneeded-internal-declaration; do | |
18844 | haveit= | |
18845 | for x in $CXXFLAGS; do | |
18846 | ||
18847 | acl_save_prefix="$prefix" | |
18848 | prefix="$acl_final_prefix" | |
18849 | acl_save_exec_prefix="$exec_prefix" | |
18850 | exec_prefix="$acl_final_exec_prefix" | |
18851 | eval x=\"$x\" | |
18852 | exec_prefix="$acl_save_exec_prefix" | |
18853 | prefix="$acl_save_prefix" | |
18854 | ||
18855 | if test "X$x" = "X$element"; then | |
18856 | haveit=yes | |
18857 | break | |
18858 | fi | |
18859 | done | |
18860 | if test -z "$haveit"; then | |
18861 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18862 | fi | |
18863 | done | |
18864 | ||
18865 | ||
18866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18867 | /* end confdefs.h. */ | |
18868 | ||
18869 | _ACEOF | |
18870 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
18871 | cy_good=1 | |
18872 | else | |
18873 | cy_good=0 | |
18874 | fi | |
18875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18876 | ||
18877 | CXXFLAGS=$cy_save | |
18878 | if test "x$cy_good" = x1; then : | |
18879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18880 | $as_echo "yes" >&6; } | |
18881 | ||
18882 | for element in -Wno-unneeded-internal-declaration; do | |
18883 | haveit= | |
18884 | for x in $CXXFLAGS; do | |
18885 | ||
18886 | acl_save_prefix="$prefix" | |
18887 | prefix="$acl_final_prefix" | |
18888 | acl_save_exec_prefix="$exec_prefix" | |
18889 | exec_prefix="$acl_final_exec_prefix" | |
18890 | eval x=\"$x\" | |
18891 | exec_prefix="$acl_save_exec_prefix" | |
18892 | prefix="$acl_save_prefix" | |
18893 | ||
18894 | if test "X$x" = "X$element"; then | |
18895 | haveit=yes | |
18896 | break | |
18897 | fi | |
18898 | done | |
18899 | if test -z "$haveit"; then | |
18900 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18901 | fi | |
18902 | done | |
18903 | ||
18904 | ||
18905 | else | |
18906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18907 | $as_echo "no" >&6; } | |
18908 | fi | |
18909 | ||
18910 | ac_ext=cpp | |
18911 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18912 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18913 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18914 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18915 | ||
18916 | ||
18917 | ||
18918 | ac_ext=mm | |
18919 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
18920 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18921 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18922 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18923 | ||
18924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5 | |
18925 | $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; } | |
18926 | ||
18927 | cy_save=$OBJCXXFLAGS | |
18928 | ||
18929 | for element in -Wno-unneeded-internal-declaration; do | |
18930 | haveit= | |
18931 | for x in $OBJCXXFLAGS; do | |
18932 | ||
18933 | acl_save_prefix="$prefix" | |
18934 | prefix="$acl_final_prefix" | |
18935 | acl_save_exec_prefix="$exec_prefix" | |
18936 | exec_prefix="$acl_final_exec_prefix" | |
18937 | eval x=\"$x\" | |
18938 | exec_prefix="$acl_save_exec_prefix" | |
18939 | prefix="$acl_save_prefix" | |
18940 | ||
18941 | if test "X$x" = "X$element"; then | |
18942 | haveit=yes | |
18943 | break | |
18944 | fi | |
18945 | done | |
18946 | if test -z "$haveit"; then | |
18947 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18948 | fi | |
18949 | done | |
18950 | ||
18951 | ||
18952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18953 | /* end confdefs.h. */ | |
18954 | ||
18955 | _ACEOF | |
18956 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18957 | cy_good=1 | |
18958 | else | |
18959 | cy_good=0 | |
18960 | fi | |
18961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18962 | ||
18963 | OBJCXXFLAGS=$cy_save | |
18964 | if test "x$cy_good" = x1; then : | |
18965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18966 | $as_echo "yes" >&6; } | |
18967 | ||
18968 | for element in -Wno-unneeded-internal-declaration; do | |
18969 | haveit= | |
18970 | for x in $OBJCXXFLAGS; do | |
18971 | ||
18972 | acl_save_prefix="$prefix" | |
18973 | prefix="$acl_final_prefix" | |
18974 | acl_save_exec_prefix="$exec_prefix" | |
18975 | exec_prefix="$acl_final_exec_prefix" | |
18976 | eval x=\"$x\" | |
18977 | exec_prefix="$acl_save_exec_prefix" | |
18978 | prefix="$acl_save_prefix" | |
18979 | ||
18980 | if test "X$x" = "X$element"; then | |
18981 | haveit=yes | |
18982 | break | |
18983 | fi | |
18984 | done | |
18985 | if test -z "$haveit"; then | |
18986 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18987 | fi | |
18988 | done | |
18989 | ||
18990 | ||
18991 | else | |
18992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18993 | $as_echo "no" >&6; } | |
18994 | fi | |
18995 | ||
18996 | ac_ext=cpp | |
18997 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18998 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18999 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19000 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19001 | ||
19002 | ||
19003 | ||
19004 | ||
19005 | ||
19006 | ||
19007 | for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do | |
19008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5 | |
19009 | $as_echo_n "checking for -arch $cy_arch... " >&6; } | |
19010 | ||
19011 | cy_save=$CXXFLAGS | |
19012 | ||
19013 | for element in "-arch $cy_arch"; do | |
19014 | haveit= | |
19015 | for x in $CXXFLAGS; do | |
19016 | ||
19017 | acl_save_prefix="$prefix" | |
19018 | prefix="$acl_final_prefix" | |
19019 | acl_save_exec_prefix="$exec_prefix" | |
19020 | exec_prefix="$acl_final_exec_prefix" | |
19021 | eval x=\"$x\" | |
19022 | exec_prefix="$acl_save_exec_prefix" | |
19023 | prefix="$acl_save_prefix" | |
19024 | ||
19025 | if test "X$x" = "X$element"; then | |
19026 | haveit=yes | |
19027 | break | |
19028 | fi | |
19029 | done | |
19030 | if test -z "$haveit"; then | |
19031 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
19032 | fi | |
19033 | done | |
19034 | ||
19035 | ||
19036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19037 | /* end confdefs.h. */ | |
19038 | ||
19039 | int | |
19040 | main () | |
19041 | { | |
19042 | ||
19043 | ; | |
19044 | return 0; | |
19045 | } | |
19046 | _ACEOF | |
19047 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19048 | cy_good=1 | |
19049 | else | |
19050 | cy_good=0 | |
19051 | fi | |
19052 | rm -f core conftest.err conftest.$ac_objext \ | |
19053 | conftest$ac_exeext conftest.$ac_ext | |
19054 | ||
19055 | CXXFLAGS=$cy_save | |
19056 | if test "x$cy_good" = x1; then : | |
19057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19058 | $as_echo "yes" >&6; } | |
19059 | ||
19060 | for element in "-arch $cy_arch"; do | |
19061 | haveit= | |
19062 | for x in $CY_ARCH; do | |
19063 | ||
19064 | acl_save_prefix="$prefix" | |
19065 | prefix="$acl_final_prefix" | |
19066 | acl_save_exec_prefix="$exec_prefix" | |
19067 | exec_prefix="$acl_final_exec_prefix" | |
19068 | eval x=\"$x\" | |
19069 | exec_prefix="$acl_save_exec_prefix" | |
19070 | prefix="$acl_save_prefix" | |
19071 | ||
19072 | if test "X$x" = "X$element"; then | |
19073 | haveit=yes | |
19074 | break | |
19075 | fi | |
19076 | done | |
19077 | if test -z "$haveit"; then | |
19078 | CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element" | |
19079 | fi | |
19080 | done | |
19081 | ||
19082 | ||
19083 | else | |
19084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19085 | $as_echo "no" >&6; } | |
19086 | fi | |
19087 | ||
19088 | done | |
19089 | ||
19090 | ||
19091 | ||
19092 | ||
19093 | ||
19094 | ||
19095 | # Check whether --enable-javascript was given. | |
19096 | if test "${enable_javascript+set}" = set; then : | |
19097 | enableval=$enable_javascript; | |
19098 | case $enableval in #( | |
19099 | yes) : | |
19100 | ||
19101 | ||
19102 | ||
19103 | ||
19104 | cy_save=$LIBS | |
19105 | LIBS= | |
19106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 | |
19107 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
19108 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19109 | $as_echo_n "(cached) " >&6 | |
19110 | else | |
19111 | ac_func_search_save_LIBS=$LIBS | |
19112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19113 | /* end confdefs.h. */ | |
19114 | ||
19115 | /* Override any GCC internal prototype to avoid an error. | |
19116 | Use char because int might match the return type of a GCC | |
19117 | builtin and then its argument prototype would still apply. */ | |
19118 | #ifdef __cplusplus | |
19119 | extern "C" | |
19120 | #endif | |
19121 | char JSEvaluateScript (); | |
19122 | int | |
19123 | main () | |
19124 | { | |
19125 | return JSEvaluateScript (); | |
19126 | ; | |
19127 | return 0; | |
19128 | } | |
19129 | _ACEOF | |
19130 | for ac_lib in '' JavaScriptCore; do | |
19131 | if test -z "$ac_lib"; then | |
19132 | ac_res="none required" | |
19133 | else | |
19134 | ac_res=-l$ac_lib | |
19135 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19136 | fi | |
19137 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19138 | ac_cv_search_JSEvaluateScript=$ac_res | |
19139 | fi | |
19140 | rm -f core conftest.err conftest.$ac_objext \ | |
19141 | conftest$ac_exeext | |
19142 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19143 | break | |
19144 | fi | |
19145 | done | |
19146 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19147 | ||
19148 | else | |
19149 | ac_cv_search_JSEvaluateScript=no | |
19150 | fi | |
19151 | rm conftest.$ac_ext | |
19152 | LIBS=$ac_func_search_save_LIBS | |
19153 | fi | |
19154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
19155 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
19156 | ac_res=$ac_cv_search_JSEvaluateScript | |
19157 | if test "$ac_res" != no; then : | |
19158 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
19159 | ||
19160 | CY_EXECUTE=1 | |
19161 | ||
19162 | ||
19163 | else | |
19164 | ||
19165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
19166 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
19167 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
19168 | $as_echo_n "(cached) " >&6 | |
19169 | else | |
19170 | ||
19171 | ac_check_framework_save_LIBS=$LIBS | |
19172 | LIBS="-framework JavaScriptCore $LIBS" | |
19173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19174 | /* end confdefs.h. */ | |
19175 | ||
19176 | #include <JavaScriptCore/JSBase.h> | |
19177 | ||
19178 | int | |
19179 | main () | |
19180 | { | |
19181 | ||
19182 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
19183 | ||
19184 | ; | |
19185 | return 0; | |
19186 | } | |
19187 | _ACEOF | |
19188 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19189 | ||
19190 | ac_cv_framework_JavaScriptCore=yes | |
19191 | ||
19192 | else | |
19193 | ac_cv_framework_JavaScriptCore=no | |
19194 | fi | |
19195 | rm -f core conftest.err conftest.$ac_objext \ | |
19196 | conftest$ac_exeext conftest.$ac_ext | |
19197 | LIBS=$ac_check_framework_save_LIBS | |
19198 | ||
19199 | fi | |
19200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
19201 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
19202 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
19203 | ||
19204 | ||
19205 | for element in "-framework JavaScriptCore"; do | |
19206 | haveit= | |
19207 | for x in $LIBS; do | |
19208 | ||
19209 | acl_save_prefix="$prefix" | |
19210 | prefix="$acl_final_prefix" | |
19211 | acl_save_exec_prefix="$exec_prefix" | |
19212 | exec_prefix="$acl_final_exec_prefix" | |
19213 | eval x=\"$x\" | |
19214 | exec_prefix="$acl_save_exec_prefix" | |
19215 | prefix="$acl_save_prefix" | |
19216 | ||
19217 | if test "X$x" = "X$element"; then | |
19218 | haveit=yes | |
19219 | break | |
19220 | fi | |
19221 | done | |
19222 | if test -z "$haveit"; then | |
19223 | LIBS="${LIBS}${LIBS:+ }$element" | |
19224 | fi | |
19225 | done | |
19226 | ||
19227 | ||
19228 | CY_EXECUTE=1 | |
19229 | ||
19230 | ||
19231 | ||
19232 | else | |
19233 | ||
19234 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
19235 | ||
19236 | pkg_failed=no | |
19237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
19238 | $as_echo_n "checking for WEBKIT... " >&6; } | |
19239 | ||
19240 | if test -n "$WEBKIT_CFLAGS"; then | |
19241 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
19242 | elif test -n "$PKG_CONFIG"; then | |
19243 | if test -n "$PKG_CONFIG" && \ | |
19244 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
19245 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
19246 | ac_status=$? | |
19247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19248 | test $ac_status = 0; }; then | |
19249 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
19250 | test "x$?" != "x0" && pkg_failed=yes | |
19251 | else | |
19252 | pkg_failed=yes | |
19253 | fi | |
19254 | else | |
19255 | pkg_failed=untried | |
19256 | fi | |
19257 | if test -n "$WEBKIT_LIBS"; then | |
19258 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
19259 | elif test -n "$PKG_CONFIG"; then | |
19260 | if test -n "$PKG_CONFIG" && \ | |
19261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
19262 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
19263 | ac_status=$? | |
19264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19265 | test $ac_status = 0; }; then | |
19266 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
19267 | test "x$?" != "x0" && pkg_failed=yes | |
19268 | else | |
19269 | pkg_failed=yes | |
19270 | fi | |
19271 | else | |
19272 | pkg_failed=untried | |
19273 | fi | |
19274 | ||
19275 | ||
19276 | ||
19277 | if test $pkg_failed = yes; then | |
19278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19279 | $as_echo "no" >&6; } | |
19280 | ||
19281 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19282 | _pkg_short_errors_supported=yes | |
19283 | else | |
19284 | _pkg_short_errors_supported=no | |
19285 | fi | |
19286 | if test $_pkg_short_errors_supported = yes; then | |
19287 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` | |
19288 | else | |
19289 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` | |
19290 | fi | |
19291 | # Put the nasty error message in config.log where it belongs | |
19292 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
19293 | ||
19294 | : | |
19295 | elif test $pkg_failed = untried; then | |
19296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19297 | $as_echo "no" >&6; } | |
19298 | : | |
19299 | else | |
19300 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
19301 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
19302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19303 | $as_echo "yes" >&6; } | |
19304 | ||
19305 | CY_EXECUTE=1 | |
19306 | ||
19307 | ||
19308 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
19309 | haveit= | |
19310 | for x in $CPPFLAGS; do | |
19311 | ||
19312 | acl_save_prefix="$prefix" | |
19313 | prefix="$acl_final_prefix" | |
19314 | acl_save_exec_prefix="$exec_prefix" | |
19315 | exec_prefix="$acl_final_exec_prefix" | |
19316 | eval x=\"$x\" | |
19317 | exec_prefix="$acl_save_exec_prefix" | |
19318 | prefix="$acl_save_prefix" | |
19319 | ||
19320 | if test "X$x" = "X$element"; then | |
19321 | haveit=yes | |
19322 | break | |
19323 | fi | |
19324 | done | |
19325 | if test -z "$haveit"; then | |
19326 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19327 | fi | |
19328 | done | |
19329 | ||
19330 | ||
19331 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
19332 | haveit= | |
19333 | for x in $LIBS; do | |
19334 | ||
19335 | acl_save_prefix="$prefix" | |
19336 | prefix="$acl_final_prefix" | |
19337 | acl_save_exec_prefix="$exec_prefix" | |
19338 | exec_prefix="$acl_final_exec_prefix" | |
19339 | eval x=\"$x\" | |
19340 | exec_prefix="$acl_save_exec_prefix" | |
19341 | prefix="$acl_save_prefix" | |
19342 | ||
19343 | if test "X$x" = "X$element"; then | |
19344 | haveit=yes | |
19345 | break | |
19346 | fi | |
19347 | done | |
19348 | if test -z "$haveit"; then | |
19349 | LIBS="${LIBS}${LIBS:+ }$element" | |
19350 | fi | |
19351 | done | |
19352 | ||
19353 | ||
19354 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
19355 | done | |
19356 | ||
19357 | fi | |
19358 | fi | |
19359 | ||
19360 | LTJAVASCRIPTCORE=$LIBS | |
19361 | LIBS=$cy_save | |
19362 | ||
19363 | ||
19364 | ;; #( | |
19365 | no) : | |
19366 | ||
19367 | CY_EXECUTE=0 | |
19368 | ;; #( | |
19369 | JavaScriptCore) : | |
19370 | ||
19371 | ||
19372 | ||
19373 | cy_save=$LIBS | |
19374 | LIBS= | |
19375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 | |
19376 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
19377 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19378 | $as_echo_n "(cached) " >&6 | |
19379 | else | |
19380 | ac_func_search_save_LIBS=$LIBS | |
19381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19382 | /* end confdefs.h. */ | |
19383 | ||
19384 | /* Override any GCC internal prototype to avoid an error. | |
19385 | Use char because int might match the return type of a GCC | |
19386 | builtin and then its argument prototype would still apply. */ | |
19387 | #ifdef __cplusplus | |
19388 | extern "C" | |
19389 | #endif | |
19390 | char JSEvaluateScript (); | |
19391 | int | |
19392 | main () | |
19393 | { | |
19394 | return JSEvaluateScript (); | |
19395 | ; | |
19396 | return 0; | |
19397 | } | |
19398 | _ACEOF | |
19399 | for ac_lib in '' JavaScriptCore; do | |
19400 | if test -z "$ac_lib"; then | |
19401 | ac_res="none required" | |
19402 | else | |
19403 | ac_res=-l$ac_lib | |
19404 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19405 | fi | |
19406 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19407 | ac_cv_search_JSEvaluateScript=$ac_res | |
19408 | fi | |
19409 | rm -f core conftest.err conftest.$ac_objext \ | |
19410 | conftest$ac_exeext | |
19411 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19412 | break | |
19413 | fi | |
19414 | done | |
19415 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19416 | ||
19417 | else | |
19418 | ac_cv_search_JSEvaluateScript=no | |
19419 | fi | |
19420 | rm conftest.$ac_ext | |
19421 | LIBS=$ac_func_search_save_LIBS | |
19422 | fi | |
19423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
19424 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
19425 | ac_res=$ac_cv_search_JSEvaluateScript | |
19426 | if test "$ac_res" != no; then : | |
19427 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
19428 | ||
19429 | CY_EXECUTE=1 | |
19430 | ||
19431 | ||
19432 | else | |
19433 | ||
19434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
19435 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
19436 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
19437 | $as_echo_n "(cached) " >&6 | |
19438 | else | |
19439 | ||
19440 | ac_check_framework_save_LIBS=$LIBS | |
19441 | LIBS="-framework JavaScriptCore $LIBS" | |
19442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19443 | /* end confdefs.h. */ | |
19444 | ||
19445 | #include <JavaScriptCore/JSBase.h> | |
19446 | ||
19447 | int | |
19448 | main () | |
19449 | { | |
19450 | ||
19451 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
19452 | ||
19453 | ; | |
19454 | return 0; | |
19455 | } | |
19456 | _ACEOF | |
19457 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19458 | ||
19459 | ac_cv_framework_JavaScriptCore=yes | |
19460 | ||
19461 | else | |
19462 | ac_cv_framework_JavaScriptCore=no | |
19463 | fi | |
19464 | rm -f core conftest.err conftest.$ac_objext \ | |
19465 | conftest$ac_exeext conftest.$ac_ext | |
19466 | LIBS=$ac_check_framework_save_LIBS | |
19467 | ||
19468 | fi | |
19469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
19470 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
19471 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
19472 | ||
19473 | ||
19474 | for element in "-framework JavaScriptCore"; do | |
19475 | haveit= | |
19476 | for x in $LIBS; do | |
19477 | ||
19478 | acl_save_prefix="$prefix" | |
19479 | prefix="$acl_final_prefix" | |
19480 | acl_save_exec_prefix="$exec_prefix" | |
19481 | exec_prefix="$acl_final_exec_prefix" | |
19482 | eval x=\"$x\" | |
19483 | exec_prefix="$acl_save_exec_prefix" | |
19484 | prefix="$acl_save_prefix" | |
19485 | ||
19486 | if test "X$x" = "X$element"; then | |
19487 | haveit=yes | |
19488 | break | |
19489 | fi | |
19490 | done | |
19491 | if test -z "$haveit"; then | |
19492 | LIBS="${LIBS}${LIBS:+ }$element" | |
19493 | fi | |
19494 | done | |
19495 | ||
19496 | ||
19497 | CY_EXECUTE=1 | |
19498 | ||
19499 | ||
19500 | ||
19501 | else | |
19502 | ||
19503 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
19504 | ||
19505 | pkg_failed=no | |
19506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
19507 | $as_echo_n "checking for WEBKIT... " >&6; } | |
19508 | ||
19509 | if test -n "$WEBKIT_CFLAGS"; then | |
19510 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
19511 | elif test -n "$PKG_CONFIG"; then | |
19512 | if test -n "$PKG_CONFIG" && \ | |
19513 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
19514 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
19515 | ac_status=$? | |
19516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19517 | test $ac_status = 0; }; then | |
19518 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
19519 | test "x$?" != "x0" && pkg_failed=yes | |
19520 | else | |
19521 | pkg_failed=yes | |
19522 | fi | |
19523 | else | |
19524 | pkg_failed=untried | |
19525 | fi | |
19526 | if test -n "$WEBKIT_LIBS"; then | |
19527 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
19528 | elif test -n "$PKG_CONFIG"; then | |
19529 | if test -n "$PKG_CONFIG" && \ | |
19530 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
19531 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
19532 | ac_status=$? | |
19533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19534 | test $ac_status = 0; }; then | |
19535 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
19536 | test "x$?" != "x0" && pkg_failed=yes | |
19537 | else | |
19538 | pkg_failed=yes | |
19539 | fi | |
19540 | else | |
19541 | pkg_failed=untried | |
19542 | fi | |
19543 | ||
19544 | ||
19545 | ||
19546 | if test $pkg_failed = yes; then | |
19547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19548 | $as_echo "no" >&6; } | |
19549 | ||
19550 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19551 | _pkg_short_errors_supported=yes | |
19552 | else | |
19553 | _pkg_short_errors_supported=no | |
19554 | fi | |
19555 | if test $_pkg_short_errors_supported = yes; then | |
19556 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` | |
19557 | else | |
19558 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` | |
19559 | fi | |
19560 | # Put the nasty error message in config.log where it belongs | |
19561 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
19562 | ||
19563 | : | |
19564 | elif test $pkg_failed = untried; then | |
19565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19566 | $as_echo "no" >&6; } | |
19567 | : | |
19568 | else | |
19569 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
19570 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
19571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19572 | $as_echo "yes" >&6; } | |
19573 | ||
19574 | CY_EXECUTE=1 | |
19575 | ||
19576 | ||
19577 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
19578 | haveit= | |
19579 | for x in $CPPFLAGS; do | |
19580 | ||
19581 | acl_save_prefix="$prefix" | |
19582 | prefix="$acl_final_prefix" | |
19583 | acl_save_exec_prefix="$exec_prefix" | |
19584 | exec_prefix="$acl_final_exec_prefix" | |
19585 | eval x=\"$x\" | |
19586 | exec_prefix="$acl_save_exec_prefix" | |
19587 | prefix="$acl_save_prefix" | |
19588 | ||
19589 | if test "X$x" = "X$element"; then | |
19590 | haveit=yes | |
19591 | break | |
19592 | fi | |
19593 | done | |
19594 | if test -z "$haveit"; then | |
19595 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19596 | fi | |
19597 | done | |
19598 | ||
19599 | ||
19600 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
19601 | haveit= | |
19602 | for x in $LIBS; do | |
19603 | ||
19604 | acl_save_prefix="$prefix" | |
19605 | prefix="$acl_final_prefix" | |
19606 | acl_save_exec_prefix="$exec_prefix" | |
19607 | exec_prefix="$acl_final_exec_prefix" | |
19608 | eval x=\"$x\" | |
19609 | exec_prefix="$acl_save_exec_prefix" | |
19610 | prefix="$acl_save_prefix" | |
19611 | ||
19612 | if test "X$x" = "X$element"; then | |
19613 | haveit=yes | |
19614 | break | |
19615 | fi | |
19616 | done | |
19617 | if test -z "$haveit"; then | |
19618 | LIBS="${LIBS}${LIBS:+ }$element" | |
19619 | fi | |
19620 | done | |
19621 | ||
19622 | ||
19623 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
19624 | done | |
19625 | ||
19626 | fi | |
19627 | fi | |
19628 | ||
19629 | LTJAVASCRIPTCORE=$LIBS | |
19630 | LIBS=$cy_save | |
19631 | ||
19632 | ||
19633 | ;; #( | |
19634 | *) : | |
19635 | as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
19636 | esac | |
19637 | ||
19638 | else | |
19639 | ||
19640 | ||
19641 | ||
19642 | cy_save=$LIBS | |
19643 | LIBS= | |
19644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5 | |
19645 | $as_echo_n "checking for library containing JSEvaluateScript... " >&6; } | |
19646 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19647 | $as_echo_n "(cached) " >&6 | |
19648 | else | |
19649 | ac_func_search_save_LIBS=$LIBS | |
19650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19651 | /* end confdefs.h. */ | |
19652 | ||
19653 | /* Override any GCC internal prototype to avoid an error. | |
19654 | Use char because int might match the return type of a GCC | |
19655 | builtin and then its argument prototype would still apply. */ | |
19656 | #ifdef __cplusplus | |
19657 | extern "C" | |
19658 | #endif | |
19659 | char JSEvaluateScript (); | |
19660 | int | |
19661 | main () | |
19662 | { | |
19663 | return JSEvaluateScript (); | |
19664 | ; | |
19665 | return 0; | |
19666 | } | |
19667 | _ACEOF | |
19668 | for ac_lib in '' JavaScriptCore; do | |
19669 | if test -z "$ac_lib"; then | |
19670 | ac_res="none required" | |
19671 | else | |
19672 | ac_res=-l$ac_lib | |
19673 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
19674 | fi | |
19675 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19676 | ac_cv_search_JSEvaluateScript=$ac_res | |
19677 | fi | |
19678 | rm -f core conftest.err conftest.$ac_objext \ | |
19679 | conftest$ac_exeext | |
19680 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19681 | break | |
19682 | fi | |
19683 | done | |
19684 | if ${ac_cv_search_JSEvaluateScript+:} false; then : | |
19685 | ||
19686 | else | |
19687 | ac_cv_search_JSEvaluateScript=no | |
19688 | fi | |
19689 | rm conftest.$ac_ext | |
19690 | LIBS=$ac_func_search_save_LIBS | |
19691 | fi | |
19692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5 | |
19693 | $as_echo "$ac_cv_search_JSEvaluateScript" >&6; } | |
19694 | ac_res=$ac_cv_search_JSEvaluateScript | |
19695 | if test "$ac_res" != no; then : | |
19696 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
19697 | ||
19698 | CY_EXECUTE=1 | |
19699 | ||
19700 | ||
19701 | else | |
19702 | ||
19703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
19704 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
19705 | if ${ac_cv_framework_JavaScriptCore+:} false; then : | |
19706 | $as_echo_n "(cached) " >&6 | |
19707 | else | |
19708 | ||
19709 | ac_check_framework_save_LIBS=$LIBS | |
19710 | LIBS="-framework JavaScriptCore $LIBS" | |
19711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19712 | /* end confdefs.h. */ | |
19713 | ||
19714 | #include <JavaScriptCore/JSBase.h> | |
19715 | ||
19716 | int | |
19717 | main () | |
19718 | { | |
19719 | ||
19720 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
19721 | ||
19722 | ; | |
19723 | return 0; | |
19724 | } | |
19725 | _ACEOF | |
19726 | if ac_fn_cxx_try_link "$LINENO"; then : | |
19727 | ||
19728 | ac_cv_framework_JavaScriptCore=yes | |
19729 | ||
19730 | else | |
19731 | ac_cv_framework_JavaScriptCore=no | |
19732 | fi | |
19733 | rm -f core conftest.err conftest.$ac_objext \ | |
19734 | conftest$ac_exeext conftest.$ac_ext | |
19735 | LIBS=$ac_check_framework_save_LIBS | |
19736 | ||
19737 | fi | |
19738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
19739 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
19740 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
19741 | ||
19742 | ||
19743 | for element in "-framework JavaScriptCore"; do | |
19744 | haveit= | |
19745 | for x in $LIBS; do | |
19746 | ||
19747 | acl_save_prefix="$prefix" | |
19748 | prefix="$acl_final_prefix" | |
19749 | acl_save_exec_prefix="$exec_prefix" | |
19750 | exec_prefix="$acl_final_exec_prefix" | |
19751 | eval x=\"$x\" | |
19752 | exec_prefix="$acl_save_exec_prefix" | |
19753 | prefix="$acl_save_prefix" | |
19754 | ||
19755 | if test "X$x" = "X$element"; then | |
19756 | haveit=yes | |
19757 | break | |
19758 | fi | |
19759 | done | |
19760 | if test -z "$haveit"; then | |
19761 | LIBS="${LIBS}${LIBS:+ }$element" | |
19762 | fi | |
19763 | done | |
19764 | ||
19765 | ||
19766 | CY_EXECUTE=1 | |
19767 | ||
19768 | ||
19769 | ||
19770 | else | |
19771 | ||
19772 | for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do | |
19773 | ||
19774 | pkg_failed=no | |
19775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
19776 | $as_echo_n "checking for WEBKIT... " >&6; } | |
19777 | ||
19778 | if test -n "$WEBKIT_CFLAGS"; then | |
19779 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
19780 | elif test -n "$PKG_CONFIG"; then | |
19781 | if test -n "$PKG_CONFIG" && \ | |
19782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
19783 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
19784 | ac_status=$? | |
19785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19786 | test $ac_status = 0; }; then | |
19787 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null` | |
19788 | test "x$?" != "x0" && pkg_failed=yes | |
19789 | else | |
19790 | pkg_failed=yes | |
19791 | fi | |
19792 | else | |
19793 | pkg_failed=untried | |
19794 | fi | |
19795 | if test -n "$WEBKIT_LIBS"; then | |
19796 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
19797 | elif test -n "$PKG_CONFIG"; then | |
19798 | if test -n "$PKG_CONFIG" && \ | |
19799 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5 | |
19800 | ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5 | |
19801 | ac_status=$? | |
19802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19803 | test $ac_status = 0; }; then | |
19804 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null` | |
19805 | test "x$?" != "x0" && pkg_failed=yes | |
19806 | else | |
19807 | pkg_failed=yes | |
19808 | fi | |
19809 | else | |
19810 | pkg_failed=untried | |
19811 | fi | |
19812 | ||
19813 | ||
19814 | ||
19815 | if test $pkg_failed = yes; then | |
19816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19817 | $as_echo "no" >&6; } | |
19818 | ||
19819 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
19820 | _pkg_short_errors_supported=yes | |
19821 | else | |
19822 | _pkg_short_errors_supported=no | |
19823 | fi | |
19824 | if test $_pkg_short_errors_supported = yes; then | |
19825 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` | |
19826 | else | |
19827 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1` | |
19828 | fi | |
19829 | # Put the nasty error message in config.log where it belongs | |
19830 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
19831 | ||
19832 | : | |
19833 | elif test $pkg_failed = untried; then | |
19834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19835 | $as_echo "no" >&6; } | |
19836 | : | |
19837 | else | |
19838 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
19839 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
19840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19841 | $as_echo "yes" >&6; } | |
19842 | ||
19843 | CY_EXECUTE=1 | |
19844 | ||
19845 | ||
19846 | for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do | |
19847 | haveit= | |
19848 | for x in $CPPFLAGS; do | |
19849 | ||
19850 | acl_save_prefix="$prefix" | |
19851 | prefix="$acl_final_prefix" | |
19852 | acl_save_exec_prefix="$exec_prefix" | |
19853 | exec_prefix="$acl_final_exec_prefix" | |
19854 | eval x=\"$x\" | |
19855 | exec_prefix="$acl_save_exec_prefix" | |
19856 | prefix="$acl_save_prefix" | |
19857 | ||
19858 | if test "X$x" = "X$element"; then | |
19859 | haveit=yes | |
19860 | break | |
19861 | fi | |
19862 | done | |
19863 | if test -z "$haveit"; then | |
19864 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19865 | fi | |
19866 | done | |
19867 | ||
19868 | ||
19869 | for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do | |
19870 | haveit= | |
19871 | for x in $LIBS; do | |
19872 | ||
19873 | acl_save_prefix="$prefix" | |
19874 | prefix="$acl_final_prefix" | |
19875 | acl_save_exec_prefix="$exec_prefix" | |
19876 | exec_prefix="$acl_final_exec_prefix" | |
19877 | eval x=\"$x\" | |
19878 | exec_prefix="$acl_save_exec_prefix" | |
19879 | prefix="$acl_save_prefix" | |
19880 | ||
19881 | if test "X$x" = "X$element"; then | |
19882 | haveit=yes | |
19883 | break | |
19884 | fi | |
19885 | done | |
19886 | if test -z "$haveit"; then | |
19887 | LIBS="${LIBS}${LIBS:+ }$element" | |
19888 | fi | |
19889 | done | |
19890 | ||
19891 | ||
19892 | fi; if test "x$CY_EXECUTE" = x1; then break; fi | |
19893 | done | |
19894 | ||
19895 | fi | |
19896 | fi | |
19897 | ||
19898 | LTJAVASCRIPTCORE=$LIBS | |
19899 | LIBS=$cy_save | |
19900 | ||
19901 | ||
19902 | ||
19903 | fi | |
19904 | ||
19905 | ||
19906 | # Check whether --enable-console was given. | |
19907 | if test "${enable_console+set}" = set; then : | |
19908 | enableval=$enable_console; | |
19909 | fi | |
19910 | ||
19911 | if test "x$enable_console" != "xno"; then | |
19912 | CY_CONSOLE_TRUE= | |
19913 | CY_CONSOLE_FALSE='#' | |
19914 | else | |
19915 | CY_CONSOLE_TRUE='#' | |
19916 | CY_CONSOLE_FALSE= | |
19917 | fi | |
19918 | ||
19919 | ||
19920 | ||
19921 | ||
19922 | if test "x$CY_EXECUTE" = x1; then | |
19923 | CY_EXECUTE_TRUE= | |
19924 | CY_EXECUTE_FALSE='#' | |
19925 | else | |
19926 | CY_EXECUTE_TRUE='#' | |
19927 | CY_EXECUTE_FALSE= | |
19928 | fi | |
19929 | ||
19930 | ||
19931 | ||
19932 | case $CY_EXECUTE in #( | |
19933 | 1) : | |
19934 | ||
19935 | for ac_header in ffi.h ffi/ffi.h | |
19936 | do : | |
19937 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19938 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
19939 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19940 | cat >>confdefs.h <<_ACEOF | |
19941 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19942 | _ACEOF | |
19943 | break | |
19944 | fi | |
19945 | ||
19946 | done | |
19947 | ||
19948 | ||
19949 | ||
19950 | cy_save=$LIBS | |
19951 | LIBS= | |
19952 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
19953 | ||
19954 | ||
19955 | LIBFFI_CFLAGS | |
19956 | C compiler flags for LIBFFI, overriding pkg-config | |
19957 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
19958 | ||
19959 | pkg_failed=no | |
19960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
19961 | $as_echo_n "checking for LIBFFI... " >&6; } | |
19962 | ||
19963 | if test -n "$LIBFFI_CFLAGS"; then | |
19964 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
19965 | elif test -n "$PKG_CONFIG"; then | |
19966 | if test -n "$PKG_CONFIG" && \ | |
19967 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
19968 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
19969 | ac_status=$? | |
19970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19971 | test $ac_status = 0; }; then | |
19972 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
19973 | test "x$?" != "x0" && pkg_failed=yes | |
19974 | else | |
19975 | pkg_failed=yes | |
19976 | fi | |
19977 | else | |
19978 | pkg_failed=untried | |
19979 | fi | |
19980 | if test -n "$LIBFFI_LIBS"; then | |
19981 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
19982 | elif test -n "$PKG_CONFIG"; then | |
19983 | if test -n "$PKG_CONFIG" && \ | |
19984 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
19985 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
19986 | ac_status=$? | |
19987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19988 | test $ac_status = 0; }; then | |
19989 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
19990 | test "x$?" != "x0" && pkg_failed=yes | |
19991 | else | |
19992 | pkg_failed=yes | |
19993 | fi | |
19994 | else | |
19995 | pkg_failed=untried | |
19996 | fi | |
19997 | ||
19998 | ||
19999 | ||
20000 | if test $pkg_failed = yes; then | |
20001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20002 | $as_echo "no" >&6; } | |
20003 | ||
20004 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
20005 | _pkg_short_errors_supported=yes | |
20006 | else | |
20007 | _pkg_short_errors_supported=no | |
20008 | fi | |
20009 | if test $_pkg_short_errors_supported = yes; then | |
20010 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` | |
20011 | else | |
20012 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` | |
20013 | fi | |
20014 | # Put the nasty error message in config.log where it belongs | |
20015 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
20016 | ||
20017 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
20018 | elif test $pkg_failed = untried; then | |
20019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20020 | $as_echo "no" >&6; } | |
20021 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
20022 | else | |
20023 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
20024 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
20025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20026 | $as_echo "yes" >&6; } | |
20027 | ||
20028 | ||
20029 | for element in `$PKG_CONFIG --cflags libffi`; do | |
20030 | haveit= | |
20031 | for x in $CPPFLAGS; do | |
20032 | ||
20033 | acl_save_prefix="$prefix" | |
20034 | prefix="$acl_final_prefix" | |
20035 | acl_save_exec_prefix="$exec_prefix" | |
20036 | exec_prefix="$acl_final_exec_prefix" | |
20037 | eval x=\"$x\" | |
20038 | exec_prefix="$acl_save_exec_prefix" | |
20039 | prefix="$acl_save_prefix" | |
20040 | ||
20041 | if test "X$x" = "X$element"; then | |
20042 | haveit=yes | |
20043 | break | |
20044 | fi | |
20045 | done | |
20046 | if test -z "$haveit"; then | |
20047 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
20048 | fi | |
20049 | done | |
20050 | ||
20051 | ||
20052 | for element in `$PKG_CONFIG --libs libffi`; do | |
20053 | haveit= | |
20054 | for x in $LIBS; do | |
20055 | ||
20056 | acl_save_prefix="$prefix" | |
20057 | prefix="$acl_final_prefix" | |
20058 | acl_save_exec_prefix="$exec_prefix" | |
20059 | exec_prefix="$acl_final_exec_prefix" | |
20060 | eval x=\"$x\" | |
20061 | exec_prefix="$acl_save_exec_prefix" | |
20062 | prefix="$acl_save_prefix" | |
20063 | ||
20064 | if test "X$x" = "X$element"; then | |
20065 | haveit=yes | |
20066 | break | |
20067 | fi | |
20068 | done | |
20069 | if test -z "$haveit"; then | |
20070 | LIBS="${LIBS}${LIBS:+ }$element" | |
20071 | fi | |
20072 | done | |
20073 | ||
20074 | ||
20075 | fi | |
20076 | ||
20077 | else | |
20078 | ||
20079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
20080 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
20081 | if ${ac_cv_search_ffi_call+:} false; then : | |
20082 | $as_echo_n "(cached) " >&6 | |
20083 | else | |
20084 | ac_func_search_save_LIBS=$LIBS | |
20085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20086 | /* end confdefs.h. */ | |
20087 | ||
20088 | /* Override any GCC internal prototype to avoid an error. | |
20089 | Use char because int might match the return type of a GCC | |
20090 | builtin and then its argument prototype would still apply. */ | |
20091 | #ifdef __cplusplus | |
20092 | extern "C" | |
20093 | #endif | |
20094 | char ffi_call (); | |
20095 | int | |
20096 | main () | |
20097 | { | |
20098 | return ffi_call (); | |
20099 | ; | |
20100 | return 0; | |
20101 | } | |
20102 | _ACEOF | |
20103 | for ac_lib in '' ffi; do | |
20104 | if test -z "$ac_lib"; then | |
20105 | ac_res="none required" | |
20106 | else | |
20107 | ac_res=-l$ac_lib | |
20108 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20109 | fi | |
20110 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20111 | ac_cv_search_ffi_call=$ac_res | |
20112 | fi | |
20113 | rm -f core conftest.err conftest.$ac_objext \ | |
20114 | conftest$ac_exeext | |
20115 | if ${ac_cv_search_ffi_call+:} false; then : | |
20116 | break | |
20117 | fi | |
20118 | done | |
20119 | if ${ac_cv_search_ffi_call+:} false; then : | |
20120 | ||
20121 | else | |
20122 | ac_cv_search_ffi_call=no | |
20123 | fi | |
20124 | rm conftest.$ac_ext | |
20125 | LIBS=$ac_func_search_save_LIBS | |
20126 | fi | |
20127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
20128 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
20129 | ac_res=$ac_cv_search_ffi_call | |
20130 | if test "$ac_res" != no; then : | |
20131 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20132 | ||
20133 | fi | |
20134 | ||
20135 | case $ac_cv_search_ffi_call in #( | |
20136 | no) : | |
20137 | ||
20138 | ||
20139 | pkg_failed=no | |
20140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
20141 | $as_echo_n "checking for LIBFFI... " >&6; } | |
20142 | ||
20143 | if test -n "$LIBFFI_CFLAGS"; then | |
20144 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
20145 | elif test -n "$PKG_CONFIG"; then | |
20146 | if test -n "$PKG_CONFIG" && \ | |
20147 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
20148 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
20149 | ac_status=$? | |
20150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20151 | test $ac_status = 0; }; then | |
20152 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
20153 | test "x$?" != "x0" && pkg_failed=yes | |
20154 | else | |
20155 | pkg_failed=yes | |
20156 | fi | |
20157 | else | |
20158 | pkg_failed=untried | |
20159 | fi | |
20160 | if test -n "$LIBFFI_LIBS"; then | |
20161 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
20162 | elif test -n "$PKG_CONFIG"; then | |
20163 | if test -n "$PKG_CONFIG" && \ | |
20164 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
20165 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
20166 | ac_status=$? | |
20167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
20168 | test $ac_status = 0; }; then | |
20169 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
20170 | test "x$?" != "x0" && pkg_failed=yes | |
20171 | else | |
20172 | pkg_failed=yes | |
20173 | fi | |
20174 | else | |
20175 | pkg_failed=untried | |
20176 | fi | |
20177 | ||
20178 | ||
20179 | ||
20180 | if test $pkg_failed = yes; then | |
20181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20182 | $as_echo "no" >&6; } | |
20183 | ||
20184 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
20185 | _pkg_short_errors_supported=yes | |
20186 | else | |
20187 | _pkg_short_errors_supported=no | |
20188 | fi | |
20189 | if test $_pkg_short_errors_supported = yes; then | |
20190 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` | |
20191 | else | |
20192 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` | |
20193 | fi | |
20194 | # Put the nasty error message in config.log where it belongs | |
20195 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
20196 | ||
20197 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
20198 | elif test $pkg_failed = untried; then | |
20199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20200 | $as_echo "no" >&6; } | |
20201 | as_fn_error $? "missing \"libffi\"" "$LINENO" 5 | |
20202 | else | |
20203 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
20204 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
20205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20206 | $as_echo "yes" >&6; } | |
20207 | ||
20208 | ||
20209 | for element in `$PKG_CONFIG --cflags libffi`; do | |
20210 | haveit= | |
20211 | for x in $CPPFLAGS; do | |
20212 | ||
20213 | acl_save_prefix="$prefix" | |
20214 | prefix="$acl_final_prefix" | |
20215 | acl_save_exec_prefix="$exec_prefix" | |
20216 | exec_prefix="$acl_final_exec_prefix" | |
20217 | eval x=\"$x\" | |
20218 | exec_prefix="$acl_save_exec_prefix" | |
20219 | prefix="$acl_save_prefix" | |
20220 | ||
20221 | if test "X$x" = "X$element"; then | |
20222 | haveit=yes | |
20223 | break | |
20224 | fi | |
20225 | done | |
20226 | if test -z "$haveit"; then | |
20227 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
20228 | fi | |
20229 | done | |
20230 | ||
20231 | ||
20232 | for element in `$PKG_CONFIG --libs libffi`; do | |
20233 | haveit= | |
20234 | for x in $LIBS; do | |
20235 | ||
20236 | acl_save_prefix="$prefix" | |
20237 | prefix="$acl_final_prefix" | |
20238 | acl_save_exec_prefix="$exec_prefix" | |
20239 | exec_prefix="$acl_final_exec_prefix" | |
20240 | eval x=\"$x\" | |
20241 | exec_prefix="$acl_save_exec_prefix" | |
20242 | prefix="$acl_save_prefix" | |
20243 | ||
20244 | if test "X$x" = "X$element"; then | |
20245 | haveit=yes | |
20246 | break | |
20247 | fi | |
20248 | done | |
20249 | if test -z "$haveit"; then | |
20250 | LIBS="${LIBS}${LIBS:+ }$element" | |
20251 | fi | |
20252 | done | |
20253 | ||
20254 | ||
20255 | fi ;; #( | |
20256 | *) : | |
20257 | ;; | |
20258 | esac | |
20259 | ||
20260 | fi | |
20261 | LTLIBFFI=$LIBS | |
20262 | LIBS=$cy_save | |
20263 | ||
20264 | ||
20265 | ||
20266 | ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" | |
20267 | if test "x$ac_cv_header_jni_h" = xyes; then : | |
20268 | ||
20269 | CY_JAVA=1 | |
20270 | ||
20271 | ||
20272 | cy_save=$LIBS | |
20273 | LIBS= | |
20274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5 | |
20275 | $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; } | |
20276 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
20277 | $as_echo_n "(cached) " >&6 | |
20278 | else | |
20279 | ac_func_search_save_LIBS=$LIBS | |
20280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20281 | /* end confdefs.h. */ | |
20282 | ||
20283 | /* Override any GCC internal prototype to avoid an error. | |
20284 | Use char because int might match the return type of a GCC | |
20285 | builtin and then its argument prototype would still apply. */ | |
20286 | #ifdef __cplusplus | |
20287 | extern "C" | |
20288 | #endif | |
20289 | char JNI_GetCreatedJavaVMs (); | |
20290 | int | |
20291 | main () | |
20292 | { | |
20293 | return JNI_GetCreatedJavaVMs (); | |
20294 | ; | |
20295 | return 0; | |
20296 | } | |
20297 | _ACEOF | |
20298 | for ac_lib in '' dvm; do | |
20299 | if test -z "$ac_lib"; then | |
20300 | ac_res="none required" | |
20301 | else | |
20302 | ac_res=-l$ac_lib | |
20303 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20304 | fi | |
20305 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20306 | ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res | |
20307 | fi | |
20308 | rm -f core conftest.err conftest.$ac_objext \ | |
20309 | conftest$ac_exeext | |
20310 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
20311 | break | |
20312 | fi | |
20313 | done | |
20314 | if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then : | |
20315 | ||
20316 | else | |
20317 | ac_cv_search_JNI_GetCreatedJavaVMs=no | |
20318 | fi | |
20319 | rm conftest.$ac_ext | |
20320 | LIBS=$ac_func_search_save_LIBS | |
20321 | fi | |
20322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5 | |
20323 | $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; } | |
20324 | ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs | |
20325 | if test "$ac_res" != no; then : | |
20326 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20327 | ||
20328 | ||
20329 | fi | |
20330 | ||
20331 | LTJAVA=$LIBS | |
20332 | LIBS=$cy_save | |
20333 | ||
20334 | ||
20335 | ||
20336 | else | |
20337 | ||
20338 | CY_JAVA=0 | |
20339 | ||
20340 | ||
20341 | fi | |
20342 | ||
20343 | ||
20344 | ||
20345 | ac_ext=mm | |
20346 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
20347 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20348 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20349 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
20350 | ||
20351 | ||
20352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 | |
20353 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
20354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20355 | /* end confdefs.h. */ | |
20356 | ||
20357 | _ACEOF | |
20358 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
20359 | ||
20360 | CY_OBJECTIVEC=1 | |
20361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20362 | $as_echo "yes" >&6; } | |
20363 | ||
20364 | else | |
20365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20366 | $as_echo "no" >&6; } | |
20367 | fi | |
20368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20369 | ||
20370 | if test "x$CY_OBJECTIVEC" = x1; then : | |
20371 | ||
20372 | ||
20373 | cy_save=$LIBS | |
20374 | LIBS= | |
20375 | ||
20376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 | |
20377 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
20378 | if ${ac_cv_framework_CoreFoundation+:} false; then : | |
20379 | $as_echo_n "(cached) " >&6 | |
20380 | else | |
20381 | ||
20382 | ac_check_framework_save_LIBS=$LIBS | |
20383 | LIBS="-framework CoreFoundation $LIBS" | |
20384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20385 | /* end confdefs.h. */ | |
20386 | ||
20387 | #include <CoreFoundation/CFBase.h> | |
20388 | ||
20389 | int | |
20390 | main () | |
20391 | { | |
20392 | CFAllocatorGetDefault(); | |
20393 | ; | |
20394 | return 0; | |
20395 | } | |
20396 | _ACEOF | |
20397 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
20398 | ||
20399 | ac_cv_framework_CoreFoundation=yes | |
20400 | ||
20401 | else | |
20402 | ac_cv_framework_CoreFoundation=no | |
20403 | fi | |
20404 | rm -f core conftest.err conftest.$ac_objext \ | |
20405 | conftest$ac_exeext conftest.$ac_ext | |
20406 | LIBS=$ac_check_framework_save_LIBS | |
20407 | ||
20408 | fi | |
20409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 | |
20410 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
20411 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
20412 | ||
20413 | ||
20414 | for element in "-framework CoreFoundation"; do | |
20415 | haveit= | |
20416 | for x in $LIBS; do | |
20417 | ||
20418 | acl_save_prefix="$prefix" | |
20419 | prefix="$acl_final_prefix" | |
20420 | acl_save_exec_prefix="$exec_prefix" | |
20421 | exec_prefix="$acl_final_exec_prefix" | |
20422 | eval x=\"$x\" | |
20423 | exec_prefix="$acl_save_exec_prefix" | |
20424 | prefix="$acl_save_prefix" | |
20425 | ||
20426 | if test "X$x" = "X$element"; then | |
20427 | haveit=yes | |
20428 | break | |
20429 | fi | |
20430 | done | |
20431 | if test -z "$haveit"; then | |
20432 | LIBS="${LIBS}${LIBS:+ }$element" | |
20433 | fi | |
20434 | done | |
20435 | ||
20436 | ||
20437 | ||
20438 | ||
20439 | ||
20440 | ||
20441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 | |
20442 | $as_echo_n "checking for framework Foundation... " >&6; } | |
20443 | if ${ac_cv_framework_Foundation+:} false; then : | |
20444 | $as_echo_n "(cached) " >&6 | |
20445 | else | |
20446 | ||
20447 | ac_check_framework_save_LIBS=$LIBS | |
20448 | LIBS="-framework Foundation $LIBS" | |
20449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20450 | /* end confdefs.h. */ | |
20451 | ||
20452 | #include <Foundation/NSObject.h> | |
20453 | ||
20454 | int | |
20455 | main () | |
20456 | { | |
20457 | [[NSObject alloc] init]; | |
20458 | ; | |
20459 | return 0; | |
20460 | } | |
20461 | _ACEOF | |
20462 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
20463 | ||
20464 | ac_cv_framework_Foundation=yes | |
20465 | ||
20466 | else | |
20467 | ac_cv_framework_Foundation=no | |
20468 | fi | |
20469 | rm -f core conftest.err conftest.$ac_objext \ | |
20470 | conftest$ac_exeext conftest.$ac_ext | |
20471 | LIBS=$ac_check_framework_save_LIBS | |
20472 | ||
20473 | fi | |
20474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
20475 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
20476 | if test $ac_cv_framework_Foundation = yes; then : | |
20477 | ||
20478 | ||
20479 | for element in "-framework Foundation"; do | |
20480 | haveit= | |
20481 | for x in $LIBS; do | |
20482 | ||
20483 | acl_save_prefix="$prefix" | |
20484 | prefix="$acl_final_prefix" | |
20485 | acl_save_exec_prefix="$exec_prefix" | |
20486 | exec_prefix="$acl_final_exec_prefix" | |
20487 | eval x=\"$x\" | |
20488 | exec_prefix="$acl_save_exec_prefix" | |
20489 | prefix="$acl_save_prefix" | |
20490 | ||
20491 | if test "X$x" = "X$element"; then | |
20492 | haveit=yes | |
20493 | break | |
20494 | fi | |
20495 | done | |
20496 | if test -z "$haveit"; then | |
20497 | LIBS="${LIBS}${LIBS:+ }$element" | |
20498 | fi | |
20499 | done | |
20500 | ||
20501 | cat >>confdefs.h <<_ACEOF | |
20502 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
20503 | _ACEOF | |
20504 | ||
20505 | ||
20506 | fi | |
20507 | ||
20508 | ||
20509 | else | |
20510 | ||
20511 | ||
20512 | for ac_prog in gnustep-config | |
20513 | do | |
20514 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20515 | set dummy $ac_prog; ac_word=$2 | |
20516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20517 | $as_echo_n "checking for $ac_word... " >&6; } | |
20518 | if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then : | |
20519 | $as_echo_n "(cached) " >&6 | |
20520 | else | |
20521 | if test -n "$GNUSTEP_CONFIG"; then | |
20522 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
20523 | else | |
20524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20525 | for as_dir in $PATH | |
20526 | do | |
20527 | IFS=$as_save_IFS | |
20528 | test -z "$as_dir" && as_dir=. | |
20529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20531 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
20532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20533 | break 2 | |
20534 | fi | |
20535 | done | |
20536 | done | |
20537 | IFS=$as_save_IFS | |
20538 | ||
20539 | fi | |
20540 | fi | |
20541 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
20542 | if test -n "$GNUSTEP_CONFIG"; then | |
20543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
20544 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
20545 | else | |
20546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20547 | $as_echo "no" >&6; } | |
20548 | fi | |
20549 | ||
20550 | ||
20551 | test -n "$GNUSTEP_CONFIG" && break | |
20552 | done | |
20553 | ||
20554 | ||
20555 | if test "x$GNUSTEP_CONFIG" != x; then : | |
20556 | ||
20557 | ||
20558 | ||
20559 | for element in `$GNUSTEP_CONFIG --objc-flags`; do | |
20560 | haveit= | |
20561 | for x in $OBJCXXFLAGS; do | |
20562 | ||
20563 | acl_save_prefix="$prefix" | |
20564 | prefix="$acl_final_prefix" | |
20565 | acl_save_exec_prefix="$exec_prefix" | |
20566 | exec_prefix="$acl_final_exec_prefix" | |
20567 | eval x=\"$x\" | |
20568 | exec_prefix="$acl_save_exec_prefix" | |
20569 | prefix="$acl_save_prefix" | |
20570 | ||
20571 | if test "X$x" = "X$element"; then | |
20572 | haveit=yes | |
20573 | break | |
20574 | fi | |
20575 | done | |
20576 | if test -z "$haveit"; then | |
20577 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
20578 | fi | |
20579 | done | |
20580 | ||
20581 | ||
20582 | for element in `$GNUSTEP_CONFIG --base-libs`; do | |
20583 | haveit= | |
20584 | for x in $LIBS; do | |
20585 | ||
20586 | acl_save_prefix="$prefix" | |
20587 | prefix="$acl_final_prefix" | |
20588 | acl_save_exec_prefix="$exec_prefix" | |
20589 | exec_prefix="$acl_final_exec_prefix" | |
20590 | eval x=\"$x\" | |
20591 | exec_prefix="$acl_save_exec_prefix" | |
20592 | prefix="$acl_save_prefix" | |
20593 | ||
20594 | if test "X$x" = "X$element"; then | |
20595 | haveit=yes | |
20596 | break | |
20597 | fi | |
20598 | done | |
20599 | if test -z "$haveit"; then | |
20600 | LIBS="${LIBS}${LIBS:+ }$element" | |
20601 | fi | |
20602 | done | |
20603 | ||
20604 | ||
20605 | else | |
20606 | CY_OBJECTIVEC=0 | |
20607 | ||
20608 | fi | |
20609 | ||
20610 | fi | |
20611 | LTOBJECTIVEC=$LIBS | |
20612 | LIBS=$cy_save | |
20613 | ||
20614 | ||
20615 | ||
20616 | fi | |
20617 | ||
20618 | ac_ext=cpp | |
20619 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20620 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20621 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20622 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20623 | ||
20624 | ;; #( | |
20625 | *) : | |
20626 | ;; | |
20627 | esac | |
20628 | ||
20629 | if test "x$CY_JAVA" = x1; then | |
20630 | CY_JAVA_TRUE= | |
20631 | CY_JAVA_FALSE='#' | |
20632 | else | |
20633 | CY_JAVA_TRUE='#' | |
20634 | CY_JAVA_FALSE= | |
20635 | fi | |
20636 | ||
20637 | if test "x$CY_OBJECTIVEC" = x1; then | |
20638 | CY_OBJECTIVEC_TRUE= | |
20639 | CY_OBJECTIVEC_FALSE='#' | |
20640 | else | |
20641 | CY_OBJECTIVEC_TRUE='#' | |
20642 | CY_OBJECTIVEC_FALSE= | |
20643 | fi | |
20644 | ||
20645 | ||
20646 | ||
20647 | cy_save=$LIBS | |
20648 | LIBS= | |
20649 | ||
20650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
20651 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
20652 | if ${ax_cv_lib_readline+:} false; then : | |
20653 | $as_echo_n "(cached) " >&6 | |
20654 | else | |
20655 | ||
20656 | ORIG_LIBS="$LIBS" | |
20657 | for readline_lib in readline edit editline; do | |
20658 | for termcap_lib in "" termcap curses ncurses; do | |
20659 | if test -z "$termcap_lib"; then | |
20660 | TRY_LIB="-l$readline_lib" | |
20661 | else | |
20662 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
20663 | fi | |
20664 | LIBS="$ORIG_LIBS $TRY_LIB" | |
20665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20666 | /* end confdefs.h. */ | |
20667 | ||
20668 | /* Override any GCC internal prototype to avoid an error. | |
20669 | Use char because int might match the return type of a GCC | |
20670 | builtin and then its argument prototype would still apply. */ | |
20671 | #ifdef __cplusplus | |
20672 | extern "C" | |
20673 | #endif | |
20674 | char readline (); | |
20675 | int | |
20676 | main () | |
20677 | { | |
20678 | return readline (); | |
20679 | ; | |
20680 | return 0; | |
20681 | } | |
20682 | _ACEOF | |
20683 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20684 | ax_cv_lib_readline="$TRY_LIB" | |
20685 | fi | |
20686 | rm -f core conftest.err conftest.$ac_objext \ | |
20687 | conftest$ac_exeext conftest.$ac_ext | |
20688 | if test -n "$ax_cv_lib_readline"; then | |
20689 | break | |
20690 | fi | |
20691 | done | |
20692 | if test -n "$ax_cv_lib_readline"; then | |
20693 | break | |
20694 | fi | |
20695 | done | |
20696 | if test -z "$ax_cv_lib_readline"; then | |
20697 | ax_cv_lib_readline="no" | |
20698 | fi | |
20699 | LIBS="$ORIG_LIBS" | |
20700 | ||
20701 | fi | |
20702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 | |
20703 | $as_echo "$ax_cv_lib_readline" >&6; } | |
20704 | ||
20705 | if test "$ax_cv_lib_readline" != "no"; then | |
20706 | LIBS="$LIBS $ax_cv_lib_readline" | |
20707 | ||
20708 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
20709 | ||
20710 | for ac_header in readline.h readline/readline.h | |
20711 | do : | |
20712 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20713 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
20714 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
20715 | cat >>confdefs.h <<_ACEOF | |
20716 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20717 | _ACEOF | |
20718 | ||
20719 | fi | |
20720 | ||
20721 | done | |
20722 | ||
20723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
20724 | $as_echo_n "checking whether readline supports history... " >&6; } | |
20725 | if ${ax_cv_lib_readline_history+:} false; then : | |
20726 | $as_echo_n "(cached) " >&6 | |
20727 | else | |
20728 | ||
20729 | ax_cv_lib_readline_history="no" | |
20730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20731 | /* end confdefs.h. */ | |
20732 | ||
20733 | /* Override any GCC internal prototype to avoid an error. | |
20734 | Use char because int might match the return type of a GCC | |
20735 | builtin and then its argument prototype would still apply. */ | |
20736 | #ifdef __cplusplus | |
20737 | extern "C" | |
20738 | #endif | |
20739 | char add_history (); | |
20740 | int | |
20741 | main () | |
20742 | { | |
20743 | return add_history (); | |
20744 | ; | |
20745 | return 0; | |
20746 | } | |
20747 | _ACEOF | |
20748 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20749 | ax_cv_lib_readline_history="yes" | |
20750 | fi | |
20751 | rm -f core conftest.err conftest.$ac_objext \ | |
20752 | conftest$ac_exeext conftest.$ac_ext | |
20753 | ||
20754 | fi | |
20755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 | |
20756 | $as_echo "$ax_cv_lib_readline_history" >&6; } | |
20757 | if test "$ax_cv_lib_readline_history" = "yes"; then | |
20758 | ||
20759 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
20760 | ||
20761 | for ac_header in history.h readline/history.h | |
20762 | do : | |
20763 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20764 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
20765 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
20766 | cat >>confdefs.h <<_ACEOF | |
20767 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20768 | _ACEOF | |
20769 | ||
20770 | fi | |
20771 | ||
20772 | done | |
20773 | ||
20774 | fi | |
20775 | fi | |
20776 | ||
20777 | LTLIBREADLINE=$LIBS | |
20778 | LIBS=$cy_save | |
20779 | ||
20780 | ||
20781 | case $ax_cv_lib_readline in #( | |
20782 | no) : | |
20783 | as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #( | |
20784 | *) : | |
20785 | ;; | |
20786 | esac | |
20787 | ||
20788 | ||
20789 | cy_save=$LIBS | |
20790 | LIBS= | |
20791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5 | |
20792 | $as_echo_n "checking for library containing cur_term... " >&6; } | |
20793 | if ${ac_cv_search_cur_term+:} false; then : | |
20794 | $as_echo_n "(cached) " >&6 | |
20795 | else | |
20796 | ac_func_search_save_LIBS=$LIBS | |
20797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20798 | /* end confdefs.h. */ | |
20799 | ||
20800 | /* Override any GCC internal prototype to avoid an error. | |
20801 | Use char because int might match the return type of a GCC | |
20802 | builtin and then its argument prototype would still apply. */ | |
20803 | #ifdef __cplusplus | |
20804 | extern "C" | |
20805 | #endif | |
20806 | char cur_term (); | |
20807 | int | |
20808 | main () | |
20809 | { | |
20810 | return cur_term (); | |
20811 | ; | |
20812 | return 0; | |
20813 | } | |
20814 | _ACEOF | |
20815 | for ac_lib in '' termcap ncurses; do | |
20816 | if test -z "$ac_lib"; then | |
20817 | ac_res="none required" | |
20818 | else | |
20819 | ac_res=-l$ac_lib | |
20820 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20821 | fi | |
20822 | if ac_fn_cxx_try_link "$LINENO"; then : | |
20823 | ac_cv_search_cur_term=$ac_res | |
20824 | fi | |
20825 | rm -f core conftest.err conftest.$ac_objext \ | |
20826 | conftest$ac_exeext | |
20827 | if ${ac_cv_search_cur_term+:} false; then : | |
20828 | break | |
20829 | fi | |
20830 | done | |
20831 | if ${ac_cv_search_cur_term+:} false; then : | |
20832 | ||
20833 | else | |
20834 | ac_cv_search_cur_term=no | |
20835 | fi | |
20836 | rm conftest.$ac_ext | |
20837 | LIBS=$ac_func_search_save_LIBS | |
20838 | fi | |
20839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5 | |
20840 | $as_echo "$ac_cv_search_cur_term" >&6; } | |
20841 | ac_res=$ac_cv_search_cur_term | |
20842 | if test "$ac_res" != no; then : | |
20843 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20844 | ||
20845 | fi | |
20846 | ||
20847 | LTLIBTERMCAP=$LIBS | |
20848 | LIBS=$cy_save | |
20849 | ||
20850 | ||
20851 | ||
20852 | ||
20853 | ||
20854 | ||
20855 | SO=$acl_shlibext | |
20856 | ||
20857 | ||
20858 | if test "x$CY_EXECUTE" = x1; then : | |
20859 | ||
20860 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
20861 | if test "x$ac_cv_header_mach_mach_h" = xyes; then : | |
20862 | ||
20863 | if test -n "$ac_tool_prefix"; then | |
20864 | for ac_prog in lipo | |
20865 | do | |
20866 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20867 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20869 | $as_echo_n "checking for $ac_word... " >&6; } | |
20870 | if ${ac_cv_prog__LIPO+:} false; then : | |
20871 | $as_echo_n "(cached) " >&6 | |
20872 | else | |
20873 | if test -n "$_LIPO"; then | |
20874 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
20875 | else | |
20876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20877 | for as_dir in $PATH | |
20878 | do | |
20879 | IFS=$as_save_IFS | |
20880 | test -z "$as_dir" && as_dir=. | |
20881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20882 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20883 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" | |
20884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20885 | break 2 | |
20886 | fi | |
20887 | done | |
20888 | done | |
20889 | IFS=$as_save_IFS | |
20890 | ||
20891 | fi | |
20892 | fi | |
20893 | _LIPO=$ac_cv_prog__LIPO | |
20894 | if test -n "$_LIPO"; then | |
20895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
20896 | $as_echo "$_LIPO" >&6; } | |
20897 | else | |
20898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20899 | $as_echo "no" >&6; } | |
20900 | fi | |
20901 | ||
20902 | ||
20903 | test -n "$_LIPO" && break | |
20904 | done | |
20905 | fi | |
20906 | if test -z "$_LIPO"; then | |
20907 | ac_ct__LIPO=$_LIPO | |
20908 | for ac_prog in lipo | |
20909 | do | |
20910 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
20911 | set dummy $ac_prog; ac_word=$2 | |
20912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20913 | $as_echo_n "checking for $ac_word... " >&6; } | |
20914 | if ${ac_cv_prog_ac_ct__LIPO+:} false; then : | |
20915 | $as_echo_n "(cached) " >&6 | |
20916 | else | |
20917 | if test -n "$ac_ct__LIPO"; then | |
20918 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
20919 | else | |
20920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20921 | for as_dir in $PATH | |
20922 | do | |
20923 | IFS=$as_save_IFS | |
20924 | test -z "$as_dir" && as_dir=. | |
20925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20927 | ac_cv_prog_ac_ct__LIPO="$ac_prog" | |
20928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20929 | break 2 | |
20930 | fi | |
20931 | done | |
20932 | done | |
20933 | IFS=$as_save_IFS | |
20934 | ||
20935 | fi | |
20936 | fi | |
20937 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO | |
20938 | if test -n "$ac_ct__LIPO"; then | |
20939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
20940 | $as_echo "$ac_ct__LIPO" >&6; } | |
20941 | else | |
20942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20943 | $as_echo "no" >&6; } | |
20944 | fi | |
20945 | ||
20946 | ||
20947 | test -n "$ac_ct__LIPO" && break | |
20948 | done | |
20949 | ||
20950 | if test "x$ac_ct__LIPO" = x; then | |
20951 | _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5" | |
20952 | else | |
20953 | case $cross_compiling:$ac_tool_warned in | |
20954 | yes:) | |
20955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
20956 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
20957 | ac_tool_warned=yes ;; | |
20958 | esac | |
20959 | _LIPO=$ac_ct__LIPO | |
20960 | fi | |
20961 | fi | |
20962 | ||
20963 | if test -n "$ac_tool_prefix"; then | |
20964 | for ac_prog in nm | |
20965 | do | |
20966 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
20967 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
20968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20969 | $as_echo_n "checking for $ac_word... " >&6; } | |
20970 | if ${ac_cv_prog__NM+:} false; then : | |
20971 | $as_echo_n "(cached) " >&6 | |
20972 | else | |
20973 | if test -n "$_NM"; then | |
20974 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
20975 | else | |
20976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20977 | for as_dir in $PATH | |
20978 | do | |
20979 | IFS=$as_save_IFS | |
20980 | test -z "$as_dir" && as_dir=. | |
20981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20983 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" | |
20984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20985 | break 2 | |
20986 | fi | |
20987 | done | |
20988 | done | |
20989 | IFS=$as_save_IFS | |
20990 | ||
20991 | fi | |
20992 | fi | |
20993 | _NM=$ac_cv_prog__NM | |
20994 | if test -n "$_NM"; then | |
20995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
20996 | $as_echo "$_NM" >&6; } | |
20997 | else | |
20998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20999 | $as_echo "no" >&6; } | |
21000 | fi | |
21001 | ||
21002 | ||
21003 | test -n "$_NM" && break | |
21004 | done | |
21005 | fi | |
21006 | if test -z "$_NM"; then | |
21007 | ac_ct__NM=$_NM | |
21008 | for ac_prog in nm | |
21009 | do | |
21010 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21011 | set dummy $ac_prog; ac_word=$2 | |
21012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21013 | $as_echo_n "checking for $ac_word... " >&6; } | |
21014 | if ${ac_cv_prog_ac_ct__NM+:} false; then : | |
21015 | $as_echo_n "(cached) " >&6 | |
21016 | else | |
21017 | if test -n "$ac_ct__NM"; then | |
21018 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
21019 | else | |
21020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21021 | for as_dir in $PATH | |
21022 | do | |
21023 | IFS=$as_save_IFS | |
21024 | test -z "$as_dir" && as_dir=. | |
21025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21026 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21027 | ac_cv_prog_ac_ct__NM="$ac_prog" | |
21028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21029 | break 2 | |
21030 | fi | |
21031 | done | |
21032 | done | |
21033 | IFS=$as_save_IFS | |
21034 | ||
21035 | fi | |
21036 | fi | |
21037 | ac_ct__NM=$ac_cv_prog_ac_ct__NM | |
21038 | if test -n "$ac_ct__NM"; then | |
21039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
21040 | $as_echo "$ac_ct__NM" >&6; } | |
21041 | else | |
21042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21043 | $as_echo "no" >&6; } | |
21044 | fi | |
21045 | ||
21046 | ||
21047 | test -n "$ac_ct__NM" && break | |
21048 | done | |
21049 | ||
21050 | if test "x$ac_ct__NM" = x; then | |
21051 | _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5" | |
21052 | else | |
21053 | case $cross_compiling:$ac_tool_warned in | |
21054 | yes:) | |
21055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
21056 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
21057 | ac_tool_warned=yes ;; | |
21058 | esac | |
21059 | _NM=$ac_ct__NM | |
21060 | fi | |
21061 | fi | |
21062 | ||
21063 | if test -n "$ac_tool_prefix"; then | |
21064 | for ac_prog in otool | |
21065 | do | |
21066 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
21067 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
21068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21069 | $as_echo_n "checking for $ac_word... " >&6; } | |
21070 | if ${ac_cv_prog__OTOOL+:} false; then : | |
21071 | $as_echo_n "(cached) " >&6 | |
21072 | else | |
21073 | if test -n "$_OTOOL"; then | |
21074 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
21075 | else | |
21076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21077 | for as_dir in $PATH | |
21078 | do | |
21079 | IFS=$as_save_IFS | |
21080 | test -z "$as_dir" && as_dir=. | |
21081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21083 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" | |
21084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21085 | break 2 | |
21086 | fi | |
21087 | done | |
21088 | done | |
21089 | IFS=$as_save_IFS | |
21090 | ||
21091 | fi | |
21092 | fi | |
21093 | _OTOOL=$ac_cv_prog__OTOOL | |
21094 | if test -n "$_OTOOL"; then | |
21095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
21096 | $as_echo "$_OTOOL" >&6; } | |
21097 | else | |
21098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21099 | $as_echo "no" >&6; } | |
21100 | fi | |
21101 | ||
21102 | ||
21103 | test -n "$_OTOOL" && break | |
21104 | done | |
21105 | fi | |
21106 | if test -z "$_OTOOL"; then | |
21107 | ac_ct__OTOOL=$_OTOOL | |
21108 | for ac_prog in otool | |
21109 | do | |
21110 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21111 | set dummy $ac_prog; ac_word=$2 | |
21112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21113 | $as_echo_n "checking for $ac_word... " >&6; } | |
21114 | if ${ac_cv_prog_ac_ct__OTOOL+:} false; then : | |
21115 | $as_echo_n "(cached) " >&6 | |
21116 | else | |
21117 | if test -n "$ac_ct__OTOOL"; then | |
21118 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
21119 | else | |
21120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21121 | for as_dir in $PATH | |
21122 | do | |
21123 | IFS=$as_save_IFS | |
21124 | test -z "$as_dir" && as_dir=. | |
21125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21127 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" | |
21128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21129 | break 2 | |
21130 | fi | |
21131 | done | |
21132 | done | |
21133 | IFS=$as_save_IFS | |
21134 | ||
21135 | fi | |
21136 | fi | |
21137 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL | |
21138 | if test -n "$ac_ct__OTOOL"; then | |
21139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
21140 | $as_echo "$ac_ct__OTOOL" >&6; } | |
21141 | else | |
21142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21143 | $as_echo "no" >&6; } | |
21144 | fi | |
21145 | ||
21146 | ||
21147 | test -n "$ac_ct__OTOOL" && break | |
21148 | done | |
21149 | ||
21150 | if test "x$ac_ct__OTOOL" = x; then | |
21151 | _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5" | |
21152 | else | |
21153 | case $cross_compiling:$ac_tool_warned in | |
21154 | yes:) | |
21155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
21156 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
21157 | ac_tool_warned=yes ;; | |
21158 | esac | |
21159 | _OTOOL=$ac_ct__OTOOL | |
21160 | fi | |
21161 | fi | |
21162 | ||
21163 | CY_ATTACH_GROUP=procmod | |
21164 | ||
21165 | CY_MACH=1 | |
21166 | ||
21167 | fi | |
21168 | ||
21169 | ||
21170 | fi | |
21171 | if test "x$CY_MACH" = x1; then | |
21172 | CY_MACH_TRUE= | |
21173 | CY_MACH_FALSE='#' | |
21174 | else | |
21175 | CY_MACH_TRUE='#' | |
21176 | CY_MACH_FALSE= | |
21177 | fi | |
21178 | ||
21179 | ||
21180 | ac_config_files="$ac_config_files Makefile" | |
21181 | ||
21182 | cat >confcache <<\_ACEOF | |
21183 | # This file is a shell script that caches the results of configure | |
21184 | # tests run on this system so they can be shared between configure | |
21185 | # scripts and configure runs, see configure's option --config-cache. | |
21186 | # It is not useful on other systems. If it contains results you don't | |
21187 | # want to keep, you may remove or edit it. | |
21188 | # | |
21189 | # config.status only pays attention to the cache file if you give it | |
21190 | # the --recheck option to rerun configure. | |
21191 | # | |
21192 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21193 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21194 | # following values. | |
21195 | ||
21196 | _ACEOF | |
21197 | ||
21198 | # The following way of writing the cache mishandles newlines in values, | |
21199 | # but we know of no workaround that is simple, portable, and efficient. | |
21200 | # So, we kill variables containing newlines. | |
21201 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21202 | # and sets the high bit in the cache file unless we assign to the vars. | |
21203 | ( | |
21204 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21205 | eval ac_val=\$$ac_var | |
21206 | case $ac_val in #( | |
21207 | *${as_nl}*) | |
21208 | case $ac_var in #( | |
21209 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
21210 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
21211 | esac | |
21212 | case $ac_var in #( | |
21213 | _ | IFS | as_nl) ;; #( | |
21214 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
21215 | *) { eval $ac_var=; unset $ac_var;} ;; | |
21216 | esac ;; | |
21217 | esac | |
21218 | done | |
21219 | ||
21220 | (set) 2>&1 | | |
21221 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
21222 | *${as_nl}ac_space=\ *) | |
21223 | # `set' does not quote correctly, so add quotes: double-quote | |
21224 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
21225 | sed -n \ | |
21226 | "s/'/'\\\\''/g; | |
21227 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21228 | ;; #( | |
21229 | *) | |
21230 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21231 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
21232 | ;; | |
21233 | esac | | |
21234 | sort | |
21235 | ) | | |
21236 | sed ' | |
21237 | /^ac_cv_env_/b end | |
21238 | t clear | |
21239 | :clear | |
21240 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21241 | t end | |
21242 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21243 | :end' >>confcache | |
21244 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
21245 | if test -w "$cache_file"; then | |
21246 | if test "x$cache_file" != "x/dev/null"; then | |
21247 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
21248 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
21249 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
21250 | cat confcache >"$cache_file" | |
21251 | else | |
21252 | case $cache_file in #( | |
21253 | */* | ?:*) | |
21254 | mv -f confcache "$cache_file"$$ && | |
21255 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
21256 | *) | |
21257 | mv -f confcache "$cache_file" ;; | |
21258 | esac | |
21259 | fi | |
21260 | fi | |
21261 | else | |
21262 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
21263 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
21264 | fi | |
21265 | fi | |
21266 | rm -f confcache | |
21267 | ||
21268 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21269 | # Let make expand exec_prefix. | |
21270 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21271 | ||
21272 | DEFS=-DHAVE_CONFIG_H | |
21273 | ||
21274 | ac_libobjs= | |
21275 | ac_ltlibobjs= | |
21276 | U= | |
21277 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21278 | # 1. Remove the extension, and $U if already installed. | |
21279 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
21280 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
21281 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
21282 | # will be set to the directory where LIBOBJS objects are built. | |
21283 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
21284 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
21285 | done | |
21286 | LIBOBJS=$ac_libobjs | |
21287 | ||
21288 | LTLIBOBJS=$ac_ltlibobjs | |
21289 | ||
21290 | ||
21291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
21292 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
21293 | if test -n "$am_sleep_pid"; then | |
21294 | # Hide warnings about reused PIDs. | |
21295 | wait $am_sleep_pid 2>/dev/null | |
21296 | fi | |
21297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
21298 | $as_echo "done" >&6; } | |
21299 | if test -n "$EXEEXT"; then | |
21300 | am__EXEEXT_TRUE= | |
21301 | am__EXEEXT_FALSE='#' | |
21302 | else | |
21303 | am__EXEEXT_TRUE='#' | |
21304 | am__EXEEXT_FALSE= | |
21305 | fi | |
21306 | ||
21307 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
21308 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
21309 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21310 | fi | |
21311 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
21312 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
21313 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21314 | fi | |
21315 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
21316 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
21317 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21318 | fi | |
21319 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
21320 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
21321 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21322 | fi | |
21323 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then | |
21324 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. | |
21325 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21326 | fi | |
21327 | if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then | |
21328 | as_fn_error $? "conditional \"CY_CONSOLE\" was never defined. | |
21329 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21330 | fi | |
21331 | if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then | |
21332 | as_fn_error $? "conditional \"CY_EXECUTE\" was never defined. | |
21333 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21334 | fi | |
21335 | if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then | |
21336 | as_fn_error $? "conditional \"CY_JAVA\" was never defined. | |
21337 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21338 | fi | |
21339 | if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then | |
21340 | as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined. | |
21341 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21342 | fi | |
21343 | if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then | |
21344 | as_fn_error $? "conditional \"CY_MACH\" was never defined. | |
21345 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21346 | fi | |
21347 | ||
21348 | : "${CONFIG_STATUS=./config.status}" | |
21349 | ac_write_fail=0 | |
21350 | ac_clean_files_save=$ac_clean_files | |
21351 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21352 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
21353 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21354 | as_write_fail=0 | |
21355 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
21356 | #! $SHELL | |
21357 | # Generated by $as_me. | |
21358 | # Run this file to recreate the current configuration. | |
21359 | # Compiler output produced by configure, useful for debugging | |
21360 | # configure, is in config.log if it exists. | |
21361 | ||
21362 | debug=false | |
21363 | ac_cs_recheck=false | |
21364 | ac_cs_silent=false | |
21365 | ||
21366 | SHELL=\${CONFIG_SHELL-$SHELL} | |
21367 | export SHELL | |
21368 | _ASEOF | |
21369 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
21370 | ## -------------------- ## | |
21371 | ## M4sh Initialization. ## | |
21372 | ## -------------------- ## | |
21373 | ||
21374 | # Be more Bourne compatible | |
21375 | DUALCASE=1; export DUALCASE # for MKS sh | |
21376 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
21377 | emulate sh | |
21378 | NULLCMD=: | |
21379 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21380 | # is contrary to our usage. Disable this feature. | |
21381 | alias -g '${1+"$@"}'='"$@"' | |
21382 | setopt NO_GLOB_SUBST | |
21383 | else | |
21384 | case `(set -o) 2>/dev/null` in #( | |
21385 | *posix*) : | |
21386 | set -o posix ;; #( | |
21387 | *) : | |
21388 | ;; | |
21389 | esac | |
21390 | fi | |
21391 | ||
21392 | ||
21393 | as_nl=' | |
21394 | ' | |
21395 | export as_nl | |
21396 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
21397 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
21398 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
21399 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
21400 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
21401 | # but without wasting forks for bash or zsh. | |
21402 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
21403 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
21404 | as_echo='print -r --' | |
21405 | as_echo_n='print -rn --' | |
21406 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
21407 | as_echo='printf %s\n' | |
21408 | as_echo_n='printf %s' | |
21409 | else | |
21410 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
21411 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
21412 | as_echo_n='/usr/ucb/echo -n' | |
21413 | else | |
21414 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
21415 | as_echo_n_body='eval | |
21416 | arg=$1; | |
21417 | case $arg in #( | |
21418 | *"$as_nl"*) | |
21419 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
21420 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
21421 | esac; | |
21422 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
21423 | ' | |
21424 | export as_echo_n_body | |
21425 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
21426 | fi | |
21427 | export as_echo_body | |
21428 | as_echo='sh -c $as_echo_body as_echo' | |
21429 | fi | |
21430 | ||
21431 | # The user is always right. | |
21432 | if test "${PATH_SEPARATOR+set}" != set; then | |
21433 | PATH_SEPARATOR=: | |
21434 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
21435 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
21436 | PATH_SEPARATOR=';' | |
21437 | } | |
21438 | fi | |
21439 | ||
21440 | ||
21441 | # IFS | |
21442 | # We need space, tab and new line, in precisely that order. Quoting is | |
21443 | # there to prevent editors from complaining about space-tab. | |
21444 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
21445 | # splitting by setting IFS to empty value.) | |
21446 | IFS=" "" $as_nl" | |
21447 | ||
21448 | # Find who we are. Look in the path if we contain no directory separator. | |
21449 | as_myself= | |
21450 | case $0 in #(( | |
21451 | *[\\/]* ) as_myself=$0 ;; | |
21452 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21453 | for as_dir in $PATH | |
21454 | do | |
21455 | IFS=$as_save_IFS | |
21456 | test -z "$as_dir" && as_dir=. | |
21457 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21458 | done | |
21459 | IFS=$as_save_IFS | |
21460 | ||
21461 | ;; | |
21462 | esac | |
21463 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21464 | # in which case we are not to be found in the path. | |
21465 | if test "x$as_myself" = x; then | |
21466 | as_myself=$0 | |
21467 | fi | |
21468 | if test ! -f "$as_myself"; then | |
21469 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
21470 | exit 1 | |
21471 | fi | |
21472 | ||
21473 | # Unset variables that we do not need and which cause bugs (e.g. in | |
21474 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
21475 | # suppresses any "Segmentation fault" message there. '((' could | |
21476 | # trigger a bug in pdksh 5.2.14. | |
21477 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
21478 | do eval test x\${$as_var+set} = xset \ | |
21479 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
21480 | done | |
21481 | PS1='$ ' | |
21482 | PS2='> ' | |
21483 | PS4='+ ' | |
21484 | ||
21485 | # NLS nuisances. | |
21486 | LC_ALL=C | |
21487 | export LC_ALL | |
21488 | LANGUAGE=C | |
21489 | export LANGUAGE | |
21490 | ||
21491 | # CDPATH. | |
21492 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21493 | ||
21494 | ||
21495 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
21496 | # ---------------------------------------- | |
21497 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
21498 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
21499 | # script with STATUS, using 1 if that was 0. | |
21500 | as_fn_error () | |
21501 | { | |
21502 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
21503 | if test "$4"; then | |
21504 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
21505 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
21506 | fi | |
21507 | $as_echo "$as_me: error: $2" >&2 | |
21508 | as_fn_exit $as_status | |
21509 | } # as_fn_error | |
21510 | ||
21511 | ||
21512 | # as_fn_set_status STATUS | |
21513 | # ----------------------- | |
21514 | # Set $? to STATUS, without forking. | |
21515 | as_fn_set_status () | |
21516 | { | |
21517 | return $1 | |
21518 | } # as_fn_set_status | |
21519 | ||
21520 | # as_fn_exit STATUS | |
21521 | # ----------------- | |
21522 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
21523 | as_fn_exit () | |
21524 | { | |
21525 | set +e | |
21526 | as_fn_set_status $1 | |
21527 | exit $1 | |
21528 | } # as_fn_exit | |
21529 | ||
21530 | # as_fn_unset VAR | |
21531 | # --------------- | |
21532 | # Portably unset VAR. | |
21533 | as_fn_unset () | |
21534 | { | |
21535 | { eval $1=; unset $1;} | |
21536 | } | |
21537 | as_unset=as_fn_unset | |
21538 | # as_fn_append VAR VALUE | |
21539 | # ---------------------- | |
21540 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
21541 | # advantage of any shell optimizations that allow amortized linear growth over | |
21542 | # repeated appends, instead of the typical quadratic growth present in naive | |
21543 | # implementations. | |
21544 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
21545 | eval 'as_fn_append () | |
21546 | { | |
21547 | eval $1+=\$2 | |
21548 | }' | |
21549 | else | |
21550 | as_fn_append () | |
21551 | { | |
21552 | eval $1=\$$1\$2 | |
21553 | } | |
21554 | fi # as_fn_append | |
21555 | ||
21556 | # as_fn_arith ARG... | |
21557 | # ------------------ | |
21558 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
21559 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
21560 | # must be portable across $(()) and expr. | |
21561 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
21562 | eval 'as_fn_arith () | |
21563 | { | |
21564 | as_val=$(( $* )) | |
21565 | }' | |
21566 | else | |
21567 | as_fn_arith () | |
21568 | { | |
21569 | as_val=`expr "$@" || test $? -eq 1` | |
21570 | } | |
21571 | fi # as_fn_arith | |
21572 | ||
21573 | ||
21574 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
21575 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
21576 | as_expr=expr | |
21577 | else | |
21578 | as_expr=false | |
21579 | fi | |
21580 | ||
21581 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
21582 | as_basename=basename | |
21583 | else | |
21584 | as_basename=false | |
21585 | fi | |
21586 | ||
21587 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
21588 | as_dirname=dirname | |
21589 | else | |
21590 | as_dirname=false | |
21591 | fi | |
21592 | ||
21593 | as_me=`$as_basename -- "$0" || | |
21594 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21595 | X"$0" : 'X\(//\)$' \| \ | |
21596 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
21597 | $as_echo X/"$0" | | |
21598 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
21599 | s//\1/ | |
21600 | q | |
21601 | } | |
21602 | /^X\/\(\/\/\)$/{ | |
21603 | s//\1/ | |
21604 | q | |
21605 | } | |
21606 | /^X\/\(\/\).*/{ | |
21607 | s//\1/ | |
21608 | q | |
21609 | } | |
21610 | s/.*/./; q'` | |
21611 | ||
21612 | # Avoid depending upon Character Ranges. | |
21613 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21614 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21615 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21616 | as_cr_digits='0123456789' | |
21617 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21618 | ||
21619 | ECHO_C= ECHO_N= ECHO_T= | |
21620 | case `echo -n x` in #((((( | |
21621 | -n*) | |
21622 | case `echo 'xy\c'` in | |
21623 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
21624 | xy) ECHO_C='\c';; | |
21625 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
21626 | ECHO_T=' ';; | |
21627 | esac;; | |
21628 | *) | |
21629 | ECHO_N='-n';; | |
21630 | esac | |
21631 | ||
21632 | rm -f conf$$ conf$$.exe conf$$.file | |
21633 | if test -d conf$$.dir; then | |
21634 | rm -f conf$$.dir/conf$$.file | |
21635 | else | |
21636 | rm -f conf$$.dir | |
21637 | mkdir conf$$.dir 2>/dev/null | |
21638 | fi | |
21639 | if (echo >conf$$.file) 2>/dev/null; then | |
21640 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21641 | as_ln_s='ln -s' | |
21642 | # ... but there are two gotchas: | |
21643 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
21644 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
21645 | # In both cases, we have to default to `cp -pR'. | |
21646 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
21647 | as_ln_s='cp -pR' | |
21648 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21649 | as_ln_s=ln | |
21650 | else | |
21651 | as_ln_s='cp -pR' | |
21652 | fi | |
21653 | else | |
21654 | as_ln_s='cp -pR' | |
21655 | fi | |
21656 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
21657 | rmdir conf$$.dir 2>/dev/null | |
21658 | ||
21659 | ||
21660 | # as_fn_mkdir_p | |
21661 | # ------------- | |
21662 | # Create "$as_dir" as a directory, including parents if necessary. | |
21663 | as_fn_mkdir_p () | |
21664 | { | |
21665 | ||
21666 | case $as_dir in #( | |
21667 | -*) as_dir=./$as_dir;; | |
21668 | esac | |
21669 | test -d "$as_dir" || eval $as_mkdir_p || { | |
21670 | as_dirs= | |
21671 | while :; do | |
21672 | case $as_dir in #( | |
21673 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
21674 | *) as_qdir=$as_dir;; | |
21675 | esac | |
21676 | as_dirs="'$as_qdir' $as_dirs" | |
21677 | as_dir=`$as_dirname -- "$as_dir" || | |
21678 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21679 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21680 | X"$as_dir" : 'X\(//\)$' \| \ | |
21681 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
21682 | $as_echo X"$as_dir" | | |
21683 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21684 | s//\1/ | |
21685 | q | |
21686 | } | |
21687 | /^X\(\/\/\)[^/].*/{ | |
21688 | s//\1/ | |
21689 | q | |
21690 | } | |
21691 | /^X\(\/\/\)$/{ | |
21692 | s//\1/ | |
21693 | q | |
21694 | } | |
21695 | /^X\(\/\).*/{ | |
21696 | s//\1/ | |
21697 | q | |
21698 | } | |
21699 | s/.*/./; q'` | |
21700 | test -d "$as_dir" && break | |
21701 | done | |
21702 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
21703 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
21704 | ||
21705 | ||
21706 | } # as_fn_mkdir_p | |
21707 | if mkdir -p . 2>/dev/null; then | |
21708 | as_mkdir_p='mkdir -p "$as_dir"' | |
21709 | else | |
21710 | test -d ./-p && rmdir ./-p | |
21711 | as_mkdir_p=false | |
21712 | fi | |
21713 | ||
21714 | ||
21715 | # as_fn_executable_p FILE | |
21716 | # ----------------------- | |
21717 | # Test if FILE is an executable regular file. | |
21718 | as_fn_executable_p () | |
21719 | { | |
21720 | test -f "$1" && test -x "$1" | |
21721 | } # as_fn_executable_p | |
21722 | as_test_x='test -x' | |
21723 | as_executable_p=as_fn_executable_p | |
21724 | ||
21725 | # Sed expression to map a string onto a valid CPP name. | |
21726 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21727 | ||
21728 | # Sed expression to map a string onto a valid variable name. | |
21729 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21730 | ||
21731 | ||
21732 | exec 6>&1 | |
21733 | ## ----------------------------------- ## | |
21734 | ## Main body of $CONFIG_STATUS script. ## | |
21735 | ## ----------------------------------- ## | |
21736 | _ASEOF | |
21737 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
21738 | ||
21739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21740 | # Save the log message, to keep $0 and so on meaningful, and to | |
21741 | # report actual input values of CONFIG_FILES etc. instead of their | |
21742 | # values after options handling. | |
21743 | ac_log=" | |
21744 | This file was extended by Cycript $as_me 0.9, which was | |
21745 | generated by GNU Autoconf 2.69. Invocation command line was | |
21746 | ||
21747 | CONFIG_FILES = $CONFIG_FILES | |
21748 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21749 | CONFIG_LINKS = $CONFIG_LINKS | |
21750 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21751 | $ $0 $@ | |
21752 | ||
21753 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
21754 | " | |
21755 | ||
21756 | _ACEOF | |
21757 | ||
21758 | case $ac_config_files in *" | |
21759 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
21760 | esac | |
21761 | ||
21762 | case $ac_config_headers in *" | |
21763 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
21764 | esac | |
21765 | ||
21766 | ||
21767 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21768 | # Files that config.status was made for. | |
21769 | config_files="$ac_config_files" | |
21770 | config_headers="$ac_config_headers" | |
21771 | config_commands="$ac_config_commands" | |
21772 | ||
21773 | _ACEOF | |
21774 | ||
21775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21776 | ac_cs_usage="\ | |
21777 | \`$as_me' instantiates files and other configuration actions | |
21778 | from templates according to the current configuration. Unless the files | |
21779 | and actions are specified as TAGs, all are instantiated by default. | |
21780 | ||
21781 | Usage: $0 [OPTION]... [TAG]... | |
21782 | ||
21783 | -h, --help print this help, then exit | |
21784 | -V, --version print version number and configuration settings, then exit | |
21785 | --config print configuration, then exit | |
21786 | -q, --quiet, --silent | |
21787 | do not print progress messages | |
21788 | -d, --debug don't remove temporary files | |
21789 | --recheck update $as_me by reconfiguring in the same conditions | |
21790 | --file=FILE[:TEMPLATE] | |
21791 | instantiate the configuration file FILE | |
21792 | --header=FILE[:TEMPLATE] | |
21793 | instantiate the configuration header FILE | |
21794 | ||
21795 | Configuration files: | |
21796 | $config_files | |
21797 | ||
21798 | Configuration headers: | |
21799 | $config_headers | |
21800 | ||
21801 | Configuration commands: | |
21802 | $config_commands | |
21803 | ||
21804 | Report bugs to <saurik@saurik.com>. | |
21805 | Cycript home page: <http://www.cycript.org/>." | |
21806 | ||
21807 | _ACEOF | |
21808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21809 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
21810 | ac_cs_version="\\ | |
21811 | Cycript config.status 0.9 | |
21812 | configured by $0, generated by GNU Autoconf 2.69, | |
21813 | with options \\"\$ac_cs_config\\" | |
21814 | ||
21815 | Copyright (C) 2012 Free Software Foundation, Inc. | |
21816 | This config.status script is free software; the Free Software Foundation | |
21817 | gives unlimited permission to copy, distribute and modify it." | |
21818 | ||
21819 | ac_pwd='$ac_pwd' | |
21820 | srcdir='$srcdir' | |
21821 | INSTALL='$INSTALL' | |
21822 | MKDIR_P='$MKDIR_P' | |
21823 | AWK='$AWK' | |
21824 | test -n "\$AWK" || AWK=awk | |
21825 | _ACEOF | |
21826 | ||
21827 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21828 | # The default lists apply if the user does not specify any file. | |
21829 | ac_need_defaults=: | |
21830 | while test $# != 0 | |
21831 | do | |
21832 | case $1 in | |
21833 | --*=?*) | |
21834 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21835 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
21836 | ac_shift=: | |
21837 | ;; | |
21838 | --*=) | |
21839 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21840 | ac_optarg= | |
21841 | ac_shift=: | |
21842 | ;; | |
21843 | *) | |
21844 | ac_option=$1 | |
21845 | ac_optarg=$2 | |
21846 | ac_shift=shift | |
21847 | ;; | |
21848 | esac | |
21849 | ||
21850 | case $ac_option in | |
21851 | # Handling of the options. | |
21852 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21853 | ac_cs_recheck=: ;; | |
21854 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
21855 | $as_echo "$ac_cs_version"; exit ;; | |
21856 | --config | --confi | --conf | --con | --co | --c ) | |
21857 | $as_echo "$ac_cs_config"; exit ;; | |
21858 | --debug | --debu | --deb | --de | --d | -d ) | |
21859 | debug=: ;; | |
21860 | --file | --fil | --fi | --f ) | |
21861 | $ac_shift | |
21862 | case $ac_optarg in | |
21863 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21864 | '') as_fn_error $? "missing file argument" ;; | |
21865 | esac | |
21866 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
21867 | ac_need_defaults=false;; | |
21868 | --header | --heade | --head | --hea ) | |
21869 | $ac_shift | |
21870 | case $ac_optarg in | |
21871 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21872 | esac | |
21873 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
21874 | ac_need_defaults=false;; | |
21875 | --he | --h) | |
21876 | # Conflict between --help and --header | |
21877 | as_fn_error $? "ambiguous option: \`$1' | |
21878 | Try \`$0 --help' for more information.";; | |
21879 | --help | --hel | -h ) | |
21880 | $as_echo "$ac_cs_usage"; exit ;; | |
21881 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21882 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21883 | ac_cs_silent=: ;; | |
21884 | ||
21885 | # This is an error. | |
21886 | -*) as_fn_error $? "unrecognized option: \`$1' | |
21887 | Try \`$0 --help' for more information." ;; | |
21888 | ||
21889 | *) as_fn_append ac_config_targets " $1" | |
21890 | ac_need_defaults=false ;; | |
21891 | ||
21892 | esac | |
21893 | shift | |
21894 | done | |
21895 | ||
21896 | ac_configure_extra_args= | |
21897 | ||
21898 | if $ac_cs_silent; then | |
21899 | exec 6>/dev/null | |
21900 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21901 | fi | |
21902 | ||
21903 | _ACEOF | |
21904 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21905 | if \$ac_cs_recheck; then | |
21906 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21907 | shift | |
21908 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
21909 | CONFIG_SHELL='$SHELL' | |
21910 | export CONFIG_SHELL | |
21911 | exec "\$@" | |
21912 | fi | |
21913 | ||
21914 | _ACEOF | |
21915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21916 | exec 5>>config.log | |
21917 | { | |
21918 | echo | |
21919 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21920 | ## Running $as_me. ## | |
21921 | _ASBOX | |
21922 | $as_echo "$ac_log" | |
21923 | } >&5 | |
21924 | ||
21925 | _ACEOF | |
21926 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21927 | # | |
21928 | # INIT-COMMANDS | |
21929 | # | |
21930 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
21931 | ||
21932 | ||
21933 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21934 | # if CDPATH is set. | |
21935 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21936 | ||
21937 | sed_quote_subst='$sed_quote_subst' | |
21938 | double_quote_subst='$double_quote_subst' | |
21939 | delay_variable_subst='$delay_variable_subst' | |
21940 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
21941 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
21942 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
21943 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
21944 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
21945 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
21946 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
21947 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
21948 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
21949 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
21950 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
21951 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
21952 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
21953 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
21954 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
21955 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
21956 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
21957 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
21958 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
21959 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
21960 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
21961 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
21962 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
21963 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
21964 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
21965 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
21966 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
21967 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
21968 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
21969 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
21970 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21971 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
21972 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
21973 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
21974 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
21975 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
21976 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
21977 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
21978 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
21979 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
21980 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
21981 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
21982 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
21983 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
21984 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
21985 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
21986 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21987 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
21988 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
21989 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
21990 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
21991 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
21992 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
21993 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
21994 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
21995 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
21996 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
21997 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
21998 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
21999 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
22000 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22001 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
22002 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
22003 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
22004 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
22005 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
22006 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
22007 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
22008 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
22009 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
22010 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
22011 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
22012 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
22013 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
22014 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
22015 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
22016 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
22017 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
22018 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
22019 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22020 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
22021 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
22022 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22023 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22024 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
22025 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
22026 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22027 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22028 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22029 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
22030 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22031 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
22032 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22033 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22034 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22035 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
22036 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
22037 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
22038 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
22039 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22040 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
22041 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
22042 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
22043 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
22044 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
22045 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
22046 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
22047 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
22048 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
22049 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22050 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
22051 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
22052 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
22053 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
22054 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
22055 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22056 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
22057 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
22058 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
22059 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
22060 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
22061 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22062 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22063 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
22064 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
22065 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
22066 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
22067 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
22068 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
22069 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
22070 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
22071 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
22072 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
22073 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
22074 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
22075 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
22076 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
22077 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
22078 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
22079 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
22080 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
22081 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
22082 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22083 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22084 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22085 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
22086 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
22087 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22088 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
22089 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
22090 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
22091 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
22092 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
22093 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
22094 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22095 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22096 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
22097 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22098 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22099 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22100 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22101 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22102 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22103 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
22104 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22105 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
22106 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22107 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
22108 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
22109 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
22110 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
22111 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
22112 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
22113 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
22114 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
22115 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
22116 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22117 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22118 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
22119 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22120 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
22121 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
22122 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
22123 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
22124 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22125 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
22126 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22127 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
22128 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
22129 | ||
22130 | LTCC='$LTCC' | |
22131 | LTCFLAGS='$LTCFLAGS' | |
22132 | compiler='$compiler_DEFAULT' | |
22133 | ||
22134 | # A function that is used when there is no print builtin or printf. | |
22135 | func_fallback_echo () | |
22136 | { | |
22137 | eval 'cat <<_LTECHO_EOF | |
22138 | \$1 | |
22139 | _LTECHO_EOF' | |
22140 | } | |
22141 | ||
22142 | # Quote evaled strings. | |
22143 | for var in SHELL \ | |
22144 | ECHO \ | |
22145 | PATH_SEPARATOR \ | |
22146 | SED \ | |
22147 | GREP \ | |
22148 | EGREP \ | |
22149 | FGREP \ | |
22150 | LD \ | |
22151 | NM \ | |
22152 | LN_S \ | |
22153 | lt_SP2NL \ | |
22154 | lt_NL2SP \ | |
22155 | reload_flag \ | |
22156 | OBJDUMP \ | |
22157 | deplibs_check_method \ | |
22158 | file_magic_cmd \ | |
22159 | file_magic_glob \ | |
22160 | want_nocaseglob \ | |
22161 | DLLTOOL \ | |
22162 | sharedlib_from_linklib_cmd \ | |
22163 | AR \ | |
22164 | AR_FLAGS \ | |
22165 | archiver_list_spec \ | |
22166 | STRIP \ | |
22167 | RANLIB \ | |
22168 | CC \ | |
22169 | CFLAGS \ | |
22170 | compiler \ | |
22171 | lt_cv_sys_global_symbol_pipe \ | |
22172 | lt_cv_sys_global_symbol_to_cdecl \ | |
22173 | lt_cv_sys_global_symbol_to_import \ | |
22174 | lt_cv_sys_global_symbol_to_c_name_address \ | |
22175 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
22176 | lt_cv_nm_interface \ | |
22177 | nm_file_list_spec \ | |
22178 | lt_cv_truncate_bin \ | |
22179 | lt_prog_compiler_no_builtin_flag \ | |
22180 | lt_prog_compiler_pic \ | |
22181 | lt_prog_compiler_wl \ | |
22182 | lt_prog_compiler_static \ | |
22183 | lt_cv_prog_compiler_c_o \ | |
22184 | need_locks \ | |
22185 | MANIFEST_TOOL \ | |
22186 | DSYMUTIL \ | |
22187 | NMEDIT \ | |
22188 | LIPO \ | |
22189 | OTOOL \ | |
22190 | OTOOL64 \ | |
22191 | shrext_cmds \ | |
22192 | export_dynamic_flag_spec \ | |
22193 | whole_archive_flag_spec \ | |
22194 | compiler_needs_object \ | |
22195 | with_gnu_ld \ | |
22196 | allow_undefined_flag \ | |
22197 | no_undefined_flag \ | |
22198 | hardcode_libdir_flag_spec \ | |
22199 | hardcode_libdir_separator \ | |
22200 | exclude_expsyms \ | |
22201 | include_expsyms \ | |
22202 | file_list_spec \ | |
22203 | variables_saved_for_relink \ | |
22204 | libname_spec \ | |
22205 | library_names_spec \ | |
22206 | soname_spec \ | |
22207 | install_override_mode \ | |
22208 | finish_eval \ | |
22209 | old_striplib \ | |
22210 | striplib \ | |
22211 | compiler_lib_search_dirs \ | |
22212 | predep_objects \ | |
22213 | postdep_objects \ | |
22214 | predeps \ | |
22215 | postdeps \ | |
22216 | compiler_lib_search_path \ | |
22217 | LD_CXX \ | |
22218 | reload_flag_CXX \ | |
22219 | compiler_CXX \ | |
22220 | lt_prog_compiler_no_builtin_flag_CXX \ | |
22221 | lt_prog_compiler_pic_CXX \ | |
22222 | lt_prog_compiler_wl_CXX \ | |
22223 | lt_prog_compiler_static_CXX \ | |
22224 | lt_cv_prog_compiler_c_o_CXX \ | |
22225 | export_dynamic_flag_spec_CXX \ | |
22226 | whole_archive_flag_spec_CXX \ | |
22227 | compiler_needs_object_CXX \ | |
22228 | with_gnu_ld_CXX \ | |
22229 | allow_undefined_flag_CXX \ | |
22230 | no_undefined_flag_CXX \ | |
22231 | hardcode_libdir_flag_spec_CXX \ | |
22232 | hardcode_libdir_separator_CXX \ | |
22233 | exclude_expsyms_CXX \ | |
22234 | include_expsyms_CXX \ | |
22235 | file_list_spec_CXX \ | |
22236 | compiler_lib_search_dirs_CXX \ | |
22237 | predep_objects_CXX \ | |
22238 | postdep_objects_CXX \ | |
22239 | predeps_CXX \ | |
22240 | postdeps_CXX \ | |
22241 | compiler_lib_search_path_CXX; do | |
22242 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
22243 | *[\\\\\\\`\\"\\\$]*) | |
22244 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
22245 | ;; | |
22246 | *) | |
22247 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22248 | ;; | |
22249 | esac | |
22250 | done | |
22251 | ||
22252 | # Double-quote double-evaled strings. | |
22253 | for var in reload_cmds \ | |
22254 | old_postinstall_cmds \ | |
22255 | old_postuninstall_cmds \ | |
22256 | old_archive_cmds \ | |
22257 | extract_expsyms_cmds \ | |
22258 | old_archive_from_new_cmds \ | |
22259 | old_archive_from_expsyms_cmds \ | |
22260 | archive_cmds \ | |
22261 | archive_expsym_cmds \ | |
22262 | module_cmds \ | |
22263 | module_expsym_cmds \ | |
22264 | export_symbols_cmds \ | |
22265 | prelink_cmds \ | |
22266 | postlink_cmds \ | |
22267 | postinstall_cmds \ | |
22268 | postuninstall_cmds \ | |
22269 | finish_cmds \ | |
22270 | sys_lib_search_path_spec \ | |
22271 | configure_time_dlsearch_path \ | |
22272 | configure_time_lt_sys_library_path \ | |
22273 | reload_cmds_CXX \ | |
22274 | old_archive_cmds_CXX \ | |
22275 | old_archive_from_new_cmds_CXX \ | |
22276 | old_archive_from_expsyms_cmds_CXX \ | |
22277 | archive_cmds_CXX \ | |
22278 | archive_expsym_cmds_CXX \ | |
22279 | module_cmds_CXX \ | |
22280 | module_expsym_cmds_CXX \ | |
22281 | export_symbols_cmds_CXX \ | |
22282 | prelink_cmds_CXX \ | |
22283 | postlink_cmds_CXX; do | |
22284 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
22285 | *[\\\\\\\`\\"\\\$]*) | |
22286 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
22287 | ;; | |
22288 | *) | |
22289 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22290 | ;; | |
22291 | esac | |
22292 | done | |
22293 | ||
22294 | ac_aux_dir='$ac_aux_dir' | |
22295 | ||
22296 | # See if we are running on zsh, and set the options that allow our | |
22297 | # commands through without removal of \ escapes INIT. | |
22298 | if test -n "\${ZSH_VERSION+set}"; then | |
22299 | setopt NO_GLOB_SUBST | |
22300 | fi | |
22301 | ||
22302 | ||
22303 | PACKAGE='$PACKAGE' | |
22304 | VERSION='$VERSION' | |
22305 | RM='$RM' | |
22306 | ofile='$ofile' | |
22307 | ||
22308 | ||
22309 | ||
22310 | ||
22311 | ||
22312 | ||
22313 | _ACEOF | |
22314 | ||
22315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22316 | ||
22317 | # Handling of arguments. | |
22318 | for ac_config_target in $ac_config_targets | |
22319 | do | |
22320 | case $ac_config_target in | |
22321 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
22322 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
22323 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
22324 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22325 | ||
22326 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
22327 | esac | |
22328 | done | |
22329 | ||
22330 | ||
22331 | # If the user did not use the arguments to specify the items to instantiate, | |
22332 | # then the envvar interface is used. Set only those that are not. | |
22333 | # We use the long form for the default assignment because of an extremely | |
22334 | # bizarre bug on SunOS 4.1.3. | |
22335 | if $ac_need_defaults; then | |
22336 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22337 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22338 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22339 | fi | |
22340 | ||
22341 | # Have a temporary directory for convenience. Make it in the build tree | |
22342 | # simply because there is no reason against having it here, and in addition, | |
22343 | # creating and moving files from /tmp can sometimes cause problems. | |
22344 | # Hook for its removal unless debugging. | |
22345 | # Note that there is a small window in which the directory will not be cleaned: | |
22346 | # after its creation but before its name has been assigned to `$tmp'. | |
22347 | $debug || | |
22348 | { | |
22349 | tmp= ac_tmp= | |
22350 | trap 'exit_status=$? | |
22351 | : "${ac_tmp:=$tmp}" | |
22352 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
22353 | ' 0 | |
22354 | trap 'as_fn_exit 1' 1 2 13 15 | |
22355 | } | |
22356 | # Create a (secure) tmp directory for tmp files. | |
22357 | ||
22358 | { | |
22359 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22360 | test -d "$tmp" | |
22361 | } || | |
22362 | { | |
22363 | tmp=./conf$$-$RANDOM | |
22364 | (umask 077 && mkdir "$tmp") | |
22365 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
22366 | ac_tmp=$tmp | |
22367 | ||
22368 | # Set up the scripts for CONFIG_FILES section. | |
22369 | # No need to generate them if there are no CONFIG_FILES. | |
22370 | # This happens for instance with `./config.status config.h'. | |
22371 | if test -n "$CONFIG_FILES"; then | |
22372 | ||
22373 | ||
22374 | ac_cr=`echo X | tr X '\015'` | |
22375 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
22376 | # But we know of no other shell where ac_cr would be empty at this | |
22377 | # point, so we can use a bashism as a fallback. | |
22378 | if test "x$ac_cr" = x; then | |
22379 | eval ac_cr=\$\'\\r\' | |
22380 | fi | |
22381 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
22382 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22383 | ac_cs_awk_cr='\\r' | |
22384 | else | |
22385 | ac_cs_awk_cr=$ac_cr | |
22386 | fi | |
22387 | ||
22388 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
22389 | _ACEOF | |
22390 | ||
22391 | ||
22392 | { | |
22393 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
22394 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
22395 | echo "_ACEOF" | |
22396 | } >conf$$subs.sh || | |
22397 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
22398 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
22399 | ac_delim='%!_!# ' | |
22400 | for ac_last_try in false false false false false :; do | |
22401 | . ./conf$$subs.sh || | |
22402 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
22403 | ||
22404 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
22405 | if test $ac_delim_n = $ac_delim_num; then | |
22406 | break | |
22407 | elif $ac_last_try; then | |
22408 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
22409 | else | |
22410 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22411 | fi | |
22412 | done | |
22413 | rm -f conf$$subs.sh | |
22414 | ||
22415 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22416 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
22417 | _ACEOF | |
22418 | sed -n ' | |
22419 | h | |
22420 | s/^/S["/; s/!.*/"]=/ | |
22421 | p | |
22422 | g | |
22423 | s/^[^!]*!// | |
22424 | :repl | |
22425 | t repl | |
22426 | s/'"$ac_delim"'$// | |
22427 | t delim | |
22428 | :nl | |
22429 | h | |
22430 | s/\(.\{148\}\)..*/\1/ | |
22431 | t more1 | |
22432 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
22433 | p | |
22434 | n | |
22435 | b repl | |
22436 | :more1 | |
22437 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
22438 | p | |
22439 | g | |
22440 | s/.\{148\}// | |
22441 | t nl | |
22442 | :delim | |
22443 | h | |
22444 | s/\(.\{148\}\)..*/\1/ | |
22445 | t more2 | |
22446 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
22447 | p | |
22448 | b | |
22449 | :more2 | |
22450 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
22451 | p | |
22452 | g | |
22453 | s/.\{148\}// | |
22454 | t delim | |
22455 | ' <conf$$subs.awk | sed ' | |
22456 | /^[^""]/{ | |
22457 | N | |
22458 | s/\n// | |
22459 | } | |
22460 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
22461 | rm -f conf$$subs.awk | |
22462 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22463 | _ACAWK | |
22464 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
22465 | for (key in S) S_is_set[key] = 1 | |
22466 | FS = "\a" | |
22467 | ||
22468 | } | |
22469 | { | |
22470 | line = $ 0 | |
22471 | nfields = split(line, field, "@") | |
22472 | substed = 0 | |
22473 | len = length(field[1]) | |
22474 | for (i = 2; i < nfields; i++) { | |
22475 | key = field[i] | |
22476 | keylen = length(key) | |
22477 | if (S_is_set[key]) { | |
22478 | value = S[key] | |
22479 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
22480 | len += length(value) + length(field[++i]) | |
22481 | substed = 1 | |
22482 | } else | |
22483 | len += 1 + keylen | |
22484 | } | |
22485 | ||
22486 | print line | |
22487 | } | |
22488 | ||
22489 | _ACAWK | |
22490 | _ACEOF | |
22491 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22492 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
22493 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
22494 | else | |
22495 | cat | |
22496 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
22497 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
22498 | _ACEOF | |
22499 | ||
22500 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
22501 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
22502 | # trailing colons and then remove the whole line if VPATH becomes empty | |
22503 | # (actually we leave an empty line to preserve line numbers). | |
22504 | if test "x$srcdir" = x.; then | |
22505 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
22506 | h | |
22507 | s/// | |
22508 | s/^/:/ | |
22509 | s/[ ]*$/:/ | |
22510 | s/:\$(srcdir):/:/g | |
22511 | s/:\${srcdir}:/:/g | |
22512 | s/:@srcdir@:/:/g | |
22513 | s/^:*// | |
22514 | s/:*$// | |
22515 | x | |
22516 | s/\(=[ ]*\).*/\1/ | |
22517 | G | |
22518 | s/\n// | |
22519 | s/^[^=]*=[ ]*$// | |
22520 | }' | |
22521 | fi | |
22522 | ||
22523 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22524 | fi # test -n "$CONFIG_FILES" | |
22525 | ||
22526 | # Set up the scripts for CONFIG_HEADERS section. | |
22527 | # No need to generate them if there are no CONFIG_HEADERS. | |
22528 | # This happens for instance with `./config.status Makefile'. | |
22529 | if test -n "$CONFIG_HEADERS"; then | |
22530 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
22531 | BEGIN { | |
22532 | _ACEOF | |
22533 | ||
22534 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
22535 | # here-document in config.status, that substitutes the proper values into | |
22536 | # config.h.in to produce config.h. | |
22537 | ||
22538 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
22539 | # handling of long lines. | |
22540 | ac_delim='%!_!# ' | |
22541 | for ac_last_try in false false :; do | |
22542 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
22543 | if test -z "$ac_tt"; then | |
22544 | break | |
22545 | elif $ac_last_try; then | |
22546 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
22547 | else | |
22548 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22549 | fi | |
22550 | done | |
22551 | ||
22552 | # For the awk script, D is an array of macro values keyed by name, | |
22553 | # likewise P contains macro parameters if any. Preserve backslash | |
22554 | # newline sequences. | |
22555 | ||
22556 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
22557 | sed -n ' | |
22558 | s/.\{148\}/&'"$ac_delim"'/g | |
22559 | t rset | |
22560 | :rset | |
22561 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
22562 | t def | |
22563 | d | |
22564 | :def | |
22565 | s/\\$// | |
22566 | t bsnl | |
22567 | s/["\\]/\\&/g | |
22568 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
22569 | D["\1"]=" \3"/p | |
22570 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
22571 | d | |
22572 | :bsnl | |
22573 | s/["\\]/\\&/g | |
22574 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
22575 | D["\1"]=" \3\\\\\\n"\\/p | |
22576 | t cont | |
22577 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
22578 | t cont | |
22579 | d | |
22580 | :cont | |
22581 | n | |
22582 | s/.\{148\}/&'"$ac_delim"'/g | |
22583 | t clear | |
22584 | :clear | |
22585 | s/\\$// | |
22586 | t bsnlc | |
22587 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
22588 | d | |
22589 | :bsnlc | |
22590 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
22591 | b cont | |
22592 | ' <confdefs.h | sed ' | |
22593 | s/'"$ac_delim"'/"\\\ | |
22594 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
22595 | ||
22596 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22597 | for (key in D) D_is_set[key] = 1 | |
22598 | FS = "\a" | |
22599 | } | |
22600 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
22601 | line = \$ 0 | |
22602 | split(line, arg, " ") | |
22603 | if (arg[1] == "#") { | |
22604 | defundef = arg[2] | |
22605 | mac1 = arg[3] | |
22606 | } else { | |
22607 | defundef = substr(arg[1], 2) | |
22608 | mac1 = arg[2] | |
22609 | } | |
22610 | split(mac1, mac2, "(") #) | |
22611 | macro = mac2[1] | |
22612 | prefix = substr(line, 1, index(line, defundef) - 1) | |
22613 | if (D_is_set[macro]) { | |
22614 | # Preserve the white space surrounding the "#". | |
22615 | print prefix "define", macro P[macro] D[macro] | |
22616 | next | |
22617 | } else { | |
22618 | # Replace #undef with comments. This is necessary, for example, | |
22619 | # in the case of _POSIX_SOURCE, which is predefined and required | |
22620 | # on some systems where configure will not decide to define it. | |
22621 | if (defundef == "undef") { | |
22622 | print "/*", prefix defundef, macro, "*/" | |
22623 | next | |
22624 | } | |
22625 | } | |
22626 | } | |
22627 | { print } | |
22628 | _ACAWK | |
22629 | _ACEOF | |
22630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22631 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
22632 | fi # test -n "$CONFIG_HEADERS" | |
22633 | ||
22634 | ||
22635 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
22636 | shift | |
22637 | for ac_tag | |
22638 | do | |
22639 | case $ac_tag in | |
22640 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
22641 | esac | |
22642 | case $ac_mode$ac_tag in | |
22643 | :[FHL]*:*);; | |
22644 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
22645 | :[FH]-) ac_tag=-:-;; | |
22646 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
22647 | esac | |
22648 | ac_save_IFS=$IFS | |
22649 | IFS=: | |
22650 | set x $ac_tag | |
22651 | IFS=$ac_save_IFS | |
22652 | shift | |
22653 | ac_file=$1 | |
22654 | shift | |
22655 | ||
22656 | case $ac_mode in | |
22657 | :L) ac_source=$1;; | |
22658 | :[FH]) | |
22659 | ac_file_inputs= | |
22660 | for ac_f | |
22661 | do | |
22662 | case $ac_f in | |
22663 | -) ac_f="$ac_tmp/stdin";; | |
22664 | *) # Look for the file first in the build tree, then in the source tree | |
22665 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
22666 | # because $ac_f cannot contain `:'. | |
22667 | test -f "$ac_f" || | |
22668 | case $ac_f in | |
22669 | [\\/$]*) false;; | |
22670 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
22671 | esac || | |
22672 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
22673 | esac | |
22674 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
22675 | as_fn_append ac_file_inputs " '$ac_f'" | |
22676 | done | |
22677 | ||
22678 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22679 | # use $as_me), people would be surprised to read: | |
22680 | # /* config.h. Generated by config.status. */ | |
22681 | configure_input='Generated from '` | |
22682 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
22683 | `' by configure.' | |
22684 | if test x"$ac_file" != x-; then | |
22685 | configure_input="$ac_file. $configure_input" | |
22686 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
22687 | $as_echo "$as_me: creating $ac_file" >&6;} | |
22688 | fi | |
22689 | # Neutralize special characters interpreted by sed in replacement strings. | |
22690 | case $configure_input in #( | |
22691 | *\&* | *\|* | *\\* ) | |
22692 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
22693 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
22694 | *) ac_sed_conf_input=$configure_input;; | |
22695 | esac | |
22696 | ||
22697 | case $ac_tag in | |
22698 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
22699 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
22700 | esac | |
22701 | ;; | |
22702 | esac | |
22703 | ||
22704 | ac_dir=`$as_dirname -- "$ac_file" || | |
22705 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22706 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22707 | X"$ac_file" : 'X\(//\)$' \| \ | |
22708 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
22709 | $as_echo X"$ac_file" | | |
22710 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22711 | s//\1/ | |
22712 | q | |
22713 | } | |
22714 | /^X\(\/\/\)[^/].*/{ | |
22715 | s//\1/ | |
22716 | q | |
22717 | } | |
22718 | /^X\(\/\/\)$/{ | |
22719 | s//\1/ | |
22720 | q | |
22721 | } | |
22722 | /^X\(\/\).*/{ | |
22723 | s//\1/ | |
22724 | q | |
22725 | } | |
22726 | s/.*/./; q'` | |
22727 | as_dir="$ac_dir"; as_fn_mkdir_p | |
22728 | ac_builddir=. | |
22729 | ||
22730 | case "$ac_dir" in | |
22731 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22732 | *) | |
22733 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
22734 | # A ".." for each directory in $ac_dir_suffix. | |
22735 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
22736 | case $ac_top_builddir_sub in | |
22737 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22738 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22739 | esac ;; | |
22740 | esac | |
22741 | ac_abs_top_builddir=$ac_pwd | |
22742 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22743 | # for backward compatibility: | |
22744 | ac_top_builddir=$ac_top_build_prefix | |
22745 | ||
22746 | case $srcdir in | |
22747 | .) # We are building in place. | |
22748 | ac_srcdir=. | |
22749 | ac_top_srcdir=$ac_top_builddir_sub | |
22750 | ac_abs_top_srcdir=$ac_pwd ;; | |
22751 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
22752 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22753 | ac_top_srcdir=$srcdir | |
22754 | ac_abs_top_srcdir=$srcdir ;; | |
22755 | *) # Relative name. | |
22756 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22757 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22758 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
22759 | esac | |
22760 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
22761 | ||
22762 | ||
22763 | case $ac_mode in | |
22764 | :F) | |
22765 | # | |
22766 | # CONFIG_FILE | |
22767 | # | |
22768 | ||
22769 | case $INSTALL in | |
22770 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22771 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
22772 | esac | |
22773 | ac_MKDIR_P=$MKDIR_P | |
22774 | case $MKDIR_P in | |
22775 | [\\/$]* | ?:[\\/]* ) ;; | |
22776 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
22777 | esac | |
22778 | _ACEOF | |
22779 | ||
22780 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22781 | # If the template does not know about datarootdir, expand it. | |
22782 | # FIXME: This hack should be removed a few years after 2.60. | |
22783 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
22784 | ac_sed_dataroot=' | |
22785 | /datarootdir/ { | |
22786 | p | |
22787 | q | |
22788 | } | |
22789 | /@datadir@/p | |
22790 | /@docdir@/p | |
22791 | /@infodir@/p | |
22792 | /@localedir@/p | |
22793 | /@mandir@/p' | |
22794 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
22795 | *datarootdir*) ac_datarootdir_seen=yes;; | |
22796 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
22797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
22798 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
22799 | _ACEOF | |
22800 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22801 | ac_datarootdir_hack=' | |
22802 | s&@datadir@&$datadir&g | |
22803 | s&@docdir@&$docdir&g | |
22804 | s&@infodir@&$infodir&g | |
22805 | s&@localedir@&$localedir&g | |
22806 | s&@mandir@&$mandir&g | |
22807 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
22808 | esac | |
22809 | _ACEOF | |
22810 | ||
22811 | # Neutralize VPATH when `$srcdir' = `.'. | |
22812 | # Shell code in configure.ac might set extrasub. | |
22813 | # FIXME: do we really want to maintain this feature? | |
22814 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22815 | ac_sed_extra="$ac_vpsub | |
22816 | $extrasub | |
22817 | _ACEOF | |
22818 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22819 | :t | |
22820 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22821 | s|@configure_input@|$ac_sed_conf_input|;t t | |
22822 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
22823 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
22824 | s&@srcdir@&$ac_srcdir&;t t | |
22825 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
22826 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
22827 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
22828 | s&@builddir@&$ac_builddir&;t t | |
22829 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
22830 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
22831 | s&@INSTALL@&$ac_INSTALL&;t t | |
22832 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
22833 | $ac_datarootdir_hack | |
22834 | " | |
22835 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
22836 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22837 | ||
22838 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22839 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
22840 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
22841 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
22842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22843 | which seems to be undefined. Please make sure it is defined" >&5 | |
22844 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22845 | which seems to be undefined. Please make sure it is defined" >&2;} | |
22846 | ||
22847 | rm -f "$ac_tmp/stdin" | |
22848 | case $ac_file in | |
22849 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
22850 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
22851 | esac \ | |
22852 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22853 | ;; | |
22854 | :H) | |
22855 | # | |
22856 | # CONFIG_HEADER | |
22857 | # | |
22858 | if test x"$ac_file" != x-; then | |
22859 | { | |
22860 | $as_echo "/* $configure_input */" \ | |
22861 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
22862 | } >"$ac_tmp/config.h" \ | |
22863 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22864 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
22865 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
22866 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
22867 | else | |
22868 | rm -f "$ac_file" | |
22869 | mv "$ac_tmp/config.h" "$ac_file" \ | |
22870 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
22871 | fi | |
22872 | else | |
22873 | $as_echo "/* $configure_input */" \ | |
22874 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
22875 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
22876 | fi | |
22877 | # Compute "$ac_file"'s index in $config_headers. | |
22878 | _am_arg="$ac_file" | |
22879 | _am_stamp_count=1 | |
22880 | for _am_header in $config_headers :; do | |
22881 | case $_am_header in | |
22882 | $_am_arg | $_am_arg:* ) | |
22883 | break ;; | |
22884 | * ) | |
22885 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22886 | esac | |
22887 | done | |
22888 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
22889 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22890 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
22891 | X"$_am_arg" : 'X\(//\)$' \| \ | |
22892 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
22893 | $as_echo X"$_am_arg" | | |
22894 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22895 | s//\1/ | |
22896 | q | |
22897 | } | |
22898 | /^X\(\/\/\)[^/].*/{ | |
22899 | s//\1/ | |
22900 | q | |
22901 | } | |
22902 | /^X\(\/\/\)$/{ | |
22903 | s//\1/ | |
22904 | q | |
22905 | } | |
22906 | /^X\(\/\).*/{ | |
22907 | s//\1/ | |
22908 | q | |
22909 | } | |
22910 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22911 | ;; | |
22912 | ||
22913 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
22914 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
22915 | ;; | |
22916 | esac | |
22917 | ||
22918 | ||
22919 | case $ac_file$ac_mode in | |
22920 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
22921 | # Older Autoconf quotes --file arguments for eval, but not when files | |
22922 | # are listed without --file. Let's play safe and only enable the eval | |
22923 | # if we detect the quoting. | |
22924 | case $CONFIG_FILES in | |
22925 | *\'*) eval set x "$CONFIG_FILES" ;; | |
22926 | *) set x $CONFIG_FILES ;; | |
22927 | esac | |
22928 | shift | |
22929 | for mf | |
22930 | do | |
22931 | # Strip MF so we end up with the name of the file. | |
22932 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22933 | # Check whether this is an Automake generated Makefile or not. | |
22934 | # We used to match only the files named 'Makefile.in', but | |
22935 | # some people rename them; so instead we look at the file content. | |
22936 | # Grep'ing the first line is not enough: some people post-process | |
22937 | # each Makefile.in and add a new line on top of each file to say so. | |
22938 | # Grep'ing the whole file is not good either: AIX grep has a line | |
22939 | # limit of 2048, but all sed's we know have understand at least 4000. | |
22940 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
22941 | dirpart=`$as_dirname -- "$mf" || | |
22942 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22943 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22944 | X"$mf" : 'X\(//\)$' \| \ | |
22945 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
22946 | $as_echo X"$mf" | | |
22947 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22948 | s//\1/ | |
22949 | q | |
22950 | } | |
22951 | /^X\(\/\/\)[^/].*/{ | |
22952 | s//\1/ | |
22953 | q | |
22954 | } | |
22955 | /^X\(\/\/\)$/{ | |
22956 | s//\1/ | |
22957 | q | |
22958 | } | |
22959 | /^X\(\/\).*/{ | |
22960 | s//\1/ | |
22961 | q | |
22962 | } | |
22963 | s/.*/./; q'` | |
22964 | else | |
22965 | continue | |
22966 | fi | |
22967 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22968 | # from the Makefile without running 'make'. | |
22969 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22970 | test -z "$DEPDIR" && continue | |
22971 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22972 | test -z "$am__include" && continue | |
22973 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22974 | # Find all dependency output files, they are included files with | |
22975 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22976 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22977 | # expansion. | |
22978 | for file in `sed -n " | |
22979 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22980 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
22981 | # Make sure the directory exists. | |
22982 | test -f "$dirpart/$file" && continue | |
22983 | fdir=`$as_dirname -- "$file" || | |
22984 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22985 | X"$file" : 'X\(//\)[^/]' \| \ | |
22986 | X"$file" : 'X\(//\)$' \| \ | |
22987 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
22988 | $as_echo X"$file" | | |
22989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22990 | s//\1/ | |
22991 | q | |
22992 | } | |
22993 | /^X\(\/\/\)[^/].*/{ | |
22994 | s//\1/ | |
22995 | q | |
22996 | } | |
22997 | /^X\(\/\/\)$/{ | |
22998 | s//\1/ | |
22999 | q | |
23000 | } | |
23001 | /^X\(\/\).*/{ | |
23002 | s//\1/ | |
23003 | q | |
23004 | } | |
23005 | s/.*/./; q'` | |
23006 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
23007 | # echo "creating $dirpart/$file" | |
23008 | echo '# dummy' > "$dirpart/$file" | |
23009 | done | |
23010 | done | |
23011 | } | |
23012 | ;; | |
23013 | "libtool":C) | |
23014 | ||
23015 | # See if we are running on zsh, and set the options that allow our | |
23016 | # commands through without removal of \ escapes. | |
23017 | if test -n "${ZSH_VERSION+set}"; then | |
23018 | setopt NO_GLOB_SUBST | |
23019 | fi | |
23020 | ||
23021 | cfgfile=${ofile}T | |
23022 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
23023 | $RM "$cfgfile" | |
23024 | ||
23025 | cat <<_LT_EOF >> "$cfgfile" | |
23026 | #! $SHELL | |
23027 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
23028 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
23029 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
23030 | ||
23031 | # Provide generalized library-building support services. | |
23032 | # Written by Gordon Matzigkeit, 1996 | |
23033 | ||
23034 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
23035 | # This is free software; see the source for copying conditions. There is NO | |
23036 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
23037 | ||
23038 | # GNU Libtool is free software; you can redistribute it and/or modify | |
23039 | # it under the terms of the GNU General Public License as published by | |
23040 | # the Free Software Foundation; either version 2 of of the License, or | |
23041 | # (at your option) any later version. | |
23042 | # | |
23043 | # As a special exception to the GNU General Public License, if you | |
23044 | # distribute this file as part of a program or library that is built | |
23045 | # using GNU Libtool, you may include this file under the same | |
23046 | # distribution terms that you use for the rest of that program. | |
23047 | # | |
23048 | # GNU Libtool is distributed in the hope that it will be useful, but | |
23049 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
23050 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23051 | # GNU General Public License for more details. | |
23052 | # | |
23053 | # You should have received a copy of the GNU General Public License | |
23054 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
23055 | ||
23056 | ||
23057 | # The names of the tagged configurations supported by this script. | |
23058 | available_tags='CXX ' | |
23059 | ||
23060 | # Configured defaults for sys_lib_dlsearch_path munging. | |
23061 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
23062 | ||
23063 | # ### BEGIN LIBTOOL CONFIG | |
23064 | ||
23065 | # Which release of libtool.m4 was used? | |
23066 | macro_version=$macro_version | |
23067 | macro_revision=$macro_revision | |
23068 | ||
23069 | # Whether or not to build static libraries. | |
23070 | build_old_libs=$enable_static | |
23071 | ||
23072 | # Whether or not to build shared libraries. | |
23073 | build_libtool_libs=$enable_shared | |
23074 | ||
23075 | # What type of objects to build. | |
23076 | pic_mode=$pic_mode | |
23077 | ||
23078 | # Whether or not to optimize for fast installation. | |
23079 | fast_install=$enable_fast_install | |
23080 | ||
23081 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
23082 | shared_archive_member_spec=$shared_archive_member_spec | |
23083 | ||
23084 | # Shell to use when invoking shell scripts. | |
23085 | SHELL=$lt_SHELL | |
23086 | ||
23087 | # An echo program that protects backslashes. | |
23088 | ECHO=$lt_ECHO | |
23089 | ||
23090 | # The PATH separator for the build system. | |
23091 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
23092 | ||
23093 | # The host system. | |
23094 | host_alias=$host_alias | |
23095 | host=$host | |
23096 | host_os=$host_os | |
23097 | ||
23098 | # The build system. | |
23099 | build_alias=$build_alias | |
23100 | build=$build | |
23101 | build_os=$build_os | |
23102 | ||
23103 | # A sed program that does not truncate output. | |
23104 | SED=$lt_SED | |
23105 | ||
23106 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
23107 | Xsed="\$SED -e 1s/^X//" | |
23108 | ||
23109 | # A grep program that handles long lines. | |
23110 | GREP=$lt_GREP | |
23111 | ||
23112 | # An ERE matcher. | |
23113 | EGREP=$lt_EGREP | |
23114 | ||
23115 | # A literal string matcher. | |
23116 | FGREP=$lt_FGREP | |
23117 | ||
23118 | # A BSD- or MS-compatible name lister. | |
23119 | NM=$lt_NM | |
23120 | ||
23121 | # Whether we need soft or hard links. | |
23122 | LN_S=$lt_LN_S | |
23123 | ||
23124 | # What is the maximum length of a command? | |
23125 | max_cmd_len=$max_cmd_len | |
23126 | ||
23127 | # Object file suffix (normally "o"). | |
23128 | objext=$ac_objext | |
23129 | ||
23130 | # Executable file suffix (normally ""). | |
23131 | exeext=$exeext | |
23132 | ||
23133 | # whether the shell understands "unset". | |
23134 | lt_unset=$lt_unset | |
23135 | ||
23136 | # turn spaces into newlines. | |
23137 | SP2NL=$lt_lt_SP2NL | |
23138 | ||
23139 | # turn newlines into spaces. | |
23140 | NL2SP=$lt_lt_NL2SP | |
23141 | ||
23142 | # convert \$build file names to \$host format. | |
23143 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
23144 | ||
23145 | # convert \$build files to toolchain format. | |
23146 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
23147 | ||
23148 | # An object symbol dumper. | |
23149 | OBJDUMP=$lt_OBJDUMP | |
23150 | ||
23151 | # Method to check whether dependent libraries are shared objects. | |
23152 | deplibs_check_method=$lt_deplibs_check_method | |
23153 | ||
23154 | # Command to use when deplibs_check_method = "file_magic". | |
23155 | file_magic_cmd=$lt_file_magic_cmd | |
23156 | ||
23157 | # How to find potential files when deplibs_check_method = "file_magic". | |
23158 | file_magic_glob=$lt_file_magic_glob | |
23159 | ||
23160 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
23161 | want_nocaseglob=$lt_want_nocaseglob | |
23162 | ||
23163 | # DLL creation program. | |
23164 | DLLTOOL=$lt_DLLTOOL | |
23165 | ||
23166 | # Command to associate shared and link libraries. | |
23167 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
23168 | ||
23169 | # The archiver. | |
23170 | AR=$lt_AR | |
23171 | ||
23172 | # Flags to create an archive. | |
23173 | AR_FLAGS=$lt_AR_FLAGS | |
23174 | ||
23175 | # How to feed a file listing to the archiver. | |
23176 | archiver_list_spec=$lt_archiver_list_spec | |
23177 | ||
23178 | # A symbol stripping program. | |
23179 | STRIP=$lt_STRIP | |
23180 | ||
23181 | # Commands used to install an old-style archive. | |
23182 | RANLIB=$lt_RANLIB | |
23183 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
23184 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23185 | ||
23186 | # Whether to use a lock for old archive extraction. | |
23187 | lock_old_archive_extraction=$lock_old_archive_extraction | |
23188 | ||
23189 | # A C compiler. | |
23190 | LTCC=$lt_CC | |
23191 | ||
23192 | # LTCC compiler flags. | |
23193 | LTCFLAGS=$lt_CFLAGS | |
23194 | ||
23195 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23196 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23197 | ||
23198 | # Transform the output of nm in a proper C declaration. | |
23199 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23200 | ||
23201 | # Transform the output of nm into a list of symbols to manually relocate. | |
23202 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
23203 | ||
23204 | # Transform the output of nm in a C name address pair. | |
23205 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23206 | ||
23207 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
23208 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
23209 | ||
23210 | # The name lister interface. | |
23211 | nm_interface=$lt_lt_cv_nm_interface | |
23212 | ||
23213 | # Specify filename containing input files for \$NM. | |
23214 | nm_file_list_spec=$lt_nm_file_list_spec | |
23215 | ||
23216 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
23217 | lt_sysroot=$lt_sysroot | |
23218 | ||
23219 | # Command to truncate a binary pipe. | |
23220 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
23221 | ||
23222 | # The name of the directory that contains temporary libtool files. | |
23223 | objdir=$objdir | |
23224 | ||
23225 | # Used to examine libraries when file_magic_cmd begins with "file". | |
23226 | MAGIC_CMD=$MAGIC_CMD | |
23227 | ||
23228 | # Must we lock files when doing compilation? | |
23229 | need_locks=$lt_need_locks | |
23230 | ||
23231 | # Manifest tool. | |
23232 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
23233 | ||
23234 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
23235 | DSYMUTIL=$lt_DSYMUTIL | |
23236 | ||
23237 | # Tool to change global to local symbols on Mac OS X. | |
23238 | NMEDIT=$lt_NMEDIT | |
23239 | ||
23240 | # Tool to manipulate fat objects and archives on Mac OS X. | |
23241 | LIPO=$lt_LIPO | |
23242 | ||
23243 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
23244 | OTOOL=$lt_OTOOL | |
23245 | ||
23246 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
23247 | OTOOL64=$lt_OTOOL64 | |
23248 | ||
23249 | # Old archive suffix (normally "a"). | |
23250 | libext=$libext | |
23251 | ||
23252 | # Shared library suffix (normally ".so"). | |
23253 | shrext_cmds=$lt_shrext_cmds | |
23254 | ||
23255 | # The commands to extract the exported symbol list from a shared archive. | |
23256 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
23257 | ||
23258 | # Variables whose values should be saved in libtool wrapper scripts and | |
23259 | # restored at link time. | |
23260 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
23261 | ||
23262 | # Do we need the "lib" prefix for modules? | |
23263 | need_lib_prefix=$need_lib_prefix | |
23264 | ||
23265 | # Do we need a version for libraries? | |
23266 | need_version=$need_version | |
23267 | ||
23268 | # Library versioning type. | |
23269 | version_type=$version_type | |
23270 | ||
23271 | # Shared library runtime path variable. | |
23272 | runpath_var=$runpath_var | |
23273 | ||
23274 | # Shared library path variable. | |
23275 | shlibpath_var=$shlibpath_var | |
23276 | ||
23277 | # Is shlibpath searched before the hard-coded library search path? | |
23278 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
23279 | ||
23280 | # Format of library name prefix. | |
23281 | libname_spec=$lt_libname_spec | |
23282 | ||
23283 | # List of archive names. First name is the real one, the rest are links. | |
23284 | # The last name is the one that the linker finds with -lNAME | |
23285 | library_names_spec=$lt_library_names_spec | |
23286 | ||
23287 | # The coded name of the library, if different from the real name. | |
23288 | soname_spec=$lt_soname_spec | |
23289 | ||
23290 | # Permission mode override for installation of shared libraries. | |
23291 | install_override_mode=$lt_install_override_mode | |
23292 | ||
23293 | # Command to use after installation of a shared archive. | |
23294 | postinstall_cmds=$lt_postinstall_cmds | |
23295 | ||
23296 | # Command to use after uninstallation of a shared archive. | |
23297 | postuninstall_cmds=$lt_postuninstall_cmds | |
23298 | ||
23299 | # Commands used to finish a libtool library installation in a directory. | |
23300 | finish_cmds=$lt_finish_cmds | |
23301 | ||
23302 | # As "finish_cmds", except a single script fragment to be evaled but | |
23303 | # not shown. | |
23304 | finish_eval=$lt_finish_eval | |
23305 | ||
23306 | # Whether we should hardcode library paths into libraries. | |
23307 | hardcode_into_libs=$hardcode_into_libs | |
23308 | ||
23309 | # Compile-time system search path for libraries. | |
23310 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
23311 | ||
23312 | # Detected run-time system search path for libraries. | |
23313 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
23314 | ||
23315 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
23316 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
23317 | ||
23318 | # Whether dlopen is supported. | |
23319 | dlopen_support=$enable_dlopen | |
23320 | ||
23321 | # Whether dlopen of programs is supported. | |
23322 | dlopen_self=$enable_dlopen_self | |
23323 | ||
23324 | # Whether dlopen of statically linked programs is supported. | |
23325 | dlopen_self_static=$enable_dlopen_self_static | |
23326 | ||
23327 | # Commands to strip libraries. | |
23328 | old_striplib=$lt_old_striplib | |
23329 | striplib=$lt_striplib | |
23330 | ||
23331 | ||
23332 | # The linker used to build libraries. | |
23333 | LD=$lt_LD | |
23334 | ||
23335 | # How to create reloadable object files. | |
23336 | reload_flag=$lt_reload_flag | |
23337 | reload_cmds=$lt_reload_cmds | |
23338 | ||
23339 | # Commands used to build an old-style archive. | |
23340 | old_archive_cmds=$lt_old_archive_cmds | |
23341 | ||
23342 | # A language specific compiler. | |
23343 | CC=$lt_compiler | |
23344 | ||
23345 | # Is the compiler the GNU compiler? | |
23346 | with_gcc=$GCC | |
23347 | ||
23348 | # Compiler flag to turn off builtin functions. | |
23349 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
23350 | ||
23351 | # Additional compiler flags for building library objects. | |
23352 | pic_flag=$lt_lt_prog_compiler_pic | |
23353 | ||
23354 | # How to pass a linker flag through the compiler. | |
23355 | wl=$lt_lt_prog_compiler_wl | |
23356 | ||
23357 | # Compiler flag to prevent dynamic linking. | |
23358 | link_static_flag=$lt_lt_prog_compiler_static | |
23359 | ||
23360 | # Does compiler simultaneously support -c and -o options? | |
23361 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
23362 | ||
23363 | # Whether or not to add -lc for building shared libraries. | |
23364 | build_libtool_need_lc=$archive_cmds_need_lc | |
23365 | ||
23366 | # Whether or not to disallow shared libs when runtime libs are static. | |
23367 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
23368 | ||
23369 | # Compiler flag to allow reflexive dlopens. | |
23370 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
23371 | ||
23372 | # Compiler flag to generate shared objects directly from archives. | |
23373 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
23374 | ||
23375 | # Whether the compiler copes with passing no objects directly. | |
23376 | compiler_needs_object=$lt_compiler_needs_object | |
23377 | ||
23378 | # Create an old-style archive from a shared archive. | |
23379 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
23380 | ||
23381 | # Create a temporary old-style archive to link instead of a shared archive. | |
23382 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
23383 | ||
23384 | # Commands used to build a shared archive. | |
23385 | archive_cmds=$lt_archive_cmds | |
23386 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
23387 | ||
23388 | # Commands used to build a loadable module if different from building | |
23389 | # a shared archive. | |
23390 | module_cmds=$lt_module_cmds | |
23391 | module_expsym_cmds=$lt_module_expsym_cmds | |
23392 | ||
23393 | # Whether we are building with GNU ld or not. | |
23394 | with_gnu_ld=$lt_with_gnu_ld | |
23395 | ||
23396 | # Flag that allows shared libraries with undefined symbols to be built. | |
23397 | allow_undefined_flag=$lt_allow_undefined_flag | |
23398 | ||
23399 | # Flag that enforces no undefined symbols. | |
23400 | no_undefined_flag=$lt_no_undefined_flag | |
23401 | ||
23402 | # Flag to hardcode \$libdir into a binary during linking. | |
23403 | # This must work even if \$libdir does not exist | |
23404 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
23405 | ||
23406 | # Whether we need a single "-rpath" flag with a separated argument. | |
23407 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
23408 | ||
23409 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
23410 | # DIR into the resulting binary. | |
23411 | hardcode_direct=$hardcode_direct | |
23412 | ||
23413 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
23414 | # DIR into the resulting binary and the resulting library dependency is | |
23415 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
23416 | # library is relocated. | |
23417 | hardcode_direct_absolute=$hardcode_direct_absolute | |
23418 | ||
23419 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
23420 | # into the resulting binary. | |
23421 | hardcode_minus_L=$hardcode_minus_L | |
23422 | ||
23423 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
23424 | # into the resulting binary. | |
23425 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
23426 | ||
23427 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
23428 | # into the library and all subsequent libraries and executables linked | |
23429 | # against it. | |
23430 | hardcode_automatic=$hardcode_automatic | |
23431 | ||
23432 | # Set to yes if linker adds runtime paths of dependent libraries | |
23433 | # to runtime path list. | |
23434 | inherit_rpath=$inherit_rpath | |
23435 | ||
23436 | # Whether libtool must link a program against all its dependency libraries. | |
23437 | link_all_deplibs=$link_all_deplibs | |
23438 | ||
23439 | # Set to "yes" if exported symbols are required. | |
23440 | always_export_symbols=$always_export_symbols | |
23441 | ||
23442 | # The commands to list exported symbols. | |
23443 | export_symbols_cmds=$lt_export_symbols_cmds | |
23444 | ||
23445 | # Symbols that should not be listed in the preloaded symbols. | |
23446 | exclude_expsyms=$lt_exclude_expsyms | |
23447 | ||
23448 | # Symbols that must always be exported. | |
23449 | include_expsyms=$lt_include_expsyms | |
23450 | ||
23451 | # Commands necessary for linking programs (against libraries) with templates. | |
23452 | prelink_cmds=$lt_prelink_cmds | |
23453 | ||
23454 | # Commands necessary for finishing linking programs. | |
23455 | postlink_cmds=$lt_postlink_cmds | |
23456 | ||
23457 | # Specify filename containing input files. | |
23458 | file_list_spec=$lt_file_list_spec | |
23459 | ||
23460 | # How to hardcode a shared library path into an executable. | |
23461 | hardcode_action=$hardcode_action | |
23462 | ||
23463 | # The directories searched by this compiler when creating a shared library. | |
23464 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
23465 | ||
23466 | # Dependencies to place before and after the objects being linked to | |
23467 | # create a shared library. | |
23468 | predep_objects=$lt_predep_objects | |
23469 | postdep_objects=$lt_postdep_objects | |
23470 | predeps=$lt_predeps | |
23471 | postdeps=$lt_postdeps | |
23472 | ||
23473 | # The library search path used internally by the compiler when linking | |
23474 | # a shared library. | |
23475 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
23476 | ||
23477 | # ### END LIBTOOL CONFIG | |
23478 | ||
23479 | _LT_EOF | |
23480 | ||
23481 | cat <<'_LT_EOF' >> "$cfgfile" | |
23482 | ||
23483 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
23484 | ||
23485 | # func_munge_path_list VARIABLE PATH | |
23486 | # ----------------------------------- | |
23487 | # VARIABLE is name of variable containing _space_ separated list of | |
23488 | # directories to be munged by the contents of PATH, which is string | |
23489 | # having a format: | |
23490 | # "DIR[:DIR]:" | |
23491 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
23492 | # ":DIR[:DIR]" | |
23493 | # string "DIR[ DIR]" will be appended to VARIABLE | |
23494 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
23495 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
23496 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
23497 | # "DIR[:DIR]" | |
23498 | # VARIABLE will be replaced by "DIR[ DIR]" | |
23499 | func_munge_path_list () | |
23500 | { | |
23501 | case x$2 in | |
23502 | x) | |
23503 | ;; | |
23504 | *:) | |
23505 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
23506 | ;; | |
23507 | x:*) | |
23508 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
23509 | ;; | |
23510 | *::*) | |
23511 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
23512 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
23513 | ;; | |
23514 | *) | |
23515 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
23516 | ;; | |
23517 | esac | |
23518 | } | |
23519 | ||
23520 | ||
23521 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
23522 | func_cc_basename () | |
23523 | { | |
23524 | for cc_temp in $*""; do | |
23525 | case $cc_temp in | |
23526 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
23527 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
23528 | \-*) ;; | |
23529 | *) break;; | |
23530 | esac | |
23531 | done | |
23532 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
23533 | } | |
23534 | ||
23535 | ||
23536 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
23537 | ||
23538 | _LT_EOF | |
23539 | ||
23540 | case $host_os in | |
23541 | aix3*) | |
23542 | cat <<\_LT_EOF >> "$cfgfile" | |
23543 | # AIX sometimes has problems with the GCC collect2 program. For some | |
23544 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
23545 | # vanish in a puff of smoke. | |
23546 | if test set != "${COLLECT_NAMES+set}"; then | |
23547 | COLLECT_NAMES= | |
23548 | export COLLECT_NAMES | |
23549 | fi | |
23550 | _LT_EOF | |
23551 | ;; | |
23552 | esac | |
23553 | ||
23554 | ||
23555 | ltmain=$ac_aux_dir/ltmain.sh | |
23556 | ||
23557 | ||
23558 | # We use sed instead of cat because bash on DJGPP gets confused if | |
23559 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
23560 | # text mode, it properly converts lines to CR/LF. This bash problem | |
23561 | # is reportedly fixed, but why not run on old versions too? | |
23562 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
23563 | || (rm -f "$cfgfile"; exit 1) | |
23564 | ||
23565 | mv -f "$cfgfile" "$ofile" || | |
23566 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
23567 | chmod +x "$ofile" | |
23568 | ||
23569 | ||
23570 | cat <<_LT_EOF >> "$ofile" | |
23571 | ||
23572 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
23573 | ||
23574 | # The linker used to build libraries. | |
23575 | LD=$lt_LD_CXX | |
23576 | ||
23577 | # How to create reloadable object files. | |
23578 | reload_flag=$lt_reload_flag_CXX | |
23579 | reload_cmds=$lt_reload_cmds_CXX | |
23580 | ||
23581 | # Commands used to build an old-style archive. | |
23582 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
23583 | ||
23584 | # A language specific compiler. | |
23585 | CC=$lt_compiler_CXX | |
23586 | ||
23587 | # Is the compiler the GNU compiler? | |
23588 | with_gcc=$GCC_CXX | |
23589 | ||
23590 | # Compiler flag to turn off builtin functions. | |
23591 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
23592 | ||
23593 | # Additional compiler flags for building library objects. | |
23594 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
23595 | ||
23596 | # How to pass a linker flag through the compiler. | |
23597 | wl=$lt_lt_prog_compiler_wl_CXX | |
23598 | ||
23599 | # Compiler flag to prevent dynamic linking. | |
23600 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
23601 | ||
23602 | # Does compiler simultaneously support -c and -o options? | |
23603 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
23604 | ||
23605 | # Whether or not to add -lc for building shared libraries. | |
23606 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
23607 | ||
23608 | # Whether or not to disallow shared libs when runtime libs are static. | |
23609 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
23610 | ||
23611 | # Compiler flag to allow reflexive dlopens. | |
23612 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
23613 | ||
23614 | # Compiler flag to generate shared objects directly from archives. | |
23615 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
23616 | ||
23617 | # Whether the compiler copes with passing no objects directly. | |
23618 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
23619 | ||
23620 | # Create an old-style archive from a shared archive. | |
23621 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
23622 | ||
23623 | # Create a temporary old-style archive to link instead of a shared archive. | |
23624 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
23625 | ||
23626 | # Commands used to build a shared archive. | |
23627 | archive_cmds=$lt_archive_cmds_CXX | |
23628 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
23629 | ||
23630 | # Commands used to build a loadable module if different from building | |
23631 | # a shared archive. | |
23632 | module_cmds=$lt_module_cmds_CXX | |
23633 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
23634 | ||
23635 | # Whether we are building with GNU ld or not. | |
23636 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
23637 | ||
23638 | # Flag that allows shared libraries with undefined symbols to be built. | |
23639 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
23640 | ||
23641 | # Flag that enforces no undefined symbols. | |
23642 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
23643 | ||
23644 | # Flag to hardcode \$libdir into a binary during linking. | |
23645 | # This must work even if \$libdir does not exist | |
23646 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
23647 | ||
23648 | # Whether we need a single "-rpath" flag with a separated argument. | |
23649 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
23650 | ||
23651 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
23652 | # DIR into the resulting binary. | |
23653 | hardcode_direct=$hardcode_direct_CXX | |
23654 | ||
23655 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
23656 | # DIR into the resulting binary and the resulting library dependency is | |
23657 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
23658 | # library is relocated. | |
23659 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
23660 | ||
23661 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
23662 | # into the resulting binary. | |
23663 | hardcode_minus_L=$hardcode_minus_L_CXX | |
23664 | ||
23665 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
23666 | # into the resulting binary. | |
23667 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
23668 | ||
23669 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
23670 | # into the library and all subsequent libraries and executables linked | |
23671 | # against it. | |
23672 | hardcode_automatic=$hardcode_automatic_CXX | |
23673 | ||
23674 | # Set to yes if linker adds runtime paths of dependent libraries | |
23675 | # to runtime path list. | |
23676 | inherit_rpath=$inherit_rpath_CXX | |
23677 | ||
23678 | # Whether libtool must link a program against all its dependency libraries. | |
23679 | link_all_deplibs=$link_all_deplibs_CXX | |
23680 | ||
23681 | # Set to "yes" if exported symbols are required. | |
23682 | always_export_symbols=$always_export_symbols_CXX | |
23683 | ||
23684 | # The commands to list exported symbols. | |
23685 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
23686 | ||
23687 | # Symbols that should not be listed in the preloaded symbols. | |
23688 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
23689 | ||
23690 | # Symbols that must always be exported. | |
23691 | include_expsyms=$lt_include_expsyms_CXX | |
23692 | ||
23693 | # Commands necessary for linking programs (against libraries) with templates. | |
23694 | prelink_cmds=$lt_prelink_cmds_CXX | |
23695 | ||
23696 | # Commands necessary for finishing linking programs. | |
23697 | postlink_cmds=$lt_postlink_cmds_CXX | |
23698 | ||
23699 | # Specify filename containing input files. | |
23700 | file_list_spec=$lt_file_list_spec_CXX | |
23701 | ||
23702 | # How to hardcode a shared library path into an executable. | |
23703 | hardcode_action=$hardcode_action_CXX | |
23704 | ||
23705 | # The directories searched by this compiler when creating a shared library. | |
23706 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
23707 | ||
23708 | # Dependencies to place before and after the objects being linked to | |
23709 | # create a shared library. | |
23710 | predep_objects=$lt_predep_objects_CXX | |
23711 | postdep_objects=$lt_postdep_objects_CXX | |
23712 | predeps=$lt_predeps_CXX | |
23713 | postdeps=$lt_postdeps_CXX | |
23714 | ||
23715 | # The library search path used internally by the compiler when linking | |
23716 | # a shared library. | |
23717 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
23718 | ||
23719 | # ### END LIBTOOL TAG CONFIG: CXX | |
23720 | _LT_EOF | |
23721 | ||
23722 | ;; | |
23723 | ||
23724 | esac | |
23725 | done # for ac_tag | |
23726 | ||
23727 | ||
23728 | as_fn_exit 0 | |
23729 | _ACEOF | |
23730 | ac_clean_files=$ac_clean_files_save | |
23731 | ||
23732 | test $ac_write_fail = 0 || | |
23733 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
23734 | ||
23735 | ||
23736 | # configure is writing to config.log, and then calls config.status. | |
23737 | # config.status does its own redirection, appending to config.log. | |
23738 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23739 | # by configure, so config.status won't be able to write to it; its | |
23740 | # output is simply discarded. So we exec the FD to /dev/null, | |
23741 | # effectively closing config.log, so it can be properly (re)opened and | |
23742 | # appended to by config.status. When coming back to configure, we | |
23743 | # need to make the FD available again. | |
23744 | if test "$no_create" != yes; then | |
23745 | ac_cs_success=: | |
23746 | ac_config_status_args= | |
23747 | test "$silent" = yes && | |
23748 | ac_config_status_args="$ac_config_status_args --quiet" | |
23749 | exec 5>/dev/null | |
23750 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23751 | exec 5>>config.log | |
23752 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23753 | # would make configure fail if this is the last instruction. | |
23754 | $ac_cs_success || as_fn_exit 1 | |
23755 | fi | |
23756 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
23757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
23758 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
23759 | fi | |
23760 |