]>
Commit | Line | Data |
---|---|---|
c7aa54aa DWT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
9c60689e | 3 | # Generated by GNU Autoconf 2.65 for Cycript 0.9. |
c7aa54aa DWT |
4 | # |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
9c60689e | 7 | # |
c7aa54aa | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9c60689e DWT |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
10 | # Inc. | |
11 | # | |
c7aa54aa DWT |
12 | # |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
15 | ## -------------------- ## | |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
94 | case $0 in #(( | |
95 | *[\\/]* ) as_myself=$0 ;; | |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
97 | for as_dir in $PATH | |
98 | do | |
99 | IFS=$as_save_IFS | |
100 | test -z "$as_dir" && as_dir=. | |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
102 | done | |
103 | IFS=$as_save_IFS | |
104 | ||
105 | ;; | |
106 | esac | |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
108 | # in which case we are not to be found in the path. | |
109 | if test "x$as_myself" = x; then | |
110 | as_myself=$0 | |
111 | fi | |
112 | if test ! -f "$as_myself"; then | |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
114 | exit 1 | |
115 | fi | |
116 | ||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
119 | # suppresses any "Segmentation fault" message there. '((' could | |
120 | # trigger a bug in pdksh 5.2.14. | |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
122 | do eval test x\${$as_var+set} = xset \ | |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
124 | done | |
125 | PS1='$ ' | |
126 | PS2='> ' | |
127 | PS4='+ ' | |
128 | ||
129 | # NLS nuisances. | |
130 | LC_ALL=C | |
131 | export LC_ALL | |
132 | LANGUAGE=C | |
133 | export LANGUAGE | |
134 | ||
135 | # CDPATH. | |
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
137 | ||
138 | if test "x$CONFIG_SHELL" = x; then | |
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
140 | emulate sh | |
141 | NULLCMD=: | |
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
143 | # is contrary to our usage. Disable this feature. | |
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
145 | setopt NO_GLOB_SUBST | |
146 | else | |
147 | case \`(set -o) 2>/dev/null\` in #( | |
148 | *posix*) : | |
149 | set -o posix ;; #( | |
150 | *) : | |
151 | ;; | |
152 | esac | |
153 | fi | |
154 | " | |
155 | as_required="as_fn_return () { (exit \$1); } | |
156 | as_fn_success () { as_fn_return 0; } | |
157 | as_fn_failure () { as_fn_return 1; } | |
158 | as_fn_ret_success () { return 0; } | |
159 | as_fn_ret_failure () { return 1; } | |
160 | ||
161 | exitcode=0 | |
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
167 | ||
168 | else | |
169 | exitcode=1; echo positional parameters were not saved. | |
170 | fi | |
171 | test x\$exitcode = x0 || exit 1" | |
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
35fa52c0 DWT |
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
176 | test \$(( 1 + 1 )) = 2 || exit 1" | |
c7aa54aa DWT |
177 | if (eval "$as_required") 2>/dev/null; then : |
178 | as_have_required=yes | |
179 | else | |
180 | as_have_required=no | |
181 | fi | |
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
183 | ||
184 | else | |
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
186 | as_found=false | |
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
188 | do | |
189 | IFS=$as_save_IFS | |
190 | test -z "$as_dir" && as_dir=. | |
191 | as_found=: | |
192 | case $as_dir in #( | |
193 | /*) | |
194 | for as_base in sh bash ksh sh5; do | |
195 | # Try only shells that exist, to save several forks. | |
196 | as_shell=$as_dir/$as_base | |
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | CONFIG_SHELL=$as_shell as_have_required=yes | |
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
201 | break 2 | |
202 | fi | |
203 | fi | |
204 | done;; | |
205 | esac | |
206 | as_found=false | |
207 | done | |
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
210 | CONFIG_SHELL=$SHELL as_have_required=yes | |
211 | fi; } | |
212 | IFS=$as_save_IFS | |
213 | ||
214 | ||
215 | if test "x$CONFIG_SHELL" != x; then : | |
216 | # We cannot yet assume a decent shell, so we have to provide a | |
217 | # neutralization value for shells without unset; and this also | |
218 | # works around shells that cannot unset nonexistent variables. | |
219 | BASH_ENV=/dev/null | |
220 | ENV=/dev/null | |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | export CONFIG_SHELL | |
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
224 | fi | |
225 | ||
226 | if test x$as_have_required = xno; then : | |
227 | $as_echo "$0: This script requires a shell more modern than all" | |
228 | $as_echo "$0: the shells that I found on your system." | |
229 | if test x${ZSH_VERSION+set} = xset ; then | |
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
232 | else | |
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
234 | $0: about your system, including any error possibly output | |
235 | $0: before this message. Then install a modern shell, or | |
236 | $0: manually run the script under such a shell if you do | |
237 | $0: have one." | |
238 | fi | |
239 | exit 1 | |
240 | fi | |
241 | fi | |
242 | fi | |
243 | SHELL=${CONFIG_SHELL-/bin/sh} | |
244 | export SHELL | |
245 | # Unset more variables known to interfere with behavior of common tools. | |
246 | CLICOLOR_FORCE= GREP_OPTIONS= | |
247 | unset CLICOLOR_FORCE GREP_OPTIONS | |
248 | ||
249 | ## --------------------- ## | |
250 | ## M4sh Shell Functions. ## | |
251 | ## --------------------- ## | |
252 | # as_fn_unset VAR | |
253 | # --------------- | |
254 | # Portably unset VAR. | |
255 | as_fn_unset () | |
256 | { | |
257 | { eval $1=; unset $1;} | |
258 | } | |
259 | as_unset=as_fn_unset | |
260 | ||
261 | # as_fn_set_status STATUS | |
262 | # ----------------------- | |
263 | # Set $? to STATUS, without forking. | |
264 | as_fn_set_status () | |
265 | { | |
266 | return $1 | |
267 | } # as_fn_set_status | |
268 | ||
269 | # as_fn_exit STATUS | |
270 | # ----------------- | |
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
272 | as_fn_exit () | |
273 | { | |
274 | set +e | |
275 | as_fn_set_status $1 | |
276 | exit $1 | |
277 | } # as_fn_exit | |
278 | ||
279 | # as_fn_mkdir_p | |
280 | # ------------- | |
281 | # Create "$as_dir" as a directory, including parents if necessary. | |
282 | as_fn_mkdir_p () | |
283 | { | |
284 | ||
285 | case $as_dir in #( | |
286 | -*) as_dir=./$as_dir;; | |
287 | esac | |
288 | test -d "$as_dir" || eval $as_mkdir_p || { | |
289 | as_dirs= | |
290 | while :; do | |
291 | case $as_dir in #( | |
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
293 | *) as_qdir=$as_dir;; | |
294 | esac | |
295 | as_dirs="'$as_qdir' $as_dirs" | |
296 | as_dir=`$as_dirname -- "$as_dir" || | |
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
299 | X"$as_dir" : 'X\(//\)$' \| \ | |
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
301 | $as_echo X"$as_dir" | | |
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
303 | s//\1/ | |
304 | q | |
305 | } | |
306 | /^X\(\/\/\)[^/].*/{ | |
307 | s//\1/ | |
308 | q | |
309 | } | |
310 | /^X\(\/\/\)$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\).*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | s/.*/./; q'` | |
319 | test -d "$as_dir" && break | |
320 | done | |
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
323 | ||
324 | ||
325 | } # as_fn_mkdir_p | |
326 | # as_fn_append VAR VALUE | |
327 | # ---------------------- | |
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
329 | # advantage of any shell optimizations that allow amortized linear growth over | |
330 | # repeated appends, instead of the typical quadratic growth present in naive | |
331 | # implementations. | |
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
333 | eval 'as_fn_append () | |
334 | { | |
335 | eval $1+=\$2 | |
336 | }' | |
337 | else | |
338 | as_fn_append () | |
339 | { | |
340 | eval $1=\$$1\$2 | |
341 | } | |
342 | fi # as_fn_append | |
343 | ||
344 | # as_fn_arith ARG... | |
345 | # ------------------ | |
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
348 | # must be portable across $(()) and expr. | |
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
350 | eval 'as_fn_arith () | |
351 | { | |
352 | as_val=$(( $* )) | |
353 | }' | |
354 | else | |
355 | as_fn_arith () | |
356 | { | |
357 | as_val=`expr "$@" || test $? -eq 1` | |
358 | } | |
359 | fi # as_fn_arith | |
360 | ||
361 | ||
362 | # as_fn_error ERROR [LINENO LOG_FD] | |
363 | # --------------------------------- | |
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
366 | # script with status $?, using 1 if that was 0. | |
367 | as_fn_error () | |
368 | { | |
369 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
370 | if test "$3"; then | |
371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
373 | fi | |
374 | $as_echo "$as_me: error: $1" >&2 | |
375 | as_fn_exit $as_status | |
376 | } # as_fn_error | |
377 | ||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
380 | as_expr=expr | |
381 | else | |
382 | as_expr=false | |
383 | fi | |
384 | ||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
386 | as_basename=basename | |
387 | else | |
388 | as_basename=false | |
389 | fi | |
390 | ||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
392 | as_dirname=dirname | |
393 | else | |
394 | as_dirname=false | |
395 | fi | |
396 | ||
397 | as_me=`$as_basename -- "$0" || | |
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
399 | X"$0" : 'X\(//\)$' \| \ | |
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
401 | $as_echo X/"$0" | | |
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
403 | s//\1/ | |
404 | q | |
405 | } | |
406 | /^X\/\(\/\/\)$/{ | |
407 | s//\1/ | |
408 | q | |
409 | } | |
410 | /^X\/\(\/\).*/{ | |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | s/.*/./; q'` | |
415 | ||
416 | # Avoid depending upon Character Ranges. | |
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
420 | as_cr_digits='0123456789' | |
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
422 | ||
423 | ||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
429 | sed -n ' | |
430 | p | |
431 | /[$]LINENO/= | |
432 | ' <$as_myself | | |
433 | sed ' | |
434 | s/[$]LINENO.*/&-/ | |
435 | t lineno | |
436 | b | |
437 | :lineno | |
438 | N | |
439 | :loop | |
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
441 | t loop | |
442 | s/-\n.*// | |
443 | ' >$as_me.lineno && | |
444 | chmod +x "$as_me.lineno" || | |
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
446 | ||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | |
448 | # (the dirname of $[0] is not the place where we might find the | |
449 | # original and so on. Autoconf is especially sensitive to this). | |
450 | . "./$as_me.lineno" | |
451 | # Exit status is that of the last command. | |
452 | exit | |
453 | } | |
454 | ||
455 | ECHO_C= ECHO_N= ECHO_T= | |
456 | case `echo -n x` in #((((( | |
457 | -n*) | |
458 | case `echo 'xy\c'` in | |
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
460 | xy) ECHO_C='\c';; | |
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
462 | ECHO_T=' ';; | |
463 | esac;; | |
464 | *) | |
465 | ECHO_N='-n';; | |
466 | esac | |
467 | ||
468 | rm -f conf$$ conf$$.exe conf$$.file | |
469 | if test -d conf$$.dir; then | |
470 | rm -f conf$$.dir/conf$$.file | |
471 | else | |
472 | rm -f conf$$.dir | |
473 | mkdir conf$$.dir 2>/dev/null | |
474 | fi | |
475 | if (echo >conf$$.file) 2>/dev/null; then | |
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
477 | as_ln_s='ln -s' | |
478 | # ... but there are two gotchas: | |
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
481 | # In both cases, we have to default to `cp -p'. | |
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
483 | as_ln_s='cp -p' | |
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s=ln | |
486 | else | |
487 | as_ln_s='cp -p' | |
488 | fi | |
489 | else | |
490 | as_ln_s='cp -p' | |
491 | fi | |
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
493 | rmdir conf$$.dir 2>/dev/null | |
494 | ||
495 | if mkdir -p . 2>/dev/null; then | |
496 | as_mkdir_p='mkdir -p "$as_dir"' | |
497 | else | |
498 | test -d ./-p && rmdir ./-p | |
499 | as_mkdir_p=false | |
500 | fi | |
501 | ||
502 | if test -x / >/dev/null 2>&1; then | |
503 | as_test_x='test -x' | |
504 | else | |
505 | if ls -dL / >/dev/null 2>&1; then | |
506 | as_ls_L_option=L | |
507 | else | |
508 | as_ls_L_option= | |
509 | fi | |
510 | as_test_x=' | |
511 | eval sh -c '\'' | |
512 | if test -d "$1"; then | |
513 | test -d "$1/."; | |
514 | else | |
515 | case $1 in #( | |
516 | -*)set "./$1";; | |
517 | esac; | |
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
519 | ???[sx]*):;;*)false;;esac;fi | |
520 | '\'' sh | |
521 | ' | |
522 | fi | |
523 | as_executable_p=$as_test_x | |
524 | ||
525 | # Sed expression to map a string onto a valid CPP name. | |
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
527 | ||
528 | # Sed expression to map a string onto a valid variable name. | |
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
9c60689e DWT |
531 | |
532 | ||
533 | # Check that we are running under the correct shell. | |
534 | SHELL=${CONFIG_SHELL-/bin/sh} | |
535 | ||
536 | case X$lt_ECHO in | |
537 | X*--fallback-echo) | |
538 | # Remove one level of quotation (which was required for Make). | |
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
540 | ;; | |
541 | esac | |
542 | ||
543 | ECHO=${lt_ECHO-echo} | |
544 | if test "X$1" = X--no-reexec; then | |
545 | # Discard the --no-reexec flag, and continue. | |
546 | shift | |
547 | elif test "X$1" = X--fallback-echo; then | |
548 | # Avoid inline document here, it may be left over | |
549 | : | |
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
551 | # Yippee, $ECHO works! | |
552 | : | |
553 | else | |
554 | # Restart under the correct shell. | |
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
556 | fi | |
557 | ||
558 | if test "X$1" = X--fallback-echo; then | |
559 | # used as fallback echo | |
560 | shift | |
561 | cat <<_LT_EOF | |
562 | $* | |
563 | _LT_EOF | |
564 | exit 0 | |
565 | fi | |
566 | ||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
568 | # if CDPATH is set. | |
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
570 | ||
571 | if test -z "$lt_ECHO"; then | |
572 | if test "X${echo_test_string+set}" != Xset; then | |
573 | # find a string as large as possible, as long as the shell can cope with it | |
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
578 | then | |
579 | break | |
580 | fi | |
581 | done | |
582 | fi | |
583 | ||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
587 | : | |
588 | else | |
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
590 | # backslashes. This makes it impossible to quote backslashes using | |
591 | # echo "$something" | sed 's/\\/\\\\/g' | |
592 | # | |
593 | # So, first we look for a working echo in the user's PATH. | |
594 | ||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
596 | for dir in $PATH /usr/ucb; do | |
597 | IFS="$lt_save_ifs" | |
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
602 | ECHO="$dir/echo" | |
603 | break | |
604 | fi | |
605 | done | |
606 | IFS="$lt_save_ifs" | |
607 | ||
608 | if test "X$ECHO" = Xecho; then | |
609 | # We didn't find a better echo, so look for alternatives. | |
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
613 | # This shell has a builtin print -r that does the trick. | |
614 | ECHO='print -r' | |
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
617 | # If we have ksh, try running configure again with it. | |
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
619 | export ORIGINAL_CONFIG_SHELL | |
620 | CONFIG_SHELL=/bin/ksh | |
621 | export CONFIG_SHELL | |
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
623 | else | |
624 | # Try using printf. | |
625 | ECHO='printf %s\n' | |
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
629 | # Cool, printf works | |
630 | : | |
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
632 | test "X$echo_testing_string" = 'X\t' && | |
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
636 | export CONFIG_SHELL | |
637 | SHELL="$CONFIG_SHELL" | |
638 | export SHELL | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
641 | test "X$echo_testing_string" = 'X\t' && | |
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
645 | else | |
646 | # maybe with a smaller string... | |
647 | prev=: | |
648 | ||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
651 | then | |
652 | break | |
653 | fi | |
654 | prev="$cmd" | |
655 | done | |
656 | ||
657 | if test "$prev" != 'sed 50q "$0"'; then | |
658 | echo_test_string=`eval $prev` | |
659 | export echo_test_string | |
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
661 | else | |
662 | # Oops. We lost completely, so just stick with echo. | |
663 | ECHO=echo | |
664 | fi | |
665 | fi | |
666 | fi | |
667 | fi | |
668 | fi | |
669 | fi | |
670 | ||
671 | # Copy echo and quote the copy suitably for passing to libtool from | |
672 | # the Makefile, instead of quoting the original, which is used later. | |
673 | lt_ECHO=$ECHO | |
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
676 | fi | |
677 | ||
678 | ||
679 | ||
c7aa54aa | 680 | |
9c60689e DWT |
681 | test -n "$DJDIR" || exec 7<&0 </dev/null |
682 | exec 6>&1 | |
c7aa54aa DWT |
683 | |
684 | # Name of the host. | |
685 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
686 | # so uname gets run too. | |
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
688 | ||
689 | # | |
690 | # Initializations. | |
691 | # | |
692 | ac_default_prefix=/usr/local | |
693 | ac_clean_files= | |
694 | ac_config_libobj_dir=. | |
695 | LIBOBJS= | |
696 | cross_compiling=no | |
697 | subdirs= | |
698 | MFLAGS= | |
699 | MAKEFLAGS= | |
700 | ||
701 | # Identity of this package. | |
702 | PACKAGE_NAME='Cycript' | |
703 | PACKAGE_TARNAME='cycript' | |
704 | PACKAGE_VERSION='0.9' | |
705 | PACKAGE_STRING='Cycript 0.9' | |
706 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
707 | PACKAGE_URL='http://www.cycript.org/' | |
708 | ||
35fa52c0 | 709 | ac_unique_file="Console.cpp" |
6b66678a DWT |
710 | # Factoring default headers for most tests. |
711 | ac_includes_default="\ | |
712 | #include <stdio.h> | |
713 | #ifdef HAVE_SYS_TYPES_H | |
714 | # include <sys/types.h> | |
715 | #endif | |
716 | #ifdef HAVE_SYS_STAT_H | |
717 | # include <sys/stat.h> | |
718 | #endif | |
719 | #ifdef STDC_HEADERS | |
720 | # include <stdlib.h> | |
721 | # include <stddef.h> | |
722 | #else | |
723 | # ifdef HAVE_STDLIB_H | |
724 | # include <stdlib.h> | |
725 | # endif | |
726 | #endif | |
727 | #ifdef HAVE_STRING_H | |
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
729 | # include <memory.h> | |
730 | # endif | |
731 | # include <string.h> | |
732 | #endif | |
733 | #ifdef HAVE_STRINGS_H | |
734 | # include <strings.h> | |
735 | #endif | |
736 | #ifdef HAVE_INTTYPES_H | |
737 | # include <inttypes.h> | |
738 | #endif | |
739 | #ifdef HAVE_STDINT_H | |
740 | # include <stdint.h> | |
741 | #endif | |
742 | #ifdef HAVE_UNISTD_H | |
743 | # include <unistd.h> | |
744 | #endif" | |
745 | ||
9c60689e DWT |
746 | ac_subst_vars='LTLIBOBJS |
747 | LIBOBJS | |
794e88e7 | 748 | CY_ATTACH_GROUP |
e1cce270 | 749 | CY_OBJECTIVEC_MACH |
794e88e7 DWT |
750 | SO |
751 | ac_ct__NM | |
752 | _NM | |
753 | ac_ct__LIPO | |
754 | _LIPO | |
755 | ac_ct__OTOOL | |
756 | _OTOOL | |
5053a6d1 DWT |
757 | LTLIBICONV |
758 | LIBICONV | |
47aaa820 | 759 | GNUSTEP_CONFIG |
c823f118 | 760 | CY_OBJECTIVEC |
309b0535 | 761 | LIBFFI_LIBS |
35fa52c0 | 762 | LIBFFI_CFLAGS |
3fd51f51 | 763 | CY_EXECUTE |
35fa52c0 DWT |
764 | WEBKIT_LIBS |
765 | WEBKIT_CFLAGS | |
549f29b5 | 766 | LTLIBAPR |
632b71ea DWT |
767 | ac_ct_OBJCXX |
768 | OBJCXXFLAGS | |
769 | OBJCXX | |
47aaa820 DWT |
770 | CXXCPP |
771 | ac_ct_CXX | |
772 | CXXFLAGS | |
773 | CXX | |
b65019fe DWT |
774 | SVNVERSION |
775 | SVN | |
e9c9a47c DWT |
776 | GNUTAR |
777 | INSTALL_DATA | |
778 | INSTALL_SCRIPT | |
779 | INSTALL_PROGRAM | |
780 | GPERF | |
781 | FLEX | |
782 | BISON | |
783 | TIME | |
784 | _BASH | |
790e5246 | 785 | GMAKE |
632b71ea | 786 | ifGNUmake |
3fd51f51 | 787 | PKG_CONFIG |
9c60689e DWT |
788 | CPP |
789 | OTOOL64 | |
790 | OTOOL | |
791 | LIPO | |
792 | NMEDIT | |
793 | DSYMUTIL | |
794 | lt_ECHO | |
795 | RANLIB | |
796 | STRIP | |
797 | AR | |
798 | OBJDUMP | |
799 | LN_S | |
800 | NM | |
801 | ac_ct_DUMPBIN | |
802 | DUMPBIN | |
803 | LD | |
804 | FGREP | |
805 | EGREP | |
806 | GREP | |
807 | SED | |
35fa52c0 DWT |
808 | OBJEXT |
809 | EXEEXT | |
810 | ac_ct_CC | |
811 | CPPFLAGS | |
812 | LDFLAGS | |
813 | CFLAGS | |
814 | CC | |
9c60689e DWT |
815 | host_os |
816 | host_vendor | |
817 | host_cpu | |
818 | host | |
819 | build_os | |
820 | build_vendor | |
821 | build_cpu | |
822 | build | |
823 | LIBTOOL | |
dbadc56a | 824 | target_alias |
c7aa54aa DWT |
825 | host_alias |
826 | build_alias | |
827 | LIBS | |
828 | ECHO_T | |
829 | ECHO_N | |
830 | ECHO_C | |
831 | DEFS | |
832 | mandir | |
833 | localedir | |
834 | libdir | |
835 | psdir | |
836 | pdfdir | |
837 | dvidir | |
838 | htmldir | |
839 | infodir | |
840 | docdir | |
841 | oldincludedir | |
842 | includedir | |
843 | localstatedir | |
844 | sharedstatedir | |
845 | sysconfdir | |
846 | datadir | |
847 | datarootdir | |
848 | libexecdir | |
849 | sbindir | |
850 | bindir | |
851 | program_transform_name | |
852 | prefix | |
853 | exec_prefix | |
854 | PACKAGE_URL | |
855 | PACKAGE_BUGREPORT | |
856 | PACKAGE_STRING | |
857 | PACKAGE_VERSION | |
858 | PACKAGE_TARNAME | |
859 | PACKAGE_NAME | |
860 | PATH_SEPARATOR | |
861 | SHELL' | |
862 | ac_subst_files='' | |
863 | ac_user_opts=' | |
864 | enable_option_checking | |
9c60689e | 865 | enable_static |
549f29b5 | 866 | enable_shared |
9c60689e DWT |
867 | with_pic |
868 | enable_fast_install | |
35fa52c0 | 869 | with_gnu_ld |
9c60689e | 870 | enable_libtool_lock |
1504c9b8 | 871 | enable_universal_binary |
632b71ea | 872 | with_frameworks |
9c60689e | 873 | with_apr |
5053a6d1 | 874 | enable_javascript |
35fa52c0 DWT |
875 | enable_rpath |
876 | with_libiconv_prefix | |
c7aa54aa DWT |
877 | ' |
878 | ac_precious_vars='build_alias | |
879 | host_alias | |
dbadc56a | 880 | target_alias |
35fa52c0 DWT |
881 | CC |
882 | CFLAGS | |
dbadc56a DWT |
883 | LDFLAGS |
884 | LIBS | |
885 | CPPFLAGS | |
9c60689e | 886 | CPP |
3fd51f51 | 887 | PKG_CONFIG |
e9c9a47c DWT |
888 | BISON |
889 | FLEX | |
890 | GPERF | |
35fa52c0 DWT |
891 | CXX |
892 | CXXFLAGS | |
893 | CCC | |
9c60689e | 894 | CXXCPP |
632b71ea DWT |
895 | OBJCXX |
896 | OBJCXXFLAGS | |
35fa52c0 DWT |
897 | WEBKIT_CFLAGS |
898 | WEBKIT_LIBS | |
a667869d | 899 | LIBFFI_CFLAGS |
790e5246 DWT |
900 | LIBFFI_LIBS |
901 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
902 | |
903 | ||
904 | # Initialize some variables set by options. | |
905 | ac_init_help= | |
906 | ac_init_version=false | |
907 | ac_unrecognized_opts= | |
908 | ac_unrecognized_sep= | |
909 | # The variables have the same names as the options, with | |
910 | # dashes changed to underlines. | |
911 | cache_file=/dev/null | |
912 | exec_prefix=NONE | |
913 | no_create= | |
914 | no_recursion= | |
915 | prefix=NONE | |
916 | program_prefix=NONE | |
917 | program_suffix=NONE | |
918 | program_transform_name=s,x,x, | |
919 | silent= | |
920 | site= | |
921 | srcdir= | |
922 | verbose= | |
923 | x_includes=NONE | |
924 | x_libraries=NONE | |
925 | ||
926 | # Installation directory options. | |
927 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
928 | # and all the variables that are supposed to be based on exec_prefix | |
929 | # by default will actually change. | |
930 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
931 | # (The list follows the same order as the GNU Coding Standards.) | |
932 | bindir='${exec_prefix}/bin' | |
933 | sbindir='${exec_prefix}/sbin' | |
934 | libexecdir='${exec_prefix}/libexec' | |
935 | datarootdir='${prefix}/share' | |
936 | datadir='${datarootdir}' | |
937 | sysconfdir='${prefix}/etc' | |
938 | sharedstatedir='${prefix}/com' | |
939 | localstatedir='${prefix}/var' | |
940 | includedir='${prefix}/include' | |
941 | oldincludedir='/usr/include' | |
942 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
943 | infodir='${datarootdir}/info' | |
944 | htmldir='${docdir}' | |
945 | dvidir='${docdir}' | |
946 | pdfdir='${docdir}' | |
947 | psdir='${docdir}' | |
948 | libdir='${exec_prefix}/lib' | |
949 | localedir='${datarootdir}/locale' | |
950 | mandir='${datarootdir}/man' | |
951 | ||
952 | ac_prev= | |
953 | ac_dashdash= | |
954 | for ac_option | |
955 | do | |
956 | # If the previous option needs an argument, assign it. | |
957 | if test -n "$ac_prev"; then | |
958 | eval $ac_prev=\$ac_option | |
959 | ac_prev= | |
960 | continue | |
961 | fi | |
962 | ||
963 | case $ac_option in | |
964 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
965 | *) ac_optarg=yes ;; | |
966 | esac | |
967 | ||
968 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
969 | ||
970 | case $ac_dashdash$ac_option in | |
971 | --) | |
972 | ac_dashdash=yes ;; | |
973 | ||
974 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
975 | ac_prev=bindir ;; | |
976 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
977 | bindir=$ac_optarg ;; | |
978 | ||
979 | -build | --build | --buil | --bui | --bu) | |
980 | ac_prev=build_alias ;; | |
981 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
982 | build_alias=$ac_optarg ;; | |
983 | ||
984 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
985 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
986 | ac_prev=cache_file ;; | |
987 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
988 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
989 | cache_file=$ac_optarg ;; | |
990 | ||
991 | --config-cache | -C) | |
992 | cache_file=config.cache ;; | |
993 | ||
994 | -datadir | --datadir | --datadi | --datad) | |
995 | ac_prev=datadir ;; | |
996 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
997 | datadir=$ac_optarg ;; | |
998 | ||
999 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1000 | | --dataroo | --dataro | --datar) | |
1001 | ac_prev=datarootdir ;; | |
1002 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1003 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1004 | datarootdir=$ac_optarg ;; | |
1005 | ||
1006 | -disable-* | --disable-*) | |
1007 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1008 | # Reject names that are not valid shell variable names. | |
1009 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1010 | as_fn_error "invalid feature name: $ac_useropt" | |
1011 | ac_useropt_orig=$ac_useropt | |
1012 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1013 | case $ac_user_opts in | |
1014 | *" | |
1015 | "enable_$ac_useropt" | |
1016 | "*) ;; | |
1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1018 | ac_unrecognized_sep=', ';; | |
1019 | esac | |
1020 | eval enable_$ac_useropt=no ;; | |
1021 | ||
1022 | -docdir | --docdir | --docdi | --doc | --do) | |
1023 | ac_prev=docdir ;; | |
1024 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1025 | docdir=$ac_optarg ;; | |
1026 | ||
1027 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1028 | ac_prev=dvidir ;; | |
1029 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1030 | dvidir=$ac_optarg ;; | |
1031 | ||
1032 | -enable-* | --enable-*) | |
1033 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1034 | # Reject names that are not valid shell variable names. | |
1035 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1036 | as_fn_error "invalid feature name: $ac_useropt" | |
1037 | ac_useropt_orig=$ac_useropt | |
1038 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1039 | case $ac_user_opts in | |
1040 | *" | |
1041 | "enable_$ac_useropt" | |
1042 | "*) ;; | |
1043 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1044 | ac_unrecognized_sep=', ';; | |
1045 | esac | |
1046 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1047 | ||
1048 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1049 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1050 | | --exec | --exe | --ex) | |
1051 | ac_prev=exec_prefix ;; | |
1052 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1053 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1054 | | --exec=* | --exe=* | --ex=*) | |
1055 | exec_prefix=$ac_optarg ;; | |
1056 | ||
1057 | -gas | --gas | --ga | --g) | |
1058 | # Obsolete; use --with-gas. | |
1059 | with_gas=yes ;; | |
1060 | ||
1061 | -help | --help | --hel | --he | -h) | |
1062 | ac_init_help=long ;; | |
1063 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1064 | ac_init_help=recursive ;; | |
1065 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1066 | ac_init_help=short ;; | |
1067 | ||
1068 | -host | --host | --hos | --ho) | |
1069 | ac_prev=host_alias ;; | |
1070 | -host=* | --host=* | --hos=* | --ho=*) | |
1071 | host_alias=$ac_optarg ;; | |
1072 | ||
1073 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1074 | ac_prev=htmldir ;; | |
1075 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1076 | | --ht=*) | |
1077 | htmldir=$ac_optarg ;; | |
1078 | ||
1079 | -includedir | --includedir | --includedi | --included | --include \ | |
1080 | | --includ | --inclu | --incl | --inc) | |
1081 | ac_prev=includedir ;; | |
1082 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1083 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1084 | includedir=$ac_optarg ;; | |
1085 | ||
1086 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1087 | ac_prev=infodir ;; | |
1088 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1089 | infodir=$ac_optarg ;; | |
1090 | ||
1091 | -libdir | --libdir | --libdi | --libd) | |
1092 | ac_prev=libdir ;; | |
1093 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1094 | libdir=$ac_optarg ;; | |
1095 | ||
1096 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1097 | | --libexe | --libex | --libe) | |
1098 | ac_prev=libexecdir ;; | |
1099 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1100 | | --libexe=* | --libex=* | --libe=*) | |
1101 | libexecdir=$ac_optarg ;; | |
1102 | ||
1103 | -localedir | --localedir | --localedi | --localed | --locale) | |
1104 | ac_prev=localedir ;; | |
1105 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1106 | localedir=$ac_optarg ;; | |
1107 | ||
1108 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1109 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1110 | ac_prev=localstatedir ;; | |
1111 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1112 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1113 | localstatedir=$ac_optarg ;; | |
1114 | ||
1115 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1116 | ac_prev=mandir ;; | |
1117 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1118 | mandir=$ac_optarg ;; | |
1119 | ||
1120 | -nfp | --nfp | --nf) | |
1121 | # Obsolete; use --without-fp. | |
1122 | with_fp=no ;; | |
1123 | ||
1124 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1125 | | --no-cr | --no-c | -n) | |
1126 | no_create=yes ;; | |
1127 | ||
1128 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1129 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1130 | no_recursion=yes ;; | |
1131 | ||
1132 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1133 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1134 | | --oldin | --oldi | --old | --ol | --o) | |
1135 | ac_prev=oldincludedir ;; | |
1136 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1137 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1138 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1139 | oldincludedir=$ac_optarg ;; | |
1140 | ||
1141 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1142 | ac_prev=prefix ;; | |
1143 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1144 | prefix=$ac_optarg ;; | |
1145 | ||
1146 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1147 | | --program-pre | --program-pr | --program-p) | |
1148 | ac_prev=program_prefix ;; | |
1149 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1150 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1151 | program_prefix=$ac_optarg ;; | |
1152 | ||
1153 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1154 | | --program-suf | --program-su | --program-s) | |
1155 | ac_prev=program_suffix ;; | |
1156 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1157 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1158 | program_suffix=$ac_optarg ;; | |
1159 | ||
1160 | -program-transform-name | --program-transform-name \ | |
1161 | | --program-transform-nam | --program-transform-na \ | |
1162 | | --program-transform-n | --program-transform- \ | |
1163 | | --program-transform | --program-transfor \ | |
1164 | | --program-transfo | --program-transf \ | |
1165 | | --program-trans | --program-tran \ | |
1166 | | --progr-tra | --program-tr | --program-t) | |
1167 | ac_prev=program_transform_name ;; | |
1168 | -program-transform-name=* | --program-transform-name=* \ | |
1169 | | --program-transform-nam=* | --program-transform-na=* \ | |
1170 | | --program-transform-n=* | --program-transform-=* \ | |
1171 | | --program-transform=* | --program-transfor=* \ | |
1172 | | --program-transfo=* | --program-transf=* \ | |
1173 | | --program-trans=* | --program-tran=* \ | |
1174 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1175 | program_transform_name=$ac_optarg ;; | |
1176 | ||
1177 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1178 | ac_prev=pdfdir ;; | |
1179 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1180 | pdfdir=$ac_optarg ;; | |
1181 | ||
1182 | -psdir | --psdir | --psdi | --psd | --ps) | |
1183 | ac_prev=psdir ;; | |
1184 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1185 | psdir=$ac_optarg ;; | |
1186 | ||
1187 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1188 | | -silent | --silent | --silen | --sile | --sil) | |
1189 | silent=yes ;; | |
1190 | ||
1191 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1192 | ac_prev=sbindir ;; | |
1193 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1194 | | --sbi=* | --sb=*) | |
1195 | sbindir=$ac_optarg ;; | |
1196 | ||
1197 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1198 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1199 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1200 | | --sha | --sh) | |
1201 | ac_prev=sharedstatedir ;; | |
1202 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1203 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1204 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1205 | | --sha=* | --sh=*) | |
1206 | sharedstatedir=$ac_optarg ;; | |
1207 | ||
1208 | -site | --site | --sit) | |
1209 | ac_prev=site ;; | |
1210 | -site=* | --site=* | --sit=*) | |
1211 | site=$ac_optarg ;; | |
1212 | ||
1213 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1214 | ac_prev=srcdir ;; | |
1215 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1216 | srcdir=$ac_optarg ;; | |
1217 | ||
1218 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1219 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1220 | ac_prev=sysconfdir ;; | |
1221 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1222 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1223 | sysconfdir=$ac_optarg ;; | |
1224 | ||
1225 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1226 | ac_prev=target_alias ;; | |
1227 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1228 | target_alias=$ac_optarg ;; | |
1229 | ||
1230 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1231 | verbose=yes ;; | |
1232 | ||
1233 | -version | --version | --versio | --versi | --vers | -V) | |
1234 | ac_init_version=: ;; | |
1235 | ||
1236 | -with-* | --with-*) | |
1237 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1238 | # Reject names that are not valid shell variable names. | |
1239 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1240 | as_fn_error "invalid package name: $ac_useropt" | |
1241 | ac_useropt_orig=$ac_useropt | |
1242 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1243 | case $ac_user_opts in | |
1244 | *" | |
1245 | "with_$ac_useropt" | |
1246 | "*) ;; | |
1247 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1248 | ac_unrecognized_sep=', ';; | |
1249 | esac | |
1250 | eval with_$ac_useropt=\$ac_optarg ;; | |
1251 | ||
1252 | -without-* | --without-*) | |
1253 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1254 | # Reject names that are not valid shell variable names. | |
1255 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1256 | as_fn_error "invalid package name: $ac_useropt" | |
1257 | ac_useropt_orig=$ac_useropt | |
1258 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1259 | case $ac_user_opts in | |
1260 | *" | |
1261 | "with_$ac_useropt" | |
1262 | "*) ;; | |
1263 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1264 | ac_unrecognized_sep=', ';; | |
1265 | esac | |
1266 | eval with_$ac_useropt=no ;; | |
1267 | ||
1268 | --x) | |
1269 | # Obsolete; use --with-x. | |
1270 | with_x=yes ;; | |
1271 | ||
1272 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1273 | | --x-incl | --x-inc | --x-in | --x-i) | |
1274 | ac_prev=x_includes ;; | |
1275 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1276 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1277 | x_includes=$ac_optarg ;; | |
1278 | ||
1279 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1280 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1281 | ac_prev=x_libraries ;; | |
1282 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1283 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1284 | x_libraries=$ac_optarg ;; | |
1285 | ||
1286 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1287 | Try \`$0 --help' for more information." | |
1288 | ;; | |
1289 | ||
1290 | *=*) | |
1291 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1292 | # Reject names that are not valid shell variable names. | |
1293 | case $ac_envvar in #( | |
1294 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1295 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1296 | esac | |
1297 | eval $ac_envvar=\$ac_optarg | |
1298 | export $ac_envvar ;; | |
1299 | ||
1300 | *) | |
1301 | # FIXME: should be removed in autoconf 3.0. | |
1302 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1303 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1304 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1305 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1306 | ;; | |
1307 | ||
1308 | esac | |
1309 | done | |
1310 | ||
1311 | if test -n "$ac_prev"; then | |
1312 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1313 | as_fn_error "missing argument to $ac_option" | |
1314 | fi | |
1315 | ||
1316 | if test -n "$ac_unrecognized_opts"; then | |
1317 | case $enable_option_checking in | |
1318 | no) ;; | |
1319 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1320 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1321 | esac | |
1322 | fi | |
1323 | ||
1324 | # Check all directory arguments for consistency. | |
1325 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1326 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1327 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1328 | libdir localedir mandir | |
1329 | do | |
1330 | eval ac_val=\$$ac_var | |
1331 | # Remove trailing slashes. | |
1332 | case $ac_val in | |
1333 | */ ) | |
1334 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1335 | eval $ac_var=\$ac_val;; | |
1336 | esac | |
1337 | # Be sure to have absolute directory names. | |
1338 | case $ac_val in | |
1339 | [\\/$]* | ?:[\\/]* ) continue;; | |
1340 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1341 | esac | |
1342 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1343 | done | |
1344 | ||
1345 | # There might be people who depend on the old broken behavior: `$host' | |
1346 | # used to hold the argument of --host etc. | |
1347 | # FIXME: To remove some day. | |
1348 | build=$build_alias | |
1349 | host=$host_alias | |
1350 | target=$target_alias | |
1351 | ||
1352 | # FIXME: To remove some day. | |
1353 | if test "x$host_alias" != x; then | |
1354 | if test "x$build_alias" = x; then | |
1355 | cross_compiling=maybe | |
1356 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1357 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1358 | elif test "x$build_alias" != "x$host_alias"; then | |
1359 | cross_compiling=yes | |
1360 | fi | |
1361 | fi | |
1362 | ||
1363 | ac_tool_prefix= | |
1364 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1365 | ||
1366 | test "$silent" = yes && exec 6>/dev/null | |
1367 | ||
1368 | ||
1369 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1370 | ac_ls_di=`ls -di .` && | |
1371 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1372 | as_fn_error "working directory cannot be determined" | |
1373 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1374 | as_fn_error "pwd does not report name of working directory" | |
1375 | ||
1376 | ||
1377 | # Find the source files, if location was not specified. | |
1378 | if test -z "$srcdir"; then | |
1379 | ac_srcdir_defaulted=yes | |
1380 | # Try the directory containing this script, then the parent directory. | |
1381 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1382 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1383 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1384 | X"$as_myself" : 'X\(//\)$' \| \ | |
1385 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1386 | $as_echo X"$as_myself" | | |
1387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1388 | s//\1/ | |
1389 | q | |
1390 | } | |
1391 | /^X\(\/\/\)[^/].*/{ | |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | /^X\(\/\/\)$/{ | |
1396 | s//\1/ | |
1397 | q | |
1398 | } | |
1399 | /^X\(\/\).*/{ | |
1400 | s//\1/ | |
1401 | q | |
1402 | } | |
1403 | s/.*/./; q'` | |
1404 | srcdir=$ac_confdir | |
1405 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1406 | srcdir=.. | |
1407 | fi | |
1408 | else | |
1409 | ac_srcdir_defaulted=no | |
1410 | fi | |
1411 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1412 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1413 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1414 | fi | |
1415 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1416 | ac_abs_confdir=`( | |
1417 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1418 | pwd)` | |
1419 | # When building in place, set srcdir=. | |
1420 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1421 | srcdir=. | |
1422 | fi | |
1423 | # Remove unnecessary trailing slashes from srcdir. | |
1424 | # Double slashes in file names in object file debugging info | |
1425 | # mess up M-x gdb in Emacs. | |
1426 | case $srcdir in | |
1427 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1428 | esac | |
1429 | for ac_var in $ac_precious_vars; do | |
1430 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1431 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1432 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1433 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1434 | done | |
1435 | ||
1436 | # | |
1437 | # Report the --help message. | |
1438 | # | |
1439 | if test "$ac_init_help" = "long"; then | |
1440 | # Omit some internal or obsolete options to make the list less imposing. | |
1441 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1442 | cat <<_ACEOF | |
1443 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1444 | ||
1445 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1446 | ||
1447 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1448 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1449 | ||
1450 | Defaults for the options are specified in brackets. | |
1451 | ||
1452 | Configuration: | |
1453 | -h, --help display this help and exit | |
1454 | --help=short display options specific to this package | |
1455 | --help=recursive display the short help of all the included packages | |
1456 | -V, --version display version information and exit | |
1457 | -q, --quiet, --silent do not print \`checking...' messages | |
1458 | --cache-file=FILE cache test results in FILE [disabled] | |
1459 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1460 | -n, --no-create do not create output files | |
1461 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1462 | ||
1463 | Installation directories: | |
1464 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1465 | [$ac_default_prefix] | |
1466 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1467 | [PREFIX] | |
1468 | ||
1469 | By default, \`make install' will install all the files in | |
1470 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1471 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1472 | for instance \`--prefix=\$HOME'. | |
1473 | ||
1474 | For better control, use the options below. | |
1475 | ||
1476 | Fine tuning of the installation directories: | |
1477 | --bindir=DIR user executables [EPREFIX/bin] | |
1478 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1479 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1480 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1481 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1482 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1483 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1484 | --includedir=DIR C header files [PREFIX/include] | |
1485 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1486 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1487 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1488 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1489 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1490 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1491 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1492 | --htmldir=DIR html documentation [DOCDIR] | |
1493 | --dvidir=DIR dvi documentation [DOCDIR] | |
1494 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1495 | --psdir=DIR ps documentation [DOCDIR] | |
1496 | _ACEOF | |
1497 | ||
1498 | cat <<\_ACEOF | |
35fa52c0 DWT |
1499 | |
1500 | System types: | |
1501 | --build=BUILD configure for building on BUILD [guessed] | |
1502 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1503 | _ACEOF |
1504 | fi | |
1505 | ||
1506 | if test -n "$ac_init_help"; then | |
1507 | case $ac_init_help in | |
1508 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1509 | esac | |
1510 | cat <<\_ACEOF | |
1511 | ||
35fa52c0 DWT |
1512 | Optional Features: |
1513 | --disable-option-checking ignore unrecognized --enable/--with options | |
1514 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1515 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
549f29b5 | 1516 | --enable-static[=PKGS] build static libraries [default=no] |
9c60689e | 1517 | --enable-shared[=PKGS] build shared libraries [default=yes] |
9c60689e DWT |
1518 | --enable-fast-install[=PKGS] |
1519 | optimize for fast installation [default=yes] | |
1520 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1504c9b8 DWT |
1521 | --disable-universal-binary |
1522 | do not build with universal binary support on Darwin | |
b66977f1 | 1523 | --enable-javascript[=ENGINE] |
790e5246 | 1524 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1525 | available option for ENGINE is JavaScriptCore) |
1526 | [default=yes] | |
5053a6d1 | 1527 | --disable-rpath do not hardcode runtime library paths |
35fa52c0 DWT |
1528 | |
1529 | Optional Packages: | |
1530 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1531 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1532 | --with-pic try to use only PIC/non-PIC objects [default=use |
1533 | both] | |
1534 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
632b71ea DWT |
1535 | --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include |
1536 | path for frameworks with -F | |
309b0535 DWT |
1537 | --with-apr=PATH prefix for installed APR or the full path to |
1538 | apr-config | |
35fa52c0 DWT |
1539 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1540 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1541 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1542 | ||
dbadc56a | 1543 | Some influential environment variables: |
35fa52c0 DWT |
1544 | CC C compiler command |
1545 | CFLAGS C compiler flags | |
dbadc56a DWT |
1546 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1547 | nonstandard directory <lib dir> | |
1548 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1549 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1550 | you have headers in a nonstandard directory <include dir> |
9c60689e | 1551 | CPP C preprocessor |
3fd51f51 | 1552 | PKG_CONFIG path to pkg-config utility |
e9c9a47c DWT |
1553 | BISON GNU Project parser generator (yacc replacement) |
1554 | FLEX the fast lexical analyser generator | |
1555 | GPERF perfect hash function generator | |
47aaa820 DWT |
1556 | CXX C++ compiler command |
1557 | CXXFLAGS C++ compiler flags | |
1558 | CXXCPP C++ preprocessor | |
632b71ea DWT |
1559 | OBJCXX Objective C++ compiler command |
1560 | OBJCXXFLAGS Objective C++ compiler flags | |
35fa52c0 DWT |
1561 | WEBKIT_CFLAGS |
1562 | C compiler flags for WEBKIT, overriding pkg-config | |
1563 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1564 | LIBFFI_CFLAGS | |
1565 | C compiler flags for LIBFFI, overriding pkg-config | |
1566 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
790e5246 DWT |
1567 | GNUSTEP_CONFIG |
1568 | prints information about the current gnustep installation | |
dbadc56a DWT |
1569 | |
1570 | Use these variables to override the choices made by `configure' or to help | |
1571 | it to find libraries and programs with nonstandard names/locations. | |
1572 | ||
c7aa54aa DWT |
1573 | Report bugs to <saurik@saurik.com>. |
1574 | Cycript home page: <http://www.cycript.org/>. | |
1575 | _ACEOF | |
1576 | ac_status=$? | |
1577 | fi | |
1578 | ||
1579 | if test "$ac_init_help" = "recursive"; then | |
1580 | # If there are subdirs, report their specific --help. | |
1581 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1582 | test -d "$ac_dir" || | |
1583 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1584 | continue | |
1585 | ac_builddir=. | |
1586 | ||
1587 | case "$ac_dir" in | |
1588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1589 | *) | |
1590 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1591 | # A ".." for each directory in $ac_dir_suffix. | |
1592 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1593 | case $ac_top_builddir_sub in | |
1594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1596 | esac ;; | |
1597 | esac | |
1598 | ac_abs_top_builddir=$ac_pwd | |
1599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1600 | # for backward compatibility: | |
1601 | ac_top_builddir=$ac_top_build_prefix | |
1602 | ||
1603 | case $srcdir in | |
1604 | .) # We are building in place. | |
1605 | ac_srcdir=. | |
1606 | ac_top_srcdir=$ac_top_builddir_sub | |
1607 | ac_abs_top_srcdir=$ac_pwd ;; | |
1608 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1609 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1610 | ac_top_srcdir=$srcdir | |
1611 | ac_abs_top_srcdir=$srcdir ;; | |
1612 | *) # Relative name. | |
1613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1614 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1616 | esac | |
1617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1618 | ||
1619 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1620 | # Check for guested configure. | |
1621 | if test -f "$ac_srcdir/configure.gnu"; then | |
1622 | echo && | |
1623 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1624 | elif test -f "$ac_srcdir/configure"; then | |
1625 | echo && | |
1626 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1627 | else | |
1628 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1629 | fi || ac_status=$? | |
1630 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1631 | done | |
1632 | fi | |
1633 | ||
1634 | test -n "$ac_init_help" && exit $ac_status | |
1635 | if $ac_init_version; then | |
1636 | cat <<\_ACEOF | |
1637 | Cycript configure 0.9 | |
9c60689e | 1638 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1639 | |
1640 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1641 | This configure script is free software; the Free Software Foundation | |
1642 | gives unlimited permission to copy, distribute and modify it. | |
1643 | _ACEOF | |
1644 | exit | |
1645 | fi | |
1646 | ||
1647 | ## ------------------------ ## | |
1648 | ## Autoconf initialization. ## | |
1649 | ## ------------------------ ## | |
dbadc56a | 1650 | |
35fa52c0 DWT |
1651 | # ac_fn_c_try_compile LINENO |
1652 | # -------------------------- | |
1653 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1654 | ac_fn_c_try_compile () | |
1655 | { | |
1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1657 | rm -f conftest.$ac_objext | |
1658 | if { { ac_try="$ac_compile" | |
1659 | case "(($ac_try" in | |
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1661 | *) ac_try_echo=$ac_try;; | |
1662 | esac | |
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1664 | $as_echo "$ac_try_echo"; } >&5 | |
1665 | (eval "$ac_compile") 2>conftest.err | |
1666 | ac_status=$? | |
1667 | if test -s conftest.err; then | |
1668 | grep -v '^ *+' conftest.err >conftest.er1 | |
1669 | cat conftest.er1 >&5 | |
1670 | mv -f conftest.er1 conftest.err | |
1671 | fi | |
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1673 | test $ac_status = 0; } && { | |
1674 | test -z "$ac_c_werror_flag" || | |
1675 | test ! -s conftest.err | |
1676 | } && test -s conftest.$ac_objext; then : | |
1677 | ac_retval=0 | |
1678 | else | |
1679 | $as_echo "$as_me: failed program was:" >&5 | |
1680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1681 | ||
1682 | ac_retval=1 | |
1683 | fi | |
1684 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1685 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1686 | |
1687 | } # ac_fn_c_try_compile | |
1688 | ||
1689 | # ac_fn_c_try_link LINENO | |
1690 | # ----------------------- | |
1691 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1692 | ac_fn_c_try_link () | |
1693 | { | |
1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1696 | if { { ac_try="$ac_link" | |
1697 | case "(($ac_try" in | |
1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1699 | *) ac_try_echo=$ac_try;; | |
1700 | esac | |
1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1702 | $as_echo "$ac_try_echo"; } >&5 | |
1703 | (eval "$ac_link") 2>conftest.err | |
1704 | ac_status=$? | |
1705 | if test -s conftest.err; then | |
1706 | grep -v '^ *+' conftest.err >conftest.er1 | |
1707 | cat conftest.er1 >&5 | |
1708 | mv -f conftest.er1 conftest.err | |
1709 | fi | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; } && { | |
1712 | test -z "$ac_c_werror_flag" || | |
1713 | test ! -s conftest.err | |
1714 | } && test -s conftest$ac_exeext && { | |
1715 | test "$cross_compiling" = yes || | |
1716 | $as_test_x conftest$ac_exeext | |
1717 | }; then : | |
1718 | ac_retval=0 | |
1719 | else | |
1720 | $as_echo "$as_me: failed program was:" >&5 | |
1721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1722 | ||
1723 | ac_retval=1 | |
1724 | fi | |
1725 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1726 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1727 | # interfere with the next link command; also delete a directory that is | |
1728 | # left behind by Apple's compiler. We do this before executing the actions. | |
1729 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1730 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1731 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1732 | |
1733 | } # ac_fn_c_try_link | |
1734 | ||
9c60689e DWT |
1735 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1736 | # ------------------------------------------------------- | |
1737 | # Tests whether HEADER exists and can be compiled using the include files in | |
1738 | # INCLUDES, setting the cache variable VAR accordingly. | |
1739 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1740 | { |
1741 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1743 | $as_echo_n "checking for $2... " >&6; } | |
1744 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1745 | $as_echo_n "(cached) " >&6 | |
1746 | else | |
1747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1748 | /* end confdefs.h. */ | |
1749 | $4 | |
1750 | #include <$2> | |
1751 | _ACEOF | |
1752 | if ac_fn_c_try_compile "$LINENO"; then : | |
1753 | eval "$3=yes" | |
1754 | else | |
1755 | eval "$3=no" | |
1756 | fi | |
1757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1758 | fi | |
1759 | eval ac_res=\$$3 | |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1761 | $as_echo "$ac_res" >&6; } | |
1762 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1763 | ||
1764 | } # ac_fn_c_check_header_compile | |
1765 | ||
1766 | # ac_fn_c_try_cpp LINENO | |
1767 | # ---------------------- | |
1768 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1769 | ac_fn_c_try_cpp () | |
1770 | { | |
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1772 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1773 | case "(($ac_try" in |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1779 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1780 | ac_status=$? |
1781 | if test -s conftest.err; then | |
1782 | grep -v '^ *+' conftest.err >conftest.er1 | |
1783 | cat conftest.er1 >&5 | |
1784 | mv -f conftest.er1 conftest.err | |
1785 | fi | |
1786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1787 | test $ac_status = 0; } >/dev/null && { |
1788 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1789 | test ! -s conftest.err |
9c60689e | 1790 | }; then : |
dbadc56a DWT |
1791 | ac_retval=0 |
1792 | else | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1795 | ||
9c60689e | 1796 | ac_retval=1 |
dbadc56a DWT |
1797 | fi |
1798 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1799 | as_fn_set_status $ac_retval |
dbadc56a | 1800 | |
9c60689e | 1801 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1802 | |
1803 | # ac_fn_c_try_run LINENO | |
1804 | # ---------------------- | |
1805 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1806 | # that executables *can* be run. | |
1807 | ac_fn_c_try_run () | |
1808 | { | |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1810 | if { { ac_try="$ac_link" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_link") 2>&5 | |
1818 | ac_status=$? | |
1819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1820 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1821 | { { case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_try") 2>&5 | |
1828 | ac_status=$? | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1830 | test $ac_status = 0; }; }; then : | |
1831 | ac_retval=0 | |
1832 | else | |
1833 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1834 | $as_echo "$as_me: failed program was:" >&5 | |
1835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1836 | ||
1837 | ac_retval=$ac_status | |
1838 | fi | |
1839 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1840 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1841 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1842 | |
1843 | } # ac_fn_c_try_run | |
6b66678a | 1844 | |
9c60689e DWT |
1845 | # ac_fn_c_check_func LINENO FUNC VAR |
1846 | # ---------------------------------- | |
1847 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1848 | ac_fn_c_check_func () | |
6b66678a DWT |
1849 | { |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1852 | $as_echo_n "checking for $2... " >&6; } | |
1853 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1854 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1855 | else |
9c60689e DWT |
1856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1857 | /* end confdefs.h. */ | |
1858 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1860 | #define $2 innocuous_$2 | |
6b66678a | 1861 | |
9c60689e DWT |
1862 | /* System header to define __stub macros and hopefully few prototypes, |
1863 | which can conflict with char $2 (); below. | |
1864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1865 | <limits.h> exists even on freestanding compilers. */ | |
1866 | ||
1867 | #ifdef __STDC__ | |
1868 | # include <limits.h> | |
1869 | #else | |
1870 | # include <assert.h> | |
1871 | #endif | |
1872 | ||
1873 | #undef $2 | |
1874 | ||
1875 | /* Override any GCC internal prototype to avoid an error. | |
1876 | Use char because int might match the return type of a GCC | |
1877 | builtin and then its argument prototype would still apply. */ | |
1878 | #ifdef __cplusplus | |
1879 | extern "C" | |
1880 | #endif | |
1881 | char $2 (); | |
1882 | /* The GNU C library defines this for functions which it implements | |
1883 | to always fail with ENOSYS. Some functions are actually named | |
1884 | something starting with __ and the normal name is an alias. */ | |
1885 | #if defined __stub_$2 || defined __stub___$2 | |
1886 | choke me | |
1887 | #endif | |
1888 | ||
1889 | int | |
1890 | main () | |
1891 | { | |
1892 | return $2 (); | |
1893 | ; | |
1894 | return 0; | |
1895 | } | |
1896 | _ACEOF | |
1897 | if ac_fn_c_try_link "$LINENO"; then : | |
1898 | eval "$3=yes" | |
1899 | else | |
1900 | eval "$3=no" | |
1901 | fi | |
1902 | rm -f core conftest.err conftest.$ac_objext \ | |
1903 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1904 | fi |
9c60689e DWT |
1905 | eval ac_res=\$$3 |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1907 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1908 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1909 | |
9c60689e | 1910 | } # ac_fn_c_check_func |
6b66678a | 1911 | |
9c60689e DWT |
1912 | # ac_fn_cxx_try_compile LINENO |
1913 | # ---------------------------- | |
1914 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1915 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
1916 | { |
1917 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1918 | rm -f conftest.$ac_objext |
1919 | if { { ac_try="$ac_compile" | |
1920 | case "(($ac_try" in | |
1921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1922 | *) ac_try_echo=$ac_try;; | |
1923 | esac | |
1924 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1925 | $as_echo "$ac_try_echo"; } >&5 | |
1926 | (eval "$ac_compile") 2>conftest.err | |
1927 | ac_status=$? | |
1928 | if test -s conftest.err; then | |
1929 | grep -v '^ *+' conftest.err >conftest.er1 | |
1930 | cat conftest.er1 >&5 | |
1931 | mv -f conftest.er1 conftest.err | |
1932 | fi | |
1933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1934 | test $ac_status = 0; } && { | |
1935 | test -z "$ac_cxx_werror_flag" || | |
1936 | test ! -s conftest.err | |
1937 | } && test -s conftest.$ac_objext; then : | |
1938 | ac_retval=0 | |
1939 | else | |
1940 | $as_echo "$as_me: failed program was:" >&5 | |
1941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1942 | ||
1943 | ac_retval=1 | |
1944 | fi | |
1945 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1946 | as_fn_set_status $ac_retval | |
1947 | ||
1948 | } # ac_fn_cxx_try_compile | |
1949 | ||
1950 | # ac_fn_cxx_try_cpp LINENO | |
1951 | # ------------------------ | |
1952 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1953 | ac_fn_cxx_try_cpp () | |
1954 | { | |
1955 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1956 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1957 | case "(($ac_try" in | |
1958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1959 | *) ac_try_echo=$ac_try;; | |
1960 | esac | |
1961 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1962 | $as_echo "$ac_try_echo"; } >&5 | |
1963 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1964 | ac_status=$? | |
1965 | if test -s conftest.err; then | |
1966 | grep -v '^ *+' conftest.err >conftest.er1 | |
1967 | cat conftest.er1 >&5 | |
1968 | mv -f conftest.er1 conftest.err | |
1969 | fi | |
1970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1971 | test $ac_status = 0; } >/dev/null && { | |
1972 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1973 | test ! -s conftest.err | |
1974 | }; then : | |
1975 | ac_retval=0 | |
1976 | else | |
1977 | $as_echo "$as_me: failed program was:" >&5 | |
1978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1979 | ||
1980 | ac_retval=1 | |
1981 | fi | |
1982 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1983 | as_fn_set_status $ac_retval | |
1984 | ||
1985 | } # ac_fn_cxx_try_cpp | |
1986 | ||
1987 | # ac_fn_cxx_try_link LINENO | |
1988 | # ------------------------- | |
1989 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1990 | ac_fn_cxx_try_link () | |
1991 | { | |
1992 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1994 | if { { ac_try="$ac_link" | |
1995 | case "(($ac_try" in | |
1996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1997 | *) ac_try_echo=$ac_try;; | |
1998 | esac | |
1999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2000 | $as_echo "$ac_try_echo"; } >&5 | |
2001 | (eval "$ac_link") 2>conftest.err | |
2002 | ac_status=$? | |
2003 | if test -s conftest.err; then | |
2004 | grep -v '^ *+' conftest.err >conftest.er1 | |
2005 | cat conftest.er1 >&5 | |
2006 | mv -f conftest.er1 conftest.err | |
2007 | fi | |
2008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2009 | test $ac_status = 0; } && { | |
2010 | test -z "$ac_cxx_werror_flag" || | |
2011 | test ! -s conftest.err | |
2012 | } && test -s conftest$ac_exeext && { | |
2013 | test "$cross_compiling" = yes || | |
2014 | $as_test_x conftest$ac_exeext | |
2015 | }; then : | |
2016 | ac_retval=0 | |
2017 | else | |
2018 | $as_echo "$as_me: failed program was:" >&5 | |
2019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2020 | ||
2021 | ac_retval=1 | |
2022 | fi | |
2023 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2024 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2025 | # interfere with the next link command; also delete a directory that is | |
2026 | # left behind by Apple's compiler. We do this before executing the actions. | |
2027 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2028 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2029 | as_fn_set_status $ac_retval | |
2030 | ||
2031 | } # ac_fn_cxx_try_link | |
2032 | ||
632b71ea DWT |
2033 | # ac_fn_objcxx_try_compile LINENO |
2034 | # ------------------------------- | |
2035 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2036 | ac_fn_objcxx_try_compile () | |
2037 | { | |
2038 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2039 | rm -f conftest.$ac_objext | |
2040 | if { { ac_try="$ac_compile" | |
2041 | case "(($ac_try" in | |
2042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2043 | *) ac_try_echo=$ac_try;; | |
2044 | esac | |
2045 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2046 | $as_echo "$ac_try_echo"; } >&5 | |
2047 | (eval "$ac_compile") 2>conftest.err | |
2048 | ac_status=$? | |
2049 | if test -s conftest.err; then | |
2050 | grep -v '^ *+' conftest.err >conftest.er1 | |
2051 | cat conftest.er1 >&5 | |
2052 | mv -f conftest.er1 conftest.err | |
2053 | fi | |
2054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2055 | test $ac_status = 0; } && { | |
2056 | test -z "$ac_objcxx_werror_flag" || | |
2057 | test ! -s conftest.err | |
2058 | } && test -s conftest.$ac_objext; then : | |
2059 | ac_retval=0 | |
2060 | else | |
2061 | $as_echo "$as_me: failed program was:" >&5 | |
2062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2063 | ||
2064 | ac_retval=1 | |
2065 | fi | |
2066 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2067 | as_fn_set_status $ac_retval | |
2068 | ||
2069 | } # ac_fn_objcxx_try_compile | |
2070 | ||
47aaa820 DWT |
2071 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2072 | # --------------------------------------------------------- | |
2073 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2074 | # the include files in INCLUDES and setting the cache variable VAR | |
2075 | # accordingly. | |
2076 | ac_fn_cxx_check_header_mongrel () | |
2077 | { | |
2078 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2079 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2081 | $as_echo_n "checking for $2... " >&6; } | |
2082 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2083 | $as_echo_n "(cached) " >&6 | |
2084 | fi | |
2085 | eval ac_res=\$$3 | |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2087 | $as_echo "$ac_res" >&6; } | |
2088 | else | |
2089 | # Is the header compilable? | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2091 | $as_echo_n "checking $2 usability... " >&6; } | |
2092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2093 | /* end confdefs.h. */ | |
2094 | $4 | |
2095 | #include <$2> | |
2096 | _ACEOF | |
2097 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2098 | ac_header_compiler=yes | |
2099 | else | |
2100 | ac_header_compiler=no | |
2101 | fi | |
2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2104 | $as_echo "$ac_header_compiler" >&6; } | |
2105 | ||
2106 | # Is the header present? | |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2108 | $as_echo_n "checking $2 presence... " >&6; } | |
2109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2110 | /* end confdefs.h. */ | |
2111 | #include <$2> | |
2112 | _ACEOF | |
2113 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2114 | ac_header_preproc=yes | |
2115 | else | |
2116 | ac_header_preproc=no | |
2117 | fi | |
2118 | rm -f conftest.err conftest.$ac_ext | |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2120 | $as_echo "$ac_header_preproc" >&6; } | |
2121 | ||
2122 | # So? What about this header? | |
2123 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2124 | yes:no: ) | |
2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2126 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2128 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2129 | ;; | |
2130 | no:yes:* ) | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2132 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2134 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2136 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2138 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2140 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2141 | ( cat <<\_ASBOX | |
2142 | ## -------------------------------- ## | |
2143 | ## Report this to saurik@saurik.com ## | |
2144 | ## -------------------------------- ## | |
2145 | _ASBOX | |
2146 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2147 | ;; | |
2148 | esac | |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2150 | $as_echo_n "checking for $2... " >&6; } | |
2151 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2152 | $as_echo_n "(cached) " >&6 | |
2153 | else | |
2154 | eval "$3=\$ac_header_compiler" | |
2155 | fi | |
2156 | eval ac_res=\$$3 | |
2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2158 | $as_echo "$ac_res" >&6; } | |
2159 | fi | |
2160 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2161 | ||
2162 | } # ac_fn_cxx_check_header_mongrel | |
2163 | ||
c823f118 DWT |
2164 | # ac_fn_objcxx_try_link LINENO |
2165 | # ---------------------------- | |
2166 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2167 | ac_fn_objcxx_try_link () | |
2168 | { | |
2169 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2170 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2171 | if { { ac_try="$ac_link" | |
2172 | case "(($ac_try" in | |
2173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2174 | *) ac_try_echo=$ac_try;; | |
2175 | esac | |
2176 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2177 | $as_echo "$ac_try_echo"; } >&5 | |
2178 | (eval "$ac_link") 2>conftest.err | |
2179 | ac_status=$? | |
2180 | if test -s conftest.err; then | |
2181 | grep -v '^ *+' conftest.err >conftest.er1 | |
2182 | cat conftest.er1 >&5 | |
2183 | mv -f conftest.er1 conftest.err | |
2184 | fi | |
2185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2186 | test $ac_status = 0; } && { | |
2187 | test -z "$ac_objcxx_werror_flag" || | |
2188 | test ! -s conftest.err | |
2189 | } && test -s conftest$ac_exeext && { | |
2190 | test "$cross_compiling" = yes || | |
2191 | $as_test_x conftest$ac_exeext | |
2192 | }; then : | |
2193 | ac_retval=0 | |
2194 | else | |
2195 | $as_echo "$as_me: failed program was:" >&5 | |
2196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2197 | ||
2198 | ac_retval=1 | |
2199 | fi | |
2200 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2201 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2202 | # interfere with the next link command; also delete a directory that is | |
2203 | # left behind by Apple's compiler. We do this before executing the actions. | |
2204 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2205 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2206 | as_fn_set_status $ac_retval | |
2207 | ||
2208 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2209 | cat >config.log <<_ACEOF |
2210 | This file contains any messages produced by compilers while | |
2211 | running configure, to aid debugging if configure makes a mistake. | |
2212 | ||
2213 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2214 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2215 | |
2216 | $ $0 $@ | |
2217 | ||
2218 | _ACEOF | |
2219 | exec 5>>config.log | |
2220 | { | |
2221 | cat <<_ASUNAME | |
2222 | ## --------- ## | |
2223 | ## Platform. ## | |
2224 | ## --------- ## | |
2225 | ||
2226 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2227 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2228 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2229 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2230 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2231 | ||
2232 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2233 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2234 | ||
2235 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2236 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2237 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2238 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2239 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2240 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2241 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2242 | ||
2243 | _ASUNAME | |
2244 | ||
2245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2246 | for as_dir in $PATH | |
2247 | do | |
2248 | IFS=$as_save_IFS | |
2249 | test -z "$as_dir" && as_dir=. | |
2250 | $as_echo "PATH: $as_dir" | |
2251 | done | |
2252 | IFS=$as_save_IFS | |
2253 | ||
2254 | } >&5 | |
2255 | ||
2256 | cat >&5 <<_ACEOF | |
2257 | ||
2258 | ||
2259 | ## ----------- ## | |
2260 | ## Core tests. ## | |
2261 | ## ----------- ## | |
2262 | ||
2263 | _ACEOF | |
2264 | ||
2265 | ||
2266 | # Keep a trace of the command line. | |
2267 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2268 | # Strip out --silent because we don't want to record it for future runs. | |
2269 | # Also quote any args containing shell meta-characters. | |
2270 | # Make two passes to allow for proper duplicate-argument suppression. | |
2271 | ac_configure_args= | |
2272 | ac_configure_args0= | |
2273 | ac_configure_args1= | |
2274 | ac_must_keep_next=false | |
2275 | for ac_pass in 1 2 | |
2276 | do | |
2277 | for ac_arg | |
2278 | do | |
2279 | case $ac_arg in | |
2280 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2281 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2282 | | -silent | --silent | --silen | --sile | --sil) | |
2283 | continue ;; | |
2284 | *\'*) | |
2285 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2286 | esac | |
2287 | case $ac_pass in | |
2288 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2289 | 2) | |
2290 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2291 | if test $ac_must_keep_next = true; then | |
2292 | ac_must_keep_next=false # Got value, back to normal. | |
2293 | else | |
2294 | case $ac_arg in | |
2295 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2296 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2297 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2298 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2299 | case "$ac_configure_args0 " in | |
2300 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2301 | esac | |
2302 | ;; | |
2303 | -* ) ac_must_keep_next=true ;; | |
2304 | esac | |
2305 | fi | |
2306 | as_fn_append ac_configure_args " '$ac_arg'" | |
2307 | ;; | |
2308 | esac | |
2309 | done | |
2310 | done | |
2311 | { ac_configure_args0=; unset ac_configure_args0;} | |
2312 | { ac_configure_args1=; unset ac_configure_args1;} | |
2313 | ||
2314 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2315 | # config.log. We remove comments because anyway the quotes in there | |
2316 | # would cause problems or look ugly. | |
2317 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2318 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2319 | trap 'exit_status=$? | |
2320 | # Save into config.log some information that might help in debugging. | |
2321 | { | |
2322 | echo | |
2323 | ||
2324 | cat <<\_ASBOX | |
2325 | ## ---------------- ## | |
2326 | ## Cache variables. ## | |
2327 | ## ---------------- ## | |
2328 | _ASBOX | |
2329 | echo | |
2330 | # The following way of writing the cache mishandles newlines in values, | |
2331 | ( | |
2332 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2333 | eval ac_val=\$$ac_var | |
2334 | case $ac_val in #( | |
2335 | *${as_nl}*) | |
2336 | case $ac_var in #( | |
2337 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2338 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2339 | esac | |
2340 | case $ac_var in #( | |
2341 | _ | IFS | as_nl) ;; #( | |
2342 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2343 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2344 | esac ;; | |
2345 | esac | |
2346 | done | |
2347 | (set) 2>&1 | | |
2348 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2349 | *${as_nl}ac_space=\ *) | |
2350 | sed -n \ | |
2351 | "s/'\''/'\''\\\\'\'''\''/g; | |
2352 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2353 | ;; #( | |
2354 | *) | |
2355 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2356 | ;; | |
2357 | esac | | |
2358 | sort | |
2359 | ) | |
2360 | echo | |
2361 | ||
2362 | cat <<\_ASBOX | |
2363 | ## ----------------- ## | |
2364 | ## Output variables. ## | |
2365 | ## ----------------- ## | |
2366 | _ASBOX | |
2367 | echo | |
2368 | for ac_var in $ac_subst_vars | |
2369 | do | |
2370 | eval ac_val=\$$ac_var | |
2371 | case $ac_val in | |
2372 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2373 | esac | |
2374 | $as_echo "$ac_var='\''$ac_val'\''" | |
2375 | done | sort | |
2376 | echo | |
2377 | ||
2378 | if test -n "$ac_subst_files"; then | |
2379 | cat <<\_ASBOX | |
2380 | ## ------------------- ## | |
2381 | ## File substitutions. ## | |
2382 | ## ------------------- ## | |
2383 | _ASBOX | |
2384 | echo | |
2385 | for ac_var in $ac_subst_files | |
2386 | do | |
2387 | eval ac_val=\$$ac_var | |
2388 | case $ac_val in | |
2389 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2390 | esac | |
2391 | $as_echo "$ac_var='\''$ac_val'\''" | |
2392 | done | sort | |
2393 | echo | |
2394 | fi | |
2395 | ||
2396 | if test -s confdefs.h; then | |
2397 | cat <<\_ASBOX | |
2398 | ## ----------- ## | |
2399 | ## confdefs.h. ## | |
2400 | ## ----------- ## | |
2401 | _ASBOX | |
2402 | echo | |
2403 | cat confdefs.h | |
2404 | echo | |
2405 | fi | |
2406 | test "$ac_signal" != 0 && | |
2407 | $as_echo "$as_me: caught signal $ac_signal" | |
2408 | $as_echo "$as_me: exit $exit_status" | |
2409 | } >&5 | |
2410 | rm -f core *.core core.conftest.* && | |
2411 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2412 | exit $exit_status | |
2413 | ' 0 | |
2414 | for ac_signal in 1 2 13 15; do | |
2415 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2416 | done | |
2417 | ac_signal=0 | |
2418 | ||
2419 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2420 | rm -f -r conftest* confdefs.h | |
2421 | ||
2422 | $as_echo "/* confdefs.h */" > confdefs.h | |
2423 | ||
2424 | # Predefined preprocessor variables. | |
2425 | ||
2426 | cat >>confdefs.h <<_ACEOF | |
2427 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2428 | _ACEOF | |
2429 | ||
2430 | cat >>confdefs.h <<_ACEOF | |
2431 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2432 | _ACEOF | |
2433 | ||
2434 | cat >>confdefs.h <<_ACEOF | |
2435 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2436 | _ACEOF | |
2437 | ||
2438 | cat >>confdefs.h <<_ACEOF | |
2439 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2440 | _ACEOF | |
2441 | ||
2442 | cat >>confdefs.h <<_ACEOF | |
2443 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2444 | _ACEOF | |
2445 | ||
2446 | cat >>confdefs.h <<_ACEOF | |
2447 | #define PACKAGE_URL "$PACKAGE_URL" | |
2448 | _ACEOF | |
2449 | ||
2450 | ||
2451 | # Let the site file select an alternate cache file if it wants to. | |
2452 | # Prefer an explicitly selected file to automatically selected ones. | |
2453 | ac_site_file1=NONE | |
2454 | ac_site_file2=NONE | |
2455 | if test -n "$CONFIG_SITE"; then | |
2456 | ac_site_file1=$CONFIG_SITE | |
2457 | elif test "x$prefix" != xNONE; then | |
2458 | ac_site_file1=$prefix/share/config.site | |
2459 | ac_site_file2=$prefix/etc/config.site | |
2460 | else | |
2461 | ac_site_file1=$ac_default_prefix/share/config.site | |
2462 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2463 | fi | |
2464 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2465 | do | |
2466 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2467 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2469 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2470 | sed 's/^/| /' "$ac_site_file" >&5 | |
2471 | . "$ac_site_file" | |
2472 | fi | |
2473 | done | |
2474 | ||
2475 | if test -r "$cache_file"; then | |
9c60689e DWT |
2476 | # Some versions of bash will fail to source /dev/null (special files |
2477 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2478 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2480 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2481 | case $cache_file in | |
2482 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2483 | *) . "./$cache_file";; | |
2484 | esac | |
2485 | fi | |
2486 | else | |
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2488 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2489 | >$cache_file | |
2490 | fi | |
2491 | ||
2492 | # Check that the precious variables saved in the cache have kept the same | |
2493 | # value. | |
2494 | ac_cache_corrupted=false | |
2495 | for ac_var in $ac_precious_vars; do | |
2496 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2497 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2498 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2499 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2500 | case $ac_old_set,$ac_new_set in | |
2501 | set,) | |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2503 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2504 | ac_cache_corrupted=: ;; | |
2505 | ,set) | |
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2507 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2508 | ac_cache_corrupted=: ;; | |
2509 | ,);; | |
2510 | *) | |
2511 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2512 | # differences in whitespace do not lead to failure. | |
2513 | ac_old_val_w=`echo x $ac_old_val` | |
2514 | ac_new_val_w=`echo x $ac_new_val` | |
2515 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2517 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2518 | ac_cache_corrupted=: | |
2519 | else | |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2521 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2522 | eval $ac_var=\$ac_old_val | |
2523 | fi | |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2525 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2527 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2528 | fi;; | |
2529 | esac | |
2530 | # Pass precious variables to config.status. | |
2531 | if test "$ac_new_set" = set; then | |
2532 | case $ac_new_val in | |
2533 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2534 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2535 | esac | |
2536 | case " $ac_configure_args " in | |
2537 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2538 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2539 | esac | |
2540 | fi | |
2541 | done | |
2542 | if $ac_cache_corrupted; then | |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2544 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2546 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2547 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2548 | fi | |
2549 | ## -------------------- ## | |
2550 | ## Main body of script. ## | |
2551 | ## -------------------- ## | |
2552 | ||
2553 | ac_ext=c | |
2554 | ac_cpp='$CPP $CPPFLAGS' | |
2555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2558 | ||
2559 | ||
35fa52c0 | 2560 | |
6b66678a DWT |
2561 | ac_aux_dir= |
2562 | for ac_dir in . "$srcdir"/.; do | |
2563 | for ac_t in install-sh install.sh shtool; do | |
2564 | if test -f "$ac_dir/$ac_t"; then | |
2565 | ac_aux_dir=$ac_dir | |
2566 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2567 | break 2 | |
2568 | fi | |
2569 | done | |
2570 | done | |
2571 | if test -z "$ac_aux_dir"; then | |
2572 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2573 | fi | |
2574 | ||
2575 | # These three variables are undocumented and unsupported, | |
2576 | # and are intended to be withdrawn in a future Autoconf release. | |
2577 | # They can cause serious problems if a builder's source tree is in a directory | |
2578 | # whose full name contains unusual characters. | |
2579 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2580 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2581 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2582 | ||
2583 | ||
9c60689e DWT |
2584 | case `pwd` in |
2585 | *\ * | *\ *) | |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2587 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2588 | esac | |
2589 | ||
2590 | ||
2591 | ||
2592 | macro_version='2.2.6b' | |
2593 | macro_revision='1.3017' | |
2594 | ||
2595 | ||
2596 | ||
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | ||
2602 | ||
2603 | ||
2604 | ||
2605 | ||
2606 | ||
2607 | ltmain="$ac_aux_dir/ltmain.sh" | |
2608 | ||
2609 | # Make sure we can run config.sub. | |
2610 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2611 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2612 | ||
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2614 | $as_echo_n "checking build system type... " >&6; } | |
2615 | if test "${ac_cv_build+set}" = set; then : | |
2616 | $as_echo_n "(cached) " >&6 | |
2617 | else | |
2618 | ac_build_alias=$build_alias | |
2619 | test "x$ac_build_alias" = x && | |
2620 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2621 | test "x$ac_build_alias" = x && | |
2622 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2623 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2624 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2625 | ||
2626 | fi | |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2628 | $as_echo "$ac_cv_build" >&6; } | |
2629 | case $ac_cv_build in | |
2630 | *-*-*) ;; | |
2631 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2632 | esac | |
2633 | build=$ac_cv_build | |
2634 | ac_save_IFS=$IFS; IFS='-' | |
2635 | set x $ac_cv_build | |
2636 | shift | |
2637 | build_cpu=$1 | |
2638 | build_vendor=$2 | |
2639 | shift; shift | |
2640 | # Remember, the first character of IFS is used to create $*, | |
2641 | # except with old shells: | |
2642 | build_os=$* | |
2643 | IFS=$ac_save_IFS | |
2644 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2645 | ||
2646 | ||
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2648 | $as_echo_n "checking host system type... " >&6; } | |
2649 | if test "${ac_cv_host+set}" = set; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | if test "x$host_alias" = x; then | |
2653 | ac_cv_host=$ac_cv_build | |
2654 | else | |
2655 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2656 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2657 | fi | |
2658 | ||
2659 | fi | |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2661 | $as_echo "$ac_cv_host" >&6; } | |
2662 | case $ac_cv_host in | |
2663 | *-*-*) ;; | |
2664 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2665 | esac | |
2666 | host=$ac_cv_host | |
2667 | ac_save_IFS=$IFS; IFS='-' | |
2668 | set x $ac_cv_host | |
2669 | shift | |
2670 | host_cpu=$1 | |
2671 | host_vendor=$2 | |
2672 | shift; shift | |
2673 | # Remember, the first character of IFS is used to create $*, | |
2674 | # except with old shells: | |
2675 | host_os=$* | |
2676 | IFS=$ac_save_IFS | |
2677 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2678 | ||
2679 | ||
2680 | ac_ext=c | |
2681 | ac_cpp='$CPP $CPPFLAGS' | |
2682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2685 | if test -n "$ac_tool_prefix"; then | |
2686 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2687 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2689 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2690 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2691 | $as_echo_n "(cached) " >&6 |
2692 | else | |
9c60689e DWT |
2693 | if test -n "$CC"; then |
2694 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2695 | else |
2696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2697 | for as_dir in $PATH | |
2698 | do | |
2699 | IFS=$as_save_IFS | |
2700 | test -z "$as_dir" && as_dir=. | |
2701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2703 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2705 | break 2 | |
2706 | fi | |
2707 | done | |
2708 | done | |
2709 | IFS=$as_save_IFS | |
2710 | ||
2711 | fi | |
2712 | fi | |
9c60689e DWT |
2713 | CC=$ac_cv_prog_CC |
2714 | if test -n "$CC"; then | |
2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2716 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2717 | else |
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2719 | $as_echo "no" >&6; } | |
2720 | fi | |
2721 | ||
2722 | ||
2723 | fi | |
2724 | if test -z "$ac_cv_prog_CC"; then | |
2725 | ac_ct_CC=$CC | |
2726 | # Extract the first word of "gcc", so it can be a program name with args. | |
2727 | set dummy gcc; ac_word=$2 | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2729 | $as_echo_n "checking for $ac_word... " >&6; } | |
2730 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2731 | $as_echo_n "(cached) " >&6 | |
2732 | else | |
2733 | if test -n "$ac_ct_CC"; then | |
2734 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2735 | else | |
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2737 | for as_dir in $PATH | |
2738 | do | |
2739 | IFS=$as_save_IFS | |
2740 | test -z "$as_dir" && as_dir=. | |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2743 | ac_cv_prog_ac_ct_CC="gcc" | |
2744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2745 | break 2 | |
2746 | fi | |
2747 | done | |
2748 | done | |
2749 | IFS=$as_save_IFS | |
2750 | ||
2751 | fi | |
2752 | fi | |
2753 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2754 | if test -n "$ac_ct_CC"; then | |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2756 | $as_echo "$ac_ct_CC" >&6; } | |
2757 | else | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2759 | $as_echo "no" >&6; } | |
2760 | fi | |
2761 | ||
2762 | if test "x$ac_ct_CC" = x; then | |
2763 | CC="" | |
2764 | else | |
2765 | case $cross_compiling:$ac_tool_warned in | |
2766 | yes:) | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2768 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2769 | ac_tool_warned=yes ;; | |
2770 | esac | |
2771 | CC=$ac_ct_CC | |
2772 | fi | |
2773 | else | |
2774 | CC="$ac_cv_prog_CC" | |
2775 | fi | |
2776 | ||
2777 | if test -z "$CC"; then | |
2778 | if test -n "$ac_tool_prefix"; then | |
2779 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2780 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2782 | $as_echo_n "checking for $ac_word... " >&6; } | |
2783 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2784 | $as_echo_n "(cached) " >&6 | |
2785 | else | |
2786 | if test -n "$CC"; then | |
2787 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2788 | else | |
2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2790 | for as_dir in $PATH | |
2791 | do | |
2792 | IFS=$as_save_IFS | |
2793 | test -z "$as_dir" && as_dir=. | |
2794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2796 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2798 | break 2 | |
2799 | fi | |
2800 | done | |
2801 | done | |
2802 | IFS=$as_save_IFS | |
2803 | ||
2804 | fi | |
2805 | fi | |
2806 | CC=$ac_cv_prog_CC | |
2807 | if test -n "$CC"; then | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2809 | $as_echo "$CC" >&6; } | |
2810 | else | |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2812 | $as_echo "no" >&6; } | |
2813 | fi | |
2814 | ||
2815 | ||
2816 | fi | |
2817 | fi | |
2818 | if test -z "$CC"; then | |
2819 | # Extract the first word of "cc", so it can be a program name with args. | |
2820 | set dummy cc; ac_word=$2 | |
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2822 | $as_echo_n "checking for $ac_word... " >&6; } | |
2823 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2824 | $as_echo_n "(cached) " >&6 | |
2825 | else | |
2826 | if test -n "$CC"; then | |
2827 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2828 | else | |
2829 | ac_prog_rejected=no | |
2830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2831 | for as_dir in $PATH | |
2832 | do | |
2833 | IFS=$as_save_IFS | |
2834 | test -z "$as_dir" && as_dir=. | |
2835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2837 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2838 | ac_prog_rejected=yes | |
2839 | continue | |
2840 | fi | |
2841 | ac_cv_prog_CC="cc" | |
2842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2843 | break 2 | |
2844 | fi | |
2845 | done | |
2846 | done | |
2847 | IFS=$as_save_IFS | |
2848 | ||
2849 | if test $ac_prog_rejected = yes; then | |
2850 | # We found a bogon in the path, so make sure we never use it. | |
2851 | set dummy $ac_cv_prog_CC | |
2852 | shift | |
2853 | if test $# != 0; then | |
2854 | # We chose a different compiler from the bogus one. | |
2855 | # However, it has the same basename, so the bogon will be chosen | |
2856 | # first if we set CC to just the basename; use the full file name. | |
2857 | shift | |
2858 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2859 | fi | |
2860 | fi | |
2861 | fi | |
2862 | fi | |
2863 | CC=$ac_cv_prog_CC | |
2864 | if test -n "$CC"; then | |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2866 | $as_echo "$CC" >&6; } | |
2867 | else | |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2869 | $as_echo "no" >&6; } | |
2870 | fi | |
2871 | ||
2872 | ||
2873 | fi | |
2874 | if test -z "$CC"; then | |
2875 | if test -n "$ac_tool_prefix"; then | |
2876 | for ac_prog in cl.exe | |
2877 | do | |
2878 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2879 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2881 | $as_echo_n "checking for $ac_word... " >&6; } | |
2882 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2883 | $as_echo_n "(cached) " >&6 | |
2884 | else | |
2885 | if test -n "$CC"; then | |
2886 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2887 | else | |
2888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2889 | for as_dir in $PATH | |
2890 | do | |
2891 | IFS=$as_save_IFS | |
2892 | test -z "$as_dir" && as_dir=. | |
2893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2895 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2897 | break 2 | |
2898 | fi | |
2899 | done | |
2900 | done | |
2901 | IFS=$as_save_IFS | |
2902 | ||
2903 | fi | |
2904 | fi | |
2905 | CC=$ac_cv_prog_CC | |
2906 | if test -n "$CC"; then | |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2908 | $as_echo "$CC" >&6; } | |
2909 | else | |
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2911 | $as_echo "no" >&6; } | |
2912 | fi | |
2913 | ||
2914 | ||
2915 | test -n "$CC" && break | |
2916 | done | |
2917 | fi | |
2918 | if test -z "$CC"; then | |
2919 | ac_ct_CC=$CC | |
2920 | for ac_prog in cl.exe | |
2921 | do | |
2922 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2923 | set dummy $ac_prog; ac_word=$2 | |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2925 | $as_echo_n "checking for $ac_word... " >&6; } | |
2926 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2927 | $as_echo_n "(cached) " >&6 | |
2928 | else | |
2929 | if test -n "$ac_ct_CC"; then | |
2930 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2931 | else | |
2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2933 | for as_dir in $PATH | |
2934 | do | |
2935 | IFS=$as_save_IFS | |
2936 | test -z "$as_dir" && as_dir=. | |
2937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2939 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2941 | break 2 | |
2942 | fi | |
2943 | done | |
2944 | done | |
2945 | IFS=$as_save_IFS | |
2946 | ||
2947 | fi | |
2948 | fi | |
2949 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2950 | if test -n "$ac_ct_CC"; then | |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2952 | $as_echo "$ac_ct_CC" >&6; } | |
2953 | else | |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2955 | $as_echo "no" >&6; } | |
2956 | fi | |
2957 | ||
2958 | ||
2959 | test -n "$ac_ct_CC" && break | |
2960 | done | |
2961 | ||
2962 | if test "x$ac_ct_CC" = x; then | |
2963 | CC="" | |
2964 | else | |
2965 | case $cross_compiling:$ac_tool_warned in | |
2966 | yes:) | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2968 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2969 | ac_tool_warned=yes ;; | |
2970 | esac | |
2971 | CC=$ac_ct_CC | |
2972 | fi | |
2973 | fi | |
2974 | ||
2975 | fi | |
2976 | ||
2977 | ||
2978 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2979 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2980 | as_fn_error "no acceptable C compiler found in \$PATH | |
2981 | See \`config.log' for more details." "$LINENO" 5; } | |
2982 | ||
2983 | # Provide some information about the compiler. | |
2984 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2985 | set X $ac_compile | |
2986 | ac_compiler=$2 | |
2987 | for ac_option in --version -v -V -qversion; do | |
2988 | { { ac_try="$ac_compiler $ac_option >&5" | |
2989 | case "(($ac_try" in | |
2990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2991 | *) ac_try_echo=$ac_try;; | |
2992 | esac | |
2993 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2994 | $as_echo "$ac_try_echo"; } >&5 | |
2995 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2996 | ac_status=$? | |
2997 | if test -s conftest.err; then | |
2998 | sed '10a\ | |
2999 | ... rest of stderr output deleted ... | |
3000 | 10q' conftest.err >conftest.er1 | |
3001 | cat conftest.er1 >&5 | |
35fa52c0 | 3002 | fi |
9c60689e | 3003 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3004 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3005 | test $ac_status = 0; } | |
3006 | done | |
3007 | ||
3008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3009 | /* end confdefs.h. */ | |
9c60689e | 3010 | |
35fa52c0 DWT |
3011 | int |
3012 | main () | |
3013 | { | |
35fa52c0 DWT |
3014 | |
3015 | ; | |
3016 | return 0; | |
3017 | } | |
3018 | _ACEOF | |
3019 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3020 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3021 | # Try to create an executable without -o first, disregard a.out. |
3022 | # It will help us diagnose broken compilers, and finding out an intuition | |
3023 | # of exeext. | |
9c60689e DWT |
3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3025 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3026 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3027 | ||
3028 | # The possible output files: | |
3029 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3030 | ||
3031 | ac_rmfiles= | |
3032 | for ac_file in $ac_files | |
3033 | do | |
3034 | case $ac_file in | |
3035 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3036 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3037 | esac | |
3038 | done | |
3039 | rm -f $ac_rmfiles | |
3040 | ||
3041 | if { { ac_try="$ac_link_default" | |
3042 | case "(($ac_try" in | |
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3044 | *) ac_try_echo=$ac_try;; | |
3045 | esac | |
3046 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3047 | $as_echo "$ac_try_echo"; } >&5 | |
3048 | (eval "$ac_link_default") 2>&5 | |
3049 | ac_status=$? | |
3050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3051 | test $ac_status = 0; }; then : | |
3052 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3053 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3054 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3055 | # so that the user can short-circuit this test for compilers unknown to | |
3056 | # Autoconf. | |
3057 | for ac_file in $ac_files '' | |
3058 | do | |
3059 | test -f "$ac_file" || continue | |
3060 | case $ac_file in | |
3061 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3062 | ;; | |
3063 | [ab].out ) | |
3064 | # We found the default executable, but exeext='' is most | |
3065 | # certainly right. | |
3066 | break;; | |
3067 | *.* ) | |
3068 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3069 | then :; else | |
3070 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3071 | fi | |
3072 | # We set ac_cv_exeext here because the later test for it is not | |
3073 | # safe: cross compilers may not add the suffix if given an `-o' | |
3074 | # argument, so we may need to know it at that point already. | |
3075 | # Even if this section looks crufty: it has the advantage of | |
3076 | # actually working. | |
3077 | break;; | |
3078 | * ) | |
3079 | break;; | |
3080 | esac | |
3081 | done | |
3082 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3083 | ||
3084 | else | |
3085 | ac_file='' | |
3086 | fi | |
35fa52c0 | 3087 | if test -z "$ac_file"; then : |
9c60689e DWT |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3089 | $as_echo "no" >&6; } | |
3090 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3091 | sed 's/^/| /' conftest.$ac_ext >&5 |
3092 | ||
3093 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3094 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3095 | { as_fn_set_status 77 | |
3096 | as_fn_error "C compiler cannot create executables | |
3097 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3098 | else |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3100 | $as_echo "yes" >&6; } | |
35fa52c0 | 3101 | fi |
9c60689e DWT |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3103 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3105 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3106 | ac_exeext=$ac_cv_exeext |
3107 | ||
9c60689e | 3108 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3109 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3111 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3112 | if { { ac_try="$ac_link" | |
3113 | case "(($ac_try" in | |
3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3115 | *) ac_try_echo=$ac_try;; | |
3116 | esac | |
3117 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3118 | $as_echo "$ac_try_echo"; } >&5 | |
3119 | (eval "$ac_link") 2>&5 | |
3120 | ac_status=$? | |
3121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3122 | test $ac_status = 0; }; then : | |
3123 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3124 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3125 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3126 | # `rm'. | |
3127 | for ac_file in conftest.exe conftest conftest.*; do | |
3128 | test -f "$ac_file" || continue | |
3129 | case $ac_file in | |
3130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3131 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3132 | break;; | |
3133 | * ) break;; | |
3134 | esac | |
3135 | done | |
3136 | else | |
3137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3139 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3140 | See \`config.log' for more details." "$LINENO" 5; } | |
3141 | fi | |
9c60689e | 3142 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3144 | $as_echo "$ac_cv_exeext" >&6; } | |
3145 | ||
3146 | rm -f conftest.$ac_ext | |
3147 | EXEEXT=$ac_cv_exeext | |
3148 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3150 | /* end confdefs.h. */ | |
3151 | #include <stdio.h> | |
3152 | int | |
3153 | main () | |
3154 | { | |
3155 | FILE *f = fopen ("conftest.out", "w"); | |
3156 | return ferror (f) || fclose (f) != 0; | |
3157 | ||
3158 | ; | |
3159 | return 0; | |
3160 | } | |
3161 | _ACEOF | |
3162 | ac_clean_files="$ac_clean_files conftest.out" | |
3163 | # Check that the compiler produces executables we can run. If not, either | |
3164 | # the compiler is broken, or we cross compile. | |
3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3166 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3167 | if test "$cross_compiling" != yes; then | |
3168 | { { ac_try="$ac_link" | |
3169 | case "(($ac_try" in | |
3170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3171 | *) ac_try_echo=$ac_try;; | |
3172 | esac | |
3173 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3174 | $as_echo "$ac_try_echo"; } >&5 | |
3175 | (eval "$ac_link") 2>&5 | |
3176 | ac_status=$? | |
3177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3178 | test $ac_status = 0; } | |
3179 | if { ac_try='./conftest$ac_cv_exeext' | |
3180 | { { case "(($ac_try" in | |
3181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3182 | *) ac_try_echo=$ac_try;; | |
3183 | esac | |
3184 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3185 | $as_echo "$ac_try_echo"; } >&5 | |
3186 | (eval "$ac_try") 2>&5 | |
3187 | ac_status=$? | |
3188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3189 | test $ac_status = 0; }; }; then | |
3190 | cross_compiling=no | |
3191 | else | |
3192 | if test "$cross_compiling" = maybe; then | |
3193 | cross_compiling=yes | |
3194 | else | |
3195 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3196 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3197 | as_fn_error "cannot run C compiled programs. | |
3198 | If you meant to cross compile, use \`--host'. | |
3199 | See \`config.log' for more details." "$LINENO" 5; } | |
3200 | fi | |
3201 | fi | |
3202 | fi | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3204 | $as_echo "$cross_compiling" >&6; } | |
3205 | ||
3206 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3207 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3209 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3210 | if test "${ac_cv_objext+set}" = set; then : | |
3211 | $as_echo_n "(cached) " >&6 | |
3212 | else | |
3213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3214 | /* end confdefs.h. */ | |
3215 | ||
3216 | int | |
3217 | main () | |
3218 | { | |
3219 | ||
3220 | ; | |
3221 | return 0; | |
3222 | } | |
3223 | _ACEOF | |
3224 | rm -f conftest.o conftest.obj | |
3225 | if { { ac_try="$ac_compile" | |
3226 | case "(($ac_try" in | |
3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3228 | *) ac_try_echo=$ac_try;; | |
3229 | esac | |
3230 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3231 | $as_echo "$ac_try_echo"; } >&5 | |
3232 | (eval "$ac_compile") 2>&5 | |
3233 | ac_status=$? | |
3234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3235 | test $ac_status = 0; }; then : | |
3236 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3237 | test -f "$ac_file" || continue; | |
3238 | case $ac_file in | |
3239 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3240 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3241 | break;; | |
3242 | esac | |
3243 | done | |
3244 | else | |
3245 | $as_echo "$as_me: failed program was:" >&5 | |
3246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3247 | ||
3248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3249 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3250 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3251 | See \`config.log' for more details." "$LINENO" 5; } | |
3252 | fi | |
3253 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3254 | fi | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3256 | $as_echo "$ac_cv_objext" >&6; } | |
3257 | OBJEXT=$ac_cv_objext | |
3258 | ac_objext=$OBJEXT | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3260 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3261 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3262 | $as_echo_n "(cached) " >&6 | |
3263 | else | |
3264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3265 | /* end confdefs.h. */ | |
3266 | ||
3267 | int | |
3268 | main () | |
3269 | { | |
3270 | #ifndef __GNUC__ | |
3271 | choke me | |
3272 | #endif | |
3273 | ||
3274 | ; | |
3275 | return 0; | |
3276 | } | |
3277 | _ACEOF | |
3278 | if ac_fn_c_try_compile "$LINENO"; then : | |
3279 | ac_compiler_gnu=yes | |
3280 | else | |
3281 | ac_compiler_gnu=no | |
3282 | fi | |
3283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3284 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3285 | ||
3286 | fi | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3288 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3289 | if test $ac_compiler_gnu = yes; then | |
3290 | GCC=yes | |
3291 | else | |
3292 | GCC= | |
3293 | fi | |
3294 | ac_test_CFLAGS=${CFLAGS+set} | |
3295 | ac_save_CFLAGS=$CFLAGS | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3297 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3298 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3299 | $as_echo_n "(cached) " >&6 | |
3300 | else | |
3301 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3302 | ac_c_werror_flag=yes | |
3303 | ac_cv_prog_cc_g=no | |
3304 | CFLAGS="-g" | |
3305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3306 | /* end confdefs.h. */ | |
3307 | ||
3308 | int | |
3309 | main () | |
3310 | { | |
3311 | ||
3312 | ; | |
3313 | return 0; | |
3314 | } | |
3315 | _ACEOF | |
3316 | if ac_fn_c_try_compile "$LINENO"; then : | |
3317 | ac_cv_prog_cc_g=yes | |
3318 | else | |
3319 | CFLAGS="" | |
3320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3321 | /* end confdefs.h. */ | |
3322 | ||
3323 | int | |
3324 | main () | |
3325 | { | |
3326 | ||
3327 | ; | |
3328 | return 0; | |
3329 | } | |
3330 | _ACEOF | |
3331 | if ac_fn_c_try_compile "$LINENO"; then : | |
3332 | ||
3333 | else | |
3334 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3335 | CFLAGS="-g" | |
3336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3337 | /* end confdefs.h. */ | |
3338 | ||
3339 | int | |
3340 | main () | |
3341 | { | |
3342 | ||
3343 | ; | |
3344 | return 0; | |
3345 | } | |
3346 | _ACEOF | |
3347 | if ac_fn_c_try_compile "$LINENO"; then : | |
3348 | ac_cv_prog_cc_g=yes | |
3349 | fi | |
3350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3351 | fi | |
3352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3353 | fi | |
3354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3355 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3356 | fi | |
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3358 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3359 | if test "$ac_test_CFLAGS" = set; then | |
3360 | CFLAGS=$ac_save_CFLAGS | |
3361 | elif test $ac_cv_prog_cc_g = yes; then | |
3362 | if test "$GCC" = yes; then | |
3363 | CFLAGS="-g -O2" | |
3364 | else | |
3365 | CFLAGS="-g" | |
3366 | fi | |
3367 | else | |
3368 | if test "$GCC" = yes; then | |
3369 | CFLAGS="-O2" | |
3370 | else | |
3371 | CFLAGS= | |
3372 | fi | |
3373 | fi | |
3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3375 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3376 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3377 | $as_echo_n "(cached) " >&6 | |
3378 | else | |
3379 | ac_cv_prog_cc_c89=no | |
3380 | ac_save_CC=$CC | |
3381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3382 | /* end confdefs.h. */ | |
3383 | #include <stdarg.h> | |
3384 | #include <stdio.h> | |
3385 | #include <sys/types.h> | |
3386 | #include <sys/stat.h> | |
3387 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3388 | struct buf { int x; }; | |
3389 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3390 | static char *e (p, i) | |
3391 | char **p; | |
3392 | int i; | |
3393 | { | |
3394 | return p[i]; | |
3395 | } | |
3396 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3397 | { | |
3398 | char *s; | |
3399 | va_list v; | |
3400 | va_start (v,p); | |
3401 | s = g (p, va_arg (v,int)); | |
3402 | va_end (v); | |
3403 | return s; | |
3404 | } | |
3405 | ||
3406 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3407 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3408 | These don't provoke an error unfortunately, instead are silently treated | |
3409 | as 'x'. The following induces an error, until -std is added to get | |
3410 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3411 | array size at least. It's necessary to write '\x00'==0 to get something | |
3412 | that's true only with -std. */ | |
3413 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3414 | ||
3415 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3416 | inside strings and character constants. */ | |
3417 | #define FOO(x) 'x' | |
3418 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3419 | ||
3420 | int test (int i, double x); | |
3421 | struct s1 {int (*f) (int a);}; | |
3422 | struct s2 {int (*f) (double a);}; | |
3423 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3424 | int argc; | |
3425 | char **argv; | |
3426 | int | |
3427 | main () | |
3428 | { | |
3429 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3430 | ; | |
3431 | return 0; | |
3432 | } | |
3433 | _ACEOF | |
3434 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3435 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3436 | do | |
3437 | CC="$ac_save_CC $ac_arg" | |
3438 | if ac_fn_c_try_compile "$LINENO"; then : | |
3439 | ac_cv_prog_cc_c89=$ac_arg | |
3440 | fi | |
3441 | rm -f core conftest.err conftest.$ac_objext | |
3442 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3443 | done | |
3444 | rm -f conftest.$ac_ext | |
3445 | CC=$ac_save_CC | |
3446 | ||
3447 | fi | |
3448 | # AC_CACHE_VAL | |
3449 | case "x$ac_cv_prog_cc_c89" in | |
3450 | x) | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3452 | $as_echo "none needed" >&6; } ;; | |
3453 | xno) | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3455 | $as_echo "unsupported" >&6; } ;; | |
3456 | *) | |
3457 | CC="$CC $ac_cv_prog_cc_c89" | |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3459 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3460 | esac | |
3461 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3462 | ||
3463 | fi | |
3464 | ||
3465 | ac_ext=c | |
3466 | ac_cpp='$CPP $CPPFLAGS' | |
3467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3470 | ||
9c60689e DWT |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3472 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3473 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3474 | $as_echo_n "(cached) " >&6 |
3475 | else | |
9c60689e DWT |
3476 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3477 | for ac_i in 1 2 3 4 5 6 7; do | |
3478 | ac_script="$ac_script$as_nl$ac_script" | |
3479 | done | |
3480 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3481 | { ac_script=; unset ac_script;} | |
3482 | if test -z "$SED"; then | |
3483 | ac_path_SED_found=false | |
3484 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3486 | for as_dir in $PATH |
3487 | do | |
3488 | IFS=$as_save_IFS | |
3489 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3490 | for ac_prog in sed gsed; do |
35fa52c0 | 3491 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3492 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3493 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3494 | # Check for GNU ac_path_SED and select it if it is found. | |
3495 | # Check for GNU $ac_path_SED | |
3496 | case `"$ac_path_SED" --version 2>&1` in | |
3497 | *GNU*) | |
3498 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3499 | *) | |
3500 | ac_count=0 | |
3501 | $as_echo_n 0123456789 >"conftest.in" | |
3502 | while : | |
3503 | do | |
3504 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3505 | mv "conftest.tmp" "conftest.in" | |
3506 | cp "conftest.in" "conftest.nl" | |
3507 | $as_echo '' >> "conftest.nl" | |
3508 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3509 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3510 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3511 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3512 | # Best one so far, save it but keep looking for a better one | |
3513 | ac_cv_path_SED="$ac_path_SED" | |
3514 | ac_path_SED_max=$ac_count | |
3515 | fi | |
3516 | # 10*(2^10) chars as input seems more than enough | |
3517 | test $ac_count -gt 10 && break | |
35fa52c0 | 3518 | done |
9c60689e DWT |
3519 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3520 | esac | |
35fa52c0 | 3521 | |
9c60689e DWT |
3522 | $ac_path_SED_found && break 3 |
3523 | done | |
3524 | done | |
3525 | done | |
3526 | IFS=$as_save_IFS | |
3527 | if test -z "$ac_cv_path_SED"; then | |
3528 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3529 | fi | |
35fa52c0 | 3530 | else |
9c60689e | 3531 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3532 | fi |
3533 | ||
9c60689e DWT |
3534 | fi |
3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3536 | $as_echo "$ac_cv_path_SED" >&6; } | |
3537 | SED="$ac_cv_path_SED" | |
3538 | rm -f conftest.sed | |
35fa52c0 | 3539 | |
9c60689e DWT |
3540 | test -z "$SED" && SED=sed |
3541 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3542 | |
35fa52c0 | 3543 | |
35fa52c0 | 3544 | |
35fa52c0 | 3545 | |
35fa52c0 | 3546 | |
35fa52c0 DWT |
3547 | |
3548 | ||
35fa52c0 | 3549 | |
35fa52c0 | 3550 | |
35fa52c0 | 3551 | |
35fa52c0 | 3552 | |
9c60689e DWT |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3554 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3555 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3556 | $as_echo_n "(cached) " >&6 | |
3557 | else | |
3558 | if test -z "$GREP"; then | |
3559 | ac_path_GREP_found=false | |
3560 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3562 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3563 | do | |
3564 | IFS=$as_save_IFS | |
3565 | test -z "$as_dir" && as_dir=. | |
3566 | for ac_prog in grep ggrep; do | |
3567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3568 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3569 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3570 | # Check for GNU ac_path_GREP and select it if it is found. | |
3571 | # Check for GNU $ac_path_GREP | |
3572 | case `"$ac_path_GREP" --version 2>&1` in | |
3573 | *GNU*) | |
3574 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3575 | *) | |
3576 | ac_count=0 | |
3577 | $as_echo_n 0123456789 >"conftest.in" | |
3578 | while : | |
3579 | do | |
3580 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3581 | mv "conftest.tmp" "conftest.in" | |
3582 | cp "conftest.in" "conftest.nl" | |
3583 | $as_echo 'GREP' >> "conftest.nl" | |
3584 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3585 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3586 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3587 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3588 | # Best one so far, save it but keep looking for a better one | |
3589 | ac_cv_path_GREP="$ac_path_GREP" | |
3590 | ac_path_GREP_max=$ac_count | |
3591 | fi | |
3592 | # 10*(2^10) chars as input seems more than enough | |
3593 | test $ac_count -gt 10 && break | |
3594 | done | |
3595 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3596 | esac | |
6b66678a | 3597 | |
9c60689e DWT |
3598 | $ac_path_GREP_found && break 3 |
3599 | done | |
3600 | done | |
3601 | done | |
3602 | IFS=$as_save_IFS | |
3603 | if test -z "$ac_cv_path_GREP"; then | |
3604 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3605 | fi | |
3606 | else | |
3607 | ac_cv_path_GREP=$GREP | |
3608 | fi | |
6b66678a | 3609 | |
9c60689e DWT |
3610 | fi |
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3612 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3613 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3614 | |
3615 | ||
9c60689e DWT |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3617 | $as_echo_n "checking for egrep... " >&6; } | |
3618 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3619 | $as_echo_n "(cached) " >&6 |
3620 | else | |
9c60689e DWT |
3621 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3622 | then ac_cv_path_EGREP="$GREP -E" | |
3623 | else | |
3624 | if test -z "$EGREP"; then | |
3625 | ac_path_EGREP_found=false | |
3626 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3628 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3629 | do | |
3630 | IFS=$as_save_IFS | |
3631 | test -z "$as_dir" && as_dir=. | |
3632 | for ac_prog in egrep; do | |
3633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3634 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3635 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3636 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3637 | # Check for GNU $ac_path_EGREP | |
3638 | case `"$ac_path_EGREP" --version 2>&1` in | |
3639 | *GNU*) | |
3640 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3641 | *) | |
3642 | ac_count=0 | |
3643 | $as_echo_n 0123456789 >"conftest.in" | |
3644 | while : | |
3645 | do | |
3646 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3647 | mv "conftest.tmp" "conftest.in" | |
3648 | cp "conftest.in" "conftest.nl" | |
3649 | $as_echo 'EGREP' >> "conftest.nl" | |
3650 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3651 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3652 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3653 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3654 | # Best one so far, save it but keep looking for a better one | |
3655 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3656 | ac_path_EGREP_max=$ac_count | |
3657 | fi | |
3658 | # 10*(2^10) chars as input seems more than enough | |
3659 | test $ac_count -gt 10 && break | |
3660 | done | |
3661 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3662 | esac | |
3663 | ||
3664 | $ac_path_EGREP_found && break 3 | |
3665 | done | |
3666 | done | |
3667 | done | |
3668 | IFS=$as_save_IFS | |
3669 | if test -z "$ac_cv_path_EGREP"; then | |
3670 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3671 | fi | |
3672 | else | |
3673 | ac_cv_path_EGREP=$EGREP | |
3674 | fi | |
6b66678a | 3675 | |
9c60689e DWT |
3676 | fi |
3677 | fi | |
3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3679 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3680 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3681 | |
6b66678a | 3682 | |
9c60689e DWT |
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3684 | $as_echo_n "checking for fgrep... " >&6; } | |
3685 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3686 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3687 | else |
9c60689e DWT |
3688 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3689 | then ac_cv_path_FGREP="$GREP -F" | |
3690 | else | |
3691 | if test -z "$FGREP"; then | |
3692 | ac_path_FGREP_found=false | |
3693 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3695 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3696 | do | |
3697 | IFS=$as_save_IFS | |
3698 | test -z "$as_dir" && as_dir=. | |
3699 | for ac_prog in fgrep; do | |
3700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3701 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3702 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3703 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3704 | # Check for GNU $ac_path_FGREP | |
3705 | case `"$ac_path_FGREP" --version 2>&1` in | |
3706 | *GNU*) | |
3707 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3708 | *) | |
3709 | ac_count=0 | |
3710 | $as_echo_n 0123456789 >"conftest.in" | |
3711 | while : | |
3712 | do | |
3713 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3714 | mv "conftest.tmp" "conftest.in" | |
3715 | cp "conftest.in" "conftest.nl" | |
3716 | $as_echo 'FGREP' >> "conftest.nl" | |
3717 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3718 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3719 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3720 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3721 | # Best one so far, save it but keep looking for a better one | |
3722 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3723 | ac_path_FGREP_max=$ac_count | |
3724 | fi | |
3725 | # 10*(2^10) chars as input seems more than enough | |
3726 | test $ac_count -gt 10 && break | |
3727 | done | |
3728 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3729 | esac | |
6b66678a | 3730 | |
9c60689e DWT |
3731 | $ac_path_FGREP_found && break 3 |
3732 | done | |
3733 | done | |
3734 | done | |
3735 | IFS=$as_save_IFS | |
3736 | if test -z "$ac_cv_path_FGREP"; then | |
3737 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3738 | fi | |
3739 | else | |
3740 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3741 | fi |
3742 | ||
9c60689e | 3743 | fi |
6b66678a | 3744 | fi |
9c60689e DWT |
3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3746 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3747 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3748 | |
35fa52c0 | 3749 | |
9c60689e | 3750 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3751 | |
309b0535 | 3752 | |
35fa52c0 | 3753 | |
6b66678a | 3754 | |
6b66678a DWT |
3755 | |
3756 | ||
6b66678a | 3757 | |
6b66678a | 3758 | |
35fa52c0 | 3759 | |
35fa52c0 | 3760 | |
309b0535 | 3761 | |
309b0535 | 3762 | |
309b0535 | 3763 | |
309b0535 | 3764 | |
309b0535 | 3765 | |
309b0535 | 3766 | |
309b0535 | 3767 | |
309b0535 | 3768 | |
309b0535 | 3769 | |
9c60689e DWT |
3770 | # Check whether --with-gnu-ld was given. |
3771 | if test "${with_gnu_ld+set}" = set; then : | |
3772 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3773 | else |
9c60689e DWT |
3774 | with_gnu_ld=no |
3775 | fi | |
309b0535 | 3776 | |
9c60689e DWT |
3777 | ac_prog=ld |
3778 | if test "$GCC" = yes; then | |
3779 | # Check if gcc -print-prog-name=ld gives a path. | |
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3781 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3782 | case $host in | |
3783 | *-*-mingw*) | |
3784 | # gcc leaves a trailing carriage return which upsets mingw | |
3785 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3786 | *) | |
3787 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3788 | esac | |
3789 | case $ac_prog in | |
3790 | # Accept absolute paths. | |
3791 | [\\/]* | ?:[\\/]*) | |
3792 | re_direlt='/[^/][^/]*/\.\./' | |
3793 | # Canonicalize the pathname of ld | |
3794 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3795 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3796 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3797 | done |
9c60689e DWT |
3798 | test -z "$LD" && LD="$ac_prog" |
3799 | ;; | |
3800 | "") | |
3801 | # If it fails, then pretend we aren't using GCC. | |
3802 | ac_prog=ld | |
3803 | ;; | |
3804 | *) | |
3805 | # If it is relative, then search for the first ld in PATH. | |
3806 | with_gnu_ld=unknown | |
3807 | ;; | |
3808 | esac | |
3809 | elif test "$with_gnu_ld" = yes; then | |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3811 | $as_echo_n "checking for GNU ld... " >&6; } | |
3812 | else | |
3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3814 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3815 | fi | |
3816 | if test "${lt_cv_path_LD+set}" = set; then : | |
3817 | $as_echo_n "(cached) " >&6 | |
3818 | else | |
3819 | if test -z "$LD"; then | |
3820 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3821 | for ac_dir in $PATH; do | |
3822 | IFS="$lt_save_ifs" | |
3823 | test -z "$ac_dir" && ac_dir=. | |
3824 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3825 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3826 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3827 | # but apparently some variants of GNU ld only accept -v. | |
3828 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3829 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3830 | *GNU* | *'with BFD'*) | |
3831 | test "$with_gnu_ld" != no && break | |
3832 | ;; | |
3833 | *) | |
3834 | test "$with_gnu_ld" != yes && break | |
3835 | ;; | |
309b0535 | 3836 | esac |
309b0535 | 3837 | fi |
9c60689e DWT |
3838 | done |
3839 | IFS="$lt_save_ifs" | |
3840 | else | |
3841 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3842 | fi | |
3843 | fi | |
309b0535 | 3844 | |
9c60689e DWT |
3845 | LD="$lt_cv_path_LD" |
3846 | if test -n "$LD"; then | |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3848 | $as_echo "$LD" >&6; } | |
3849 | else | |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3851 | $as_echo "no" >&6; } | |
3852 | fi | |
3853 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3855 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3856 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3857 | $as_echo_n "(cached) " >&6 | |
3858 | else | |
3859 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3860 | case `$LD -v 2>&1 </dev/null` in | |
3861 | *GNU* | *'with BFD'*) | |
3862 | lt_cv_prog_gnu_ld=yes | |
3863 | ;; | |
3864 | *) | |
3865 | lt_cv_prog_gnu_ld=no | |
3866 | ;; | |
3867 | esac | |
309b0535 | 3868 | fi |
9c60689e DWT |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3870 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3871 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3872 | |
3873 | ||
309b0535 | 3874 | |
309b0535 DWT |
3875 | |
3876 | ||
309b0535 | 3877 | |
309b0535 | 3878 | |
9c60689e DWT |
3879 | |
3880 | ||
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3882 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3883 | if test "${lt_cv_path_NM+set}" = set; then : | |
3884 | $as_echo_n "(cached) " >&6 | |
3885 | else | |
3886 | if test -n "$NM"; then | |
3887 | # Let the user override the test. | |
3888 | lt_cv_path_NM="$NM" | |
3889 | else | |
3890 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3891 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3892 | lt_nm_to_check="$lt_nm_to_check nm" | |
3893 | fi | |
3894 | for lt_tmp_nm in $lt_nm_to_check; do | |
3895 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3896 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3897 | IFS="$lt_save_ifs" | |
3898 | test -z "$ac_dir" && ac_dir=. | |
3899 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3900 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3901 | # Check to see if the nm accepts a BSD-compat flag. | |
3902 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3903 | # nm: unknown option "B" ignored | |
3904 | # Tru64's nm complains that /dev/null is an invalid object file | |
3905 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3906 | */dev/null* | *'Invalid file or object type'*) | |
3907 | lt_cv_path_NM="$tmp_nm -B" | |
3908 | break | |
3909 | ;; | |
3910 | *) | |
3911 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3912 | */dev/null*) | |
3913 | lt_cv_path_NM="$tmp_nm -p" | |
3914 | break | |
3915 | ;; | |
3916 | *) | |
3917 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3918 | continue # so that we can try to find one that supports BSD flags | |
3919 | ;; | |
3920 | esac | |
3921 | ;; | |
3922 | esac | |
309b0535 DWT |
3923 | fi |
3924 | done | |
9c60689e | 3925 | IFS="$lt_save_ifs" |
309b0535 | 3926 | done |
9c60689e DWT |
3927 | : ${lt_cv_path_NM=no} |
3928 | fi | |
3929 | fi | |
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3931 | $as_echo "$lt_cv_path_NM" >&6; } | |
3932 | if test "$lt_cv_path_NM" != "no"; then | |
3933 | NM="$lt_cv_path_NM" | |
3934 | else | |
3935 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3936 | if test -n "$ac_tool_prefix"; then | |
3937 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3938 | do |
3939 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3940 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3942 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3943 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3944 | $as_echo_n "(cached) " >&6 |
3945 | else | |
9c60689e DWT |
3946 | if test -n "$DUMPBIN"; then |
3947 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3948 | else |
3949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3950 | for as_dir in $PATH | |
3951 | do | |
3952 | IFS=$as_save_IFS | |
3953 | test -z "$as_dir" && as_dir=. | |
3954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3956 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
3957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3958 | break 2 | |
3959 | fi | |
3960 | done | |
3961 | done | |
3962 | IFS=$as_save_IFS | |
3963 | ||
3964 | fi | |
3965 | fi | |
9c60689e DWT |
3966 | DUMPBIN=$ac_cv_prog_DUMPBIN |
3967 | if test -n "$DUMPBIN"; then | |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
3969 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
3970 | else |
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3972 | $as_echo "no" >&6; } | |
3973 | fi | |
3974 | ||
3975 | ||
9c60689e | 3976 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
3977 | done |
3978 | fi | |
9c60689e DWT |
3979 | if test -z "$DUMPBIN"; then |
3980 | ac_ct_DUMPBIN=$DUMPBIN | |
3981 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3982 | do |
3983 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3984 | set dummy $ac_prog; ac_word=$2 | |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3986 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3987 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3988 | $as_echo_n "(cached) " >&6 |
3989 | else | |
9c60689e DWT |
3990 | if test -n "$ac_ct_DUMPBIN"; then |
3991 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3992 | else |
3993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3994 | for as_dir in $PATH | |
3995 | do | |
3996 | IFS=$as_save_IFS | |
3997 | test -z "$as_dir" && as_dir=. | |
3998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 4000 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
4001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4002 | break 2 | |
4003 | fi | |
4004 | done | |
4005 | done | |
4006 | IFS=$as_save_IFS | |
4007 | ||
4008 | fi | |
4009 | fi | |
9c60689e DWT |
4010 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4011 | if test -n "$ac_ct_DUMPBIN"; then | |
4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4013 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4014 | else |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4016 | $as_echo "no" >&6; } | |
4017 | fi | |
4018 | ||
4019 | ||
9c60689e | 4020 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4021 | done |
4022 | ||
9c60689e DWT |
4023 | if test "x$ac_ct_DUMPBIN" = x; then |
4024 | DUMPBIN=":" | |
35fa52c0 DWT |
4025 | else |
4026 | case $cross_compiling:$ac_tool_warned in | |
4027 | yes:) | |
4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4029 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4030 | ac_tool_warned=yes ;; | |
4031 | esac | |
9c60689e | 4032 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4033 | fi |
4034 | fi | |
4035 | ||
9c60689e DWT |
4036 | |
4037 | if test "$DUMPBIN" != ":"; then | |
4038 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4039 | fi |
4040 | fi | |
9c60689e | 4041 | test -z "$NM" && NM=nm |
35fa52c0 | 4042 | |
35fa52c0 | 4043 | |
35fa52c0 | 4044 | |
35fa52c0 | 4045 | |
9c60689e DWT |
4046 | |
4047 | ||
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4049 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4050 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4051 | $as_echo_n "(cached) " >&6 | |
4052 | else | |
4053 | lt_cv_nm_interface="BSD nm" | |
4054 | echo "int some_variable = 0;" > conftest.$ac_ext | |
794e88e7 | 4055 | (eval echo "\"\$as_me:4055: $ac_compile\"" >&5) |
9c60689e DWT |
4056 | (eval "$ac_compile" 2>conftest.err) |
4057 | cat conftest.err >&5 | |
794e88e7 | 4058 | (eval echo "\"\$as_me:4058: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
9c60689e DWT |
4059 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4060 | cat conftest.err >&5 | |
794e88e7 | 4061 | (eval echo "\"\$as_me:4061: output\"" >&5) |
9c60689e DWT |
4062 | cat conftest.out >&5 |
4063 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4064 | lt_cv_nm_interface="MS dumpbin" | |
4065 | fi | |
4066 | rm -f conftest* | |
35fa52c0 | 4067 | fi |
9c60689e DWT |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4069 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4070 | ||
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4072 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4073 | LN_S=$as_ln_s | |
4074 | if test "$LN_S" = "ln -s"; then | |
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4076 | $as_echo "yes" >&6; } | |
35fa52c0 | 4077 | else |
9c60689e DWT |
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4079 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4080 | fi |
9c60689e DWT |
4081 | |
4082 | # find the maximum length of command line arguments | |
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4084 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4085 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4086 | $as_echo_n "(cached) " >&6 |
4087 | else | |
9c60689e DWT |
4088 | i=0 |
4089 | teststring="ABCD" | |
4090 | ||
4091 | case $build_os in | |
4092 | msdosdjgpp*) | |
4093 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4094 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4095 | # during glob expansion). Even if it were fixed, the result of this | |
4096 | # check would be larger than it should be. | |
4097 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4098 | ;; | |
35fa52c0 | 4099 | |
9c60689e DWT |
4100 | gnu*) |
4101 | # Under GNU Hurd, this test is not required because there is | |
4102 | # no limit to the length of command line arguments. | |
4103 | # Libtool will interpret -1 as no limit whatsoever | |
4104 | lt_cv_sys_max_cmd_len=-1; | |
4105 | ;; | |
35fa52c0 | 4106 | |
9c60689e DWT |
4107 | cygwin* | mingw* | cegcc*) |
4108 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4109 | # about 5 minutes as the teststring grows exponentially. | |
4110 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4111 | # you end up with a "frozen" computer, even though with patience | |
4112 | # the test eventually succeeds (with a max line length of 256k). | |
4113 | # Instead, let's just punt: use the minimum linelength reported by | |
4114 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4115 | lt_cv_sys_max_cmd_len=8192; | |
4116 | ;; | |
35fa52c0 | 4117 | |
9c60689e DWT |
4118 | amigaos*) |
4119 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4120 | # So we just punt and use a minimum line length of 8192. | |
4121 | lt_cv_sys_max_cmd_len=8192; | |
4122 | ;; | |
35fa52c0 | 4123 | |
9c60689e DWT |
4124 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4125 | # This has been around since 386BSD, at least. Likely further. | |
4126 | if test -x /sbin/sysctl; then | |
4127 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4128 | elif test -x /usr/sbin/sysctl; then | |
4129 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4130 | else | |
4131 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4132 | fi | |
4133 | # And add a safety zone | |
4134 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4135 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4136 | ;; | |
35fa52c0 | 4137 | |
9c60689e DWT |
4138 | interix*) |
4139 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4140 | lt_cv_sys_max_cmd_len=196608 | |
4141 | ;; | |
35fa52c0 | 4142 | |
9c60689e DWT |
4143 | osf*) |
4144 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4145 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4146 | # nice to cause kernel panics so lets avoid the loop below. | |
4147 | # First set a reasonable default. | |
4148 | lt_cv_sys_max_cmd_len=16384 | |
4149 | # | |
4150 | if test -x /sbin/sysconfig; then | |
4151 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4152 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4153 | esac | |
4154 | fi | |
4155 | ;; | |
4156 | sco3.2v5*) | |
4157 | lt_cv_sys_max_cmd_len=102400 | |
4158 | ;; | |
4159 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4160 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4161 | if test -n "$kargmax"; then | |
4162 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4163 | else | |
4164 | lt_cv_sys_max_cmd_len=32768 | |
4165 | fi | |
4166 | ;; | |
4167 | *) | |
4168 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4169 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4170 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4171 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4172 | else | |
4173 | # Make teststring a little bigger before we do anything with it. | |
4174 | # a 1K string should be a reasonable start. | |
4175 | for i in 1 2 3 4 5 6 7 8 ; do | |
4176 | teststring=$teststring$teststring | |
4177 | done | |
4178 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4179 | # If test is not a shell built-in, we'll probably end up computing a | |
4180 | # maximum length that is only half of the actual maximum length, but | |
4181 | # we can't tell. | |
4182 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4183 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4184 | test $i != 17 # 1/2 MB should be enough | |
4185 | do | |
4186 | i=`expr $i + 1` | |
4187 | teststring=$teststring$teststring | |
4188 | done | |
4189 | # Only check the string length outside the loop. | |
4190 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4191 | teststring= | |
4192 | # Add a significant safety factor because C++ compilers can tack on | |
4193 | # massive amounts of additional arguments before passing them to the | |
4194 | # linker. It appears as though 1/2 is a usable value. | |
4195 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4196 | fi | |
4197 | ;; | |
4198 | esac | |
35fa52c0 | 4199 | |
35fa52c0 | 4200 | fi |
9c60689e DWT |
4201 | |
4202 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4204 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4205 | else |
9c60689e DWT |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4207 | $as_echo "none" >&6; } | |
35fa52c0 | 4208 | fi |
9c60689e | 4209 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4210 | |
9c60689e DWT |
4211 | |
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | : ${CP="cp -f"} | |
4217 | : ${MV="mv -f"} | |
4218 | : ${RM="rm -f"} | |
4219 | ||
4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4221 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4222 | # Try some XSI features | |
4223 | xsi_shell=no | |
4224 | ( _lt_dummy="a/b/c" | |
4225 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4226 | = c,a/b,, \ | |
4227 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4228 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4229 | && xsi_shell=yes | |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4231 | $as_echo "$xsi_shell" >&6; } | |
4232 | ||
4233 | ||
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4235 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4236 | lt_shell_append=no | |
4237 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4238 | >/dev/null 2>&1 \ | |
4239 | && lt_shell_append=yes | |
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4241 | $as_echo "$lt_shell_append" >&6; } | |
4242 | ||
4243 | ||
4244 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4245 | lt_unset=unset | |
35fa52c0 | 4246 | else |
9c60689e DWT |
4247 | lt_unset=false |
4248 | fi | |
4249 | ||
4250 | ||
4251 | ||
4252 | ||
4253 | ||
4254 | # test EBCDIC or ASCII | |
4255 | case `echo X|tr X '\101'` in | |
4256 | A) # ASCII based system | |
4257 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4258 | lt_SP2NL='tr \040 \012' | |
4259 | lt_NL2SP='tr \015\012 \040\040' | |
4260 | ;; | |
4261 | *) # EBCDIC based system | |
4262 | lt_SP2NL='tr \100 \n' | |
4263 | lt_NL2SP='tr \r\n \100\100' | |
4264 | ;; | |
35fa52c0 DWT |
4265 | esac |
4266 | ||
35fa52c0 | 4267 | |
35fa52c0 | 4268 | |
35fa52c0 | 4269 | |
35fa52c0 | 4270 | |
35fa52c0 | 4271 | |
35fa52c0 | 4272 | |
35fa52c0 | 4273 | |
9c60689e DWT |
4274 | |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4276 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4277 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4278 | $as_echo_n "(cached) " >&6 |
4279 | else | |
9c60689e | 4280 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4281 | fi |
9c60689e DWT |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4283 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4284 | reload_flag=$lt_cv_ld_reload_flag | |
4285 | case $reload_flag in | |
4286 | "" | " "*) ;; | |
4287 | *) reload_flag=" $reload_flag" ;; | |
4288 | esac | |
4289 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4290 | case $host_os in | |
4291 | darwin*) | |
4292 | if test "$GCC" = yes; then | |
4293 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4294 | else | |
4295 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4296 | fi | |
4297 | ;; | |
35fa52c0 | 4298 | esac |
35fa52c0 DWT |
4299 | |
4300 | ||
9c60689e DWT |
4301 | |
4302 | ||
4303 | ||
4304 | ||
4305 | ||
4306 | ||
4307 | ||
4308 | if test -n "$ac_tool_prefix"; then | |
4309 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4310 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4312 | $as_echo_n "checking for $ac_word... " >&6; } | |
4313 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4314 | $as_echo_n "(cached) " >&6 |
4315 | else | |
9c60689e DWT |
4316 | if test -n "$OBJDUMP"; then |
4317 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4318 | else |
9c60689e DWT |
4319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4320 | for as_dir in $PATH | |
4321 | do | |
4322 | IFS=$as_save_IFS | |
4323 | test -z "$as_dir" && as_dir=. | |
4324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4326 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4328 | break 2 | |
35fa52c0 | 4329 | fi |
9c60689e DWT |
4330 | done |
4331 | done | |
4332 | IFS=$as_save_IFS | |
35fa52c0 | 4333 | |
35fa52c0 | 4334 | fi |
35fa52c0 | 4335 | fi |
9c60689e DWT |
4336 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4337 | if test -n "$OBJDUMP"; then | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4339 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4340 | else |
9c60689e DWT |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4342 | $as_echo "no" >&6; } | |
35fa52c0 | 4343 | fi |
9c60689e DWT |
4344 | |
4345 | ||
4346 | fi | |
4347 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4348 | ac_ct_OBJDUMP=$OBJDUMP | |
4349 | # Extract the first word of "objdump", so it can be a program name with args. | |
4350 | set dummy objdump; ac_word=$2 | |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4352 | $as_echo_n "checking for $ac_word... " >&6; } | |
4353 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4354 | $as_echo_n "(cached) " >&6 |
4355 | else | |
9c60689e DWT |
4356 | if test -n "$ac_ct_OBJDUMP"; then |
4357 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4358 | else |
9c60689e DWT |
4359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4360 | for as_dir in $PATH | |
4361 | do | |
4362 | IFS=$as_save_IFS | |
4363 | test -z "$as_dir" && as_dir=. | |
4364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4366 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4368 | break 2 | |
4369 | fi | |
4370 | done | |
4371 | done | |
4372 | IFS=$as_save_IFS | |
4373 | ||
35fa52c0 DWT |
4374 | fi |
4375 | fi | |
9c60689e DWT |
4376 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4377 | if test -n "$ac_ct_OBJDUMP"; then | |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4379 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4380 | else |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4382 | $as_echo "no" >&6; } | |
4383 | fi | |
9c60689e DWT |
4384 | |
4385 | if test "x$ac_ct_OBJDUMP" = x; then | |
4386 | OBJDUMP="false" | |
4387 | else | |
4388 | case $cross_compiling:$ac_tool_warned in | |
4389 | yes:) | |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4391 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4392 | ac_tool_warned=yes ;; | |
35fa52c0 | 4393 | esac |
9c60689e DWT |
4394 | OBJDUMP=$ac_ct_OBJDUMP |
4395 | fi | |
4396 | else | |
4397 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4398 | fi |
35fa52c0 | 4399 | |
9c60689e | 4400 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4401 | |
4402 | ||
35fa52c0 | 4403 | |
35fa52c0 | 4404 | |
35fa52c0 DWT |
4405 | |
4406 | ||
4407 | ||
35fa52c0 DWT |
4408 | |
4409 | ||
9c60689e DWT |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4411 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4412 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4413 | $as_echo_n "(cached) " >&6 | |
4414 | else | |
4415 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4416 | lt_cv_file_magic_test_file= | |
4417 | lt_cv_deplibs_check_method='unknown' | |
4418 | # Need to set the preceding variable on all platforms that support | |
4419 | # interlibrary dependencies. | |
4420 | # 'none' -- dependencies not supported. | |
4421 | # `unknown' -- same as none, but documents that we really don't know. | |
4422 | # 'pass_all' -- all dependencies passed with no checks. | |
4423 | # 'test_compile' -- check by making test program. | |
4424 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4425 | # which responds to the $file_magic_cmd with a given extended regex. | |
4426 | # If you have `file' or equivalent on your system and you're not sure | |
4427 | # whether `pass_all' will *always* work, you probably want this one. | |
4428 | ||
4429 | case $host_os in | |
4430 | aix[4-9]*) | |
4431 | lt_cv_deplibs_check_method=pass_all | |
4432 | ;; | |
35fa52c0 | 4433 | |
9c60689e DWT |
4434 | beos*) |
4435 | lt_cv_deplibs_check_method=pass_all | |
4436 | ;; | |
35fa52c0 | 4437 | |
9c60689e DWT |
4438 | bsdi[45]*) |
4439 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4440 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4441 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4442 | ;; | |
35fa52c0 | 4443 | |
9c60689e DWT |
4444 | cygwin*) |
4445 | # func_win32_libid is a shell function defined in ltmain.sh | |
4446 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4447 | lt_cv_file_magic_cmd='func_win32_libid' | |
4448 | ;; | |
35fa52c0 | 4449 | |
9c60689e DWT |
4450 | mingw* | pw32*) |
4451 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4452 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4453 | # unless we find 'file', for example because we are cross-compiling. | |
4454 | if ( file / ) >/dev/null 2>&1; then | |
4455 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4456 | lt_cv_file_magic_cmd='func_win32_libid' | |
4457 | else | |
4458 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4459 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4460 | fi | |
4461 | ;; | |
35fa52c0 | 4462 | |
9c60689e DWT |
4463 | cegcc) |
4464 | # use the weaker test based on 'objdump'. See mingw*. | |
4465 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4466 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4467 | ;; | |
35fa52c0 | 4468 | |
9c60689e DWT |
4469 | darwin* | rhapsody*) |
4470 | lt_cv_deplibs_check_method=pass_all | |
4471 | ;; | |
35fa52c0 | 4472 | |
9c60689e DWT |
4473 | freebsd* | dragonfly*) |
4474 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4475 | case $host_cpu in | |
4476 | i*86 ) | |
4477 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4478 | # Let's accept both of them until this is cleared up. | |
4479 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4480 | lt_cv_file_magic_cmd=/usr/bin/file | |
4481 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4482 | ;; | |
4483 | esac | |
4484 | else | |
4485 | lt_cv_deplibs_check_method=pass_all | |
4486 | fi | |
4487 | ;; | |
35fa52c0 | 4488 | |
9c60689e DWT |
4489 | gnu*) |
4490 | lt_cv_deplibs_check_method=pass_all | |
4491 | ;; | |
35fa52c0 | 4492 | |
9c60689e DWT |
4493 | hpux10.20* | hpux11*) |
4494 | lt_cv_file_magic_cmd=/usr/bin/file | |
4495 | case $host_cpu in | |
4496 | ia64*) | |
4497 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4498 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4499 | ;; | |
4500 | hppa*64*) | |
4501 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4502 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4503 | ;; | |
4504 | *) | |
4505 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4506 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4507 | ;; | |
4508 | esac | |
4509 | ;; | |
35fa52c0 | 4510 | |
9c60689e DWT |
4511 | interix[3-9]*) |
4512 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4513 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4514 | ;; | |
35fa52c0 | 4515 | |
9c60689e DWT |
4516 | irix5* | irix6* | nonstopux*) |
4517 | case $LD in | |
4518 | *-32|*"-32 ") libmagic=32-bit;; | |
4519 | *-n32|*"-n32 ") libmagic=N32;; | |
4520 | *-64|*"-64 ") libmagic=64-bit;; | |
4521 | *) libmagic=never-match;; | |
4522 | esac | |
4523 | lt_cv_deplibs_check_method=pass_all | |
4524 | ;; | |
35fa52c0 | 4525 | |
9c60689e | 4526 | # This must be Linux ELF. |
1504c9b8 | 4527 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
4528 | lt_cv_deplibs_check_method=pass_all |
4529 | ;; | |
35fa52c0 | 4530 | |
1504c9b8 | 4531 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
4532 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4533 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4534 | else | |
4535 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4536 | fi | |
4537 | ;; | |
35fa52c0 | 4538 | |
9c60689e DWT |
4539 | newos6*) |
4540 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4541 | lt_cv_file_magic_cmd=/usr/bin/file | |
4542 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4543 | ;; | |
35fa52c0 | 4544 | |
9c60689e DWT |
4545 | *nto* | *qnx*) |
4546 | lt_cv_deplibs_check_method=pass_all | |
4547 | ;; | |
35fa52c0 | 4548 | |
9c60689e DWT |
4549 | openbsd*) |
4550 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4551 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4552 | else | |
4553 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4554 | fi | |
4555 | ;; | |
4556 | ||
4557 | osf3* | osf4* | osf5*) | |
4558 | lt_cv_deplibs_check_method=pass_all | |
4559 | ;; | |
4560 | ||
4561 | rdos*) | |
4562 | lt_cv_deplibs_check_method=pass_all | |
4563 | ;; | |
4564 | ||
4565 | solaris*) | |
4566 | lt_cv_deplibs_check_method=pass_all | |
4567 | ;; | |
4568 | ||
4569 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4570 | lt_cv_deplibs_check_method=pass_all | |
4571 | ;; | |
4572 | ||
4573 | sysv4 | sysv4.3*) | |
4574 | case $host_vendor in | |
4575 | motorola) | |
4576 | 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]' | |
4577 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4578 | ;; | |
4579 | ncr) | |
4580 | lt_cv_deplibs_check_method=pass_all | |
4581 | ;; | |
4582 | sequent) | |
4583 | lt_cv_file_magic_cmd='/bin/file' | |
4584 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4585 | ;; | |
4586 | sni) | |
4587 | lt_cv_file_magic_cmd='/bin/file' | |
4588 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4589 | lt_cv_file_magic_test_file=/lib/libc.so | |
4590 | ;; | |
4591 | siemens) | |
4592 | lt_cv_deplibs_check_method=pass_all | |
4593 | ;; | |
4594 | pc) | |
4595 | lt_cv_deplibs_check_method=pass_all | |
4596 | ;; | |
4597 | esac | |
4598 | ;; | |
4599 | ||
4600 | tpf*) | |
4601 | lt_cv_deplibs_check_method=pass_all | |
4602 | ;; | |
4603 | esac | |
35fa52c0 DWT |
4604 | |
4605 | fi | |
9c60689e DWT |
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4607 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4608 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4609 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4610 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4611 | |
35fa52c0 | 4612 | |
35fa52c0 | 4613 | |
35fa52c0 | 4614 | |
35fa52c0 | 4615 | |
35fa52c0 | 4616 | |
35fa52c0 | 4617 | |
35fa52c0 | 4618 | |
35fa52c0 | 4619 | |
35fa52c0 | 4620 | |
35fa52c0 | 4621 | |
9c60689e DWT |
4622 | |
4623 | if test -n "$ac_tool_prefix"; then | |
4624 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4625 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4627 | $as_echo_n "checking for $ac_word... " >&6; } | |
4628 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4629 | $as_echo_n "(cached) " >&6 | |
4630 | else | |
4631 | if test -n "$AR"; then | |
4632 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4633 | else | |
4634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4635 | for as_dir in $PATH | |
4636 | do | |
4637 | IFS=$as_save_IFS | |
4638 | test -z "$as_dir" && as_dir=. | |
4639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4641 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4643 | break 2 | |
4644 | fi | |
4645 | done | |
35fa52c0 | 4646 | done |
9c60689e DWT |
4647 | IFS=$as_save_IFS |
4648 | ||
4649 | fi | |
4650 | fi | |
4651 | AR=$ac_cv_prog_AR | |
4652 | if test -n "$AR"; then | |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4654 | $as_echo "$AR" >&6; } | |
4655 | else | |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4657 | $as_echo "no" >&6; } | |
4658 | fi | |
4659 | ||
4660 | ||
4661 | fi | |
4662 | if test -z "$ac_cv_prog_AR"; then | |
4663 | ac_ct_AR=$AR | |
4664 | # Extract the first word of "ar", so it can be a program name with args. | |
4665 | set dummy ar; ac_word=$2 | |
4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4667 | $as_echo_n "checking for $ac_word... " >&6; } | |
4668 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4669 | $as_echo_n "(cached) " >&6 | |
4670 | else | |
4671 | if test -n "$ac_ct_AR"; then | |
4672 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4673 | else | |
4674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4675 | for as_dir in $PATH | |
4676 | do | |
4677 | IFS=$as_save_IFS | |
4678 | test -z "$as_dir" && as_dir=. | |
4679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4681 | ac_cv_prog_ac_ct_AR="ar" | |
4682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4683 | break 2 | |
35fa52c0 | 4684 | fi |
9c60689e DWT |
4685 | done |
4686 | done | |
4687 | IFS=$as_save_IFS | |
4688 | ||
4689 | fi | |
4690 | fi | |
4691 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4692 | if test -n "$ac_ct_AR"; then | |
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4694 | $as_echo "$ac_ct_AR" >&6; } | |
4695 | else | |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4697 | $as_echo "no" >&6; } | |
4698 | fi | |
4699 | ||
4700 | if test "x$ac_ct_AR" = x; then | |
4701 | AR="false" | |
4702 | else | |
4703 | case $cross_compiling:$ac_tool_warned in | |
4704 | yes:) | |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4706 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4707 | ac_tool_warned=yes ;; | |
4708 | esac | |
4709 | AR=$ac_ct_AR | |
4710 | fi | |
4711 | else | |
4712 | AR="$ac_cv_prog_AR" | |
4713 | fi | |
4714 | ||
4715 | test -z "$AR" && AR=ar | |
4716 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | ||
4724 | ||
4725 | ||
4726 | ||
4727 | ||
4728 | if test -n "$ac_tool_prefix"; then | |
4729 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4730 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4732 | $as_echo_n "checking for $ac_word... " >&6; } | |
4733 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4734 | $as_echo_n "(cached) " >&6 | |
4735 | else | |
4736 | if test -n "$STRIP"; then | |
4737 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4738 | else | |
4739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4740 | for as_dir in $PATH | |
4741 | do | |
4742 | IFS=$as_save_IFS | |
4743 | test -z "$as_dir" && as_dir=. | |
4744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4746 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4748 | break 2 | |
35fa52c0 | 4749 | fi |
9c60689e DWT |
4750 | done |
4751 | done | |
4752 | IFS=$as_save_IFS | |
4753 | ||
4754 | fi | |
4755 | fi | |
4756 | STRIP=$ac_cv_prog_STRIP | |
4757 | if test -n "$STRIP"; then | |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4759 | $as_echo "$STRIP" >&6; } | |
4760 | else | |
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4762 | $as_echo "no" >&6; } | |
4763 | fi | |
4764 | ||
4765 | ||
4766 | fi | |
4767 | if test -z "$ac_cv_prog_STRIP"; then | |
4768 | ac_ct_STRIP=$STRIP | |
4769 | # Extract the first word of "strip", so it can be a program name with args. | |
4770 | set dummy strip; ac_word=$2 | |
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4772 | $as_echo_n "checking for $ac_word... " >&6; } | |
4773 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4774 | $as_echo_n "(cached) " >&6 | |
4775 | else | |
4776 | if test -n "$ac_ct_STRIP"; then | |
4777 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4778 | else | |
4779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4780 | for as_dir in $PATH | |
4781 | do | |
4782 | IFS=$as_save_IFS | |
4783 | test -z "$as_dir" && as_dir=. | |
4784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4786 | ac_cv_prog_ac_ct_STRIP="strip" | |
4787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4788 | break 2 | |
4789 | fi | |
4790 | done | |
4791 | done | |
4792 | IFS=$as_save_IFS | |
4793 | ||
4794 | fi | |
4795 | fi | |
4796 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4797 | if test -n "$ac_ct_STRIP"; then | |
4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4799 | $as_echo "$ac_ct_STRIP" >&6; } | |
4800 | else | |
4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4802 | $as_echo "no" >&6; } | |
4803 | fi | |
4804 | ||
4805 | if test "x$ac_ct_STRIP" = x; then | |
4806 | STRIP=":" | |
4807 | else | |
4808 | case $cross_compiling:$ac_tool_warned in | |
4809 | yes:) | |
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4812 | ac_tool_warned=yes ;; | |
4813 | esac | |
4814 | STRIP=$ac_ct_STRIP | |
4815 | fi | |
4816 | else | |
4817 | STRIP="$ac_cv_prog_STRIP" | |
4818 | fi | |
4819 | ||
4820 | test -z "$STRIP" && STRIP=: | |
4821 | ||
4822 | ||
4823 | ||
4824 | ||
4825 | ||
4826 | ||
4827 | if test -n "$ac_tool_prefix"; then | |
4828 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4829 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4831 | $as_echo_n "checking for $ac_word... " >&6; } | |
4832 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4833 | $as_echo_n "(cached) " >&6 | |
4834 | else | |
4835 | if test -n "$RANLIB"; then | |
4836 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4837 | else | |
4838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4839 | for as_dir in $PATH | |
4840 | do | |
4841 | IFS=$as_save_IFS | |
4842 | test -z "$as_dir" && as_dir=. | |
4843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4845 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4847 | break 2 | |
4848 | fi | |
4849 | done | |
4850 | done | |
4851 | IFS=$as_save_IFS | |
4852 | ||
4853 | fi | |
4854 | fi | |
4855 | RANLIB=$ac_cv_prog_RANLIB | |
4856 | if test -n "$RANLIB"; then | |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4858 | $as_echo "$RANLIB" >&6; } | |
4859 | else | |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4861 | $as_echo "no" >&6; } | |
4862 | fi | |
4863 | ||
4864 | ||
4865 | fi | |
4866 | if test -z "$ac_cv_prog_RANLIB"; then | |
4867 | ac_ct_RANLIB=$RANLIB | |
4868 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4869 | set dummy ranlib; ac_word=$2 | |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4871 | $as_echo_n "checking for $ac_word... " >&6; } | |
4872 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4873 | $as_echo_n "(cached) " >&6 | |
4874 | else | |
4875 | if test -n "$ac_ct_RANLIB"; then | |
4876 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4877 | else | |
4878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4879 | for as_dir in $PATH | |
4880 | do | |
4881 | IFS=$as_save_IFS | |
4882 | test -z "$as_dir" && as_dir=. | |
4883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4885 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4887 | break 2 | |
4888 | fi | |
4889 | done | |
4890 | done | |
4891 | IFS=$as_save_IFS | |
4892 | ||
4893 | fi | |
4894 | fi | |
4895 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4896 | if test -n "$ac_ct_RANLIB"; then | |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4898 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4899 | else | |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4901 | $as_echo "no" >&6; } | |
4902 | fi | |
4903 | ||
4904 | if test "x$ac_ct_RANLIB" = x; then | |
4905 | RANLIB=":" | |
4906 | else | |
4907 | case $cross_compiling:$ac_tool_warned in | |
4908 | yes:) | |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4910 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4911 | ac_tool_warned=yes ;; | |
4912 | esac | |
4913 | RANLIB=$ac_ct_RANLIB | |
4914 | fi | |
4915 | else | |
4916 | RANLIB="$ac_cv_prog_RANLIB" | |
4917 | fi | |
4918 | ||
4919 | test -z "$RANLIB" && RANLIB=: | |
4920 | ||
4921 | ||
4922 | ||
4923 | ||
4924 | ||
4925 | ||
4926 | # Determine commands to create old-style static archives. | |
4927 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4928 | old_postinstall_cmds='chmod 644 $oldlib' | |
4929 | old_postuninstall_cmds= | |
4930 | ||
4931 | if test -n "$RANLIB"; then | |
4932 | case $host_os in | |
4933 | openbsd*) | |
4934 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4935 | ;; | |
4936 | *) | |
4937 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4938 | ;; | |
4939 | esac | |
4940 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4941 | fi | |
4942 | ||
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | # If no C compiler was specified, use CC. | |
4977 | LTCC=${LTCC-"$CC"} | |
4978 | ||
4979 | # If no C compiler flags were specified, use CFLAGS. | |
4980 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4981 | ||
4982 | # Allow CC to be a program name with arguments. | |
4983 | compiler=$CC | |
4984 | ||
4985 | ||
4986 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
4988 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
4989 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
4990 | $as_echo_n "(cached) " >&6 | |
4991 | else | |
4992 | ||
4993 | # These are sane defaults that work on at least a few old systems. | |
4994 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4995 | ||
4996 | # Character class describing NM global symbol codes. | |
4997 | symcode='[BCDEGRST]' | |
4998 | ||
4999 | # Regexp to match symbols that can be accessed directly from C. | |
5000 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5001 | ||
5002 | # Define system-specific variables. | |
5003 | case $host_os in | |
5004 | aix*) | |
5005 | symcode='[BCDT]' | |
5006 | ;; | |
5007 | cygwin* | mingw* | pw32* | cegcc*) | |
5008 | symcode='[ABCDGISTW]' | |
5009 | ;; | |
5010 | hpux*) | |
5011 | if test "$host_cpu" = ia64; then | |
5012 | symcode='[ABCDEGRST]' | |
5013 | fi | |
5014 | ;; | |
5015 | irix* | nonstopux*) | |
5016 | symcode='[BCDEGRST]' | |
5017 | ;; | |
5018 | osf*) | |
5019 | symcode='[BCDEGQRST]' | |
5020 | ;; | |
5021 | solaris*) | |
5022 | symcode='[BDRT]' | |
5023 | ;; | |
5024 | sco3.2v5*) | |
5025 | symcode='[DT]' | |
5026 | ;; | |
5027 | sysv4.2uw2*) | |
5028 | symcode='[DT]' | |
5029 | ;; | |
5030 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5031 | symcode='[ABDT]' | |
5032 | ;; | |
5033 | sysv4) | |
5034 | symcode='[DFNSTU]' | |
5035 | ;; | |
5036 | esac | |
5037 | ||
5038 | # If we're using GNU nm, then use its standard symbol codes. | |
5039 | case `$NM -V 2>&1` in | |
5040 | *GNU* | *'with BFD'*) | |
5041 | symcode='[ABCDGIRSTW]' ;; | |
5042 | esac | |
5043 | ||
5044 | # Transform an extracted symbol line into a proper C declaration. | |
5045 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5046 | # so use this general approach. | |
5047 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5048 | ||
5049 | # Transform an extracted symbol line into symbol name and symbol address | |
5050 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5051 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
5052 | ||
5053 | # Handle CRLF in mingw tool chain | |
5054 | opt_cr= | |
5055 | case $build_os in | |
5056 | mingw*) | |
5057 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5058 | ;; | |
5059 | esac | |
5060 | ||
5061 | # Try without a prefix underscore, then with it. | |
5062 | for ac_symprfx in "" "_"; do | |
5063 | ||
5064 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5065 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5066 | ||
5067 | # Write the raw and C identifiers. | |
5068 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5069 | # Fake it for dumpbin and say T for any non-static function | |
5070 | # and D for any global variable. | |
5071 | # Also find C++ and __fastcall symbols from MSVC++, | |
5072 | # which start with @ or ?. | |
5073 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5074 | " {last_section=section; section=\$ 3};"\ | |
5075 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5076 | " \$ 0!~/External *\|/{next};"\ | |
5077 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5078 | " {if(hide[section]) next};"\ | |
5079 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5080 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5081 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5082 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5083 | " ' prfx=^$ac_symprfx" | |
5084 | else | |
5085 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5086 | fi | |
5087 | ||
5088 | # Check to see that the pipe works correctly. | |
5089 | pipe_works=no | |
5090 | ||
5091 | rm -f conftest* | |
5092 | cat > conftest.$ac_ext <<_LT_EOF | |
5093 | #ifdef __cplusplus | |
5094 | extern "C" { | |
5095 | #endif | |
5096 | char nm_test_var; | |
5097 | void nm_test_func(void); | |
5098 | void nm_test_func(void){} | |
5099 | #ifdef __cplusplus | |
5100 | } | |
5101 | #endif | |
5102 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5103 | _LT_EOF | |
5104 | ||
5105 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5106 | (eval $ac_compile) 2>&5 | |
5107 | ac_status=$? | |
5108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5109 | test $ac_status = 0; }; then | |
5110 | # Now try to grab the symbols. | |
5111 | nlist=conftest.nm | |
5112 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5113 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5114 | ac_status=$? | |
5115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5116 | test $ac_status = 0; } && test -s "$nlist"; then | |
5117 | # Try sorting and uniquifying the output. | |
5118 | if sort "$nlist" | uniq > "$nlist"T; then | |
5119 | mv -f "$nlist"T "$nlist" | |
5120 | else | |
5121 | rm -f "$nlist"T | |
5122 | fi | |
5123 | ||
5124 | # Make sure that we snagged all the symbols we need. | |
5125 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5126 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5127 | cat <<_LT_EOF > conftest.$ac_ext | |
5128 | #ifdef __cplusplus | |
5129 | extern "C" { | |
5130 | #endif | |
5131 | ||
5132 | _LT_EOF | |
5133 | # Now generate the symbol file. | |
5134 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5135 | ||
5136 | cat <<_LT_EOF >> conftest.$ac_ext | |
5137 | ||
5138 | /* The mapping between symbol names and symbols. */ | |
5139 | const struct { | |
5140 | const char *name; | |
5141 | void *address; | |
5142 | } | |
5143 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5144 | { | |
5145 | { "@PROGRAM@", (void *) 0 }, | |
5146 | _LT_EOF | |
5147 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5148 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5149 | {0, (void *) 0} | |
5150 | }; | |
5151 | ||
5152 | /* This works around a problem in FreeBSD linker */ | |
5153 | #ifdef FREEBSD_WORKAROUND | |
5154 | static const void *lt_preloaded_setup() { | |
5155 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5156 | } | |
5157 | #endif | |
5158 | ||
5159 | #ifdef __cplusplus | |
5160 | } | |
5161 | #endif | |
5162 | _LT_EOF | |
5163 | # Now try linking the two files. | |
5164 | mv conftest.$ac_objext conftstm.$ac_objext | |
5165 | lt_save_LIBS="$LIBS" | |
5166 | lt_save_CFLAGS="$CFLAGS" | |
5167 | LIBS="conftstm.$ac_objext" | |
5168 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5169 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5170 | (eval $ac_link) 2>&5 | |
5171 | ac_status=$? | |
5172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5173 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5174 | pipe_works=yes | |
5175 | fi | |
5176 | LIBS="$lt_save_LIBS" | |
5177 | CFLAGS="$lt_save_CFLAGS" | |
5178 | else | |
5179 | echo "cannot find nm_test_func in $nlist" >&5 | |
5180 | fi | |
5181 | else | |
5182 | echo "cannot find nm_test_var in $nlist" >&5 | |
5183 | fi | |
5184 | else | |
5185 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5186 | fi | |
5187 | else | |
5188 | echo "$progname: failed program was:" >&5 | |
5189 | cat conftest.$ac_ext >&5 | |
5190 | fi | |
5191 | rm -rf conftest* conftst* | |
5192 | ||
5193 | # Do not use the global_symbol_pipe unless it works. | |
5194 | if test "$pipe_works" = yes; then | |
5195 | break | |
5196 | else | |
5197 | lt_cv_sys_global_symbol_pipe= | |
5198 | fi | |
5199 | done | |
5200 | ||
5201 | fi | |
5202 | ||
5203 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5204 | lt_cv_sys_global_symbol_to_cdecl= | |
5205 | fi | |
5206 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5208 | $as_echo "failed" >&6; } | |
5209 | else | |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5211 | $as_echo "ok" >&6; } | |
5212 | fi | |
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | # Check whether --enable-libtool-lock was given. | |
5237 | if test "${enable_libtool_lock+set}" = set; then : | |
5238 | enableval=$enable_libtool_lock; | |
5239 | fi | |
5240 | ||
5241 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5242 | ||
5243 | # Some flags need to be propagated to the compiler or linker for good | |
5244 | # libtool support. | |
5245 | case $host in | |
5246 | ia64-*-hpux*) | |
5247 | # Find out which ABI we are using. | |
5248 | echo 'int i;' > conftest.$ac_ext | |
5249 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5250 | (eval $ac_compile) 2>&5 | |
5251 | ac_status=$? | |
5252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5253 | test $ac_status = 0; }; then | |
5254 | case `/usr/bin/file conftest.$ac_objext` in | |
5255 | *ELF-32*) | |
5256 | HPUX_IA64_MODE="32" | |
5257 | ;; | |
5258 | *ELF-64*) | |
5259 | HPUX_IA64_MODE="64" | |
5260 | ;; | |
5261 | esac | |
5262 | fi | |
5263 | rm -rf conftest* | |
5264 | ;; | |
5265 | *-*-irix6*) | |
5266 | # Find out which ABI we are using. | |
794e88e7 | 5267 | echo '#line 5267 "configure"' > conftest.$ac_ext |
9c60689e DWT |
5268 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5269 | (eval $ac_compile) 2>&5 | |
5270 | ac_status=$? | |
5271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5272 | test $ac_status = 0; }; then | |
5273 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5274 | case `/usr/bin/file conftest.$ac_objext` in | |
5275 | *32-bit*) | |
5276 | LD="${LD-ld} -melf32bsmip" | |
5277 | ;; | |
5278 | *N32*) | |
5279 | LD="${LD-ld} -melf32bmipn32" | |
5280 | ;; | |
5281 | *64-bit*) | |
5282 | LD="${LD-ld} -melf64bmip" | |
5283 | ;; | |
5284 | esac | |
5285 | else | |
5286 | case `/usr/bin/file conftest.$ac_objext` in | |
5287 | *32-bit*) | |
5288 | LD="${LD-ld} -32" | |
5289 | ;; | |
5290 | *N32*) | |
5291 | LD="${LD-ld} -n32" | |
5292 | ;; | |
5293 | *64-bit*) | |
5294 | LD="${LD-ld} -64" | |
5295 | ;; | |
5296 | esac | |
5297 | fi | |
5298 | fi | |
5299 | rm -rf conftest* | |
5300 | ;; | |
5301 | ||
5302 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5303 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5304 | # Find out which ABI we are using. | |
5305 | echo 'int i;' > conftest.$ac_ext | |
5306 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5307 | (eval $ac_compile) 2>&5 | |
5308 | ac_status=$? | |
5309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5310 | test $ac_status = 0; }; then | |
5311 | case `/usr/bin/file conftest.o` in | |
5312 | *32-bit*) | |
5313 | case $host in | |
5314 | x86_64-*kfreebsd*-gnu) | |
5315 | LD="${LD-ld} -m elf_i386_fbsd" | |
5316 | ;; | |
5317 | x86_64-*linux*) | |
5318 | LD="${LD-ld} -m elf_i386" | |
5319 | ;; | |
5320 | ppc64-*linux*|powerpc64-*linux*) | |
5321 | LD="${LD-ld} -m elf32ppclinux" | |
5322 | ;; | |
5323 | s390x-*linux*) | |
5324 | LD="${LD-ld} -m elf_s390" | |
5325 | ;; | |
5326 | sparc64-*linux*) | |
5327 | LD="${LD-ld} -m elf32_sparc" | |
5328 | ;; | |
5329 | esac | |
5330 | ;; | |
5331 | *64-bit*) | |
5332 | case $host in | |
5333 | x86_64-*kfreebsd*-gnu) | |
5334 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5335 | ;; | |
5336 | x86_64-*linux*) | |
5337 | LD="${LD-ld} -m elf_x86_64" | |
5338 | ;; | |
5339 | ppc*-*linux*|powerpc*-*linux*) | |
5340 | LD="${LD-ld} -m elf64ppc" | |
5341 | ;; | |
5342 | s390*-*linux*|s390*-*tpf*) | |
5343 | LD="${LD-ld} -m elf64_s390" | |
5344 | ;; | |
5345 | sparc*-*linux*) | |
5346 | LD="${LD-ld} -m elf64_sparc" | |
5347 | ;; | |
5348 | esac | |
5349 | ;; | |
5350 | esac | |
5351 | fi | |
5352 | rm -rf conftest* | |
5353 | ;; | |
5354 | ||
5355 | *-*-sco3.2v5*) | |
5356 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5357 | SAVE_CFLAGS="$CFLAGS" | |
5358 | CFLAGS="$CFLAGS -belf" | |
5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5360 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5361 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5362 | $as_echo_n "(cached) " >&6 | |
5363 | else | |
5364 | ac_ext=c | |
5365 | ac_cpp='$CPP $CPPFLAGS' | |
5366 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5367 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5368 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5369 | ||
5370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5371 | /* end confdefs.h. */ | |
5372 | ||
5373 | int | |
5374 | main () | |
5375 | { | |
5376 | ||
5377 | ; | |
5378 | return 0; | |
5379 | } | |
5380 | _ACEOF | |
5381 | if ac_fn_c_try_link "$LINENO"; then : | |
5382 | lt_cv_cc_needs_belf=yes | |
5383 | else | |
5384 | lt_cv_cc_needs_belf=no | |
5385 | fi | |
5386 | rm -f core conftest.err conftest.$ac_objext \ | |
5387 | conftest$ac_exeext conftest.$ac_ext | |
5388 | ac_ext=c | |
5389 | ac_cpp='$CPP $CPPFLAGS' | |
5390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5393 | ||
5394 | fi | |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5396 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5397 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5398 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5399 | CFLAGS="$SAVE_CFLAGS" | |
5400 | fi | |
5401 | ;; | |
5402 | sparc*-*solaris*) | |
5403 | # Find out which ABI we are using. | |
5404 | echo 'int i;' > conftest.$ac_ext | |
5405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5406 | (eval $ac_compile) 2>&5 | |
5407 | ac_status=$? | |
5408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5409 | test $ac_status = 0; }; then | |
5410 | case `/usr/bin/file conftest.o` in | |
5411 | *64-bit*) | |
5412 | case $lt_cv_prog_gnu_ld in | |
5413 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5414 | *) | |
5415 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5416 | LD="${LD-ld} -64" | |
5417 | fi | |
5418 | ;; | |
5419 | esac | |
5420 | ;; | |
5421 | esac | |
5422 | fi | |
5423 | rm -rf conftest* | |
5424 | ;; | |
5425 | esac | |
5426 | ||
5427 | need_locks="$enable_libtool_lock" | |
5428 | ||
5429 | ||
5430 | case $host_os in | |
5431 | rhapsody* | darwin*) | |
5432 | if test -n "$ac_tool_prefix"; then | |
5433 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5434 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5436 | $as_echo_n "checking for $ac_word... " >&6; } | |
5437 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5438 | $as_echo_n "(cached) " >&6 | |
5439 | else | |
5440 | if test -n "$DSYMUTIL"; then | |
5441 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5442 | else | |
5443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5444 | for as_dir in $PATH | |
5445 | do | |
5446 | IFS=$as_save_IFS | |
5447 | test -z "$as_dir" && as_dir=. | |
5448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5450 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5452 | break 2 | |
5453 | fi | |
5454 | done | |
5455 | done | |
5456 | IFS=$as_save_IFS | |
5457 | ||
5458 | fi | |
5459 | fi | |
5460 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5461 | if test -n "$DSYMUTIL"; then | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5463 | $as_echo "$DSYMUTIL" >&6; } | |
5464 | else | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5466 | $as_echo "no" >&6; } | |
5467 | fi | |
5468 | ||
5469 | ||
5470 | fi | |
5471 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5472 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5473 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5474 | set dummy dsymutil; ac_word=$2 | |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5476 | $as_echo_n "checking for $ac_word... " >&6; } | |
5477 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5478 | $as_echo_n "(cached) " >&6 | |
5479 | else | |
5480 | if test -n "$ac_ct_DSYMUTIL"; then | |
5481 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5482 | else | |
5483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5484 | for as_dir in $PATH | |
5485 | do | |
5486 | IFS=$as_save_IFS | |
5487 | test -z "$as_dir" && as_dir=. | |
5488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5490 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5492 | break 2 | |
5493 | fi | |
5494 | done | |
5495 | done | |
5496 | IFS=$as_save_IFS | |
5497 | ||
5498 | fi | |
5499 | fi | |
5500 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5501 | if test -n "$ac_ct_DSYMUTIL"; then | |
5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5503 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5504 | else | |
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5506 | $as_echo "no" >&6; } | |
5507 | fi | |
5508 | ||
5509 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5510 | DSYMUTIL=":" | |
5511 | else | |
5512 | case $cross_compiling:$ac_tool_warned in | |
5513 | yes:) | |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5515 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5516 | ac_tool_warned=yes ;; | |
5517 | esac | |
5518 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5519 | fi | |
5520 | else | |
5521 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5522 | fi | |
5523 | ||
5524 | if test -n "$ac_tool_prefix"; then | |
5525 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5526 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5528 | $as_echo_n "checking for $ac_word... " >&6; } | |
5529 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5530 | $as_echo_n "(cached) " >&6 | |
5531 | else | |
5532 | if test -n "$NMEDIT"; then | |
5533 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5534 | else | |
5535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5536 | for as_dir in $PATH | |
5537 | do | |
5538 | IFS=$as_save_IFS | |
5539 | test -z "$as_dir" && as_dir=. | |
5540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5542 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5544 | break 2 | |
5545 | fi | |
5546 | done | |
5547 | done | |
5548 | IFS=$as_save_IFS | |
5549 | ||
5550 | fi | |
5551 | fi | |
5552 | NMEDIT=$ac_cv_prog_NMEDIT | |
5553 | if test -n "$NMEDIT"; then | |
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5555 | $as_echo "$NMEDIT" >&6; } | |
5556 | else | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5558 | $as_echo "no" >&6; } | |
5559 | fi | |
5560 | ||
5561 | ||
5562 | fi | |
5563 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5564 | ac_ct_NMEDIT=$NMEDIT | |
5565 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5566 | set dummy nmedit; ac_word=$2 | |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5568 | $as_echo_n "checking for $ac_word... " >&6; } | |
5569 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5570 | $as_echo_n "(cached) " >&6 | |
5571 | else | |
5572 | if test -n "$ac_ct_NMEDIT"; then | |
5573 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5574 | else | |
5575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5576 | for as_dir in $PATH | |
5577 | do | |
5578 | IFS=$as_save_IFS | |
5579 | test -z "$as_dir" && as_dir=. | |
5580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5582 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5584 | break 2 | |
5585 | fi | |
5586 | done | |
5587 | done | |
5588 | IFS=$as_save_IFS | |
5589 | ||
5590 | fi | |
5591 | fi | |
5592 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5593 | if test -n "$ac_ct_NMEDIT"; then | |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5595 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5596 | else | |
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5598 | $as_echo "no" >&6; } | |
5599 | fi | |
5600 | ||
5601 | if test "x$ac_ct_NMEDIT" = x; then | |
5602 | NMEDIT=":" | |
5603 | else | |
5604 | case $cross_compiling:$ac_tool_warned in | |
5605 | yes:) | |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5607 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5608 | ac_tool_warned=yes ;; | |
5609 | esac | |
5610 | NMEDIT=$ac_ct_NMEDIT | |
5611 | fi | |
5612 | else | |
5613 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5614 | fi | |
5615 | ||
5616 | if test -n "$ac_tool_prefix"; then | |
5617 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5618 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5620 | $as_echo_n "checking for $ac_word... " >&6; } | |
5621 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5622 | $as_echo_n "(cached) " >&6 | |
5623 | else | |
5624 | if test -n "$LIPO"; then | |
5625 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5626 | else | |
5627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5628 | for as_dir in $PATH | |
5629 | do | |
5630 | IFS=$as_save_IFS | |
5631 | test -z "$as_dir" && as_dir=. | |
5632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5634 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5636 | break 2 | |
5637 | fi | |
5638 | done | |
5639 | done | |
5640 | IFS=$as_save_IFS | |
5641 | ||
5642 | fi | |
5643 | fi | |
5644 | LIPO=$ac_cv_prog_LIPO | |
5645 | if test -n "$LIPO"; then | |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5647 | $as_echo "$LIPO" >&6; } | |
5648 | else | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5650 | $as_echo "no" >&6; } | |
5651 | fi | |
5652 | ||
5653 | ||
5654 | fi | |
5655 | if test -z "$ac_cv_prog_LIPO"; then | |
5656 | ac_ct_LIPO=$LIPO | |
5657 | # Extract the first word of "lipo", so it can be a program name with args. | |
5658 | set dummy lipo; ac_word=$2 | |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5660 | $as_echo_n "checking for $ac_word... " >&6; } | |
5661 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5662 | $as_echo_n "(cached) " >&6 | |
5663 | else | |
5664 | if test -n "$ac_ct_LIPO"; then | |
5665 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5666 | else | |
5667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5668 | for as_dir in $PATH | |
5669 | do | |
5670 | IFS=$as_save_IFS | |
5671 | test -z "$as_dir" && as_dir=. | |
5672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5674 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5676 | break 2 | |
5677 | fi | |
5678 | done | |
5679 | done | |
5680 | IFS=$as_save_IFS | |
5681 | ||
5682 | fi | |
5683 | fi | |
5684 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5685 | if test -n "$ac_ct_LIPO"; then | |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5687 | $as_echo "$ac_ct_LIPO" >&6; } | |
5688 | else | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5690 | $as_echo "no" >&6; } | |
5691 | fi | |
5692 | ||
5693 | if test "x$ac_ct_LIPO" = x; then | |
5694 | LIPO=":" | |
5695 | else | |
5696 | case $cross_compiling:$ac_tool_warned in | |
5697 | yes:) | |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5699 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5700 | ac_tool_warned=yes ;; | |
5701 | esac | |
5702 | LIPO=$ac_ct_LIPO | |
5703 | fi | |
5704 | else | |
5705 | LIPO="$ac_cv_prog_LIPO" | |
5706 | fi | |
5707 | ||
5708 | if test -n "$ac_tool_prefix"; then | |
5709 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5710 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5712 | $as_echo_n "checking for $ac_word... " >&6; } | |
5713 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5714 | $as_echo_n "(cached) " >&6 | |
5715 | else | |
5716 | if test -n "$OTOOL"; then | |
5717 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5718 | else | |
5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5720 | for as_dir in $PATH | |
5721 | do | |
5722 | IFS=$as_save_IFS | |
5723 | test -z "$as_dir" && as_dir=. | |
5724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5726 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5728 | break 2 | |
5729 | fi | |
5730 | done | |
5731 | done | |
5732 | IFS=$as_save_IFS | |
5733 | ||
5734 | fi | |
5735 | fi | |
5736 | OTOOL=$ac_cv_prog_OTOOL | |
5737 | if test -n "$OTOOL"; then | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5739 | $as_echo "$OTOOL" >&6; } | |
5740 | else | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5742 | $as_echo "no" >&6; } | |
5743 | fi | |
5744 | ||
5745 | ||
5746 | fi | |
5747 | if test -z "$ac_cv_prog_OTOOL"; then | |
5748 | ac_ct_OTOOL=$OTOOL | |
5749 | # Extract the first word of "otool", so it can be a program name with args. | |
5750 | set dummy otool; ac_word=$2 | |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5752 | $as_echo_n "checking for $ac_word... " >&6; } | |
5753 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5754 | $as_echo_n "(cached) " >&6 | |
5755 | else | |
5756 | if test -n "$ac_ct_OTOOL"; then | |
5757 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5758 | else | |
5759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5760 | for as_dir in $PATH | |
5761 | do | |
5762 | IFS=$as_save_IFS | |
5763 | test -z "$as_dir" && as_dir=. | |
5764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5766 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5768 | break 2 | |
5769 | fi | |
5770 | done | |
5771 | done | |
5772 | IFS=$as_save_IFS | |
5773 | ||
5774 | fi | |
5775 | fi | |
5776 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5777 | if test -n "$ac_ct_OTOOL"; then | |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5779 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5780 | else | |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5782 | $as_echo "no" >&6; } | |
5783 | fi | |
5784 | ||
5785 | if test "x$ac_ct_OTOOL" = x; then | |
5786 | OTOOL=":" | |
5787 | else | |
5788 | case $cross_compiling:$ac_tool_warned in | |
5789 | yes:) | |
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5791 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5792 | ac_tool_warned=yes ;; | |
5793 | esac | |
5794 | OTOOL=$ac_ct_OTOOL | |
5795 | fi | |
5796 | else | |
5797 | OTOOL="$ac_cv_prog_OTOOL" | |
5798 | fi | |
5799 | ||
5800 | if test -n "$ac_tool_prefix"; then | |
5801 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5802 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5804 | $as_echo_n "checking for $ac_word... " >&6; } | |
5805 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5806 | $as_echo_n "(cached) " >&6 | |
5807 | else | |
5808 | if test -n "$OTOOL64"; then | |
5809 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5810 | else | |
5811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5812 | for as_dir in $PATH | |
5813 | do | |
5814 | IFS=$as_save_IFS | |
5815 | test -z "$as_dir" && as_dir=. | |
5816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5818 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5820 | break 2 | |
5821 | fi | |
5822 | done | |
5823 | done | |
5824 | IFS=$as_save_IFS | |
5825 | ||
5826 | fi | |
5827 | fi | |
5828 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5829 | if test -n "$OTOOL64"; then | |
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5831 | $as_echo "$OTOOL64" >&6; } | |
5832 | else | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5834 | $as_echo "no" >&6; } | |
5835 | fi | |
5836 | ||
5837 | ||
5838 | fi | |
5839 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5840 | ac_ct_OTOOL64=$OTOOL64 | |
5841 | # Extract the first word of "otool64", so it can be a program name with args. | |
5842 | set dummy otool64; ac_word=$2 | |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5844 | $as_echo_n "checking for $ac_word... " >&6; } | |
5845 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5846 | $as_echo_n "(cached) " >&6 | |
5847 | else | |
5848 | if test -n "$ac_ct_OTOOL64"; then | |
5849 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5850 | else | |
5851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5852 | for as_dir in $PATH | |
5853 | do | |
5854 | IFS=$as_save_IFS | |
5855 | test -z "$as_dir" && as_dir=. | |
5856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5858 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5860 | break 2 | |
5861 | fi | |
5862 | done | |
5863 | done | |
5864 | IFS=$as_save_IFS | |
5865 | ||
5866 | fi | |
5867 | fi | |
5868 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5869 | if test -n "$ac_ct_OTOOL64"; then | |
5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5871 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5872 | else | |
5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5874 | $as_echo "no" >&6; } | |
5875 | fi | |
5876 | ||
5877 | if test "x$ac_ct_OTOOL64" = x; then | |
5878 | OTOOL64=":" | |
5879 | else | |
5880 | case $cross_compiling:$ac_tool_warned in | |
5881 | yes:) | |
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5883 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5884 | ac_tool_warned=yes ;; | |
5885 | esac | |
5886 | OTOOL64=$ac_ct_OTOOL64 | |
5887 | fi | |
5888 | else | |
5889 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5890 | fi | |
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5919 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5920 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5921 | $as_echo_n "(cached) " >&6 | |
5922 | else | |
5923 | lt_cv_apple_cc_single_mod=no | |
5924 | if test -z "${LT_MULTI_MODULE}"; then | |
5925 | # By default we will add the -single_module flag. You can override | |
5926 | # by either setting the environment variable LT_MULTI_MODULE | |
5927 | # non-empty at configure time, or by adding -multi_module to the | |
5928 | # link flags. | |
5929 | rm -rf libconftest.dylib* | |
5930 | echo "int foo(void){return 1;}" > conftest.c | |
5931 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5932 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5933 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5934 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5935 | _lt_result=$? | |
5936 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5937 | lt_cv_apple_cc_single_mod=yes | |
5938 | else | |
5939 | cat conftest.err >&5 | |
5940 | fi | |
5941 | rm -rf libconftest.dylib* | |
5942 | rm -f conftest.* | |
5943 | fi | |
5944 | fi | |
5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5946 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5948 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5949 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5950 | $as_echo_n "(cached) " >&6 | |
5951 | else | |
5952 | lt_cv_ld_exported_symbols_list=no | |
5953 | save_LDFLAGS=$LDFLAGS | |
5954 | echo "_main" > conftest.sym | |
5955 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5957 | /* end confdefs.h. */ | |
5958 | ||
5959 | int | |
5960 | main () | |
5961 | { | |
5962 | ||
5963 | ; | |
5964 | return 0; | |
5965 | } | |
5966 | _ACEOF | |
5967 | if ac_fn_c_try_link "$LINENO"; then : | |
5968 | lt_cv_ld_exported_symbols_list=yes | |
5969 | else | |
5970 | lt_cv_ld_exported_symbols_list=no | |
5971 | fi | |
5972 | rm -f core conftest.err conftest.$ac_objext \ | |
5973 | conftest$ac_exeext conftest.$ac_ext | |
5974 | LDFLAGS="$save_LDFLAGS" | |
5975 | ||
5976 | fi | |
5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
5978 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
5979 | case $host_os in | |
5980 | rhapsody* | darwin1.[012]) | |
5981 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
5982 | darwin1.*) | |
5983 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5984 | darwin*) # darwin 5.x on | |
5985 | # if running on 10.5 or later, the deployment target defaults | |
5986 | # to the OS version, if on x86, and 10.4, the deployment | |
5987 | # target defaults to 10.4. Don't you love it? | |
5988 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
5989 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
5990 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5991 | 10.[012]*) | |
5992 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5993 | 10.*) | |
5994 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5995 | esac | |
5996 | ;; | |
5997 | esac | |
5998 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
5999 | _lt_dar_single_mod='$single_module' | |
6000 | fi | |
6001 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6002 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6003 | else | |
6004 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6005 | fi | |
6006 | if test "$DSYMUTIL" != ":"; then | |
6007 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6008 | else | |
6009 | _lt_dsymutil= | |
6010 | fi | |
6011 | ;; | |
6012 | esac | |
6013 | ||
6014 | ac_ext=c | |
6015 | ac_cpp='$CPP $CPPFLAGS' | |
6016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6020 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6021 | # On Suns, sometimes $CPP names a directory. | |
6022 | if test -n "$CPP" && test -d "$CPP"; then | |
6023 | CPP= | |
6024 | fi | |
6025 | if test -z "$CPP"; then | |
6026 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6027 | $as_echo_n "(cached) " >&6 | |
6028 | else | |
6029 | # Double quotes because CPP needs to be expanded | |
6030 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6031 | do | |
6032 | ac_preproc_ok=false | |
6033 | for ac_c_preproc_warn_flag in '' yes | |
6034 | do | |
6035 | # Use a header file that comes with gcc, so configuring glibc | |
6036 | # with a fresh cross-compiler works. | |
6037 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6038 | # <limits.h> exists even on freestanding compilers. | |
6039 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6040 | # not just through cpp. "Syntax error" is here to catch this case. | |
6041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6042 | /* end confdefs.h. */ | |
6043 | #ifdef __STDC__ | |
6044 | # include <limits.h> | |
6045 | #else | |
6046 | # include <assert.h> | |
6047 | #endif | |
6048 | Syntax error | |
6049 | _ACEOF | |
6050 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6051 | ||
6052 | else | |
6053 | # Broken: fails on valid input. | |
6054 | continue | |
6055 | fi | |
6056 | rm -f conftest.err conftest.$ac_ext | |
6057 | ||
6058 | # OK, works on sane cases. Now check whether nonexistent headers | |
6059 | # can be detected and how. | |
6060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6061 | /* end confdefs.h. */ | |
6062 | #include <ac_nonexistent.h> | |
6063 | _ACEOF | |
6064 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6065 | # Broken: success on invalid input. | |
6066 | continue | |
6067 | else | |
6068 | # Passes both tests. | |
6069 | ac_preproc_ok=: | |
6070 | break | |
6071 | fi | |
6072 | rm -f conftest.err conftest.$ac_ext | |
6073 | ||
6074 | done | |
6075 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6076 | rm -f conftest.err conftest.$ac_ext | |
6077 | if $ac_preproc_ok; then : | |
6078 | break | |
6079 | fi | |
6080 | ||
6081 | done | |
6082 | ac_cv_prog_CPP=$CPP | |
6083 | ||
6084 | fi | |
6085 | CPP=$ac_cv_prog_CPP | |
6086 | else | |
6087 | ac_cv_prog_CPP=$CPP | |
6088 | fi | |
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6090 | $as_echo "$CPP" >&6; } | |
6091 | ac_preproc_ok=false | |
6092 | for ac_c_preproc_warn_flag in '' yes | |
6093 | do | |
6094 | # Use a header file that comes with gcc, so configuring glibc | |
6095 | # with a fresh cross-compiler works. | |
6096 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6097 | # <limits.h> exists even on freestanding compilers. | |
6098 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6099 | # not just through cpp. "Syntax error" is here to catch this case. | |
6100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6101 | /* end confdefs.h. */ | |
6102 | #ifdef __STDC__ | |
6103 | # include <limits.h> | |
6104 | #else | |
6105 | # include <assert.h> | |
6106 | #endif | |
6107 | Syntax error | |
6108 | _ACEOF | |
6109 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6110 | ||
6111 | else | |
6112 | # Broken: fails on valid input. | |
6113 | continue | |
6114 | fi | |
6115 | rm -f conftest.err conftest.$ac_ext | |
6116 | ||
6117 | # OK, works on sane cases. Now check whether nonexistent headers | |
6118 | # can be detected and how. | |
6119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6120 | /* end confdefs.h. */ | |
6121 | #include <ac_nonexistent.h> | |
6122 | _ACEOF | |
6123 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6124 | # Broken: success on invalid input. | |
6125 | continue | |
6126 | else | |
6127 | # Passes both tests. | |
6128 | ac_preproc_ok=: | |
6129 | break | |
6130 | fi | |
6131 | rm -f conftest.err conftest.$ac_ext | |
6132 | ||
6133 | done | |
6134 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6135 | rm -f conftest.err conftest.$ac_ext | |
6136 | if $ac_preproc_ok; then : | |
6137 | ||
6138 | else | |
6139 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6141 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6142 | See \`config.log' for more details." "$LINENO" 5; } | |
6143 | fi | |
6144 | ||
6145 | ac_ext=c | |
6146 | ac_cpp='$CPP $CPPFLAGS' | |
6147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6150 | ||
6151 | ||
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6153 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6154 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6155 | $as_echo_n "(cached) " >&6 | |
6156 | else | |
6157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6158 | /* end confdefs.h. */ | |
6159 | #include <stdlib.h> | |
6160 | #include <stdarg.h> | |
6161 | #include <string.h> | |
6162 | #include <float.h> | |
6163 | ||
6164 | int | |
6165 | main () | |
6166 | { | |
6167 | ||
6168 | ; | |
6169 | return 0; | |
6170 | } | |
6171 | _ACEOF | |
6172 | if ac_fn_c_try_compile "$LINENO"; then : | |
6173 | ac_cv_header_stdc=yes | |
6174 | else | |
6175 | ac_cv_header_stdc=no | |
6176 | fi | |
6177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6178 | ||
6179 | if test $ac_cv_header_stdc = yes; then | |
6180 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6182 | /* end confdefs.h. */ | |
6183 | #include <string.h> | |
6184 | ||
6185 | _ACEOF | |
6186 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6187 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6188 | ||
6189 | else | |
6190 | ac_cv_header_stdc=no | |
6191 | fi | |
6192 | rm -f conftest* | |
6193 | ||
6194 | fi | |
6195 | ||
6196 | if test $ac_cv_header_stdc = yes; then | |
6197 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6199 | /* end confdefs.h. */ | |
6200 | #include <stdlib.h> | |
6201 | ||
6202 | _ACEOF | |
6203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6204 | $EGREP "free" >/dev/null 2>&1; then : | |
6205 | ||
6206 | else | |
6207 | ac_cv_header_stdc=no | |
6208 | fi | |
6209 | rm -f conftest* | |
6210 | ||
6211 | fi | |
6212 | ||
6213 | if test $ac_cv_header_stdc = yes; then | |
6214 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6215 | if test "$cross_compiling" = yes; then : | |
6216 | : | |
6217 | else | |
6218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6219 | /* end confdefs.h. */ | |
6220 | #include <ctype.h> | |
6221 | #include <stdlib.h> | |
6222 | #if ((' ' & 0x0FF) == 0x020) | |
6223 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6224 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6225 | #else | |
6226 | # define ISLOWER(c) \ | |
6227 | (('a' <= (c) && (c) <= 'i') \ | |
6228 | || ('j' <= (c) && (c) <= 'r') \ | |
6229 | || ('s' <= (c) && (c) <= 'z')) | |
6230 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6231 | #endif | |
6232 | ||
6233 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6234 | int | |
6235 | main () | |
6236 | { | |
6237 | int i; | |
6238 | for (i = 0; i < 256; i++) | |
6239 | if (XOR (islower (i), ISLOWER (i)) | |
6240 | || toupper (i) != TOUPPER (i)) | |
6241 | return 2; | |
6242 | return 0; | |
6243 | } | |
6244 | _ACEOF | |
6245 | if ac_fn_c_try_run "$LINENO"; then : | |
6246 | ||
6247 | else | |
6248 | ac_cv_header_stdc=no | |
6249 | fi | |
6250 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6251 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6252 | fi | |
6253 | ||
6254 | fi | |
6255 | fi | |
6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6257 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6258 | if test $ac_cv_header_stdc = yes; then | |
6259 | ||
6260 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6261 | ||
6262 | fi | |
6263 | ||
6264 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6265 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6266 | inttypes.h stdint.h unistd.h | |
6267 | do : | |
6268 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6269 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6270 | " | |
6271 | eval as_val=\$$as_ac_Header | |
6272 | if test "x$as_val" = x""yes; then : | |
6273 | cat >>confdefs.h <<_ACEOF | |
6274 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6275 | _ACEOF | |
6276 | ||
6277 | fi | |
6278 | ||
6279 | done | |
6280 | ||
6281 | ||
6282 | for ac_header in dlfcn.h | |
6283 | do : | |
6284 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6285 | " | |
6286 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6287 | cat >>confdefs.h <<_ACEOF | |
6288 | #define HAVE_DLFCN_H 1 | |
6289 | _ACEOF | |
6290 | ||
6291 | fi | |
6292 | ||
6293 | done | |
6294 | ||
6295 | ||
6296 | ||
6297 | # Set options | |
549f29b5 DWT |
6298 | # Check whether --enable-static was given. |
6299 | if test "${enable_static+set}" = set; then : | |
6300 | enableval=$enable_static; p=${PACKAGE-default} | |
9c60689e | 6301 | case $enableval in |
549f29b5 DWT |
6302 | yes) enable_static=yes ;; |
6303 | no) enable_static=no ;; | |
9c60689e | 6304 | *) |
549f29b5 | 6305 | enable_static=no |
9c60689e DWT |
6306 | # Look at the argument we got. We use all the common list separators. |
6307 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6308 | for pkg in $enableval; do | |
6309 | IFS="$lt_save_ifs" | |
6310 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6311 | enable_static=yes |
9c60689e DWT |
6312 | fi |
6313 | done | |
6314 | IFS="$lt_save_ifs" | |
6315 | ;; | |
6316 | esac | |
6317 | else | |
549f29b5 | 6318 | enable_static=no |
9c60689e DWT |
6319 | fi |
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
549f29b5 DWT |
6329 | |
6330 | enable_dlopen=no | |
6331 | ||
6332 | ||
6333 | enable_win32_dll=no | |
6334 | ||
6335 | ||
6336 | # Check whether --enable-shared was given. | |
6337 | if test "${enable_shared+set}" = set; then : | |
6338 | enableval=$enable_shared; p=${PACKAGE-default} | |
9c60689e | 6339 | case $enableval in |
549f29b5 DWT |
6340 | yes) enable_shared=yes ;; |
6341 | no) enable_shared=no ;; | |
9c60689e | 6342 | *) |
549f29b5 | 6343 | enable_shared=no |
9c60689e DWT |
6344 | # Look at the argument we got. We use all the common list separators. |
6345 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6346 | for pkg in $enableval; do | |
6347 | IFS="$lt_save_ifs" | |
6348 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6349 | enable_shared=yes |
9c60689e DWT |
6350 | fi |
6351 | done | |
6352 | IFS="$lt_save_ifs" | |
6353 | ;; | |
6354 | esac | |
6355 | else | |
549f29b5 | 6356 | enable_shared=yes |
9c60689e DWT |
6357 | fi |
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
549f29b5 | 6368 | |
9c60689e DWT |
6369 | # Check whether --with-pic was given. |
6370 | if test "${with_pic+set}" = set; then : | |
6371 | withval=$with_pic; pic_mode="$withval" | |
6372 | else | |
6373 | pic_mode=default | |
6374 | fi | |
6375 | ||
6376 | ||
6377 | test -z "$pic_mode" && pic_mode=default | |
6378 | ||
6379 | ||
6380 | ||
6381 | ||
6382 | ||
6383 | ||
6384 | ||
6385 | # Check whether --enable-fast-install was given. | |
6386 | if test "${enable_fast_install+set}" = set; then : | |
6387 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6388 | case $enableval in | |
6389 | yes) enable_fast_install=yes ;; | |
6390 | no) enable_fast_install=no ;; | |
6391 | *) | |
6392 | enable_fast_install=no | |
6393 | # Look at the argument we got. We use all the common list separators. | |
6394 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6395 | for pkg in $enableval; do | |
6396 | IFS="$lt_save_ifs" | |
6397 | if test "X$pkg" = "X$p"; then | |
6398 | enable_fast_install=yes | |
6399 | fi | |
6400 | done | |
6401 | IFS="$lt_save_ifs" | |
6402 | ;; | |
6403 | esac | |
6404 | else | |
6405 | enable_fast_install=yes | |
6406 | fi | |
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | # This can be used to rebuild libtool when needed | |
6419 | LIBTOOL_DEPS="$ltmain" | |
6420 | ||
6421 | # Always use our own libtool. | |
6422 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | test -z "$LN_S" && LN_S="ln -s" | |
6449 | ||
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | if test -n "${ZSH_VERSION+set}" ; then | |
6464 | setopt NO_GLOB_SUBST | |
6465 | fi | |
6466 | ||
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6468 | $as_echo_n "checking for objdir... " >&6; } | |
6469 | if test "${lt_cv_objdir+set}" = set; then : | |
6470 | $as_echo_n "(cached) " >&6 | |
6471 | else | |
6472 | rm -f .libs 2>/dev/null | |
6473 | mkdir .libs 2>/dev/null | |
6474 | if test -d .libs; then | |
6475 | lt_cv_objdir=.libs | |
6476 | else | |
6477 | # MS-DOS does not allow filenames that begin with a dot. | |
6478 | lt_cv_objdir=_libs | |
6479 | fi | |
6480 | rmdir .libs 2>/dev/null | |
6481 | fi | |
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6483 | $as_echo "$lt_cv_objdir" >&6; } | |
6484 | objdir=$lt_cv_objdir | |
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | cat >>confdefs.h <<_ACEOF | |
6491 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6492 | _ACEOF | |
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | case $host_os in | |
6511 | aix3*) | |
6512 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6513 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6514 | # vanish in a puff of smoke. | |
6515 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6516 | COLLECT_NAMES= | |
6517 | export COLLECT_NAMES | |
6518 | fi | |
6519 | ;; | |
6520 | esac | |
6521 | ||
6522 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6523 | # metacharacters that are still active within double-quoted strings. | |
6524 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6525 | ||
6526 | # Same as above, but do not quote variable references. | |
6527 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6528 | ||
6529 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6530 | # double_quote_subst'ed string. | |
6531 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6532 | ||
6533 | # Sed substitution to delay expansion of an escaped single quote. | |
6534 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6535 | ||
6536 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6537 | no_glob_subst='s/\*/\\\*/g' | |
6538 | ||
6539 | # Global variables: | |
6540 | ofile=libtool | |
6541 | can_build_shared=yes | |
6542 | ||
6543 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6544 | # which needs '.lib'). | |
6545 | libext=a | |
6546 | ||
6547 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6548 | ||
6549 | old_CC="$CC" | |
6550 | old_CFLAGS="$CFLAGS" | |
6551 | ||
6552 | # Set sane defaults for various variables | |
6553 | test -z "$CC" && CC=cc | |
6554 | test -z "$LTCC" && LTCC=$CC | |
6555 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6556 | test -z "$LD" && LD=ld | |
6557 | test -z "$ac_objext" && ac_objext=o | |
6558 | ||
6559 | for cc_temp in $compiler""; do | |
6560 | case $cc_temp in | |
6561 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6562 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6563 | \-*) ;; | |
6564 | *) break;; | |
6565 | esac | |
6566 | done | |
6567 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6568 | ||
6569 | ||
6570 | # Only perform the check for file, if the check method requires it | |
6571 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6572 | case $deplibs_check_method in | |
6573 | file_magic*) | |
6574 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6576 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6577 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6578 | $as_echo_n "(cached) " >&6 | |
6579 | else | |
6580 | case $MAGIC_CMD in | |
6581 | [\\/*] | ?:[\\/]*) | |
6582 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6583 | ;; | |
6584 | *) | |
6585 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6586 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6587 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6588 | for ac_dir in $ac_dummy; do | |
6589 | IFS="$lt_save_ifs" | |
6590 | test -z "$ac_dir" && ac_dir=. | |
6591 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6592 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6593 | if test -n "$file_magic_test_file"; then | |
6594 | case $deplibs_check_method in | |
6595 | "file_magic "*) | |
6596 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6597 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6598 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6599 | $EGREP "$file_magic_regex" > /dev/null; then | |
6600 | : | |
6601 | else | |
6602 | cat <<_LT_EOF 1>&2 | |
6603 | ||
6604 | *** Warning: the command libtool uses to detect shared libraries, | |
6605 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6606 | *** The result is that libtool may fail to recognize shared libraries | |
6607 | *** as such. This will affect the creation of libtool libraries that | |
6608 | *** depend on shared libraries, but programs linked with such libtool | |
6609 | *** libraries will work regardless of this problem. Nevertheless, you | |
6610 | *** may want to report the problem to your system manager and/or to | |
6611 | *** bug-libtool@gnu.org | |
6612 | ||
6613 | _LT_EOF | |
6614 | fi ;; | |
6615 | esac | |
6616 | fi | |
6617 | break | |
6618 | fi | |
6619 | done | |
6620 | IFS="$lt_save_ifs" | |
6621 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6622 | ;; | |
6623 | esac | |
6624 | fi | |
6625 | ||
6626 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6627 | if test -n "$MAGIC_CMD"; then | |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6629 | $as_echo "$MAGIC_CMD" >&6; } | |
6630 | else | |
6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6632 | $as_echo "no" >&6; } | |
6633 | fi | |
6634 | ||
6635 | ||
6636 | ||
6637 | ||
6638 | ||
6639 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6640 | if test -n "$ac_tool_prefix"; then | |
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6642 | $as_echo_n "checking for file... " >&6; } | |
6643 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6644 | $as_echo_n "(cached) " >&6 | |
6645 | else | |
6646 | case $MAGIC_CMD in | |
6647 | [\\/*] | ?:[\\/]*) | |
6648 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6649 | ;; | |
6650 | *) | |
6651 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6652 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6653 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6654 | for ac_dir in $ac_dummy; do | |
6655 | IFS="$lt_save_ifs" | |
6656 | test -z "$ac_dir" && ac_dir=. | |
6657 | if test -f $ac_dir/file; then | |
6658 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6659 | if test -n "$file_magic_test_file"; then | |
6660 | case $deplibs_check_method in | |
6661 | "file_magic "*) | |
6662 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6663 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6664 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6665 | $EGREP "$file_magic_regex" > /dev/null; then | |
6666 | : | |
6667 | else | |
6668 | cat <<_LT_EOF 1>&2 | |
6669 | ||
6670 | *** Warning: the command libtool uses to detect shared libraries, | |
6671 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6672 | *** The result is that libtool may fail to recognize shared libraries | |
6673 | *** as such. This will affect the creation of libtool libraries that | |
6674 | *** depend on shared libraries, but programs linked with such libtool | |
6675 | *** libraries will work regardless of this problem. Nevertheless, you | |
6676 | *** may want to report the problem to your system manager and/or to | |
6677 | *** bug-libtool@gnu.org | |
6678 | ||
6679 | _LT_EOF | |
6680 | fi ;; | |
6681 | esac | |
6682 | fi | |
6683 | break | |
6684 | fi | |
6685 | done | |
6686 | IFS="$lt_save_ifs" | |
6687 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6688 | ;; | |
6689 | esac | |
6690 | fi | |
6691 | ||
6692 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6693 | if test -n "$MAGIC_CMD"; then | |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6695 | $as_echo "$MAGIC_CMD" >&6; } | |
6696 | else | |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6698 | $as_echo "no" >&6; } | |
6699 | fi | |
6700 | ||
6701 | ||
6702 | else | |
6703 | MAGIC_CMD=: | |
6704 | fi | |
6705 | fi | |
6706 | ||
6707 | fi | |
6708 | ;; | |
6709 | esac | |
6710 | ||
6711 | # Use C for the default configuration in the libtool script | |
6712 | ||
6713 | lt_save_CC="$CC" | |
6714 | ac_ext=c | |
6715 | ac_cpp='$CPP $CPPFLAGS' | |
6716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6719 | ||
6720 | ||
6721 | # Source file extension for C test sources. | |
6722 | ac_ext=c | |
6723 | ||
6724 | # Object file extension for compiled C test sources. | |
6725 | objext=o | |
6726 | objext=$objext | |
6727 | ||
6728 | # Code to be used in simple compile tests | |
6729 | lt_simple_compile_test_code="int some_variable = 0;" | |
6730 | ||
6731 | # Code to be used in simple link tests | |
6732 | lt_simple_link_test_code='int main(){return(0);}' | |
6733 | ||
6734 | ||
6735 | ||
6736 | ||
6737 | ||
6738 | ||
6739 | ||
6740 | # If no C compiler was specified, use CC. | |
6741 | LTCC=${LTCC-"$CC"} | |
6742 | ||
6743 | # If no C compiler flags were specified, use CFLAGS. | |
6744 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6745 | ||
6746 | # Allow CC to be a program name with arguments. | |
6747 | compiler=$CC | |
6748 | ||
6749 | # Save the default compiler, since it gets overwritten when the other | |
6750 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6751 | compiler_DEFAULT=$CC | |
6752 | ||
6753 | # save warnings/boilerplate of simple test code | |
6754 | ac_outfile=conftest.$ac_objext | |
6755 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6756 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6757 | _lt_compiler_boilerplate=`cat conftest.err` | |
6758 | $RM conftest* | |
6759 | ||
6760 | ac_outfile=conftest.$ac_objext | |
6761 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6762 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6763 | _lt_linker_boilerplate=`cat conftest.err` | |
6764 | $RM -r conftest* | |
6765 | ||
6766 | ||
6767 | if test -n "$compiler"; then | |
6768 | ||
6769 | lt_prog_compiler_no_builtin_flag= | |
6770 | ||
6771 | if test "$GCC" = yes; then | |
6772 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6773 | ||
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6775 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6776 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6777 | $as_echo_n "(cached) " >&6 | |
6778 | else | |
6779 | lt_cv_prog_compiler_rtti_exceptions=no | |
6780 | ac_outfile=conftest.$ac_objext | |
6781 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6782 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6783 | # Insert the option either (1) after the last *FLAGS variable, or | |
6784 | # (2) before a word containing "conftest.", or (3) at the end. | |
6785 | # Note that $ac_compile itself does not contain backslashes and begins | |
6786 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6787 | # The option is referenced via a variable to avoid confusing sed. | |
6788 | lt_compile=`echo "$ac_compile" | $SED \ | |
6789 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6790 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6791 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 6792 | (eval echo "\"\$as_me:6792: $lt_compile\"" >&5) |
9c60689e DWT |
6793 | (eval "$lt_compile" 2>conftest.err) |
6794 | ac_status=$? | |
6795 | cat conftest.err >&5 | |
794e88e7 | 6796 | echo "$as_me:6796: \$? = $ac_status" >&5 |
9c60689e DWT |
6797 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6798 | # The compiler can only warn and ignore the option if not recognized | |
6799 | # So say no if there are warnings other than the usual output. | |
6800 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6801 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6802 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6803 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6804 | fi | |
6805 | fi | |
6806 | $RM conftest* | |
6807 | ||
6808 | fi | |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6810 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6811 | ||
6812 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6813 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6814 | else | |
6815 | : | |
6816 | fi | |
6817 | ||
6818 | fi | |
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | lt_prog_compiler_wl= | |
6826 | lt_prog_compiler_pic= | |
6827 | lt_prog_compiler_static= | |
6828 | ||
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6830 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6831 | ||
6832 | if test "$GCC" = yes; then | |
6833 | lt_prog_compiler_wl='-Wl,' | |
6834 | lt_prog_compiler_static='-static' | |
6835 | ||
6836 | case $host_os in | |
6837 | aix*) | |
6838 | # All AIX code is PIC. | |
6839 | if test "$host_cpu" = ia64; then | |
6840 | # AIX 5 now supports IA64 processor | |
6841 | lt_prog_compiler_static='-Bstatic' | |
6842 | fi | |
6843 | ;; | |
6844 | ||
6845 | amigaos*) | |
6846 | case $host_cpu in | |
6847 | powerpc) | |
6848 | # see comment about AmigaOS4 .so support | |
6849 | lt_prog_compiler_pic='-fPIC' | |
6850 | ;; | |
6851 | m68k) | |
6852 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6853 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6854 | # like `-m68040'. | |
6855 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6856 | ;; | |
6857 | esac | |
6858 | ;; | |
6859 | ||
6860 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6861 | # PIC is the default for these OSes. | |
6862 | ;; | |
6863 | ||
6864 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6865 | # This hack is so that the source file can tell whether it is being | |
6866 | # built for inclusion in a dll (and should export symbols for example). | |
6867 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6868 | # (--disable-auto-import) libraries | |
6869 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6870 | ;; | |
6871 | ||
6872 | darwin* | rhapsody*) | |
6873 | # PIC is the default on this platform | |
6874 | # Common symbols not allowed in MH_DYLIB files | |
6875 | lt_prog_compiler_pic='-fno-common' | |
6876 | ;; | |
6877 | ||
6878 | hpux*) | |
6879 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6880 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6881 | # sets the default TLS model and affects inlining. | |
6882 | case $host_cpu in | |
6883 | hppa*64*) | |
6884 | # +Z the default | |
6885 | ;; | |
6886 | *) | |
6887 | lt_prog_compiler_pic='-fPIC' | |
6888 | ;; | |
6889 | esac | |
6890 | ;; | |
6891 | ||
6892 | interix[3-9]*) | |
6893 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6894 | # Instead, we relocate shared libraries at runtime. | |
6895 | ;; | |
6896 | ||
6897 | msdosdjgpp*) | |
6898 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6899 | # on systems that don't support them. | |
6900 | lt_prog_compiler_can_build_shared=no | |
6901 | enable_shared=no | |
6902 | ;; | |
6903 | ||
6904 | *nto* | *qnx*) | |
6905 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6906 | # it will coredump. | |
6907 | lt_prog_compiler_pic='-fPIC -shared' | |
6908 | ;; | |
6909 | ||
6910 | sysv4*MP*) | |
6911 | if test -d /usr/nec; then | |
6912 | lt_prog_compiler_pic=-Kconform_pic | |
6913 | fi | |
6914 | ;; | |
6915 | ||
6916 | *) | |
6917 | lt_prog_compiler_pic='-fPIC' | |
6918 | ;; | |
6919 | esac | |
6920 | else | |
6921 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6922 | case $host_os in | |
6923 | aix*) | |
6924 | lt_prog_compiler_wl='-Wl,' | |
6925 | if test "$host_cpu" = ia64; then | |
6926 | # AIX 5 now supports IA64 processor | |
6927 | lt_prog_compiler_static='-Bstatic' | |
6928 | else | |
6929 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6930 | fi | |
6931 | ;; | |
6932 | ||
6933 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6934 | # This hack is so that the source file can tell whether it is being | |
6935 | # built for inclusion in a dll (and should export symbols for example). | |
6936 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6937 | ;; | |
6938 | ||
6939 | hpux9* | hpux10* | hpux11*) | |
6940 | lt_prog_compiler_wl='-Wl,' | |
6941 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6942 | # not for PA HP-UX. | |
6943 | case $host_cpu in | |
6944 | hppa*64*|ia64*) | |
6945 | # +Z the default | |
6946 | ;; | |
6947 | *) | |
6948 | lt_prog_compiler_pic='+Z' | |
6949 | ;; | |
6950 | esac | |
6951 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6952 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6953 | ;; | |
6954 | ||
6955 | irix5* | irix6* | nonstopux*) | |
6956 | lt_prog_compiler_wl='-Wl,' | |
6957 | # PIC (with -KPIC) is the default. | |
6958 | lt_prog_compiler_static='-non_shared' | |
6959 | ;; | |
6960 | ||
1504c9b8 | 6961 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
6962 | case $cc_basename in |
6963 | # old Intel for x86_64 which still supported -KPIC. | |
6964 | ecc*) | |
6965 | lt_prog_compiler_wl='-Wl,' | |
6966 | lt_prog_compiler_pic='-KPIC' | |
6967 | lt_prog_compiler_static='-static' | |
6968 | ;; | |
6969 | # icc used to be incompatible with GCC. | |
6970 | # ICC 10 doesn't accept -KPIC any more. | |
6971 | icc* | ifort*) | |
6972 | lt_prog_compiler_wl='-Wl,' | |
6973 | lt_prog_compiler_pic='-fPIC' | |
6974 | lt_prog_compiler_static='-static' | |
6975 | ;; | |
6976 | # Lahey Fortran 8.1. | |
6977 | lf95*) | |
6978 | lt_prog_compiler_wl='-Wl,' | |
6979 | lt_prog_compiler_pic='--shared' | |
6980 | lt_prog_compiler_static='--static' | |
6981 | ;; | |
6982 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6983 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6984 | # which looks to be a dead project) | |
6985 | lt_prog_compiler_wl='-Wl,' | |
6986 | lt_prog_compiler_pic='-fpic' | |
6987 | lt_prog_compiler_static='-Bstatic' | |
6988 | ;; | |
6989 | ccc*) | |
6990 | lt_prog_compiler_wl='-Wl,' | |
6991 | # All Alpha code is PIC. | |
6992 | lt_prog_compiler_static='-non_shared' | |
6993 | ;; | |
6994 | xl*) | |
6995 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
6996 | lt_prog_compiler_wl='-Wl,' | |
6997 | lt_prog_compiler_pic='-qpic' | |
6998 | lt_prog_compiler_static='-qstaticlink' | |
6999 | ;; | |
7000 | *) | |
7001 | case `$CC -V 2>&1 | sed 5q` in | |
7002 | *Sun\ C*) | |
7003 | # Sun C 5.9 | |
7004 | lt_prog_compiler_pic='-KPIC' | |
7005 | lt_prog_compiler_static='-Bstatic' | |
7006 | lt_prog_compiler_wl='-Wl,' | |
7007 | ;; | |
7008 | *Sun\ F*) | |
7009 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7010 | lt_prog_compiler_pic='-KPIC' | |
7011 | lt_prog_compiler_static='-Bstatic' | |
7012 | lt_prog_compiler_wl='' | |
7013 | ;; | |
7014 | esac | |
7015 | ;; | |
7016 | esac | |
7017 | ;; | |
7018 | ||
7019 | newsos6) | |
7020 | lt_prog_compiler_pic='-KPIC' | |
7021 | lt_prog_compiler_static='-Bstatic' | |
7022 | ;; | |
7023 | ||
7024 | *nto* | *qnx*) | |
7025 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7026 | # it will coredump. | |
7027 | lt_prog_compiler_pic='-fPIC -shared' | |
7028 | ;; | |
7029 | ||
7030 | osf3* | osf4* | osf5*) | |
7031 | lt_prog_compiler_wl='-Wl,' | |
7032 | # All OSF/1 code is PIC. | |
7033 | lt_prog_compiler_static='-non_shared' | |
7034 | ;; | |
7035 | ||
7036 | rdos*) | |
7037 | lt_prog_compiler_static='-non_shared' | |
7038 | ;; | |
7039 | ||
7040 | solaris*) | |
7041 | lt_prog_compiler_pic='-KPIC' | |
7042 | lt_prog_compiler_static='-Bstatic' | |
7043 | case $cc_basename in | |
7044 | f77* | f90* | f95*) | |
7045 | lt_prog_compiler_wl='-Qoption ld ';; | |
7046 | *) | |
7047 | lt_prog_compiler_wl='-Wl,';; | |
7048 | esac | |
7049 | ;; | |
7050 | ||
7051 | sunos4*) | |
7052 | lt_prog_compiler_wl='-Qoption ld ' | |
7053 | lt_prog_compiler_pic='-PIC' | |
7054 | lt_prog_compiler_static='-Bstatic' | |
7055 | ;; | |
7056 | ||
7057 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7058 | lt_prog_compiler_wl='-Wl,' | |
7059 | lt_prog_compiler_pic='-KPIC' | |
7060 | lt_prog_compiler_static='-Bstatic' | |
7061 | ;; | |
7062 | ||
7063 | sysv4*MP*) | |
7064 | if test -d /usr/nec ;then | |
7065 | lt_prog_compiler_pic='-Kconform_pic' | |
7066 | lt_prog_compiler_static='-Bstatic' | |
7067 | fi | |
7068 | ;; | |
7069 | ||
7070 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7071 | lt_prog_compiler_wl='-Wl,' | |
7072 | lt_prog_compiler_pic='-KPIC' | |
7073 | lt_prog_compiler_static='-Bstatic' | |
7074 | ;; | |
7075 | ||
7076 | unicos*) | |
7077 | lt_prog_compiler_wl='-Wl,' | |
7078 | lt_prog_compiler_can_build_shared=no | |
7079 | ;; | |
7080 | ||
7081 | uts4*) | |
7082 | lt_prog_compiler_pic='-pic' | |
7083 | lt_prog_compiler_static='-Bstatic' | |
7084 | ;; | |
7085 | ||
7086 | *) | |
7087 | lt_prog_compiler_can_build_shared=no | |
7088 | ;; | |
7089 | esac | |
7090 | fi | |
7091 | ||
7092 | case $host_os in | |
7093 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7094 | *djgpp*) | |
7095 | lt_prog_compiler_pic= | |
7096 | ;; | |
7097 | *) | |
7098 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7099 | ;; | |
7100 | esac | |
7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7102 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | # | |
7110 | # Check to make sure the PIC flag actually works. | |
7111 | # | |
7112 | if test -n "$lt_prog_compiler_pic"; then | |
7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7114 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7115 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7116 | $as_echo_n "(cached) " >&6 | |
7117 | else | |
7118 | lt_cv_prog_compiler_pic_works=no | |
7119 | ac_outfile=conftest.$ac_objext | |
7120 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7121 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7122 | # Insert the option either (1) after the last *FLAGS variable, or | |
7123 | # (2) before a word containing "conftest.", or (3) at the end. | |
7124 | # Note that $ac_compile itself does not contain backslashes and begins | |
7125 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7126 | # The option is referenced via a variable to avoid confusing sed. | |
7127 | lt_compile=`echo "$ac_compile" | $SED \ | |
7128 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7129 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7130 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 7131 | (eval echo "\"\$as_me:7131: $lt_compile\"" >&5) |
9c60689e DWT |
7132 | (eval "$lt_compile" 2>conftest.err) |
7133 | ac_status=$? | |
7134 | cat conftest.err >&5 | |
794e88e7 | 7135 | echo "$as_me:7135: \$? = $ac_status" >&5 |
9c60689e DWT |
7136 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7137 | # The compiler can only warn and ignore the option if not recognized | |
7138 | # So say no if there are warnings other than the usual output. | |
7139 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7140 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7141 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7142 | lt_cv_prog_compiler_pic_works=yes | |
7143 | fi | |
7144 | fi | |
7145 | $RM conftest* | |
7146 | ||
7147 | fi | |
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7149 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7150 | ||
7151 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7152 | case $lt_prog_compiler_pic in | |
7153 | "" | " "*) ;; | |
7154 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7155 | esac | |
7156 | else | |
7157 | lt_prog_compiler_pic= | |
7158 | lt_prog_compiler_can_build_shared=no | |
7159 | fi | |
7160 | ||
7161 | fi | |
7162 | ||
7163 | ||
7164 | ||
7165 | ||
7166 | ||
7167 | ||
7168 | # | |
7169 | # Check to make sure the static flag actually works. | |
7170 | # | |
7171 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7173 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7174 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7175 | $as_echo_n "(cached) " >&6 | |
7176 | else | |
7177 | lt_cv_prog_compiler_static_works=no | |
7178 | save_LDFLAGS="$LDFLAGS" | |
7179 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7180 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7181 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7182 | # The linker can only warn and ignore the option if not recognized | |
7183 | # So say no if there are warnings | |
7184 | if test -s conftest.err; then | |
7185 | # Append any errors to the config.log. | |
7186 | cat conftest.err 1>&5 | |
7187 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7188 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7189 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7190 | lt_cv_prog_compiler_static_works=yes | |
7191 | fi | |
7192 | else | |
7193 | lt_cv_prog_compiler_static_works=yes | |
7194 | fi | |
7195 | fi | |
7196 | $RM -r conftest* | |
7197 | LDFLAGS="$save_LDFLAGS" | |
7198 | ||
7199 | fi | |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7201 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7202 | ||
7203 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7204 | : | |
7205 | else | |
7206 | lt_prog_compiler_static= | |
7207 | fi | |
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7216 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7217 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7218 | $as_echo_n "(cached) " >&6 | |
7219 | else | |
7220 | lt_cv_prog_compiler_c_o=no | |
7221 | $RM -r conftest 2>/dev/null | |
7222 | mkdir conftest | |
7223 | cd conftest | |
7224 | mkdir out | |
7225 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7226 | ||
7227 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7228 | # Insert the option either (1) after the last *FLAGS variable, or | |
7229 | # (2) before a word containing "conftest.", or (3) at the end. | |
7230 | # Note that $ac_compile itself does not contain backslashes and begins | |
7231 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7232 | lt_compile=`echo "$ac_compile" | $SED \ | |
7233 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7234 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7235 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 7236 | (eval echo "\"\$as_me:7236: $lt_compile\"" >&5) |
9c60689e DWT |
7237 | (eval "$lt_compile" 2>out/conftest.err) |
7238 | ac_status=$? | |
7239 | cat out/conftest.err >&5 | |
794e88e7 | 7240 | echo "$as_me:7240: \$? = $ac_status" >&5 |
9c60689e DWT |
7241 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7242 | then | |
7243 | # The compiler can only warn and ignore the option if not recognized | |
7244 | # So say no if there are warnings | |
7245 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7246 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7247 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7248 | lt_cv_prog_compiler_c_o=yes | |
7249 | fi | |
7250 | fi | |
7251 | chmod u+w . 2>&5 | |
7252 | $RM conftest* | |
7253 | # SGI C++ compiler will create directory out/ii_files/ for | |
7254 | # template instantiation | |
7255 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7256 | $RM out/* && rmdir out | |
7257 | cd .. | |
7258 | $RM -r conftest | |
7259 | $RM conftest* | |
7260 | ||
7261 | fi | |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7263 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7264 | ||
7265 | ||
7266 | ||
7267 | ||
7268 | ||
7269 | ||
7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7271 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7272 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7273 | $as_echo_n "(cached) " >&6 | |
7274 | else | |
7275 | lt_cv_prog_compiler_c_o=no | |
7276 | $RM -r conftest 2>/dev/null | |
7277 | mkdir conftest | |
7278 | cd conftest | |
7279 | mkdir out | |
7280 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7281 | ||
7282 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7283 | # Insert the option either (1) after the last *FLAGS variable, or | |
7284 | # (2) before a word containing "conftest.", or (3) at the end. | |
7285 | # Note that $ac_compile itself does not contain backslashes and begins | |
7286 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7287 | lt_compile=`echo "$ac_compile" | $SED \ | |
7288 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7289 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7290 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 7291 | (eval echo "\"\$as_me:7291: $lt_compile\"" >&5) |
9c60689e DWT |
7292 | (eval "$lt_compile" 2>out/conftest.err) |
7293 | ac_status=$? | |
7294 | cat out/conftest.err >&5 | |
794e88e7 | 7295 | echo "$as_me:7295: \$? = $ac_status" >&5 |
9c60689e DWT |
7296 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7297 | then | |
7298 | # The compiler can only warn and ignore the option if not recognized | |
7299 | # So say no if there are warnings | |
7300 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7301 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7302 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7303 | lt_cv_prog_compiler_c_o=yes | |
7304 | fi | |
7305 | fi | |
7306 | chmod u+w . 2>&5 | |
7307 | $RM conftest* | |
7308 | # SGI C++ compiler will create directory out/ii_files/ for | |
7309 | # template instantiation | |
7310 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7311 | $RM out/* && rmdir out | |
7312 | cd .. | |
7313 | $RM -r conftest | |
7314 | $RM conftest* | |
7315 | ||
7316 | fi | |
7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7318 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7319 | ||
7320 | ||
7321 | ||
7322 | ||
7323 | hard_links="nottested" | |
7324 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7325 | # do not overwrite the value of need_locks provided by the user | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7327 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7328 | hard_links=yes | |
7329 | $RM conftest* | |
7330 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7331 | touch conftest.a | |
7332 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7333 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7335 | $as_echo "$hard_links" >&6; } | |
7336 | if test "$hard_links" = no; then | |
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7338 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7339 | need_locks=warn | |
7340 | fi | |
7341 | else | |
7342 | need_locks=no | |
7343 | fi | |
7344 | ||
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7351 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7352 | ||
7353 | runpath_var= | |
7354 | allow_undefined_flag= | |
7355 | always_export_symbols=no | |
7356 | archive_cmds= | |
7357 | archive_expsym_cmds= | |
7358 | compiler_needs_object=no | |
7359 | enable_shared_with_static_runtimes=no | |
7360 | export_dynamic_flag_spec= | |
7361 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7362 | hardcode_automatic=no | |
7363 | hardcode_direct=no | |
7364 | hardcode_direct_absolute=no | |
7365 | hardcode_libdir_flag_spec= | |
7366 | hardcode_libdir_flag_spec_ld= | |
7367 | hardcode_libdir_separator= | |
7368 | hardcode_minus_L=no | |
7369 | hardcode_shlibpath_var=unsupported | |
7370 | inherit_rpath=no | |
7371 | link_all_deplibs=unknown | |
7372 | module_cmds= | |
7373 | module_expsym_cmds= | |
7374 | old_archive_from_new_cmds= | |
7375 | old_archive_from_expsyms_cmds= | |
7376 | thread_safe_flag_spec= | |
7377 | whole_archive_flag_spec= | |
7378 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7379 | # included in the symbol list | |
7380 | include_expsyms= | |
7381 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7382 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7383 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7384 | # as well as any symbol that contains `d'. | |
7385 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7386 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7387 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7388 | # the symbol is explicitly referenced. Since portable code cannot | |
7389 | # rely on this symbol name, it's probably fine to never include it in | |
7390 | # preloaded symbol tables. | |
7391 | # Exclude shared library initialization/finalization symbols. | |
7392 | extract_expsyms_cmds= | |
7393 | ||
7394 | case $host_os in | |
7395 | cygwin* | mingw* | pw32* | cegcc*) | |
7396 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7397 | # When not using gcc, we currently assume that we are using | |
7398 | # Microsoft Visual C++. | |
7399 | if test "$GCC" != yes; then | |
7400 | with_gnu_ld=no | |
7401 | fi | |
7402 | ;; | |
7403 | interix*) | |
7404 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7405 | with_gnu_ld=yes | |
7406 | ;; | |
7407 | openbsd*) | |
7408 | with_gnu_ld=no | |
7409 | ;; | |
1504c9b8 DWT |
7410 | linux* | k*bsd*-gnu) |
7411 | link_all_deplibs=no | |
7412 | ;; | |
9c60689e DWT |
7413 | esac |
7414 | ||
7415 | ld_shlibs=yes | |
7416 | if test "$with_gnu_ld" = yes; then | |
7417 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7418 | wlarc='${wl}' | |
7419 | ||
7420 | # Set some defaults for GNU ld with shared library support. These | |
7421 | # are reset later if shared libraries are not supported. Putting them | |
7422 | # here allows them to be overridden if necessary. | |
7423 | runpath_var=LD_RUN_PATH | |
7424 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7425 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7426 | # ancient GNU ld didn't support --whole-archive et. al. | |
7427 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7428 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7429 | else | |
7430 | whole_archive_flag_spec= | |
7431 | fi | |
7432 | supports_anon_versioning=no | |
7433 | case `$LD -v 2>&1` in | |
1504c9b8 | 7434 | *GNU\ gold*) supports_anon_versioning=yes ;; |
9c60689e DWT |
7435 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7436 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7437 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7438 | *\ 2.11.*) ;; # other 2.11 versions | |
7439 | *) supports_anon_versioning=yes ;; | |
7440 | esac | |
7441 | ||
7442 | # See if GNU ld supports shared libraries. | |
7443 | case $host_os in | |
7444 | aix[3-9]*) | |
7445 | # On AIX/PPC, the GNU linker is very broken | |
7446 | if test "$host_cpu" != ia64; then | |
7447 | ld_shlibs=no | |
7448 | cat <<_LT_EOF 1>&2 | |
7449 | ||
7450 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7451 | *** to be unable to reliably create shared libraries on AIX. | |
7452 | *** Therefore, libtool is disabling shared libraries support. If you | |
7453 | *** really care for shared libraries, you may want to modify your PATH | |
7454 | *** so that a non-GNU linker is found, and then restart. | |
7455 | ||
7456 | _LT_EOF | |
7457 | fi | |
7458 | ;; | |
7459 | ||
7460 | amigaos*) | |
7461 | case $host_cpu in | |
7462 | powerpc) | |
7463 | # see comment about AmigaOS4 .so support | |
7464 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7465 | archive_expsym_cmds='' | |
7466 | ;; | |
7467 | m68k) | |
7468 | 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)' | |
7469 | hardcode_libdir_flag_spec='-L$libdir' | |
7470 | hardcode_minus_L=yes | |
7471 | ;; | |
7472 | esac | |
7473 | ;; | |
7474 | ||
7475 | beos*) | |
7476 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7477 | allow_undefined_flag=unsupported | |
7478 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7479 | # support --undefined. This deserves some investigation. FIXME | |
7480 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7481 | else | |
7482 | ld_shlibs=no | |
7483 | fi | |
7484 | ;; | |
7485 | ||
7486 | cygwin* | mingw* | pw32* | cegcc*) | |
7487 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7488 | # as there is no search path for DLLs. | |
7489 | hardcode_libdir_flag_spec='-L$libdir' | |
7490 | allow_undefined_flag=unsupported | |
7491 | always_export_symbols=no | |
7492 | enable_shared_with_static_runtimes=yes | |
7493 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7494 | ||
7495 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7496 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7497 | # If the export-symbols file already is a .def file (1st line | |
7498 | # is EXPORTS), use it as is; otherwise, prepend... | |
7499 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7500 | cp $export_symbols $output_objdir/$soname.def; | |
7501 | else | |
7502 | echo EXPORTS > $output_objdir/$soname.def; | |
7503 | cat $export_symbols >> $output_objdir/$soname.def; | |
7504 | fi~ | |
7505 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7506 | else | |
7507 | ld_shlibs=no | |
7508 | fi | |
7509 | ;; | |
7510 | ||
7511 | interix[3-9]*) | |
7512 | hardcode_direct=no | |
7513 | hardcode_shlibpath_var=no | |
7514 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7515 | export_dynamic_flag_spec='${wl}-E' | |
7516 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7517 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7518 | # default) and relocated if they conflict, which is a slow very memory | |
7519 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7520 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7521 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7522 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7523 | 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' | |
7524 | ;; | |
7525 | ||
1504c9b8 | 7526 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
7527 | tmp_diet=no |
7528 | if test "$host_os" = linux-dietlibc; then | |
7529 | case $cc_basename in | |
7530 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7531 | esac | |
7532 | fi | |
7533 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7534 | && test "$tmp_diet" = no | |
7535 | then | |
7536 | tmp_addflag= | |
7537 | tmp_sharedflag='-shared' | |
7538 | case $cc_basename,$host_cpu in | |
7539 | pgcc*) # Portland Group C compiler | |
7540 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7541 | tmp_addflag=' $pic_flag' | |
7542 | ;; | |
7543 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7544 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7545 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7546 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7547 | tmp_addflag=' -i_dynamic' ;; | |
7548 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7549 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7550 | ifc* | ifort*) # Intel Fortran compiler | |
7551 | tmp_addflag=' -nofor_main' ;; | |
7552 | lf95*) # Lahey Fortran 8.1 | |
7553 | whole_archive_flag_spec= | |
7554 | tmp_sharedflag='--shared' ;; | |
7555 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7556 | tmp_sharedflag='-qmkshrobj' | |
7557 | tmp_addflag= ;; | |
7558 | esac | |
7559 | case `$CC -V 2>&1 | sed 5q` in | |
7560 | *Sun\ C*) # Sun C 5.9 | |
7561 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7562 | compiler_needs_object=yes | |
7563 | tmp_sharedflag='-G' ;; | |
7564 | *Sun\ F*) # Sun Fortran 8.3 | |
7565 | tmp_sharedflag='-G' ;; | |
7566 | esac | |
7567 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7568 | ||
7569 | if test "x$supports_anon_versioning" = xyes; then | |
7570 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7571 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7572 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7573 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7574 | fi | |
7575 | ||
7576 | case $cc_basename in | |
7577 | xlf*) | |
7578 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7579 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7580 | hardcode_libdir_flag_spec= | |
7581 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7582 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7583 | if test "x$supports_anon_versioning" = xyes; then | |
7584 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7585 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7586 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7587 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7588 | fi | |
7589 | ;; | |
7590 | esac | |
7591 | else | |
7592 | ld_shlibs=no | |
7593 | fi | |
7594 | ;; | |
7595 | ||
1504c9b8 | 7596 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
7597 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
7598 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7599 | wlarc= | |
7600 | else | |
7601 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7602 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7603 | fi | |
7604 | ;; | |
7605 | ||
7606 | solaris*) | |
7607 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7608 | ld_shlibs=no | |
7609 | cat <<_LT_EOF 1>&2 | |
7610 | ||
7611 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7612 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7613 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7614 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7615 | *** your PATH or compiler configuration so that the native linker is | |
7616 | *** used, and then restart. | |
7617 | ||
7618 | _LT_EOF | |
7619 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7620 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7621 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7622 | else | |
7623 | ld_shlibs=no | |
7624 | fi | |
7625 | ;; | |
7626 | ||
7627 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7628 | case `$LD -v 2>&1` in | |
7629 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7630 | ld_shlibs=no | |
7631 | cat <<_LT_EOF 1>&2 | |
7632 | ||
7633 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7634 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7635 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7636 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7637 | *** your PATH or compiler configuration so that the native linker is | |
7638 | *** used, and then restart. | |
7639 | ||
7640 | _LT_EOF | |
7641 | ;; | |
7642 | *) | |
7643 | # For security reasons, it is highly recommended that you always | |
7644 | # use absolute paths for naming shared libraries, and exclude the | |
7645 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7646 | # requires that you compile everything twice, which is a pain. | |
7647 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7648 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7649 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7650 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7651 | else | |
7652 | ld_shlibs=no | |
7653 | fi | |
7654 | ;; | |
7655 | esac | |
7656 | ;; | |
7657 | ||
7658 | sunos4*) | |
7659 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7660 | wlarc= | |
7661 | hardcode_direct=yes | |
7662 | hardcode_shlibpath_var=no | |
7663 | ;; | |
7664 | ||
7665 | *) | |
7666 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7667 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7668 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7669 | else | |
7670 | ld_shlibs=no | |
7671 | fi | |
7672 | ;; | |
7673 | esac | |
7674 | ||
7675 | if test "$ld_shlibs" = no; then | |
7676 | runpath_var= | |
7677 | hardcode_libdir_flag_spec= | |
7678 | export_dynamic_flag_spec= | |
7679 | whole_archive_flag_spec= | |
7680 | fi | |
7681 | else | |
7682 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7683 | case $host_os in | |
7684 | aix3*) | |
7685 | allow_undefined_flag=unsupported | |
7686 | always_export_symbols=yes | |
7687 | 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' | |
7688 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7689 | # are no directories specified by -L. | |
7690 | hardcode_minus_L=yes | |
7691 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7692 | # Neither direct hardcoding nor static linking is supported with a | |
7693 | # broken collect2. | |
7694 | hardcode_direct=unsupported | |
7695 | fi | |
7696 | ;; | |
7697 | ||
7698 | aix[4-9]*) | |
7699 | if test "$host_cpu" = ia64; then | |
7700 | # On IA64, the linker does run time linking by default, so we don't | |
7701 | # have to do anything special. | |
7702 | aix_use_runtimelinking=no | |
7703 | exp_sym_flag='-Bexport' | |
7704 | no_entry_flag="" | |
7705 | else | |
7706 | # If we're using GNU nm, then we don't want the "-C" option. | |
7707 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7708 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7709 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7710 | else | |
7711 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7712 | fi | |
7713 | aix_use_runtimelinking=no | |
7714 | ||
7715 | # Test if we are trying to use run time linking or normal | |
7716 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7717 | # need to do runtime linking. | |
7718 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7719 | for ld_flag in $LDFLAGS; do | |
7720 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7721 | aix_use_runtimelinking=yes | |
7722 | break | |
7723 | fi | |
7724 | done | |
7725 | ;; | |
7726 | esac | |
7727 | ||
7728 | exp_sym_flag='-bexport' | |
7729 | no_entry_flag='-bnoentry' | |
7730 | fi | |
7731 | ||
7732 | # When large executables or shared objects are built, AIX ld can | |
7733 | # have problems creating the table of contents. If linking a library | |
7734 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7735 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7736 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7737 | ||
7738 | archive_cmds='' | |
7739 | hardcode_direct=yes | |
7740 | hardcode_direct_absolute=yes | |
7741 | hardcode_libdir_separator=':' | |
7742 | link_all_deplibs=yes | |
7743 | file_list_spec='${wl}-f,' | |
7744 | ||
7745 | if test "$GCC" = yes; then | |
7746 | case $host_os in aix4.[012]|aix4.[012].*) | |
7747 | # We only want to do this on AIX 4.2 and lower, the check | |
7748 | # below for broken collect2 doesn't work under 4.3+ | |
7749 | collect2name=`${CC} -print-prog-name=collect2` | |
7750 | if test -f "$collect2name" && | |
7751 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7752 | then | |
7753 | # We have reworked collect2 | |
7754 | : | |
7755 | else | |
7756 | # We have old collect2 | |
7757 | hardcode_direct=unsupported | |
7758 | # It fails to find uninstalled libraries when the uninstalled | |
7759 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7760 | # to unsupported forces relinking | |
7761 | hardcode_minus_L=yes | |
7762 | hardcode_libdir_flag_spec='-L$libdir' | |
7763 | hardcode_libdir_separator= | |
7764 | fi | |
7765 | ;; | |
7766 | esac | |
7767 | shared_flag='-shared' | |
7768 | if test "$aix_use_runtimelinking" = yes; then | |
7769 | shared_flag="$shared_flag "'${wl}-G' | |
7770 | fi | |
1504c9b8 | 7771 | link_all_deplibs=no |
9c60689e DWT |
7772 | else |
7773 | # not using gcc | |
7774 | if test "$host_cpu" = ia64; then | |
7775 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7776 | # chokes on -Wl,-G. The following line is correct: | |
7777 | shared_flag='-G' | |
7778 | else | |
7779 | if test "$aix_use_runtimelinking" = yes; then | |
7780 | shared_flag='${wl}-G' | |
7781 | else | |
7782 | shared_flag='${wl}-bM:SRE' | |
7783 | fi | |
7784 | fi | |
7785 | fi | |
7786 | ||
7787 | export_dynamic_flag_spec='${wl}-bexpall' | |
7788 | # It seems that -bexpall does not export symbols beginning with | |
7789 | # underscore (_), so it is better to generate a list of symbols to export. | |
7790 | always_export_symbols=yes | |
7791 | if test "$aix_use_runtimelinking" = yes; then | |
7792 | # Warning - without using the other runtime loading flags (-brtl), | |
7793 | # -berok will link without error, but may produce a broken library. | |
7794 | allow_undefined_flag='-berok' | |
7795 | # Determine the default libpath from the value encoded in an | |
7796 | # empty executable. | |
7797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7798 | /* end confdefs.h. */ | |
7799 | ||
7800 | int | |
7801 | main () | |
7802 | { | |
7803 | ||
7804 | ; | |
7805 | return 0; | |
7806 | } | |
7807 | _ACEOF | |
7808 | if ac_fn_c_try_link "$LINENO"; then : | |
7809 | ||
7810 | lt_aix_libpath_sed=' | |
7811 | /Import File Strings/,/^$/ { | |
7812 | /^0/ { | |
7813 | s/^0 *\(.*\)$/\1/ | |
7814 | p | |
7815 | } | |
7816 | }' | |
7817 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7818 | # Check for a 64-bit object if we didn't find anything. | |
7819 | if test -z "$aix_libpath"; then | |
7820 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7821 | fi | |
7822 | fi | |
7823 | rm -f core conftest.err conftest.$ac_objext \ | |
7824 | conftest$ac_exeext conftest.$ac_ext | |
7825 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7826 | ||
7827 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7828 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7829 | else | |
7830 | if test "$host_cpu" = ia64; then | |
7831 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7832 | allow_undefined_flag="-z nodefs" | |
7833 | 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" | |
7834 | else | |
7835 | # Determine the default libpath from the value encoded in an | |
7836 | # empty executable. | |
7837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7838 | /* end confdefs.h. */ | |
7839 | ||
7840 | int | |
7841 | main () | |
7842 | { | |
7843 | ||
7844 | ; | |
7845 | return 0; | |
7846 | } | |
7847 | _ACEOF | |
7848 | if ac_fn_c_try_link "$LINENO"; then : | |
7849 | ||
7850 | lt_aix_libpath_sed=' | |
7851 | /Import File Strings/,/^$/ { | |
7852 | /^0/ { | |
7853 | s/^0 *\(.*\)$/\1/ | |
7854 | p | |
7855 | } | |
7856 | }' | |
7857 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7858 | # Check for a 64-bit object if we didn't find anything. | |
7859 | if test -z "$aix_libpath"; then | |
7860 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7861 | fi | |
7862 | fi | |
7863 | rm -f core conftest.err conftest.$ac_objext \ | |
7864 | conftest$ac_exeext conftest.$ac_ext | |
7865 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7866 | ||
7867 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7868 | # Warning - without using the other run time loading flags, | |
7869 | # -berok will link without error, but may produce a broken library. | |
7870 | no_undefined_flag=' ${wl}-bernotok' | |
7871 | allow_undefined_flag=' ${wl}-berok' | |
7872 | # Exported symbols can be pulled into shared objects from archives | |
7873 | whole_archive_flag_spec='$convenience' | |
7874 | archive_cmds_need_lc=yes | |
7875 | # This is similar to how AIX traditionally builds its shared libraries. | |
7876 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7877 | fi | |
7878 | fi | |
7879 | ;; | |
7880 | ||
7881 | amigaos*) | |
7882 | case $host_cpu in | |
7883 | powerpc) | |
7884 | # see comment about AmigaOS4 .so support | |
7885 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7886 | archive_expsym_cmds='' | |
7887 | ;; | |
7888 | m68k) | |
7889 | 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)' | |
7890 | hardcode_libdir_flag_spec='-L$libdir' | |
7891 | hardcode_minus_L=yes | |
7892 | ;; | |
7893 | esac | |
7894 | ;; | |
7895 | ||
7896 | bsdi[45]*) | |
7897 | export_dynamic_flag_spec=-rdynamic | |
7898 | ;; | |
7899 | ||
7900 | cygwin* | mingw* | pw32* | cegcc*) | |
7901 | # When not using gcc, we currently assume that we are using | |
7902 | # Microsoft Visual C++. | |
7903 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7904 | # no search path for DLLs. | |
7905 | hardcode_libdir_flag_spec=' ' | |
7906 | allow_undefined_flag=unsupported | |
7907 | # Tell ltmain to make .lib files, not .a files. | |
7908 | libext=lib | |
7909 | # Tell ltmain to make .dll files, not .so files. | |
7910 | shrext_cmds=".dll" | |
7911 | # FIXME: Setting linknames here is a bad hack. | |
7912 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7913 | # The linker will automatically build a .lib file if we build a DLL. | |
7914 | old_archive_from_new_cmds='true' | |
7915 | # FIXME: Should let the user specify the lib program. | |
7916 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7917 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7918 | enable_shared_with_static_runtimes=yes | |
7919 | ;; | |
7920 | ||
7921 | darwin* | rhapsody*) | |
7922 | ||
7923 | ||
7924 | archive_cmds_need_lc=no | |
7925 | hardcode_direct=no | |
7926 | hardcode_automatic=yes | |
7927 | hardcode_shlibpath_var=unsupported | |
7928 | whole_archive_flag_spec='' | |
7929 | link_all_deplibs=yes | |
7930 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7931 | case $cc_basename in | |
7932 | ifort*) _lt_dar_can_shared=yes ;; | |
7933 | *) _lt_dar_can_shared=$GCC ;; | |
7934 | esac | |
7935 | if test "$_lt_dar_can_shared" = "yes"; then | |
7936 | output_verbose_link_cmd=echo | |
7937 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7938 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7939 | 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}" | |
7940 | 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}" | |
7941 | ||
7942 | else | |
7943 | ld_shlibs=no | |
7944 | fi | |
7945 | ||
7946 | ;; | |
7947 | ||
7948 | dgux*) | |
7949 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7950 | hardcode_libdir_flag_spec='-L$libdir' | |
7951 | hardcode_shlibpath_var=no | |
7952 | ;; | |
7953 | ||
7954 | freebsd1*) | |
7955 | ld_shlibs=no | |
7956 | ;; | |
7957 | ||
7958 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7959 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7960 | # does not break anything, and helps significantly (at the cost of a little | |
7961 | # extra space). | |
7962 | freebsd2.2*) | |
7963 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7964 | hardcode_libdir_flag_spec='-R$libdir' | |
7965 | hardcode_direct=yes | |
7966 | hardcode_shlibpath_var=no | |
7967 | ;; | |
7968 | ||
7969 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7970 | freebsd2*) | |
7971 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7972 | hardcode_direct=yes | |
7973 | hardcode_minus_L=yes | |
7974 | hardcode_shlibpath_var=no | |
7975 | ;; | |
7976 | ||
7977 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7978 | freebsd* | dragonfly*) | |
7979 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7980 | hardcode_libdir_flag_spec='-R$libdir' | |
7981 | hardcode_direct=yes | |
7982 | hardcode_shlibpath_var=no | |
7983 | ;; | |
7984 | ||
7985 | hpux9*) | |
7986 | if test "$GCC" = yes; then | |
7987 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7988 | else | |
7989 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7990 | fi | |
7991 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7992 | hardcode_libdir_separator=: | |
7993 | hardcode_direct=yes | |
7994 | ||
7995 | # hardcode_minus_L: Not really in the search PATH, | |
7996 | # but as the default location of the library. | |
7997 | hardcode_minus_L=yes | |
7998 | export_dynamic_flag_spec='${wl}-E' | |
7999 | ;; | |
8000 | ||
8001 | hpux10*) | |
8002 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8003 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8004 | else | |
8005 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8006 | fi | |
8007 | if test "$with_gnu_ld" = no; then | |
8008 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8009 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8010 | hardcode_libdir_separator=: | |
8011 | hardcode_direct=yes | |
8012 | hardcode_direct_absolute=yes | |
8013 | export_dynamic_flag_spec='${wl}-E' | |
8014 | # hardcode_minus_L: Not really in the search PATH, | |
8015 | # but as the default location of the library. | |
8016 | hardcode_minus_L=yes | |
8017 | fi | |
8018 | ;; | |
8019 | ||
8020 | hpux11*) | |
8021 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8022 | case $host_cpu in | |
8023 | hppa*64*) | |
8024 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8025 | ;; | |
8026 | ia64*) | |
8027 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8028 | ;; | |
8029 | *) | |
8030 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8031 | ;; | |
8032 | esac | |
8033 | else | |
8034 | case $host_cpu in | |
8035 | hppa*64*) | |
8036 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8037 | ;; | |
8038 | ia64*) | |
8039 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8040 | ;; | |
8041 | *) | |
8042 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8043 | ;; | |
8044 | esac | |
8045 | fi | |
8046 | if test "$with_gnu_ld" = no; then | |
8047 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8048 | hardcode_libdir_separator=: | |
8049 | ||
8050 | case $host_cpu in | |
8051 | hppa*64*|ia64*) | |
8052 | hardcode_direct=no | |
8053 | hardcode_shlibpath_var=no | |
8054 | ;; | |
8055 | *) | |
8056 | hardcode_direct=yes | |
8057 | hardcode_direct_absolute=yes | |
8058 | export_dynamic_flag_spec='${wl}-E' | |
8059 | ||
8060 | # hardcode_minus_L: Not really in the search PATH, | |
8061 | # but as the default location of the library. | |
8062 | hardcode_minus_L=yes | |
8063 | ;; | |
8064 | esac | |
8065 | fi | |
8066 | ;; | |
8067 | ||
8068 | irix5* | irix6* | nonstopux*) | |
8069 | if test "$GCC" = yes; then | |
8070 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8071 | # Try to use the -exported_symbol ld option, if it does not | |
8072 | # work, assume that -exports_file does not work either and | |
8073 | # implicitly export all symbols. | |
8074 | save_LDFLAGS="$LDFLAGS" | |
8075 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8077 | /* end confdefs.h. */ | |
8078 | int foo(void) {} | |
8079 | _ACEOF | |
8080 | if ac_fn_c_try_link "$LINENO"; then : | |
8081 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8082 | ||
8083 | fi | |
8084 | rm -f core conftest.err conftest.$ac_objext \ | |
8085 | conftest$ac_exeext conftest.$ac_ext | |
8086 | LDFLAGS="$save_LDFLAGS" | |
8087 | else | |
8088 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8089 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8090 | fi | |
8091 | archive_cmds_need_lc='no' | |
8092 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8093 | hardcode_libdir_separator=: | |
8094 | inherit_rpath=yes | |
8095 | link_all_deplibs=yes | |
8096 | ;; | |
8097 | ||
1504c9b8 | 8098 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
8099 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8100 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8101 | else | |
8102 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8103 | fi | |
8104 | hardcode_libdir_flag_spec='-R$libdir' | |
8105 | hardcode_direct=yes | |
8106 | hardcode_shlibpath_var=no | |
8107 | ;; | |
8108 | ||
8109 | newsos6) | |
8110 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8111 | hardcode_direct=yes | |
8112 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8113 | hardcode_libdir_separator=: | |
8114 | hardcode_shlibpath_var=no | |
8115 | ;; | |
8116 | ||
8117 | *nto* | *qnx*) | |
8118 | ;; | |
8119 | ||
8120 | openbsd*) | |
8121 | if test -f /usr/libexec/ld.so; then | |
8122 | hardcode_direct=yes | |
8123 | hardcode_shlibpath_var=no | |
8124 | hardcode_direct_absolute=yes | |
8125 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8126 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8127 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8128 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8129 | export_dynamic_flag_spec='${wl}-E' | |
8130 | else | |
8131 | case $host_os in | |
8132 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8133 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8134 | hardcode_libdir_flag_spec='-R$libdir' | |
8135 | ;; | |
8136 | *) | |
8137 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8138 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8139 | ;; | |
8140 | esac | |
8141 | fi | |
8142 | else | |
8143 | ld_shlibs=no | |
8144 | fi | |
8145 | ;; | |
8146 | ||
8147 | os2*) | |
8148 | hardcode_libdir_flag_spec='-L$libdir' | |
8149 | hardcode_minus_L=yes | |
8150 | allow_undefined_flag=unsupported | |
8151 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
8152 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8153 | ;; | |
8154 | ||
8155 | osf3*) | |
8156 | if test "$GCC" = yes; then | |
8157 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8158 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8159 | else | |
8160 | allow_undefined_flag=' -expect_unresolved \*' | |
8161 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8162 | fi | |
8163 | archive_cmds_need_lc='no' | |
8164 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8165 | hardcode_libdir_separator=: | |
8166 | ;; | |
8167 | ||
8168 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8169 | if test "$GCC" = yes; then | |
8170 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8171 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8172 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8173 | else | |
8174 | allow_undefined_flag=' -expect_unresolved \*' | |
8175 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8176 | 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~ | |
8177 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8178 | ||
8179 | # Both c and cxx compiler support -rpath directly | |
8180 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8181 | fi | |
8182 | archive_cmds_need_lc='no' | |
8183 | hardcode_libdir_separator=: | |
8184 | ;; | |
8185 | ||
8186 | solaris*) | |
8187 | no_undefined_flag=' -z defs' | |
8188 | if test "$GCC" = yes; then | |
8189 | wlarc='${wl}' | |
8190 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8191 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8192 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8193 | else | |
8194 | case `$CC -V 2>&1` in | |
8195 | *"Compilers 5.0"*) | |
8196 | wlarc='' | |
8197 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8198 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8199 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8200 | ;; | |
8201 | *) | |
8202 | wlarc='${wl}' | |
8203 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8204 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8205 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8206 | ;; | |
8207 | esac | |
8208 | fi | |
8209 | hardcode_libdir_flag_spec='-R$libdir' | |
8210 | hardcode_shlibpath_var=no | |
8211 | case $host_os in | |
8212 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8213 | *) | |
8214 | # The compiler driver will combine and reorder linker options, | |
8215 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8216 | # but is careful enough not to reorder. | |
8217 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8218 | if test "$GCC" = yes; then | |
8219 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8220 | else | |
8221 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8222 | fi | |
8223 | ;; | |
8224 | esac | |
8225 | link_all_deplibs=yes | |
8226 | ;; | |
8227 | ||
8228 | sunos4*) | |
8229 | if test "x$host_vendor" = xsequent; then | |
8230 | # Use $CC to link under sequent, because it throws in some extra .o | |
8231 | # files that make .init and .fini sections work. | |
8232 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8233 | else | |
8234 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8235 | fi | |
8236 | hardcode_libdir_flag_spec='-L$libdir' | |
8237 | hardcode_direct=yes | |
8238 | hardcode_minus_L=yes | |
8239 | hardcode_shlibpath_var=no | |
8240 | ;; | |
8241 | ||
8242 | sysv4) | |
8243 | case $host_vendor in | |
8244 | sni) | |
8245 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8246 | hardcode_direct=yes # is this really true??? | |
8247 | ;; | |
8248 | siemens) | |
8249 | ## LD is ld it makes a PLAMLIB | |
8250 | ## CC just makes a GrossModule. | |
8251 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8252 | reload_cmds='$CC -r -o $output$reload_objs' | |
8253 | hardcode_direct=no | |
8254 | ;; | |
8255 | motorola) | |
8256 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8257 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8258 | ;; | |
8259 | esac | |
8260 | runpath_var='LD_RUN_PATH' | |
8261 | hardcode_shlibpath_var=no | |
8262 | ;; | |
8263 | ||
8264 | sysv4.3*) | |
8265 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8266 | hardcode_shlibpath_var=no | |
8267 | export_dynamic_flag_spec='-Bexport' | |
8268 | ;; | |
8269 | ||
8270 | sysv4*MP*) | |
8271 | if test -d /usr/nec; then | |
8272 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8273 | hardcode_shlibpath_var=no | |
8274 | runpath_var=LD_RUN_PATH | |
8275 | hardcode_runpath_var=yes | |
8276 | ld_shlibs=yes | |
8277 | fi | |
8278 | ;; | |
8279 | ||
8280 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8281 | no_undefined_flag='${wl}-z,text' | |
8282 | archive_cmds_need_lc=no | |
8283 | hardcode_shlibpath_var=no | |
8284 | runpath_var='LD_RUN_PATH' | |
8285 | ||
8286 | if test "$GCC" = yes; then | |
8287 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8288 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8289 | else | |
8290 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8291 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8292 | fi | |
8293 | ;; | |
8294 | ||
8295 | sysv5* | sco3.2v5* | sco5v6*) | |
8296 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8297 | # link with -lc, and that would cause any symbols used from libc to | |
8298 | # always be unresolved, which means just about no library would | |
8299 | # ever link correctly. If we're not using GNU ld we use -z text | |
8300 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8301 | # as -z defs. | |
8302 | no_undefined_flag='${wl}-z,text' | |
8303 | allow_undefined_flag='${wl}-z,nodefs' | |
8304 | archive_cmds_need_lc=no | |
8305 | hardcode_shlibpath_var=no | |
8306 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8307 | hardcode_libdir_separator=':' | |
8308 | link_all_deplibs=yes | |
8309 | export_dynamic_flag_spec='${wl}-Bexport' | |
8310 | runpath_var='LD_RUN_PATH' | |
8311 | ||
8312 | if test "$GCC" = yes; then | |
8313 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8314 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8315 | else | |
8316 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8317 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8318 | fi | |
8319 | ;; | |
8320 | ||
8321 | uts4*) | |
8322 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8323 | hardcode_libdir_flag_spec='-L$libdir' | |
8324 | hardcode_shlibpath_var=no | |
8325 | ;; | |
8326 | ||
8327 | *) | |
8328 | ld_shlibs=no | |
8329 | ;; | |
8330 | esac | |
8331 | ||
8332 | if test x$host_vendor = xsni; then | |
8333 | case $host in | |
8334 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8335 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8336 | ;; | |
8337 | esac | |
8338 | fi | |
8339 | fi | |
8340 | ||
8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8342 | $as_echo "$ld_shlibs" >&6; } | |
8343 | test "$ld_shlibs" = no && can_build_shared=no | |
8344 | ||
8345 | with_gnu_ld=$with_gnu_ld | |
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | ||
8353 | ||
8354 | ||
8355 | ||
8356 | ||
8357 | ||
8358 | ||
8359 | ||
8360 | ||
8361 | # | |
8362 | # Do we need to explicitly link libc? | |
8363 | # | |
8364 | case "x$archive_cmds_need_lc" in | |
8365 | x|xyes) | |
8366 | # Assume -lc should be added | |
8367 | archive_cmds_need_lc=yes | |
8368 | ||
8369 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8370 | case $archive_cmds in | |
8371 | *'~'*) | |
8372 | # FIXME: we may have to deal with multi-command sequences. | |
8373 | ;; | |
8374 | '$CC '*) | |
8375 | # Test whether the compiler implicitly links with -lc since on some | |
8376 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8377 | # to ld, don't add -lc before -lgcc. | |
8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8379 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8380 | $RM conftest* | |
8381 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8382 | ||
8383 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8384 | (eval $ac_compile) 2>&5 | |
8385 | ac_status=$? | |
8386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8387 | test $ac_status = 0; } 2>conftest.err; then | |
8388 | soname=conftest | |
8389 | lib=conftest | |
8390 | libobjs=conftest.$ac_objext | |
8391 | deplibs= | |
8392 | wl=$lt_prog_compiler_wl | |
8393 | pic_flag=$lt_prog_compiler_pic | |
8394 | compiler_flags=-v | |
8395 | linker_flags=-v | |
8396 | verstring= | |
8397 | output_objdir=. | |
8398 | libname=conftest | |
8399 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8400 | allow_undefined_flag= | |
8401 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8402 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8403 | ac_status=$? | |
8404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8405 | test $ac_status = 0; } | |
8406 | then | |
8407 | archive_cmds_need_lc=no | |
8408 | else | |
8409 | archive_cmds_need_lc=yes | |
8410 | fi | |
8411 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8412 | else | |
8413 | cat conftest.err 1>&5 | |
8414 | fi | |
8415 | $RM conftest* | |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8417 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8418 | ;; | |
8419 | esac | |
8420 | fi | |
8421 | ;; | |
8422 | esac | |
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
8453 | ||
8454 | ||
8455 | ||
8456 | ||
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8578 | ||
8579 | ||
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8581 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8582 | ||
8583 | if test "$GCC" = yes; then | |
8584 | case $host_os in | |
8585 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8586 | *) lt_awk_arg="/^libraries:/" ;; | |
8587 | esac | |
8588 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8589 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8590 | # if the path contains ";" then we assume it to be the separator | |
8591 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8592 | # assumed that no part of a normal pathname contains ";" but that should | |
8593 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8594 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8595 | else | |
8596 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8597 | fi | |
8598 | # Ok, now we have the path, separated by spaces, we can step through it | |
8599 | # and add multilib dir if necessary. | |
8600 | lt_tmp_lt_search_path_spec= | |
8601 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8602 | for lt_sys_path in $lt_search_path_spec; do | |
8603 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8604 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8605 | else | |
8606 | test -d "$lt_sys_path" && \ | |
8607 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8608 | fi | |
8609 | done | |
8610 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8611 | BEGIN {RS=" "; FS="/|\n";} { | |
8612 | lt_foo=""; | |
8613 | lt_count=0; | |
8614 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8615 | if ($lt_i != "" && $lt_i != ".") { | |
8616 | if ($lt_i == "..") { | |
8617 | lt_count++; | |
8618 | } else { | |
8619 | if (lt_count == 0) { | |
8620 | lt_foo="/" $lt_i lt_foo; | |
8621 | } else { | |
8622 | lt_count--; | |
8623 | } | |
8624 | } | |
8625 | } | |
8626 | } | |
8627 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8628 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8629 | }'` | |
8630 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8631 | else | |
8632 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8633 | fi | |
8634 | library_names_spec= | |
8635 | libname_spec='lib$name' | |
8636 | soname_spec= | |
8637 | shrext_cmds=".so" | |
8638 | postinstall_cmds= | |
8639 | postuninstall_cmds= | |
8640 | finish_cmds= | |
8641 | finish_eval= | |
8642 | shlibpath_var= | |
8643 | shlibpath_overrides_runpath=unknown | |
8644 | version_type=none | |
8645 | dynamic_linker="$host_os ld.so" | |
8646 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8647 | need_lib_prefix=unknown | |
8648 | hardcode_into_libs=no | |
8649 | ||
8650 | # when you set need_version to no, make sure it does not cause -set_version | |
8651 | # flags to be left without arguments | |
8652 | need_version=unknown | |
8653 | ||
8654 | case $host_os in | |
8655 | aix3*) | |
8656 | version_type=linux | |
8657 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8658 | shlibpath_var=LIBPATH | |
8659 | ||
8660 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8661 | soname_spec='${libname}${release}${shared_ext}$major' | |
8662 | ;; | |
8663 | ||
8664 | aix[4-9]*) | |
8665 | version_type=linux | |
8666 | need_lib_prefix=no | |
8667 | need_version=no | |
8668 | hardcode_into_libs=yes | |
8669 | if test "$host_cpu" = ia64; then | |
8670 | # AIX 5 supports IA64 | |
8671 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8672 | shlibpath_var=LD_LIBRARY_PATH | |
8673 | else | |
8674 | # With GCC up to 2.95.x, collect2 would create an import file | |
8675 | # for dependence libraries. The import file would start with | |
8676 | # the line `#! .'. This would cause the generated library to | |
8677 | # depend on `.', always an invalid library. This was fixed in | |
8678 | # development snapshots of GCC prior to 3.0. | |
8679 | case $host_os in | |
8680 | aix4 | aix4.[01] | aix4.[01].*) | |
8681 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8682 | echo ' yes ' | |
8683 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8684 | : | |
8685 | else | |
8686 | can_build_shared=no | |
8687 | fi | |
8688 | ;; | |
8689 | esac | |
8690 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8691 | # soname into executable. Probably we can add versioning support to | |
8692 | # collect2, so additional links can be useful in future. | |
8693 | if test "$aix_use_runtimelinking" = yes; then | |
8694 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8695 | # instead of lib<name>.a to let people know that these are not | |
8696 | # typical AIX shared libraries. | |
8697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8698 | else | |
8699 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8700 | # and later when we are not doing run time linking. | |
8701 | library_names_spec='${libname}${release}.a $libname.a' | |
8702 | soname_spec='${libname}${release}${shared_ext}$major' | |
8703 | fi | |
8704 | shlibpath_var=LIBPATH | |
8705 | fi | |
8706 | ;; | |
8707 | ||
8708 | amigaos*) | |
8709 | case $host_cpu in | |
8710 | powerpc) | |
8711 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8712 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8714 | ;; | |
8715 | m68k) | |
8716 | library_names_spec='$libname.ixlibrary $libname.a' | |
8717 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8718 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
8719 | ;; | |
8720 | esac | |
8721 | ;; | |
8722 | ||
8723 | beos*) | |
8724 | library_names_spec='${libname}${shared_ext}' | |
8725 | dynamic_linker="$host_os ld.so" | |
8726 | shlibpath_var=LIBRARY_PATH | |
8727 | ;; | |
8728 | ||
8729 | bsdi[45]*) | |
8730 | version_type=linux | |
8731 | need_version=no | |
8732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8733 | soname_spec='${libname}${release}${shared_ext}$major' | |
8734 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8735 | shlibpath_var=LD_LIBRARY_PATH | |
8736 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8737 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8738 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8739 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8740 | # libtool to hard-code these into programs | |
8741 | ;; | |
8742 | ||
8743 | cygwin* | mingw* | pw32* | cegcc*) | |
8744 | version_type=windows | |
8745 | shrext_cmds=".dll" | |
8746 | need_version=no | |
8747 | need_lib_prefix=no | |
8748 | ||
8749 | case $GCC,$host_os in | |
8750 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8751 | library_names_spec='$libname.dll.a' | |
8752 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8753 | postinstall_cmds='base_file=`basename \${file}`~ | |
8754 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8755 | dldir=$destdir/`dirname \$dlpath`~ | |
8756 | test -d \$dldir || mkdir -p \$dldir~ | |
8757 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8758 | chmod a+x \$dldir/$dlname~ | |
8759 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8760 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8761 | fi' | |
8762 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8763 | dlpath=$dir/\$dldll~ | |
8764 | $RM \$dlpath' | |
8765 | shlibpath_overrides_runpath=yes | |
8766 | ||
8767 | case $host_os in | |
8768 | cygwin*) | |
8769 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8770 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8771 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8772 | ;; | |
8773 | mingw* | cegcc*) | |
8774 | # MinGW DLLs use traditional 'lib' prefix | |
8775 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8776 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8777 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8778 | # It is most probably a Windows format PATH printed by | |
8779 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8780 | # path with ; separators, and with drive letters. We can handle the | |
8781 | # drive letters (cygwin fileutils understands them), so leave them, | |
8782 | # especially as we might pass files found there to a mingw objdump, | |
8783 | # which wouldn't understand a cygwinified path. Ahh. | |
8784 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8785 | else | |
8786 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8787 | fi | |
8788 | ;; | |
8789 | pw32*) | |
8790 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8791 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8792 | ;; | |
8793 | esac | |
8794 | ;; | |
8795 | ||
8796 | *) | |
8797 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8798 | ;; | |
8799 | esac | |
8800 | dynamic_linker='Win32 ld.exe' | |
8801 | # FIXME: first we should search . and the directory the executable is in | |
8802 | shlibpath_var=PATH | |
8803 | ;; | |
8804 | ||
8805 | darwin* | rhapsody*) | |
8806 | dynamic_linker="$host_os dyld" | |
8807 | version_type=darwin | |
8808 | need_lib_prefix=no | |
8809 | need_version=no | |
8810 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8811 | soname_spec='${libname}${release}${major}$shared_ext' | |
8812 | shlibpath_overrides_runpath=yes | |
8813 | shlibpath_var=DYLD_LIBRARY_PATH | |
8814 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8815 | ||
8816 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8817 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8818 | ;; | |
8819 | ||
8820 | dgux*) | |
8821 | version_type=linux | |
8822 | need_lib_prefix=no | |
8823 | need_version=no | |
8824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8825 | soname_spec='${libname}${release}${shared_ext}$major' | |
8826 | shlibpath_var=LD_LIBRARY_PATH | |
8827 | ;; | |
8828 | ||
8829 | freebsd1*) | |
8830 | dynamic_linker=no | |
8831 | ;; | |
8832 | ||
8833 | freebsd* | dragonfly*) | |
8834 | # DragonFly does not have aout. When/if they implement a new | |
8835 | # versioning mechanism, adjust this. | |
8836 | if test -x /usr/bin/objformat; then | |
8837 | objformat=`/usr/bin/objformat` | |
8838 | else | |
8839 | case $host_os in | |
8840 | freebsd[123]*) objformat=aout ;; | |
8841 | *) objformat=elf ;; | |
8842 | esac | |
8843 | fi | |
8844 | version_type=freebsd-$objformat | |
8845 | case $version_type in | |
8846 | freebsd-elf*) | |
8847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8848 | need_version=no | |
8849 | need_lib_prefix=no | |
8850 | ;; | |
8851 | freebsd-*) | |
8852 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8853 | need_version=yes | |
8854 | ;; | |
8855 | esac | |
8856 | shlibpath_var=LD_LIBRARY_PATH | |
8857 | case $host_os in | |
8858 | freebsd2*) | |
8859 | shlibpath_overrides_runpath=yes | |
8860 | ;; | |
8861 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8862 | shlibpath_overrides_runpath=yes | |
8863 | hardcode_into_libs=yes | |
8864 | ;; | |
8865 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8866 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8867 | shlibpath_overrides_runpath=no | |
8868 | hardcode_into_libs=yes | |
8869 | ;; | |
8870 | *) # from 4.6 on, and DragonFly | |
8871 | shlibpath_overrides_runpath=yes | |
8872 | hardcode_into_libs=yes | |
8873 | ;; | |
8874 | esac | |
8875 | ;; | |
8876 | ||
8877 | gnu*) | |
8878 | version_type=linux | |
8879 | need_lib_prefix=no | |
8880 | need_version=no | |
8881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8882 | soname_spec='${libname}${release}${shared_ext}$major' | |
8883 | shlibpath_var=LD_LIBRARY_PATH | |
8884 | hardcode_into_libs=yes | |
8885 | ;; | |
8886 | ||
8887 | hpux9* | hpux10* | hpux11*) | |
8888 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8889 | # link against other versions. | |
8890 | version_type=sunos | |
8891 | need_lib_prefix=no | |
8892 | need_version=no | |
8893 | case $host_cpu in | |
8894 | ia64*) | |
8895 | shrext_cmds='.so' | |
8896 | hardcode_into_libs=yes | |
8897 | dynamic_linker="$host_os dld.so" | |
8898 | shlibpath_var=LD_LIBRARY_PATH | |
8899 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8901 | soname_spec='${libname}${release}${shared_ext}$major' | |
8902 | if test "X$HPUX_IA64_MODE" = X32; then | |
8903 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8904 | else | |
8905 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8906 | fi | |
8907 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8908 | ;; | |
8909 | hppa*64*) | |
8910 | shrext_cmds='.sl' | |
8911 | hardcode_into_libs=yes | |
8912 | dynamic_linker="$host_os dld.sl" | |
8913 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8914 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8916 | soname_spec='${libname}${release}${shared_ext}$major' | |
8917 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8918 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8919 | ;; | |
8920 | *) | |
8921 | shrext_cmds='.sl' | |
8922 | dynamic_linker="$host_os dld.sl" | |
8923 | shlibpath_var=SHLIB_PATH | |
8924 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8926 | soname_spec='${libname}${release}${shared_ext}$major' | |
8927 | ;; | |
8928 | esac | |
8929 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8930 | postinstall_cmds='chmod 555 $lib' | |
8931 | ;; | |
8932 | ||
8933 | interix[3-9]*) | |
8934 | version_type=linux | |
8935 | need_lib_prefix=no | |
8936 | need_version=no | |
8937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8938 | soname_spec='${libname}${release}${shared_ext}$major' | |
8939 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8940 | shlibpath_var=LD_LIBRARY_PATH | |
8941 | shlibpath_overrides_runpath=no | |
8942 | hardcode_into_libs=yes | |
8943 | ;; | |
8944 | ||
8945 | irix5* | irix6* | nonstopux*) | |
8946 | case $host_os in | |
8947 | nonstopux*) version_type=nonstopux ;; | |
8948 | *) | |
8949 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8950 | version_type=linux | |
8951 | else | |
8952 | version_type=irix | |
8953 | fi ;; | |
8954 | esac | |
8955 | need_lib_prefix=no | |
8956 | need_version=no | |
8957 | soname_spec='${libname}${release}${shared_ext}$major' | |
8958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8959 | case $host_os in | |
8960 | irix5* | nonstopux*) | |
8961 | libsuff= shlibsuff= | |
8962 | ;; | |
8963 | *) | |
8964 | case $LD in # libtool.m4 will add one of these switches to LD | |
8965 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8966 | libsuff= shlibsuff= libmagic=32-bit;; | |
8967 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8968 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8969 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8970 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8971 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8972 | esac | |
8973 | ;; | |
8974 | esac | |
8975 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8976 | shlibpath_overrides_runpath=no | |
8977 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8978 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8979 | hardcode_into_libs=yes | |
8980 | ;; | |
8981 | ||
8982 | # No shared lib support for Linux oldld, aout, or coff. | |
8983 | linux*oldld* | linux*aout* | linux*coff*) | |
8984 | dynamic_linker=no | |
8985 | ;; | |
8986 | ||
8987 | # This must be Linux ELF. | |
1504c9b8 | 8988 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
8989 | version_type=linux |
8990 | need_lib_prefix=no | |
8991 | need_version=no | |
8992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8993 | soname_spec='${libname}${release}${shared_ext}$major' | |
8994 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8995 | shlibpath_var=LD_LIBRARY_PATH | |
8996 | shlibpath_overrides_runpath=no | |
8997 | # Some binutils ld are patched to set DT_RUNPATH | |
8998 | save_LDFLAGS=$LDFLAGS | |
8999 | save_libdir=$libdir | |
9000 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9001 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9003 | /* end confdefs.h. */ | |
9004 | ||
9005 | int | |
9006 | main () | |
9007 | { | |
9008 | ||
9009 | ; | |
9010 | return 0; | |
9011 | } | |
9012 | _ACEOF | |
9013 | if ac_fn_c_try_link "$LINENO"; then : | |
9014 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9015 | shlibpath_overrides_runpath=yes | |
9016 | fi | |
9017 | fi | |
9018 | rm -f core conftest.err conftest.$ac_objext \ | |
9019 | conftest$ac_exeext conftest.$ac_ext | |
9020 | LDFLAGS=$save_LDFLAGS | |
9021 | libdir=$save_libdir | |
9022 | ||
9023 | # This implies no fast_install, which is unacceptable. | |
9024 | # Some rework will be needed to allow for fast_install | |
9025 | # before this can be enabled. | |
9026 | hardcode_into_libs=yes | |
9027 | ||
9028 | # Append ld.so.conf contents to the search path | |
9029 | if test -f /etc/ld.so.conf; then | |
9030 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9031 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9032 | fi | |
9033 | ||
9034 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9035 | # powerpc, because MkLinux only supported shared libraries with the | |
9036 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9037 | # most powerpc-linux boxes support dynamic linking these days and | |
9038 | # people can always --disable-shared, the test was removed, and we | |
9039 | # assume the GNU/Linux dynamic linker is in use. | |
9040 | dynamic_linker='GNU/Linux ld.so' | |
9041 | ;; | |
9042 | ||
1504c9b8 DWT |
9043 | netbsdelf*-gnu) |
9044 | version_type=linux | |
9045 | need_lib_prefix=no | |
9046 | need_version=no | |
9047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9048 | soname_spec='${libname}${release}${shared_ext}$major' | |
9049 | shlibpath_var=LD_LIBRARY_PATH | |
9050 | shlibpath_overrides_runpath=no | |
9051 | hardcode_into_libs=yes | |
9052 | dynamic_linker='NetBSD ld.elf_so' | |
9053 | ;; | |
9054 | ||
9c60689e DWT |
9055 | netbsd*) |
9056 | version_type=sunos | |
9057 | need_lib_prefix=no | |
9058 | need_version=no | |
9059 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9061 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9062 | dynamic_linker='NetBSD (a.out) ld.so' | |
9063 | else | |
9064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9065 | soname_spec='${libname}${release}${shared_ext}$major' | |
9066 | dynamic_linker='NetBSD ld.elf_so' | |
9067 | fi | |
9068 | shlibpath_var=LD_LIBRARY_PATH | |
9069 | shlibpath_overrides_runpath=yes | |
9070 | hardcode_into_libs=yes | |
9071 | ;; | |
9072 | ||
9073 | newsos6) | |
9074 | version_type=linux | |
9075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9076 | shlibpath_var=LD_LIBRARY_PATH | |
9077 | shlibpath_overrides_runpath=yes | |
9078 | ;; | |
9079 | ||
9080 | *nto* | *qnx*) | |
9081 | version_type=qnx | |
9082 | need_lib_prefix=no | |
9083 | need_version=no | |
9084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9085 | soname_spec='${libname}${release}${shared_ext}$major' | |
9086 | shlibpath_var=LD_LIBRARY_PATH | |
9087 | shlibpath_overrides_runpath=no | |
9088 | hardcode_into_libs=yes | |
9089 | dynamic_linker='ldqnx.so' | |
9090 | ;; | |
9091 | ||
9092 | openbsd*) | |
9093 | version_type=sunos | |
9094 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9095 | need_lib_prefix=no | |
9096 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9097 | case $host_os in | |
9098 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9099 | *) need_version=no ;; | |
9100 | esac | |
9101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9102 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9103 | shlibpath_var=LD_LIBRARY_PATH | |
9104 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9105 | case $host_os in | |
9106 | openbsd2.[89] | openbsd2.[89].*) | |
9107 | shlibpath_overrides_runpath=no | |
9108 | ;; | |
9109 | *) | |
9110 | shlibpath_overrides_runpath=yes | |
9111 | ;; | |
9112 | esac | |
9113 | else | |
9114 | shlibpath_overrides_runpath=yes | |
9115 | fi | |
9116 | ;; | |
9117 | ||
9118 | os2*) | |
9119 | libname_spec='$name' | |
9120 | shrext_cmds=".dll" | |
9121 | need_lib_prefix=no | |
9122 | library_names_spec='$libname${shared_ext} $libname.a' | |
9123 | dynamic_linker='OS/2 ld.exe' | |
9124 | shlibpath_var=LIBPATH | |
9125 | ;; | |
9126 | ||
9127 | osf3* | osf4* | osf5*) | |
9128 | version_type=osf | |
9129 | need_lib_prefix=no | |
9130 | need_version=no | |
9131 | soname_spec='${libname}${release}${shared_ext}$major' | |
9132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9133 | shlibpath_var=LD_LIBRARY_PATH | |
9134 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9135 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9136 | ;; | |
9137 | ||
9138 | rdos*) | |
9139 | dynamic_linker=no | |
9140 | ;; | |
9141 | ||
9142 | solaris*) | |
9143 | version_type=linux | |
9144 | need_lib_prefix=no | |
9145 | need_version=no | |
9146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9147 | soname_spec='${libname}${release}${shared_ext}$major' | |
9148 | shlibpath_var=LD_LIBRARY_PATH | |
9149 | shlibpath_overrides_runpath=yes | |
9150 | hardcode_into_libs=yes | |
9151 | # ldd complains unless libraries are executable | |
9152 | postinstall_cmds='chmod +x $lib' | |
9153 | ;; | |
9154 | ||
9155 | sunos4*) | |
9156 | version_type=sunos | |
9157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9158 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9159 | shlibpath_var=LD_LIBRARY_PATH | |
9160 | shlibpath_overrides_runpath=yes | |
9161 | if test "$with_gnu_ld" = yes; then | |
9162 | need_lib_prefix=no | |
9163 | fi | |
9164 | need_version=yes | |
9165 | ;; | |
9166 | ||
9167 | sysv4 | sysv4.3*) | |
9168 | version_type=linux | |
9169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9170 | soname_spec='${libname}${release}${shared_ext}$major' | |
9171 | shlibpath_var=LD_LIBRARY_PATH | |
9172 | case $host_vendor in | |
9173 | sni) | |
9174 | shlibpath_overrides_runpath=no | |
9175 | need_lib_prefix=no | |
9176 | runpath_var=LD_RUN_PATH | |
9177 | ;; | |
9178 | siemens) | |
9179 | need_lib_prefix=no | |
9180 | ;; | |
9181 | motorola) | |
9182 | need_lib_prefix=no | |
9183 | need_version=no | |
9184 | shlibpath_overrides_runpath=no | |
9185 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9186 | ;; | |
9187 | esac | |
9188 | ;; | |
9189 | ||
9190 | sysv4*MP*) | |
9191 | if test -d /usr/nec ;then | |
9192 | version_type=linux | |
9193 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9194 | soname_spec='$libname${shared_ext}.$major' | |
9195 | shlibpath_var=LD_LIBRARY_PATH | |
9196 | fi | |
9197 | ;; | |
9198 | ||
9199 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9200 | version_type=freebsd-elf | |
9201 | need_lib_prefix=no | |
9202 | need_version=no | |
9203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9204 | soname_spec='${libname}${release}${shared_ext}$major' | |
9205 | shlibpath_var=LD_LIBRARY_PATH | |
9206 | shlibpath_overrides_runpath=yes | |
9207 | hardcode_into_libs=yes | |
9208 | if test "$with_gnu_ld" = yes; then | |
9209 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9210 | else | |
9211 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9212 | case $host_os in | |
9213 | sco3.2v5*) | |
9214 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9215 | ;; | |
9216 | esac | |
9217 | fi | |
9218 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9219 | ;; | |
9220 | ||
9221 | tpf*) | |
9222 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9223 | version_type=linux | |
9224 | need_lib_prefix=no | |
9225 | need_version=no | |
9226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9227 | shlibpath_var=LD_LIBRARY_PATH | |
9228 | shlibpath_overrides_runpath=no | |
9229 | hardcode_into_libs=yes | |
9230 | ;; | |
9231 | ||
9232 | uts4*) | |
9233 | version_type=linux | |
9234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9235 | soname_spec='${libname}${release}${shared_ext}$major' | |
9236 | shlibpath_var=LD_LIBRARY_PATH | |
9237 | ;; | |
9238 | ||
9239 | *) | |
9240 | dynamic_linker=no | |
9241 | ;; | |
9242 | esac | |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9244 | $as_echo "$dynamic_linker" >&6; } | |
9245 | test "$dynamic_linker" = no && can_build_shared=no | |
9246 | ||
9247 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9248 | if test "$GCC" = yes; then | |
9249 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9250 | fi | |
9251 | ||
9252 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9253 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9254 | fi | |
9255 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9256 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9257 | fi | |
9258 | ||
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | ||
9264 | ||
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9346 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9347 | hardcode_action= | |
9348 | if test -n "$hardcode_libdir_flag_spec" || | |
9349 | test -n "$runpath_var" || | |
9350 | test "X$hardcode_automatic" = "Xyes" ; then | |
9351 | ||
9352 | # We can hardcode non-existent directories. | |
9353 | if test "$hardcode_direct" != no && | |
9354 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9355 | # have to relink, otherwise we might link with an installed library | |
9356 | # when we should be linking with a yet-to-be-installed one | |
9357 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9358 | test "$hardcode_minus_L" != no; then | |
9359 | # Linking always hardcodes the temporary library directory. | |
9360 | hardcode_action=relink | |
9361 | else | |
9362 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9363 | hardcode_action=immediate | |
9364 | fi | |
9365 | else | |
9366 | # We cannot hardcode anything, or else we can only hardcode existing | |
9367 | # directories. | |
9368 | hardcode_action=unsupported | |
9369 | fi | |
9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9371 | $as_echo "$hardcode_action" >&6; } | |
9372 | ||
9373 | if test "$hardcode_action" = relink || | |
9374 | test "$inherit_rpath" = yes; then | |
9375 | # Fast installation is not supported | |
9376 | enable_fast_install=no | |
9377 | elif test "$shlibpath_overrides_runpath" = yes || | |
9378 | test "$enable_shared" = no; then | |
9379 | # Fast installation is not necessary | |
9380 | enable_fast_install=needless | |
9381 | fi | |
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | if test "x$enable_dlopen" != xyes; then | |
9389 | enable_dlopen=unknown | |
9390 | enable_dlopen_self=unknown | |
9391 | enable_dlopen_self_static=unknown | |
9392 | else | |
9393 | lt_cv_dlopen=no | |
9394 | lt_cv_dlopen_libs= | |
9395 | ||
9396 | case $host_os in | |
9397 | beos*) | |
9398 | lt_cv_dlopen="load_add_on" | |
9399 | lt_cv_dlopen_libs= | |
9400 | lt_cv_dlopen_self=yes | |
9401 | ;; | |
9402 | ||
9403 | mingw* | pw32* | cegcc*) | |
9404 | lt_cv_dlopen="LoadLibrary" | |
9405 | lt_cv_dlopen_libs= | |
9406 | ;; | |
9407 | ||
9408 | cygwin*) | |
9409 | lt_cv_dlopen="dlopen" | |
9410 | lt_cv_dlopen_libs= | |
9411 | ;; | |
9412 | ||
9413 | darwin*) | |
9414 | # if libdl is installed we need to link against it | |
9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9416 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9417 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9418 | $as_echo_n "(cached) " >&6 | |
9419 | else | |
9420 | ac_check_lib_save_LIBS=$LIBS | |
9421 | LIBS="-ldl $LIBS" | |
9422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9423 | /* end confdefs.h. */ | |
9424 | ||
9425 | /* Override any GCC internal prototype to avoid an error. | |
9426 | Use char because int might match the return type of a GCC | |
9427 | builtin and then its argument prototype would still apply. */ | |
9428 | #ifdef __cplusplus | |
9429 | extern "C" | |
9430 | #endif | |
9431 | char dlopen (); | |
9432 | int | |
9433 | main () | |
9434 | { | |
9435 | return dlopen (); | |
9436 | ; | |
9437 | return 0; | |
9438 | } | |
9439 | _ACEOF | |
9440 | if ac_fn_c_try_link "$LINENO"; then : | |
9441 | ac_cv_lib_dl_dlopen=yes | |
9442 | else | |
9443 | ac_cv_lib_dl_dlopen=no | |
9444 | fi | |
9445 | rm -f core conftest.err conftest.$ac_objext \ | |
9446 | conftest$ac_exeext conftest.$ac_ext | |
9447 | LIBS=$ac_check_lib_save_LIBS | |
9448 | fi | |
9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9450 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9451 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9452 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9453 | else | |
9454 | ||
9455 | lt_cv_dlopen="dyld" | |
9456 | lt_cv_dlopen_libs= | |
9457 | lt_cv_dlopen_self=yes | |
9458 | ||
9459 | fi | |
9460 | ||
9461 | ;; | |
9462 | ||
9463 | *) | |
9464 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9465 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9466 | lt_cv_dlopen="shl_load" | |
9467 | else | |
9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9469 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9470 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9471 | $as_echo_n "(cached) " >&6 | |
9472 | else | |
9473 | ac_check_lib_save_LIBS=$LIBS | |
9474 | LIBS="-ldld $LIBS" | |
9475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9476 | /* end confdefs.h. */ | |
9477 | ||
9478 | /* Override any GCC internal prototype to avoid an error. | |
9479 | Use char because int might match the return type of a GCC | |
9480 | builtin and then its argument prototype would still apply. */ | |
9481 | #ifdef __cplusplus | |
9482 | extern "C" | |
9483 | #endif | |
9484 | char shl_load (); | |
9485 | int | |
9486 | main () | |
9487 | { | |
9488 | return shl_load (); | |
9489 | ; | |
9490 | return 0; | |
9491 | } | |
9492 | _ACEOF | |
9493 | if ac_fn_c_try_link "$LINENO"; then : | |
9494 | ac_cv_lib_dld_shl_load=yes | |
9495 | else | |
9496 | ac_cv_lib_dld_shl_load=no | |
9497 | fi | |
9498 | rm -f core conftest.err conftest.$ac_objext \ | |
9499 | conftest$ac_exeext conftest.$ac_ext | |
9500 | LIBS=$ac_check_lib_save_LIBS | |
9501 | fi | |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9503 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9504 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9505 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9506 | else | |
9507 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9508 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9509 | lt_cv_dlopen="dlopen" | |
9510 | else | |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9512 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9513 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9514 | $as_echo_n "(cached) " >&6 | |
9515 | else | |
9516 | ac_check_lib_save_LIBS=$LIBS | |
9517 | LIBS="-ldl $LIBS" | |
9518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9519 | /* end confdefs.h. */ | |
9520 | ||
9521 | /* Override any GCC internal prototype to avoid an error. | |
9522 | Use char because int might match the return type of a GCC | |
9523 | builtin and then its argument prototype would still apply. */ | |
9524 | #ifdef __cplusplus | |
9525 | extern "C" | |
9526 | #endif | |
9527 | char dlopen (); | |
9528 | int | |
9529 | main () | |
9530 | { | |
9531 | return dlopen (); | |
9532 | ; | |
9533 | return 0; | |
9534 | } | |
9535 | _ACEOF | |
9536 | if ac_fn_c_try_link "$LINENO"; then : | |
9537 | ac_cv_lib_dl_dlopen=yes | |
9538 | else | |
9539 | ac_cv_lib_dl_dlopen=no | |
9540 | fi | |
9541 | rm -f core conftest.err conftest.$ac_objext \ | |
9542 | conftest$ac_exeext conftest.$ac_ext | |
9543 | LIBS=$ac_check_lib_save_LIBS | |
9544 | fi | |
9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9546 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9547 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9548 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9549 | else | |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9551 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9552 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9553 | $as_echo_n "(cached) " >&6 | |
9554 | else | |
9555 | ac_check_lib_save_LIBS=$LIBS | |
9556 | LIBS="-lsvld $LIBS" | |
9557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9558 | /* end confdefs.h. */ | |
9559 | ||
9560 | /* Override any GCC internal prototype to avoid an error. | |
9561 | Use char because int might match the return type of a GCC | |
9562 | builtin and then its argument prototype would still apply. */ | |
9563 | #ifdef __cplusplus | |
9564 | extern "C" | |
9565 | #endif | |
9566 | char dlopen (); | |
9567 | int | |
9568 | main () | |
9569 | { | |
9570 | return dlopen (); | |
9571 | ; | |
9572 | return 0; | |
9573 | } | |
9574 | _ACEOF | |
9575 | if ac_fn_c_try_link "$LINENO"; then : | |
9576 | ac_cv_lib_svld_dlopen=yes | |
9577 | else | |
9578 | ac_cv_lib_svld_dlopen=no | |
9579 | fi | |
9580 | rm -f core conftest.err conftest.$ac_objext \ | |
9581 | conftest$ac_exeext conftest.$ac_ext | |
9582 | LIBS=$ac_check_lib_save_LIBS | |
9583 | fi | |
9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9585 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9586 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9587 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9588 | else | |
9589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9590 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9591 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9592 | $as_echo_n "(cached) " >&6 | |
9593 | else | |
9594 | ac_check_lib_save_LIBS=$LIBS | |
9595 | LIBS="-ldld $LIBS" | |
9596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9597 | /* end confdefs.h. */ | |
9598 | ||
9599 | /* Override any GCC internal prototype to avoid an error. | |
9600 | Use char because int might match the return type of a GCC | |
9601 | builtin and then its argument prototype would still apply. */ | |
9602 | #ifdef __cplusplus | |
9603 | extern "C" | |
9604 | #endif | |
9605 | char dld_link (); | |
9606 | int | |
9607 | main () | |
9608 | { | |
9609 | return dld_link (); | |
9610 | ; | |
9611 | return 0; | |
9612 | } | |
9613 | _ACEOF | |
9614 | if ac_fn_c_try_link "$LINENO"; then : | |
9615 | ac_cv_lib_dld_dld_link=yes | |
9616 | else | |
9617 | ac_cv_lib_dld_dld_link=no | |
9618 | fi | |
9619 | rm -f core conftest.err conftest.$ac_objext \ | |
9620 | conftest$ac_exeext conftest.$ac_ext | |
9621 | LIBS=$ac_check_lib_save_LIBS | |
9622 | fi | |
9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9624 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9625 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9626 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9627 | fi | |
9628 | ||
9629 | ||
9630 | fi | |
9631 | ||
9632 | ||
9633 | fi | |
9634 | ||
9635 | ||
9636 | fi | |
9637 | ||
9638 | ||
9639 | fi | |
9640 | ||
9641 | ||
9642 | fi | |
9643 | ||
9644 | ;; | |
9645 | esac | |
9646 | ||
9647 | if test "x$lt_cv_dlopen" != xno; then | |
9648 | enable_dlopen=yes | |
9649 | else | |
9650 | enable_dlopen=no | |
9651 | fi | |
9652 | ||
9653 | case $lt_cv_dlopen in | |
9654 | dlopen) | |
9655 | save_CPPFLAGS="$CPPFLAGS" | |
9656 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9657 | ||
9658 | save_LDFLAGS="$LDFLAGS" | |
9659 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9660 | ||
9661 | save_LIBS="$LIBS" | |
9662 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9663 | ||
9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9665 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9666 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9667 | $as_echo_n "(cached) " >&6 | |
9668 | else | |
9669 | if test "$cross_compiling" = yes; then : | |
9670 | lt_cv_dlopen_self=cross | |
9671 | else | |
9672 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9673 | lt_status=$lt_dlunknown | |
9674 | cat > conftest.$ac_ext <<_LT_EOF | |
794e88e7 | 9675 | #line 9675 "configure" |
9c60689e DWT |
9676 | #include "confdefs.h" |
9677 | ||
9678 | #if HAVE_DLFCN_H | |
9679 | #include <dlfcn.h> | |
9680 | #endif | |
9681 | ||
9682 | #include <stdio.h> | |
9683 | ||
9684 | #ifdef RTLD_GLOBAL | |
9685 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9686 | #else | |
9687 | # ifdef DL_GLOBAL | |
9688 | # define LT_DLGLOBAL DL_GLOBAL | |
9689 | # else | |
9690 | # define LT_DLGLOBAL 0 | |
9691 | # endif | |
9692 | #endif | |
9693 | ||
9694 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9695 | find out it does not work in some platform. */ | |
9696 | #ifndef LT_DLLAZY_OR_NOW | |
9697 | # ifdef RTLD_LAZY | |
9698 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9699 | # else | |
9700 | # ifdef DL_LAZY | |
9701 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9702 | # else | |
9703 | # ifdef RTLD_NOW | |
9704 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9705 | # else | |
9706 | # ifdef DL_NOW | |
9707 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9708 | # else | |
9709 | # define LT_DLLAZY_OR_NOW 0 | |
9710 | # endif | |
9711 | # endif | |
9712 | # endif | |
9713 | # endif | |
9714 | #endif | |
9715 | ||
9716 | void fnord() { int i=42;} | |
9717 | int main () | |
9718 | { | |
9719 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9720 | int status = $lt_dlunknown; | |
9721 | ||
9722 | if (self) | |
9723 | { | |
9724 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9725 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9726 | /* dlclose (self); */ | |
9727 | } | |
9728 | else | |
9729 | puts (dlerror ()); | |
9730 | ||
9731 | return status; | |
9732 | } | |
9733 | _LT_EOF | |
9734 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9735 | (eval $ac_link) 2>&5 | |
9736 | ac_status=$? | |
9737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9738 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9739 | (./conftest; exit; ) >&5 2>/dev/null | |
9740 | lt_status=$? | |
9741 | case x$lt_status in | |
9742 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9743 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9744 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9745 | esac | |
9746 | else : | |
9747 | # compilation failed | |
9748 | lt_cv_dlopen_self=no | |
9749 | fi | |
9750 | fi | |
9751 | rm -fr conftest* | |
9752 | ||
9753 | ||
9754 | fi | |
9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9756 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9757 | ||
9758 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9759 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9761 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9762 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9763 | $as_echo_n "(cached) " >&6 | |
9764 | else | |
9765 | if test "$cross_compiling" = yes; then : | |
9766 | lt_cv_dlopen_self_static=cross | |
9767 | else | |
9768 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9769 | lt_status=$lt_dlunknown | |
9770 | cat > conftest.$ac_ext <<_LT_EOF | |
794e88e7 | 9771 | #line 9771 "configure" |
9c60689e DWT |
9772 | #include "confdefs.h" |
9773 | ||
9774 | #if HAVE_DLFCN_H | |
9775 | #include <dlfcn.h> | |
9776 | #endif | |
9777 | ||
9778 | #include <stdio.h> | |
9779 | ||
9780 | #ifdef RTLD_GLOBAL | |
9781 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9782 | #else | |
9783 | # ifdef DL_GLOBAL | |
9784 | # define LT_DLGLOBAL DL_GLOBAL | |
9785 | # else | |
9786 | # define LT_DLGLOBAL 0 | |
9787 | # endif | |
9788 | #endif | |
9789 | ||
9790 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9791 | find out it does not work in some platform. */ | |
9792 | #ifndef LT_DLLAZY_OR_NOW | |
9793 | # ifdef RTLD_LAZY | |
9794 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9795 | # else | |
9796 | # ifdef DL_LAZY | |
9797 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9798 | # else | |
9799 | # ifdef RTLD_NOW | |
9800 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9801 | # else | |
9802 | # ifdef DL_NOW | |
9803 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9804 | # else | |
9805 | # define LT_DLLAZY_OR_NOW 0 | |
9806 | # endif | |
9807 | # endif | |
9808 | # endif | |
9809 | # endif | |
9810 | #endif | |
9811 | ||
9812 | void fnord() { int i=42;} | |
9813 | int main () | |
9814 | { | |
9815 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9816 | int status = $lt_dlunknown; | |
9817 | ||
9818 | if (self) | |
9819 | { | |
9820 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9821 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9822 | /* dlclose (self); */ | |
9823 | } | |
9824 | else | |
9825 | puts (dlerror ()); | |
9826 | ||
9827 | return status; | |
9828 | } | |
9829 | _LT_EOF | |
9830 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9831 | (eval $ac_link) 2>&5 | |
9832 | ac_status=$? | |
9833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9834 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9835 | (./conftest; exit; ) >&5 2>/dev/null | |
9836 | lt_status=$? | |
9837 | case x$lt_status in | |
9838 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9839 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9840 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9841 | esac | |
9842 | else : | |
9843 | # compilation failed | |
9844 | lt_cv_dlopen_self_static=no | |
9845 | fi | |
9846 | fi | |
9847 | rm -fr conftest* | |
9848 | ||
9849 | ||
9850 | fi | |
9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9852 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9853 | fi | |
9854 | ||
9855 | CPPFLAGS="$save_CPPFLAGS" | |
9856 | LDFLAGS="$save_LDFLAGS" | |
9857 | LIBS="$save_LIBS" | |
9858 | ;; | |
9859 | esac | |
9860 | ||
9861 | case $lt_cv_dlopen_self in | |
9862 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9863 | *) enable_dlopen_self=unknown ;; | |
9864 | esac | |
9865 | ||
9866 | case $lt_cv_dlopen_self_static in | |
9867 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9868 | *) enable_dlopen_self_static=unknown ;; | |
9869 | esac | |
9870 | fi | |
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | striplib= | |
9889 | old_striplib= | |
9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9891 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9892 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9893 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9894 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9896 | $as_echo "yes" >&6; } | |
9897 | else | |
9898 | # FIXME - insert some real tests, host_os isn't really good enough | |
9899 | case $host_os in | |
9900 | darwin*) | |
9901 | if test -n "$STRIP" ; then | |
9902 | striplib="$STRIP -x" | |
9903 | old_striplib="$STRIP -S" | |
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9905 | $as_echo "yes" >&6; } | |
9906 | else | |
9907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9908 | $as_echo "no" >&6; } | |
9909 | fi | |
9910 | ;; | |
9911 | *) | |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9913 | $as_echo "no" >&6; } | |
9914 | ;; | |
9915 | esac | |
9916 | fi | |
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | # Report which library types will actually be built | |
9930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9931 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9933 | $as_echo "$can_build_shared" >&6; } | |
9934 | ||
9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9936 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9937 | test "$can_build_shared" = "no" && enable_shared=no | |
9938 | ||
9939 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9940 | # are all built from PIC. | |
9941 | case $host_os in | |
9942 | aix3*) | |
9943 | test "$enable_shared" = yes && enable_static=no | |
9944 | if test -n "$RANLIB"; then | |
9945 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9946 | postinstall_cmds='$RANLIB $lib' | |
9947 | fi | |
9948 | ;; | |
9949 | ||
9950 | aix[4-9]*) | |
9951 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9952 | test "$enable_shared" = yes && enable_static=no | |
9953 | fi | |
9954 | ;; | |
9955 | esac | |
9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
9957 | $as_echo "$enable_shared" >&6; } | |
9958 | ||
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
9960 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
9961 | # Make sure either enable_shared or enable_static is yes. | |
9962 | test "$enable_shared" = yes || enable_static=yes | |
9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
9964 | $as_echo "$enable_static" >&6; } | |
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | fi | |
9970 | ac_ext=c | |
9971 | ac_cpp='$CPP $CPPFLAGS' | |
9972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9975 | ||
9976 | CC="$lt_save_CC" | |
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | ac_config_commands="$ac_config_commands libtool" | |
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | # Only expand once: | |
9996 | ||
9997 | ||
3fd51f51 DWT |
9998 | |
9999 | ||
10000 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
10001 | if test -n "$ac_tool_prefix"; then | |
10002 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
10003 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10005 | $as_echo_n "checking for $ac_word... " >&6; } | |
10006 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
10007 | $as_echo_n "(cached) " >&6 | |
10008 | else | |
10009 | case $PKG_CONFIG in | |
10010 | [\\/]* | ?:[\\/]*) | |
10011 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10012 | ;; | |
10013 | *) | |
10014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10015 | for as_dir in $PATH | |
10016 | do | |
10017 | IFS=$as_save_IFS | |
10018 | test -z "$as_dir" && as_dir=. | |
10019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10021 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10023 | break 2 | |
10024 | fi | |
10025 | done | |
10026 | done | |
10027 | IFS=$as_save_IFS | |
10028 | ||
10029 | ;; | |
10030 | esac | |
10031 | fi | |
10032 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10033 | if test -n "$PKG_CONFIG"; then | |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10035 | $as_echo "$PKG_CONFIG" >&6; } | |
10036 | else | |
10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10038 | $as_echo "no" >&6; } | |
10039 | fi | |
10040 | ||
10041 | ||
10042 | fi | |
10043 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10044 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10045 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10046 | set dummy pkg-config; ac_word=$2 | |
10047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10048 | $as_echo_n "checking for $ac_word... " >&6; } | |
10049 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10050 | $as_echo_n "(cached) " >&6 | |
10051 | else | |
10052 | case $ac_pt_PKG_CONFIG in | |
10053 | [\\/]* | ?:[\\/]*) | |
10054 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10055 | ;; | |
10056 | *) | |
10057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10058 | for as_dir in $PATH | |
10059 | do | |
10060 | IFS=$as_save_IFS | |
10061 | test -z "$as_dir" && as_dir=. | |
10062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10064 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10066 | break 2 | |
10067 | fi | |
10068 | done | |
10069 | done | |
10070 | IFS=$as_save_IFS | |
10071 | ||
10072 | ;; | |
10073 | esac | |
10074 | fi | |
10075 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10076 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10078 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10079 | else | |
10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10081 | $as_echo "no" >&6; } | |
10082 | fi | |
10083 | ||
10084 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10085 | PKG_CONFIG="" | |
10086 | else | |
10087 | case $cross_compiling:$ac_tool_warned in | |
10088 | yes:) | |
10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10090 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10091 | ac_tool_warned=yes ;; | |
10092 | esac | |
10093 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10094 | fi | |
10095 | else | |
10096 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10097 | fi | |
10098 | ||
10099 | fi | |
10100 | if test -n "$PKG_CONFIG"; then | |
10101 | _pkg_min_version=0.22 | |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10103 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10104 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10106 | $as_echo "yes" >&6; } | |
10107 | else | |
10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10109 | $as_echo "no" >&6; } | |
10110 | PKG_CONFIG="" | |
10111 | fi | |
10112 | ||
632b71ea DWT |
10113 | fi |
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
10115 | $as_echo_n "checking for GNU make... " >&6; } | |
10116 | if test "${_cv_gnu_make_command+set}" = set; then : | |
10117 | $as_echo_n "(cached) " >&6 | |
10118 | else | |
10119 | _cv_gnu_make_command='' ; | |
10120 | for a in "$MAKE" make gmake gnumake ; do | |
10121 | if test -z "$a" ; then continue ; fi ; | |
10122 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
10123 | _cv_gnu_make_command=$a ; | |
10124 | break; | |
10125 | fi | |
10126 | done ; | |
10127 | ||
10128 | fi | |
10129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
10130 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
10131 | if test "x$_cv_gnu_make_command" != "x" ; then | |
10132 | ifGNUmake='' ; | |
10133 | else | |
10134 | ifGNUmake='#' ; | |
10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
10136 | $as_echo "\"Not found\"" >&6; }; | |
10137 | fi | |
10138 | ||
10139 | ||
790e5246 DWT |
10140 | GMAKE=$_cv_gnu_make_command |
10141 | ||
10142 | if test "x$GMAKE" = x; then : | |
632b71ea | 10143 | as_fn_error "You need GNU make" "$LINENO" 5 |
3fd51f51 | 10144 | fi |
e9c9a47c DWT |
10145 | for ac_prog in bash |
10146 | do | |
10147 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10148 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
10149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10150 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10151 | if test "${ac_cv_path__BASH+set}" = set; then : |
9c60689e DWT |
10152 | $as_echo_n "(cached) " >&6 |
10153 | else | |
e9c9a47c DWT |
10154 | case $_BASH in |
10155 | [\\/]* | ?:[\\/]*) | |
10156 | ac_cv_path__BASH="$_BASH" # Let the user override the test with a path. | |
10157 | ;; | |
10158 | *) | |
10159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10160 | for as_dir in $PATH |
10161 | do | |
10162 | IFS=$as_save_IFS | |
10163 | test -z "$as_dir" && as_dir=. | |
10164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10166 | ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10168 | break 2 | |
10169 | fi | |
10170 | done | |
10171 | done | |
10172 | IFS=$as_save_IFS | |
10173 | ||
e9c9a47c DWT |
10174 | ;; |
10175 | esac | |
9c60689e | 10176 | fi |
e9c9a47c DWT |
10177 | _BASH=$ac_cv_path__BASH |
10178 | if test -n "$_BASH"; then | |
10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
10180 | $as_echo "$_BASH" >&6; } | |
9c60689e DWT |
10181 | else |
10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10183 | $as_echo "no" >&6; } | |
10184 | fi | |
10185 | ||
10186 | ||
e9c9a47c DWT |
10187 | test -n "$_BASH" && break |
10188 | done | |
10189 | ||
10190 | if test "x$_BASH" = x; then : | |
10191 | as_fn_error "You need GNU bash" "$LINENO" 5 | |
9c60689e | 10192 | fi |
e9c9a47c | 10193 | for ac_prog in time |
9c60689e DWT |
10194 | do |
10195 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10196 | set dummy $ac_prog; ac_word=$2 | |
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10198 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10199 | if test "${ac_cv_path_TIME+set}" = set; then : |
9c60689e DWT |
10200 | $as_echo_n "(cached) " >&6 |
10201 | else | |
e9c9a47c DWT |
10202 | case $TIME in |
10203 | [\\/]* | ?:[\\/]*) | |
10204 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
10205 | ;; | |
10206 | *) | |
10207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10208 | for as_dir in $PATH |
10209 | do | |
10210 | IFS=$as_save_IFS | |
10211 | test -z "$as_dir" && as_dir=. | |
10212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10214 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10216 | break 2 | |
10217 | fi | |
10218 | done | |
10219 | done | |
10220 | IFS=$as_save_IFS | |
10221 | ||
e9c9a47c DWT |
10222 | ;; |
10223 | esac | |
9c60689e | 10224 | fi |
e9c9a47c DWT |
10225 | TIME=$ac_cv_path_TIME |
10226 | if test -n "$TIME"; then | |
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
10228 | $as_echo "$TIME" >&6; } | |
9c60689e DWT |
10229 | else |
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10231 | $as_echo "no" >&6; } | |
10232 | fi | |
10233 | ||
10234 | ||
e9c9a47c | 10235 | test -n "$TIME" && break |
9c60689e DWT |
10236 | done |
10237 | ||
e9c9a47c DWT |
10238 | |
10239 | ||
10240 | ||
10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
10242 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
10243 | if test -z "$BISON"; then | |
10244 | ac_path_BISON_found=false | |
10245 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10247 | for as_dir in $PATH | |
10248 | do | |
10249 | IFS=$as_save_IFS | |
10250 | test -z "$as_dir" && as_dir=. | |
10251 | for ac_prog in bison; do | |
10252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10253 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
10254 | { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue | |
10255 | as_awk_strverscmp=' | |
10256 | # Use only awk features that work with 7th edition Unix awk (1978). | |
10257 | # My, what an old awk you have, Mr. Solaris! | |
10258 | END { | |
10259 | while (length(v1) && length(v2)) { | |
10260 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
10261 | # Normally this is a single character, but if v1 and v2 contain digits, | |
10262 | # compare them as integers and fractions as strverscmp does. | |
10263 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
10264 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
10265 | # and advance v1 and v2 past the leading digit strings. | |
10266 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
10267 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
10268 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
10269 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
10270 | if (d1 ~ /^0/) { | |
10271 | if (d2 ~ /^0/) { | |
10272 | # Compare two fractions. | |
10273 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
10274 | d1 = substr(d1, 2); len1-- | |
10275 | d2 = substr(d2, 2); len2-- | |
10276 | } | |
10277 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
10278 | # The two components differ in length, and the common prefix | |
10279 | # contains only leading zeros. Consider the longer to be less. | |
10280 | d1 = -len1 | |
10281 | d2 = -len2 | |
10282 | } else { | |
10283 | # Otherwise, compare as strings. | |
10284 | d1 = "x" d1 | |
10285 | d2 = "x" d2 | |
10286 | } | |
10287 | } else { | |
10288 | # A fraction is less than an integer. | |
10289 | exit 1 | |
10290 | } | |
10291 | } else { | |
10292 | if (d2 ~ /^0/) { | |
10293 | # An integer is greater than a fraction. | |
10294 | exit 2 | |
10295 | } else { | |
10296 | # Compare two integers. | |
10297 | d1 += 0 | |
10298 | d2 += 0 | |
10299 | } | |
10300 | } | |
10301 | } else { | |
10302 | # The normal case, without worrying about digits. | |
10303 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
10304 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
10305 | } | |
10306 | if (d1 < d2) exit 1 | |
10307 | if (d1 > d2) exit 2 | |
10308 | } | |
10309 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
10310 | # which mishandles some comparisons of empty strings to integers. | |
10311 | if (length(v2)) exit 1 | |
10312 | if (length(v1)) exit 2 | |
10313 | } | |
10314 | ' | |
10315 | as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
10316 | as_arg_v2=2.3 | |
10317 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10318 | case $? in #( | |
10319 | 1) : | |
10320 | ;; #( | |
10321 | 0) : | |
10322 | ac_cv_path_BISON=$ac_path_BISON | |
10323 | ;; #( | |
10324 | 2) : | |
10325 | ac_cv_path_BISON=$ac_path_BISON | |
10326 | ;; #( | |
10327 | *) : | |
10328 | ;; | |
9c60689e | 10329 | esac |
e9c9a47c DWT |
10330 | |
10331 | $ac_path_BISON_found && break 3 | |
10332 | done | |
10333 | done | |
10334 | done | |
10335 | IFS=$as_save_IFS | |
10336 | if test -z "$ac_cv_path_BISON"; then | |
b5bd4353 DWT |
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10338 | $as_echo "no" >&6; } | |
e9c9a47c | 10339 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
9c60689e | 10340 | |
9c60689e | 10341 | fi |
e9c9a47c DWT |
10342 | else |
10343 | ac_cv_path_BISON=$BISON | |
9c60689e | 10344 | fi |
9c60689e | 10345 | |
e9c9a47c | 10346 | BISON=$ac_cv_path_BISON |
9c60689e | 10347 | |
e9c9a47c DWT |
10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10349 | $as_echo "$BISON" >&6; } | |
9c60689e | 10350 | |
9c60689e | 10351 | |
9c60689e | 10352 | |
e9c9a47c DWT |
10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 |
10354 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
10355 | if test -z "$FLEX"; then | |
10356 | ac_path_FLEX_found=false | |
10357 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10359 | for as_dir in $PATH |
10360 | do | |
10361 | IFS=$as_save_IFS | |
10362 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10363 | for ac_prog in flex; do |
9c60689e | 10364 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10365 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
10366 | { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue | |
10367 | as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10368 | as_arg_v2=2.5.33 | |
10369 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10370 | case $? in #( | |
10371 | 1) : | |
10372 | ;; #( | |
10373 | 0) : | |
10374 | ac_cv_path_FLEX=$ac_path_FLEX | |
10375 | ;; #( | |
10376 | 2) : | |
10377 | ac_cv_path_FLEX=$ac_path_FLEX | |
10378 | ;; #( | |
10379 | *) : | |
10380 | ;; | |
10381 | esac | |
10382 | ||
10383 | $ac_path_FLEX_found && break 3 | |
10384 | done | |
10385 | done | |
9c60689e DWT |
10386 | done |
10387 | IFS=$as_save_IFS | |
e9c9a47c | 10388 | if test -z "$ac_cv_path_FLEX"; then |
b5bd4353 DWT |
10389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10390 | $as_echo "no" >&6; } | |
e9c9a47c | 10391 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 |
9c60689e | 10392 | |
e9c9a47c | 10393 | fi |
9c60689e | 10394 | else |
e9c9a47c | 10395 | ac_cv_path_FLEX=$FLEX |
9c60689e DWT |
10396 | fi |
10397 | ||
e9c9a47c | 10398 | FLEX=$ac_cv_path_FLEX |
9c60689e | 10399 | |
e9c9a47c DWT |
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10401 | $as_echo "$FLEX" >&6; } | |
10402 | ||
10403 | ||
10404 | ||
10405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
10406 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
10407 | if test -z "$GPERF"; then | |
10408 | ac_path_GPERF_found=false | |
10409 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10411 | for as_dir in $PATH |
10412 | do | |
10413 | IFS=$as_save_IFS | |
10414 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10415 | for ac_prog in gperf; do |
9c60689e | 10416 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10417 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" |
10418 | { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue | |
10419 | as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10420 | as_arg_v2=3.0.3 | |
10421 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10422 | case $? in #( | |
10423 | 1) : | |
10424 | ;; #( | |
10425 | 0) : | |
10426 | ac_cv_path_GPERF=$ac_path_GPERF | |
10427 | ;; #( | |
10428 | 2) : | |
10429 | ac_cv_path_GPERF=$ac_path_GPERF | |
10430 | ;; #( | |
10431 | *) : | |
10432 | ;; | |
10433 | esac | |
10434 | ||
10435 | $ac_path_GPERF_found && break 3 | |
10436 | done | |
10437 | done | |
9c60689e DWT |
10438 | done |
10439 | IFS=$as_save_IFS | |
e9c9a47c | 10440 | if test -z "$ac_cv_path_GPERF"; then |
b5bd4353 DWT |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10442 | $as_echo "no" >&6; } | |
e9c9a47c | 10443 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 |
9c60689e | 10444 | |
e9c9a47c | 10445 | fi |
9c60689e | 10446 | else |
e9c9a47c | 10447 | ac_cv_path_GPERF=$GPERF |
9c60689e DWT |
10448 | fi |
10449 | ||
e9c9a47c | 10450 | GPERF=$ac_cv_path_GPERF |
9c60689e | 10451 | |
e9c9a47c DWT |
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
10453 | $as_echo "$GPERF" >&6; } | |
3fd51f51 | 10454 | |
e9c9a47c DWT |
10455 | # Find a good install program. We prefer a C program (faster), |
10456 | # so one script is as good as another. But avoid the broken or | |
10457 | # incompatible versions: | |
10458 | # SysV /etc/install, /usr/sbin/install | |
10459 | # SunOS /usr/etc/install | |
10460 | # IRIX /sbin/install | |
10461 | # AIX /bin/install | |
10462 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
10463 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
10464 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
10465 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
10466 | # OS/2's system install, which has a completely different semantic | |
10467 | # ./install, which can be erroneously created by make from ./install.sh. | |
10468 | # Reject install programs that cannot install multiple files. | |
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
10470 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
10471 | if test -z "$INSTALL"; then | |
10472 | if test "${ac_cv_path_install+set}" = set; then : | |
10473 | $as_echo_n "(cached) " >&6 | |
10474 | else | |
10475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10476 | for as_dir in $PATH | |
10477 | do | |
10478 | IFS=$as_save_IFS | |
10479 | test -z "$as_dir" && as_dir=. | |
10480 | # Account for people who put trailing slashes in PATH elements. | |
10481 | case $as_dir/ in #(( | |
10482 | ./ | .// | /[cC]/* | \ | |
10483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
10484 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
10485 | /usr/ucb/* ) ;; | |
10486 | *) | |
10487 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
10488 | # Don't use installbsd from OSF since it installs stuff as root | |
10489 | # by default. | |
10490 | for ac_prog in ginstall scoinst install; do | |
10491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10492 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
10493 | if test $ac_prog = install && | |
10494 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10495 | # AIX install. It has an incompatible calling convention. | |
10496 | : | |
10497 | elif test $ac_prog = install && | |
10498 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10499 | # program-specific install script used by HP pwplus--don't use. | |
10500 | : | |
10501 | else | |
10502 | rm -rf conftest.one conftest.two conftest.dir | |
10503 | echo one > conftest.one | |
10504 | echo two > conftest.two | |
10505 | mkdir conftest.dir | |
10506 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
10507 | test -s conftest.one && test -s conftest.two && | |
10508 | test -s conftest.dir/conftest.one && | |
10509 | test -s conftest.dir/conftest.two | |
10510 | then | |
10511 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
10512 | break 3 | |
10513 | fi | |
10514 | fi | |
10515 | fi | |
10516 | done | |
10517 | done | |
10518 | ;; | |
10519 | esac | |
10520 | ||
10521 | done | |
10522 | IFS=$as_save_IFS | |
10523 | ||
10524 | rm -rf conftest.one conftest.two conftest.dir | |
10525 | ||
10526 | fi | |
10527 | if test "${ac_cv_path_install+set}" = set; then | |
10528 | INSTALL=$ac_cv_path_install | |
10529 | else | |
10530 | # As a last resort, use the slow shell script. Don't cache a | |
10531 | # value for INSTALL within a source directory, because that will | |
10532 | # break other packages using the cache if that directory is | |
10533 | # removed, or if the value is a relative name. | |
10534 | INSTALL=$ac_install_sh | |
10535 | fi | |
10536 | fi | |
10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
10538 | $as_echo "$INSTALL" >&6; } | |
10539 | ||
10540 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
10541 | # It thinks the first close brace ends the variable substitution. | |
10542 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
10543 | ||
10544 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
10545 | ||
10546 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
10547 | ||
b5bd4353 DWT |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5 |
10549 | $as_echo_n "checking for GNU tar >=1.19... " >&6; } | |
e9c9a47c DWT |
10550 | if test -z "$GNUTAR"; then |
10551 | ac_path_GNUTAR_found=false | |
10552 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10554 | for as_dir in $PATH | |
10555 | do | |
10556 | IFS=$as_save_IFS | |
10557 | test -z "$as_dir" && as_dir=. | |
10558 | for ac_prog in tar gtar gnutar; do | |
10559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10560 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
10561 | { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue | |
10562 | ||
10563 | if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then : | |
10564 | ||
b5bd4353 DWT |
10565 | as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` |
10566 | as_arg_v2=1.19 | |
10567 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10568 | case $? in #( | |
10569 | 1) : | |
10570 | ;; #( | |
10571 | 0) : | |
10572 | ||
10573 | ac_cv_path_GNUTAR=$ac_path_GNUTAR | |
10574 | ;; #( | |
10575 | 2) : | |
10576 | ||
10577 | ac_cv_path_GNUTAR=$ac_path_GNUTAR | |
10578 | ;; #( | |
10579 | *) : | |
10580 | ;; | |
10581 | esac | |
e9c9a47c DWT |
10582 | |
10583 | fi | |
10584 | ||
10585 | $ac_path_GNUTAR_found && break 3 | |
10586 | done | |
10587 | done | |
10588 | done | |
10589 | IFS=$as_save_IFS | |
10590 | if test -z "$ac_cv_path_GNUTAR"; then | |
10591 | : | |
10592 | fi | |
10593 | else | |
10594 | ac_cv_path_GNUTAR=$GNUTAR | |
10595 | fi | |
10596 | ||
10597 | if test "x$ac_cv_path_GNUTAR" != x; then : | |
10598 | ||
10599 | GNUTAR=$ac_cv_path_GNUTAR | |
10600 | ||
10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 | |
10602 | $as_echo "$GNUTAR" >&6; } | |
10603 | ||
10604 | else | |
10605 | ||
10606 | GNUTAR=: | |
10607 | ||
b5bd4353 DWT |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10609 | $as_echo "no" >&6; } | |
e9c9a47c DWT |
10610 | |
10611 | fi | |
b65019fe DWT |
10612 | for ac_prog in svn |
10613 | do | |
10614 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10615 | set dummy $ac_prog; ac_word=$2 | |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10617 | $as_echo_n "checking for $ac_word... " >&6; } | |
10618 | if test "${ac_cv_prog_SVN+set}" = set; then : | |
10619 | $as_echo_n "(cached) " >&6 | |
10620 | else | |
10621 | if test -n "$SVN"; then | |
10622 | ac_cv_prog_SVN="$SVN" # Let the user override the test. | |
10623 | else | |
10624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10625 | for as_dir in $PATH | |
10626 | do | |
10627 | IFS=$as_save_IFS | |
10628 | test -z "$as_dir" && as_dir=. | |
10629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10631 | ac_cv_prog_SVN="$ac_prog" | |
10632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10633 | break 2 | |
10634 | fi | |
10635 | done | |
10636 | done | |
10637 | IFS=$as_save_IFS | |
10638 | ||
10639 | fi | |
10640 | fi | |
10641 | SVN=$ac_cv_prog_SVN | |
10642 | if test -n "$SVN"; then | |
10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5 | |
10644 | $as_echo "$SVN" >&6; } | |
10645 | else | |
10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10647 | $as_echo "no" >&6; } | |
10648 | fi | |
10649 | ||
10650 | ||
10651 | test -n "$SVN" && break | |
10652 | done | |
10653 | ||
10654 | for ac_prog in svnversion | |
10655 | do | |
10656 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10657 | set dummy $ac_prog; ac_word=$2 | |
10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10659 | $as_echo_n "checking for $ac_word... " >&6; } | |
10660 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then : | |
10661 | $as_echo_n "(cached) " >&6 | |
10662 | else | |
10663 | if test -n "$SVNVERSION"; then | |
10664 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | |
10665 | else | |
10666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10667 | for as_dir in $PATH | |
10668 | do | |
10669 | IFS=$as_save_IFS | |
10670 | test -z "$as_dir" && as_dir=. | |
10671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10673 | ac_cv_prog_SVNVERSION="$ac_prog" | |
10674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10675 | break 2 | |
10676 | fi | |
10677 | done | |
10678 | done | |
10679 | IFS=$as_save_IFS | |
10680 | ||
10681 | fi | |
10682 | fi | |
10683 | SVNVERSION=$ac_cv_prog_SVNVERSION | |
10684 | if test -n "$SVNVERSION"; then | |
10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | |
10686 | $as_echo "$SVNVERSION" >&6; } | |
10687 | else | |
10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10689 | $as_echo "no" >&6; } | |
10690 | fi | |
10691 | ||
10692 | ||
10693 | test -n "$SVNVERSION" && break | |
10694 | done | |
10695 | ||
e9c9a47c DWT |
10696 | ac_ext=cpp |
10697 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10698 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10699 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10700 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10701 | if test -z "$CXX"; then | |
10702 | if test -n "$CCC"; then | |
10703 | CXX=$CCC | |
10704 | else | |
10705 | if test -n "$ac_tool_prefix"; then | |
10706 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10707 | do | |
10708 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10709 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10711 | $as_echo_n "checking for $ac_word... " >&6; } | |
10712 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10713 | $as_echo_n "(cached) " >&6 | |
10714 | else | |
10715 | if test -n "$CXX"; then | |
10716 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10717 | else | |
10718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10719 | for as_dir in $PATH | |
10720 | do | |
10721 | IFS=$as_save_IFS | |
10722 | test -z "$as_dir" && as_dir=. | |
10723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10725 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10727 | break 2 | |
10728 | fi | |
10729 | done | |
10730 | done | |
10731 | IFS=$as_save_IFS | |
10732 | ||
10733 | fi | |
10734 | fi | |
10735 | CXX=$ac_cv_prog_CXX | |
10736 | if test -n "$CXX"; then | |
10737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10738 | $as_echo "$CXX" >&6; } | |
10739 | else | |
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10741 | $as_echo "no" >&6; } | |
10742 | fi | |
10743 | ||
10744 | ||
10745 | test -n "$CXX" && break | |
10746 | done | |
10747 | fi | |
10748 | if test -z "$CXX"; then | |
10749 | ac_ct_CXX=$CXX | |
10750 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10751 | do | |
10752 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10753 | set dummy $ac_prog; ac_word=$2 | |
10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10755 | $as_echo_n "checking for $ac_word... " >&6; } | |
10756 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10757 | $as_echo_n "(cached) " >&6 | |
10758 | else | |
10759 | if test -n "$ac_ct_CXX"; then | |
10760 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10761 | else | |
10762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10763 | for as_dir in $PATH | |
10764 | do | |
10765 | IFS=$as_save_IFS | |
10766 | test -z "$as_dir" && as_dir=. | |
10767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10769 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10771 | break 2 | |
10772 | fi | |
10773 | done | |
10774 | done | |
10775 | IFS=$as_save_IFS | |
10776 | ||
10777 | fi | |
10778 | fi | |
10779 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10780 | if test -n "$ac_ct_CXX"; then | |
10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10782 | $as_echo "$ac_ct_CXX" >&6; } | |
10783 | else | |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10785 | $as_echo "no" >&6; } | |
10786 | fi | |
10787 | ||
10788 | ||
10789 | test -n "$ac_ct_CXX" && break | |
10790 | done | |
10791 | ||
10792 | if test "x$ac_ct_CXX" = x; then | |
10793 | CXX="g++" | |
10794 | else | |
10795 | case $cross_compiling:$ac_tool_warned in | |
10796 | yes:) | |
10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10798 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10799 | ac_tool_warned=yes ;; | |
10800 | esac | |
10801 | CXX=$ac_ct_CXX | |
10802 | fi | |
10803 | fi | |
10804 | ||
10805 | fi | |
10806 | fi | |
10807 | # Provide some information about the compiler. | |
10808 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10809 | set X $ac_compile | |
10810 | ac_compiler=$2 | |
10811 | for ac_option in --version -v -V -qversion; do | |
10812 | { { ac_try="$ac_compiler $ac_option >&5" | |
10813 | case "(($ac_try" in | |
10814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10815 | *) ac_try_echo=$ac_try;; | |
10816 | esac | |
47aaa820 DWT |
10817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
10818 | $as_echo "$ac_try_echo"; } >&5 | |
10819 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10820 | ac_status=$? | |
10821 | if test -s conftest.err; then | |
10822 | sed '10a\ | |
10823 | ... rest of stderr output deleted ... | |
10824 | 10q' conftest.err >conftest.er1 | |
10825 | cat conftest.er1 >&5 | |
3530897b | 10826 | fi |
47aaa820 DWT |
10827 | rm -f conftest.er1 conftest.err |
10828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10829 | test $ac_status = 0; } | |
3530897b | 10830 | done |
3530897b | 10831 | |
47aaa820 DWT |
10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10833 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10834 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10835 | $as_echo_n "(cached) " >&6 | |
10836 | else | |
10837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10838 | /* end confdefs.h. */ | |
10839 | ||
10840 | int | |
10841 | main () | |
10842 | { | |
10843 | #ifndef __GNUC__ | |
10844 | choke me | |
10845 | #endif | |
10846 | ||
10847 | ; | |
10848 | return 0; | |
10849 | } | |
10850 | _ACEOF | |
10851 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10852 | ac_compiler_gnu=yes | |
10853 | else | |
10854 | ac_compiler_gnu=no | |
3530897b | 10855 | fi |
47aaa820 DWT |
10856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10857 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10858 | ||
3530897b | 10859 | fi |
47aaa820 DWT |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
10861 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10862 | if test $ac_compiler_gnu = yes; then | |
10863 | GXX=yes | |
3530897b | 10864 | else |
47aaa820 | 10865 | GXX= |
3530897b | 10866 | fi |
47aaa820 DWT |
10867 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10868 | ac_save_CXXFLAGS=$CXXFLAGS | |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10870 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10871 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10872 | $as_echo_n "(cached) " >&6 | |
10873 | else | |
10874 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10875 | ac_cxx_werror_flag=yes | |
10876 | ac_cv_prog_cxx_g=no | |
10877 | CXXFLAGS="-g" | |
10878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10879 | /* end confdefs.h. */ | |
3530897b | 10880 | |
47aaa820 DWT |
10881 | int |
10882 | main () | |
10883 | { | |
3530897b | 10884 | |
47aaa820 DWT |
10885 | ; |
10886 | return 0; | |
10887 | } | |
10888 | _ACEOF | |
10889 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10890 | ac_cv_prog_cxx_g=yes | |
10891 | else | |
10892 | CXXFLAGS="" | |
10893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10894 | /* end confdefs.h. */ | |
9c60689e | 10895 | |
47aaa820 DWT |
10896 | int |
10897 | main () | |
10898 | { | |
9c60689e | 10899 | |
47aaa820 DWT |
10900 | ; |
10901 | return 0; | |
10902 | } | |
10903 | _ACEOF | |
10904 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e | 10905 | |
47aaa820 DWT |
10906 | else |
10907 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10908 | CXXFLAGS="-g" | |
10909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10910 | /* end confdefs.h. */ | |
9c60689e | 10911 | |
47aaa820 DWT |
10912 | int |
10913 | main () | |
10914 | { | |
9c60689e | 10915 | |
47aaa820 DWT |
10916 | ; |
10917 | return 0; | |
10918 | } | |
10919 | _ACEOF | |
10920 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10921 | ac_cv_prog_cxx_g=yes | |
10922 | fi | |
10923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10924 | fi | |
10925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10926 | fi | |
10927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10928 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10929 | fi | |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10931 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10932 | if test "$ac_test_CXXFLAGS" = set; then | |
10933 | CXXFLAGS=$ac_save_CXXFLAGS | |
10934 | elif test $ac_cv_prog_cxx_g = yes; then | |
10935 | if test "$GXX" = yes; then | |
10936 | CXXFLAGS="-g -O2" | |
10937 | else | |
10938 | CXXFLAGS="-g" | |
10939 | fi | |
10940 | else | |
10941 | if test "$GXX" = yes; then | |
10942 | CXXFLAGS="-O2" | |
10943 | else | |
10944 | CXXFLAGS= | |
10945 | fi | |
10946 | fi | |
10947 | ac_ext=c | |
10948 | ac_cpp='$CPP $CPPFLAGS' | |
10949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10952 | |
e9c9a47c DWT |
10953 | |
10954 | ac_ext=cpp | |
47aaa820 DWT |
10955 | ac_cpp='$CXXCPP $CPPFLAGS' |
10956 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10957 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10958 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
e9c9a47c DWT |
10959 | if test -z "$CXX"; then |
10960 | if test -n "$CCC"; then | |
10961 | CXX=$CCC | |
10962 | else | |
10963 | if test -n "$ac_tool_prefix"; then | |
10964 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10965 | do | |
10966 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10967 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10969 | $as_echo_n "checking for $ac_word... " >&6; } | |
10970 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10971 | $as_echo_n "(cached) " >&6 | |
10972 | else | |
10973 | if test -n "$CXX"; then | |
10974 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10975 | else | |
10976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10977 | for as_dir in $PATH | |
47aaa820 | 10978 | do |
e9c9a47c DWT |
10979 | IFS=$as_save_IFS |
10980 | test -z "$as_dir" && as_dir=. | |
10981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10983 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10985 | break 2 | |
10986 | fi | |
10987 | done | |
10988 | done | |
10989 | IFS=$as_save_IFS | |
9c60689e | 10990 | |
9c60689e | 10991 | fi |
47aaa820 | 10992 | fi |
e9c9a47c DWT |
10993 | CXX=$ac_cv_prog_CXX |
10994 | if test -n "$CXX"; then | |
10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10996 | $as_echo "$CXX" >&6; } | |
10997 | else | |
10998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10999 | $as_echo "no" >&6; } | |
47aaa820 | 11000 | fi |
9c60689e | 11001 | |
9c60689e | 11002 | |
e9c9a47c DWT |
11003 | test -n "$CXX" && break |
11004 | done | |
47aaa820 | 11005 | fi |
e9c9a47c DWT |
11006 | if test -z "$CXX"; then |
11007 | ac_ct_CXX=$CXX | |
11008 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
11009 | do | |
11010 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11011 | set dummy $ac_prog; ac_word=$2 | |
11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11013 | $as_echo_n "checking for $ac_word... " >&6; } | |
11014 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
11015 | $as_echo_n "(cached) " >&6 | |
9c60689e | 11016 | else |
e9c9a47c DWT |
11017 | if test -n "$ac_ct_CXX"; then |
11018 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11019 | else | |
11020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11021 | for as_dir in $PATH | |
47aaa820 | 11022 | do |
e9c9a47c DWT |
11023 | IFS=$as_save_IFS |
11024 | test -z "$as_dir" && as_dir=. | |
11025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11027 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11029 | break 2 | |
11030 | fi | |
11031 | done | |
11032 | done | |
11033 | IFS=$as_save_IFS | |
9c60689e | 11034 | |
e9c9a47c DWT |
11035 | fi |
11036 | fi | |
11037 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11038 | if test -n "$ac_ct_CXX"; then | |
11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
11040 | $as_echo "$ac_ct_CXX" >&6; } | |
47aaa820 | 11041 | else |
e9c9a47c DWT |
11042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11043 | $as_echo "no" >&6; } | |
9c60689e | 11044 | fi |
9c60689e | 11045 | |
e9c9a47c DWT |
11046 | |
11047 | test -n "$ac_ct_CXX" && break | |
11048 | done | |
11049 | ||
11050 | if test "x$ac_ct_CXX" = x; then | |
11051 | CXX="g++" | |
11052 | else | |
11053 | case $cross_compiling:$ac_tool_warned in | |
11054 | yes:) | |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11056 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11057 | ac_tool_warned=yes ;; | |
11058 | esac | |
11059 | CXX=$ac_ct_CXX | |
11060 | fi | |
9c60689e DWT |
11061 | fi |
11062 | ||
e9c9a47c DWT |
11063 | fi |
11064 | fi | |
11065 | # Provide some information about the compiler. | |
11066 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
11067 | set X $ac_compile | |
11068 | ac_compiler=$2 | |
11069 | for ac_option in --version -v -V -qversion; do | |
11070 | { { ac_try="$ac_compiler $ac_option >&5" | |
11071 | case "(($ac_try" in | |
11072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11073 | *) ac_try_echo=$ac_try;; | |
11074 | esac | |
11075 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11076 | $as_echo "$ac_try_echo"; } >&5 | |
11077 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
11078 | ac_status=$? | |
11079 | if test -s conftest.err; then | |
11080 | sed '10a\ | |
11081 | ... rest of stderr output deleted ... | |
11082 | 10q' conftest.err >conftest.er1 | |
11083 | cat conftest.er1 >&5 | |
11084 | fi | |
11085 | rm -f conftest.er1 conftest.err | |
11086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11087 | test $ac_status = 0; } | |
9c60689e DWT |
11088 | done |
11089 | ||
e9c9a47c DWT |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
11091 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
11092 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
11093 | $as_echo_n "(cached) " >&6 | |
9c60689e | 11094 | else |
e9c9a47c DWT |
11095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11096 | /* end confdefs.h. */ | |
9c60689e | 11097 | |
e9c9a47c DWT |
11098 | int |
11099 | main () | |
11100 | { | |
11101 | #ifndef __GNUC__ | |
11102 | choke me | |
11103 | #endif | |
9c60689e | 11104 | |
e9c9a47c DWT |
11105 | ; |
11106 | return 0; | |
11107 | } | |
11108 | _ACEOF | |
11109 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11110 | ac_compiler_gnu=yes | |
47aaa820 | 11111 | else |
e9c9a47c | 11112 | ac_compiler_gnu=no |
47aaa820 | 11113 | fi |
e9c9a47c DWT |
11114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11115 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11116 | ||
11117 | fi | |
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11119 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
11120 | if test $ac_compiler_gnu = yes; then | |
11121 | GXX=yes | |
11122 | else | |
11123 | GXX= | |
11124 | fi | |
11125 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11126 | ac_save_CXXFLAGS=$CXXFLAGS | |
11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
11128 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
11129 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
11130 | $as_echo_n "(cached) " >&6 | |
11131 | else | |
11132 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
11133 | ac_cxx_werror_flag=yes | |
11134 | ac_cv_prog_cxx_g=no | |
11135 | CXXFLAGS="-g" | |
11136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11137 | /* end confdefs.h. */ | |
11138 | ||
11139 | int | |
11140 | main () | |
11141 | { | |
11142 | ||
11143 | ; | |
11144 | return 0; | |
11145 | } | |
11146 | _ACEOF | |
11147 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11148 | ac_cv_prog_cxx_g=yes | |
11149 | else | |
11150 | CXXFLAGS="" | |
11151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11152 | /* end confdefs.h. */ | |
11153 | ||
11154 | int | |
11155 | main () | |
11156 | { | |
11157 | ||
11158 | ; | |
11159 | return 0; | |
11160 | } | |
11161 | _ACEOF | |
11162 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11163 | ||
11164 | else | |
11165 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11166 | CXXFLAGS="-g" | |
11167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11168 | /* end confdefs.h. */ | |
11169 | ||
11170 | int | |
11171 | main () | |
11172 | { | |
11173 | ||
11174 | ; | |
11175 | return 0; | |
11176 | } | |
11177 | _ACEOF | |
11178 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11179 | ac_cv_prog_cxx_g=yes | |
11180 | fi | |
11181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11182 | fi | |
11183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11184 | fi | |
11185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11186 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11187 | fi | |
11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
11189 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
11190 | if test "$ac_test_CXXFLAGS" = set; then | |
11191 | CXXFLAGS=$ac_save_CXXFLAGS | |
11192 | elif test $ac_cv_prog_cxx_g = yes; then | |
11193 | if test "$GXX" = yes; then | |
11194 | CXXFLAGS="-g -O2" | |
11195 | else | |
11196 | CXXFLAGS="-g" | |
11197 | fi | |
11198 | else | |
11199 | if test "$GXX" = yes; then | |
11200 | CXXFLAGS="-O2" | |
11201 | else | |
11202 | CXXFLAGS= | |
11203 | fi | |
11204 | fi | |
11205 | ac_ext=c | |
11206 | ac_cpp='$CPP $CPPFLAGS' | |
11207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11210 | ||
11211 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
11212 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
11213 | (test "X$CXX" != "Xg++"))) ; then | |
11214 | ac_ext=cpp | |
11215 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11216 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11217 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11218 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11220 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11221 | if test -z "$CXXCPP"; then | |
11222 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
11223 | $as_echo_n "(cached) " >&6 | |
11224 | else | |
11225 | # Double quotes because CXXCPP needs to be expanded | |
11226 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
11227 | do | |
11228 | ac_preproc_ok=false | |
11229 | for ac_cxx_preproc_warn_flag in '' yes | |
11230 | do | |
11231 | # Use a header file that comes with gcc, so configuring glibc | |
11232 | # with a fresh cross-compiler works. | |
11233 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11234 | # <limits.h> exists even on freestanding compilers. | |
11235 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11236 | # not just through cpp. "Syntax error" is here to catch this case. | |
11237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11238 | /* end confdefs.h. */ | |
11239 | #ifdef __STDC__ | |
11240 | # include <limits.h> | |
11241 | #else | |
11242 | # include <assert.h> | |
11243 | #endif | |
11244 | Syntax error | |
11245 | _ACEOF | |
11246 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11247 | ||
11248 | else | |
11249 | # Broken: fails on valid input. | |
11250 | continue | |
11251 | fi | |
11252 | rm -f conftest.err conftest.$ac_ext | |
11253 | ||
11254 | # OK, works on sane cases. Now check whether nonexistent headers | |
11255 | # can be detected and how. | |
11256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11257 | /* end confdefs.h. */ | |
11258 | #include <ac_nonexistent.h> | |
11259 | _ACEOF | |
11260 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11261 | # Broken: success on invalid input. | |
11262 | continue | |
11263 | else | |
11264 | # Passes both tests. | |
11265 | ac_preproc_ok=: | |
11266 | break | |
11267 | fi | |
11268 | rm -f conftest.err conftest.$ac_ext | |
11269 | ||
11270 | done | |
11271 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11272 | rm -f conftest.err conftest.$ac_ext | |
11273 | if $ac_preproc_ok; then : | |
11274 | break | |
11275 | fi | |
11276 | ||
11277 | done | |
11278 | ac_cv_prog_CXXCPP=$CXXCPP | |
11279 | ||
11280 | fi | |
11281 | CXXCPP=$ac_cv_prog_CXXCPP | |
11282 | else | |
11283 | ac_cv_prog_CXXCPP=$CXXCPP | |
11284 | fi | |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
11286 | $as_echo "$CXXCPP" >&6; } | |
11287 | ac_preproc_ok=false | |
11288 | for ac_cxx_preproc_warn_flag in '' yes | |
11289 | do | |
11290 | # Use a header file that comes with gcc, so configuring glibc | |
11291 | # with a fresh cross-compiler works. | |
11292 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11293 | # <limits.h> exists even on freestanding compilers. | |
11294 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11295 | # not just through cpp. "Syntax error" is here to catch this case. | |
11296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11297 | /* end confdefs.h. */ | |
11298 | #ifdef __STDC__ | |
11299 | # include <limits.h> | |
11300 | #else | |
11301 | # include <assert.h> | |
11302 | #endif | |
11303 | Syntax error | |
11304 | _ACEOF | |
11305 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11306 | ||
11307 | else | |
11308 | # Broken: fails on valid input. | |
11309 | continue | |
11310 | fi | |
11311 | rm -f conftest.err conftest.$ac_ext | |
11312 | ||
11313 | # OK, works on sane cases. Now check whether nonexistent headers | |
11314 | # can be detected and how. | |
11315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11316 | /* end confdefs.h. */ | |
11317 | #include <ac_nonexistent.h> | |
11318 | _ACEOF | |
11319 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11320 | # Broken: success on invalid input. | |
11321 | continue | |
11322 | else | |
11323 | # Passes both tests. | |
11324 | ac_preproc_ok=: | |
11325 | break | |
11326 | fi | |
11327 | rm -f conftest.err conftest.$ac_ext | |
11328 | ||
11329 | done | |
11330 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11331 | rm -f conftest.err conftest.$ac_ext | |
11332 | if $ac_preproc_ok; then : | |
11333 | ||
11334 | else | |
11335 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11336 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11337 | _lt_caught_CXX_error=yes; } | |
11338 | fi | |
11339 | ||
11340 | ac_ext=c | |
11341 | ac_cpp='$CPP $CPPFLAGS' | |
11342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11345 | ||
11346 | else | |
11347 | _lt_caught_CXX_error=yes | |
11348 | fi | |
11349 | ||
9c60689e | 11350 | |
9c60689e | 11351 | |
9c60689e | 11352 | |
9c60689e DWT |
11353 | ac_ext=cpp |
11354 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11355 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11356 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11357 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 11358 | |
47aaa820 DWT |
11359 | archive_cmds_need_lc_CXX=no |
11360 | allow_undefined_flag_CXX= | |
11361 | always_export_symbols_CXX=no | |
11362 | archive_expsym_cmds_CXX= | |
11363 | compiler_needs_object_CXX=no | |
11364 | export_dynamic_flag_spec_CXX= | |
11365 | hardcode_direct_CXX=no | |
11366 | hardcode_direct_absolute_CXX=no | |
11367 | hardcode_libdir_flag_spec_CXX= | |
11368 | hardcode_libdir_flag_spec_ld_CXX= | |
11369 | hardcode_libdir_separator_CXX= | |
11370 | hardcode_minus_L_CXX=no | |
11371 | hardcode_shlibpath_var_CXX=unsupported | |
11372 | hardcode_automatic_CXX=no | |
11373 | inherit_rpath_CXX=no | |
11374 | module_cmds_CXX= | |
11375 | module_expsym_cmds_CXX= | |
11376 | link_all_deplibs_CXX=unknown | |
11377 | old_archive_cmds_CXX=$old_archive_cmds | |
11378 | no_undefined_flag_CXX= | |
11379 | whole_archive_flag_spec_CXX= | |
11380 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 11381 | |
47aaa820 DWT |
11382 | # Source file extension for C++ test sources. |
11383 | ac_ext=cpp | |
9c60689e | 11384 | |
47aaa820 DWT |
11385 | # Object file extension for compiled C++ test sources. |
11386 | objext=o | |
11387 | objext_CXX=$objext | |
9c60689e | 11388 | |
47aaa820 DWT |
11389 | # No sense in running all these tests if we already determined that |
11390 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
11391 | # are currently assumed to apply to all compilers on this platform, | |
11392 | # and will be corrupted by setting them based on a non-working compiler. | |
11393 | if test "$_lt_caught_CXX_error" != yes; then | |
11394 | # Code to be used in simple compile tests | |
11395 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 11396 | |
47aaa820 DWT |
11397 | # Code to be used in simple link tests |
11398 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 11399 | |
47aaa820 | 11400 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 11401 | |
9c60689e | 11402 | |
9c60689e | 11403 | |
9c60689e | 11404 | |
9c60689e | 11405 | |
9c60689e | 11406 | |
47aaa820 DWT |
11407 | # If no C compiler was specified, use CC. |
11408 | LTCC=${LTCC-"$CC"} | |
9c60689e | 11409 | |
47aaa820 DWT |
11410 | # If no C compiler flags were specified, use CFLAGS. |
11411 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 11412 | |
47aaa820 DWT |
11413 | # Allow CC to be a program name with arguments. |
11414 | compiler=$CC | |
9c60689e | 11415 | |
9c60689e | 11416 | |
47aaa820 DWT |
11417 | # save warnings/boilerplate of simple test code |
11418 | ac_outfile=conftest.$ac_objext | |
11419 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11420 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11421 | _lt_compiler_boilerplate=`cat conftest.err` | |
11422 | $RM conftest* | |
9c60689e | 11423 | |
47aaa820 DWT |
11424 | ac_outfile=conftest.$ac_objext |
11425 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11426 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11427 | _lt_linker_boilerplate=`cat conftest.err` | |
11428 | $RM -r conftest* | |
9c60689e | 11429 | |
9c60689e | 11430 | |
47aaa820 DWT |
11431 | # Allow CC to be a program name with arguments. |
11432 | lt_save_CC=$CC | |
11433 | lt_save_LD=$LD | |
11434 | lt_save_GCC=$GCC | |
11435 | GCC=$GXX | |
11436 | lt_save_with_gnu_ld=$with_gnu_ld | |
11437 | lt_save_path_LD=$lt_cv_path_LD | |
11438 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11439 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 11440 | else |
47aaa820 | 11441 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 11442 | fi |
47aaa820 DWT |
11443 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11444 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 11445 | else |
47aaa820 | 11446 | $as_unset lt_cv_path_LD |
9c60689e | 11447 | fi |
47aaa820 DWT |
11448 | test -z "${LDCXX+set}" || LD=$LDCXX |
11449 | CC=${CXX-"c++"} | |
11450 | compiler=$CC | |
11451 | compiler_CXX=$CC | |
11452 | for cc_temp in $compiler""; do | |
11453 | case $cc_temp in | |
11454 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11455 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11456 | \-*) ;; | |
11457 | *) break;; | |
11458 | esac | |
11459 | done | |
11460 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9c60689e DWT |
11461 | |
11462 | ||
47aaa820 DWT |
11463 | if test -n "$compiler"; then |
11464 | # We don't want -fno-exception when compiling C++ code, so set the | |
11465 | # no_builtin_flag separately | |
11466 | if test "$GXX" = yes; then | |
11467 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11468 | else | |
11469 | lt_prog_compiler_no_builtin_flag_CXX= | |
11470 | fi | |
9c60689e | 11471 | |
47aaa820 DWT |
11472 | if test "$GXX" = yes; then |
11473 | # Set up default GNU C++ configuration | |
11474 | ||
11475 | ||
11476 | ||
11477 | # Check whether --with-gnu-ld was given. | |
11478 | if test "${with_gnu_ld+set}" = set; then : | |
11479 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 11480 | else |
47aaa820 | 11481 | with_gnu_ld=no |
9c60689e DWT |
11482 | fi |
11483 | ||
47aaa820 DWT |
11484 | ac_prog=ld |
11485 | if test "$GCC" = yes; then | |
11486 | # Check if gcc -print-prog-name=ld gives a path. | |
11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
11488 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
11489 | case $host in | |
11490 | *-*-mingw*) | |
11491 | # gcc leaves a trailing carriage return which upsets mingw | |
11492 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11493 | *) | |
11494 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11495 | esac | |
11496 | case $ac_prog in | |
11497 | # Accept absolute paths. | |
11498 | [\\/]* | ?:[\\/]*) | |
11499 | re_direlt='/[^/][^/]*/\.\./' | |
11500 | # Canonicalize the pathname of ld | |
11501 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11502 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11503 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11504 | done | |
11505 | test -z "$LD" && LD="$ac_prog" | |
11506 | ;; | |
11507 | "") | |
11508 | # If it fails, then pretend we aren't using GCC. | |
11509 | ac_prog=ld | |
11510 | ;; | |
11511 | *) | |
11512 | # If it is relative, then search for the first ld in PATH. | |
11513 | with_gnu_ld=unknown | |
11514 | ;; | |
11515 | esac | |
11516 | elif test "$with_gnu_ld" = yes; then | |
11517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
11518 | $as_echo_n "checking for GNU ld... " >&6; } | |
11519 | else | |
11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
11521 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 11522 | fi |
47aaa820 | 11523 | if test "${lt_cv_path_LD+set}" = set; then : |
9c60689e DWT |
11524 | $as_echo_n "(cached) " >&6 |
11525 | else | |
47aaa820 DWT |
11526 | if test -z "$LD"; then |
11527 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11528 | for ac_dir in $PATH; do | |
11529 | IFS="$lt_save_ifs" | |
11530 | test -z "$ac_dir" && ac_dir=. | |
11531 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11532 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11533 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11534 | # but apparently some variants of GNU ld only accept -v. | |
11535 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11536 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11537 | *GNU* | *'with BFD'*) | |
11538 | test "$with_gnu_ld" != no && break | |
11539 | ;; | |
11540 | *) | |
11541 | test "$with_gnu_ld" != yes && break | |
11542 | ;; | |
11543 | esac | |
11544 | fi | |
9c60689e | 11545 | done |
47aaa820 DWT |
11546 | IFS="$lt_save_ifs" |
11547 | else | |
11548 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
11549 | fi |
11550 | fi | |
47aaa820 DWT |
11551 | |
11552 | LD="$lt_cv_path_LD" | |
11553 | if test -n "$LD"; then | |
11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11555 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
11556 | else |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11558 | $as_echo "no" >&6; } | |
11559 | fi | |
47aaa820 DWT |
11560 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11562 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11563 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
11564 | $as_echo_n "(cached) " >&6 | |
11565 | else | |
11566 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11567 | case `$LD -v 2>&1 </dev/null` in | |
11568 | *GNU* | *'with BFD'*) | |
11569 | lt_cv_prog_gnu_ld=yes | |
11570 | ;; | |
11571 | *) | |
11572 | lt_cv_prog_gnu_ld=no | |
11573 | ;; | |
11574 | esac | |
11575 | fi | |
11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
11577 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
11578 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
11579 | |
11580 | ||
9c60689e | 11581 | |
9c60689e | 11582 | |
9c60689e | 11583 | |
9c60689e | 11584 | |
9c60689e | 11585 | |
47aaa820 DWT |
11586 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11587 | # archiving commands below assume that GNU ld is being used. | |
11588 | if test "$with_gnu_ld" = yes; then | |
11589 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11590 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9c60689e | 11591 | |
47aaa820 DWT |
11592 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11593 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11594 | |
47aaa820 DWT |
11595 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11596 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11597 | # investigate it a little bit more. (MM) | |
11598 | wlarc='${wl}' | |
9c60689e | 11599 | |
47aaa820 DWT |
11600 | # ancient GNU ld didn't support --whole-archive et. al. |
11601 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11602 | $GREP 'no-whole-archive' > /dev/null; then | |
11603 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11604 | else | |
11605 | whole_archive_flag_spec_CXX= | |
11606 | fi | |
11607 | else | |
11608 | with_gnu_ld=no | |
11609 | wlarc= | |
11610 | ||
11611 | # A generic and very simple default shared library creation | |
11612 | # command for GNU C++ for the case where it uses the native | |
11613 | # linker, instead of GNU ld. If possible, this setting should | |
11614 | # overridden to take advantage of the native linker features on | |
11615 | # the platform it is being used on. | |
11616 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11617 | fi | |
11618 | ||
11619 | # Commands to make compiler produce verbose output that lists | |
11620 | # what "hidden" libraries, object files and flags are used when | |
11621 | # linking a shared library. | |
11622 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11623 | ||
11624 | else | |
11625 | GXX=no | |
11626 | with_gnu_ld=no | |
11627 | wlarc= | |
11628 | fi | |
11629 | ||
11630 | # PORTME: fill in a description of your system's C++ link characteristics | |
11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11632 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11633 | ld_shlibs_CXX=yes | |
11634 | case $host_os in | |
11635 | aix3*) | |
11636 | # FIXME: insert proper C++ library support | |
11637 | ld_shlibs_CXX=no | |
11638 | ;; | |
11639 | aix[4-9]*) | |
11640 | if test "$host_cpu" = ia64; then | |
11641 | # On IA64, the linker does run time linking by default, so we don't | |
11642 | # have to do anything special. | |
11643 | aix_use_runtimelinking=no | |
11644 | exp_sym_flag='-Bexport' | |
11645 | no_entry_flag="" | |
11646 | else | |
11647 | aix_use_runtimelinking=no | |
11648 | ||
11649 | # Test if we are trying to use run time linking or normal | |
11650 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11651 | # need to do runtime linking. | |
11652 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11653 | for ld_flag in $LDFLAGS; do | |
11654 | case $ld_flag in | |
11655 | *-brtl*) | |
11656 | aix_use_runtimelinking=yes | |
11657 | break | |
11658 | ;; | |
11659 | esac | |
11660 | done | |
11661 | ;; | |
11662 | esac | |
11663 | ||
11664 | exp_sym_flag='-bexport' | |
11665 | no_entry_flag='-bnoentry' | |
11666 | fi | |
11667 | ||
11668 | # When large executables or shared objects are built, AIX ld can | |
11669 | # have problems creating the table of contents. If linking a library | |
11670 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11671 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11672 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11673 | ||
11674 | archive_cmds_CXX='' | |
11675 | hardcode_direct_CXX=yes | |
11676 | hardcode_direct_absolute_CXX=yes | |
11677 | hardcode_libdir_separator_CXX=':' | |
11678 | link_all_deplibs_CXX=yes | |
11679 | file_list_spec_CXX='${wl}-f,' | |
11680 | ||
11681 | if test "$GXX" = yes; then | |
11682 | case $host_os in aix4.[012]|aix4.[012].*) | |
11683 | # We only want to do this on AIX 4.2 and lower, the check | |
11684 | # below for broken collect2 doesn't work under 4.3+ | |
11685 | collect2name=`${CC} -print-prog-name=collect2` | |
11686 | if test -f "$collect2name" && | |
11687 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11688 | then | |
11689 | # We have reworked collect2 | |
11690 | : | |
11691 | else | |
11692 | # We have old collect2 | |
11693 | hardcode_direct_CXX=unsupported | |
11694 | # It fails to find uninstalled libraries when the uninstalled | |
11695 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11696 | # to unsupported forces relinking | |
11697 | hardcode_minus_L_CXX=yes | |
11698 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11699 | hardcode_libdir_separator_CXX= | |
11700 | fi | |
11701 | esac | |
11702 | shared_flag='-shared' | |
11703 | if test "$aix_use_runtimelinking" = yes; then | |
11704 | shared_flag="$shared_flag "'${wl}-G' | |
11705 | fi | |
11706 | else | |
11707 | # not using gcc | |
11708 | if test "$host_cpu" = ia64; then | |
11709 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11710 | # chokes on -Wl,-G. The following line is correct: | |
11711 | shared_flag='-G' | |
11712 | else | |
11713 | if test "$aix_use_runtimelinking" = yes; then | |
11714 | shared_flag='${wl}-G' | |
11715 | else | |
11716 | shared_flag='${wl}-bM:SRE' | |
11717 | fi | |
11718 | fi | |
11719 | fi | |
11720 | ||
11721 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11722 | # It seems that -bexpall does not export symbols beginning with | |
11723 | # underscore (_), so it is better to generate a list of symbols to | |
11724 | # export. | |
11725 | always_export_symbols_CXX=yes | |
11726 | if test "$aix_use_runtimelinking" = yes; then | |
11727 | # Warning - without using the other runtime loading flags (-brtl), | |
11728 | # -berok will link without error, but may produce a broken library. | |
11729 | allow_undefined_flag_CXX='-berok' | |
11730 | # Determine the default libpath from the value encoded in an empty | |
11731 | # executable. | |
11732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11733 | /* end confdefs.h. */ |
11734 | ||
11735 | int | |
11736 | main () | |
11737 | { | |
11738 | ||
11739 | ; | |
11740 | return 0; | |
11741 | } | |
11742 | _ACEOF | |
47aaa820 | 11743 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11744 | |
47aaa820 DWT |
11745 | lt_aix_libpath_sed=' |
11746 | /Import File Strings/,/^$/ { | |
11747 | /^0/ { | |
11748 | s/^0 *\(.*\)$/\1/ | |
11749 | p | |
11750 | } | |
11751 | }' | |
11752 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11753 | # Check for a 64-bit object if we didn't find anything. | |
11754 | if test -z "$aix_libpath"; then | |
11755 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11756 | fi | |
11757 | fi | |
11758 | rm -f core conftest.err conftest.$ac_objext \ | |
11759 | conftest$ac_exeext conftest.$ac_ext | |
11760 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11761 | ||
11762 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11763 | ||
11764 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11765 | else | |
11766 | if test "$host_cpu" = ia64; then | |
11767 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11768 | allow_undefined_flag_CXX="-z nodefs" | |
11769 | 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" | |
11770 | else | |
11771 | # Determine the default libpath from the value encoded in an | |
11772 | # empty executable. | |
11773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11774 | /* end confdefs.h. */ |
11775 | ||
11776 | int | |
11777 | main () | |
11778 | { | |
11779 | ||
11780 | ; | |
11781 | return 0; | |
11782 | } | |
11783 | _ACEOF | |
47aaa820 | 11784 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11785 | |
47aaa820 DWT |
11786 | lt_aix_libpath_sed=' |
11787 | /Import File Strings/,/^$/ { | |
11788 | /^0/ { | |
11789 | s/^0 *\(.*\)$/\1/ | |
11790 | p | |
11791 | } | |
11792 | }' | |
11793 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11794 | # Check for a 64-bit object if we didn't find anything. | |
11795 | if test -z "$aix_libpath"; then | |
11796 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9c60689e | 11797 | fi |
9c60689e | 11798 | fi |
47aaa820 DWT |
11799 | rm -f core conftest.err conftest.$ac_objext \ |
11800 | conftest$ac_exeext conftest.$ac_ext | |
11801 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9c60689e | 11802 | |
47aaa820 DWT |
11803 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11804 | # Warning - without using the other run time loading flags, | |
11805 | # -berok will link without error, but may produce a broken library. | |
11806 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11807 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11808 | # Exported symbols can be pulled into shared objects from archives | |
11809 | whole_archive_flag_spec_CXX='$convenience' | |
11810 | archive_cmds_need_lc_CXX=yes | |
11811 | # This is similar to how AIX traditionally builds its shared | |
11812 | # libraries. | |
11813 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11814 | fi | |
11815 | fi | |
11816 | ;; | |
9c60689e | 11817 | |
47aaa820 DWT |
11818 | beos*) |
11819 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11820 | allow_undefined_flag_CXX=unsupported | |
11821 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11822 | # support --undefined. This deserves some investigation. FIXME | |
11823 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11824 | else | |
11825 | ld_shlibs_CXX=no | |
11826 | fi | |
11827 | ;; | |
9c60689e | 11828 | |
47aaa820 DWT |
11829 | chorus*) |
11830 | case $cc_basename in | |
11831 | *) | |
11832 | # FIXME: insert proper C++ library support | |
11833 | ld_shlibs_CXX=no | |
11834 | ;; | |
11835 | esac | |
11836 | ;; | |
9c60689e | 11837 | |
47aaa820 DWT |
11838 | cygwin* | mingw* | pw32* | cegcc*) |
11839 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11840 | # as there is no search path for DLLs. | |
11841 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11842 | allow_undefined_flag_CXX=unsupported | |
11843 | always_export_symbols_CXX=no | |
11844 | enable_shared_with_static_runtimes_CXX=yes | |
9c60689e | 11845 | |
47aaa820 DWT |
11846 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
11847 | 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' | |
11848 | # If the export-symbols file already is a .def file (1st line | |
11849 | # is EXPORTS), use it as is; otherwise, prepend... | |
11850 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11851 | cp $export_symbols $output_objdir/$soname.def; | |
11852 | else | |
11853 | echo EXPORTS > $output_objdir/$soname.def; | |
11854 | cat $export_symbols >> $output_objdir/$soname.def; | |
11855 | fi~ | |
11856 | $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' | |
11857 | else | |
11858 | ld_shlibs_CXX=no | |
11859 | fi | |
11860 | ;; | |
11861 | darwin* | rhapsody*) | |
9c60689e | 11862 | |
9c60689e | 11863 | |
47aaa820 DWT |
11864 | archive_cmds_need_lc_CXX=no |
11865 | hardcode_direct_CXX=no | |
11866 | hardcode_automatic_CXX=yes | |
11867 | hardcode_shlibpath_var_CXX=unsupported | |
11868 | whole_archive_flag_spec_CXX='' | |
11869 | link_all_deplibs_CXX=yes | |
11870 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11871 | case $cc_basename in | |
11872 | ifort*) _lt_dar_can_shared=yes ;; | |
11873 | *) _lt_dar_can_shared=$GCC ;; | |
11874 | esac | |
11875 | if test "$_lt_dar_can_shared" = "yes"; then | |
11876 | output_verbose_link_cmd=echo | |
11877 | 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}" | |
11878 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11879 | 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}" | |
11880 | 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}" | |
11881 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11882 | 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}" | |
11883 | 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}" | |
11884 | fi | |
9c60689e | 11885 | |
47aaa820 DWT |
11886 | else |
11887 | ld_shlibs_CXX=no | |
11888 | fi | |
9c60689e | 11889 | |
47aaa820 | 11890 | ;; |
9c60689e | 11891 | |
47aaa820 DWT |
11892 | dgux*) |
11893 | case $cc_basename in | |
11894 | ec++*) | |
11895 | # FIXME: insert proper C++ library support | |
11896 | ld_shlibs_CXX=no | |
11897 | ;; | |
11898 | ghcx*) | |
11899 | # Green Hills C++ Compiler | |
11900 | # FIXME: insert proper C++ library support | |
11901 | ld_shlibs_CXX=no | |
11902 | ;; | |
11903 | *) | |
11904 | # FIXME: insert proper C++ library support | |
11905 | ld_shlibs_CXX=no | |
11906 | ;; | |
11907 | esac | |
11908 | ;; | |
9c60689e | 11909 | |
47aaa820 DWT |
11910 | freebsd[12]*) |
11911 | # C++ shared libraries reported to be fairly broken before | |
11912 | # switch to ELF | |
11913 | ld_shlibs_CXX=no | |
11914 | ;; | |
9c60689e | 11915 | |
47aaa820 DWT |
11916 | freebsd-elf*) |
11917 | archive_cmds_need_lc_CXX=no | |
11918 | ;; | |
9c60689e | 11919 | |
47aaa820 DWT |
11920 | freebsd* | dragonfly*) |
11921 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11922 | # conventions | |
11923 | ld_shlibs_CXX=yes | |
11924 | ;; | |
9c60689e | 11925 | |
47aaa820 DWT |
11926 | gnu*) |
11927 | ;; | |
9c60689e | 11928 | |
47aaa820 DWT |
11929 | hpux9*) |
11930 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11931 | hardcode_libdir_separator_CXX=: | |
11932 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11933 | hardcode_direct_CXX=yes | |
11934 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11935 | # but as the default | |
11936 | # location of the library. | |
9c60689e | 11937 | |
47aaa820 DWT |
11938 | case $cc_basename in |
11939 | CC*) | |
11940 | # FIXME: insert proper C++ library support | |
11941 | ld_shlibs_CXX=no | |
11942 | ;; | |
11943 | aCC*) | |
11944 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11945 | # Commands to make compiler produce verbose output that lists | |
11946 | # what "hidden" libraries, object files and flags are used when | |
11947 | # linking a shared library. | |
11948 | # | |
11949 | # There doesn't appear to be a way to prevent this compiler from | |
11950 | # explicitly linking system object files so we need to strip them | |
11951 | # from the output so that they don't get included in the library | |
11952 | # dependencies. | |
11953 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11954 | ;; | |
11955 | *) | |
11956 | if test "$GXX" = yes; then | |
11957 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11958 | else | |
11959 | # FIXME: insert proper C++ library support | |
11960 | ld_shlibs_CXX=no | |
11961 | fi | |
11962 | ;; | |
11963 | esac | |
11964 | ;; | |
9c60689e | 11965 | |
47aaa820 DWT |
11966 | hpux10*|hpux11*) |
11967 | if test $with_gnu_ld = no; then | |
11968 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11969 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11970 | |
47aaa820 DWT |
11971 | case $host_cpu in |
11972 | hppa*64*|ia64*) | |
11973 | ;; | |
11974 | *) | |
11975 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11976 | ;; | |
11977 | esac | |
11978 | fi | |
11979 | case $host_cpu in | |
11980 | hppa*64*|ia64*) | |
11981 | hardcode_direct_CXX=no | |
11982 | hardcode_shlibpath_var_CXX=no | |
11983 | ;; | |
11984 | *) | |
11985 | hardcode_direct_CXX=yes | |
11986 | hardcode_direct_absolute_CXX=yes | |
11987 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11988 | # but as the default | |
11989 | # location of the library. | |
11990 | ;; | |
11991 | esac | |
9c60689e | 11992 | |
47aaa820 DWT |
11993 | case $cc_basename in |
11994 | CC*) | |
11995 | # FIXME: insert proper C++ library support | |
11996 | ld_shlibs_CXX=no | |
11997 | ;; | |
11998 | aCC*) | |
11999 | case $host_cpu in | |
12000 | hppa*64*) | |
12001 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12002 | ;; | |
12003 | ia64*) | |
12004 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12005 | ;; | |
12006 | *) | |
12007 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12008 | ;; | |
12009 | esac | |
12010 | # Commands to make compiler produce verbose output that lists | |
12011 | # what "hidden" libraries, object files and flags are used when | |
12012 | # linking a shared library. | |
12013 | # | |
12014 | # There doesn't appear to be a way to prevent this compiler from | |
12015 | # explicitly linking system object files so we need to strip them | |
12016 | # from the output so that they don't get included in the library | |
12017 | # dependencies. | |
12018 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12019 | ;; | |
12020 | *) | |
12021 | if test "$GXX" = yes; then | |
12022 | if test $with_gnu_ld = no; then | |
12023 | case $host_cpu in | |
12024 | hppa*64*) | |
12025 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12026 | ;; | |
12027 | ia64*) | |
12028 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12029 | ;; | |
12030 | *) | |
12031 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12032 | ;; | |
12033 | esac | |
12034 | fi | |
12035 | else | |
12036 | # FIXME: insert proper C++ library support | |
12037 | ld_shlibs_CXX=no | |
12038 | fi | |
12039 | ;; | |
12040 | esac | |
12041 | ;; | |
9c60689e | 12042 | |
47aaa820 DWT |
12043 | interix[3-9]*) |
12044 | hardcode_direct_CXX=no | |
12045 | hardcode_shlibpath_var_CXX=no | |
12046 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12047 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12048 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12049 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12050 | # default) and relocated if they conflict, which is a slow very memory | |
12051 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12052 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12053 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12054 | 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' | |
12055 | 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' | |
12056 | ;; | |
12057 | irix5* | irix6*) | |
12058 | case $cc_basename in | |
12059 | CC*) | |
12060 | # SGI C++ | |
12061 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9c60689e | 12062 | |
47aaa820 DWT |
12063 | # Archives containing C++ object files must be created using |
12064 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12065 | # necessary to make sure instantiated templates are included | |
12066 | # in the archive. | |
12067 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12068 | ;; | |
12069 | *) | |
12070 | if test "$GXX" = yes; then | |
12071 | if test "$with_gnu_ld" = no; then | |
12072 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12073 | else | |
12074 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
12075 | fi | |
12076 | fi | |
12077 | link_all_deplibs_CXX=yes | |
12078 | ;; | |
12079 | esac | |
12080 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12081 | hardcode_libdir_separator_CXX=: | |
12082 | inherit_rpath_CXX=yes | |
12083 | ;; | |
9c60689e | 12084 | |
1504c9b8 | 12085 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
12086 | case $cc_basename in |
12087 | KCC*) | |
12088 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 12089 | |
47aaa820 DWT |
12090 | # KCC will only create a shared library if the output file |
12091 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12092 | # to its proper name (with version) after linking. | |
12093 | 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' | |
12094 | 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' | |
12095 | # Commands to make compiler produce verbose output that lists | |
12096 | # what "hidden" libraries, object files and flags are used when | |
12097 | # linking a shared library. | |
12098 | # | |
12099 | # There doesn't appear to be a way to prevent this compiler from | |
12100 | # explicitly linking system object files so we need to strip them | |
12101 | # from the output so that they don't get included in the library | |
12102 | # dependencies. | |
12103 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
9c60689e | 12104 | |
47aaa820 DWT |
12105 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12106 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 12107 | |
47aaa820 DWT |
12108 | # Archives containing C++ object files must be created using |
12109 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12110 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12111 | ;; | |
12112 | icpc* | ecpc* ) | |
12113 | # Intel C++ | |
12114 | with_gnu_ld=yes | |
12115 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12116 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12117 | # earlier do not add the objects themselves. | |
12118 | case `$CC -V 2>&1` in | |
12119 | *"Version 7."*) | |
12120 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12121 | 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' | |
12122 | ;; | |
12123 | *) # Version 8.0 or newer | |
12124 | tmp_idyn= | |
12125 | case $host_cpu in | |
12126 | ia64*) tmp_idyn=' -i_dynamic';; | |
12127 | esac | |
12128 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12129 | 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' | |
12130 | ;; | |
12131 | esac | |
12132 | archive_cmds_need_lc_CXX=no | |
12133 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12134 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12135 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12136 | ;; | |
12137 | pgCC* | pgcpp*) | |
12138 | # Portland Group C++ compiler | |
12139 | case `$CC -V` in | |
12140 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
12141 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12142 | rm -rf $tpldir~ | |
12143 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12144 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12145 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12146 | rm -rf $tpldir~ | |
12147 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12148 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12149 | $RANLIB $oldlib' | |
12150 | archive_cmds_CXX='tpldir=Template.dir~ | |
12151 | rm -rf $tpldir~ | |
12152 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12153 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12154 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12155 | rm -rf $tpldir~ | |
12156 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12157 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
12158 | ;; | |
12159 | *) # Version 6 will use weak symbols | |
12160 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12161 | 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' | |
12162 | ;; | |
12163 | esac | |
9c60689e | 12164 | |
47aaa820 DWT |
12165 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
12166 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12167 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12168 | ;; | |
12169 | cxx*) | |
12170 | # Compaq C++ | |
12171 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12172 | 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' | |
9c60689e | 12173 | |
47aaa820 DWT |
12174 | runpath_var=LD_RUN_PATH |
12175 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12176 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12177 | |
47aaa820 DWT |
12178 | # Commands to make compiler produce verbose output that lists |
12179 | # what "hidden" libraries, object files and flags are used when | |
12180 | # linking a shared library. | |
12181 | # | |
12182 | # There doesn't appear to be a way to prevent this compiler from | |
12183 | # explicitly linking system object files so we need to strip them | |
12184 | # from the output so that they don't get included in the library | |
12185 | # dependencies. | |
12186 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12187 | ;; | |
12188 | xl*) | |
12189 | # IBM XL 8.0 on PPC, with GNU ld | |
12190 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12191 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12192 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12193 | if test "x$supports_anon_versioning" = xyes; then | |
12194 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12195 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12196 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12197 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12198 | fi | |
12199 | ;; | |
12200 | *) | |
12201 | case `$CC -V 2>&1 | sed 5q` in | |
12202 | *Sun\ C*) | |
12203 | # Sun C++ 5.9 | |
12204 | no_undefined_flag_CXX=' -zdefs' | |
12205 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12206 | 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' | |
12207 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12208 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12209 | compiler_needs_object_CXX=yes | |
9c60689e | 12210 | |
47aaa820 DWT |
12211 | # Not sure whether something based on |
12212 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12213 | # would be better. | |
12214 | output_verbose_link_cmd='echo' | |
9c60689e | 12215 | |
47aaa820 DWT |
12216 | # Archives containing C++ object files must be created using |
12217 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12218 | # necessary to make sure instantiated templates are included | |
12219 | # in the archive. | |
12220 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12221 | ;; | |
12222 | esac | |
12223 | ;; | |
12224 | esac | |
12225 | ;; | |
9c60689e | 12226 | |
47aaa820 DWT |
12227 | lynxos*) |
12228 | # FIXME: insert proper C++ library support | |
12229 | ld_shlibs_CXX=no | |
12230 | ;; | |
9c60689e | 12231 | |
47aaa820 DWT |
12232 | m88k*) |
12233 | # FIXME: insert proper C++ library support | |
12234 | ld_shlibs_CXX=no | |
12235 | ;; | |
9c60689e | 12236 | |
47aaa820 DWT |
12237 | mvs*) |
12238 | case $cc_basename in | |
12239 | cxx*) | |
12240 | # FIXME: insert proper C++ library support | |
12241 | ld_shlibs_CXX=no | |
12242 | ;; | |
12243 | *) | |
12244 | # FIXME: insert proper C++ library support | |
12245 | ld_shlibs_CXX=no | |
12246 | ;; | |
12247 | esac | |
12248 | ;; | |
9c60689e | 12249 | |
47aaa820 DWT |
12250 | netbsd*) |
12251 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12252 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12253 | wlarc= | |
12254 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12255 | hardcode_direct_CXX=yes | |
12256 | hardcode_shlibpath_var_CXX=no | |
12257 | fi | |
12258 | # Workaround some broken pre-1.5 toolchains | |
12259 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 12260 | ;; |
47aaa820 DWT |
12261 | |
12262 | *nto* | *qnx*) | |
12263 | ld_shlibs_CXX=yes | |
9c60689e | 12264 | ;; |
9c60689e | 12265 | |
47aaa820 DWT |
12266 | openbsd2*) |
12267 | # C++ shared libraries are fairly broken | |
12268 | ld_shlibs_CXX=no | |
12269 | ;; | |
9c60689e | 12270 | |
47aaa820 DWT |
12271 | openbsd*) |
12272 | if test -f /usr/libexec/ld.so; then | |
12273 | hardcode_direct_CXX=yes | |
12274 | hardcode_shlibpath_var_CXX=no | |
12275 | hardcode_direct_absolute_CXX=yes | |
12276 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12277 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12278 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12279 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12280 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12281 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12282 | fi | |
12283 | output_verbose_link_cmd=echo | |
12284 | else | |
12285 | ld_shlibs_CXX=no | |
12286 | fi | |
12287 | ;; | |
9c60689e | 12288 | |
47aaa820 DWT |
12289 | osf3* | osf4* | osf5*) |
12290 | case $cc_basename in | |
12291 | KCC*) | |
12292 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 12293 | |
47aaa820 DWT |
12294 | # KCC will only create a shared library if the output file |
12295 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12296 | # to its proper name (with version) after linking. | |
12297 | 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' | |
9c60689e | 12298 | |
47aaa820 DWT |
12299 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12300 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12301 | |
47aaa820 DWT |
12302 | # Archives containing C++ object files must be created using |
12303 | # the KAI C++ compiler. | |
12304 | case $host in | |
12305 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12306 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12307 | esac | |
12308 | ;; | |
12309 | RCC*) | |
12310 | # Rational C++ 2.4.1 | |
12311 | # FIXME: insert proper C++ library support | |
12312 | ld_shlibs_CXX=no | |
12313 | ;; | |
12314 | cxx*) | |
12315 | case $host in | |
12316 | osf3*) | |
12317 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12318 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12319 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12320 | ;; | |
12321 | *) | |
12322 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12323 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12324 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12325 | echo "-hidden">> $lib.exp~ | |
12326 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
12327 | $RM $lib.exp' | |
12328 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12329 | ;; | |
12330 | esac | |
9c60689e | 12331 | |
47aaa820 | 12332 | hardcode_libdir_separator_CXX=: |
9c60689e | 12333 | |
47aaa820 DWT |
12334 | # Commands to make compiler produce verbose output that lists |
12335 | # what "hidden" libraries, object files and flags are used when | |
12336 | # linking a shared library. | |
12337 | # | |
12338 | # There doesn't appear to be a way to prevent this compiler from | |
12339 | # explicitly linking system object files so we need to strip them | |
12340 | # from the output so that they don't get included in the library | |
12341 | # dependencies. | |
12342 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12343 | ;; | |
12344 | *) | |
12345 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12346 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12347 | case $host in | |
12348 | osf3*) | |
12349 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12350 | ;; | |
12351 | *) | |
12352 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12353 | ;; | |
12354 | esac | |
9c60689e | 12355 | |
47aaa820 DWT |
12356 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12357 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12358 | |
47aaa820 DWT |
12359 | # Commands to make compiler produce verbose output that lists |
12360 | # what "hidden" libraries, object files and flags are used when | |
12361 | # linking a shared library. | |
12362 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
9c60689e | 12363 | |
47aaa820 DWT |
12364 | else |
12365 | # FIXME: insert proper C++ library support | |
12366 | ld_shlibs_CXX=no | |
12367 | fi | |
12368 | ;; | |
12369 | esac | |
12370 | ;; | |
9c60689e | 12371 | |
47aaa820 | 12372 | psos*) |
9c60689e DWT |
12373 | # FIXME: insert proper C++ library support |
12374 | ld_shlibs_CXX=no | |
12375 | ;; | |
9c60689e | 12376 | |
47aaa820 DWT |
12377 | sunos4*) |
12378 | case $cc_basename in | |
12379 | CC*) | |
12380 | # Sun C++ 4.x | |
12381 | # FIXME: insert proper C++ library support | |
12382 | ld_shlibs_CXX=no | |
9c60689e | 12383 | ;; |
47aaa820 DWT |
12384 | lcc*) |
12385 | # Lucid | |
12386 | # FIXME: insert proper C++ library support | |
12387 | ld_shlibs_CXX=no | |
12388 | ;; | |
12389 | *) | |
12390 | # FIXME: insert proper C++ library support | |
12391 | ld_shlibs_CXX=no | |
12392 | ;; | |
12393 | esac | |
12394 | ;; | |
9c60689e | 12395 | |
47aaa820 DWT |
12396 | solaris*) |
12397 | case $cc_basename in | |
12398 | CC*) | |
12399 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12400 | archive_cmds_need_lc_CXX=yes | |
12401 | no_undefined_flag_CXX=' -zdefs' | |
12402 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12403 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12404 | $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' | |
9c60689e | 12405 | |
47aaa820 DWT |
12406 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12407 | hardcode_shlibpath_var_CXX=no | |
12408 | case $host_os in | |
12409 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12410 | *) | |
12411 | # The compiler driver will combine and reorder linker options, | |
12412 | # but understands `-z linker_flag'. | |
12413 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12414 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
12415 | ;; | |
12416 | esac | |
12417 | link_all_deplibs_CXX=yes | |
9c60689e | 12418 | |
47aaa820 | 12419 | output_verbose_link_cmd='echo' |
9c60689e | 12420 | |
47aaa820 DWT |
12421 | # Archives containing C++ object files must be created using |
12422 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12423 | # necessary to make sure instantiated templates are included | |
12424 | # in the archive. | |
12425 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12426 | ;; | |
12427 | gcx*) | |
12428 | # Green Hills C++ Compiler | |
12429 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 12430 | |
47aaa820 DWT |
12431 | # The C++ compiler must be used to create the archive. |
12432 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12433 | ;; | |
12434 | *) | |
12435 | # GNU C++ compiler with Solaris linker | |
12436 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12437 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12438 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
12439 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12440 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12441 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12442 | |
47aaa820 DWT |
12443 | # Commands to make compiler produce verbose output that lists |
12444 | # what "hidden" libraries, object files and flags are used when | |
12445 | # linking a shared library. | |
12446 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12447 | else | |
12448 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12449 | # platform. | |
12450 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12451 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12452 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12453 | |
47aaa820 DWT |
12454 | # Commands to make compiler produce verbose output that lists |
12455 | # what "hidden" libraries, object files and flags are used when | |
12456 | # linking a shared library. | |
12457 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12458 | fi | |
9c60689e | 12459 | |
47aaa820 DWT |
12460 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12461 | case $host_os in | |
12462 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12463 | *) | |
12464 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12465 | ;; | |
12466 | esac | |
12467 | fi | |
12468 | ;; | |
12469 | esac | |
12470 | ;; | |
9c60689e | 12471 | |
47aaa820 DWT |
12472 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12473 | no_undefined_flag_CXX='${wl}-z,text' | |
12474 | archive_cmds_need_lc_CXX=no | |
12475 | hardcode_shlibpath_var_CXX=no | |
12476 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12477 | |
47aaa820 DWT |
12478 | case $cc_basename in |
12479 | CC*) | |
12480 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12481 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12482 | ;; | |
12483 | *) | |
12484 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12485 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12486 | ;; | |
12487 | esac | |
12488 | ;; | |
9c60689e | 12489 | |
47aaa820 DWT |
12490 | sysv5* | sco3.2v5* | sco5v6*) |
12491 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12492 | # link with -lc, and that would cause any symbols used from libc to | |
12493 | # always be unresolved, which means just about no library would | |
12494 | # ever link correctly. If we're not using GNU ld we use -z text | |
12495 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12496 | # as -z defs. | |
12497 | no_undefined_flag_CXX='${wl}-z,text' | |
12498 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12499 | archive_cmds_need_lc_CXX=no | |
12500 | hardcode_shlibpath_var_CXX=no | |
12501 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12502 | hardcode_libdir_separator_CXX=':' | |
12503 | link_all_deplibs_CXX=yes | |
12504 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12505 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12506 | |
47aaa820 DWT |
12507 | case $cc_basename in |
12508 | CC*) | |
12509 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12510 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12511 | ;; | |
12512 | *) | |
12513 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12514 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12515 | ;; | |
12516 | esac | |
12517 | ;; | |
9c60689e | 12518 | |
47aaa820 | 12519 | tandem*) |
9c60689e | 12520 | case $cc_basename in |
47aaa820 DWT |
12521 | NCC*) |
12522 | # NonStop-UX NCC 3.20 | |
12523 | # FIXME: insert proper C++ library support | |
12524 | ld_shlibs_CXX=no | |
12525 | ;; | |
9c60689e | 12526 | *) |
47aaa820 DWT |
12527 | # FIXME: insert proper C++ library support |
12528 | ld_shlibs_CXX=no | |
12529 | ;; | |
9c60689e DWT |
12530 | esac |
12531 | ;; | |
12532 | ||
47aaa820 DWT |
12533 | vxworks*) |
12534 | # FIXME: insert proper C++ library support | |
12535 | ld_shlibs_CXX=no | |
12536 | ;; | |
9c60689e | 12537 | |
47aaa820 DWT |
12538 | *) |
12539 | # FIXME: insert proper C++ library support | |
12540 | ld_shlibs_CXX=no | |
9c60689e | 12541 | ;; |
47aaa820 | 12542 | esac |
9c60689e | 12543 | |
47aaa820 DWT |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
12545 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12546 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 12547 | |
47aaa820 DWT |
12548 | GCC_CXX="$GXX" |
12549 | LD_CXX="$LD" | |
9c60689e | 12550 | |
47aaa820 DWT |
12551 | ## CAVEAT EMPTOR: |
12552 | ## There is no encapsulation within the following macros, do not change | |
12553 | ## the running order or otherwise move them around unless you know exactly | |
12554 | ## what you are doing... | |
12555 | # Dependencies to place before and after the object being linked: | |
12556 | predep_objects_CXX= | |
12557 | postdep_objects_CXX= | |
12558 | predeps_CXX= | |
12559 | postdeps_CXX= | |
12560 | compiler_lib_search_path_CXX= | |
9c60689e | 12561 | |
47aaa820 DWT |
12562 | cat > conftest.$ac_ext <<_LT_EOF |
12563 | class Foo | |
12564 | { | |
12565 | public: | |
12566 | Foo (void) { a = 0; } | |
12567 | private: | |
12568 | int a; | |
12569 | }; | |
12570 | _LT_EOF | |
9c60689e | 12571 | |
47aaa820 DWT |
12572 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12573 | (eval $ac_compile) 2>&5 | |
12574 | ac_status=$? | |
12575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12576 | test $ac_status = 0; }; then | |
12577 | # Parse the compiler output and extract the necessary | |
12578 | # objects, libraries and library flags. | |
9c60689e | 12579 | |
47aaa820 DWT |
12580 | # Sentinel used to keep track of whether or not we are before |
12581 | # the conftest object file. | |
12582 | pre_test_object_deps_done=no | |
9c60689e | 12583 | |
47aaa820 DWT |
12584 | for p in `eval "$output_verbose_link_cmd"`; do |
12585 | case $p in | |
9c60689e | 12586 | |
47aaa820 DWT |
12587 | -L* | -R* | -l*) |
12588 | # Some compilers place space between "-{L,R}" and the path. | |
12589 | # Remove the space. | |
12590 | if test $p = "-L" || | |
12591 | test $p = "-R"; then | |
12592 | prev=$p | |
12593 | continue | |
12594 | else | |
12595 | prev= | |
12596 | fi | |
9c60689e | 12597 | |
47aaa820 DWT |
12598 | if test "$pre_test_object_deps_done" = no; then |
12599 | case $p in | |
12600 | -L* | -R*) | |
12601 | # Internal compiler library paths should come after those | |
12602 | # provided the user. The postdeps already come after the | |
12603 | # user supplied libs so there is no need to process them. | |
12604 | if test -z "$compiler_lib_search_path_CXX"; then | |
12605 | compiler_lib_search_path_CXX="${prev}${p}" | |
12606 | else | |
12607 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12608 | fi | |
12609 | ;; | |
12610 | # The "-l" case would never come before the object being | |
12611 | # linked, so don't bother handling this case. | |
12612 | esac | |
12613 | else | |
12614 | if test -z "$postdeps_CXX"; then | |
12615 | postdeps_CXX="${prev}${p}" | |
12616 | else | |
12617 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12618 | fi | |
12619 | fi | |
12620 | ;; | |
9c60689e | 12621 | |
47aaa820 DWT |
12622 | *.$objext) |
12623 | # This assumes that the test object file only shows up | |
12624 | # once in the compiler output. | |
12625 | if test "$p" = "conftest.$objext"; then | |
12626 | pre_test_object_deps_done=yes | |
12627 | continue | |
12628 | fi | |
9c60689e | 12629 | |
47aaa820 DWT |
12630 | if test "$pre_test_object_deps_done" = no; then |
12631 | if test -z "$predep_objects_CXX"; then | |
12632 | predep_objects_CXX="$p" | |
12633 | else | |
12634 | predep_objects_CXX="$predep_objects_CXX $p" | |
12635 | fi | |
12636 | else | |
12637 | if test -z "$postdep_objects_CXX"; then | |
12638 | postdep_objects_CXX="$p" | |
12639 | else | |
12640 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12641 | fi | |
12642 | fi | |
12643 | ;; | |
9c60689e | 12644 | |
47aaa820 | 12645 | *) ;; # Ignore the rest. |
9c60689e | 12646 | |
47aaa820 DWT |
12647 | esac |
12648 | done | |
9c60689e | 12649 | |
47aaa820 DWT |
12650 | # Clean up. |
12651 | rm -f a.out a.exe | |
12652 | else | |
12653 | echo "libtool.m4: error: problem compiling CXX test program" | |
12654 | fi | |
9c60689e | 12655 | |
47aaa820 | 12656 | $RM -f confest.$objext |
9c60689e | 12657 | |
47aaa820 DWT |
12658 | # PORTME: override above test on systems where it is broken |
12659 | case $host_os in | |
12660 | interix[3-9]*) | |
12661 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12662 | # hack all around it, let's just trust "g++" to DTRT. | |
12663 | predep_objects_CXX= | |
12664 | postdep_objects_CXX= | |
12665 | postdeps_CXX= | |
12666 | ;; | |
9c60689e | 12667 | |
47aaa820 DWT |
12668 | linux*) |
12669 | case `$CC -V 2>&1 | sed 5q` in | |
12670 | *Sun\ C*) | |
12671 | # Sun C++ 5.9 | |
9c60689e | 12672 | |
47aaa820 DWT |
12673 | # The more standards-conforming stlport4 library is |
12674 | # incompatible with the Cstd library. Avoid specifying | |
12675 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12676 | # -library=stlport4 depends on it. | |
12677 | case " $CXX $CXXFLAGS " in | |
12678 | *" -library=stlport4 "*) | |
12679 | solaris_use_stlport4=yes | |
12680 | ;; | |
12681 | esac | |
9c60689e | 12682 | |
47aaa820 DWT |
12683 | if test "$solaris_use_stlport4" != yes; then |
12684 | postdeps_CXX='-library=Cstd -library=Crun' | |
12685 | fi | |
12686 | ;; | |
12687 | esac | |
12688 | ;; | |
9c60689e | 12689 | |
47aaa820 DWT |
12690 | solaris*) |
12691 | case $cc_basename in | |
12692 | CC*) | |
12693 | # The more standards-conforming stlport4 library is | |
12694 | # incompatible with the Cstd library. Avoid specifying | |
12695 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12696 | # -library=stlport4 depends on it. | |
12697 | case " $CXX $CXXFLAGS " in | |
12698 | *" -library=stlport4 "*) | |
12699 | solaris_use_stlport4=yes | |
12700 | ;; | |
12701 | esac | |
9c60689e | 12702 | |
47aaa820 DWT |
12703 | # Adding this requires a known-good setup of shared libraries for |
12704 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12705 | # archive will be linked into the output, leading to subtle bugs. | |
12706 | if test "$solaris_use_stlport4" != yes; then | |
12707 | postdeps_CXX='-library=Cstd -library=Crun' | |
12708 | fi | |
12709 | ;; | |
12710 | esac | |
12711 | ;; | |
12712 | esac | |
9c60689e | 12713 | |
9c60689e | 12714 | |
47aaa820 DWT |
12715 | case " $postdeps_CXX " in |
12716 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12717 | esac | |
12718 | compiler_lib_search_dirs_CXX= | |
12719 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12720 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12721 | fi | |
9c60689e | 12722 | |
9c60689e | 12723 | |
9c60689e | 12724 | |
9c60689e | 12725 | |
9c60689e | 12726 | |
9c60689e | 12727 | |
9c60689e | 12728 | |
9c60689e | 12729 | |
9c60689e | 12730 | |
9c60689e | 12731 | |
9c60689e | 12732 | |
9c60689e | 12733 | |
9c60689e | 12734 | |
9c60689e | 12735 | |
9c60689e | 12736 | |
9c60689e | 12737 | |
9c60689e | 12738 | |
9c60689e | 12739 | |
9c60689e | 12740 | |
9c60689e | 12741 | |
9c60689e | 12742 | |
9c60689e | 12743 | |
9c60689e | 12744 | |
9c60689e | 12745 | |
9c60689e | 12746 | |
9c60689e | 12747 | |
9c60689e | 12748 | |
9c60689e | 12749 | |
9c60689e | 12750 | |
9c60689e | 12751 | |
9c60689e | 12752 | |
47aaa820 DWT |
12753 | lt_prog_compiler_wl_CXX= |
12754 | lt_prog_compiler_pic_CXX= | |
12755 | lt_prog_compiler_static_CXX= | |
9c60689e DWT |
12756 | |
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12758 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12759 | ||
12760 | # C++ specific cases for pic, static, wl, etc. | |
12761 | if test "$GXX" = yes; then | |
12762 | lt_prog_compiler_wl_CXX='-Wl,' | |
12763 | lt_prog_compiler_static_CXX='-static' | |
12764 | ||
12765 | case $host_os in | |
12766 | aix*) | |
12767 | # All AIX code is PIC. | |
12768 | if test "$host_cpu" = ia64; then | |
12769 | # AIX 5 now supports IA64 processor | |
12770 | lt_prog_compiler_static_CXX='-Bstatic' | |
12771 | fi | |
12772 | ;; | |
12773 | ||
12774 | amigaos*) | |
12775 | case $host_cpu in | |
12776 | powerpc) | |
12777 | # see comment about AmigaOS4 .so support | |
12778 | lt_prog_compiler_pic_CXX='-fPIC' | |
12779 | ;; | |
12780 | m68k) | |
12781 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12782 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12783 | # like `-m68040'. | |
12784 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12785 | ;; | |
12786 | esac | |
12787 | ;; | |
12788 | ||
12789 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12790 | # PIC is the default for these OSes. | |
12791 | ;; | |
12792 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12793 | # This hack is so that the source file can tell whether it is being | |
12794 | # built for inclusion in a dll (and should export symbols for example). | |
12795 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12796 | # (--disable-auto-import) libraries | |
12797 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12798 | ;; | |
12799 | darwin* | rhapsody*) | |
12800 | # PIC is the default on this platform | |
12801 | # Common symbols not allowed in MH_DYLIB files | |
12802 | lt_prog_compiler_pic_CXX='-fno-common' | |
12803 | ;; | |
12804 | *djgpp*) | |
12805 | # DJGPP does not support shared libraries at all | |
12806 | lt_prog_compiler_pic_CXX= | |
12807 | ;; | |
12808 | interix[3-9]*) | |
12809 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12810 | # Instead, we relocate shared libraries at runtime. | |
12811 | ;; | |
12812 | sysv4*MP*) | |
12813 | if test -d /usr/nec; then | |
12814 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12815 | fi | |
12816 | ;; | |
12817 | hpux*) | |
12818 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12819 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12820 | # sets the default TLS model and affects inlining. | |
12821 | case $host_cpu in | |
12822 | hppa*64*) | |
12823 | ;; | |
12824 | *) | |
12825 | lt_prog_compiler_pic_CXX='-fPIC' | |
12826 | ;; | |
12827 | esac | |
12828 | ;; | |
12829 | *qnx* | *nto*) | |
12830 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12831 | # it will coredump. | |
12832 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12833 | ;; | |
12834 | *) | |
12835 | lt_prog_compiler_pic_CXX='-fPIC' | |
12836 | ;; | |
12837 | esac | |
12838 | else | |
12839 | case $host_os in | |
12840 | aix[4-9]*) | |
12841 | # All AIX code is PIC. | |
12842 | if test "$host_cpu" = ia64; then | |
12843 | # AIX 5 now supports IA64 processor | |
12844 | lt_prog_compiler_static_CXX='-Bstatic' | |
12845 | else | |
12846 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12847 | fi | |
12848 | ;; | |
12849 | chorus*) | |
12850 | case $cc_basename in | |
12851 | cxch68*) | |
12852 | # Green Hills C++ Compiler | |
12853 | # _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" | |
12854 | ;; | |
12855 | esac | |
12856 | ;; | |
12857 | dgux*) | |
12858 | case $cc_basename in | |
12859 | ec++*) | |
12860 | lt_prog_compiler_pic_CXX='-KPIC' | |
12861 | ;; | |
12862 | ghcx*) | |
12863 | # Green Hills C++ Compiler | |
12864 | lt_prog_compiler_pic_CXX='-pic' | |
12865 | ;; | |
12866 | *) | |
12867 | ;; | |
12868 | esac | |
12869 | ;; | |
12870 | freebsd* | dragonfly*) | |
12871 | # FreeBSD uses GNU C++ | |
12872 | ;; | |
12873 | hpux9* | hpux10* | hpux11*) | |
12874 | case $cc_basename in | |
12875 | CC*) | |
12876 | lt_prog_compiler_wl_CXX='-Wl,' | |
12877 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12878 | if test "$host_cpu" != ia64; then | |
12879 | lt_prog_compiler_pic_CXX='+Z' | |
12880 | fi | |
12881 | ;; | |
12882 | aCC*) | |
12883 | lt_prog_compiler_wl_CXX='-Wl,' | |
12884 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12885 | case $host_cpu in | |
12886 | hppa*64*|ia64*) | |
12887 | # +Z the default | |
12888 | ;; | |
12889 | *) | |
12890 | lt_prog_compiler_pic_CXX='+Z' | |
12891 | ;; | |
12892 | esac | |
12893 | ;; | |
12894 | *) | |
12895 | ;; | |
12896 | esac | |
12897 | ;; | |
12898 | interix*) | |
12899 | # This is c89, which is MS Visual C++ (no shared libs) | |
12900 | # Anyone wants to do a port? | |
12901 | ;; | |
12902 | irix5* | irix6* | nonstopux*) | |
12903 | case $cc_basename in | |
12904 | CC*) | |
12905 | lt_prog_compiler_wl_CXX='-Wl,' | |
12906 | lt_prog_compiler_static_CXX='-non_shared' | |
12907 | # CC pic flag -KPIC is the default. | |
12908 | ;; | |
12909 | *) | |
12910 | ;; | |
12911 | esac | |
12912 | ;; | |
1504c9b8 | 12913 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
12914 | case $cc_basename in |
12915 | KCC*) | |
12916 | # KAI C++ Compiler | |
12917 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12918 | lt_prog_compiler_pic_CXX='-fPIC' | |
12919 | ;; | |
12920 | ecpc* ) | |
12921 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12922 | lt_prog_compiler_wl_CXX='-Wl,' | |
12923 | lt_prog_compiler_pic_CXX='-KPIC' | |
12924 | lt_prog_compiler_static_CXX='-static' | |
12925 | ;; | |
12926 | icpc* ) | |
12927 | # Intel C++, used to be incompatible with GCC. | |
12928 | # ICC 10 doesn't accept -KPIC any more. | |
12929 | lt_prog_compiler_wl_CXX='-Wl,' | |
12930 | lt_prog_compiler_pic_CXX='-fPIC' | |
12931 | lt_prog_compiler_static_CXX='-static' | |
12932 | ;; | |
12933 | pgCC* | pgcpp*) | |
12934 | # Portland Group C++ compiler | |
12935 | lt_prog_compiler_wl_CXX='-Wl,' | |
12936 | lt_prog_compiler_pic_CXX='-fpic' | |
12937 | lt_prog_compiler_static_CXX='-Bstatic' | |
12938 | ;; | |
12939 | cxx*) | |
12940 | # Compaq C++ | |
12941 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12942 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12943 | lt_prog_compiler_pic_CXX= | |
12944 | lt_prog_compiler_static_CXX='-non_shared' | |
12945 | ;; | |
12946 | xlc* | xlC*) | |
12947 | # IBM XL 8.0 on PPC | |
12948 | lt_prog_compiler_wl_CXX='-Wl,' | |
12949 | lt_prog_compiler_pic_CXX='-qpic' | |
12950 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12951 | ;; | |
12952 | *) | |
12953 | case `$CC -V 2>&1 | sed 5q` in | |
12954 | *Sun\ C*) | |
12955 | # Sun C++ 5.9 | |
12956 | lt_prog_compiler_pic_CXX='-KPIC' | |
12957 | lt_prog_compiler_static_CXX='-Bstatic' | |
12958 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12959 | ;; | |
12960 | esac | |
12961 | ;; | |
12962 | esac | |
12963 | ;; | |
12964 | lynxos*) | |
12965 | ;; | |
12966 | m88k*) | |
12967 | ;; | |
12968 | mvs*) | |
12969 | case $cc_basename in | |
12970 | cxx*) | |
12971 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12972 | ;; | |
12973 | *) | |
12974 | ;; | |
12975 | esac | |
12976 | ;; | |
1504c9b8 | 12977 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
12978 | ;; |
12979 | *qnx* | *nto*) | |
12980 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12981 | # it will coredump. | |
12982 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12983 | ;; | |
12984 | osf3* | osf4* | osf5*) | |
12985 | case $cc_basename in | |
12986 | KCC*) | |
12987 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12988 | ;; | |
12989 | RCC*) | |
12990 | # Rational C++ 2.4.1 | |
12991 | lt_prog_compiler_pic_CXX='-pic' | |
12992 | ;; | |
12993 | cxx*) | |
12994 | # Digital/Compaq C++ | |
12995 | lt_prog_compiler_wl_CXX='-Wl,' | |
12996 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12997 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12998 | lt_prog_compiler_pic_CXX= | |
12999 | lt_prog_compiler_static_CXX='-non_shared' | |
13000 | ;; | |
13001 | *) | |
13002 | ;; | |
13003 | esac | |
13004 | ;; | |
13005 | psos*) | |
13006 | ;; | |
13007 | solaris*) | |
13008 | case $cc_basename in | |
13009 | CC*) | |
13010 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13011 | lt_prog_compiler_pic_CXX='-KPIC' | |
13012 | lt_prog_compiler_static_CXX='-Bstatic' | |
13013 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13014 | ;; | |
13015 | gcx*) | |
13016 | # Green Hills C++ Compiler | |
13017 | lt_prog_compiler_pic_CXX='-PIC' | |
13018 | ;; | |
13019 | *) | |
13020 | ;; | |
13021 | esac | |
13022 | ;; | |
13023 | sunos4*) | |
13024 | case $cc_basename in | |
13025 | CC*) | |
13026 | # Sun C++ 4.x | |
13027 | lt_prog_compiler_pic_CXX='-pic' | |
13028 | lt_prog_compiler_static_CXX='-Bstatic' | |
13029 | ;; | |
13030 | lcc*) | |
13031 | # Lucid | |
13032 | lt_prog_compiler_pic_CXX='-pic' | |
13033 | ;; | |
13034 | *) | |
13035 | ;; | |
13036 | esac | |
13037 | ;; | |
13038 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13039 | case $cc_basename in | |
13040 | CC*) | |
13041 | lt_prog_compiler_wl_CXX='-Wl,' | |
13042 | lt_prog_compiler_pic_CXX='-KPIC' | |
13043 | lt_prog_compiler_static_CXX='-Bstatic' | |
13044 | ;; | |
13045 | esac | |
13046 | ;; | |
13047 | tandem*) | |
13048 | case $cc_basename in | |
13049 | NCC*) | |
13050 | # NonStop-UX NCC 3.20 | |
13051 | lt_prog_compiler_pic_CXX='-KPIC' | |
13052 | ;; | |
13053 | *) | |
13054 | ;; | |
13055 | esac | |
13056 | ;; | |
13057 | vxworks*) | |
13058 | ;; | |
13059 | *) | |
13060 | lt_prog_compiler_can_build_shared_CXX=no | |
13061 | ;; | |
13062 | esac | |
13063 | fi | |
13064 | ||
13065 | case $host_os in | |
13066 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13067 | *djgpp*) | |
13068 | lt_prog_compiler_pic_CXX= | |
13069 | ;; | |
13070 | *) | |
13071 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13072 | ;; | |
13073 | esac | |
13074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
13075 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
13076 | ||
13077 | ||
13078 | ||
13079 | # | |
13080 | # Check to make sure the PIC flag actually works. | |
13081 | # | |
13082 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13084 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
13085 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
13086 | $as_echo_n "(cached) " >&6 | |
13087 | else | |
13088 | lt_cv_prog_compiler_pic_works_CXX=no | |
13089 | ac_outfile=conftest.$ac_objext | |
13090 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13091 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13092 | # Insert the option either (1) after the last *FLAGS variable, or | |
13093 | # (2) before a word containing "conftest.", or (3) at the end. | |
13094 | # Note that $ac_compile itself does not contain backslashes and begins | |
13095 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13096 | # The option is referenced via a variable to avoid confusing sed. | |
13097 | lt_compile=`echo "$ac_compile" | $SED \ | |
13098 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13099 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13100 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 13101 | (eval echo "\"\$as_me:13101: $lt_compile\"" >&5) |
9c60689e DWT |
13102 | (eval "$lt_compile" 2>conftest.err) |
13103 | ac_status=$? | |
13104 | cat conftest.err >&5 | |
794e88e7 | 13105 | echo "$as_me:13105: \$? = $ac_status" >&5 |
9c60689e DWT |
13106 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13107 | # The compiler can only warn and ignore the option if not recognized | |
13108 | # So say no if there are warnings other than the usual output. | |
13109 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13110 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13111 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13112 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13113 | fi | |
13114 | fi | |
13115 | $RM conftest* | |
13116 | ||
13117 | fi | |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13119 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13120 | ||
13121 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13122 | case $lt_prog_compiler_pic_CXX in | |
13123 | "" | " "*) ;; | |
13124 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13125 | esac | |
13126 | else | |
13127 | lt_prog_compiler_pic_CXX= | |
13128 | lt_prog_compiler_can_build_shared_CXX=no | |
13129 | fi | |
13130 | ||
13131 | fi | |
13132 | ||
13133 | ||
13134 | ||
47aaa820 DWT |
13135 | # |
13136 | # Check to make sure the static flag actually works. | |
13137 | # | |
13138 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13140 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13141 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
13142 | $as_echo_n "(cached) " >&6 | |
13143 | else | |
13144 | lt_cv_prog_compiler_static_works_CXX=no | |
13145 | save_LDFLAGS="$LDFLAGS" | |
13146 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13147 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13148 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13149 | # The linker can only warn and ignore the option if not recognized | |
13150 | # So say no if there are warnings | |
13151 | if test -s conftest.err; then | |
13152 | # Append any errors to the config.log. | |
13153 | cat conftest.err 1>&5 | |
13154 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13155 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13156 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13157 | lt_cv_prog_compiler_static_works_CXX=yes | |
13158 | fi | |
13159 | else | |
13160 | lt_cv_prog_compiler_static_works_CXX=yes | |
13161 | fi | |
13162 | fi | |
13163 | $RM -r conftest* | |
13164 | LDFLAGS="$save_LDFLAGS" | |
13165 | ||
13166 | fi | |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
13168 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
13169 | ||
13170 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
13171 | : | |
13172 | else | |
13173 | lt_prog_compiler_static_CXX= | |
13174 | fi | |
13175 | ||
13176 | ||
13177 | ||
13178 | ||
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13180 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13181 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13182 | $as_echo_n "(cached) " >&6 | |
13183 | else | |
13184 | lt_cv_prog_compiler_c_o_CXX=no | |
13185 | $RM -r conftest 2>/dev/null | |
13186 | mkdir conftest | |
13187 | cd conftest | |
13188 | mkdir out | |
13189 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13190 | ||
13191 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13192 | # Insert the option either (1) after the last *FLAGS variable, or | |
13193 | # (2) before a word containing "conftest.", or (3) at the end. | |
13194 | # Note that $ac_compile itself does not contain backslashes and begins | |
13195 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13196 | lt_compile=`echo "$ac_compile" | $SED \ | |
13197 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13198 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13199 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 13200 | (eval echo "\"\$as_me:13200: $lt_compile\"" >&5) |
47aaa820 DWT |
13201 | (eval "$lt_compile" 2>out/conftest.err) |
13202 | ac_status=$? | |
13203 | cat out/conftest.err >&5 | |
794e88e7 | 13204 | echo "$as_me:13204: \$? = $ac_status" >&5 |
47aaa820 DWT |
13205 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13206 | then | |
13207 | # The compiler can only warn and ignore the option if not recognized | |
13208 | # So say no if there are warnings | |
13209 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13210 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13211 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13212 | lt_cv_prog_compiler_c_o_CXX=yes | |
13213 | fi | |
13214 | fi | |
13215 | chmod u+w . 2>&5 | |
13216 | $RM conftest* | |
13217 | # SGI C++ compiler will create directory out/ii_files/ for | |
13218 | # template instantiation | |
13219 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13220 | $RM out/* && rmdir out | |
13221 | cd .. | |
13222 | $RM -r conftest | |
13223 | $RM conftest* | |
13224 | ||
13225 | fi | |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13227 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13228 | ||
13229 | ||
13230 | ||
13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13232 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13233 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13234 | $as_echo_n "(cached) " >&6 | |
13235 | else | |
13236 | lt_cv_prog_compiler_c_o_CXX=no | |
13237 | $RM -r conftest 2>/dev/null | |
13238 | mkdir conftest | |
13239 | cd conftest | |
13240 | mkdir out | |
13241 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13242 | ||
13243 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13244 | # Insert the option either (1) after the last *FLAGS variable, or | |
13245 | # (2) before a word containing "conftest.", or (3) at the end. | |
13246 | # Note that $ac_compile itself does not contain backslashes and begins | |
13247 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13248 | lt_compile=`echo "$ac_compile" | $SED \ | |
13249 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13250 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13251 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 13252 | (eval echo "\"\$as_me:13252: $lt_compile\"" >&5) |
47aaa820 DWT |
13253 | (eval "$lt_compile" 2>out/conftest.err) |
13254 | ac_status=$? | |
13255 | cat out/conftest.err >&5 | |
794e88e7 | 13256 | echo "$as_me:13256: \$? = $ac_status" >&5 |
47aaa820 DWT |
13257 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13258 | then | |
13259 | # The compiler can only warn and ignore the option if not recognized | |
13260 | # So say no if there are warnings | |
13261 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13262 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13263 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13264 | lt_cv_prog_compiler_c_o_CXX=yes | |
13265 | fi | |
13266 | fi | |
13267 | chmod u+w . 2>&5 | |
13268 | $RM conftest* | |
13269 | # SGI C++ compiler will create directory out/ii_files/ for | |
13270 | # template instantiation | |
13271 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13272 | $RM out/* && rmdir out | |
13273 | cd .. | |
13274 | $RM -r conftest | |
13275 | $RM conftest* | |
13276 | ||
13277 | fi | |
13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13279 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13280 | ||
13281 | ||
13282 | ||
13283 | ||
13284 | hard_links="nottested" | |
13285 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13286 | # do not overwrite the value of need_locks provided by the user | |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
13288 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
13289 | hard_links=yes | |
13290 | $RM conftest* | |
13291 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13292 | touch conftest.a | |
13293 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13294 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
13296 | $as_echo "$hard_links" >&6; } | |
13297 | if test "$hard_links" = no; then | |
13298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13299 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13300 | need_locks=warn | |
13301 | fi | |
13302 | else | |
13303 | need_locks=no | |
13304 | fi | |
13305 | ||
13306 | ||
13307 | ||
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13309 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13310 | ||
13311 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13312 | case $host_os in | |
13313 | aix[4-9]*) | |
13314 | # If we're using GNU nm, then we don't want the "-C" option. | |
13315 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13316 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13317 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13318 | else | |
13319 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13320 | fi | |
13321 | ;; | |
13322 | pw32*) | |
13323 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13324 | ;; | |
13325 | cygwin* | mingw* | cegcc*) | |
13326 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
13327 | ;; | |
1504c9b8 DWT |
13328 | linux* | k*bsd*-gnu) |
13329 | link_all_deplibs_CXX=no | |
13330 | ;; | |
47aaa820 DWT |
13331 | *) |
13332 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13333 | ;; | |
13334 | esac | |
13335 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
13336 | ||
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13338 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13339 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13340 | ||
13341 | with_gnu_ld_CXX=$with_gnu_ld | |
13342 | ||
13343 | ||
13344 | ||
13345 | ||
13346 | ||
13347 | ||
13348 | # | |
13349 | # Do we need to explicitly link libc? | |
13350 | # | |
13351 | case "x$archive_cmds_need_lc_CXX" in | |
13352 | x|xyes) | |
13353 | # Assume -lc should be added | |
13354 | archive_cmds_need_lc_CXX=yes | |
13355 | ||
13356 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13357 | case $archive_cmds_CXX in | |
13358 | *'~'*) | |
13359 | # FIXME: we may have to deal with multi-command sequences. | |
13360 | ;; | |
13361 | '$CC '*) | |
13362 | # Test whether the compiler implicitly links with -lc since on some | |
13363 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13364 | # to ld, don't add -lc before -lgcc. | |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13366 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13367 | $RM conftest* | |
13368 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13369 | ||
13370 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13371 | (eval $ac_compile) 2>&5 | |
13372 | ac_status=$? | |
13373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13374 | test $ac_status = 0; } 2>conftest.err; then | |
13375 | soname=conftest | |
13376 | lib=conftest | |
13377 | libobjs=conftest.$ac_objext | |
13378 | deplibs= | |
13379 | wl=$lt_prog_compiler_wl_CXX | |
13380 | pic_flag=$lt_prog_compiler_pic_CXX | |
13381 | compiler_flags=-v | |
13382 | linker_flags=-v | |
13383 | verstring= | |
13384 | output_objdir=. | |
13385 | libname=conftest | |
13386 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
13387 | allow_undefined_flag_CXX= | |
13388 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13389 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13390 | ac_status=$? | |
13391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13392 | test $ac_status = 0; } | |
13393 | then | |
13394 | archive_cmds_need_lc_CXX=no | |
13395 | else | |
13396 | archive_cmds_need_lc_CXX=yes | |
13397 | fi | |
13398 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
13399 | else | |
13400 | cat conftest.err 1>&5 | |
13401 | fi | |
13402 | $RM conftest* | |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
13404 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
13405 | ;; | |
13406 | esac | |
13407 | fi | |
13408 | ;; | |
13409 | esac | |
13410 | ||
13411 | ||
13412 | ||
13413 | ||
13414 | ||
13415 | ||
13416 | ||
13417 | ||
13418 | ||
13419 | ||
13420 | ||
13421 | ||
13422 | ||
13423 | ||
13424 | ||
13425 | ||
13426 | ||
13427 | ||
13428 | ||
13429 | ||
13430 | ||
13431 | ||
13432 | ||
13433 | ||
13434 | ||
13435 | ||
13436 | ||
13437 | ||
13438 | ||
13439 | ||
13440 | ||
13441 | ||
13442 | ||
13443 | ||
13444 | ||
13445 | ||
13446 | ||
13447 | ||
13448 | ||
13449 | ||
13450 | ||
13451 | ||
13452 | ||
13453 | ||
13454 | ||
13455 | ||
13456 | ||
13457 | ||
13458 | ||
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | ||
13464 | ||
13465 | ||
13466 | ||
13467 | ||
13468 | ||
13469 | ||
13470 | ||
13471 | ||
13472 | ||
13473 | ||
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
13475 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
13476 | ||
13477 | library_names_spec= | |
13478 | libname_spec='lib$name' | |
13479 | soname_spec= | |
13480 | shrext_cmds=".so" | |
13481 | postinstall_cmds= | |
13482 | postuninstall_cmds= | |
13483 | finish_cmds= | |
13484 | finish_eval= | |
13485 | shlibpath_var= | |
13486 | shlibpath_overrides_runpath=unknown | |
13487 | version_type=none | |
13488 | dynamic_linker="$host_os ld.so" | |
13489 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13490 | need_lib_prefix=unknown | |
13491 | hardcode_into_libs=no | |
13492 | ||
13493 | # when you set need_version to no, make sure it does not cause -set_version | |
13494 | # flags to be left without arguments | |
13495 | need_version=unknown | |
13496 | ||
13497 | case $host_os in | |
13498 | aix3*) | |
13499 | version_type=linux | |
13500 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13501 | shlibpath_var=LIBPATH | |
13502 | ||
13503 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13504 | soname_spec='${libname}${release}${shared_ext}$major' | |
13505 | ;; | |
13506 | ||
13507 | aix[4-9]*) | |
13508 | version_type=linux | |
13509 | need_lib_prefix=no | |
13510 | need_version=no | |
13511 | hardcode_into_libs=yes | |
13512 | if test "$host_cpu" = ia64; then | |
13513 | # AIX 5 supports IA64 | |
13514 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13515 | shlibpath_var=LD_LIBRARY_PATH | |
13516 | else | |
13517 | # With GCC up to 2.95.x, collect2 would create an import file | |
13518 | # for dependence libraries. The import file would start with | |
13519 | # the line `#! .'. This would cause the generated library to | |
13520 | # depend on `.', always an invalid library. This was fixed in | |
13521 | # development snapshots of GCC prior to 3.0. | |
13522 | case $host_os in | |
13523 | aix4 | aix4.[01] | aix4.[01].*) | |
13524 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13525 | echo ' yes ' | |
13526 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13527 | : | |
13528 | else | |
13529 | can_build_shared=no | |
13530 | fi | |
13531 | ;; | |
13532 | esac | |
13533 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13534 | # soname into executable. Probably we can add versioning support to | |
13535 | # collect2, so additional links can be useful in future. | |
13536 | if test "$aix_use_runtimelinking" = yes; then | |
13537 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13538 | # instead of lib<name>.a to let people know that these are not | |
13539 | # typical AIX shared libraries. | |
13540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13541 | else | |
13542 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13543 | # and later when we are not doing run time linking. | |
13544 | library_names_spec='${libname}${release}.a $libname.a' | |
13545 | soname_spec='${libname}${release}${shared_ext}$major' | |
13546 | fi | |
13547 | shlibpath_var=LIBPATH | |
13548 | fi | |
13549 | ;; | |
13550 | ||
13551 | amigaos*) | |
13552 | case $host_cpu in | |
13553 | powerpc) | |
13554 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13555 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13557 | ;; | |
13558 | m68k) | |
13559 | library_names_spec='$libname.ixlibrary $libname.a' | |
13560 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13561 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
13562 | ;; | |
13563 | esac | |
13564 | ;; | |
13565 | ||
13566 | beos*) | |
13567 | library_names_spec='${libname}${shared_ext}' | |
13568 | dynamic_linker="$host_os ld.so" | |
13569 | shlibpath_var=LIBRARY_PATH | |
13570 | ;; | |
13571 | ||
13572 | bsdi[45]*) | |
13573 | version_type=linux | |
13574 | need_version=no | |
13575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13576 | soname_spec='${libname}${release}${shared_ext}$major' | |
13577 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13578 | shlibpath_var=LD_LIBRARY_PATH | |
13579 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13580 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13581 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13582 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13583 | # libtool to hard-code these into programs | |
13584 | ;; | |
9c60689e | 13585 | |
47aaa820 DWT |
13586 | cygwin* | mingw* | pw32* | cegcc*) |
13587 | version_type=windows | |
13588 | shrext_cmds=".dll" | |
13589 | need_version=no | |
13590 | need_lib_prefix=no | |
9c60689e | 13591 | |
47aaa820 DWT |
13592 | case $GCC,$host_os in |
13593 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13594 | library_names_spec='$libname.dll.a' | |
13595 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13596 | postinstall_cmds='base_file=`basename \${file}`~ | |
13597 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13598 | dldir=$destdir/`dirname \$dlpath`~ | |
13599 | test -d \$dldir || mkdir -p \$dldir~ | |
13600 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13601 | chmod a+x \$dldir/$dlname~ | |
13602 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13603 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13604 | fi' | |
13605 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13606 | dlpath=$dir/\$dldll~ | |
13607 | $RM \$dlpath' | |
13608 | shlibpath_overrides_runpath=yes | |
9c60689e | 13609 | |
47aaa820 DWT |
13610 | case $host_os in |
13611 | cygwin*) | |
13612 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13613 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13614 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13615 | ;; | |
13616 | mingw* | cegcc*) | |
13617 | # MinGW DLLs use traditional 'lib' prefix | |
13618 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13619 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13620 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13621 | # It is most probably a Windows format PATH printed by | |
13622 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13623 | # path with ; separators, and with drive letters. We can handle the | |
13624 | # drive letters (cygwin fileutils understands them), so leave them, | |
13625 | # especially as we might pass files found there to a mingw objdump, | |
13626 | # which wouldn't understand a cygwinified path. Ahh. | |
13627 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13628 | else | |
13629 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13630 | fi | |
13631 | ;; | |
13632 | pw32*) | |
13633 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13634 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13635 | ;; | |
13636 | esac | |
13637 | ;; | |
9c60689e | 13638 | |
47aaa820 DWT |
13639 | *) |
13640 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13641 | ;; | |
13642 | esac | |
13643 | dynamic_linker='Win32 ld.exe' | |
13644 | # FIXME: first we should search . and the directory the executable is in | |
13645 | shlibpath_var=PATH | |
13646 | ;; | |
9c60689e | 13647 | |
47aaa820 DWT |
13648 | darwin* | rhapsody*) |
13649 | dynamic_linker="$host_os dyld" | |
13650 | version_type=darwin | |
13651 | need_lib_prefix=no | |
13652 | need_version=no | |
13653 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13654 | soname_spec='${libname}${release}${major}$shared_ext' | |
13655 | shlibpath_overrides_runpath=yes | |
13656 | shlibpath_var=DYLD_LIBRARY_PATH | |
13657 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13658 | |
47aaa820 DWT |
13659 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13660 | ;; | |
9c60689e | 13661 | |
47aaa820 DWT |
13662 | dgux*) |
13663 | version_type=linux | |
13664 | need_lib_prefix=no | |
13665 | need_version=no | |
13666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13667 | soname_spec='${libname}${release}${shared_ext}$major' | |
13668 | shlibpath_var=LD_LIBRARY_PATH | |
13669 | ;; | |
9c60689e | 13670 | |
47aaa820 DWT |
13671 | freebsd1*) |
13672 | dynamic_linker=no | |
13673 | ;; | |
9c60689e | 13674 | |
47aaa820 DWT |
13675 | freebsd* | dragonfly*) |
13676 | # DragonFly does not have aout. When/if they implement a new | |
13677 | # versioning mechanism, adjust this. | |
13678 | if test -x /usr/bin/objformat; then | |
13679 | objformat=`/usr/bin/objformat` | |
13680 | else | |
13681 | case $host_os in | |
13682 | freebsd[123]*) objformat=aout ;; | |
13683 | *) objformat=elf ;; | |
13684 | esac | |
13685 | fi | |
13686 | version_type=freebsd-$objformat | |
13687 | case $version_type in | |
13688 | freebsd-elf*) | |
13689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13690 | need_version=no | |
13691 | need_lib_prefix=no | |
13692 | ;; | |
13693 | freebsd-*) | |
13694 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13695 | need_version=yes | |
13696 | ;; | |
13697 | esac | |
13698 | shlibpath_var=LD_LIBRARY_PATH | |
13699 | case $host_os in | |
13700 | freebsd2*) | |
13701 | shlibpath_overrides_runpath=yes | |
13702 | ;; | |
13703 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13704 | shlibpath_overrides_runpath=yes | |
13705 | hardcode_into_libs=yes | |
13706 | ;; | |
13707 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13708 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13709 | shlibpath_overrides_runpath=no | |
13710 | hardcode_into_libs=yes | |
13711 | ;; | |
13712 | *) # from 4.6 on, and DragonFly | |
13713 | shlibpath_overrides_runpath=yes | |
13714 | hardcode_into_libs=yes | |
13715 | ;; | |
13716 | esac | |
13717 | ;; | |
9c60689e | 13718 | |
47aaa820 DWT |
13719 | gnu*) |
13720 | version_type=linux | |
13721 | need_lib_prefix=no | |
13722 | need_version=no | |
13723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13724 | soname_spec='${libname}${release}${shared_ext}$major' | |
13725 | shlibpath_var=LD_LIBRARY_PATH | |
13726 | hardcode_into_libs=yes | |
13727 | ;; | |
9c60689e | 13728 | |
47aaa820 DWT |
13729 | hpux9* | hpux10* | hpux11*) |
13730 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13731 | # link against other versions. | |
13732 | version_type=sunos | |
13733 | need_lib_prefix=no | |
13734 | need_version=no | |
13735 | case $host_cpu in | |
13736 | ia64*) | |
13737 | shrext_cmds='.so' | |
13738 | hardcode_into_libs=yes | |
13739 | dynamic_linker="$host_os dld.so" | |
13740 | shlibpath_var=LD_LIBRARY_PATH | |
13741 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13743 | soname_spec='${libname}${release}${shared_ext}$major' | |
13744 | if test "X$HPUX_IA64_MODE" = X32; then | |
13745 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13746 | else | |
13747 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13748 | fi | |
13749 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13750 | ;; | |
13751 | hppa*64*) | |
13752 | shrext_cmds='.sl' | |
13753 | hardcode_into_libs=yes | |
13754 | dynamic_linker="$host_os dld.sl" | |
13755 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13756 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13758 | soname_spec='${libname}${release}${shared_ext}$major' | |
13759 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13760 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13761 | ;; | |
13762 | *) | |
13763 | shrext_cmds='.sl' | |
13764 | dynamic_linker="$host_os dld.sl" | |
13765 | shlibpath_var=SHLIB_PATH | |
13766 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13768 | soname_spec='${libname}${release}${shared_ext}$major' | |
13769 | ;; | |
13770 | esac | |
13771 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13772 | postinstall_cmds='chmod 555 $lib' | |
13773 | ;; | |
9c60689e | 13774 | |
47aaa820 DWT |
13775 | interix[3-9]*) |
13776 | version_type=linux | |
13777 | need_lib_prefix=no | |
13778 | need_version=no | |
13779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13780 | soname_spec='${libname}${release}${shared_ext}$major' | |
13781 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13782 | shlibpath_var=LD_LIBRARY_PATH | |
13783 | shlibpath_overrides_runpath=no | |
13784 | hardcode_into_libs=yes | |
13785 | ;; | |
9c60689e | 13786 | |
47aaa820 DWT |
13787 | irix5* | irix6* | nonstopux*) |
13788 | case $host_os in | |
13789 | nonstopux*) version_type=nonstopux ;; | |
13790 | *) | |
13791 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13792 | version_type=linux | |
13793 | else | |
13794 | version_type=irix | |
13795 | fi ;; | |
13796 | esac | |
13797 | need_lib_prefix=no | |
13798 | need_version=no | |
13799 | soname_spec='${libname}${release}${shared_ext}$major' | |
13800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13801 | case $host_os in | |
13802 | irix5* | nonstopux*) | |
13803 | libsuff= shlibsuff= | |
13804 | ;; | |
13805 | *) | |
13806 | case $LD in # libtool.m4 will add one of these switches to LD | |
13807 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13808 | libsuff= shlibsuff= libmagic=32-bit;; | |
13809 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13810 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13811 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13812 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13813 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13814 | esac | |
13815 | ;; | |
13816 | esac | |
13817 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13818 | shlibpath_overrides_runpath=no | |
13819 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13820 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13821 | hardcode_into_libs=yes | |
13822 | ;; | |
9c60689e | 13823 | |
47aaa820 DWT |
13824 | # No shared lib support for Linux oldld, aout, or coff. |
13825 | linux*oldld* | linux*aout* | linux*coff*) | |
13826 | dynamic_linker=no | |
13827 | ;; | |
9c60689e | 13828 | |
47aaa820 | 13829 | # This must be Linux ELF. |
1504c9b8 | 13830 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
13831 | version_type=linux |
13832 | need_lib_prefix=no | |
13833 | need_version=no | |
13834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13835 | soname_spec='${libname}${release}${shared_ext}$major' | |
13836 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13837 | shlibpath_var=LD_LIBRARY_PATH | |
13838 | shlibpath_overrides_runpath=no | |
13839 | # Some binutils ld are patched to set DT_RUNPATH | |
13840 | save_LDFLAGS=$LDFLAGS | |
13841 | save_libdir=$libdir | |
13842 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13843 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13845 | /* end confdefs.h. */ | |
9c60689e | 13846 | |
47aaa820 DWT |
13847 | int |
13848 | main () | |
13849 | { | |
9c60689e | 13850 | |
47aaa820 DWT |
13851 | ; |
13852 | return 0; | |
13853 | } | |
13854 | _ACEOF | |
13855 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13856 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13857 | shlibpath_overrides_runpath=yes | |
9c60689e | 13858 | fi |
47aaa820 DWT |
13859 | fi |
13860 | rm -f core conftest.err conftest.$ac_objext \ | |
13861 | conftest$ac_exeext conftest.$ac_ext | |
13862 | LDFLAGS=$save_LDFLAGS | |
13863 | libdir=$save_libdir | |
9c60689e | 13864 | |
47aaa820 DWT |
13865 | # This implies no fast_install, which is unacceptable. |
13866 | # Some rework will be needed to allow for fast_install | |
13867 | # before this can be enabled. | |
13868 | hardcode_into_libs=yes | |
9c60689e | 13869 | |
47aaa820 DWT |
13870 | # Append ld.so.conf contents to the search path |
13871 | if test -f /etc/ld.so.conf; then | |
13872 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
13873 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13874 | fi | |
9c60689e | 13875 | |
47aaa820 DWT |
13876 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13877 | # powerpc, because MkLinux only supported shared libraries with the | |
13878 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13879 | # most powerpc-linux boxes support dynamic linking these days and | |
13880 | # people can always --disable-shared, the test was removed, and we | |
13881 | # assume the GNU/Linux dynamic linker is in use. | |
13882 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 13883 | ;; |
47aaa820 | 13884 | |
1504c9b8 DWT |
13885 | netbsdelf*-gnu) |
13886 | version_type=linux | |
13887 | need_lib_prefix=no | |
13888 | need_version=no | |
13889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13890 | soname_spec='${libname}${release}${shared_ext}$major' | |
13891 | shlibpath_var=LD_LIBRARY_PATH | |
13892 | shlibpath_overrides_runpath=no | |
13893 | hardcode_into_libs=yes | |
13894 | dynamic_linker='NetBSD ld.elf_so' | |
13895 | ;; | |
13896 | ||
47aaa820 DWT |
13897 | netbsd*) |
13898 | version_type=sunos | |
13899 | need_lib_prefix=no | |
13900 | need_version=no | |
13901 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13903 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13904 | dynamic_linker='NetBSD (a.out) ld.so' | |
13905 | else | |
13906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13907 | soname_spec='${libname}${release}${shared_ext}$major' | |
13908 | dynamic_linker='NetBSD ld.elf_so' | |
13909 | fi | |
13910 | shlibpath_var=LD_LIBRARY_PATH | |
13911 | shlibpath_overrides_runpath=yes | |
13912 | hardcode_into_libs=yes | |
9c60689e | 13913 | ;; |
9c60689e | 13914 | |
47aaa820 DWT |
13915 | newsos6) |
13916 | version_type=linux | |
13917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13918 | shlibpath_var=LD_LIBRARY_PATH | |
13919 | shlibpath_overrides_runpath=yes | |
13920 | ;; | |
9c60689e | 13921 | |
47aaa820 DWT |
13922 | *nto* | *qnx*) |
13923 | version_type=qnx | |
13924 | need_lib_prefix=no | |
13925 | need_version=no | |
13926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13927 | soname_spec='${libname}${release}${shared_ext}$major' | |
13928 | shlibpath_var=LD_LIBRARY_PATH | |
13929 | shlibpath_overrides_runpath=no | |
13930 | hardcode_into_libs=yes | |
13931 | dynamic_linker='ldqnx.so' | |
13932 | ;; | |
9c60689e | 13933 | |
47aaa820 DWT |
13934 | openbsd*) |
13935 | version_type=sunos | |
13936 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13937 | need_lib_prefix=no | |
13938 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13939 | case $host_os in | |
13940 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13941 | *) need_version=no ;; | |
13942 | esac | |
13943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13944 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13945 | shlibpath_var=LD_LIBRARY_PATH | |
13946 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13947 | case $host_os in | |
13948 | openbsd2.[89] | openbsd2.[89].*) | |
13949 | shlibpath_overrides_runpath=no | |
13950 | ;; | |
13951 | *) | |
13952 | shlibpath_overrides_runpath=yes | |
13953 | ;; | |
13954 | esac | |
13955 | else | |
13956 | shlibpath_overrides_runpath=yes | |
13957 | fi | |
13958 | ;; | |
9c60689e | 13959 | |
47aaa820 DWT |
13960 | os2*) |
13961 | libname_spec='$name' | |
13962 | shrext_cmds=".dll" | |
13963 | need_lib_prefix=no | |
13964 | library_names_spec='$libname${shared_ext} $libname.a' | |
13965 | dynamic_linker='OS/2 ld.exe' | |
13966 | shlibpath_var=LIBPATH | |
13967 | ;; | |
9c60689e | 13968 | |
47aaa820 DWT |
13969 | osf3* | osf4* | osf5*) |
13970 | version_type=osf | |
13971 | need_lib_prefix=no | |
13972 | need_version=no | |
13973 | soname_spec='${libname}${release}${shared_ext}$major' | |
13974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13975 | shlibpath_var=LD_LIBRARY_PATH | |
13976 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13977 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13978 | ;; | |
9c60689e | 13979 | |
47aaa820 DWT |
13980 | rdos*) |
13981 | dynamic_linker=no | |
13982 | ;; | |
9c60689e | 13983 | |
47aaa820 DWT |
13984 | solaris*) |
13985 | version_type=linux | |
13986 | need_lib_prefix=no | |
13987 | need_version=no | |
13988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13989 | soname_spec='${libname}${release}${shared_ext}$major' | |
13990 | shlibpath_var=LD_LIBRARY_PATH | |
13991 | shlibpath_overrides_runpath=yes | |
13992 | hardcode_into_libs=yes | |
13993 | # ldd complains unless libraries are executable | |
13994 | postinstall_cmds='chmod +x $lib' | |
13995 | ;; | |
9c60689e | 13996 | |
47aaa820 DWT |
13997 | sunos4*) |
13998 | version_type=sunos | |
13999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14000 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14001 | shlibpath_var=LD_LIBRARY_PATH | |
14002 | shlibpath_overrides_runpath=yes | |
14003 | if test "$with_gnu_ld" = yes; then | |
14004 | need_lib_prefix=no | |
14005 | fi | |
14006 | need_version=yes | |
14007 | ;; | |
9c60689e | 14008 | |
47aaa820 DWT |
14009 | sysv4 | sysv4.3*) |
14010 | version_type=linux | |
14011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14012 | soname_spec='${libname}${release}${shared_ext}$major' | |
14013 | shlibpath_var=LD_LIBRARY_PATH | |
14014 | case $host_vendor in | |
14015 | sni) | |
14016 | shlibpath_overrides_runpath=no | |
14017 | need_lib_prefix=no | |
14018 | runpath_var=LD_RUN_PATH | |
9c60689e | 14019 | ;; |
47aaa820 DWT |
14020 | siemens) |
14021 | need_lib_prefix=no | |
9c60689e | 14022 | ;; |
47aaa820 DWT |
14023 | motorola) |
14024 | need_lib_prefix=no | |
14025 | need_version=no | |
14026 | shlibpath_overrides_runpath=no | |
14027 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14028 | ;; | |
14029 | esac | |
9c60689e | 14030 | ;; |
9c60689e | 14031 | |
47aaa820 DWT |
14032 | sysv4*MP*) |
14033 | if test -d /usr/nec ;then | |
14034 | version_type=linux | |
14035 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14036 | soname_spec='$libname${shared_ext}.$major' | |
14037 | shlibpath_var=LD_LIBRARY_PATH | |
14038 | fi | |
14039 | ;; | |
9c60689e | 14040 | |
47aaa820 DWT |
14041 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
14042 | version_type=freebsd-elf | |
14043 | need_lib_prefix=no | |
14044 | need_version=no | |
14045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14046 | soname_spec='${libname}${release}${shared_ext}$major' | |
14047 | shlibpath_var=LD_LIBRARY_PATH | |
14048 | shlibpath_overrides_runpath=yes | |
14049 | hardcode_into_libs=yes | |
14050 | if test "$with_gnu_ld" = yes; then | |
14051 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14052 | else | |
14053 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14054 | case $host_os in | |
14055 | sco3.2v5*) | |
14056 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14057 | ;; | |
14058 | esac | |
14059 | fi | |
14060 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14061 | ;; | |
9c60689e | 14062 | |
47aaa820 DWT |
14063 | tpf*) |
14064 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14065 | version_type=linux | |
14066 | need_lib_prefix=no | |
14067 | need_version=no | |
14068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14069 | shlibpath_var=LD_LIBRARY_PATH | |
14070 | shlibpath_overrides_runpath=no | |
14071 | hardcode_into_libs=yes | |
14072 | ;; | |
9c60689e | 14073 | |
47aaa820 DWT |
14074 | uts4*) |
14075 | version_type=linux | |
14076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14077 | soname_spec='${libname}${release}${shared_ext}$major' | |
14078 | shlibpath_var=LD_LIBRARY_PATH | |
14079 | ;; | |
9c60689e | 14080 | |
47aaa820 DWT |
14081 | *) |
14082 | dynamic_linker=no | |
e9c9a47c DWT |
14083 | ;; |
14084 | esac | |
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14086 | $as_echo "$dynamic_linker" >&6; } | |
14087 | test "$dynamic_linker" = no && can_build_shared=no | |
14088 | ||
14089 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14090 | if test "$GCC" = yes; then | |
14091 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 14092 | fi |
9c60689e | 14093 | |
e9c9a47c DWT |
14094 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14095 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 14096 | fi |
e9c9a47c DWT |
14097 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
14098 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 14099 | fi |
9c60689e | 14100 | |
9c60689e | 14101 | |
9c60689e | 14102 | |
9c60689e | 14103 | |
47aaa820 | 14104 | |
47aaa820 | 14105 | |
47aaa820 | 14106 | |
9c60689e | 14107 | |
9c60689e | 14108 | |
47aaa820 | 14109 | |
47aaa820 | 14110 | |
47aaa820 | 14111 | |
47aaa820 | 14112 | |
47aaa820 | 14113 | |
47aaa820 | 14114 | |
47aaa820 | 14115 | |
47aaa820 | 14116 | |
9c60689e | 14117 | |
9c60689e | 14118 | |
9c60689e | 14119 | |
9c60689e | 14120 | |
9c60689e | 14121 | |
e9c9a47c DWT |
14122 | |
14123 | ||
14124 | ||
14125 | ||
14126 | ||
14127 | ||
14128 | ||
14129 | ||
14130 | ||
14131 | ||
14132 | ||
14133 | ||
14134 | ||
14135 | ||
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14137 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14138 | hardcode_action_CXX= | |
14139 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14140 | test -n "$runpath_var_CXX" || | |
14141 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14142 | ||
14143 | # We can hardcode non-existent directories. | |
14144 | if test "$hardcode_direct_CXX" != no && | |
14145 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14146 | # have to relink, otherwise we might link with an installed library | |
14147 | # when we should be linking with a yet-to-be-installed one | |
14148 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14149 | test "$hardcode_minus_L_CXX" != no; then | |
14150 | # Linking always hardcodes the temporary library directory. | |
14151 | hardcode_action_CXX=relink | |
14152 | else | |
14153 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14154 | hardcode_action_CXX=immediate | |
14155 | fi | |
14156 | else | |
14157 | # We cannot hardcode anything, or else we can only hardcode existing | |
14158 | # directories. | |
14159 | hardcode_action_CXX=unsupported | |
14160 | fi | |
14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
14162 | $as_echo "$hardcode_action_CXX" >&6; } | |
14163 | ||
14164 | if test "$hardcode_action_CXX" = relink || | |
14165 | test "$inherit_rpath_CXX" = yes; then | |
14166 | # Fast installation is not supported | |
14167 | enable_fast_install=no | |
14168 | elif test "$shlibpath_overrides_runpath" = yes || | |
14169 | test "$enable_shared" = no; then | |
14170 | # Fast installation is not necessary | |
14171 | enable_fast_install=needless | |
47aaa820 | 14172 | fi |
9c60689e | 14173 | |
47aaa820 | 14174 | |
47aaa820 | 14175 | |
e9c9a47c DWT |
14176 | |
14177 | ||
14178 | ||
14179 | ||
14180 | fi # test -n "$compiler" | |
14181 | ||
14182 | CC=$lt_save_CC | |
14183 | LDCXX=$LD | |
14184 | LD=$lt_save_LD | |
14185 | GCC=$lt_save_GCC | |
14186 | with_gnu_ld=$lt_save_with_gnu_ld | |
14187 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
14188 | lt_cv_path_LD=$lt_save_path_LD | |
14189 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14190 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14191 | fi # test "$_lt_caught_CXX_error" != yes | |
14192 | ||
14193 | ac_ext=c | |
14194 | ac_cpp='$CPP $CPPFLAGS' | |
14195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14198 | ||
14199 | ||
14200 | ac_ext=mm | |
14201 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
14202 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14203 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14204 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
14205 | if test -n "$ac_tool_prefix"; then | |
14206 | for ac_prog in g++ objc++ objcxx c++ CXX | |
14207 | do | |
14208 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
14209 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
632b71ea DWT |
14210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14211 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14212 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : |
632b71ea DWT |
14213 | $as_echo_n "(cached) " >&6 |
14214 | else | |
e9c9a47c DWT |
14215 | if test -n "$OBJCXX"; then |
14216 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
632b71ea DWT |
14217 | else |
14218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14219 | for as_dir in $PATH | |
14220 | do | |
14221 | IFS=$as_save_IFS | |
14222 | test -z "$as_dir" && as_dir=. | |
14223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14225 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
632b71ea DWT |
14226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14227 | break 2 | |
14228 | fi | |
14229 | done | |
14230 | done | |
14231 | IFS=$as_save_IFS | |
14232 | ||
14233 | fi | |
14234 | fi | |
e9c9a47c DWT |
14235 | OBJCXX=$ac_cv_prog_OBJCXX |
14236 | if test -n "$OBJCXX"; then | |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
14238 | $as_echo "$OBJCXX" >&6; } | |
632b71ea DWT |
14239 | else |
14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14241 | $as_echo "no" >&6; } | |
14242 | fi | |
14243 | ||
14244 | ||
e9c9a47c DWT |
14245 | test -n "$OBJCXX" && break |
14246 | done | |
632b71ea | 14247 | fi |
e9c9a47c DWT |
14248 | if test -z "$OBJCXX"; then |
14249 | ac_ct_OBJCXX=$OBJCXX | |
14250 | for ac_prog in g++ objc++ objcxx c++ CXX | |
47aaa820 DWT |
14251 | do |
14252 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14253 | set dummy $ac_prog; ac_word=$2 | |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14255 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14256 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : |
47aaa820 DWT |
14257 | $as_echo_n "(cached) " >&6 |
14258 | else | |
e9c9a47c DWT |
14259 | if test -n "$ac_ct_OBJCXX"; then |
14260 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
47aaa820 DWT |
14261 | else |
14262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14263 | for as_dir in $PATH | |
14264 | do | |
14265 | IFS=$as_save_IFS | |
14266 | test -z "$as_dir" && as_dir=. | |
14267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14269 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
47aaa820 DWT |
14270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14271 | break 2 | |
14272 | fi | |
14273 | done | |
14274 | done | |
14275 | IFS=$as_save_IFS | |
9c60689e | 14276 | |
9c60689e | 14277 | fi |
9c60689e | 14278 | fi |
e9c9a47c DWT |
14279 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
14280 | if test -n "$ac_ct_OBJCXX"; then | |
14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
14282 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
47aaa820 DWT |
14283 | else |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14285 | $as_echo "no" >&6; } | |
9c60689e DWT |
14286 | fi |
14287 | ||
14288 | ||
e9c9a47c | 14289 | test -n "$ac_ct_OBJCXX" && break |
47aaa820 | 14290 | done |
e9c9a47c DWT |
14291 | |
14292 | if test "x$ac_ct_OBJCXX" = x; then | |
14293 | OBJCXX="g++" | |
14294 | else | |
14295 | case $cross_compiling:$ac_tool_warned in | |
14296 | yes:) | |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14299 | ac_tool_warned=yes ;; | |
14300 | esac | |
14301 | OBJCXX=$ac_ct_OBJCXX | |
14302 | fi | |
14303 | fi | |
14304 | ||
14305 | # Provide some information about the compiler. | |
14306 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
14307 | set X $ac_compile | |
14308 | ac_compiler=$2 | |
14309 | for ac_option in --version -v -V -qversion; do | |
14310 | { { ac_try="$ac_compiler $ac_option >&5" | |
632b71ea DWT |
14311 | case "(($ac_try" in |
14312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14313 | *) ac_try_echo=$ac_try;; | |
14314 | esac | |
14315 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14316 | $as_echo "$ac_try_echo"; } >&5 | |
e9c9a47c | 14317 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
632b71ea | 14318 | ac_status=$? |
e9c9a47c DWT |
14319 | if test -s conftest.err; then |
14320 | sed '10a\ | |
14321 | ... rest of stderr output deleted ... | |
14322 | 10q' conftest.err >conftest.er1 | |
14323 | cat conftest.er1 >&5 | |
14324 | fi | |
14325 | rm -f conftest.er1 conftest.err | |
632b71ea DWT |
14326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14327 | test $ac_status = 0; } | |
e9c9a47c | 14328 | done |
9c60689e | 14329 | |
e9c9a47c DWT |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
14331 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
14332 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
632b71ea DWT |
14333 | $as_echo_n "(cached) " >&6 |
14334 | else | |
e9c9a47c | 14335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
632b71ea | 14336 | /* end confdefs.h. */ |
e9c9a47c DWT |
14337 | |
14338 | int | |
14339 | main () | |
14340 | { | |
14341 | #ifndef __GNUC__ | |
14342 | choke me | |
14343 | #endif | |
14344 | ||
14345 | ; | |
14346 | return 0; | |
14347 | } | |
632b71ea | 14348 | _ACEOF |
e9c9a47c DWT |
14349 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
14350 | ac_compiler_gnu=yes | |
14351 | else | |
14352 | ac_compiler_gnu=no | |
632b71ea | 14353 | fi |
e9c9a47c DWT |
14354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14355 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 14356 | |
632b71ea | 14357 | fi |
e9c9a47c DWT |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
14359 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
14360 | if test $ac_compiler_gnu = yes; then | |
14361 | GOBJCXX=yes | |
14362 | else | |
14363 | GOBJCXX= | |
632b71ea | 14364 | fi |
e9c9a47c DWT |
14365 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
14366 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
14368 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
14369 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
632b71ea | 14370 | $as_echo_n "(cached) " >&6 |
47aaa820 | 14371 | else |
e9c9a47c DWT |
14372 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
14373 | ac_objcxx_werror_flag=yes | |
14374 | ac_cv_prog_objcxx_g=no | |
14375 | OBJCXXFLAGS="-g" | |
14376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 14377 | /* end confdefs.h. */ |
9c60689e | 14378 | |
e9c9a47c DWT |
14379 | int |
14380 | main () | |
14381 | { | |
9c60689e | 14382 | |
e9c9a47c DWT |
14383 | ; |
14384 | return 0; | |
14385 | } | |
14386 | _ACEOF | |
14387 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14388 | ac_cv_prog_objcxx_g=yes | |
632b71ea | 14389 | else |
e9c9a47c DWT |
14390 | OBJCXXFLAGS="" |
14391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14392 | /* end confdefs.h. */ | |
9c60689e | 14393 | |
e9c9a47c DWT |
14394 | int |
14395 | main () | |
14396 | { | |
9c60689e | 14397 | |
e9c9a47c DWT |
14398 | ; |
14399 | return 0; | |
14400 | } | |
14401 | _ACEOF | |
14402 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 14403 | |
47aaa820 | 14404 | else |
e9c9a47c DWT |
14405 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
14406 | OBJCXXFLAGS="-g" | |
14407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14408 | /* end confdefs.h. */ | |
9c60689e | 14409 | |
e9c9a47c DWT |
14410 | int |
14411 | main () | |
14412 | { | |
9c60689e | 14413 | |
e9c9a47c DWT |
14414 | ; |
14415 | return 0; | |
14416 | } | |
14417 | _ACEOF | |
14418 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14419 | ac_cv_prog_objcxx_g=yes | |
47aaa820 | 14420 | fi |
e9c9a47c | 14421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14422 | fi |
e9c9a47c | 14423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14424 | fi |
e9c9a47c DWT |
14425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14426 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
790e5246 | 14427 | fi |
e9c9a47c DWT |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
14429 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
14430 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
14431 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
14432 | elif test $ac_cv_prog_objcxx_g = yes; then | |
14433 | if test "$GOBJCXX" = yes; then | |
14434 | OBJCXXFLAGS="-g -O2" | |
14435 | else | |
14436 | OBJCXXFLAGS="-g" | |
632b71ea | 14437 | fi |
632b71ea | 14438 | else |
e9c9a47c DWT |
14439 | if test "$GOBJCXX" = yes; then |
14440 | OBJCXXFLAGS="-O2" | |
14441 | else | |
14442 | OBJCXXFLAGS= | |
14443 | fi | |
632b71ea | 14444 | fi |
e9c9a47c DWT |
14445 | ac_ext=c |
14446 | ac_cpp='$CPP $CPPFLAGS' | |
14447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 14450 | |
9c60689e | 14451 | |
1504c9b8 DWT |
14452 | # Check whether --enable-universal-binary was given. |
14453 | if test "${enable_universal_binary+set}" = set; then : | |
14454 | enableval=$enable_universal_binary; | |
14455 | case $enableval in #( | |
14456 | no) : | |
14457 | ;; #( | |
14458 | *) : | |
14459 | ||
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5 | |
14461 | $as_echo_n "checking for universal binary support... " >&6; } | |
14462 | case $host_vendor in #( | |
14463 | apple) : | |
14464 | ||
14465 | case $host_cpu in #( | |
14466 | i386|x86_64) : | |
14467 | ||
14468 | for cy_arch in i386 x86_64; do | |
14469 | cy_save_CXXFLAGS=$CXXFLAGS | |
14470 | ||
14471 | for element in "-arch $cy_arch"; do | |
14472 | haveit= | |
14473 | for x in $CXXFLAGS; do | |
14474 | ||
14475 | acl_save_prefix="$prefix" | |
14476 | prefix="$acl_final_prefix" | |
14477 | acl_save_exec_prefix="$exec_prefix" | |
14478 | exec_prefix="$acl_final_exec_prefix" | |
14479 | eval x=\"$x\" | |
14480 | exec_prefix="$acl_save_exec_prefix" | |
14481 | prefix="$acl_save_prefix" | |
14482 | ||
14483 | if test "X$x" = "X$element"; then | |
14484 | haveit=yes | |
14485 | break | |
14486 | fi | |
14487 | done | |
14488 | if test -z "$haveit"; then | |
14489 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14490 | fi | |
14491 | done | |
14492 | ||
14493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14494 | /* end confdefs.h. */ | |
14495 | ||
14496 | int | |
14497 | main () | |
14498 | { | |
14499 | ||
14500 | ; | |
14501 | return 0; | |
14502 | } | |
14503 | _ACEOF | |
14504 | if ac_fn_c_try_link "$LINENO"; then : | |
14505 | ||
14506 | ||
14507 | for element in $cy_arch; do | |
14508 | haveit= | |
14509 | for x in $cy_arches; do | |
14510 | ||
14511 | acl_save_prefix="$prefix" | |
14512 | prefix="$acl_final_prefix" | |
14513 | acl_save_exec_prefix="$exec_prefix" | |
14514 | exec_prefix="$acl_final_exec_prefix" | |
14515 | eval x=\"$x\" | |
14516 | exec_prefix="$acl_save_exec_prefix" | |
14517 | prefix="$acl_save_prefix" | |
14518 | ||
14519 | if test "X$x" = "X$element"; then | |
14520 | haveit=yes | |
14521 | break | |
14522 | fi | |
14523 | done | |
14524 | if test -z "$haveit"; then | |
14525 | cy_arches="${cy_arches}${cy_arches:+ }$element" | |
14526 | fi | |
14527 | done | |
14528 | ||
14529 | ||
14530 | for element in "-arch $cy_arch"; do | |
14531 | haveit= | |
14532 | for x in $CFLAGS; do | |
14533 | ||
14534 | acl_save_prefix="$prefix" | |
14535 | prefix="$acl_final_prefix" | |
14536 | acl_save_exec_prefix="$exec_prefix" | |
14537 | exec_prefix="$acl_final_exec_prefix" | |
14538 | eval x=\"$x\" | |
14539 | exec_prefix="$acl_save_exec_prefix" | |
14540 | prefix="$acl_save_prefix" | |
14541 | ||
14542 | if test "X$x" = "X$element"; then | |
14543 | haveit=yes | |
14544 | break | |
14545 | fi | |
14546 | done | |
14547 | if test -z "$haveit"; then | |
14548 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14549 | fi | |
14550 | done | |
14551 | ||
14552 | ||
14553 | for element in "-arch $cy_arch"; do | |
14554 | haveit= | |
14555 | for x in $LDFLAGS; do | |
14556 | ||
14557 | acl_save_prefix="$prefix" | |
14558 | prefix="$acl_final_prefix" | |
14559 | acl_save_exec_prefix="$exec_prefix" | |
14560 | exec_prefix="$acl_final_exec_prefix" | |
14561 | eval x=\"$x\" | |
14562 | exec_prefix="$acl_save_exec_prefix" | |
14563 | prefix="$acl_save_prefix" | |
14564 | ||
14565 | if test "X$x" = "X$element"; then | |
14566 | haveit=yes | |
14567 | break | |
14568 | fi | |
14569 | done | |
14570 | if test -z "$haveit"; then | |
14571 | LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element" | |
14572 | fi | |
14573 | done | |
14574 | ||
14575 | ||
14576 | for element in "-arch $cy_arch"; do | |
14577 | haveit= | |
14578 | for x in $OBJCXXFLAGS; do | |
14579 | ||
14580 | acl_save_prefix="$prefix" | |
14581 | prefix="$acl_final_prefix" | |
14582 | acl_save_exec_prefix="$exec_prefix" | |
14583 | exec_prefix="$acl_final_exec_prefix" | |
14584 | eval x=\"$x\" | |
14585 | exec_prefix="$acl_save_exec_prefix" | |
14586 | prefix="$acl_save_prefix" | |
14587 | ||
14588 | if test "X$x" = "X$element"; then | |
14589 | haveit=yes | |
14590 | break | |
14591 | fi | |
14592 | done | |
14593 | if test -z "$haveit"; then | |
14594 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
14595 | fi | |
14596 | done | |
14597 | ||
14598 | ||
14599 | else | |
14600 | ||
14601 | CXXFLAGS=$cy_save_CXXFLAGS | |
14602 | ||
14603 | fi | |
14604 | rm -f core conftest.err conftest.$ac_objext \ | |
14605 | conftest$ac_exeext conftest.$ac_ext | |
14606 | done | |
14607 | ;; #( | |
14608 | *) : | |
14609 | ;; | |
14610 | esac | |
14611 | ;; #( | |
14612 | *) : | |
14613 | ;; | |
14614 | esac | |
14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5 | |
14616 | $as_echo "${cy_arches-no}" >&6; } | |
14617 | ;; | |
14618 | esac | |
14619 | ||
14620 | else | |
14621 | ||
14622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5 | |
14623 | $as_echo_n "checking for universal binary support... " >&6; } | |
14624 | case $host_vendor in #( | |
14625 | apple) : | |
14626 | ||
14627 | case $host_cpu in #( | |
14628 | i386|x86_64) : | |
14629 | ||
14630 | for cy_arch in i386 x86_64; do | |
14631 | cy_save_CXXFLAGS=$CXXFLAGS | |
14632 | ||
14633 | for element in "-arch $cy_arch"; do | |
14634 | haveit= | |
14635 | for x in $CXXFLAGS; do | |
14636 | ||
14637 | acl_save_prefix="$prefix" | |
14638 | prefix="$acl_final_prefix" | |
14639 | acl_save_exec_prefix="$exec_prefix" | |
14640 | exec_prefix="$acl_final_exec_prefix" | |
14641 | eval x=\"$x\" | |
14642 | exec_prefix="$acl_save_exec_prefix" | |
14643 | prefix="$acl_save_prefix" | |
14644 | ||
14645 | if test "X$x" = "X$element"; then | |
14646 | haveit=yes | |
14647 | break | |
14648 | fi | |
14649 | done | |
14650 | if test -z "$haveit"; then | |
14651 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14652 | fi | |
14653 | done | |
14654 | ||
14655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14656 | /* end confdefs.h. */ | |
14657 | ||
14658 | int | |
14659 | main () | |
14660 | { | |
14661 | ||
14662 | ; | |
14663 | return 0; | |
14664 | } | |
14665 | _ACEOF | |
14666 | if ac_fn_c_try_link "$LINENO"; then : | |
14667 | ||
14668 | ||
14669 | for element in $cy_arch; do | |
14670 | haveit= | |
14671 | for x in $cy_arches; do | |
14672 | ||
14673 | acl_save_prefix="$prefix" | |
14674 | prefix="$acl_final_prefix" | |
14675 | acl_save_exec_prefix="$exec_prefix" | |
14676 | exec_prefix="$acl_final_exec_prefix" | |
14677 | eval x=\"$x\" | |
14678 | exec_prefix="$acl_save_exec_prefix" | |
14679 | prefix="$acl_save_prefix" | |
14680 | ||
14681 | if test "X$x" = "X$element"; then | |
14682 | haveit=yes | |
14683 | break | |
14684 | fi | |
14685 | done | |
14686 | if test -z "$haveit"; then | |
14687 | cy_arches="${cy_arches}${cy_arches:+ }$element" | |
14688 | fi | |
14689 | done | |
14690 | ||
14691 | ||
14692 | for element in "-arch $cy_arch"; do | |
14693 | haveit= | |
14694 | for x in $CFLAGS; do | |
14695 | ||
14696 | acl_save_prefix="$prefix" | |
14697 | prefix="$acl_final_prefix" | |
14698 | acl_save_exec_prefix="$exec_prefix" | |
14699 | exec_prefix="$acl_final_exec_prefix" | |
14700 | eval x=\"$x\" | |
14701 | exec_prefix="$acl_save_exec_prefix" | |
14702 | prefix="$acl_save_prefix" | |
14703 | ||
14704 | if test "X$x" = "X$element"; then | |
14705 | haveit=yes | |
14706 | break | |
14707 | fi | |
14708 | done | |
14709 | if test -z "$haveit"; then | |
14710 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14711 | fi | |
14712 | done | |
14713 | ||
14714 | ||
14715 | for element in "-arch $cy_arch"; do | |
14716 | haveit= | |
14717 | for x in $LDFLAGS; do | |
14718 | ||
14719 | acl_save_prefix="$prefix" | |
14720 | prefix="$acl_final_prefix" | |
14721 | acl_save_exec_prefix="$exec_prefix" | |
14722 | exec_prefix="$acl_final_exec_prefix" | |
14723 | eval x=\"$x\" | |
14724 | exec_prefix="$acl_save_exec_prefix" | |
14725 | prefix="$acl_save_prefix" | |
14726 | ||
14727 | if test "X$x" = "X$element"; then | |
14728 | haveit=yes | |
14729 | break | |
14730 | fi | |
14731 | done | |
14732 | if test -z "$haveit"; then | |
14733 | LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element" | |
14734 | fi | |
14735 | done | |
14736 | ||
14737 | ||
14738 | for element in "-arch $cy_arch"; do | |
14739 | haveit= | |
14740 | for x in $OBJCXXFLAGS; do | |
14741 | ||
14742 | acl_save_prefix="$prefix" | |
14743 | prefix="$acl_final_prefix" | |
14744 | acl_save_exec_prefix="$exec_prefix" | |
14745 | exec_prefix="$acl_final_exec_prefix" | |
14746 | eval x=\"$x\" | |
14747 | exec_prefix="$acl_save_exec_prefix" | |
14748 | prefix="$acl_save_prefix" | |
14749 | ||
14750 | if test "X$x" = "X$element"; then | |
14751 | haveit=yes | |
14752 | break | |
14753 | fi | |
14754 | done | |
14755 | if test -z "$haveit"; then | |
14756 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
14757 | fi | |
14758 | done | |
14759 | ||
14760 | ||
14761 | else | |
14762 | ||
14763 | CXXFLAGS=$cy_save_CXXFLAGS | |
14764 | ||
14765 | fi | |
14766 | rm -f core conftest.err conftest.$ac_objext \ | |
14767 | conftest$ac_exeext conftest.$ac_ext | |
14768 | done | |
14769 | ;; #( | |
14770 | *) : | |
14771 | ;; | |
14772 | esac | |
14773 | ;; #( | |
14774 | *) : | |
14775 | ;; | |
14776 | esac | |
14777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5 | |
14778 | $as_echo "${cy_arches-no}" >&6; } | |
14779 | ||
14780 | fi | |
14781 | ||
14782 | ||
e9c9a47c DWT |
14783 | # Check whether --with-frameworks was given. |
14784 | if test "${with_frameworks+set}" = set; then : | |
14785 | withval=$with_frameworks; | |
1504c9b8 | 14786 | for cy_framework in $withval; do |
9c60689e | 14787 | |
1504c9b8 | 14788 | for element in -F$cy_framework; do |
e9c9a47c DWT |
14789 | haveit= |
14790 | for x in $CFLAGS; do | |
9c60689e | 14791 | |
e9c9a47c DWT |
14792 | acl_save_prefix="$prefix" |
14793 | prefix="$acl_final_prefix" | |
14794 | acl_save_exec_prefix="$exec_prefix" | |
14795 | exec_prefix="$acl_final_exec_prefix" | |
14796 | eval x=\"$x\" | |
14797 | exec_prefix="$acl_save_exec_prefix" | |
14798 | prefix="$acl_save_prefix" | |
14799 | ||
14800 | if test "X$x" = "X$element"; then | |
14801 | haveit=yes | |
14802 | break | |
14803 | fi | |
14804 | done | |
14805 | if test -z "$haveit"; then | |
14806 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14807 | fi | |
9c60689e | 14808 | done |
9c60689e | 14809 | |
94690cff | 14810 | |
1504c9b8 | 14811 | for element in -F$cy_framework; do |
e9c9a47c DWT |
14812 | haveit= |
14813 | for x in $CXXFLAGS; do | |
9c60689e | 14814 | |
e9c9a47c DWT |
14815 | acl_save_prefix="$prefix" |
14816 | prefix="$acl_final_prefix" | |
14817 | acl_save_exec_prefix="$exec_prefix" | |
14818 | exec_prefix="$acl_final_exec_prefix" | |
14819 | eval x=\"$x\" | |
14820 | exec_prefix="$acl_save_exec_prefix" | |
14821 | prefix="$acl_save_prefix" | |
9c60689e | 14822 | |
e9c9a47c DWT |
14823 | if test "X$x" = "X$element"; then |
14824 | haveit=yes | |
14825 | break | |
14826 | fi | |
14827 | done | |
14828 | if test -z "$haveit"; then | |
14829 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14830 | fi | |
14831 | done | |
9c60689e | 14832 | |
e9c9a47c | 14833 | |
1504c9b8 | 14834 | for element in -F$cy_framework; do |
e9c9a47c DWT |
14835 | haveit= |
14836 | for x in $OBJCCXXFLAGS; do | |
14837 | ||
14838 | acl_save_prefix="$prefix" | |
14839 | prefix="$acl_final_prefix" | |
14840 | acl_save_exec_prefix="$exec_prefix" | |
14841 | exec_prefix="$acl_final_exec_prefix" | |
14842 | eval x=\"$x\" | |
14843 | exec_prefix="$acl_save_exec_prefix" | |
14844 | prefix="$acl_save_prefix" | |
14845 | ||
14846 | if test "X$x" = "X$element"; then | |
14847 | haveit=yes | |
14848 | break | |
14849 | fi | |
14850 | done | |
14851 | if test -z "$haveit"; then | |
14852 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
14853 | fi | |
9c60689e | 14854 | done |
632b71ea | 14855 | |
e9c9a47c | 14856 | done |
9c60689e | 14857 | |
e9c9a47c | 14858 | fi |
9c60689e | 14859 | |
e9c9a47c DWT |
14860 | ac_ext=cpp |
14861 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14862 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14863 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14864 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e DWT |
14865 | |
14866 | ||
632b71ea | 14867 | apr_found="no" |
9c60689e | 14868 | |
632b71ea DWT |
14869 | if test "$target_os" = "os2-emx"; then |
14870 | # Scripts don't pass test -x on OS/2 | |
14871 | TEST_X="test -f" | |
14872 | else | |
14873 | TEST_X="test -x" | |
14874 | fi | |
9c60689e | 14875 | |
632b71ea | 14876 | acceptable_majors="1" |
9c60689e | 14877 | |
632b71ea DWT |
14878 | apr_temp_acceptable_apr_config="" |
14879 | for apr_temp_major in $acceptable_majors | |
14880 | do | |
14881 | case $apr_temp_major in | |
14882 | 0) | |
14883 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14884 | ;; | |
14885 | *) | |
14886 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14887 | ;; | |
14888 | esac | |
14889 | done | |
9c60689e | 14890 | |
632b71ea DWT |
14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 |
14892 | $as_echo_n "checking for APR... " >&6; } | |
9c60689e | 14893 | |
632b71ea DWT |
14894 | # Check whether --with-apr was given. |
14895 | if test "${with_apr+set}" = set; then : | |
14896 | withval=$with_apr; | |
14897 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14898 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14899 | fi | |
9c60689e | 14900 | |
632b71ea DWT |
14901 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config |
14902 | do | |
14903 | for lookdir in "$withval/bin" "$withval" | |
14904 | do | |
14905 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14906 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
9c60689e | 14907 | |
632b71ea DWT |
14908 | apr_found="yes" |
14909 | break 2 | |
14910 | fi | |
14911 | done | |
14912 | done | |
9c60689e | 14913 | |
632b71ea DWT |
14914 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then |
14915 | apr_config="$withval" | |
14916 | apr_found="yes" | |
14917 | fi | |
9c60689e | 14918 | |
632b71ea DWT |
14919 | if test "$apr_found" != "yes"; then |
14920 | as_fn_error "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 | |
14921 | fi | |
9c60689e | 14922 | |
632b71ea | 14923 | else |
9c60689e | 14924 | |
632b71ea DWT |
14925 | if test -n "1" && test "1" = "1"; then |
14926 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14927 | do | |
14928 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14929 | apr_config="$apr_temp_apr_config_file" | |
9c60689e | 14930 | |
632b71ea DWT |
14931 | apr_found="yes" |
14932 | break | |
14933 | else | |
14934 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14935 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14936 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
9c60689e | 14937 | |
632b71ea DWT |
14938 | apr_found="yes" |
14939 | break 2 | |
14940 | fi | |
14941 | done | |
14942 | fi | |
14943 | done | |
14944 | fi | |
14945 | if test "$apr_found" = "no" && test -d ""; then | |
14946 | apr_temp_abs_srcdir="`cd && pwd`" | |
14947 | apr_found="reconfig" | |
14948 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14949 | case $apr_bundled_major in | |
14950 | "") | |
14951 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14952 | ;; | |
14953 | 0) | |
14954 | apr_temp_apr_config_file="apr-config" | |
14955 | ;; | |
14956 | *) | |
14957 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14958 | ;; | |
14959 | esac | |
14960 | if test -n ""; then | |
14961 | apr_config="/$apr_temp_apr_config_file" | |
14962 | else | |
14963 | apr_config="/$apr_temp_apr_config_file" | |
14964 | fi | |
14965 | fi | |
9c60689e | 14966 | |
632b71ea | 14967 | fi |
9c60689e | 14968 | |
9c60689e | 14969 | |
632b71ea DWT |
14970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
14971 | $as_echo "$apr_found" >&6; } | |
9c60689e | 14972 | |
632b71ea DWT |
14973 | case $apr_found in #( |
14974 | yes) : | |
9c60689e DWT |
14975 | |
14976 | ||
632b71ea DWT |
14977 | for element in `$apr_config --includes`; do |
14978 | haveit= | |
14979 | for x in $CPPFLAGS; do | |
9c60689e DWT |
14980 | |
14981 | acl_save_prefix="$prefix" | |
14982 | prefix="$acl_final_prefix" | |
14983 | acl_save_exec_prefix="$exec_prefix" | |
14984 | exec_prefix="$acl_final_exec_prefix" | |
632b71ea | 14985 | eval x=\"$x\" |
9c60689e DWT |
14986 | exec_prefix="$acl_save_exec_prefix" |
14987 | prefix="$acl_save_prefix" | |
14988 | ||
632b71ea DWT |
14989 | if test "X$x" = "X$element"; then |
14990 | haveit=yes | |
14991 | break | |
9c60689e | 14992 | fi |
632b71ea DWT |
14993 | done |
14994 | if test -z "$haveit"; then | |
14995 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9c60689e | 14996 | fi |
632b71ea | 14997 | done |
9c60689e | 14998 | |
632b71ea | 14999 | LTLIBAPR=`$apr_config --link-libtool` |
9c60689e | 15000 | |
632b71ea DWT |
15001 | ;; #( |
15002 | *) : | |
15003 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
15004 | esac | |
15005 | ||
15006 | ||
5053a6d1 DWT |
15007 | # Check whether --enable-javascript was given. |
15008 | if test "${enable_javascript+set}" = set; then : | |
15009 | enableval=$enable_javascript; | |
15010 | case $enableval in #( | |
15011 | yes) : | |
9c60689e DWT |
15012 | |
15013 | ||
9c60689e | 15014 | |
5053a6d1 DWT |
15015 | pkg_failed=no |
15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15017 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15018 | ||
1504c9b8 DWT |
15019 | if test -n "$PKG_CONFIG"; then |
15020 | if test -n "$WEBKIT_CFLAGS"; then | |
15021 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15022 | else | |
15023 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15025 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15026 | ac_status=$? | |
15027 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15028 | test $ac_status = 0; }; then | |
15029 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
9c60689e | 15030 | else |
5053a6d1 | 15031 | pkg_failed=yes |
9c60689e | 15032 | fi |
1504c9b8 DWT |
15033 | fi |
15034 | else | |
15035 | pkg_failed=untried | |
632b71ea | 15036 | fi |
1504c9b8 DWT |
15037 | if test -n "$PKG_CONFIG"; then |
15038 | if test -n "$WEBKIT_LIBS"; then | |
15039 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15040 | else | |
15041 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15042 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15043 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15044 | ac_status=$? | |
15045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15046 | test $ac_status = 0; }; then | |
15047 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
9c60689e | 15048 | else |
5053a6d1 | 15049 | pkg_failed=yes |
9c60689e | 15050 | fi |
1504c9b8 DWT |
15051 | fi |
15052 | else | |
15053 | pkg_failed=untried | |
9c60689e DWT |
15054 | fi |
15055 | ||
15056 | ||
15057 | ||
5053a6d1 | 15058 | if test $pkg_failed = yes; then |
9c60689e | 15059 | |
5053a6d1 DWT |
15060 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
15061 | _pkg_short_errors_supported=yes | |
9c60689e | 15062 | else |
5053a6d1 DWT |
15063 | _pkg_short_errors_supported=no |
15064 | fi | |
15065 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15066 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` |
5053a6d1 | 15067 | else |
1504c9b8 | 15068 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` |
5053a6d1 DWT |
15069 | fi |
15070 | # Put the nasty error message in config.log where it belongs | |
15071 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
632b71ea | 15072 | |
5053a6d1 DWT |
15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15074 | $as_echo "no" >&6; } | |
15075 | ||
15076 | ||
15077 | pkg_failed=no | |
15078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15079 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 15080 | |
1504c9b8 DWT |
15081 | if test -n "$PKG_CONFIG"; then |
15082 | if test -n "$WEBKIT_CFLAGS"; then | |
15083 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15084 | else | |
15085 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15086 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15087 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15088 | ac_status=$? | |
15089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15090 | test $ac_status = 0; }; then | |
15091 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15092 | else | |
15093 | pkg_failed=yes | |
9c60689e | 15094 | fi |
1504c9b8 DWT |
15095 | fi |
15096 | else | |
15097 | pkg_failed=untried | |
5053a6d1 | 15098 | fi |
1504c9b8 DWT |
15099 | if test -n "$PKG_CONFIG"; then |
15100 | if test -n "$WEBKIT_LIBS"; then | |
15101 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15102 | else | |
15103 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15104 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15105 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15106 | ac_status=$? | |
15107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15108 | test $ac_status = 0; }; then | |
15109 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15110 | else | |
15111 | pkg_failed=yes | |
15112 | fi | |
1504c9b8 DWT |
15113 | fi |
15114 | else | |
15115 | pkg_failed=untried | |
632b71ea DWT |
15116 | fi |
15117 | ||
15118 | ||
15119 | ||
5053a6d1 DWT |
15120 | if test $pkg_failed = yes; then |
15121 | ||
15122 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15123 | _pkg_short_errors_supported=yes | |
15124 | else | |
15125 | _pkg_short_errors_supported=no | |
15126 | fi | |
15127 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15128 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 | 15129 | else |
1504c9b8 | 15130 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 DWT |
15131 | fi |
15132 | # Put the nasty error message in config.log where it belongs | |
15133 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15134 | ||
15135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15136 | $as_echo "no" >&6; } | |
15137 | ||
632b71ea | 15138 | |
5053a6d1 DWT |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
15140 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15141 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15142 | $as_echo_n "(cached) " >&6 | |
15143 | else | |
632b71ea | 15144 | |
5053a6d1 DWT |
15145 | ac_check_framework_save_LIBS=$LIBS |
15146 | LIBS="-framework JavaScriptCore $LIBS" | |
15147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15148 | /* end confdefs.h. */ | |
632b71ea | 15149 | |
5053a6d1 | 15150 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 15151 | |
5053a6d1 DWT |
15152 | int |
15153 | main () | |
15154 | { | |
15155 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15156 | ; | |
15157 | return 0; | |
15158 | } | |
15159 | _ACEOF | |
15160 | if ac_fn_cxx_try_link "$LINENO"; then : | |
632b71ea | 15161 | |
5053a6d1 | 15162 | ac_cv_framework_JavaScriptCore=yes |
632b71ea | 15163 | |
5053a6d1 DWT |
15164 | else |
15165 | ac_cv_framework_JavaScriptCore=no | |
15166 | fi | |
15167 | rm -f core conftest.err conftest.$ac_objext \ | |
15168 | conftest$ac_exeext conftest.$ac_ext | |
15169 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 15170 | |
5053a6d1 DWT |
15171 | fi |
15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15173 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15174 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
632b71ea DWT |
15175 | |
15176 | ||
5053a6d1 DWT |
15177 | for element in "-framework JavaScriptCore $LIBS"; do |
15178 | haveit= | |
15179 | for x in $LIBS; do | |
632b71ea DWT |
15180 | |
15181 | acl_save_prefix="$prefix" | |
15182 | prefix="$acl_final_prefix" | |
15183 | acl_save_exec_prefix="$exec_prefix" | |
15184 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 15185 | eval x=\"$x\" |
632b71ea DWT |
15186 | exec_prefix="$acl_save_exec_prefix" |
15187 | prefix="$acl_save_prefix" | |
15188 | ||
5053a6d1 DWT |
15189 | if test "X$x" = "X$element"; then |
15190 | haveit=yes | |
15191 | break | |
15192 | fi | |
15193 | done | |
15194 | if test -z "$haveit"; then | |
15195 | LIBS="${LIBS}${LIBS:+ }$element" | |
15196 | fi | |
15197 | done | |
15198 | ||
15199 | CY_EXECUTE=1 | |
632b71ea | 15200 | |
5053a6d1 DWT |
15201 | fi |
15202 | ||
15203 | elif test $pkg_failed = untried; then | |
15204 | ||
15205 | ||
15206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15207 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15208 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15209 | $as_echo_n "(cached) " >&6 | |
15210 | else | |
15211 | ||
15212 | ac_check_framework_save_LIBS=$LIBS | |
15213 | LIBS="-framework JavaScriptCore $LIBS" | |
15214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15215 | /* end confdefs.h. */ | |
15216 | ||
15217 | #include <JavaScriptCore/JSBase.h> | |
15218 | ||
15219 | int | |
15220 | main () | |
15221 | { | |
15222 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15223 | ; | |
15224 | return 0; | |
15225 | } | |
15226 | _ACEOF | |
15227 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15228 | ||
15229 | ac_cv_framework_JavaScriptCore=yes | |
15230 | ||
15231 | else | |
15232 | ac_cv_framework_JavaScriptCore=no | |
15233 | fi | |
15234 | rm -f core conftest.err conftest.$ac_objext \ | |
15235 | conftest$ac_exeext conftest.$ac_ext | |
15236 | LIBS=$ac_check_framework_save_LIBS | |
15237 | ||
15238 | fi | |
15239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15240 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15241 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15242 | ||
15243 | ||
15244 | for element in "-framework JavaScriptCore $LIBS"; do | |
15245 | haveit= | |
15246 | for x in $LIBS; do | |
632b71ea DWT |
15247 | |
15248 | acl_save_prefix="$prefix" | |
15249 | prefix="$acl_final_prefix" | |
15250 | acl_save_exec_prefix="$exec_prefix" | |
15251 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
15252 | eval x=\"$x\" |
15253 | exec_prefix="$acl_save_exec_prefix" | |
15254 | prefix="$acl_save_prefix" | |
632b71ea | 15255 | |
5053a6d1 DWT |
15256 | if test "X$x" = "X$element"; then |
15257 | haveit=yes | |
15258 | break | |
15259 | fi | |
15260 | done | |
15261 | if test -z "$haveit"; then | |
15262 | LIBS="${LIBS}${LIBS:+ }$element" | |
15263 | fi | |
15264 | done | |
15265 | ||
15266 | CY_EXECUTE=1 | |
15267 | ||
15268 | fi | |
15269 | ||
15270 | else | |
15271 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15272 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15274 | $as_echo "yes" >&6; } | |
15275 | ||
15276 | CY_EXECUTE=1 | |
15277 | ||
15278 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15279 | haveit= | |
15280 | for x in $CXXFLAGS; do | |
632b71ea | 15281 | |
5053a6d1 DWT |
15282 | acl_save_prefix="$prefix" |
15283 | prefix="$acl_final_prefix" | |
15284 | acl_save_exec_prefix="$exec_prefix" | |
15285 | exec_prefix="$acl_final_exec_prefix" | |
15286 | eval x=\"$x\" | |
632b71ea DWT |
15287 | exec_prefix="$acl_save_exec_prefix" |
15288 | prefix="$acl_save_prefix" | |
15289 | ||
5053a6d1 DWT |
15290 | if test "X$x" = "X$element"; then |
15291 | haveit=yes | |
15292 | break | |
632b71ea | 15293 | fi |
5053a6d1 DWT |
15294 | done |
15295 | if test -z "$haveit"; then | |
15296 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
632b71ea | 15297 | fi |
5053a6d1 | 15298 | done |
632b71ea | 15299 | |
632b71ea | 15300 | |
5053a6d1 DWT |
15301 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
15302 | haveit= | |
15303 | for x in $LIBS; do | |
632b71ea DWT |
15304 | |
15305 | acl_save_prefix="$prefix" | |
15306 | prefix="$acl_final_prefix" | |
15307 | acl_save_exec_prefix="$exec_prefix" | |
15308 | exec_prefix="$acl_final_exec_prefix" | |
15309 | eval x=\"$x\" | |
15310 | exec_prefix="$acl_save_exec_prefix" | |
15311 | prefix="$acl_save_prefix" | |
15312 | ||
5053a6d1 DWT |
15313 | if test "X$x" = "X$element"; then |
15314 | haveit=yes | |
15315 | break | |
15316 | fi | |
15317 | done | |
15318 | if test -z "$haveit"; then | |
15319 | LIBS="${LIBS}${LIBS:+ }$element" | |
15320 | fi | |
15321 | done | |
632b71ea | 15322 | |
632b71ea | 15323 | |
5053a6d1 | 15324 | fi |
632b71ea | 15325 | |
5053a6d1 | 15326 | elif test $pkg_failed = untried; then |
632b71ea | 15327 | |
632b71ea | 15328 | |
5053a6d1 DWT |
15329 | pkg_failed=no |
15330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15331 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 15332 | |
1504c9b8 DWT |
15333 | if test -n "$PKG_CONFIG"; then |
15334 | if test -n "$WEBKIT_CFLAGS"; then | |
15335 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15336 | else | |
15337 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15338 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15339 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15340 | ac_status=$? | |
15341 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15342 | test $ac_status = 0; }; then | |
15343 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15344 | else | |
15345 | pkg_failed=yes | |
15346 | fi | |
1504c9b8 DWT |
15347 | fi |
15348 | else | |
15349 | pkg_failed=untried | |
5053a6d1 | 15350 | fi |
1504c9b8 DWT |
15351 | if test -n "$PKG_CONFIG"; then |
15352 | if test -n "$WEBKIT_LIBS"; then | |
15353 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15354 | else | |
15355 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15356 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15357 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15358 | ac_status=$? | |
15359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15360 | test $ac_status = 0; }; then | |
15361 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15362 | else | |
15363 | pkg_failed=yes | |
15364 | fi | |
1504c9b8 DWT |
15365 | fi |
15366 | else | |
15367 | pkg_failed=untried | |
5053a6d1 | 15368 | fi |
9c60689e | 15369 | |
9c60689e DWT |
15370 | |
15371 | ||
5053a6d1 DWT |
15372 | if test $pkg_failed = yes; then |
15373 | ||
15374 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15375 | _pkg_short_errors_supported=yes | |
15376 | else | |
15377 | _pkg_short_errors_supported=no | |
15378 | fi | |
15379 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15380 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 | 15381 | else |
1504c9b8 | 15382 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 DWT |
15383 | fi |
15384 | # Put the nasty error message in config.log where it belongs | |
15385 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15386 | ||
15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15388 | $as_echo "no" >&6; } | |
9c60689e | 15389 | |
9c60689e | 15390 | |
5053a6d1 DWT |
15391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
15392 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15393 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15394 | $as_echo_n "(cached) " >&6 | |
15395 | else | |
9c60689e | 15396 | |
5053a6d1 DWT |
15397 | ac_check_framework_save_LIBS=$LIBS |
15398 | LIBS="-framework JavaScriptCore $LIBS" | |
15399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15400 | /* end confdefs.h. */ | |
9c60689e | 15401 | |
5053a6d1 | 15402 | #include <JavaScriptCore/JSBase.h> |
9c60689e | 15403 | |
5053a6d1 DWT |
15404 | int |
15405 | main () | |
15406 | { | |
15407 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15408 | ; | |
15409 | return 0; | |
15410 | } | |
15411 | _ACEOF | |
15412 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15413 | ||
15414 | ac_cv_framework_JavaScriptCore=yes | |
15415 | ||
15416 | else | |
15417 | ac_cv_framework_JavaScriptCore=no | |
15418 | fi | |
15419 | rm -f core conftest.err conftest.$ac_objext \ | |
15420 | conftest$ac_exeext conftest.$ac_ext | |
15421 | LIBS=$ac_check_framework_save_LIBS | |
15422 | ||
15423 | fi | |
15424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15425 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15426 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15427 | ||
15428 | ||
15429 | for element in "-framework JavaScriptCore $LIBS"; do | |
632b71ea | 15430 | haveit= |
5053a6d1 | 15431 | for x in $LIBS; do |
9c60689e | 15432 | |
632b71ea DWT |
15433 | acl_save_prefix="$prefix" |
15434 | prefix="$acl_final_prefix" | |
15435 | acl_save_exec_prefix="$exec_prefix" | |
15436 | exec_prefix="$acl_final_exec_prefix" | |
15437 | eval x=\"$x\" | |
15438 | exec_prefix="$acl_save_exec_prefix" | |
15439 | prefix="$acl_save_prefix" | |
15440 | ||
15441 | if test "X$x" = "X$element"; then | |
15442 | haveit=yes | |
15443 | break | |
15444 | fi | |
15445 | done | |
15446 | if test -z "$haveit"; then | |
5053a6d1 | 15447 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
15448 | fi |
15449 | done | |
b128dfee | 15450 | |
5053a6d1 DWT |
15451 | CY_EXECUTE=1 |
15452 | ||
15453 | fi | |
c823f118 | 15454 | |
5053a6d1 DWT |
15455 | elif test $pkg_failed = untried; then |
15456 | ||
15457 | ||
15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15459 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15460 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
c823f118 DWT |
15461 | $as_echo_n "(cached) " >&6 |
15462 | else | |
15463 | ||
5053a6d1 DWT |
15464 | ac_check_framework_save_LIBS=$LIBS |
15465 | LIBS="-framework JavaScriptCore $LIBS" | |
15466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 15467 | /* end confdefs.h. */ |
5053a6d1 DWT |
15468 | |
15469 | #include <JavaScriptCore/JSBase.h> | |
15470 | ||
632b71ea DWT |
15471 | int |
15472 | main () | |
15473 | { | |
5053a6d1 | 15474 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
632b71ea DWT |
15475 | ; |
15476 | return 0; | |
15477 | } | |
15478 | _ACEOF | |
5053a6d1 DWT |
15479 | if ac_fn_cxx_try_link "$LINENO"; then : |
15480 | ||
15481 | ac_cv_framework_JavaScriptCore=yes | |
15482 | ||
15483 | else | |
15484 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
15485 | fi |
15486 | rm -f core conftest.err conftest.$ac_objext \ | |
15487 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 15488 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 15489 | |
c823f118 | 15490 | fi |
5053a6d1 DWT |
15491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
15492 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15493 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
15494 | |
15495 | ||
5053a6d1 DWT |
15496 | for element in "-framework JavaScriptCore $LIBS"; do |
15497 | haveit= | |
15498 | for x in $LIBS; do | |
15499 | ||
15500 | acl_save_prefix="$prefix" | |
15501 | prefix="$acl_final_prefix" | |
15502 | acl_save_exec_prefix="$exec_prefix" | |
15503 | exec_prefix="$acl_final_exec_prefix" | |
15504 | eval x=\"$x\" | |
15505 | exec_prefix="$acl_save_exec_prefix" | |
15506 | prefix="$acl_save_prefix" | |
15507 | ||
15508 | if test "X$x" = "X$element"; then | |
15509 | haveit=yes | |
15510 | break | |
15511 | fi | |
15512 | done | |
15513 | if test -z "$haveit"; then | |
15514 | LIBS="${LIBS}${LIBS:+ }$element" | |
15515 | fi | |
15516 | done | |
c823f118 | 15517 | |
5053a6d1 | 15518 | CY_EXECUTE=1 |
b128dfee | 15519 | |
632b71ea | 15520 | fi |
c823f118 | 15521 | |
5053a6d1 DWT |
15522 | else |
15523 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15524 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15526 | $as_echo "yes" >&6; } | |
c823f118 | 15527 | |
5053a6d1 | 15528 | CY_EXECUTE=1 |
b128dfee | 15529 | |
5053a6d1 DWT |
15530 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do |
15531 | haveit= | |
15532 | for x in $CXXFLAGS; do | |
b128dfee | 15533 | |
5053a6d1 DWT |
15534 | acl_save_prefix="$prefix" |
15535 | prefix="$acl_final_prefix" | |
15536 | acl_save_exec_prefix="$exec_prefix" | |
15537 | exec_prefix="$acl_final_exec_prefix" | |
15538 | eval x=\"$x\" | |
15539 | exec_prefix="$acl_save_exec_prefix" | |
15540 | prefix="$acl_save_prefix" | |
c823f118 | 15541 | |
5053a6d1 DWT |
15542 | if test "X$x" = "X$element"; then |
15543 | haveit=yes | |
15544 | break | |
15545 | fi | |
15546 | done | |
15547 | if test -z "$haveit"; then | |
15548 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15549 | fi | |
15550 | done | |
c823f118 | 15551 | |
c823f118 | 15552 | |
5053a6d1 DWT |
15553 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
15554 | haveit= | |
15555 | for x in $LIBS; do | |
15556 | ||
15557 | acl_save_prefix="$prefix" | |
15558 | prefix="$acl_final_prefix" | |
15559 | acl_save_exec_prefix="$exec_prefix" | |
15560 | exec_prefix="$acl_final_exec_prefix" | |
15561 | eval x=\"$x\" | |
15562 | exec_prefix="$acl_save_exec_prefix" | |
15563 | prefix="$acl_save_prefix" | |
15564 | ||
15565 | if test "X$x" = "X$element"; then | |
15566 | haveit=yes | |
15567 | break | |
15568 | fi | |
15569 | done | |
15570 | if test -z "$haveit"; then | |
15571 | LIBS="${LIBS}${LIBS:+ }$element" | |
15572 | fi | |
15573 | done | |
c823f118 | 15574 | |
632b71ea | 15575 | |
b128dfee DWT |
15576 | fi |
15577 | ||
5053a6d1 DWT |
15578 | else |
15579 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15580 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15582 | $as_echo "yes" >&6; } | |
b128dfee | 15583 | |
5053a6d1 | 15584 | CY_EXECUTE=1 |
c823f118 | 15585 | |
5053a6d1 DWT |
15586 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do |
15587 | haveit= | |
15588 | for x in $CXXFLAGS; do | |
c823f118 | 15589 | |
5053a6d1 DWT |
15590 | acl_save_prefix="$prefix" |
15591 | prefix="$acl_final_prefix" | |
15592 | acl_save_exec_prefix="$exec_prefix" | |
15593 | exec_prefix="$acl_final_exec_prefix" | |
15594 | eval x=\"$x\" | |
15595 | exec_prefix="$acl_save_exec_prefix" | |
15596 | prefix="$acl_save_prefix" | |
c823f118 | 15597 | |
5053a6d1 DWT |
15598 | if test "X$x" = "X$element"; then |
15599 | haveit=yes | |
15600 | break | |
15601 | fi | |
15602 | done | |
15603 | if test -z "$haveit"; then | |
15604 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15605 | fi | |
15606 | done | |
c823f118 | 15607 | |
b66977f1 | 15608 | |
5053a6d1 DWT |
15609 | for element in `$PKG_CONFIG --libs webkit-1.0`; do |
15610 | haveit= | |
15611 | for x in $LIBS; do | |
15612 | ||
15613 | acl_save_prefix="$prefix" | |
15614 | prefix="$acl_final_prefix" | |
15615 | acl_save_exec_prefix="$exec_prefix" | |
15616 | exec_prefix="$acl_final_exec_prefix" | |
15617 | eval x=\"$x\" | |
15618 | exec_prefix="$acl_save_exec_prefix" | |
15619 | prefix="$acl_save_prefix" | |
15620 | ||
15621 | if test "X$x" = "X$element"; then | |
15622 | haveit=yes | |
15623 | break | |
15624 | fi | |
15625 | done | |
15626 | if test -z "$haveit"; then | |
15627 | LIBS="${LIBS}${LIBS:+ }$element" | |
15628 | fi | |
15629 | done | |
15630 | ||
15631 | ||
15632 | fi | |
15633 | ||
15634 | ;; #( | |
15635 | no) : | |
15636 | ||
15637 | CY_EXECUTE=0 | |
15638 | ||
15639 | ;; #( | |
15640 | JavaScriptCore) : | |
b66977f1 DWT |
15641 | |
15642 | ||
15643 | ||
15644 | pkg_failed=no | |
15645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15646 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15647 | ||
1504c9b8 DWT |
15648 | if test -n "$PKG_CONFIG"; then |
15649 | if test -n "$WEBKIT_CFLAGS"; then | |
15650 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15651 | else | |
15652 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15653 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15654 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15655 | ac_status=$? | |
15656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15657 | test $ac_status = 0; }; then | |
15658 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15659 | else | |
15660 | pkg_failed=yes | |
15661 | fi | |
1504c9b8 DWT |
15662 | fi |
15663 | else | |
15664 | pkg_failed=untried | |
b66977f1 | 15665 | fi |
1504c9b8 DWT |
15666 | if test -n "$PKG_CONFIG"; then |
15667 | if test -n "$WEBKIT_LIBS"; then | |
15668 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15669 | else | |
15670 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15671 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15672 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15673 | ac_status=$? | |
15674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15675 | test $ac_status = 0; }; then | |
15676 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15677 | else | |
15678 | pkg_failed=yes | |
15679 | fi | |
1504c9b8 DWT |
15680 | fi |
15681 | else | |
15682 | pkg_failed=untried | |
b66977f1 DWT |
15683 | fi |
15684 | ||
15685 | ||
15686 | ||
15687 | if test $pkg_failed = yes; then | |
15688 | ||
15689 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15690 | _pkg_short_errors_supported=yes | |
15691 | else | |
15692 | _pkg_short_errors_supported=no | |
15693 | fi | |
15694 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15695 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 | 15696 | else |
1504c9b8 | 15697 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 DWT |
15698 | fi |
15699 | # Put the nasty error message in config.log where it belongs | |
15700 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15701 | ||
15702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15703 | $as_echo "no" >&6; } | |
15704 | ||
15705 | ||
15706 | pkg_failed=no | |
15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15708 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15709 | ||
1504c9b8 DWT |
15710 | if test -n "$PKG_CONFIG"; then |
15711 | if test -n "$WEBKIT_CFLAGS"; then | |
15712 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15713 | else | |
15714 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15715 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15716 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15717 | ac_status=$? | |
15718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15719 | test $ac_status = 0; }; then | |
15720 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15721 | else | |
15722 | pkg_failed=yes | |
15723 | fi | |
1504c9b8 DWT |
15724 | fi |
15725 | else | |
15726 | pkg_failed=untried | |
b66977f1 | 15727 | fi |
1504c9b8 DWT |
15728 | if test -n "$PKG_CONFIG"; then |
15729 | if test -n "$WEBKIT_LIBS"; then | |
15730 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15731 | else | |
15732 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15734 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15735 | ac_status=$? | |
15736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15737 | test $ac_status = 0; }; then | |
15738 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15739 | else | |
15740 | pkg_failed=yes | |
15741 | fi | |
1504c9b8 DWT |
15742 | fi |
15743 | else | |
15744 | pkg_failed=untried | |
b66977f1 DWT |
15745 | fi |
15746 | ||
15747 | ||
15748 | ||
15749 | if test $pkg_failed = yes; then | |
15750 | ||
15751 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15752 | _pkg_short_errors_supported=yes | |
15753 | else | |
15754 | _pkg_short_errors_supported=no | |
15755 | fi | |
15756 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15757 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 15758 | else |
1504c9b8 | 15759 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
15760 | fi |
15761 | # Put the nasty error message in config.log where it belongs | |
15762 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15763 | ||
15764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15765 | $as_echo "no" >&6; } | |
15766 | ||
15767 | ||
15768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15769 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15770 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15771 | $as_echo_n "(cached) " >&6 | |
15772 | else | |
15773 | ||
15774 | ac_check_framework_save_LIBS=$LIBS | |
15775 | LIBS="-framework JavaScriptCore $LIBS" | |
15776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15777 | /* end confdefs.h. */ | |
15778 | ||
15779 | #include <JavaScriptCore/JSBase.h> | |
15780 | ||
15781 | int | |
15782 | main () | |
15783 | { | |
15784 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15785 | ; | |
15786 | return 0; | |
15787 | } | |
15788 | _ACEOF | |
15789 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15790 | ||
15791 | ac_cv_framework_JavaScriptCore=yes | |
15792 | ||
15793 | else | |
15794 | ac_cv_framework_JavaScriptCore=no | |
15795 | fi | |
15796 | rm -f core conftest.err conftest.$ac_objext \ | |
15797 | conftest$ac_exeext conftest.$ac_ext | |
15798 | LIBS=$ac_check_framework_save_LIBS | |
15799 | ||
15800 | fi | |
15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15802 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15803 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15804 | ||
15805 | ||
15806 | for element in "-framework JavaScriptCore $LIBS"; do | |
15807 | haveit= | |
15808 | for x in $LIBS; do | |
15809 | ||
15810 | acl_save_prefix="$prefix" | |
15811 | prefix="$acl_final_prefix" | |
15812 | acl_save_exec_prefix="$exec_prefix" | |
15813 | exec_prefix="$acl_final_exec_prefix" | |
15814 | eval x=\"$x\" | |
15815 | exec_prefix="$acl_save_exec_prefix" | |
15816 | prefix="$acl_save_prefix" | |
15817 | ||
15818 | if test "X$x" = "X$element"; then | |
15819 | haveit=yes | |
15820 | break | |
15821 | fi | |
15822 | done | |
15823 | if test -z "$haveit"; then | |
15824 | LIBS="${LIBS}${LIBS:+ }$element" | |
15825 | fi | |
15826 | done | |
15827 | ||
15828 | CY_EXECUTE=1 | |
15829 | ||
15830 | fi | |
15831 | ||
15832 | elif test $pkg_failed = untried; then | |
15833 | ||
15834 | ||
15835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15836 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15837 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15838 | $as_echo_n "(cached) " >&6 | |
15839 | else | |
15840 | ||
15841 | ac_check_framework_save_LIBS=$LIBS | |
15842 | LIBS="-framework JavaScriptCore $LIBS" | |
15843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15844 | /* end confdefs.h. */ | |
15845 | ||
15846 | #include <JavaScriptCore/JSBase.h> | |
15847 | ||
15848 | int | |
15849 | main () | |
15850 | { | |
15851 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15852 | ; | |
15853 | return 0; | |
15854 | } | |
15855 | _ACEOF | |
15856 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15857 | ||
15858 | ac_cv_framework_JavaScriptCore=yes | |
15859 | ||
15860 | else | |
15861 | ac_cv_framework_JavaScriptCore=no | |
15862 | fi | |
15863 | rm -f core conftest.err conftest.$ac_objext \ | |
15864 | conftest$ac_exeext conftest.$ac_ext | |
15865 | LIBS=$ac_check_framework_save_LIBS | |
15866 | ||
15867 | fi | |
15868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15869 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15870 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15871 | ||
15872 | ||
15873 | for element in "-framework JavaScriptCore $LIBS"; do | |
15874 | haveit= | |
15875 | for x in $LIBS; do | |
15876 | ||
15877 | acl_save_prefix="$prefix" | |
15878 | prefix="$acl_final_prefix" | |
15879 | acl_save_exec_prefix="$exec_prefix" | |
15880 | exec_prefix="$acl_final_exec_prefix" | |
15881 | eval x=\"$x\" | |
15882 | exec_prefix="$acl_save_exec_prefix" | |
15883 | prefix="$acl_save_prefix" | |
15884 | ||
15885 | if test "X$x" = "X$element"; then | |
15886 | haveit=yes | |
15887 | break | |
15888 | fi | |
15889 | done | |
15890 | if test -z "$haveit"; then | |
15891 | LIBS="${LIBS}${LIBS:+ }$element" | |
15892 | fi | |
15893 | done | |
15894 | ||
15895 | CY_EXECUTE=1 | |
15896 | ||
15897 | fi | |
15898 | ||
15899 | else | |
15900 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15901 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15903 | $as_echo "yes" >&6; } | |
15904 | ||
15905 | CY_EXECUTE=1 | |
15906 | ||
15907 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15908 | haveit= | |
15909 | for x in $CXXFLAGS; do | |
15910 | ||
15911 | acl_save_prefix="$prefix" | |
15912 | prefix="$acl_final_prefix" | |
15913 | acl_save_exec_prefix="$exec_prefix" | |
15914 | exec_prefix="$acl_final_exec_prefix" | |
15915 | eval x=\"$x\" | |
15916 | exec_prefix="$acl_save_exec_prefix" | |
15917 | prefix="$acl_save_prefix" | |
15918 | ||
15919 | if test "X$x" = "X$element"; then | |
15920 | haveit=yes | |
15921 | break | |
15922 | fi | |
15923 | done | |
15924 | if test -z "$haveit"; then | |
15925 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15926 | fi | |
15927 | done | |
15928 | ||
15929 | ||
15930 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15931 | haveit= | |
15932 | for x in $LIBS; do | |
15933 | ||
15934 | acl_save_prefix="$prefix" | |
15935 | prefix="$acl_final_prefix" | |
15936 | acl_save_exec_prefix="$exec_prefix" | |
15937 | exec_prefix="$acl_final_exec_prefix" | |
15938 | eval x=\"$x\" | |
15939 | exec_prefix="$acl_save_exec_prefix" | |
15940 | prefix="$acl_save_prefix" | |
15941 | ||
15942 | if test "X$x" = "X$element"; then | |
15943 | haveit=yes | |
15944 | break | |
15945 | fi | |
15946 | done | |
15947 | if test -z "$haveit"; then | |
15948 | LIBS="${LIBS}${LIBS:+ }$element" | |
15949 | fi | |
15950 | done | |
15951 | ||
15952 | ||
15953 | fi | |
15954 | ||
15955 | elif test $pkg_failed = untried; then | |
15956 | ||
15957 | ||
15958 | pkg_failed=no | |
15959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15960 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15961 | ||
1504c9b8 DWT |
15962 | if test -n "$PKG_CONFIG"; then |
15963 | if test -n "$WEBKIT_CFLAGS"; then | |
15964 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15965 | else | |
15966 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15967 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15968 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15969 | ac_status=$? | |
15970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15971 | test $ac_status = 0; }; then | |
15972 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15973 | else | |
15974 | pkg_failed=yes | |
15975 | fi | |
1504c9b8 DWT |
15976 | fi |
15977 | else | |
15978 | pkg_failed=untried | |
b66977f1 | 15979 | fi |
1504c9b8 DWT |
15980 | if test -n "$PKG_CONFIG"; then |
15981 | if test -n "$WEBKIT_LIBS"; then | |
15982 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15983 | else | |
15984 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15985 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15986 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15987 | ac_status=$? | |
15988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15989 | test $ac_status = 0; }; then | |
15990 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15991 | else | |
15992 | pkg_failed=yes | |
15993 | fi | |
1504c9b8 DWT |
15994 | fi |
15995 | else | |
15996 | pkg_failed=untried | |
b66977f1 DWT |
15997 | fi |
15998 | ||
15999 | ||
16000 | ||
16001 | if test $pkg_failed = yes; then | |
16002 | ||
16003 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16004 | _pkg_short_errors_supported=yes | |
16005 | else | |
16006 | _pkg_short_errors_supported=no | |
16007 | fi | |
16008 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16009 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 16010 | else |
1504c9b8 | 16011 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
16012 | fi |
16013 | # Put the nasty error message in config.log where it belongs | |
16014 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16015 | ||
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16017 | $as_echo "no" >&6; } | |
16018 | ||
16019 | ||
16020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16021 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16022 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16023 | $as_echo_n "(cached) " >&6 | |
16024 | else | |
16025 | ||
16026 | ac_check_framework_save_LIBS=$LIBS | |
16027 | LIBS="-framework JavaScriptCore $LIBS" | |
16028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16029 | /* end confdefs.h. */ | |
16030 | ||
16031 | #include <JavaScriptCore/JSBase.h> | |
16032 | ||
16033 | int | |
16034 | main () | |
16035 | { | |
16036 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16037 | ; | |
16038 | return 0; | |
16039 | } | |
16040 | _ACEOF | |
16041 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16042 | ||
16043 | ac_cv_framework_JavaScriptCore=yes | |
16044 | ||
16045 | else | |
16046 | ac_cv_framework_JavaScriptCore=no | |
16047 | fi | |
16048 | rm -f core conftest.err conftest.$ac_objext \ | |
16049 | conftest$ac_exeext conftest.$ac_ext | |
16050 | LIBS=$ac_check_framework_save_LIBS | |
16051 | ||
16052 | fi | |
16053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16054 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16055 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16056 | ||
16057 | ||
16058 | for element in "-framework JavaScriptCore $LIBS"; do | |
16059 | haveit= | |
16060 | for x in $LIBS; do | |
16061 | ||
16062 | acl_save_prefix="$prefix" | |
16063 | prefix="$acl_final_prefix" | |
16064 | acl_save_exec_prefix="$exec_prefix" | |
16065 | exec_prefix="$acl_final_exec_prefix" | |
16066 | eval x=\"$x\" | |
16067 | exec_prefix="$acl_save_exec_prefix" | |
16068 | prefix="$acl_save_prefix" | |
16069 | ||
16070 | if test "X$x" = "X$element"; then | |
16071 | haveit=yes | |
16072 | break | |
16073 | fi | |
16074 | done | |
16075 | if test -z "$haveit"; then | |
16076 | LIBS="${LIBS}${LIBS:+ }$element" | |
16077 | fi | |
16078 | done | |
16079 | ||
16080 | CY_EXECUTE=1 | |
16081 | ||
16082 | fi | |
16083 | ||
16084 | elif test $pkg_failed = untried; then | |
16085 | ||
16086 | ||
16087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16088 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16089 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16090 | $as_echo_n "(cached) " >&6 | |
16091 | else | |
16092 | ||
16093 | ac_check_framework_save_LIBS=$LIBS | |
16094 | LIBS="-framework JavaScriptCore $LIBS" | |
16095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16096 | /* end confdefs.h. */ | |
16097 | ||
16098 | #include <JavaScriptCore/JSBase.h> | |
16099 | ||
16100 | int | |
16101 | main () | |
16102 | { | |
16103 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16104 | ; | |
16105 | return 0; | |
16106 | } | |
16107 | _ACEOF | |
16108 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16109 | ||
16110 | ac_cv_framework_JavaScriptCore=yes | |
16111 | ||
16112 | else | |
16113 | ac_cv_framework_JavaScriptCore=no | |
16114 | fi | |
16115 | rm -f core conftest.err conftest.$ac_objext \ | |
16116 | conftest$ac_exeext conftest.$ac_ext | |
16117 | LIBS=$ac_check_framework_save_LIBS | |
16118 | ||
16119 | fi | |
16120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16121 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16122 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16123 | ||
16124 | ||
16125 | for element in "-framework JavaScriptCore $LIBS"; do | |
16126 | haveit= | |
16127 | for x in $LIBS; do | |
16128 | ||
16129 | acl_save_prefix="$prefix" | |
16130 | prefix="$acl_final_prefix" | |
16131 | acl_save_exec_prefix="$exec_prefix" | |
16132 | exec_prefix="$acl_final_exec_prefix" | |
16133 | eval x=\"$x\" | |
16134 | exec_prefix="$acl_save_exec_prefix" | |
16135 | prefix="$acl_save_prefix" | |
16136 | ||
16137 | if test "X$x" = "X$element"; then | |
16138 | haveit=yes | |
16139 | break | |
16140 | fi | |
16141 | done | |
16142 | if test -z "$haveit"; then | |
16143 | LIBS="${LIBS}${LIBS:+ }$element" | |
16144 | fi | |
16145 | done | |
16146 | ||
16147 | CY_EXECUTE=1 | |
16148 | ||
16149 | fi | |
16150 | ||
16151 | else | |
16152 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16153 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16155 | $as_echo "yes" >&6; } | |
16156 | ||
16157 | CY_EXECUTE=1 | |
16158 | ||
16159 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16160 | haveit= | |
16161 | for x in $CXXFLAGS; do | |
16162 | ||
16163 | acl_save_prefix="$prefix" | |
16164 | prefix="$acl_final_prefix" | |
16165 | acl_save_exec_prefix="$exec_prefix" | |
16166 | exec_prefix="$acl_final_exec_prefix" | |
16167 | eval x=\"$x\" | |
16168 | exec_prefix="$acl_save_exec_prefix" | |
16169 | prefix="$acl_save_prefix" | |
16170 | ||
16171 | if test "X$x" = "X$element"; then | |
16172 | haveit=yes | |
16173 | break | |
16174 | fi | |
16175 | done | |
16176 | if test -z "$haveit"; then | |
16177 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16178 | fi | |
16179 | done | |
16180 | ||
16181 | ||
16182 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16183 | haveit= | |
16184 | for x in $LIBS; do | |
16185 | ||
16186 | acl_save_prefix="$prefix" | |
16187 | prefix="$acl_final_prefix" | |
16188 | acl_save_exec_prefix="$exec_prefix" | |
16189 | exec_prefix="$acl_final_exec_prefix" | |
16190 | eval x=\"$x\" | |
16191 | exec_prefix="$acl_save_exec_prefix" | |
16192 | prefix="$acl_save_prefix" | |
16193 | ||
16194 | if test "X$x" = "X$element"; then | |
16195 | haveit=yes | |
16196 | break | |
16197 | fi | |
16198 | done | |
16199 | if test -z "$haveit"; then | |
16200 | LIBS="${LIBS}${LIBS:+ }$element" | |
16201 | fi | |
16202 | done | |
16203 | ||
16204 | ||
16205 | fi | |
16206 | ||
16207 | else | |
16208 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16209 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16211 | $as_echo "yes" >&6; } | |
16212 | ||
16213 | CY_EXECUTE=1 | |
16214 | ||
16215 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16216 | haveit= | |
16217 | for x in $CXXFLAGS; do | |
16218 | ||
16219 | acl_save_prefix="$prefix" | |
16220 | prefix="$acl_final_prefix" | |
16221 | acl_save_exec_prefix="$exec_prefix" | |
16222 | exec_prefix="$acl_final_exec_prefix" | |
16223 | eval x=\"$x\" | |
16224 | exec_prefix="$acl_save_exec_prefix" | |
16225 | prefix="$acl_save_prefix" | |
16226 | ||
16227 | if test "X$x" = "X$element"; then | |
16228 | haveit=yes | |
16229 | break | |
16230 | fi | |
16231 | done | |
16232 | if test -z "$haveit"; then | |
16233 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16234 | fi | |
16235 | done | |
16236 | ||
16237 | ||
16238 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16239 | haveit= | |
16240 | for x in $LIBS; do | |
16241 | ||
16242 | acl_save_prefix="$prefix" | |
16243 | prefix="$acl_final_prefix" | |
16244 | acl_save_exec_prefix="$exec_prefix" | |
16245 | exec_prefix="$acl_final_exec_prefix" | |
16246 | eval x=\"$x\" | |
16247 | exec_prefix="$acl_save_exec_prefix" | |
16248 | prefix="$acl_save_prefix" | |
16249 | ||
16250 | if test "X$x" = "X$element"; then | |
16251 | haveit=yes | |
16252 | break | |
16253 | fi | |
16254 | done | |
16255 | if test -z "$haveit"; then | |
16256 | LIBS="${LIBS}${LIBS:+ }$element" | |
16257 | fi | |
16258 | done | |
16259 | ||
16260 | ||
16261 | fi | |
16262 | ||
b66977f1 | 16263 | ;; #( |
5053a6d1 DWT |
16264 | *) : |
16265 | as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
16266 | esac | |
16267 | ||
16268 | else | |
b66977f1 DWT |
16269 | |
16270 | ||
16271 | ||
16272 | pkg_failed=no | |
16273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16274 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16275 | ||
1504c9b8 DWT |
16276 | if test -n "$PKG_CONFIG"; then |
16277 | if test -n "$WEBKIT_CFLAGS"; then | |
16278 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16279 | else | |
16280 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16281 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
16282 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16283 | ac_status=$? | |
16284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16285 | test $ac_status = 0; }; then | |
16286 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
16287 | else | |
16288 | pkg_failed=yes | |
16289 | fi | |
1504c9b8 DWT |
16290 | fi |
16291 | else | |
16292 | pkg_failed=untried | |
b66977f1 | 16293 | fi |
1504c9b8 DWT |
16294 | if test -n "$PKG_CONFIG"; then |
16295 | if test -n "$WEBKIT_LIBS"; then | |
16296 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16297 | else | |
16298 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16299 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
16300 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16301 | ac_status=$? | |
16302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16303 | test $ac_status = 0; }; then | |
16304 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
16305 | else | |
16306 | pkg_failed=yes | |
16307 | fi | |
1504c9b8 DWT |
16308 | fi |
16309 | else | |
16310 | pkg_failed=untried | |
b66977f1 DWT |
16311 | fi |
16312 | ||
16313 | ||
16314 | ||
16315 | if test $pkg_failed = yes; then | |
16316 | ||
16317 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16318 | _pkg_short_errors_supported=yes | |
16319 | else | |
16320 | _pkg_short_errors_supported=no | |
16321 | fi | |
16322 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16323 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 | 16324 | else |
1504c9b8 | 16325 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 DWT |
16326 | fi |
16327 | # Put the nasty error message in config.log where it belongs | |
16328 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16329 | ||
16330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16331 | $as_echo "no" >&6; } | |
16332 | ||
16333 | ||
16334 | pkg_failed=no | |
16335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16336 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16337 | ||
1504c9b8 DWT |
16338 | if test -n "$PKG_CONFIG"; then |
16339 | if test -n "$WEBKIT_CFLAGS"; then | |
16340 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16341 | else | |
16342 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16343 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16344 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16345 | ac_status=$? | |
16346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16347 | test $ac_status = 0; }; then | |
16348 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16349 | else | |
16350 | pkg_failed=yes | |
16351 | fi | |
1504c9b8 DWT |
16352 | fi |
16353 | else | |
16354 | pkg_failed=untried | |
b66977f1 | 16355 | fi |
1504c9b8 DWT |
16356 | if test -n "$PKG_CONFIG"; then |
16357 | if test -n "$WEBKIT_LIBS"; then | |
16358 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16359 | else | |
16360 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16361 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16362 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16363 | ac_status=$? | |
16364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16365 | test $ac_status = 0; }; then | |
16366 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16367 | else | |
16368 | pkg_failed=yes | |
16369 | fi | |
1504c9b8 DWT |
16370 | fi |
16371 | else | |
16372 | pkg_failed=untried | |
b66977f1 DWT |
16373 | fi |
16374 | ||
16375 | ||
16376 | ||
16377 | if test $pkg_failed = yes; then | |
16378 | ||
16379 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16380 | _pkg_short_errors_supported=yes | |
16381 | else | |
16382 | _pkg_short_errors_supported=no | |
16383 | fi | |
16384 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16385 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 16386 | else |
1504c9b8 | 16387 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
16388 | fi |
16389 | # Put the nasty error message in config.log where it belongs | |
16390 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16391 | ||
16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16393 | $as_echo "no" >&6; } | |
16394 | ||
16395 | ||
16396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16397 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16398 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16399 | $as_echo_n "(cached) " >&6 | |
16400 | else | |
16401 | ||
16402 | ac_check_framework_save_LIBS=$LIBS | |
16403 | LIBS="-framework JavaScriptCore $LIBS" | |
16404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16405 | /* end confdefs.h. */ | |
16406 | ||
16407 | #include <JavaScriptCore/JSBase.h> | |
16408 | ||
16409 | int | |
16410 | main () | |
16411 | { | |
16412 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16413 | ; | |
16414 | return 0; | |
16415 | } | |
16416 | _ACEOF | |
16417 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16418 | ||
16419 | ac_cv_framework_JavaScriptCore=yes | |
16420 | ||
16421 | else | |
16422 | ac_cv_framework_JavaScriptCore=no | |
16423 | fi | |
16424 | rm -f core conftest.err conftest.$ac_objext \ | |
16425 | conftest$ac_exeext conftest.$ac_ext | |
16426 | LIBS=$ac_check_framework_save_LIBS | |
16427 | ||
16428 | fi | |
16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16430 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16431 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16432 | ||
16433 | ||
16434 | for element in "-framework JavaScriptCore $LIBS"; do | |
16435 | haveit= | |
16436 | for x in $LIBS; do | |
16437 | ||
16438 | acl_save_prefix="$prefix" | |
16439 | prefix="$acl_final_prefix" | |
16440 | acl_save_exec_prefix="$exec_prefix" | |
16441 | exec_prefix="$acl_final_exec_prefix" | |
16442 | eval x=\"$x\" | |
16443 | exec_prefix="$acl_save_exec_prefix" | |
16444 | prefix="$acl_save_prefix" | |
16445 | ||
16446 | if test "X$x" = "X$element"; then | |
16447 | haveit=yes | |
16448 | break | |
16449 | fi | |
16450 | done | |
16451 | if test -z "$haveit"; then | |
16452 | LIBS="${LIBS}${LIBS:+ }$element" | |
16453 | fi | |
16454 | done | |
16455 | ||
16456 | CY_EXECUTE=1 | |
16457 | ||
16458 | fi | |
16459 | ||
16460 | elif test $pkg_failed = untried; then | |
16461 | ||
16462 | ||
16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16464 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16465 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16466 | $as_echo_n "(cached) " >&6 | |
16467 | else | |
16468 | ||
16469 | ac_check_framework_save_LIBS=$LIBS | |
16470 | LIBS="-framework JavaScriptCore $LIBS" | |
16471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16472 | /* end confdefs.h. */ | |
16473 | ||
16474 | #include <JavaScriptCore/JSBase.h> | |
16475 | ||
16476 | int | |
16477 | main () | |
16478 | { | |
16479 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16480 | ; | |
16481 | return 0; | |
16482 | } | |
16483 | _ACEOF | |
16484 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16485 | ||
16486 | ac_cv_framework_JavaScriptCore=yes | |
16487 | ||
16488 | else | |
16489 | ac_cv_framework_JavaScriptCore=no | |
16490 | fi | |
16491 | rm -f core conftest.err conftest.$ac_objext \ | |
16492 | conftest$ac_exeext conftest.$ac_ext | |
16493 | LIBS=$ac_check_framework_save_LIBS | |
16494 | ||
16495 | fi | |
16496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16497 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16498 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16499 | ||
16500 | ||
16501 | for element in "-framework JavaScriptCore $LIBS"; do | |
16502 | haveit= | |
16503 | for x in $LIBS; do | |
16504 | ||
16505 | acl_save_prefix="$prefix" | |
16506 | prefix="$acl_final_prefix" | |
16507 | acl_save_exec_prefix="$exec_prefix" | |
16508 | exec_prefix="$acl_final_exec_prefix" | |
16509 | eval x=\"$x\" | |
16510 | exec_prefix="$acl_save_exec_prefix" | |
16511 | prefix="$acl_save_prefix" | |
16512 | ||
16513 | if test "X$x" = "X$element"; then | |
16514 | haveit=yes | |
16515 | break | |
16516 | fi | |
16517 | done | |
16518 | if test -z "$haveit"; then | |
16519 | LIBS="${LIBS}${LIBS:+ }$element" | |
16520 | fi | |
16521 | done | |
16522 | ||
16523 | CY_EXECUTE=1 | |
16524 | ||
16525 | fi | |
16526 | ||
16527 | else | |
16528 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16529 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16531 | $as_echo "yes" >&6; } | |
16532 | ||
16533 | CY_EXECUTE=1 | |
16534 | ||
16535 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16536 | haveit= | |
16537 | for x in $CXXFLAGS; do | |
16538 | ||
16539 | acl_save_prefix="$prefix" | |
16540 | prefix="$acl_final_prefix" | |
16541 | acl_save_exec_prefix="$exec_prefix" | |
16542 | exec_prefix="$acl_final_exec_prefix" | |
16543 | eval x=\"$x\" | |
16544 | exec_prefix="$acl_save_exec_prefix" | |
16545 | prefix="$acl_save_prefix" | |
16546 | ||
16547 | if test "X$x" = "X$element"; then | |
16548 | haveit=yes | |
16549 | break | |
16550 | fi | |
16551 | done | |
16552 | if test -z "$haveit"; then | |
16553 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16554 | fi | |
16555 | done | |
16556 | ||
16557 | ||
16558 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16559 | haveit= | |
16560 | for x in $LIBS; do | |
16561 | ||
16562 | acl_save_prefix="$prefix" | |
16563 | prefix="$acl_final_prefix" | |
16564 | acl_save_exec_prefix="$exec_prefix" | |
16565 | exec_prefix="$acl_final_exec_prefix" | |
16566 | eval x=\"$x\" | |
16567 | exec_prefix="$acl_save_exec_prefix" | |
16568 | prefix="$acl_save_prefix" | |
16569 | ||
16570 | if test "X$x" = "X$element"; then | |
16571 | haveit=yes | |
16572 | break | |
16573 | fi | |
16574 | done | |
16575 | if test -z "$haveit"; then | |
16576 | LIBS="${LIBS}${LIBS:+ }$element" | |
16577 | fi | |
16578 | done | |
16579 | ||
16580 | ||
16581 | fi | |
16582 | ||
16583 | elif test $pkg_failed = untried; then | |
16584 | ||
16585 | ||
16586 | pkg_failed=no | |
16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16588 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16589 | ||
1504c9b8 DWT |
16590 | if test -n "$PKG_CONFIG"; then |
16591 | if test -n "$WEBKIT_CFLAGS"; then | |
16592 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16593 | else | |
16594 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16596 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16597 | ac_status=$? | |
16598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16599 | test $ac_status = 0; }; then | |
16600 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16601 | else | |
16602 | pkg_failed=yes | |
16603 | fi | |
1504c9b8 DWT |
16604 | fi |
16605 | else | |
16606 | pkg_failed=untried | |
b66977f1 | 16607 | fi |
1504c9b8 DWT |
16608 | if test -n "$PKG_CONFIG"; then |
16609 | if test -n "$WEBKIT_LIBS"; then | |
16610 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16611 | else | |
16612 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16613 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16614 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16615 | ac_status=$? | |
16616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16617 | test $ac_status = 0; }; then | |
16618 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16619 | else | |
16620 | pkg_failed=yes | |
16621 | fi | |
1504c9b8 DWT |
16622 | fi |
16623 | else | |
16624 | pkg_failed=untried | |
b66977f1 DWT |
16625 | fi |
16626 | ||
16627 | ||
16628 | ||
16629 | if test $pkg_failed = yes; then | |
16630 | ||
16631 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16632 | _pkg_short_errors_supported=yes | |
16633 | else | |
16634 | _pkg_short_errors_supported=no | |
16635 | fi | |
16636 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16637 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 16638 | else |
1504c9b8 | 16639 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
16640 | fi |
16641 | # Put the nasty error message in config.log where it belongs | |
16642 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16643 | ||
16644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16645 | $as_echo "no" >&6; } | |
16646 | ||
16647 | ||
16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16649 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16650 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16651 | $as_echo_n "(cached) " >&6 | |
16652 | else | |
16653 | ||
16654 | ac_check_framework_save_LIBS=$LIBS | |
16655 | LIBS="-framework JavaScriptCore $LIBS" | |
16656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16657 | /* end confdefs.h. */ | |
16658 | ||
16659 | #include <JavaScriptCore/JSBase.h> | |
16660 | ||
16661 | int | |
16662 | main () | |
16663 | { | |
16664 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16665 | ; | |
16666 | return 0; | |
16667 | } | |
16668 | _ACEOF | |
16669 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16670 | ||
16671 | ac_cv_framework_JavaScriptCore=yes | |
16672 | ||
16673 | else | |
16674 | ac_cv_framework_JavaScriptCore=no | |
16675 | fi | |
16676 | rm -f core conftest.err conftest.$ac_objext \ | |
16677 | conftest$ac_exeext conftest.$ac_ext | |
16678 | LIBS=$ac_check_framework_save_LIBS | |
16679 | ||
16680 | fi | |
16681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16682 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16683 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16684 | ||
16685 | ||
16686 | for element in "-framework JavaScriptCore $LIBS"; do | |
16687 | haveit= | |
16688 | for x in $LIBS; do | |
16689 | ||
16690 | acl_save_prefix="$prefix" | |
16691 | prefix="$acl_final_prefix" | |
16692 | acl_save_exec_prefix="$exec_prefix" | |
16693 | exec_prefix="$acl_final_exec_prefix" | |
16694 | eval x=\"$x\" | |
16695 | exec_prefix="$acl_save_exec_prefix" | |
16696 | prefix="$acl_save_prefix" | |
16697 | ||
16698 | if test "X$x" = "X$element"; then | |
16699 | haveit=yes | |
16700 | break | |
16701 | fi | |
16702 | done | |
16703 | if test -z "$haveit"; then | |
16704 | LIBS="${LIBS}${LIBS:+ }$element" | |
16705 | fi | |
16706 | done | |
16707 | ||
16708 | CY_EXECUTE=1 | |
16709 | ||
16710 | fi | |
16711 | ||
16712 | elif test $pkg_failed = untried; then | |
16713 | ||
16714 | ||
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16716 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16717 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16718 | $as_echo_n "(cached) " >&6 | |
16719 | else | |
16720 | ||
16721 | ac_check_framework_save_LIBS=$LIBS | |
16722 | LIBS="-framework JavaScriptCore $LIBS" | |
16723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16724 | /* end confdefs.h. */ | |
16725 | ||
16726 | #include <JavaScriptCore/JSBase.h> | |
16727 | ||
16728 | int | |
16729 | main () | |
16730 | { | |
16731 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16732 | ; | |
16733 | return 0; | |
16734 | } | |
16735 | _ACEOF | |
16736 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16737 | ||
16738 | ac_cv_framework_JavaScriptCore=yes | |
16739 | ||
16740 | else | |
16741 | ac_cv_framework_JavaScriptCore=no | |
16742 | fi | |
16743 | rm -f core conftest.err conftest.$ac_objext \ | |
16744 | conftest$ac_exeext conftest.$ac_ext | |
16745 | LIBS=$ac_check_framework_save_LIBS | |
16746 | ||
16747 | fi | |
16748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16749 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16750 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16751 | ||
16752 | ||
16753 | for element in "-framework JavaScriptCore $LIBS"; do | |
16754 | haveit= | |
16755 | for x in $LIBS; do | |
16756 | ||
16757 | acl_save_prefix="$prefix" | |
16758 | prefix="$acl_final_prefix" | |
16759 | acl_save_exec_prefix="$exec_prefix" | |
16760 | exec_prefix="$acl_final_exec_prefix" | |
16761 | eval x=\"$x\" | |
16762 | exec_prefix="$acl_save_exec_prefix" | |
16763 | prefix="$acl_save_prefix" | |
16764 | ||
16765 | if test "X$x" = "X$element"; then | |
16766 | haveit=yes | |
16767 | break | |
16768 | fi | |
16769 | done | |
16770 | if test -z "$haveit"; then | |
16771 | LIBS="${LIBS}${LIBS:+ }$element" | |
16772 | fi | |
16773 | done | |
16774 | ||
16775 | CY_EXECUTE=1 | |
16776 | ||
16777 | fi | |
16778 | ||
16779 | else | |
16780 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16781 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16783 | $as_echo "yes" >&6; } | |
16784 | ||
16785 | CY_EXECUTE=1 | |
16786 | ||
16787 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16788 | haveit= | |
16789 | for x in $CXXFLAGS; do | |
16790 | ||
16791 | acl_save_prefix="$prefix" | |
16792 | prefix="$acl_final_prefix" | |
16793 | acl_save_exec_prefix="$exec_prefix" | |
16794 | exec_prefix="$acl_final_exec_prefix" | |
16795 | eval x=\"$x\" | |
16796 | exec_prefix="$acl_save_exec_prefix" | |
16797 | prefix="$acl_save_prefix" | |
16798 | ||
16799 | if test "X$x" = "X$element"; then | |
16800 | haveit=yes | |
16801 | break | |
16802 | fi | |
16803 | done | |
16804 | if test -z "$haveit"; then | |
16805 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16806 | fi | |
16807 | done | |
16808 | ||
16809 | ||
16810 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16811 | haveit= | |
16812 | for x in $LIBS; do | |
16813 | ||
16814 | acl_save_prefix="$prefix" | |
16815 | prefix="$acl_final_prefix" | |
16816 | acl_save_exec_prefix="$exec_prefix" | |
16817 | exec_prefix="$acl_final_exec_prefix" | |
16818 | eval x=\"$x\" | |
16819 | exec_prefix="$acl_save_exec_prefix" | |
16820 | prefix="$acl_save_prefix" | |
16821 | ||
16822 | if test "X$x" = "X$element"; then | |
16823 | haveit=yes | |
16824 | break | |
16825 | fi | |
16826 | done | |
16827 | if test -z "$haveit"; then | |
16828 | LIBS="${LIBS}${LIBS:+ }$element" | |
16829 | fi | |
16830 | done | |
16831 | ||
16832 | ||
16833 | fi | |
16834 | ||
16835 | else | |
16836 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16837 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16839 | $as_echo "yes" >&6; } | |
16840 | ||
16841 | CY_EXECUTE=1 | |
16842 | ||
16843 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16844 | haveit= | |
16845 | for x in $CXXFLAGS; do | |
16846 | ||
16847 | acl_save_prefix="$prefix" | |
16848 | prefix="$acl_final_prefix" | |
16849 | acl_save_exec_prefix="$exec_prefix" | |
16850 | exec_prefix="$acl_final_exec_prefix" | |
16851 | eval x=\"$x\" | |
16852 | exec_prefix="$acl_save_exec_prefix" | |
16853 | prefix="$acl_save_prefix" | |
16854 | ||
16855 | if test "X$x" = "X$element"; then | |
16856 | haveit=yes | |
16857 | break | |
16858 | fi | |
16859 | done | |
16860 | if test -z "$haveit"; then | |
16861 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16862 | fi | |
16863 | done | |
16864 | ||
16865 | ||
16866 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16867 | haveit= | |
16868 | for x in $LIBS; do | |
16869 | ||
16870 | acl_save_prefix="$prefix" | |
16871 | prefix="$acl_final_prefix" | |
16872 | acl_save_exec_prefix="$exec_prefix" | |
16873 | exec_prefix="$acl_final_exec_prefix" | |
16874 | eval x=\"$x\" | |
16875 | exec_prefix="$acl_save_exec_prefix" | |
16876 | prefix="$acl_save_prefix" | |
16877 | ||
16878 | if test "X$x" = "X$element"; then | |
16879 | haveit=yes | |
16880 | break | |
16881 | fi | |
16882 | done | |
16883 | if test -z "$haveit"; then | |
16884 | LIBS="${LIBS}${LIBS:+ }$element" | |
16885 | fi | |
16886 | done | |
16887 | ||
16888 | ||
16889 | fi | |
5053a6d1 DWT |
16890 | |
16891 | ||
9c60689e DWT |
16892 | fi |
16893 | ||
5053a6d1 | 16894 | |
058f1bc8 | 16895 | |
e5cca37d | 16896 | |
5053a6d1 DWT |
16897 | case $CY_EXECUTE in #( |
16898 | 1) : | |
16899 | ||
9c60689e | 16900 | |
e5cca37d DWT |
16901 | for ac_header in ffi.h ffi/ffi.h |
16902 | do : | |
16903 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16904 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16905 | eval as_val=\$$as_ac_Header | |
16906 | if test "x$as_val" = x""yes; then : | |
16907 | cat >>confdefs.h <<_ACEOF | |
16908 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16909 | _ACEOF | |
16910 | break | |
16911 | fi | |
16912 | ||
16913 | done | |
16914 | ||
16915 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16916 | ||
16917 | ||
9c60689e DWT |
16918 | |
16919 | pkg_failed=no | |
5053a6d1 DWT |
16920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
16921 | $as_echo_n "checking for LIBFFI... " >&6; } | |
9c60689e | 16922 | |
1504c9b8 DWT |
16923 | if test -n "$PKG_CONFIG"; then |
16924 | if test -n "$LIBFFI_CFLAGS"; then | |
16925 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
16926 | else | |
16927 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
16928 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16929 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
16930 | ac_status=$? |
16931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16932 | test $ac_status = 0; }; then | |
5053a6d1 | 16933 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
9c60689e DWT |
16934 | else |
16935 | pkg_failed=yes | |
16936 | fi | |
1504c9b8 DWT |
16937 | fi |
16938 | else | |
16939 | pkg_failed=untried | |
9c60689e | 16940 | fi |
1504c9b8 DWT |
16941 | if test -n "$PKG_CONFIG"; then |
16942 | if test -n "$LIBFFI_LIBS"; then | |
16943 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
16944 | else | |
16945 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
16946 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16947 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
16948 | ac_status=$? |
16949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16950 | test $ac_status = 0; }; then | |
5053a6d1 | 16951 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
9c60689e DWT |
16952 | else |
16953 | pkg_failed=yes | |
16954 | fi | |
1504c9b8 DWT |
16955 | fi |
16956 | else | |
16957 | pkg_failed=untried | |
9c60689e DWT |
16958 | fi |
16959 | ||
16960 | ||
16961 | ||
16962 | if test $pkg_failed = yes; then | |
16963 | ||
16964 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16965 | _pkg_short_errors_supported=yes | |
16966 | else | |
16967 | _pkg_short_errors_supported=no | |
16968 | fi | |
16969 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16970 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` |
9c60689e | 16971 | else |
1504c9b8 | 16972 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` |
9c60689e DWT |
16973 | fi |
16974 | # Put the nasty error message in config.log where it belongs | |
5053a6d1 | 16975 | echo "$LIBFFI_PKG_ERRORS" >&5 |
9c60689e DWT |
16976 | |
16977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16978 | $as_echo "no" >&6; } | |
b128dfee | 16979 | |
e5cca37d | 16980 | as_fn_error "You need libffi" "$LINENO" 5 |
5053a6d1 | 16981 | |
e5cca37d DWT |
16982 | elif test $pkg_failed = untried; then |
16983 | ||
16984 | as_fn_error "You need libffi" "$LINENO" 5 | |
16985 | ||
16986 | else | |
16987 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
16988 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
16989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16990 | $as_echo "yes" >&6; } | |
16991 | ||
16992 | ||
16993 | for element in `$PKG_CONFIG --cflags libffi`; do | |
16994 | haveit= | |
16995 | for x in $CXXFLAGS; do | |
16996 | ||
16997 | acl_save_prefix="$prefix" | |
16998 | prefix="$acl_final_prefix" | |
16999 | acl_save_exec_prefix="$exec_prefix" | |
17000 | exec_prefix="$acl_final_exec_prefix" | |
17001 | eval x=\"$x\" | |
17002 | exec_prefix="$acl_save_exec_prefix" | |
17003 | prefix="$acl_save_prefix" | |
17004 | ||
17005 | if test "X$x" = "X$element"; then | |
17006 | haveit=yes | |
17007 | break | |
17008 | fi | |
17009 | done | |
17010 | if test -z "$haveit"; then | |
17011 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17012 | fi | |
17013 | done | |
c823f118 | 17014 | |
5053a6d1 | 17015 | |
e5cca37d DWT |
17016 | for element in `$PKG_CONFIG --libs libffi`; do |
17017 | haveit= | |
17018 | for x in $LIBS; do | |
17019 | ||
17020 | acl_save_prefix="$prefix" | |
17021 | prefix="$acl_final_prefix" | |
17022 | acl_save_exec_prefix="$exec_prefix" | |
17023 | exec_prefix="$acl_final_exec_prefix" | |
17024 | eval x=\"$x\" | |
17025 | exec_prefix="$acl_save_exec_prefix" | |
17026 | prefix="$acl_save_prefix" | |
17027 | ||
17028 | if test "X$x" = "X$element"; then | |
17029 | haveit=yes | |
17030 | break | |
17031 | fi | |
17032 | done | |
17033 | if test -z "$haveit"; then | |
17034 | LIBS="${LIBS}${LIBS:+ }$element" | |
17035 | fi | |
17036 | done | |
17037 | ||
5053a6d1 DWT |
17038 | |
17039 | fi | |
e5cca37d DWT |
17040 | |
17041 | ||
17042 | else | |
17043 | ||
5053a6d1 DWT |
17044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 |
17045 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
17046 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
c823f118 DWT |
17047 | $as_echo_n "(cached) " >&6 |
17048 | else | |
5053a6d1 DWT |
17049 | ac_func_search_save_LIBS=$LIBS |
17050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c823f118 DWT |
17051 | /* end confdefs.h. */ |
17052 | ||
5053a6d1 DWT |
17053 | /* Override any GCC internal prototype to avoid an error. |
17054 | Use char because int might match the return type of a GCC | |
17055 | builtin and then its argument prototype would still apply. */ | |
17056 | #ifdef __cplusplus | |
17057 | extern "C" | |
17058 | #endif | |
17059 | char ffi_call (); | |
c823f118 DWT |
17060 | int |
17061 | main () | |
17062 | { | |
5053a6d1 | 17063 | return ffi_call (); |
c823f118 DWT |
17064 | ; |
17065 | return 0; | |
17066 | } | |
b128dfee | 17067 | _ACEOF |
5053a6d1 DWT |
17068 | for ac_lib in '' ffi; do |
17069 | if test -z "$ac_lib"; then | |
17070 | ac_res="none required" | |
17071 | else | |
17072 | ac_res=-l$ac_lib | |
17073 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17074 | fi | |
17075 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17076 | ac_cv_search_ffi_call=$ac_res | |
c823f118 DWT |
17077 | fi |
17078 | rm -f core conftest.err conftest.$ac_objext \ | |
5053a6d1 DWT |
17079 | conftest$ac_exeext |
17080 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17081 | break | |
b128dfee | 17082 | fi |
5053a6d1 DWT |
17083 | done |
17084 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
b128dfee | 17085 | |
5053a6d1 DWT |
17086 | else |
17087 | ac_cv_search_ffi_call=no | |
17088 | fi | |
17089 | rm conftest.$ac_ext | |
17090 | LIBS=$ac_func_search_save_LIBS | |
17091 | fi | |
17092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
17093 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
17094 | ac_res=$ac_cv_search_ffi_call | |
17095 | if test "$ac_res" != no; then : | |
17096 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b128dfee | 17097 | |
5053a6d1 | 17098 | fi |
c823f118 | 17099 | |
5053a6d1 DWT |
17100 | case $ac_cv_search_ffi_call in #( |
17101 | no) : | |
c823f118 | 17102 | |
c823f118 | 17103 | |
e5cca37d DWT |
17104 | pkg_failed=no |
17105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
17106 | $as_echo_n "checking for LIBFFI... " >&6; } | |
c823f118 | 17107 | |
1504c9b8 DWT |
17108 | if test -n "$PKG_CONFIG"; then |
17109 | if test -n "$LIBFFI_CFLAGS"; then | |
17110 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
17111 | else | |
17112 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
17113 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
17114 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17115 | ac_status=$? | |
17116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17117 | test $ac_status = 0; }; then | |
17118 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
17119 | else | |
17120 | pkg_failed=yes | |
c823f118 | 17121 | fi |
1504c9b8 DWT |
17122 | fi |
17123 | else | |
17124 | pkg_failed=untried | |
5053a6d1 | 17125 | fi |
1504c9b8 DWT |
17126 | if test -n "$PKG_CONFIG"; then |
17127 | if test -n "$LIBFFI_LIBS"; then | |
17128 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
17129 | else | |
17130 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
17131 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
17132 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17133 | ac_status=$? | |
17134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17135 | test $ac_status = 0; }; then | |
17136 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
c823f118 | 17137 | else |
e5cca37d | 17138 | pkg_failed=yes |
632b71ea | 17139 | fi |
1504c9b8 DWT |
17140 | fi |
17141 | else | |
17142 | pkg_failed=untried | |
632b71ea | 17143 | fi |
3fd51f51 | 17144 | |
e5cca37d DWT |
17145 | |
17146 | ||
17147 | if test $pkg_failed = yes; then | |
17148 | ||
17149 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17150 | _pkg_short_errors_supported=yes | |
5053a6d1 | 17151 | else |
e5cca37d | 17152 | _pkg_short_errors_supported=no |
5053a6d1 | 17153 | fi |
e5cca37d | 17154 | if test $_pkg_short_errors_supported = yes; then |
1504c9b8 | 17155 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` |
e5cca37d | 17156 | else |
1504c9b8 | 17157 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` |
e5cca37d DWT |
17158 | fi |
17159 | # Put the nasty error message in config.log where it belongs | |
17160 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
3fd51f51 | 17161 | |
e5cca37d DWT |
17162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17163 | $as_echo "no" >&6; } | |
3fd51f51 | 17164 | |
e5cca37d | 17165 | as_fn_error "You need libffi" "$LINENO" 5 |
3fd51f51 | 17166 | |
e5cca37d DWT |
17167 | elif test $pkg_failed = untried; then |
17168 | ||
17169 | as_fn_error "You need libffi" "$LINENO" 5 | |
9c60689e DWT |
17170 | |
17171 | else | |
5053a6d1 DWT |
17172 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
17173 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
9c60689e DWT |
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17175 | $as_echo "yes" >&6; } | |
3fd51f51 | 17176 | |
3fd51f51 | 17177 | |
5053a6d1 | 17178 | for element in `$PKG_CONFIG --cflags libffi`; do |
3fd51f51 DWT |
17179 | haveit= |
17180 | for x in $CXXFLAGS; do | |
17181 | ||
17182 | acl_save_prefix="$prefix" | |
17183 | prefix="$acl_final_prefix" | |
17184 | acl_save_exec_prefix="$exec_prefix" | |
17185 | exec_prefix="$acl_final_exec_prefix" | |
17186 | eval x=\"$x\" | |
17187 | exec_prefix="$acl_save_exec_prefix" | |
17188 | prefix="$acl_save_prefix" | |
17189 | ||
17190 | if test "X$x" = "X$element"; then | |
17191 | haveit=yes | |
17192 | break | |
17193 | fi | |
17194 | done | |
17195 | if test -z "$haveit"; then | |
17196 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17197 | fi | |
17198 | done | |
17199 | ||
17200 | ||
5053a6d1 | 17201 | for element in `$PKG_CONFIG --libs libffi`; do |
3fd51f51 DWT |
17202 | haveit= |
17203 | for x in $LIBS; do | |
17204 | ||
17205 | acl_save_prefix="$prefix" | |
17206 | prefix="$acl_final_prefix" | |
17207 | acl_save_exec_prefix="$exec_prefix" | |
17208 | exec_prefix="$acl_final_exec_prefix" | |
17209 | eval x=\"$x\" | |
17210 | exec_prefix="$acl_save_exec_prefix" | |
17211 | prefix="$acl_save_prefix" | |
17212 | ||
17213 | if test "X$x" = "X$element"; then | |
17214 | haveit=yes | |
17215 | break | |
17216 | fi | |
17217 | done | |
17218 | if test -z "$haveit"; then | |
17219 | LIBS="${LIBS}${LIBS:+ }$element" | |
17220 | fi | |
17221 | done | |
17222 | ||
17223 | ||
e5cca37d DWT |
17224 | fi |
17225 | ;; #( | |
17226 | *) : | |
17227 | ;; | |
17228 | esac | |
17229 | ||
9c60689e | 17230 | fi |
5053a6d1 DWT |
17231 | ac_ext=mm |
17232 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17233 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17234 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17235 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a667869d | 17236 | |
5053a6d1 DWT |
17237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 |
17238 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
17239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17240 | /* end confdefs.h. */ | |
9c60689e | 17241 | |
5053a6d1 | 17242 | // This space intentionally left blank |
a667869d | 17243 | |
5053a6d1 DWT |
17244 | _ACEOF |
17245 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 17246 | |
5053a6d1 DWT |
17247 | CY_OBJECTIVEC=1 |
17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17249 | $as_echo "yes" >&6; } | |
632b71ea | 17250 | |
632b71ea | 17251 | else |
5053a6d1 | 17252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
632b71ea | 17253 | $as_echo "no" >&6; } |
5053a6d1 DWT |
17254 | fi |
17255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17256 | if test "x$CY_OBJECTIVEC" = x1; then : | |
9c60689e | 17257 | |
632b71ea | 17258 | |
5053a6d1 DWT |
17259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
17260 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
17261 | if test "${ac_cv_framework_CoreFoundation+set}" = set; then : | |
9c60689e DWT |
17262 | $as_echo_n "(cached) " >&6 |
17263 | else | |
632b71ea DWT |
17264 | |
17265 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 17266 | LIBS="-framework CoreFoundation $LIBS" |
632b71ea | 17267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
17268 | /* end confdefs.h. */ |
17269 | ||
5053a6d1 | 17270 | #include <CoreFoundation/CFBase.h> |
632b71ea | 17271 | |
9c60689e DWT |
17272 | int |
17273 | main () | |
17274 | { | |
5053a6d1 | 17275 | CFAllocatorGetDefault(); |
9c60689e DWT |
17276 | ; |
17277 | return 0; | |
17278 | } | |
17279 | _ACEOF | |
5053a6d1 | 17280 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 17281 | |
5053a6d1 | 17282 | ac_cv_framework_CoreFoundation=yes |
632b71ea | 17283 | |
9c60689e | 17284 | else |
5053a6d1 | 17285 | ac_cv_framework_CoreFoundation=no |
9c60689e | 17286 | fi |
632b71ea DWT |
17287 | rm -f core conftest.err conftest.$ac_objext \ |
17288 | conftest$ac_exeext conftest.$ac_ext | |
17289 | LIBS=$ac_check_framework_save_LIBS | |
9c60689e DWT |
17290 | |
17291 | fi | |
5053a6d1 DWT |
17292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
17293 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
17294 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
632b71ea DWT |
17295 | |
17296 | ||
5053a6d1 | 17297 | for element in "-framework CoreFoundation $LIBS"; do |
632b71ea DWT |
17298 | haveit= |
17299 | for x in $LIBS; do | |
17300 | ||
17301 | acl_save_prefix="$prefix" | |
17302 | prefix="$acl_final_prefix" | |
17303 | acl_save_exec_prefix="$exec_prefix" | |
17304 | exec_prefix="$acl_final_exec_prefix" | |
17305 | eval x=\"$x\" | |
17306 | exec_prefix="$acl_save_exec_prefix" | |
17307 | prefix="$acl_save_prefix" | |
17308 | ||
17309 | if test "X$x" = "X$element"; then | |
17310 | haveit=yes | |
17311 | break | |
17312 | fi | |
17313 | done | |
17314 | if test -z "$haveit"; then | |
17315 | LIBS="${LIBS}${LIBS:+ }$element" | |
17316 | fi | |
17317 | done | |
17318 | ||
632b71ea | 17319 | |
632b71ea | 17320 | |
632b71ea DWT |
17321 | |
17322 | ||
5053a6d1 DWT |
17323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
17324 | $as_echo_n "checking for framework Foundation... " >&6; } | |
17325 | if test "${ac_cv_framework_Foundation+set}" = set; then : | |
a667869d DWT |
17326 | $as_echo_n "(cached) " >&6 |
17327 | else | |
632b71ea DWT |
17328 | |
17329 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 17330 | LIBS="-framework Foundation $LIBS" |
632b71ea | 17331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a667869d DWT |
17332 | /* end confdefs.h. */ |
17333 | ||
5053a6d1 | 17334 | #include <Foundation/NSObject.h> |
632b71ea | 17335 | |
a667869d DWT |
17336 | int |
17337 | main () | |
17338 | { | |
5053a6d1 | 17339 | [[NSObject alloc] init]; |
a667869d DWT |
17340 | ; |
17341 | return 0; | |
17342 | } | |
17343 | _ACEOF | |
5053a6d1 | 17344 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 17345 | |
5053a6d1 | 17346 | ac_cv_framework_Foundation=yes |
632b71ea | 17347 | |
a667869d | 17348 | else |
5053a6d1 | 17349 | ac_cv_framework_Foundation=no |
632b71ea DWT |
17350 | fi |
17351 | rm -f core conftest.err conftest.$ac_objext \ | |
17352 | conftest$ac_exeext conftest.$ac_ext | |
17353 | LIBS=$ac_check_framework_save_LIBS | |
a667869d | 17354 | |
632b71ea | 17355 | fi |
5053a6d1 DWT |
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 |
17357 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
17358 | if test $ac_cv_framework_Foundation = yes; then : | |
a667869d | 17359 | |
a667869d | 17360 | |
5053a6d1 | 17361 | for element in "-framework Foundation $LIBS"; do |
632b71ea DWT |
17362 | haveit= |
17363 | for x in $LIBS; do | |
a667869d | 17364 | |
632b71ea DWT |
17365 | acl_save_prefix="$prefix" |
17366 | prefix="$acl_final_prefix" | |
17367 | acl_save_exec_prefix="$exec_prefix" | |
17368 | exec_prefix="$acl_final_exec_prefix" | |
17369 | eval x=\"$x\" | |
17370 | exec_prefix="$acl_save_exec_prefix" | |
17371 | prefix="$acl_save_prefix" | |
17372 | ||
17373 | if test "X$x" = "X$element"; then | |
17374 | haveit=yes | |
17375 | break | |
17376 | fi | |
17377 | done | |
17378 | if test -z "$haveit"; then | |
17379 | LIBS="${LIBS}${LIBS:+ }$element" | |
17380 | fi | |
17381 | done | |
17382 | ||
5053a6d1 DWT |
17383 | cat >>confdefs.h <<_ACEOF |
17384 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
17385 | _ACEOF | |
17386 | ||
a667869d | 17387 | |
a667869d | 17388 | fi |
632b71ea | 17389 | |
5053a6d1 DWT |
17390 | |
17391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 | |
17392 | $as_echo_n "checking for framework WebKit... " >&6; } | |
17393 | if test "${ac_cv_framework_WebKit+set}" = set; then : | |
17394 | $as_echo_n "(cached) " >&6 | |
a667869d | 17395 | else |
632b71ea | 17396 | |
5053a6d1 DWT |
17397 | ac_check_framework_save_LIBS=$LIBS |
17398 | LIBS="-framework WebKit $LIBS" | |
17399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17400 | /* end confdefs.h. */ | |
632b71ea | 17401 | |
5053a6d1 | 17402 | #include <WebKit/WebScriptObject.h> |
632b71ea | 17403 | |
5053a6d1 DWT |
17404 | int |
17405 | main () | |
17406 | { | |
17407 | [[WebScriptObject alloc] init]; | |
17408 | ; | |
17409 | return 0; | |
17410 | } | |
17411 | _ACEOF | |
17412 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
632b71ea | 17413 | |
5053a6d1 | 17414 | ac_cv_framework_WebKit=yes |
632b71ea | 17415 | |
5053a6d1 DWT |
17416 | else |
17417 | ac_cv_framework_WebKit=no | |
17418 | fi | |
17419 | rm -f core conftest.err conftest.$ac_objext \ | |
17420 | conftest$ac_exeext conftest.$ac_ext | |
17421 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 17422 | |
5053a6d1 DWT |
17423 | fi |
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
17425 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
17426 | if test $ac_cv_framework_WebKit = yes; then : | |
17427 | ||
17428 | ||
17429 | for element in "-framework WebKit $LIBS"; do | |
632b71ea DWT |
17430 | haveit= |
17431 | for x in $LIBS; do | |
17432 | ||
17433 | acl_save_prefix="$prefix" | |
17434 | prefix="$acl_final_prefix" | |
17435 | acl_save_exec_prefix="$exec_prefix" | |
17436 | exec_prefix="$acl_final_exec_prefix" | |
17437 | eval x=\"$x\" | |
17438 | exec_prefix="$acl_save_exec_prefix" | |
17439 | prefix="$acl_save_prefix" | |
17440 | ||
17441 | if test "X$x" = "X$element"; then | |
17442 | haveit=yes | |
17443 | break | |
17444 | fi | |
17445 | done | |
17446 | if test -z "$haveit"; then | |
17447 | LIBS="${LIBS}${LIBS:+ }$element" | |
17448 | fi | |
17449 | done | |
17450 | ||
5053a6d1 DWT |
17451 | cat >>confdefs.h <<_ACEOF |
17452 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
17453 | _ACEOF | |
17454 | ||
17455 | ||
17456 | fi | |
17457 | ||
17458 | ||
17459 | else | |
17460 | ||
17461 | ||
17462 | for ac_prog in gnustep-config | |
17463 | do | |
17464 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17465 | set dummy $ac_prog; ac_word=$2 | |
17466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17467 | $as_echo_n "checking for $ac_word... " >&6; } | |
17468 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
17469 | $as_echo_n "(cached) " >&6 | |
17470 | else | |
17471 | if test -n "$GNUSTEP_CONFIG"; then | |
17472 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
17473 | else | |
17474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17475 | for as_dir in $PATH | |
17476 | do | |
17477 | IFS=$as_save_IFS | |
17478 | test -z "$as_dir" && as_dir=. | |
17479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
17481 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
17482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17483 | break 2 | |
17484 | fi | |
17485 | done | |
17486 | done | |
17487 | IFS=$as_save_IFS | |
17488 | ||
17489 | fi | |
17490 | fi | |
17491 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
17492 | if test -n "$GNUSTEP_CONFIG"; then | |
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
17494 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
17495 | else | |
17496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17497 | $as_echo "no" >&6; } | |
17498 | fi | |
17499 | ||
17500 | ||
17501 | test -n "$GNUSTEP_CONFIG" && break | |
17502 | done | |
632b71ea | 17503 | |
5053a6d1 | 17504 | if test "x$GNUSTEP_CONFIG" != x; then : |
a667869d | 17505 | |
632b71ea | 17506 | |
632b71ea | 17507 | |
5053a6d1 | 17508 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
632b71ea | 17509 | haveit= |
5053a6d1 | 17510 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
17511 | |
17512 | acl_save_prefix="$prefix" | |
17513 | prefix="$acl_final_prefix" | |
17514 | acl_save_exec_prefix="$exec_prefix" | |
17515 | exec_prefix="$acl_final_exec_prefix" | |
17516 | eval x=\"$x\" | |
17517 | exec_prefix="$acl_save_exec_prefix" | |
17518 | prefix="$acl_save_prefix" | |
17519 | ||
17520 | if test "X$x" = "X$element"; then | |
17521 | haveit=yes | |
17522 | break | |
17523 | fi | |
17524 | done | |
17525 | if test -z "$haveit"; then | |
5053a6d1 | 17526 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
632b71ea DWT |
17527 | fi |
17528 | done | |
17529 | ||
17530 | ||
5053a6d1 | 17531 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea DWT |
17532 | haveit= |
17533 | for x in $LIBS; do | |
17534 | ||
17535 | acl_save_prefix="$prefix" | |
17536 | prefix="$acl_final_prefix" | |
17537 | acl_save_exec_prefix="$exec_prefix" | |
17538 | exec_prefix="$acl_final_exec_prefix" | |
17539 | eval x=\"$x\" | |
17540 | exec_prefix="$acl_save_exec_prefix" | |
17541 | prefix="$acl_save_prefix" | |
17542 | ||
17543 | if test "X$x" = "X$element"; then | |
17544 | haveit=yes | |
17545 | break | |
17546 | fi | |
17547 | done | |
17548 | if test -z "$haveit"; then | |
17549 | LIBS="${LIBS}${LIBS:+ }$element" | |
17550 | fi | |
17551 | done | |
17552 | ||
17553 | ||
5053a6d1 DWT |
17554 | else |
17555 | CY_OBJECTIVEC=0 | |
a667869d | 17556 | |
5053a6d1 | 17557 | fi |
b66977f1 DWT |
17558 | |
17559 | fi | |
17560 | ||
5053a6d1 DWT |
17561 | fi |
17562 | ac_ext=cpp | |
17563 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
b66977f1 | 17567 | |
5053a6d1 DWT |
17568 | ;; #( |
17569 | *) : | |
17570 | ;; | |
17571 | esac | |
a667869d | 17572 | |
058f1bc8 DWT |
17573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 |
17574 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
17575 | if test "${vl_cv_lib_readline+set}" = set; then : | |
17576 | $as_echo_n "(cached) " >&6 | |
17577 | else | |
a667869d | 17578 | |
058f1bc8 DWT |
17579 | ORIG_LIBS="$LIBS" |
17580 | for readline_lib in readline edit editline; do | |
17581 | for termcap_lib in "" termcap curses ncurses; do | |
17582 | if test -z "$termcap_lib"; then | |
17583 | TRY_LIB="-l$readline_lib" | |
17584 | else | |
17585 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
17586 | fi | |
17587 | LIBS="$ORIG_LIBS $TRY_LIB" | |
17588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17589 | /* end confdefs.h. */ | |
a667869d | 17590 | |
058f1bc8 DWT |
17591 | /* Override any GCC internal prototype to avoid an error. |
17592 | Use char because int might match the return type of a GCC | |
17593 | builtin and then its argument prototype would still apply. */ | |
17594 | #ifdef __cplusplus | |
17595 | extern "C" | |
17596 | #endif | |
17597 | char readline (); | |
17598 | int | |
17599 | main () | |
17600 | { | |
17601 | return readline (); | |
17602 | ; | |
17603 | return 0; | |
17604 | } | |
17605 | _ACEOF | |
17606 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17607 | vl_cv_lib_readline="$TRY_LIB" | |
17608 | fi | |
17609 | rm -f core conftest.err conftest.$ac_objext \ | |
17610 | conftest$ac_exeext conftest.$ac_ext | |
17611 | if test -n "$vl_cv_lib_readline"; then | |
17612 | break | |
17613 | fi | |
17614 | done | |
17615 | if test -n "$vl_cv_lib_readline"; then | |
17616 | break | |
17617 | fi | |
17618 | done | |
17619 | if test -z "$vl_cv_lib_readline"; then | |
17620 | vl_cv_lib_readline="no" | |
17621 | LIBS="$ORIG_LIBS" | |
17622 | fi | |
a667869d | 17623 | |
a667869d | 17624 | fi |
058f1bc8 DWT |
17625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 |
17626 | $as_echo "$vl_cv_lib_readline" >&6; } | |
17627 | ||
17628 | if test "$vl_cv_lib_readline" != "no"; then | |
17629 | ||
17630 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
17631 | ||
17632 | for ac_header in readline.h readline/readline.h | |
17633 | do : | |
17634 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17635 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17636 | eval as_val=\$$as_ac_Header | |
17637 | if test "x$as_val" = x""yes; then : | |
17638 | cat >>confdefs.h <<_ACEOF | |
17639 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17640 | _ACEOF | |
5053a6d1 | 17641 | |
a667869d | 17642 | fi |
058f1bc8 DWT |
17643 | |
17644 | done | |
17645 | ||
17646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
17647 | $as_echo_n "checking whether readline supports history... " >&6; } | |
17648 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
17649 | $as_echo_n "(cached) " >&6 | |
17650 | else | |
17651 | ||
17652 | vl_cv_lib_readline_history="no" | |
17653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17654 | /* end confdefs.h. */ | |
17655 | ||
17656 | /* Override any GCC internal prototype to avoid an error. | |
17657 | Use char because int might match the return type of a GCC | |
17658 | builtin and then its argument prototype would still apply. */ | |
17659 | #ifdef __cplusplus | |
17660 | extern "C" | |
17661 | #endif | |
17662 | char add_history (); | |
17663 | int | |
17664 | main () | |
17665 | { | |
17666 | return add_history (); | |
17667 | ; | |
17668 | return 0; | |
17669 | } | |
17670 | _ACEOF | |
17671 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17672 | vl_cv_lib_readline_history="yes" | |
17673 | fi | |
17674 | rm -f core conftest.err conftest.$ac_objext \ | |
17675 | conftest$ac_exeext conftest.$ac_ext | |
17676 | ||
17677 | fi | |
17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
17679 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
17680 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
17681 | ||
17682 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
17683 | ||
17684 | for ac_header in history.h readline/history.h | |
17685 | do : | |
17686 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17687 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17688 | eval as_val=\$$as_ac_Header | |
17689 | if test "x$as_val" = x""yes; then : | |
17690 | cat >>confdefs.h <<_ACEOF | |
17691 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17692 | _ACEOF | |
17693 | ||
17694 | fi | |
17695 | ||
17696 | done | |
17697 | ||
17698 | fi | |
17699 | fi | |
17700 | ||
17701 | case $vl_cv_lib_readline in #( | |
17702 | no) : | |
17703 | as_fn_error "You need readline" "$LINENO" 5 ;; #( | |
17704 | *) : | |
17705 | ;; | |
17706 | esac | |
17707 | ac_ext=c | |
17708 | ac_cpp='$CPP $CPPFLAGS' | |
17709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17712 | ||
17713 | ||
17714 | if test "X$prefix" = "XNONE"; then | |
17715 | acl_final_prefix="$ac_default_prefix" | |
17716 | else | |
17717 | acl_final_prefix="$prefix" | |
17718 | fi | |
17719 | if test "X$exec_prefix" = "XNONE"; then | |
17720 | acl_final_exec_prefix='${prefix}' | |
17721 | else | |
17722 | acl_final_exec_prefix="$exec_prefix" | |
17723 | fi | |
17724 | acl_save_prefix="$prefix" | |
17725 | prefix="$acl_final_prefix" | |
17726 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
17727 | prefix="$acl_save_prefix" | |
17728 | ||
17729 | ||
17730 | # Check whether --with-gnu-ld was given. | |
17731 | if test "${with_gnu_ld+set}" = set; then : | |
17732 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
17733 | else | |
17734 | with_gnu_ld=no | |
17735 | fi | |
17736 | ||
17737 | # Prepare PATH_SEPARATOR. | |
17738 | # The user is always right. | |
17739 | if test "${PATH_SEPARATOR+set}" != set; then | |
17740 | echo "#! /bin/sh" >conf$$.sh | |
17741 | echo "exit 0" >>conf$$.sh | |
17742 | chmod +x conf$$.sh | |
17743 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
17744 | PATH_SEPARATOR=';' | |
17745 | else | |
17746 | PATH_SEPARATOR=: | |
17747 | fi | |
17748 | rm -f conf$$.sh | |
17749 | fi | |
17750 | ac_prog=ld | |
17751 | if test "$GCC" = yes; then | |
17752 | # Check if gcc -print-prog-name=ld gives a path. | |
17753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
17754 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
17755 | case $host in | |
17756 | *-*-mingw*) | |
17757 | # gcc leaves a trailing carriage return which upsets mingw | |
17758 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
17759 | *) | |
17760 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
17761 | esac | |
17762 | case $ac_prog in | |
17763 | # Accept absolute paths. | |
17764 | [\\/]* | [A-Za-z]:[\\/]*) | |
17765 | re_direlt='/[^/][^/]*/\.\./' | |
17766 | # Canonicalize the path of ld | |
17767 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
17768 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5053a6d1 DWT |
17769 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
17770 | done | |
17771 | test -z "$LD" && LD="$ac_prog" | |
17772 | ;; | |
17773 | "") | |
17774 | # If it fails, then pretend we aren't using GCC. | |
17775 | ac_prog=ld | |
17776 | ;; | |
17777 | *) | |
17778 | # If it is relative, then search for the first ld in PATH. | |
17779 | with_gnu_ld=unknown | |
17780 | ;; | |
17781 | esac | |
17782 | elif test "$with_gnu_ld" = yes; then | |
17783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
17784 | $as_echo_n "checking for GNU ld... " >&6; } | |
a667869d | 17785 | else |
5053a6d1 DWT |
17786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
17787 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a667869d | 17788 | fi |
5053a6d1 DWT |
17789 | if test "${acl_cv_path_LD+set}" = set; then : |
17790 | $as_echo_n "(cached) " >&6 | |
17791 | else | |
17792 | if test -z "$LD"; then | |
17793 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
17794 | for ac_dir in $PATH; do | |
17795 | test -z "$ac_dir" && ac_dir=. | |
17796 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
17797 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
17798 | # Check to see if the program is GNU ld. I'd rather use --version, | |
17799 | # but apparently some GNU ld's only accept -v. | |
17800 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
17801 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
17802 | *GNU* | *'with BFD'*) | |
17803 | test "$with_gnu_ld" != no && break ;; | |
17804 | *) | |
17805 | test "$with_gnu_ld" != yes && break ;; | |
17806 | esac | |
a667869d | 17807 | fi |
5053a6d1 DWT |
17808 | done |
17809 | IFS="$ac_save_ifs" | |
a667869d | 17810 | else |
5053a6d1 | 17811 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
a667869d | 17812 | fi |
a667869d | 17813 | fi |
a667869d | 17814 | |
5053a6d1 DWT |
17815 | LD="$acl_cv_path_LD" |
17816 | if test -n "$LD"; then | |
17817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
17818 | $as_echo "$LD" >&6; } | |
17819 | else | |
17820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
a667869d | 17821 | $as_echo "no" >&6; } |
a667869d | 17822 | fi |
5053a6d1 DWT |
17823 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
17824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
17825 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
17826 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
a667869d DWT |
17827 | $as_echo_n "(cached) " >&6 |
17828 | else | |
5053a6d1 DWT |
17829 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
17830 | case `$LD -v 2>&1 </dev/null` in | |
17831 | *GNU* | *'with BFD'*) | |
17832 | acl_cv_prog_gnu_ld=yes ;; | |
17833 | *) | |
17834 | acl_cv_prog_gnu_ld=no ;; | |
17835 | esac | |
a667869d | 17836 | fi |
5053a6d1 DWT |
17837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
17838 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
17839 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
17840 | ||
17841 | ||
17842 | ||
a667869d | 17843 | |
5053a6d1 DWT |
17844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
17845 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
17846 | if test "${acl_cv_rpath+set}" = set; then : | |
17847 | $as_echo_n "(cached) " >&6 | |
a667869d | 17848 | else |
5053a6d1 DWT |
17849 | |
17850 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
17851 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
17852 | . ./conftest.sh | |
17853 | rm -f ./conftest.sh | |
17854 | acl_cv_rpath=done | |
17855 | ||
a667869d | 17856 | fi |
5053a6d1 DWT |
17857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
17858 | $as_echo "$acl_cv_rpath" >&6; } | |
17859 | wl="$acl_cv_wl" | |
17860 | acl_libext="$acl_cv_libext" | |
17861 | acl_shlibext="$acl_cv_shlibext" | |
17862 | acl_libname_spec="$acl_cv_libname_spec" | |
17863 | acl_library_names_spec="$acl_cv_library_names_spec" | |
17864 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
17865 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
17866 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
17867 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
17868 | # Check whether --enable-rpath was given. | |
17869 | if test "${enable_rpath+set}" = set; then : | |
17870 | enableval=$enable_rpath; : | |
17871 | else | |
17872 | enable_rpath=yes | |
a667869d | 17873 | fi |
a667869d | 17874 | |
a667869d | 17875 | |
a667869d | 17876 | |
5053a6d1 DWT |
17877 | acl_libdirstem=lib |
17878 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
17879 | if test -n "$searchpath"; then | |
17880 | acl_save_IFS="${IFS= }"; IFS=":" | |
17881 | for searchdir in $searchpath; do | |
17882 | if test -d "$searchdir"; then | |
17883 | case "$searchdir" in | |
17884 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
17885 | *) searchdir=`cd "$searchdir" && pwd` | |
17886 | case "$searchdir" in | |
17887 | */lib64 ) acl_libdirstem=lib64 ;; | |
17888 | esac ;; | |
17889 | esac | |
17890 | fi | |
17891 | done | |
17892 | IFS="$acl_save_IFS" | |
17893 | fi | |
9c60689e | 17894 | |
9c60689e | 17895 | |
9c60689e | 17896 | |
9c60689e | 17897 | |
9c60689e | 17898 | |
9c60689e | 17899 | |
9c60689e | 17900 | |
9c60689e | 17901 | |
9c60689e | 17902 | |
5053a6d1 | 17903 | use_additional=yes |
9c60689e | 17904 | |
5053a6d1 DWT |
17905 | acl_save_prefix="$prefix" |
17906 | prefix="$acl_final_prefix" | |
17907 | acl_save_exec_prefix="$exec_prefix" | |
17908 | exec_prefix="$acl_final_exec_prefix" | |
9c60689e | 17909 | |
5053a6d1 DWT |
17910 | eval additional_includedir=\"$includedir\" |
17911 | eval additional_libdir=\"$libdir\" | |
9c60689e | 17912 | |
5053a6d1 DWT |
17913 | exec_prefix="$acl_save_exec_prefix" |
17914 | prefix="$acl_save_prefix" | |
3fd51f51 DWT |
17915 | |
17916 | ||
5053a6d1 DWT |
17917 | # Check whether --with-libiconv-prefix was given. |
17918 | if test "${with_libiconv_prefix+set}" = set; then : | |
17919 | withval=$with_libiconv_prefix; | |
17920 | if test "X$withval" = "Xno"; then | |
17921 | use_additional=no | |
17922 | else | |
17923 | if test "X$withval" = "X"; then | |
3fd51f51 DWT |
17924 | |
17925 | acl_save_prefix="$prefix" | |
17926 | prefix="$acl_final_prefix" | |
17927 | acl_save_exec_prefix="$exec_prefix" | |
17928 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
17929 | |
17930 | eval additional_includedir=\"$includedir\" | |
17931 | eval additional_libdir=\"$libdir\" | |
17932 | ||
3fd51f51 DWT |
17933 | exec_prefix="$acl_save_exec_prefix" |
17934 | prefix="$acl_save_prefix" | |
17935 | ||
5053a6d1 DWT |
17936 | else |
17937 | additional_includedir="$withval/include" | |
17938 | additional_libdir="$withval/$acl_libdirstem" | |
3fd51f51 | 17939 | fi |
3fd51f51 | 17940 | fi |
3fd51f51 | 17941 | |
5053a6d1 | 17942 | fi |
3fd51f51 | 17943 | |
5053a6d1 DWT |
17944 | LIBICONV= |
17945 | LTLIBICONV= | |
17946 | INCICONV= | |
17947 | LIBICONV_PREFIX= | |
17948 | rpathdirs= | |
17949 | ltrpathdirs= | |
17950 | names_already_handled= | |
17951 | names_next_round='iconv ' | |
17952 | while test -n "$names_next_round"; do | |
17953 | names_this_round="$names_next_round" | |
17954 | names_next_round= | |
17955 | for name in $names_this_round; do | |
17956 | already_handled= | |
17957 | for n in $names_already_handled; do | |
17958 | if test "$n" = "$name"; then | |
17959 | already_handled=yes | |
17960 | break | |
17961 | fi | |
17962 | done | |
17963 | if test -z "$already_handled"; then | |
17964 | names_already_handled="$names_already_handled $name" | |
17965 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
17966 | eval value=\"\$HAVE_LIB$uppername\" | |
17967 | if test -n "$value"; then | |
17968 | if test "$value" = yes; then | |
17969 | eval value=\"\$LIB$uppername\" | |
17970 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
17971 | eval value=\"\$LTLIB$uppername\" | |
17972 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
17973 | else | |
17974 | : | |
17975 | fi | |
17976 | else | |
17977 | found_dir= | |
17978 | found_la= | |
17979 | found_so= | |
17980 | found_a= | |
17981 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
17982 | if test -n "$acl_shlibext"; then | |
17983 | shrext=".$acl_shlibext" # typically: shrext=.so | |
17984 | else | |
17985 | shrext= | |
17986 | fi | |
17987 | if test $use_additional = yes; then | |
17988 | dir="$additional_libdir" | |
17989 | if test -n "$acl_shlibext"; then | |
17990 | if test -f "$dir/$libname$shrext"; then | |
17991 | found_dir="$dir" | |
17992 | found_so="$dir/$libname$shrext" | |
17993 | else | |
17994 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
17995 | ver=`(cd "$dir" && \ | |
17996 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
17997 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
17998 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
17999 | | sed 1q ) 2>/dev/null` | |
18000 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18001 | found_dir="$dir" | |
18002 | found_so="$dir/$libname$shrext.$ver" | |
18003 | fi | |
18004 | else | |
18005 | eval library_names=\"$acl_library_names_spec\" | |
18006 | for f in $library_names; do | |
18007 | if test -f "$dir/$f"; then | |
18008 | found_dir="$dir" | |
18009 | found_so="$dir/$f" | |
18010 | break | |
18011 | fi | |
18012 | done | |
18013 | fi | |
18014 | fi | |
18015 | fi | |
18016 | if test "X$found_dir" = "X"; then | |
18017 | if test -f "$dir/$libname.$acl_libext"; then | |
18018 | found_dir="$dir" | |
18019 | found_a="$dir/$libname.$acl_libext" | |
18020 | fi | |
18021 | fi | |
18022 | if test "X$found_dir" != "X"; then | |
18023 | if test -f "$dir/$libname.la"; then | |
18024 | found_la="$dir/$libname.la" | |
18025 | fi | |
18026 | fi | |
18027 | fi | |
18028 | if test "X$found_dir" = "X"; then | |
18029 | for x in $LDFLAGS $LTLIBICONV; do | |
3fd51f51 DWT |
18030 | |
18031 | acl_save_prefix="$prefix" | |
18032 | prefix="$acl_final_prefix" | |
18033 | acl_save_exec_prefix="$exec_prefix" | |
18034 | exec_prefix="$acl_final_exec_prefix" | |
18035 | eval x=\"$x\" | |
18036 | exec_prefix="$acl_save_exec_prefix" | |
18037 | prefix="$acl_save_prefix" | |
18038 | ||
5053a6d1 DWT |
18039 | case "$x" in |
18040 | -L*) | |
18041 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
18042 | if test -n "$acl_shlibext"; then | |
18043 | if test -f "$dir/$libname$shrext"; then | |
18044 | found_dir="$dir" | |
18045 | found_so="$dir/$libname$shrext" | |
18046 | else | |
18047 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18048 | ver=`(cd "$dir" && \ | |
18049 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18050 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18051 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18052 | | sed 1q ) 2>/dev/null` | |
18053 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18054 | found_dir="$dir" | |
18055 | found_so="$dir/$libname$shrext.$ver" | |
18056 | fi | |
18057 | else | |
18058 | eval library_names=\"$acl_library_names_spec\" | |
18059 | for f in $library_names; do | |
18060 | if test -f "$dir/$f"; then | |
18061 | found_dir="$dir" | |
18062 | found_so="$dir/$f" | |
18063 | break | |
18064 | fi | |
18065 | done | |
18066 | fi | |
18067 | fi | |
18068 | fi | |
18069 | if test "X$found_dir" = "X"; then | |
18070 | if test -f "$dir/$libname.$acl_libext"; then | |
18071 | found_dir="$dir" | |
18072 | found_a="$dir/$libname.$acl_libext" | |
18073 | fi | |
18074 | fi | |
18075 | if test "X$found_dir" != "X"; then | |
18076 | if test -f "$dir/$libname.la"; then | |
18077 | found_la="$dir/$libname.la" | |
18078 | fi | |
18079 | fi | |
18080 | ;; | |
18081 | esac | |
18082 | if test "X$found_dir" != "X"; then | |
18083 | break | |
18084 | fi | |
18085 | done | |
18086 | fi | |
18087 | if test "X$found_dir" != "X"; then | |
18088 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
18089 | if test "X$found_so" != "X"; then | |
18090 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
18091 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18092 | else | |
18093 | haveit= | |
18094 | for x in $ltrpathdirs; do | |
18095 | if test "X$x" = "X$found_dir"; then | |
18096 | haveit=yes | |
18097 | break | |
18098 | fi | |
18099 | done | |
18100 | if test -z "$haveit"; then | |
18101 | ltrpathdirs="$ltrpathdirs $found_dir" | |
18102 | fi | |
18103 | if test "$acl_hardcode_direct" = yes; then | |
18104 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18105 | else | |
18106 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
18107 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18108 | haveit= | |
18109 | for x in $rpathdirs; do | |
18110 | if test "X$x" = "X$found_dir"; then | |
18111 | haveit=yes | |
18112 | break | |
18113 | fi | |
18114 | done | |
18115 | if test -z "$haveit"; then | |
18116 | rpathdirs="$rpathdirs $found_dir" | |
18117 | fi | |
18118 | else | |
18119 | haveit= | |
18120 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 DWT |
18121 | |
18122 | acl_save_prefix="$prefix" | |
18123 | prefix="$acl_final_prefix" | |
18124 | acl_save_exec_prefix="$exec_prefix" | |
18125 | exec_prefix="$acl_final_exec_prefix" | |
18126 | eval x=\"$x\" | |
18127 | exec_prefix="$acl_save_exec_prefix" | |
18128 | prefix="$acl_save_prefix" | |
18129 | ||
5053a6d1 DWT |
18130 | if test "X$x" = "X-L$found_dir"; then |
18131 | haveit=yes | |
18132 | break | |
18133 | fi | |
18134 | done | |
18135 | if test -z "$haveit"; then | |
18136 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
18137 | fi | |
18138 | if test "$acl_hardcode_minus_L" != no; then | |
18139 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18140 | else | |
18141 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18142 | fi | |
18143 | fi | |
18144 | fi | |
18145 | fi | |
18146 | else | |
18147 | if test "X$found_a" != "X"; then | |
18148 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
18149 | else | |
18150 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
18151 | fi | |
18152 | fi | |
18153 | additional_includedir= | |
18154 | case "$found_dir" in | |
18155 | */$acl_libdirstem | */$acl_libdirstem/) | |
18156 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
18157 | LIBICONV_PREFIX="$basedir" | |
18158 | additional_includedir="$basedir/include" | |
18159 | ;; | |
18160 | esac | |
18161 | if test "X$additional_includedir" != "X"; then | |
18162 | if test "X$additional_includedir" != "X/usr/include"; then | |
18163 | haveit= | |
18164 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
18165 | if test -n "$GCC"; then | |
18166 | case $host_os in | |
18167 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18168 | esac | |
18169 | fi | |
18170 | fi | |
18171 | if test -z "$haveit"; then | |
18172 | for x in $CPPFLAGS $INCICONV; do | |
c823f118 DWT |
18173 | |
18174 | acl_save_prefix="$prefix" | |
18175 | prefix="$acl_final_prefix" | |
18176 | acl_save_exec_prefix="$exec_prefix" | |
18177 | exec_prefix="$acl_final_exec_prefix" | |
18178 | eval x=\"$x\" | |
18179 | exec_prefix="$acl_save_exec_prefix" | |
18180 | prefix="$acl_save_prefix" | |
18181 | ||
5053a6d1 DWT |
18182 | if test "X$x" = "X-I$additional_includedir"; then |
18183 | haveit=yes | |
18184 | break | |
18185 | fi | |
18186 | done | |
18187 | if test -z "$haveit"; then | |
18188 | if test -d "$additional_includedir"; then | |
18189 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
18190 | fi | |
18191 | fi | |
18192 | fi | |
18193 | fi | |
18194 | fi | |
18195 | if test -n "$found_la"; then | |
18196 | save_libdir="$libdir" | |
18197 | case "$found_la" in | |
18198 | */* | *\\*) . "$found_la" ;; | |
18199 | *) . "./$found_la" ;; | |
18200 | esac | |
18201 | libdir="$save_libdir" | |
18202 | for dep in $dependency_libs; do | |
18203 | case "$dep" in | |
18204 | -L*) | |
18205 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
18206 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
18207 | haveit= | |
18208 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
18209 | if test -n "$GCC"; then | |
18210 | case $host_os in | |
18211 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18212 | esac | |
18213 | fi | |
18214 | fi | |
18215 | if test -z "$haveit"; then | |
18216 | haveit= | |
18217 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 | 18218 | |
5053a6d1 DWT |
18219 | acl_save_prefix="$prefix" |
18220 | prefix="$acl_final_prefix" | |
18221 | acl_save_exec_prefix="$exec_prefix" | |
18222 | exec_prefix="$acl_final_exec_prefix" | |
18223 | eval x=\"$x\" | |
18224 | exec_prefix="$acl_save_exec_prefix" | |
18225 | prefix="$acl_save_prefix" | |
c823f118 | 18226 | |
5053a6d1 DWT |
18227 | if test "X$x" = "X-L$additional_libdir"; then |
18228 | haveit=yes | |
18229 | break | |
18230 | fi | |
18231 | done | |
18232 | if test -z "$haveit"; then | |
18233 | if test -d "$additional_libdir"; then | |
18234 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
18235 | fi | |
18236 | fi | |
18237 | haveit= | |
18238 | for x in $LDFLAGS $LTLIBICONV; do | |
c823f118 DWT |
18239 | |
18240 | acl_save_prefix="$prefix" | |
18241 | prefix="$acl_final_prefix" | |
18242 | acl_save_exec_prefix="$exec_prefix" | |
18243 | exec_prefix="$acl_final_exec_prefix" | |
18244 | eval x=\"$x\" | |
18245 | exec_prefix="$acl_save_exec_prefix" | |
18246 | prefix="$acl_save_prefix" | |
18247 | ||
5053a6d1 DWT |
18248 | if test "X$x" = "X-L$additional_libdir"; then |
18249 | haveit=yes | |
18250 | break | |
18251 | fi | |
18252 | done | |
18253 | if test -z "$haveit"; then | |
18254 | if test -d "$additional_libdir"; then | |
18255 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
18256 | fi | |
18257 | fi | |
18258 | fi | |
18259 | fi | |
18260 | ;; | |
18261 | -R*) | |
18262 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
18263 | if test "$enable_rpath" != no; then | |
18264 | haveit= | |
18265 | for x in $rpathdirs; do | |
18266 | if test "X$x" = "X$dir"; then | |
18267 | haveit=yes | |
18268 | break | |
18269 | fi | |
18270 | done | |
18271 | if test -z "$haveit"; then | |
18272 | rpathdirs="$rpathdirs $dir" | |
18273 | fi | |
18274 | haveit= | |
18275 | for x in $ltrpathdirs; do | |
18276 | if test "X$x" = "X$dir"; then | |
18277 | haveit=yes | |
18278 | break | |
18279 | fi | |
18280 | done | |
18281 | if test -z "$haveit"; then | |
18282 | ltrpathdirs="$ltrpathdirs $dir" | |
18283 | fi | |
18284 | fi | |
18285 | ;; | |
18286 | -l*) | |
18287 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
18288 | ;; | |
18289 | *.la) | |
18290 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
18291 | ;; | |
18292 | *) | |
18293 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
18294 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
18295 | ;; | |
18296 | esac | |
18297 | done | |
18298 | fi | |
18299 | else | |
18300 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18301 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
18302 | fi | |
18303 | fi | |
c823f118 DWT |
18304 | fi |
18305 | done | |
c823f118 | 18306 | done |
5053a6d1 DWT |
18307 | if test "X$rpathdirs" != "X"; then |
18308 | if test -n "$acl_hardcode_libdir_separator"; then | |
18309 | alldirs= | |
18310 | for found_dir in $rpathdirs; do | |
18311 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
18312 | done | |
18313 | acl_save_libdir="$libdir" | |
18314 | libdir="$alldirs" | |
18315 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
18316 | libdir="$acl_save_libdir" | |
18317 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
18318 | else | |
18319 | for found_dir in $rpathdirs; do | |
18320 | acl_save_libdir="$libdir" | |
18321 | libdir="$found_dir" | |
18322 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
18323 | libdir="$acl_save_libdir" | |
18324 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
18325 | done | |
18326 | fi | |
18327 | fi | |
18328 | if test "X$ltrpathdirs" != "X"; then | |
18329 | for found_dir in $ltrpathdirs; do | |
18330 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
18331 | done | |
47aaa820 | 18332 | fi |
47aaa820 DWT |
18333 | |
18334 | ||
47aaa820 | 18335 | |
47aaa820 DWT |
18336 | |
18337 | ||
18338 | ||
5053a6d1 DWT |
18339 | |
18340 | am_save_CPPFLAGS="$CPPFLAGS" | |
18341 | ||
18342 | for element in $INCICONV; do | |
47aaa820 | 18343 | haveit= |
5053a6d1 | 18344 | for x in $CPPFLAGS; do |
47aaa820 DWT |
18345 | |
18346 | acl_save_prefix="$prefix" | |
18347 | prefix="$acl_final_prefix" | |
18348 | acl_save_exec_prefix="$exec_prefix" | |
18349 | exec_prefix="$acl_final_exec_prefix" | |
18350 | eval x=\"$x\" | |
18351 | exec_prefix="$acl_save_exec_prefix" | |
18352 | prefix="$acl_save_prefix" | |
9c60689e | 18353 | |
47aaa820 DWT |
18354 | if test "X$x" = "X$element"; then |
18355 | haveit=yes | |
18356 | break | |
18357 | fi | |
18358 | done | |
18359 | if test -z "$haveit"; then | |
5053a6d1 | 18360 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
47aaa820 DWT |
18361 | fi |
18362 | done | |
18363 | ||
18364 | ||
5053a6d1 DWT |
18365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
18366 | $as_echo_n "checking for iconv... " >&6; } | |
18367 | if test "${am_cv_func_iconv+set}" = set; then : | |
18368 | $as_echo_n "(cached) " >&6 | |
18369 | else | |
47aaa820 | 18370 | |
5053a6d1 DWT |
18371 | am_cv_func_iconv="no, consider installing GNU libiconv" |
18372 | am_cv_lib_iconv=no | |
18373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18374 | /* end confdefs.h. */ | |
18375 | #include <stdlib.h> | |
18376 | #include <iconv.h> | |
18377 | int | |
18378 | main () | |
18379 | { | |
18380 | iconv_t cd = iconv_open("",""); | |
18381 | iconv(cd,NULL,NULL,NULL,NULL); | |
18382 | iconv_close(cd); | |
18383 | ; | |
18384 | return 0; | |
18385 | } | |
18386 | _ACEOF | |
18387 | if ac_fn_c_try_link "$LINENO"; then : | |
18388 | am_cv_func_iconv=yes | |
18389 | fi | |
18390 | rm -f core conftest.err conftest.$ac_objext \ | |
18391 | conftest$ac_exeext conftest.$ac_ext | |
18392 | if test "$am_cv_func_iconv" != yes; then | |
18393 | am_save_LIBS="$LIBS" | |
18394 | LIBS="$LIBS $LIBICONV" | |
18395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18396 | /* end confdefs.h. */ | |
18397 | #include <stdlib.h> | |
18398 | #include <iconv.h> | |
18399 | int | |
18400 | main () | |
18401 | { | |
18402 | iconv_t cd = iconv_open("",""); | |
18403 | iconv(cd,NULL,NULL,NULL,NULL); | |
18404 | iconv_close(cd); | |
18405 | ; | |
18406 | return 0; | |
18407 | } | |
18408 | _ACEOF | |
18409 | if ac_fn_c_try_link "$LINENO"; then : | |
18410 | am_cv_lib_iconv=yes | |
18411 | am_cv_func_iconv=yes | |
18412 | fi | |
18413 | rm -f core conftest.err conftest.$ac_objext \ | |
18414 | conftest$ac_exeext conftest.$ac_ext | |
18415 | LIBS="$am_save_LIBS" | |
47aaa820 | 18416 | fi |
47aaa820 | 18417 | |
5053a6d1 DWT |
18418 | fi |
18419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
18420 | $as_echo "$am_cv_func_iconv" >&6; } | |
18421 | if test "$am_cv_func_iconv" = yes; then | |
18422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
18423 | $as_echo_n "checking for working iconv... " >&6; } | |
18424 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
18425 | $as_echo_n "(cached) " >&6 | |
18426 | else | |
47aaa820 | 18427 | |
5053a6d1 DWT |
18428 | am_save_LIBS="$LIBS" |
18429 | if test $am_cv_lib_iconv = yes; then | |
18430 | LIBS="$LIBS $LIBICONV" | |
18431 | fi | |
18432 | if test "$cross_compiling" = yes; then : | |
18433 | case "$host_os" in | |
18434 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
18435 | *) am_cv_func_iconv_works="guessing yes" ;; | |
18436 | esac | |
c823f118 | 18437 | else |
5053a6d1 DWT |
18438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18439 | /* end confdefs.h. */ | |
c823f118 | 18440 | |
5053a6d1 DWT |
18441 | #include <iconv.h> |
18442 | #include <string.h> | |
18443 | int main () | |
18444 | { | |
18445 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
18446 | returns. */ | |
18447 | { | |
18448 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
18449 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
18450 | { | |
18451 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
18452 | char buf[10]; | |
18453 | const char *inptr = input; | |
18454 | size_t inbytesleft = strlen (input); | |
18455 | char *outptr = buf; | |
18456 | size_t outbytesleft = sizeof (buf); | |
18457 | size_t res = iconv (cd_utf8_to_88591, | |
18458 | (char **) &inptr, &inbytesleft, | |
18459 | &outptr, &outbytesleft); | |
18460 | if (res == 0) | |
18461 | return 1; | |
18462 | } | |
18463 | } | |
18464 | #if 0 /* This bug could be worked around by the caller. */ | |
18465 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
18466 | { | |
18467 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
18468 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
18469 | { | |
18470 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
18471 | char buf[50]; | |
18472 | const char *inptr = input; | |
18473 | size_t inbytesleft = strlen (input); | |
18474 | char *outptr = buf; | |
18475 | size_t outbytesleft = sizeof (buf); | |
18476 | size_t res = iconv (cd_88591_to_utf8, | |
18477 | (char **) &inptr, &inbytesleft, | |
18478 | &outptr, &outbytesleft); | |
18479 | if ((int)res > 0) | |
18480 | return 1; | |
18481 | } | |
18482 | } | |
18483 | #endif | |
18484 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
18485 | provided. */ | |
18486 | if (/* Try standardized names. */ | |
18487 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
18488 | /* Try IRIX, OSF/1 names. */ | |
18489 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
18490 | /* Try AIX names. */ | |
18491 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
18492 | /* Try HP-UX names. */ | |
18493 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
18494 | return 1; | |
18495 | return 0; | |
18496 | } | |
18497 | _ACEOF | |
18498 | if ac_fn_c_try_run "$LINENO"; then : | |
18499 | am_cv_func_iconv_works=yes | |
18500 | else | |
18501 | am_cv_func_iconv_works=no | |
18502 | fi | |
18503 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
18504 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c823f118 DWT |
18505 | fi |
18506 | ||
5053a6d1 DWT |
18507 | LIBS="$am_save_LIBS" |
18508 | ||
47aaa820 | 18509 | fi |
5053a6d1 DWT |
18510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
18511 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
18512 | case "$am_cv_func_iconv_works" in | |
18513 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
18514 | *) am_func_iconv=yes ;; | |
18515 | esac | |
18516 | else | |
18517 | am_func_iconv=no am_cv_lib_iconv=no | |
18518 | fi | |
18519 | if test "$am_func_iconv" = yes; then | |
18520 | ||
18521 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
18522 | ||
18523 | fi | |
18524 | if test "$am_cv_lib_iconv" = yes; then | |
18525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
18526 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
18527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
18528 | $as_echo "$LIBICONV" >&6; } | |
18529 | else | |
18530 | CPPFLAGS="$am_save_CPPFLAGS" | |
18531 | LIBICONV= | |
18532 | LTLIBICONV= | |
18533 | fi | |
18534 | ||
18535 | ||
18536 | ||
18537 | if test "$am_cv_func_iconv" = yes; then | |
18538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
18539 | $as_echo_n "checking for iconv declaration... " >&6; } | |
18540 | if test "${am_cv_proto_iconv+set}" = set; then : | |
18541 | $as_echo_n "(cached) " >&6 | |
18542 | else | |
18543 | ||
18544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18545 | /* end confdefs.h. */ | |
18546 | ||
18547 | #include <stdlib.h> | |
18548 | #include <iconv.h> | |
18549 | extern | |
18550 | #ifdef __cplusplus | |
18551 | "C" | |
18552 | #endif | |
18553 | #if defined(__STDC__) || defined(__cplusplus) | |
18554 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
18555 | #else | |
18556 | size_t iconv(); | |
18557 | #endif | |
18558 | ||
18559 | int | |
18560 | main () | |
18561 | { | |
47aaa820 | 18562 | |
5053a6d1 DWT |
18563 | ; |
18564 | return 0; | |
18565 | } | |
18566 | _ACEOF | |
18567 | if ac_fn_c_try_compile "$LINENO"; then : | |
18568 | am_cv_proto_iconv_arg1="" | |
18569 | else | |
18570 | am_cv_proto_iconv_arg1="const" | |
47aaa820 | 18571 | fi |
5053a6d1 DWT |
18572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18573 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
18574 | fi | |
18575 | ||
18576 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
18577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
18578 | }$am_cv_proto_iconv" >&5 | |
18579 | $as_echo "${ac_t:- | |
18580 | }$am_cv_proto_iconv" >&6; } | |
18581 | ||
18582 | cat >>confdefs.h <<_ACEOF | |
18583 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
18584 | _ACEOF | |
18585 | ||
18586 | fi | |
18587 | ||
5053a6d1 DWT |
18588 | case $am_cv_func_iconv in #( |
18589 | yes) : | |
18590 | ;; #( | |
a667869d | 18591 | *) : |
058f1bc8 DWT |
18592 | |
18593 | for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do | |
18594 | case $cy_iconv_prefix_arg in #( | |
18595 | -I*) : | |
18596 | ||
18597 | ||
18598 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do | |
18599 | haveit= | |
18600 | for x in $cy_iconv_prefixes; do | |
18601 | ||
18602 | acl_save_prefix="$prefix" | |
18603 | prefix="$acl_final_prefix" | |
18604 | acl_save_exec_prefix="$exec_prefix" | |
18605 | exec_prefix="$acl_final_exec_prefix" | |
18606 | eval x=\"$x\" | |
18607 | exec_prefix="$acl_save_exec_prefix" | |
18608 | prefix="$acl_save_prefix" | |
18609 | ||
18610 | if test "X$x" = "X$element"; then | |
18611 | haveit=yes | |
18612 | break | |
18613 | fi | |
18614 | done | |
18615 | if test -z "$haveit"; then | |
18616 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
18617 | fi | |
18618 | done | |
18619 | ||
18620 | ;; #( | |
18621 | -L*) : | |
18622 | ||
18623 | ||
18624 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do | |
18625 | haveit= | |
18626 | for x in $cy_iconv_prefixes; do | |
18627 | ||
18628 | acl_save_prefix="$prefix" | |
18629 | prefix="$acl_final_prefix" | |
18630 | acl_save_exec_prefix="$exec_prefix" | |
18631 | exec_prefix="$acl_final_exec_prefix" | |
18632 | eval x=\"$x\" | |
18633 | exec_prefix="$acl_save_exec_prefix" | |
18634 | prefix="$acl_save_prefix" | |
18635 | ||
18636 | if test "X$x" = "X$element"; then | |
18637 | haveit=yes | |
18638 | break | |
18639 | fi | |
18640 | done | |
18641 | if test -z "$haveit"; then | |
18642 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
18643 | fi | |
18644 | done | |
18645 | ||
18646 | ;; #( | |
18647 | *) : | |
18648 | ;; | |
a667869d | 18649 | esac |
058f1bc8 DWT |
18650 | done |
18651 | for with_libiconv_prefix in $cy_iconv_prefixes; do | |
18652 | { am_cv_func_iconv=; unset am_cv_func_iconv;} | |
18653 | ||
18654 | ||
18655 | ||
18656 | ||
18657 | ||
18658 | ||
18659 | ||
18660 | ||
18661 | use_additional=yes | |
18662 | ||
18663 | acl_save_prefix="$prefix" | |
18664 | prefix="$acl_final_prefix" | |
18665 | acl_save_exec_prefix="$exec_prefix" | |
18666 | exec_prefix="$acl_final_exec_prefix" | |
18667 | ||
18668 | eval additional_includedir=\"$includedir\" | |
18669 | eval additional_libdir=\"$libdir\" | |
18670 | ||
18671 | exec_prefix="$acl_save_exec_prefix" | |
18672 | prefix="$acl_save_prefix" | |
18673 | ||
18674 | ||
18675 | # Check whether --with-libiconv-prefix was given. | |
18676 | if test "${with_libiconv_prefix+set}" = set; then : | |
18677 | withval=$with_libiconv_prefix; | |
18678 | if test "X$withval" = "Xno"; then | |
18679 | use_additional=no | |
18680 | else | |
18681 | if test "X$withval" = "X"; then | |
18682 | ||
18683 | acl_save_prefix="$prefix" | |
18684 | prefix="$acl_final_prefix" | |
18685 | acl_save_exec_prefix="$exec_prefix" | |
18686 | exec_prefix="$acl_final_exec_prefix" | |
18687 | ||
18688 | eval additional_includedir=\"$includedir\" | |
18689 | eval additional_libdir=\"$libdir\" | |
18690 | ||
18691 | exec_prefix="$acl_save_exec_prefix" | |
18692 | prefix="$acl_save_prefix" | |
18693 | ||
18694 | else | |
18695 | additional_includedir="$withval/include" | |
18696 | additional_libdir="$withval/$acl_libdirstem" | |
18697 | fi | |
18698 | fi | |
18699 | ||
18700 | fi | |
18701 | ||
18702 | LIBICONV= | |
18703 | LTLIBICONV= | |
18704 | INCICONV= | |
18705 | LIBICONV_PREFIX= | |
18706 | rpathdirs= | |
18707 | ltrpathdirs= | |
18708 | names_already_handled= | |
18709 | names_next_round='iconv ' | |
18710 | while test -n "$names_next_round"; do | |
18711 | names_this_round="$names_next_round" | |
18712 | names_next_round= | |
18713 | for name in $names_this_round; do | |
18714 | already_handled= | |
18715 | for n in $names_already_handled; do | |
18716 | if test "$n" = "$name"; then | |
18717 | already_handled=yes | |
18718 | break | |
18719 | fi | |
18720 | done | |
18721 | if test -z "$already_handled"; then | |
18722 | names_already_handled="$names_already_handled $name" | |
18723 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
18724 | eval value=\"\$HAVE_LIB$uppername\" | |
18725 | if test -n "$value"; then | |
18726 | if test "$value" = yes; then | |
18727 | eval value=\"\$LIB$uppername\" | |
18728 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
18729 | eval value=\"\$LTLIB$uppername\" | |
18730 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
18731 | else | |
18732 | : | |
18733 | fi | |
18734 | else | |
18735 | found_dir= | |
18736 | found_la= | |
18737 | found_so= | |
18738 | found_a= | |
18739 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
18740 | if test -n "$acl_shlibext"; then | |
18741 | shrext=".$acl_shlibext" # typically: shrext=.so | |
18742 | else | |
18743 | shrext= | |
18744 | fi | |
18745 | if test $use_additional = yes; then | |
18746 | dir="$additional_libdir" | |
18747 | if test -n "$acl_shlibext"; then | |
18748 | if test -f "$dir/$libname$shrext"; then | |
18749 | found_dir="$dir" | |
18750 | found_so="$dir/$libname$shrext" | |
18751 | else | |
18752 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18753 | ver=`(cd "$dir" && \ | |
18754 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18755 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18756 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18757 | | sed 1q ) 2>/dev/null` | |
18758 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18759 | found_dir="$dir" | |
18760 | found_so="$dir/$libname$shrext.$ver" | |
18761 | fi | |
18762 | else | |
18763 | eval library_names=\"$acl_library_names_spec\" | |
18764 | for f in $library_names; do | |
18765 | if test -f "$dir/$f"; then | |
18766 | found_dir="$dir" | |
18767 | found_so="$dir/$f" | |
18768 | break | |
18769 | fi | |
18770 | done | |
18771 | fi | |
18772 | fi | |
18773 | fi | |
18774 | if test "X$found_dir" = "X"; then | |
18775 | if test -f "$dir/$libname.$acl_libext"; then | |
18776 | found_dir="$dir" | |
18777 | found_a="$dir/$libname.$acl_libext" | |
18778 | fi | |
18779 | fi | |
18780 | if test "X$found_dir" != "X"; then | |
18781 | if test -f "$dir/$libname.la"; then | |
18782 | found_la="$dir/$libname.la" | |
18783 | fi | |
18784 | fi | |
18785 | fi | |
18786 | if test "X$found_dir" = "X"; then | |
18787 | for x in $LDFLAGS $LTLIBICONV; do | |
18788 | ||
18789 | acl_save_prefix="$prefix" | |
18790 | prefix="$acl_final_prefix" | |
18791 | acl_save_exec_prefix="$exec_prefix" | |
18792 | exec_prefix="$acl_final_exec_prefix" | |
18793 | eval x=\"$x\" | |
18794 | exec_prefix="$acl_save_exec_prefix" | |
18795 | prefix="$acl_save_prefix" | |
18796 | ||
18797 | case "$x" in | |
18798 | -L*) | |
18799 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
18800 | if test -n "$acl_shlibext"; then | |
18801 | if test -f "$dir/$libname$shrext"; then | |
18802 | found_dir="$dir" | |
18803 | found_so="$dir/$libname$shrext" | |
18804 | else | |
18805 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18806 | ver=`(cd "$dir" && \ | |
18807 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18808 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18809 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18810 | | sed 1q ) 2>/dev/null` | |
18811 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18812 | found_dir="$dir" | |
18813 | found_so="$dir/$libname$shrext.$ver" | |
18814 | fi | |
18815 | else | |
18816 | eval library_names=\"$acl_library_names_spec\" | |
18817 | for f in $library_names; do | |
18818 | if test -f "$dir/$f"; then | |
18819 | found_dir="$dir" | |
18820 | found_so="$dir/$f" | |
18821 | break | |
18822 | fi | |
18823 | done | |
18824 | fi | |
18825 | fi | |
18826 | fi | |
18827 | if test "X$found_dir" = "X"; then | |
18828 | if test -f "$dir/$libname.$acl_libext"; then | |
18829 | found_dir="$dir" | |
18830 | found_a="$dir/$libname.$acl_libext" | |
18831 | fi | |
18832 | fi | |
18833 | if test "X$found_dir" != "X"; then | |
18834 | if test -f "$dir/$libname.la"; then | |
18835 | found_la="$dir/$libname.la" | |
18836 | fi | |
18837 | fi | |
18838 | ;; | |
18839 | esac | |
18840 | if test "X$found_dir" != "X"; then | |
18841 | break | |
18842 | fi | |
18843 | done | |
18844 | fi | |
18845 | if test "X$found_dir" != "X"; then | |
18846 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
18847 | if test "X$found_so" != "X"; then | |
18848 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
18849 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18850 | else | |
18851 | haveit= | |
18852 | for x in $ltrpathdirs; do | |
18853 | if test "X$x" = "X$found_dir"; then | |
18854 | haveit=yes | |
18855 | break | |
18856 | fi | |
18857 | done | |
18858 | if test -z "$haveit"; then | |
18859 | ltrpathdirs="$ltrpathdirs $found_dir" | |
18860 | fi | |
18861 | if test "$acl_hardcode_direct" = yes; then | |
18862 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18863 | else | |
18864 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
18865 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18866 | haveit= | |
18867 | for x in $rpathdirs; do | |
18868 | if test "X$x" = "X$found_dir"; then | |
18869 | haveit=yes | |
18870 | break | |
18871 | fi | |
18872 | done | |
18873 | if test -z "$haveit"; then | |
18874 | rpathdirs="$rpathdirs $found_dir" | |
18875 | fi | |
18876 | else | |
18877 | haveit= | |
18878 | for x in $LDFLAGS $LIBICONV; do | |
18879 | ||
18880 | acl_save_prefix="$prefix" | |
18881 | prefix="$acl_final_prefix" | |
18882 | acl_save_exec_prefix="$exec_prefix" | |
18883 | exec_prefix="$acl_final_exec_prefix" | |
18884 | eval x=\"$x\" | |
18885 | exec_prefix="$acl_save_exec_prefix" | |
18886 | prefix="$acl_save_prefix" | |
18887 | ||
18888 | if test "X$x" = "X-L$found_dir"; then | |
18889 | haveit=yes | |
18890 | break | |
18891 | fi | |
18892 | done | |
18893 | if test -z "$haveit"; then | |
18894 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
18895 | fi | |
18896 | if test "$acl_hardcode_minus_L" != no; then | |
18897 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18898 | else | |
18899 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18900 | fi | |
18901 | fi | |
18902 | fi | |
18903 | fi | |
18904 | else | |
18905 | if test "X$found_a" != "X"; then | |
18906 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
18907 | else | |
18908 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
18909 | fi | |
18910 | fi | |
18911 | additional_includedir= | |
18912 | case "$found_dir" in | |
18913 | */$acl_libdirstem | */$acl_libdirstem/) | |
18914 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
18915 | LIBICONV_PREFIX="$basedir" | |
18916 | additional_includedir="$basedir/include" | |
18917 | ;; | |
18918 | esac | |
18919 | if test "X$additional_includedir" != "X"; then | |
18920 | if test "X$additional_includedir" != "X/usr/include"; then | |
18921 | haveit= | |
18922 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
18923 | if test -n "$GCC"; then | |
18924 | case $host_os in | |
18925 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18926 | esac | |
18927 | fi | |
18928 | fi | |
18929 | if test -z "$haveit"; then | |
18930 | for x in $CPPFLAGS $INCICONV; do | |
18931 | ||
18932 | acl_save_prefix="$prefix" | |
18933 | prefix="$acl_final_prefix" | |
18934 | acl_save_exec_prefix="$exec_prefix" | |
18935 | exec_prefix="$acl_final_exec_prefix" | |
18936 | eval x=\"$x\" | |
18937 | exec_prefix="$acl_save_exec_prefix" | |
18938 | prefix="$acl_save_prefix" | |
18939 | ||
18940 | if test "X$x" = "X-I$additional_includedir"; then | |
18941 | haveit=yes | |
18942 | break | |
18943 | fi | |
18944 | done | |
18945 | if test -z "$haveit"; then | |
18946 | if test -d "$additional_includedir"; then | |
18947 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
18948 | fi | |
18949 | fi | |
18950 | fi | |
18951 | fi | |
18952 | fi | |
18953 | if test -n "$found_la"; then | |
18954 | save_libdir="$libdir" | |
18955 | case "$found_la" in | |
18956 | */* | *\\*) . "$found_la" ;; | |
18957 | *) . "./$found_la" ;; | |
18958 | esac | |
18959 | libdir="$save_libdir" | |
18960 | for dep in $dependency_libs; do | |
18961 | case "$dep" in | |
18962 | -L*) | |
18963 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
18964 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
18965 | haveit= | |
18966 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
18967 | if test -n "$GCC"; then | |
18968 | case $host_os in | |
18969 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18970 | esac | |
18971 | fi | |
18972 | fi | |
18973 | if test -z "$haveit"; then | |
18974 | haveit= | |
18975 | for x in $LDFLAGS $LIBICONV; do | |
18976 | ||
18977 | acl_save_prefix="$prefix" | |
18978 | prefix="$acl_final_prefix" | |
18979 | acl_save_exec_prefix="$exec_prefix" | |
18980 | exec_prefix="$acl_final_exec_prefix" | |
18981 | eval x=\"$x\" | |
18982 | exec_prefix="$acl_save_exec_prefix" | |
18983 | prefix="$acl_save_prefix" | |
18984 | ||
18985 | if test "X$x" = "X-L$additional_libdir"; then | |
18986 | haveit=yes | |
18987 | break | |
18988 | fi | |
18989 | done | |
18990 | if test -z "$haveit"; then | |
18991 | if test -d "$additional_libdir"; then | |
18992 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
18993 | fi | |
18994 | fi | |
18995 | haveit= | |
18996 | for x in $LDFLAGS $LTLIBICONV; do | |
18997 | ||
18998 | acl_save_prefix="$prefix" | |
18999 | prefix="$acl_final_prefix" | |
19000 | acl_save_exec_prefix="$exec_prefix" | |
19001 | exec_prefix="$acl_final_exec_prefix" | |
19002 | eval x=\"$x\" | |
19003 | exec_prefix="$acl_save_exec_prefix" | |
19004 | prefix="$acl_save_prefix" | |
19005 | ||
19006 | if test "X$x" = "X-L$additional_libdir"; then | |
19007 | haveit=yes | |
19008 | break | |
19009 | fi | |
19010 | done | |
19011 | if test -z "$haveit"; then | |
19012 | if test -d "$additional_libdir"; then | |
19013 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
19014 | fi | |
19015 | fi | |
19016 | fi | |
19017 | fi | |
19018 | ;; | |
19019 | -R*) | |
19020 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
19021 | if test "$enable_rpath" != no; then | |
19022 | haveit= | |
19023 | for x in $rpathdirs; do | |
19024 | if test "X$x" = "X$dir"; then | |
19025 | haveit=yes | |
19026 | break | |
19027 | fi | |
19028 | done | |
19029 | if test -z "$haveit"; then | |
19030 | rpathdirs="$rpathdirs $dir" | |
19031 | fi | |
19032 | haveit= | |
19033 | for x in $ltrpathdirs; do | |
19034 | if test "X$x" = "X$dir"; then | |
19035 | haveit=yes | |
19036 | break | |
19037 | fi | |
19038 | done | |
19039 | if test -z "$haveit"; then | |
19040 | ltrpathdirs="$ltrpathdirs $dir" | |
19041 | fi | |
19042 | fi | |
19043 | ;; | |
19044 | -l*) | |
19045 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
19046 | ;; | |
19047 | *.la) | |
19048 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
19049 | ;; | |
19050 | *) | |
19051 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
19052 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
19053 | ;; | |
19054 | esac | |
19055 | done | |
19056 | fi | |
19057 | else | |
19058 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
19059 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
19060 | fi | |
19061 | fi | |
19062 | fi | |
19063 | done | |
19064 | done | |
19065 | if test "X$rpathdirs" != "X"; then | |
19066 | if test -n "$acl_hardcode_libdir_separator"; then | |
19067 | alldirs= | |
19068 | for found_dir in $rpathdirs; do | |
19069 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
19070 | done | |
19071 | acl_save_libdir="$libdir" | |
19072 | libdir="$alldirs" | |
19073 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
19074 | libdir="$acl_save_libdir" | |
19075 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
19076 | else | |
19077 | for found_dir in $rpathdirs; do | |
19078 | acl_save_libdir="$libdir" | |
19079 | libdir="$found_dir" | |
19080 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
19081 | libdir="$acl_save_libdir" | |
19082 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
19083 | done | |
19084 | fi | |
19085 | fi | |
19086 | if test "X$ltrpathdirs" != "X"; then | |
19087 | for found_dir in $ltrpathdirs; do | |
19088 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
19089 | done | |
19090 | fi | |
19091 | ||
19092 | ||
19093 | ||
19094 | ||
19095 | ||
19096 | ||
19097 | ||
19098 | am_save_CPPFLAGS="$CPPFLAGS" | |
19099 | ||
19100 | for element in $INCICONV; do | |
19101 | haveit= | |
19102 | for x in $CPPFLAGS; do | |
19103 | ||
19104 | acl_save_prefix="$prefix" | |
19105 | prefix="$acl_final_prefix" | |
19106 | acl_save_exec_prefix="$exec_prefix" | |
19107 | exec_prefix="$acl_final_exec_prefix" | |
19108 | eval x=\"$x\" | |
19109 | exec_prefix="$acl_save_exec_prefix" | |
19110 | prefix="$acl_save_prefix" | |
19111 | ||
19112 | if test "X$x" = "X$element"; then | |
19113 | haveit=yes | |
19114 | break | |
19115 | fi | |
19116 | done | |
19117 | if test -z "$haveit"; then | |
19118 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19119 | fi | |
19120 | done | |
19121 | ||
19122 | ||
19123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
19124 | $as_echo_n "checking for iconv... " >&6; } | |
19125 | if test "${am_cv_func_iconv+set}" = set; then : | |
19126 | $as_echo_n "(cached) " >&6 | |
19127 | else | |
19128 | ||
19129 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
19130 | am_cv_lib_iconv=no | |
19131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19132 | /* end confdefs.h. */ | |
19133 | #include <stdlib.h> | |
19134 | #include <iconv.h> | |
19135 | int | |
19136 | main () | |
19137 | { | |
19138 | iconv_t cd = iconv_open("",""); | |
19139 | iconv(cd,NULL,NULL,NULL,NULL); | |
19140 | iconv_close(cd); | |
19141 | ; | |
19142 | return 0; | |
19143 | } | |
19144 | _ACEOF | |
19145 | if ac_fn_c_try_link "$LINENO"; then : | |
19146 | am_cv_func_iconv=yes | |
19147 | fi | |
19148 | rm -f core conftest.err conftest.$ac_objext \ | |
19149 | conftest$ac_exeext conftest.$ac_ext | |
19150 | if test "$am_cv_func_iconv" != yes; then | |
19151 | am_save_LIBS="$LIBS" | |
19152 | LIBS="$LIBS $LIBICONV" | |
19153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19154 | /* end confdefs.h. */ | |
19155 | #include <stdlib.h> | |
19156 | #include <iconv.h> | |
19157 | int | |
19158 | main () | |
19159 | { | |
19160 | iconv_t cd = iconv_open("",""); | |
19161 | iconv(cd,NULL,NULL,NULL,NULL); | |
19162 | iconv_close(cd); | |
19163 | ; | |
19164 | return 0; | |
19165 | } | |
19166 | _ACEOF | |
19167 | if ac_fn_c_try_link "$LINENO"; then : | |
19168 | am_cv_lib_iconv=yes | |
19169 | am_cv_func_iconv=yes | |
19170 | fi | |
19171 | rm -f core conftest.err conftest.$ac_objext \ | |
19172 | conftest$ac_exeext conftest.$ac_ext | |
19173 | LIBS="$am_save_LIBS" | |
19174 | fi | |
19175 | ||
19176 | fi | |
19177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
19178 | $as_echo "$am_cv_func_iconv" >&6; } | |
19179 | if test "$am_cv_func_iconv" = yes; then | |
19180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
19181 | $as_echo_n "checking for working iconv... " >&6; } | |
19182 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
19183 | $as_echo_n "(cached) " >&6 | |
19184 | else | |
19185 | ||
19186 | am_save_LIBS="$LIBS" | |
19187 | if test $am_cv_lib_iconv = yes; then | |
19188 | LIBS="$LIBS $LIBICONV" | |
19189 | fi | |
19190 | if test "$cross_compiling" = yes; then : | |
19191 | case "$host_os" in | |
19192 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
19193 | *) am_cv_func_iconv_works="guessing yes" ;; | |
19194 | esac | |
19195 | else | |
19196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19197 | /* end confdefs.h. */ | |
19198 | ||
19199 | #include <iconv.h> | |
19200 | #include <string.h> | |
19201 | int main () | |
19202 | { | |
19203 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
19204 | returns. */ | |
19205 | { | |
19206 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
19207 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
19208 | { | |
19209 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
19210 | char buf[10]; | |
19211 | const char *inptr = input; | |
19212 | size_t inbytesleft = strlen (input); | |
19213 | char *outptr = buf; | |
19214 | size_t outbytesleft = sizeof (buf); | |
19215 | size_t res = iconv (cd_utf8_to_88591, | |
19216 | (char **) &inptr, &inbytesleft, | |
19217 | &outptr, &outbytesleft); | |
19218 | if (res == 0) | |
19219 | return 1; | |
19220 | } | |
19221 | } | |
19222 | #if 0 /* This bug could be worked around by the caller. */ | |
19223 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
19224 | { | |
19225 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
19226 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
19227 | { | |
19228 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
19229 | char buf[50]; | |
19230 | const char *inptr = input; | |
19231 | size_t inbytesleft = strlen (input); | |
19232 | char *outptr = buf; | |
19233 | size_t outbytesleft = sizeof (buf); | |
19234 | size_t res = iconv (cd_88591_to_utf8, | |
19235 | (char **) &inptr, &inbytesleft, | |
19236 | &outptr, &outbytesleft); | |
19237 | if ((int)res > 0) | |
19238 | return 1; | |
19239 | } | |
19240 | } | |
19241 | #endif | |
19242 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
19243 | provided. */ | |
19244 | if (/* Try standardized names. */ | |
19245 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
19246 | /* Try IRIX, OSF/1 names. */ | |
19247 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
19248 | /* Try AIX names. */ | |
19249 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
19250 | /* Try HP-UX names. */ | |
19251 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
19252 | return 1; | |
19253 | return 0; | |
19254 | } | |
19255 | _ACEOF | |
19256 | if ac_fn_c_try_run "$LINENO"; then : | |
19257 | am_cv_func_iconv_works=yes | |
19258 | else | |
19259 | am_cv_func_iconv_works=no | |
19260 | fi | |
19261 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
19262 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
19263 | fi | |
19264 | ||
19265 | LIBS="$am_save_LIBS" | |
19266 | ||
19267 | fi | |
19268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
19269 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
19270 | case "$am_cv_func_iconv_works" in | |
19271 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
19272 | *) am_func_iconv=yes ;; | |
19273 | esac | |
19274 | else | |
19275 | am_func_iconv=no am_cv_lib_iconv=no | |
19276 | fi | |
19277 | if test "$am_func_iconv" = yes; then | |
19278 | ||
19279 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
19280 | ||
19281 | fi | |
19282 | if test "$am_cv_lib_iconv" = yes; then | |
19283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
19284 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
19285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
19286 | $as_echo "$LIBICONV" >&6; } | |
19287 | else | |
19288 | CPPFLAGS="$am_save_CPPFLAGS" | |
19289 | LIBICONV= | |
19290 | LTLIBICONV= | |
19291 | fi | |
19292 | ||
19293 | ||
19294 | ||
19295 | if test "$am_cv_func_iconv" = yes; then | |
19296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
19297 | $as_echo_n "checking for iconv declaration... " >&6; } | |
19298 | if test "${am_cv_proto_iconv+set}" = set; then : | |
19299 | $as_echo_n "(cached) " >&6 | |
19300 | else | |
19301 | ||
19302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19303 | /* end confdefs.h. */ | |
19304 | ||
19305 | #include <stdlib.h> | |
19306 | #include <iconv.h> | |
19307 | extern | |
19308 | #ifdef __cplusplus | |
19309 | "C" | |
19310 | #endif | |
19311 | #if defined(__STDC__) || defined(__cplusplus) | |
19312 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
19313 | #else | |
19314 | size_t iconv(); | |
19315 | #endif | |
19316 | ||
19317 | int | |
19318 | main () | |
19319 | { | |
19320 | ||
19321 | ; | |
19322 | return 0; | |
19323 | } | |
19324 | _ACEOF | |
19325 | if ac_fn_c_try_compile "$LINENO"; then : | |
19326 | am_cv_proto_iconv_arg1="" | |
19327 | else | |
19328 | am_cv_proto_iconv_arg1="const" | |
19329 | fi | |
19330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19331 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
19332 | fi | |
19333 | ||
19334 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
19335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
19336 | }$am_cv_proto_iconv" >&5 | |
19337 | $as_echo "${ac_t:- | |
19338 | }$am_cv_proto_iconv" >&6; } | |
19339 | ||
19340 | cat >>confdefs.h <<_ACEOF | |
19341 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
19342 | _ACEOF | |
19343 | ||
19344 | fi | |
19345 | ||
19346 | done | |
19347 | ;; | |
19348 | esac | |
19349 | case $am_cv_func_iconv in #( | |
19350 | yes) : | |
19351 | ;; #( | |
19352 | *) : | |
19353 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
19354 | esac | |
19355 | ac_ext=cpp | |
19356 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19357 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19358 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19359 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19360 | ||
e1cce270 DWT |
19361 | if test "x$CY_OBJECTIVEC" = x1; then : |
19362 | ||
19363 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
19364 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : | |
19365 | ||
794e88e7 DWT |
19366 | if test -n "$ac_tool_prefix"; then |
19367 | for ac_prog in otool | |
19368 | do | |
19369 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
19370 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
19371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19372 | $as_echo_n "checking for $ac_word... " >&6; } | |
19373 | if test "${ac_cv_prog__OTOOL+set}" = set; then : | |
19374 | $as_echo_n "(cached) " >&6 | |
19375 | else | |
19376 | if test -n "$_OTOOL"; then | |
19377 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
19378 | else | |
19379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19380 | for as_dir in $PATH | |
19381 | do | |
19382 | IFS=$as_save_IFS | |
19383 | test -z "$as_dir" && as_dir=. | |
19384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19386 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" | |
19387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19388 | break 2 | |
19389 | fi | |
19390 | done | |
19391 | done | |
19392 | IFS=$as_save_IFS | |
19393 | ||
19394 | fi | |
19395 | fi | |
19396 | _OTOOL=$ac_cv_prog__OTOOL | |
19397 | if test -n "$_OTOOL"; then | |
19398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
19399 | $as_echo "$_OTOOL" >&6; } | |
19400 | else | |
19401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19402 | $as_echo "no" >&6; } | |
19403 | fi | |
19404 | ||
19405 | ||
19406 | test -n "$_OTOOL" && break | |
19407 | done | |
19408 | fi | |
19409 | if test -z "$_OTOOL"; then | |
19410 | ac_ct__OTOOL=$_OTOOL | |
19411 | for ac_prog in otool | |
19412 | do | |
19413 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19414 | set dummy $ac_prog; ac_word=$2 | |
19415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19416 | $as_echo_n "checking for $ac_word... " >&6; } | |
19417 | if test "${ac_cv_prog_ac_ct__OTOOL+set}" = set; then : | |
19418 | $as_echo_n "(cached) " >&6 | |
19419 | else | |
19420 | if test -n "$ac_ct__OTOOL"; then | |
19421 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
19422 | else | |
19423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19424 | for as_dir in $PATH | |
19425 | do | |
19426 | IFS=$as_save_IFS | |
19427 | test -z "$as_dir" && as_dir=. | |
19428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19430 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" | |
19431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19432 | break 2 | |
19433 | fi | |
19434 | done | |
19435 | done | |
19436 | IFS=$as_save_IFS | |
19437 | ||
19438 | fi | |
19439 | fi | |
19440 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL | |
19441 | if test -n "$ac_ct__OTOOL"; then | |
19442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
19443 | $as_echo "$ac_ct__OTOOL" >&6; } | |
19444 | else | |
19445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19446 | $as_echo "no" >&6; } | |
19447 | fi | |
19448 | ||
19449 | ||
19450 | test -n "$ac_ct__OTOOL" && break | |
19451 | done | |
19452 | ||
19453 | if test "x$ac_ct__OTOOL" = x; then | |
19454 | _OTOOL="" | |
19455 | else | |
19456 | case $cross_compiling:$ac_tool_warned in | |
19457 | yes:) | |
19458 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
19459 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
19460 | ac_tool_warned=yes ;; | |
e1cce270 | 19461 | esac |
794e88e7 DWT |
19462 | _OTOOL=$ac_ct__OTOOL |
19463 | fi | |
19464 | fi | |
19465 | ||
19466 | if test "x$_OTOOL" = x; then : | |
19467 | as_fn_error "You need otool" "$LINENO" 5 | |
19468 | fi | |
19469 | if test -n "$ac_tool_prefix"; then | |
19470 | for ac_prog in lipo | |
19471 | do | |
19472 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
19473 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
19474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19475 | $as_echo_n "checking for $ac_word... " >&6; } | |
19476 | if test "${ac_cv_prog__LIPO+set}" = set; then : | |
19477 | $as_echo_n "(cached) " >&6 | |
19478 | else | |
19479 | if test -n "$_LIPO"; then | |
19480 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
19481 | else | |
19482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19483 | for as_dir in $PATH | |
19484 | do | |
19485 | IFS=$as_save_IFS | |
19486 | test -z "$as_dir" && as_dir=. | |
19487 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19489 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" | |
19490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19491 | break 2 | |
19492 | fi | |
19493 | done | |
19494 | done | |
19495 | IFS=$as_save_IFS | |
19496 | ||
19497 | fi | |
19498 | fi | |
19499 | _LIPO=$ac_cv_prog__LIPO | |
19500 | if test -n "$_LIPO"; then | |
19501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
19502 | $as_echo "$_LIPO" >&6; } | |
19503 | else | |
19504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19505 | $as_echo "no" >&6; } | |
19506 | fi | |
19507 | ||
19508 | ||
19509 | test -n "$_LIPO" && break | |
19510 | done | |
19511 | fi | |
19512 | if test -z "$_LIPO"; then | |
19513 | ac_ct__LIPO=$_LIPO | |
19514 | for ac_prog in lipo | |
19515 | do | |
19516 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19517 | set dummy $ac_prog; ac_word=$2 | |
19518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19519 | $as_echo_n "checking for $ac_word... " >&6; } | |
19520 | if test "${ac_cv_prog_ac_ct__LIPO+set}" = set; then : | |
19521 | $as_echo_n "(cached) " >&6 | |
19522 | else | |
19523 | if test -n "$ac_ct__LIPO"; then | |
19524 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
19525 | else | |
19526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19527 | for as_dir in $PATH | |
19528 | do | |
19529 | IFS=$as_save_IFS | |
19530 | test -z "$as_dir" && as_dir=. | |
19531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19533 | ac_cv_prog_ac_ct__LIPO="$ac_prog" | |
19534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19535 | break 2 | |
19536 | fi | |
19537 | done | |
19538 | done | |
19539 | IFS=$as_save_IFS | |
19540 | ||
19541 | fi | |
19542 | fi | |
19543 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO | |
19544 | if test -n "$ac_ct__LIPO"; then | |
19545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
19546 | $as_echo "$ac_ct__LIPO" >&6; } | |
19547 | else | |
19548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19549 | $as_echo "no" >&6; } | |
19550 | fi | |
19551 | ||
19552 | ||
19553 | test -n "$ac_ct__LIPO" && break | |
19554 | done | |
19555 | ||
19556 | if test "x$ac_ct__LIPO" = x; then | |
19557 | _LIPO="" | |
19558 | else | |
19559 | case $cross_compiling:$ac_tool_warned in | |
19560 | yes:) | |
19561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
19562 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
19563 | ac_tool_warned=yes ;; | |
19564 | esac | |
19565 | _LIPO=$ac_ct__LIPO | |
19566 | fi | |
19567 | fi | |
19568 | ||
19569 | if test "x$_LIPO" = x; then : | |
19570 | as_fn_error "You need lipo" "$LINENO" 5 | |
19571 | fi | |
19572 | if test -n "$ac_tool_prefix"; then | |
19573 | for ac_prog in nm | |
19574 | do | |
19575 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
19576 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
19577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19578 | $as_echo_n "checking for $ac_word... " >&6; } | |
19579 | if test "${ac_cv_prog__NM+set}" = set; then : | |
19580 | $as_echo_n "(cached) " >&6 | |
19581 | else | |
19582 | if test -n "$_NM"; then | |
19583 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
19584 | else | |
19585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19586 | for as_dir in $PATH | |
19587 | do | |
19588 | IFS=$as_save_IFS | |
19589 | test -z "$as_dir" && as_dir=. | |
19590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19592 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" | |
19593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19594 | break 2 | |
19595 | fi | |
19596 | done | |
19597 | done | |
19598 | IFS=$as_save_IFS | |
19599 | ||
19600 | fi | |
19601 | fi | |
19602 | _NM=$ac_cv_prog__NM | |
19603 | if test -n "$_NM"; then | |
19604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
19605 | $as_echo "$_NM" >&6; } | |
19606 | else | |
19607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19608 | $as_echo "no" >&6; } | |
19609 | fi | |
19610 | ||
19611 | ||
19612 | test -n "$_NM" && break | |
19613 | done | |
19614 | fi | |
19615 | if test -z "$_NM"; then | |
19616 | ac_ct__NM=$_NM | |
19617 | for ac_prog in nm | |
19618 | do | |
19619 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19620 | set dummy $ac_prog; ac_word=$2 | |
19621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19622 | $as_echo_n "checking for $ac_word... " >&6; } | |
19623 | if test "${ac_cv_prog_ac_ct__NM+set}" = set; then : | |
19624 | $as_echo_n "(cached) " >&6 | |
19625 | else | |
19626 | if test -n "$ac_ct__NM"; then | |
19627 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
19628 | else | |
19629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19630 | for as_dir in $PATH | |
19631 | do | |
19632 | IFS=$as_save_IFS | |
19633 | test -z "$as_dir" && as_dir=. | |
19634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19636 | ac_cv_prog_ac_ct__NM="$ac_prog" | |
19637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19638 | break 2 | |
19639 | fi | |
19640 | done | |
19641 | done | |
19642 | IFS=$as_save_IFS | |
19643 | ||
19644 | fi | |
19645 | fi | |
19646 | ac_ct__NM=$ac_cv_prog_ac_ct__NM | |
19647 | if test -n "$ac_ct__NM"; then | |
19648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
19649 | $as_echo "$ac_ct__NM" >&6; } | |
19650 | else | |
19651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19652 | $as_echo "no" >&6; } | |
19653 | fi | |
19654 | ||
19655 | ||
19656 | test -n "$ac_ct__NM" && break | |
19657 | done | |
19658 | ||
19659 | if test "x$ac_ct__NM" = x; then | |
19660 | _NM="" | |
19661 | else | |
19662 | case $cross_compiling:$ac_tool_warned in | |
19663 | yes:) | |
19664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
19665 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
19666 | ac_tool_warned=yes ;; | |
19667 | esac | |
19668 | _NM=$ac_ct__NM | |
19669 | fi | |
19670 | fi | |
19671 | ||
19672 | if test "x$_NM" = x; then : | |
19673 | as_fn_error "You need nm" "$LINENO" 5 | |
19674 | fi | |
19675 | SO=$acl_shlibext | |
19676 | ||
19677 | CY_OBJECTIVEC_MACH=1 | |
19678 | ||
19679 | CY_ATTACH_GROUP=procmod | |
19680 | ||
e1cce270 DWT |
19681 | |
19682 | fi | |
19683 | ||
19684 | ||
19685 | ||
790e5246 DWT |
19686 | fi |
19687 | if test "x$GMAKE" != xmake; then : | |
19688 | ||
19689 | ac_config_files="$ac_config_files Makefile" | |
19690 | ||
19691 | ||
47aaa820 | 19692 | fi |
9c60689e DWT |
19693 | ac_config_files="$ac_config_files GNUmakefile" |
19694 | ||
19695 | cat >confcache <<\_ACEOF | |
19696 | # This file is a shell script that caches the results of configure | |
19697 | # tests run on this system so they can be shared between configure | |
19698 | # scripts and configure runs, see configure's option --config-cache. | |
19699 | # It is not useful on other systems. If it contains results you don't | |
19700 | # want to keep, you may remove or edit it. | |
19701 | # | |
19702 | # config.status only pays attention to the cache file if you give it | |
19703 | # the --recheck option to rerun configure. | |
19704 | # | |
19705 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19706 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19707 | # following values. | |
19708 | ||
19709 | _ACEOF | |
19710 | ||
19711 | # The following way of writing the cache mishandles newlines in values, | |
19712 | # but we know of no workaround that is simple, portable, and efficient. | |
19713 | # So, we kill variables containing newlines. | |
19714 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19715 | # and sets the high bit in the cache file unless we assign to the vars. | |
19716 | ( | |
19717 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
19718 | eval ac_val=\$$ac_var | |
19719 | case $ac_val in #( | |
19720 | *${as_nl}*) | |
19721 | case $ac_var in #( | |
19722 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
19723 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
19724 | esac | |
19725 | case $ac_var in #( | |
19726 | _ | IFS | as_nl) ;; #( | |
19727 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
19728 | *) { eval $ac_var=; unset $ac_var;} ;; | |
19729 | esac ;; | |
19730 | esac | |
19731 | done | |
19732 | ||
19733 | (set) 2>&1 | | |
19734 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
19735 | *${as_nl}ac_space=\ *) | |
19736 | # `set' does not quote correctly, so add quotes: double-quote | |
19737 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
19738 | sed -n \ | |
19739 | "s/'/'\\\\''/g; | |
19740 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19741 | ;; #( | |
19742 | *) | |
19743 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19744 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
19745 | ;; | |
19746 | esac | | |
19747 | sort | |
19748 | ) | | |
19749 | sed ' | |
19750 | /^ac_cv_env_/b end | |
19751 | t clear | |
19752 | :clear | |
19753 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19754 | t end | |
19755 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19756 | :end' >>confcache | |
19757 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19758 | if test -w "$cache_file"; then | |
19759 | test "x$cache_file" != "x/dev/null" && | |
19760 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
19761 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
19762 | cat confcache >$cache_file | |
19763 | else | |
19764 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
19765 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
19766 | fi | |
19767 | fi | |
19768 | rm -f confcache | |
19769 | ||
19770 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
19771 | # Let make expand exec_prefix. | |
19772 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19773 | ||
19774 | # Transform confdefs.h into DEFS. | |
19775 | # Protect against shell expansion while executing Makefile rules. | |
19776 | # Protect against Makefile macro expansion. | |
19777 | # | |
19778 | # If the first sed substitution is executed (which looks for macros that | |
19779 | # take arguments), then branch to the quote section. Otherwise, | |
19780 | # look for a macro that doesn't take arguments. | |
19781 | ac_script=' | |
19782 | :mline | |
19783 | /\\$/{ | |
19784 | N | |
19785 | s,\\\n,, | |
19786 | b mline | |
19787 | } | |
19788 | t clear | |
19789 | :clear | |
19790 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
19791 | t quote | |
19792 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
19793 | t quote | |
19794 | b any | |
19795 | :quote | |
19796 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
19797 | s/\[/\\&/g | |
19798 | s/\]/\\&/g | |
19799 | s/\$/$$/g | |
19800 | H | |
19801 | :any | |
19802 | ${ | |
19803 | g | |
19804 | s/^\n// | |
19805 | s/\n/ /g | |
19806 | p | |
19807 | } | |
19808 | ' | |
19809 | DEFS=`sed -n "$ac_script" confdefs.h` | |
19810 | ||
19811 | ||
19812 | ac_libobjs= | |
19813 | ac_ltlibobjs= | |
19814 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
19815 | # 1. Remove the extension, and $U if already installed. | |
19816 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
19817 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19818 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19819 | # will be set to the directory where LIBOBJS objects are built. | |
19820 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19821 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
19822 | done | |
19823 | LIBOBJS=$ac_libobjs | |
19824 | ||
19825 | LTLIBOBJS=$ac_ltlibobjs | |
19826 | ||
19827 | ||
19828 | ||
19829 | : ${CONFIG_STATUS=./config.status} | |
19830 | ac_write_fail=0 | |
19831 | ac_clean_files_save=$ac_clean_files | |
19832 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
19833 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
19834 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19835 | as_write_fail=0 | |
19836 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
19837 | #! $SHELL | |
19838 | # Generated by $as_me. | |
19839 | # Run this file to recreate the current configuration. | |
19840 | # Compiler output produced by configure, useful for debugging | |
19841 | # configure, is in config.log if it exists. | |
19842 | ||
19843 | debug=false | |
19844 | ac_cs_recheck=false | |
19845 | ac_cs_silent=false | |
19846 | ||
19847 | SHELL=\${CONFIG_SHELL-$SHELL} | |
19848 | export SHELL | |
19849 | _ASEOF | |
19850 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19851 | ## -------------------- ## | |
19852 | ## M4sh Initialization. ## | |
19853 | ## -------------------- ## | |
19854 | ||
19855 | # Be more Bourne compatible | |
19856 | DUALCASE=1; export DUALCASE # for MKS sh | |
19857 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
19858 | emulate sh | |
19859 | NULLCMD=: | |
19860 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19861 | # is contrary to our usage. Disable this feature. | |
19862 | alias -g '${1+"$@"}'='"$@"' | |
19863 | setopt NO_GLOB_SUBST | |
19864 | else | |
19865 | case `(set -o) 2>/dev/null` in #( | |
19866 | *posix*) : | |
19867 | set -o posix ;; #( | |
19868 | *) : | |
19869 | ;; | |
19870 | esac | |
19871 | fi | |
19872 | ||
19873 | ||
19874 | as_nl=' | |
19875 | ' | |
19876 | export as_nl | |
19877 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19878 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19879 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19880 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19881 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19882 | # but without wasting forks for bash or zsh. | |
19883 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19884 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19885 | as_echo='print -r --' | |
19886 | as_echo_n='print -rn --' | |
19887 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19888 | as_echo='printf %s\n' | |
19889 | as_echo_n='printf %s' | |
19890 | else | |
19891 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19892 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19893 | as_echo_n='/usr/ucb/echo -n' | |
19894 | else | |
19895 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19896 | as_echo_n_body='eval | |
19897 | arg=$1; | |
19898 | case $arg in #( | |
19899 | *"$as_nl"*) | |
19900 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19901 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19902 | esac; | |
19903 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19904 | ' | |
19905 | export as_echo_n_body | |
19906 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19907 | fi | |
19908 | export as_echo_body | |
19909 | as_echo='sh -c $as_echo_body as_echo' | |
19910 | fi | |
19911 | ||
19912 | # The user is always right. | |
19913 | if test "${PATH_SEPARATOR+set}" != set; then | |
19914 | PATH_SEPARATOR=: | |
19915 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19916 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19917 | PATH_SEPARATOR=';' | |
19918 | } | |
19919 | fi | |
19920 | ||
19921 | ||
19922 | # IFS | |
19923 | # We need space, tab and new line, in precisely that order. Quoting is | |
19924 | # there to prevent editors from complaining about space-tab. | |
19925 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19926 | # splitting by setting IFS to empty value.) | |
19927 | IFS=" "" $as_nl" | |
19928 | ||
19929 | # Find who we are. Look in the path if we contain no directory separator. | |
19930 | case $0 in #(( | |
19931 | *[\\/]* ) as_myself=$0 ;; | |
19932 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19933 | for as_dir in $PATH | |
19934 | do | |
19935 | IFS=$as_save_IFS | |
19936 | test -z "$as_dir" && as_dir=. | |
19937 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19938 | done | |
19939 | IFS=$as_save_IFS | |
19940 | ||
19941 | ;; | |
19942 | esac | |
19943 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19944 | # in which case we are not to be found in the path. | |
19945 | if test "x$as_myself" = x; then | |
19946 | as_myself=$0 | |
19947 | fi | |
19948 | if test ! -f "$as_myself"; then | |
19949 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19950 | exit 1 | |
19951 | fi | |
19952 | ||
19953 | # Unset variables that we do not need and which cause bugs (e.g. in | |
19954 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19955 | # suppresses any "Segmentation fault" message there. '((' could | |
19956 | # trigger a bug in pdksh 5.2.14. | |
19957 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19958 | do eval test x\${$as_var+set} = xset \ | |
19959 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19960 | done | |
19961 | PS1='$ ' | |
19962 | PS2='> ' | |
19963 | PS4='+ ' | |
19964 | ||
19965 | # NLS nuisances. | |
19966 | LC_ALL=C | |
19967 | export LC_ALL | |
19968 | LANGUAGE=C | |
19969 | export LANGUAGE | |
19970 | ||
19971 | # CDPATH. | |
19972 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19973 | ||
19974 | ||
19975 | # as_fn_error ERROR [LINENO LOG_FD] | |
19976 | # --------------------------------- | |
19977 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
19978 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
19979 | # script with status $?, using 1 if that was 0. | |
19980 | as_fn_error () | |
19981 | { | |
19982 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
19983 | if test "$3"; then | |
19984 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19985 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
19986 | fi | |
19987 | $as_echo "$as_me: error: $1" >&2 | |
19988 | as_fn_exit $as_status | |
19989 | } # as_fn_error | |
19990 | ||
19991 | ||
19992 | # as_fn_set_status STATUS | |
19993 | # ----------------------- | |
19994 | # Set $? to STATUS, without forking. | |
19995 | as_fn_set_status () | |
19996 | { | |
19997 | return $1 | |
19998 | } # as_fn_set_status | |
19999 | ||
20000 | # as_fn_exit STATUS | |
20001 | # ----------------- | |
20002 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
20003 | as_fn_exit () | |
20004 | { | |
20005 | set +e | |
20006 | as_fn_set_status $1 | |
20007 | exit $1 | |
20008 | } # as_fn_exit | |
20009 | ||
20010 | # as_fn_unset VAR | |
20011 | # --------------- | |
20012 | # Portably unset VAR. | |
20013 | as_fn_unset () | |
20014 | { | |
20015 | { eval $1=; unset $1;} | |
20016 | } | |
20017 | as_unset=as_fn_unset | |
20018 | # as_fn_append VAR VALUE | |
20019 | # ---------------------- | |
20020 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
20021 | # advantage of any shell optimizations that allow amortized linear growth over | |
20022 | # repeated appends, instead of the typical quadratic growth present in naive | |
20023 | # implementations. | |
20024 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
20025 | eval 'as_fn_append () | |
20026 | { | |
20027 | eval $1+=\$2 | |
20028 | }' | |
20029 | else | |
20030 | as_fn_append () | |
20031 | { | |
20032 | eval $1=\$$1\$2 | |
20033 | } | |
20034 | fi # as_fn_append | |
20035 | ||
20036 | # as_fn_arith ARG... | |
20037 | # ------------------ | |
20038 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
20039 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
20040 | # must be portable across $(()) and expr. | |
20041 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
20042 | eval 'as_fn_arith () | |
20043 | { | |
20044 | as_val=$(( $* )) | |
20045 | }' | |
20046 | else | |
20047 | as_fn_arith () | |
20048 | { | |
20049 | as_val=`expr "$@" || test $? -eq 1` | |
20050 | } | |
20051 | fi # as_fn_arith | |
20052 | ||
20053 | ||
20054 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20055 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20056 | as_expr=expr | |
20057 | else | |
20058 | as_expr=false | |
20059 | fi | |
20060 | ||
20061 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
20062 | as_basename=basename | |
20063 | else | |
20064 | as_basename=false | |
20065 | fi | |
20066 | ||
20067 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
20068 | as_dirname=dirname | |
20069 | else | |
20070 | as_dirname=false | |
20071 | fi | |
20072 | ||
20073 | as_me=`$as_basename -- "$0" || | |
20074 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20075 | X"$0" : 'X\(//\)$' \| \ | |
20076 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
20077 | $as_echo X/"$0" | | |
20078 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
20079 | s//\1/ | |
20080 | q | |
20081 | } | |
20082 | /^X\/\(\/\/\)$/{ | |
20083 | s//\1/ | |
20084 | q | |
20085 | } | |
20086 | /^X\/\(\/\).*/{ | |
20087 | s//\1/ | |
20088 | q | |
20089 | } | |
20090 | s/.*/./; q'` | |
20091 | ||
20092 | # Avoid depending upon Character Ranges. | |
20093 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20094 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20095 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20096 | as_cr_digits='0123456789' | |
20097 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20098 | ||
20099 | ECHO_C= ECHO_N= ECHO_T= | |
20100 | case `echo -n x` in #((((( | |
20101 | -n*) | |
20102 | case `echo 'xy\c'` in | |
20103 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
20104 | xy) ECHO_C='\c';; | |
20105 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
20106 | ECHO_T=' ';; | |
20107 | esac;; | |
20108 | *) | |
20109 | ECHO_N='-n';; | |
20110 | esac | |
20111 | ||
20112 | rm -f conf$$ conf$$.exe conf$$.file | |
20113 | if test -d conf$$.dir; then | |
20114 | rm -f conf$$.dir/conf$$.file | |
20115 | else | |
20116 | rm -f conf$$.dir | |
20117 | mkdir conf$$.dir 2>/dev/null | |
20118 | fi | |
20119 | if (echo >conf$$.file) 2>/dev/null; then | |
20120 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20121 | as_ln_s='ln -s' | |
20122 | # ... but there are two gotchas: | |
20123 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20124 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
20125 | # In both cases, we have to default to `cp -p'. | |
20126 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
20127 | as_ln_s='cp -p' | |
20128 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
20129 | as_ln_s=ln | |
20130 | else | |
20131 | as_ln_s='cp -p' | |
20132 | fi | |
20133 | else | |
20134 | as_ln_s='cp -p' | |
20135 | fi | |
20136 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
20137 | rmdir conf$$.dir 2>/dev/null | |
20138 | ||
20139 | ||
20140 | # as_fn_mkdir_p | |
20141 | # ------------- | |
20142 | # Create "$as_dir" as a directory, including parents if necessary. | |
20143 | as_fn_mkdir_p () | |
20144 | { | |
20145 | ||
20146 | case $as_dir in #( | |
20147 | -*) as_dir=./$as_dir;; | |
20148 | esac | |
20149 | test -d "$as_dir" || eval $as_mkdir_p || { | |
20150 | as_dirs= | |
20151 | while :; do | |
20152 | case $as_dir in #( | |
20153 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20154 | *) as_qdir=$as_dir;; | |
20155 | esac | |
20156 | as_dirs="'$as_qdir' $as_dirs" | |
20157 | as_dir=`$as_dirname -- "$as_dir" || | |
20158 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20159 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20160 | X"$as_dir" : 'X\(//\)$' \| \ | |
20161 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20162 | $as_echo X"$as_dir" | | |
20163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20164 | s//\1/ | |
20165 | q | |
20166 | } | |
20167 | /^X\(\/\/\)[^/].*/{ | |
20168 | s//\1/ | |
20169 | q | |
20170 | } | |
20171 | /^X\(\/\/\)$/{ | |
20172 | s//\1/ | |
20173 | q | |
20174 | } | |
20175 | /^X\(\/\).*/{ | |
20176 | s//\1/ | |
20177 | q | |
20178 | } | |
20179 | s/.*/./; q'` | |
20180 | test -d "$as_dir" && break | |
20181 | done | |
20182 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
20183 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
20184 | ||
20185 | ||
20186 | } # as_fn_mkdir_p | |
20187 | if mkdir -p . 2>/dev/null; then | |
20188 | as_mkdir_p='mkdir -p "$as_dir"' | |
20189 | else | |
20190 | test -d ./-p && rmdir ./-p | |
20191 | as_mkdir_p=false | |
20192 | fi | |
20193 | ||
20194 | if test -x / >/dev/null 2>&1; then | |
20195 | as_test_x='test -x' | |
20196 | else | |
20197 | if ls -dL / >/dev/null 2>&1; then | |
20198 | as_ls_L_option=L | |
20199 | else | |
20200 | as_ls_L_option= | |
20201 | fi | |
20202 | as_test_x=' | |
20203 | eval sh -c '\'' | |
20204 | if test -d "$1"; then | |
20205 | test -d "$1/."; | |
20206 | else | |
20207 | case $1 in #( | |
20208 | -*)set "./$1";; | |
20209 | esac; | |
20210 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
20211 | ???[sx]*):;;*)false;;esac;fi | |
20212 | '\'' sh | |
20213 | ' | |
20214 | fi | |
20215 | as_executable_p=$as_test_x | |
20216 | ||
20217 | # Sed expression to map a string onto a valid CPP name. | |
20218 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20219 | ||
20220 | # Sed expression to map a string onto a valid variable name. | |
20221 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20222 | ||
20223 | ||
20224 | exec 6>&1 | |
20225 | ## ----------------------------------- ## | |
20226 | ## Main body of $CONFIG_STATUS script. ## | |
20227 | ## ----------------------------------- ## | |
20228 | _ASEOF | |
20229 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
20230 | ||
20231 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20232 | # Save the log message, to keep $0 and so on meaningful, and to | |
20233 | # report actual input values of CONFIG_FILES etc. instead of their | |
20234 | # values after options handling. | |
20235 | ac_log=" | |
20236 | This file was extended by Cycript $as_me 0.9, which was | |
20237 | generated by GNU Autoconf 2.65. Invocation command line was | |
20238 | ||
20239 | CONFIG_FILES = $CONFIG_FILES | |
20240 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20241 | CONFIG_LINKS = $CONFIG_LINKS | |
20242 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20243 | $ $0 $@ | |
20244 | ||
20245 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
20246 | " | |
20247 | ||
20248 | _ACEOF | |
20249 | ||
20250 | case $ac_config_files in *" | |
20251 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20252 | esac | |
20253 | ||
20254 | ||
20255 | ||
20256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20257 | # Files that config.status was made for. | |
20258 | config_files="$ac_config_files" | |
20259 | config_commands="$ac_config_commands" | |
20260 | ||
20261 | _ACEOF | |
20262 | ||
20263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20264 | ac_cs_usage="\ | |
20265 | \`$as_me' instantiates files and other configuration actions | |
20266 | from templates according to the current configuration. Unless the files | |
20267 | and actions are specified as TAGs, all are instantiated by default. | |
20268 | ||
20269 | Usage: $0 [OPTION]... [TAG]... | |
20270 | ||
20271 | -h, --help print this help, then exit | |
20272 | -V, --version print version number and configuration settings, then exit | |
20273 | --config print configuration, then exit | |
20274 | -q, --quiet, --silent | |
20275 | do not print progress messages | |
20276 | -d, --debug don't remove temporary files | |
20277 | --recheck update $as_me by reconfiguring in the same conditions | |
20278 | --file=FILE[:TEMPLATE] | |
20279 | instantiate the configuration file FILE | |
20280 | ||
20281 | Configuration files: | |
20282 | $config_files | |
20283 | ||
20284 | Configuration commands: | |
20285 | $config_commands | |
20286 | ||
20287 | Report bugs to <saurik@saurik.com>. | |
20288 | Cycript home page: <http://www.cycript.org/>." | |
20289 | ||
20290 | _ACEOF | |
20291 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20292 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
20293 | ac_cs_version="\\ | |
20294 | Cycript config.status 0.9 | |
20295 | configured by $0, generated by GNU Autoconf 2.65, | |
20296 | with options \\"\$ac_cs_config\\" | |
20297 | ||
20298 | Copyright (C) 2009 Free Software Foundation, Inc. | |
20299 | This config.status script is free software; the Free Software Foundation | |
20300 | gives unlimited permission to copy, distribute and modify it." | |
20301 | ||
20302 | ac_pwd='$ac_pwd' | |
20303 | srcdir='$srcdir' | |
20304 | INSTALL='$INSTALL' | |
9c60689e DWT |
20305 | test -n "\$AWK" || AWK=awk |
20306 | _ACEOF | |
20307 | ||
20308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20309 | # The default lists apply if the user does not specify any file. | |
20310 | ac_need_defaults=: | |
20311 | while test $# != 0 | |
20312 | do | |
20313 | case $1 in | |
20314 | --*=*) | |
20315 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20316 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
20317 | ac_shift=: | |
20318 | ;; | |
20319 | *) | |
20320 | ac_option=$1 | |
20321 | ac_optarg=$2 | |
20322 | ac_shift=shift | |
20323 | ;; | |
20324 | esac | |
20325 | ||
20326 | case $ac_option in | |
20327 | # Handling of the options. | |
20328 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20329 | ac_cs_recheck=: ;; | |
20330 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
20331 | $as_echo "$ac_cs_version"; exit ;; | |
20332 | --config | --confi | --conf | --con | --co | --c ) | |
20333 | $as_echo "$ac_cs_config"; exit ;; | |
20334 | --debug | --debu | --deb | --de | --d | -d ) | |
20335 | debug=: ;; | |
20336 | --file | --fil | --fi | --f ) | |
20337 | $ac_shift | |
20338 | case $ac_optarg in | |
20339 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20340 | esac | |
20341 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
20342 | ac_need_defaults=false;; | |
20343 | --he | --h | --help | --hel | -h ) | |
20344 | $as_echo "$ac_cs_usage"; exit ;; | |
20345 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
20346 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
20347 | ac_cs_silent=: ;; | |
20348 | ||
20349 | # This is an error. | |
20350 | -*) as_fn_error "unrecognized option: \`$1' | |
20351 | Try \`$0 --help' for more information." ;; | |
20352 | ||
20353 | *) as_fn_append ac_config_targets " $1" | |
20354 | ac_need_defaults=false ;; | |
20355 | ||
20356 | esac | |
20357 | shift | |
20358 | done | |
20359 | ||
20360 | ac_configure_extra_args= | |
20361 | ||
20362 | if $ac_cs_silent; then | |
20363 | exec 6>/dev/null | |
20364 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
20365 | fi | |
20366 | ||
20367 | _ACEOF | |
20368 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20369 | if \$ac_cs_recheck; then | |
20370 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
20371 | shift | |
20372 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
20373 | CONFIG_SHELL='$SHELL' | |
20374 | export CONFIG_SHELL | |
20375 | exec "\$@" | |
20376 | fi | |
20377 | ||
20378 | _ACEOF | |
20379 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20380 | exec 5>>config.log | |
20381 | { | |
20382 | echo | |
20383 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20384 | ## Running $as_me. ## | |
20385 | _ASBOX | |
20386 | $as_echo "$ac_log" | |
20387 | } >&5 | |
20388 | ||
20389 | _ACEOF | |
20390 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20391 | # | |
20392 | # INIT-COMMANDS | |
20393 | # | |
20394 | ||
20395 | ||
20396 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
20397 | # if CDPATH is set. | |
20398 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20399 | ||
20400 | sed_quote_subst='$sed_quote_subst' | |
20401 | double_quote_subst='$double_quote_subst' | |
20402 | delay_variable_subst='$delay_variable_subst' | |
20403 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
20404 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
9c60689e | 20405 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
549f29b5 | 20406 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
9c60689e DWT |
20407 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
20408 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
20409 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
20410 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
20411 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
20412 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
20413 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
20414 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
20415 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
20416 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
20417 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20418 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20419 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20420 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
20421 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
20422 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
20423 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
20424 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
20425 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
20426 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
20427 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
20428 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
20429 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20430 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20431 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
20432 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
20433 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
20434 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
20435 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
20436 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
20437 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
20438 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20439 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20440 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20441 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
20442 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
20443 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
20444 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
20445 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
20446 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
20447 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
20448 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
20449 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
20450 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
20451 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
20452 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
20453 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20454 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
20455 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
20456 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
20457 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
20458 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
20459 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
20460 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
20461 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
20462 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
20463 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
20464 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
20465 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20466 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20467 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
20468 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
20469 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20470 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20471 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
20472 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20473 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20474 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20475 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20476 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20477 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20478 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
20479 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20480 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20481 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20482 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
20483 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
20484 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
20485 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
20486 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
20487 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20488 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
20489 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
20490 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
20491 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
20492 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
20493 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20494 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
20495 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
20496 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20497 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20498 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
20499 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
20500 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
20501 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
20502 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20503 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20504 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
20505 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20506 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20507 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20508 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20509 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20510 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20511 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
20512 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
20513 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20514 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20515 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
20516 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
20517 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
20518 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
20519 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
20520 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
20521 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
20522 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
20523 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
20524 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
20525 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
20526 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
20527 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20528 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20529 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20530 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20531 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20532 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20533 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20534 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20535 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20536 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20537 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20538 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20539 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20540 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20541 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20542 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20543 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20544 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20545 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20546 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20547 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20548 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20549 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20550 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20551 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20552 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20553 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20554 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20555 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20556 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20557 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20558 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20559 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20560 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20561 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20562 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20563 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20564 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20565 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20566 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20567 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20568 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20569 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20570 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20571 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20572 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20573 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20574 | ||
20575 | LTCC='$LTCC' | |
20576 | LTCFLAGS='$LTCFLAGS' | |
20577 | compiler='$compiler_DEFAULT' | |
20578 | ||
20579 | # Quote evaled strings. | |
20580 | for var in SED \ | |
20581 | GREP \ | |
20582 | EGREP \ | |
20583 | FGREP \ | |
20584 | LD \ | |
20585 | NM \ | |
20586 | LN_S \ | |
20587 | lt_SP2NL \ | |
20588 | lt_NL2SP \ | |
20589 | reload_flag \ | |
20590 | OBJDUMP \ | |
20591 | deplibs_check_method \ | |
20592 | file_magic_cmd \ | |
20593 | AR \ | |
20594 | AR_FLAGS \ | |
20595 | STRIP \ | |
20596 | RANLIB \ | |
20597 | CC \ | |
20598 | CFLAGS \ | |
20599 | compiler \ | |
20600 | lt_cv_sys_global_symbol_pipe \ | |
20601 | lt_cv_sys_global_symbol_to_cdecl \ | |
20602 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20603 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
20604 | SHELL \ | |
20605 | ECHO \ | |
20606 | lt_prog_compiler_no_builtin_flag \ | |
20607 | lt_prog_compiler_wl \ | |
20608 | lt_prog_compiler_pic \ | |
20609 | lt_prog_compiler_static \ | |
20610 | lt_cv_prog_compiler_c_o \ | |
20611 | need_locks \ | |
20612 | DSYMUTIL \ | |
20613 | NMEDIT \ | |
20614 | LIPO \ | |
20615 | OTOOL \ | |
20616 | OTOOL64 \ | |
20617 | shrext_cmds \ | |
20618 | export_dynamic_flag_spec \ | |
20619 | whole_archive_flag_spec \ | |
20620 | compiler_needs_object \ | |
20621 | with_gnu_ld \ | |
20622 | allow_undefined_flag \ | |
20623 | no_undefined_flag \ | |
20624 | hardcode_libdir_flag_spec \ | |
20625 | hardcode_libdir_flag_spec_ld \ | |
20626 | hardcode_libdir_separator \ | |
20627 | fix_srcfile_path \ | |
20628 | exclude_expsyms \ | |
20629 | include_expsyms \ | |
20630 | file_list_spec \ | |
20631 | variables_saved_for_relink \ | |
20632 | libname_spec \ | |
20633 | library_names_spec \ | |
20634 | soname_spec \ | |
20635 | finish_eval \ | |
20636 | old_striplib \ | |
20637 | striplib \ | |
20638 | compiler_lib_search_dirs \ | |
20639 | predep_objects \ | |
20640 | postdep_objects \ | |
20641 | predeps \ | |
20642 | postdeps \ | |
20643 | compiler_lib_search_path \ | |
20644 | LD_CXX \ | |
20645 | compiler_CXX \ | |
20646 | lt_prog_compiler_no_builtin_flag_CXX \ | |
20647 | lt_prog_compiler_wl_CXX \ | |
20648 | lt_prog_compiler_pic_CXX \ | |
20649 | lt_prog_compiler_static_CXX \ | |
20650 | lt_cv_prog_compiler_c_o_CXX \ | |
20651 | export_dynamic_flag_spec_CXX \ | |
20652 | whole_archive_flag_spec_CXX \ | |
20653 | compiler_needs_object_CXX \ | |
20654 | with_gnu_ld_CXX \ | |
20655 | allow_undefined_flag_CXX \ | |
20656 | no_undefined_flag_CXX \ | |
20657 | hardcode_libdir_flag_spec_CXX \ | |
20658 | hardcode_libdir_flag_spec_ld_CXX \ | |
20659 | hardcode_libdir_separator_CXX \ | |
20660 | fix_srcfile_path_CXX \ | |
20661 | exclude_expsyms_CXX \ | |
20662 | include_expsyms_CXX \ | |
20663 | file_list_spec_CXX \ | |
20664 | compiler_lib_search_dirs_CXX \ | |
20665 | predep_objects_CXX \ | |
20666 | postdep_objects_CXX \ | |
20667 | predeps_CXX \ | |
20668 | postdeps_CXX \ | |
20669 | compiler_lib_search_path_CXX; do | |
20670 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
20671 | *[\\\\\\\`\\"\\\$]*) | |
20672 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
20673 | ;; | |
20674 | *) | |
20675 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20676 | ;; | |
20677 | esac | |
20678 | done | |
20679 | ||
20680 | # Double-quote double-evaled strings. | |
20681 | for var in reload_cmds \ | |
20682 | old_postinstall_cmds \ | |
20683 | old_postuninstall_cmds \ | |
20684 | old_archive_cmds \ | |
20685 | extract_expsyms_cmds \ | |
20686 | old_archive_from_new_cmds \ | |
20687 | old_archive_from_expsyms_cmds \ | |
20688 | archive_cmds \ | |
20689 | archive_expsym_cmds \ | |
20690 | module_cmds \ | |
20691 | module_expsym_cmds \ | |
20692 | export_symbols_cmds \ | |
20693 | prelink_cmds \ | |
20694 | postinstall_cmds \ | |
20695 | postuninstall_cmds \ | |
20696 | finish_cmds \ | |
20697 | sys_lib_search_path_spec \ | |
20698 | sys_lib_dlsearch_path_spec \ | |
20699 | old_archive_cmds_CXX \ | |
20700 | old_archive_from_new_cmds_CXX \ | |
20701 | old_archive_from_expsyms_cmds_CXX \ | |
20702 | archive_cmds_CXX \ | |
20703 | archive_expsym_cmds_CXX \ | |
20704 | module_cmds_CXX \ | |
20705 | module_expsym_cmds_CXX \ | |
20706 | export_symbols_cmds_CXX \ | |
20707 | prelink_cmds_CXX; do | |
20708 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
20709 | *[\\\\\\\`\\"\\\$]*) | |
20710 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
20711 | ;; | |
20712 | *) | |
20713 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20714 | ;; | |
20715 | esac | |
20716 | done | |
20717 | ||
20718 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
20719 | case \$lt_ECHO in | |
20720 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
20721 | ;; | |
20722 | esac | |
20723 | ||
20724 | ac_aux_dir='$ac_aux_dir' | |
20725 | xsi_shell='$xsi_shell' | |
20726 | lt_shell_append='$lt_shell_append' | |
20727 | ||
20728 | # See if we are running on zsh, and set the options which allow our | |
20729 | # commands through without removal of \ escapes INIT. | |
20730 | if test -n "\${ZSH_VERSION+set}" ; then | |
20731 | setopt NO_GLOB_SUBST | |
20732 | fi | |
20733 | ||
20734 | ||
20735 | PACKAGE='$PACKAGE' | |
20736 | VERSION='$VERSION' | |
20737 | TIMESTAMP='$TIMESTAMP' | |
20738 | RM='$RM' | |
20739 | ofile='$ofile' | |
20740 | ||
20741 | ||
20742 | ||
20743 | ||
20744 | ||
20745 | ||
20746 | _ACEOF | |
20747 | ||
20748 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20749 | ||
20750 | # Handling of arguments. | |
20751 | for ac_config_target in $ac_config_targets | |
20752 | do | |
20753 | case $ac_config_target in | |
20754 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
790e5246 | 20755 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e DWT |
20756 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; |
20757 | ||
20758 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
20759 | esac | |
20760 | done | |
20761 | ||
20762 | ||
20763 | # If the user did not use the arguments to specify the items to instantiate, | |
20764 | # then the envvar interface is used. Set only those that are not. | |
20765 | # We use the long form for the default assignment because of an extremely | |
20766 | # bizarre bug on SunOS 4.1.3. | |
20767 | if $ac_need_defaults; then | |
20768 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20769 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20770 | fi | |
20771 | ||
20772 | # Have a temporary directory for convenience. Make it in the build tree | |
20773 | # simply because there is no reason against having it here, and in addition, | |
20774 | # creating and moving files from /tmp can sometimes cause problems. | |
20775 | # Hook for its removal unless debugging. | |
20776 | # Note that there is a small window in which the directory will not be cleaned: | |
20777 | # after its creation but before its name has been assigned to `$tmp'. | |
20778 | $debug || | |
20779 | { | |
20780 | tmp= | |
20781 | trap 'exit_status=$? | |
20782 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
20783 | ' 0 | |
20784 | trap 'as_fn_exit 1' 1 2 13 15 | |
20785 | } | |
20786 | # Create a (secure) tmp directory for tmp files. | |
20787 | ||
20788 | { | |
20789 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
20790 | test -n "$tmp" && test -d "$tmp" | |
20791 | } || | |
20792 | { | |
20793 | tmp=./conf$$-$RANDOM | |
20794 | (umask 077 && mkdir "$tmp") | |
20795 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
20796 | ||
20797 | # Set up the scripts for CONFIG_FILES section. | |
20798 | # No need to generate them if there are no CONFIG_FILES. | |
20799 | # This happens for instance with `./config.status config.h'. | |
20800 | if test -n "$CONFIG_FILES"; then | |
20801 | ||
20802 | ||
20803 | ac_cr=`echo X | tr X '\015'` | |
20804 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
20805 | # But we know of no other shell where ac_cr would be empty at this | |
20806 | # point, so we can use a bashism as a fallback. | |
20807 | if test "x$ac_cr" = x; then | |
20808 | eval ac_cr=\$\'\\r\' | |
20809 | fi | |
20810 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20811 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
20812 | ac_cs_awk_cr='\r' | |
20813 | else | |
20814 | ac_cs_awk_cr=$ac_cr | |
20815 | fi | |
20816 | ||
20817 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
20818 | _ACEOF | |
20819 | ||
20820 | ||
20821 | { | |
20822 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20823 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20824 | echo "_ACEOF" | |
20825 | } >conf$$subs.sh || | |
20826 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20827 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
20828 | ac_delim='%!_!# ' | |
20829 | for ac_last_try in false false false false false :; do | |
20830 | . ./conf$$subs.sh || | |
20831 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20832 | ||
20833 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20834 | if test $ac_delim_n = $ac_delim_num; then | |
20835 | break | |
20836 | elif $ac_last_try; then | |
20837 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20838 | else | |
20839 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20840 | fi | |
20841 | done | |
20842 | rm -f conf$$subs.sh | |
20843 | ||
20844 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20845 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
20846 | _ACEOF | |
20847 | sed -n ' | |
20848 | h | |
20849 | s/^/S["/; s/!.*/"]=/ | |
20850 | p | |
20851 | g | |
20852 | s/^[^!]*!// | |
20853 | :repl | |
20854 | t repl | |
20855 | s/'"$ac_delim"'$// | |
20856 | t delim | |
20857 | :nl | |
20858 | h | |
20859 | s/\(.\{148\}\)..*/\1/ | |
20860 | t more1 | |
20861 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20862 | p | |
20863 | n | |
20864 | b repl | |
20865 | :more1 | |
20866 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20867 | p | |
20868 | g | |
20869 | s/.\{148\}// | |
20870 | t nl | |
20871 | :delim | |
20872 | h | |
20873 | s/\(.\{148\}\)..*/\1/ | |
20874 | t more2 | |
20875 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20876 | p | |
20877 | b | |
20878 | :more2 | |
20879 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20880 | p | |
20881 | g | |
20882 | s/.\{148\}// | |
20883 | t delim | |
20884 | ' <conf$$subs.awk | sed ' | |
20885 | /^[^""]/{ | |
20886 | N | |
20887 | s/\n// | |
20888 | } | |
20889 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20890 | rm -f conf$$subs.awk | |
20891 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20892 | _ACAWK | |
20893 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
20894 | for (key in S) S_is_set[key] = 1 | |
20895 | FS = "\a" | |
20896 | ||
20897 | } | |
20898 | { | |
20899 | line = $ 0 | |
20900 | nfields = split(line, field, "@") | |
20901 | substed = 0 | |
20902 | len = length(field[1]) | |
20903 | for (i = 2; i < nfields; i++) { | |
20904 | key = field[i] | |
20905 | keylen = length(key) | |
20906 | if (S_is_set[key]) { | |
20907 | value = S[key] | |
20908 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20909 | len += length(value) + length(field[++i]) | |
20910 | substed = 1 | |
20911 | } else | |
20912 | len += 1 + keylen | |
20913 | } | |
20914 | ||
20915 | print line | |
20916 | } | |
20917 | ||
20918 | _ACAWK | |
20919 | _ACEOF | |
20920 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20921 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20922 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
20923 | else | |
20924 | cat | |
20925 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
20926 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
20927 | _ACEOF | |
20928 | ||
20929 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20930 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20931 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20932 | # (actually we leave an empty line to preserve line numbers). | |
20933 | if test "x$srcdir" = x.; then | |
20934 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20935 | s/:*\$(srcdir):*/:/ | |
20936 | s/:*\${srcdir}:*/:/ | |
20937 | s/:*@srcdir@:*/:/ | |
20938 | s/^\([^=]*=[ ]*\):*/\1/ | |
20939 | s/:*$// | |
20940 | s/^[^=]*=[ ]*$// | |
20941 | }' | |
20942 | fi | |
20943 | ||
20944 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20945 | fi # test -n "$CONFIG_FILES" | |
20946 | ||
20947 | ||
20948 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
20949 | shift | |
20950 | for ac_tag | |
20951 | do | |
20952 | case $ac_tag in | |
20953 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20954 | esac | |
20955 | case $ac_mode$ac_tag in | |
20956 | :[FHL]*:*);; | |
20957 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
20958 | :[FH]-) ac_tag=-:-;; | |
20959 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
20960 | esac | |
20961 | ac_save_IFS=$IFS | |
20962 | IFS=: | |
20963 | set x $ac_tag | |
20964 | IFS=$ac_save_IFS | |
20965 | shift | |
20966 | ac_file=$1 | |
20967 | shift | |
20968 | ||
20969 | case $ac_mode in | |
20970 | :L) ac_source=$1;; | |
20971 | :[FH]) | |
20972 | ac_file_inputs= | |
20973 | for ac_f | |
20974 | do | |
20975 | case $ac_f in | |
20976 | -) ac_f="$tmp/stdin";; | |
20977 | *) # Look for the file first in the build tree, then in the source tree | |
20978 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20979 | # because $ac_f cannot contain `:'. | |
20980 | test -f "$ac_f" || | |
20981 | case $ac_f in | |
20982 | [\\/$]*) false;; | |
20983 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
20984 | esac || | |
20985 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
20986 | esac | |
20987 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
20988 | as_fn_append ac_file_inputs " '$ac_f'" | |
20989 | done | |
20990 | ||
20991 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20992 | # use $as_me), people would be surprised to read: | |
20993 | # /* config.h. Generated by config.status. */ | |
20994 | configure_input='Generated from '` | |
20995 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
20996 | `' by configure.' | |
20997 | if test x"$ac_file" != x-; then | |
20998 | configure_input="$ac_file. $configure_input" | |
20999 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
21000 | $as_echo "$as_me: creating $ac_file" >&6;} | |
21001 | fi | |
21002 | # Neutralize special characters interpreted by sed in replacement strings. | |
21003 | case $configure_input in #( | |
21004 | *\&* | *\|* | *\\* ) | |
21005 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
21006 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21007 | *) ac_sed_conf_input=$configure_input;; | |
21008 | esac | |
21009 | ||
21010 | case $ac_tag in | |
21011 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
21012 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
21013 | esac | |
21014 | ;; | |
21015 | esac | |
21016 | ||
21017 | ac_dir=`$as_dirname -- "$ac_file" || | |
21018 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21019 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21020 | X"$ac_file" : 'X\(//\)$' \| \ | |
21021 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
21022 | $as_echo X"$ac_file" | | |
21023 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21024 | s//\1/ | |
21025 | q | |
21026 | } | |
21027 | /^X\(\/\/\)[^/].*/{ | |
21028 | s//\1/ | |
21029 | q | |
21030 | } | |
21031 | /^X\(\/\/\)$/{ | |
21032 | s//\1/ | |
21033 | q | |
21034 | } | |
21035 | /^X\(\/\).*/{ | |
21036 | s//\1/ | |
21037 | q | |
21038 | } | |
21039 | s/.*/./; q'` | |
21040 | as_dir="$ac_dir"; as_fn_mkdir_p | |
21041 | ac_builddir=. | |
21042 | ||
21043 | case "$ac_dir" in | |
21044 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21045 | *) | |
21046 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21047 | # A ".." for each directory in $ac_dir_suffix. | |
21048 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21049 | case $ac_top_builddir_sub in | |
21050 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21051 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21052 | esac ;; | |
21053 | esac | |
21054 | ac_abs_top_builddir=$ac_pwd | |
21055 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21056 | # for backward compatibility: | |
21057 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 21058 | |
9c60689e DWT |
21059 | case $srcdir in |
21060 | .) # We are building in place. | |
21061 | ac_srcdir=. | |
21062 | ac_top_srcdir=$ac_top_builddir_sub | |
21063 | ac_abs_top_srcdir=$ac_pwd ;; | |
21064 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
21065 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21066 | ac_top_srcdir=$srcdir | |
21067 | ac_abs_top_srcdir=$srcdir ;; | |
21068 | *) # Relative name. | |
21069 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21070 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21071 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21072 | esac | |
21073 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
21074 | |
21075 | ||
9c60689e DWT |
21076 | case $ac_mode in |
21077 | :F) | |
21078 | # | |
21079 | # CONFIG_FILE | |
21080 | # | |
35fa52c0 | 21081 | |
9c60689e DWT |
21082 | case $INSTALL in |
21083 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21084 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
21085 | esac | |
21086 | _ACEOF | |
35fa52c0 | 21087 | |
9c60689e DWT |
21088 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
21089 | # If the template does not know about datarootdir, expand it. | |
21090 | # FIXME: This hack should be removed a few years after 2.60. | |
21091 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
21092 | ac_sed_dataroot=' | |
21093 | /datarootdir/ { | |
21094 | p | |
21095 | q | |
21096 | } | |
21097 | /@datadir@/p | |
21098 | /@docdir@/p | |
21099 | /@infodir@/p | |
21100 | /@localedir@/p | |
21101 | /@mandir@/p' | |
21102 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
21103 | *datarootdir*) ac_datarootdir_seen=yes;; | |
21104 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
21105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
21106 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
21107 | _ACEOF | |
21108 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21109 | ac_datarootdir_hack=' | |
21110 | s&@datadir@&$datadir&g | |
21111 | s&@docdir@&$docdir&g | |
21112 | s&@infodir@&$infodir&g | |
21113 | s&@localedir@&$localedir&g | |
21114 | s&@mandir@&$mandir&g | |
21115 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
21116 | esac | |
21117 | _ACEOF | |
35fa52c0 | 21118 | |
9c60689e DWT |
21119 | # Neutralize VPATH when `$srcdir' = `.'. |
21120 | # Shell code in configure.ac might set extrasub. | |
21121 | # FIXME: do we really want to maintain this feature? | |
21122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21123 | ac_sed_extra="$ac_vpsub | |
21124 | $extrasub | |
21125 | _ACEOF | |
21126 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21127 | :t | |
21128 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21129 | s|@configure_input@|$ac_sed_conf_input|;t t | |
21130 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
21131 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
21132 | s&@srcdir@&$ac_srcdir&;t t | |
21133 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
21134 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
21135 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
21136 | s&@builddir@&$ac_builddir&;t t | |
21137 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
21138 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
21139 | s&@INSTALL@&$ac_INSTALL&;t t | |
21140 | $ac_datarootdir_hack | |
21141 | " | |
21142 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
21143 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
21144 | ||
21145 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
21146 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
21147 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
21148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21149 | which seems to be undefined. Please make sure it is defined." >&5 | |
21150 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21151 | which seems to be undefined. Please make sure it is defined." >&2;} | |
21152 | ||
21153 | rm -f "$tmp/stdin" | |
21154 | case $ac_file in | |
21155 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
21156 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
21157 | esac \ | |
21158 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
21159 | ;; | |
35fa52c0 | 21160 | |
35fa52c0 | 21161 | |
9c60689e DWT |
21162 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
21163 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
21164 | ;; | |
21165 | esac | |
35fa52c0 | 21166 | |
35fa52c0 | 21167 | |
9c60689e DWT |
21168 | case $ac_file$ac_mode in |
21169 | "libtool":C) | |
21170 | ||
21171 | # See if we are running on zsh, and set the options which allow our | |
21172 | # commands through without removal of \ escapes. | |
21173 | if test -n "${ZSH_VERSION+set}" ; then | |
21174 | setopt NO_GLOB_SUBST | |
35fa52c0 | 21175 | fi |
35fa52c0 | 21176 | |
9c60689e DWT |
21177 | cfgfile="${ofile}T" |
21178 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
21179 | $RM "$cfgfile" | |
35fa52c0 | 21180 | |
9c60689e DWT |
21181 | cat <<_LT_EOF >> "$cfgfile" |
21182 | #! $SHELL | |
35fa52c0 | 21183 | |
9c60689e DWT |
21184 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
21185 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
21186 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21187 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
21188 | # | |
21189 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
21190 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
21191 | # Written by Gordon Matzigkeit, 1996 | |
21192 | # | |
21193 | # This file is part of GNU Libtool. | |
21194 | # | |
21195 | # GNU Libtool is free software; you can redistribute it and/or | |
21196 | # modify it under the terms of the GNU General Public License as | |
21197 | # published by the Free Software Foundation; either version 2 of | |
21198 | # the License, or (at your option) any later version. | |
21199 | # | |
21200 | # As a special exception to the GNU General Public License, | |
21201 | # if you distribute this file as part of a program or library that | |
21202 | # is built using GNU Libtool, you may include this file under the | |
21203 | # same distribution terms that you use for the rest of that program. | |
21204 | # | |
21205 | # GNU Libtool is distributed in the hope that it will be useful, | |
21206 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21207 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21208 | # GNU General Public License for more details. | |
21209 | # | |
21210 | # You should have received a copy of the GNU General Public License | |
21211 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
21212 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
21213 | # obtained by writing to the Free Software Foundation, Inc., | |
21214 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 21215 | |
35fa52c0 | 21216 | |
9c60689e DWT |
21217 | # The names of the tagged configurations supported by this script. |
21218 | available_tags="CXX " | |
35fa52c0 | 21219 | |
9c60689e | 21220 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 21221 | |
9c60689e DWT |
21222 | # Which release of libtool.m4 was used? |
21223 | macro_version=$macro_version | |
21224 | macro_revision=$macro_revision | |
35fa52c0 | 21225 | |
9c60689e DWT |
21226 | # Whether or not to build static libraries. |
21227 | build_old_libs=$enable_static | |
35fa52c0 | 21228 | |
549f29b5 DWT |
21229 | # Whether or not to build shared libraries. |
21230 | build_libtool_libs=$enable_shared | |
21231 | ||
9c60689e DWT |
21232 | # What type of objects to build. |
21233 | pic_mode=$pic_mode | |
35fa52c0 | 21234 | |
9c60689e DWT |
21235 | # Whether or not to optimize for fast installation. |
21236 | fast_install=$enable_fast_install | |
35fa52c0 | 21237 | |
9c60689e DWT |
21238 | # The host system. |
21239 | host_alias=$host_alias | |
21240 | host=$host | |
21241 | host_os=$host_os | |
35fa52c0 | 21242 | |
9c60689e DWT |
21243 | # The build system. |
21244 | build_alias=$build_alias | |
21245 | build=$build | |
21246 | build_os=$build_os | |
21247 | ||
21248 | # A sed program that does not truncate output. | |
21249 | SED=$lt_SED | |
21250 | ||
21251 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
21252 | Xsed="\$SED -e 1s/^X//" | |
21253 | ||
21254 | # A grep program that handles long lines. | |
21255 | GREP=$lt_GREP | |
21256 | ||
21257 | # An ERE matcher. | |
21258 | EGREP=$lt_EGREP | |
21259 | ||
21260 | # A literal string matcher. | |
21261 | FGREP=$lt_FGREP | |
21262 | ||
21263 | # A BSD- or MS-compatible name lister. | |
21264 | NM=$lt_NM | |
21265 | ||
21266 | # Whether we need soft or hard links. | |
21267 | LN_S=$lt_LN_S | |
21268 | ||
21269 | # What is the maximum length of a command? | |
21270 | max_cmd_len=$max_cmd_len | |
21271 | ||
21272 | # Object file suffix (normally "o"). | |
21273 | objext=$ac_objext | |
21274 | ||
21275 | # Executable file suffix (normally ""). | |
21276 | exeext=$exeext | |
21277 | ||
21278 | # whether the shell understands "unset". | |
21279 | lt_unset=$lt_unset | |
21280 | ||
21281 | # turn spaces into newlines. | |
21282 | SP2NL=$lt_lt_SP2NL | |
21283 | ||
21284 | # turn newlines into spaces. | |
21285 | NL2SP=$lt_lt_NL2SP | |
21286 | ||
21287 | # How to create reloadable object files. | |
21288 | reload_flag=$lt_reload_flag | |
21289 | reload_cmds=$lt_reload_cmds | |
21290 | ||
21291 | # An object symbol dumper. | |
21292 | OBJDUMP=$lt_OBJDUMP | |
21293 | ||
21294 | # Method to check whether dependent libraries are shared objects. | |
21295 | deplibs_check_method=$lt_deplibs_check_method | |
21296 | ||
21297 | # Command to use when deplibs_check_method == "file_magic". | |
21298 | file_magic_cmd=$lt_file_magic_cmd | |
21299 | ||
21300 | # The archiver. | |
21301 | AR=$lt_AR | |
21302 | AR_FLAGS=$lt_AR_FLAGS | |
21303 | ||
21304 | # A symbol stripping program. | |
21305 | STRIP=$lt_STRIP | |
21306 | ||
21307 | # Commands used to install an old-style archive. | |
21308 | RANLIB=$lt_RANLIB | |
21309 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21310 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21311 | ||
21312 | # A C compiler. | |
21313 | LTCC=$lt_CC | |
21314 | ||
21315 | # LTCC compiler flags. | |
21316 | LTCFLAGS=$lt_CFLAGS | |
21317 | ||
21318 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21319 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21320 | ||
21321 | # Transform the output of nm in a proper C declaration. | |
21322 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21323 | ||
21324 | # Transform the output of nm in a C name address pair. | |
21325 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21326 | ||
21327 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
21328 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
21329 | ||
21330 | # The name of the directory that contains temporary libtool files. | |
21331 | objdir=$objdir | |
21332 | ||
21333 | # Shell to use when invoking shell scripts. | |
21334 | SHELL=$lt_SHELL | |
21335 | ||
21336 | # An echo program that does not interpret backslashes. | |
21337 | ECHO=$lt_ECHO | |
21338 | ||
21339 | # Used to examine libraries when file_magic_cmd begins with "file". | |
21340 | MAGIC_CMD=$MAGIC_CMD | |
21341 | ||
21342 | # Must we lock files when doing compilation? | |
21343 | need_locks=$lt_need_locks | |
21344 | ||
21345 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
21346 | DSYMUTIL=$lt_DSYMUTIL | |
21347 | ||
21348 | # Tool to change global to local symbols on Mac OS X. | |
21349 | NMEDIT=$lt_NMEDIT | |
21350 | ||
21351 | # Tool to manipulate fat objects and archives on Mac OS X. | |
21352 | LIPO=$lt_LIPO | |
21353 | ||
21354 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
21355 | OTOOL=$lt_OTOOL | |
21356 | ||
21357 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
21358 | OTOOL64=$lt_OTOOL64 | |
21359 | ||
21360 | # Old archive suffix (normally "a"). | |
21361 | libext=$libext | |
21362 | ||
21363 | # Shared library suffix (normally ".so"). | |
21364 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 21365 | |
9c60689e DWT |
21366 | # The commands to extract the exported symbol list from a shared archive. |
21367 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 21368 | |
9c60689e DWT |
21369 | # Variables whose values should be saved in libtool wrapper scripts and |
21370 | # restored at link time. | |
21371 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 21372 | |
9c60689e DWT |
21373 | # Do we need the "lib" prefix for modules? |
21374 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 21375 | |
9c60689e DWT |
21376 | # Do we need a version for libraries? |
21377 | need_version=$need_version | |
35fa52c0 | 21378 | |
9c60689e DWT |
21379 | # Library versioning type. |
21380 | version_type=$version_type | |
35fa52c0 | 21381 | |
9c60689e DWT |
21382 | # Shared library runtime path variable. |
21383 | runpath_var=$runpath_var | |
35fa52c0 | 21384 | |
9c60689e DWT |
21385 | # Shared library path variable. |
21386 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 21387 | |
9c60689e DWT |
21388 | # Is shlibpath searched before the hard-coded library search path? |
21389 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 21390 | |
9c60689e DWT |
21391 | # Format of library name prefix. |
21392 | libname_spec=$lt_libname_spec | |
35fa52c0 | 21393 | |
9c60689e DWT |
21394 | # List of archive names. First name is the real one, the rest are links. |
21395 | # The last name is the one that the linker finds with -lNAME | |
21396 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 21397 | |
9c60689e DWT |
21398 | # The coded name of the library, if different from the real name. |
21399 | soname_spec=$lt_soname_spec | |
dbadc56a | 21400 | |
9c60689e DWT |
21401 | # Command to use after installation of a shared archive. |
21402 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 21403 | |
9c60689e DWT |
21404 | # Command to use after uninstallation of a shared archive. |
21405 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 21406 | |
9c60689e DWT |
21407 | # Commands used to finish a libtool library installation in a directory. |
21408 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 21409 | |
9c60689e DWT |
21410 | # As "finish_cmds", except a single script fragment to be evaled but |
21411 | # not shown. | |
21412 | finish_eval=$lt_finish_eval | |
35fa52c0 | 21413 | |
9c60689e DWT |
21414 | # Whether we should hardcode library paths into libraries. |
21415 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 21416 | |
9c60689e DWT |
21417 | # Compile-time system search path for libraries. |
21418 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 21419 | |
9c60689e DWT |
21420 | # Run-time system search path for libraries. |
21421 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 21422 | |
9c60689e DWT |
21423 | # Whether dlopen is supported. |
21424 | dlopen_support=$enable_dlopen | |
dbadc56a | 21425 | |
9c60689e DWT |
21426 | # Whether dlopen of programs is supported. |
21427 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 21428 | |
9c60689e DWT |
21429 | # Whether dlopen of statically linked programs is supported. |
21430 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 21431 | |
9c60689e DWT |
21432 | # Commands to strip libraries. |
21433 | old_striplib=$lt_old_striplib | |
21434 | striplib=$lt_striplib | |
35fa52c0 | 21435 | |
35fa52c0 | 21436 | |
9c60689e DWT |
21437 | # The linker used to build libraries. |
21438 | LD=$lt_LD | |
dbadc56a | 21439 | |
9c60689e DWT |
21440 | # Commands used to build an old-style archive. |
21441 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 21442 | |
9c60689e DWT |
21443 | # A language specific compiler. |
21444 | CC=$lt_compiler | |
35fa52c0 | 21445 | |
9c60689e DWT |
21446 | # Is the compiler the GNU compiler? |
21447 | with_gcc=$GCC | |
dbadc56a | 21448 | |
9c60689e DWT |
21449 | # Compiler flag to turn off builtin functions. |
21450 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 21451 | |
9c60689e DWT |
21452 | # How to pass a linker flag through the compiler. |
21453 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 21454 | |
9c60689e DWT |
21455 | # Additional compiler flags for building library objects. |
21456 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 21457 | |
9c60689e DWT |
21458 | # Compiler flag to prevent dynamic linking. |
21459 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 21460 | |
9c60689e DWT |
21461 | # Does compiler simultaneously support -c and -o options? |
21462 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 21463 | |
9c60689e DWT |
21464 | # Whether or not to add -lc for building shared libraries. |
21465 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 21466 | |
9c60689e DWT |
21467 | # Whether or not to disallow shared libs when runtime libs are static. |
21468 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 21469 | |
9c60689e DWT |
21470 | # Compiler flag to allow reflexive dlopens. |
21471 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 21472 | |
9c60689e DWT |
21473 | # Compiler flag to generate shared objects directly from archives. |
21474 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 21475 | |
9c60689e DWT |
21476 | # Whether the compiler copes with passing no objects directly. |
21477 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 21478 | |
9c60689e DWT |
21479 | # Create an old-style archive from a shared archive. |
21480 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 21481 | |
9c60689e DWT |
21482 | # Create a temporary old-style archive to link instead of a shared archive. |
21483 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 21484 | |
9c60689e DWT |
21485 | # Commands used to build a shared archive. |
21486 | archive_cmds=$lt_archive_cmds | |
21487 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 21488 | |
9c60689e DWT |
21489 | # Commands used to build a loadable module if different from building |
21490 | # a shared archive. | |
21491 | module_cmds=$lt_module_cmds | |
21492 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 21493 | |
9c60689e DWT |
21494 | # Whether we are building with GNU ld or not. |
21495 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 21496 | |
9c60689e DWT |
21497 | # Flag that allows shared libraries with undefined symbols to be built. |
21498 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 21499 | |
9c60689e DWT |
21500 | # Flag that enforces no undefined symbols. |
21501 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 21502 | |
9c60689e DWT |
21503 | # Flag to hardcode \$libdir into a binary during linking. |
21504 | # This must work even if \$libdir does not exist | |
21505 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 21506 | |
9c60689e DWT |
21507 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
21508 | # during linking. This must work even if \$libdir does not exist. | |
21509 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 21510 | |
9c60689e DWT |
21511 | # Whether we need a single "-rpath" flag with a separated argument. |
21512 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 21513 | |
9c60689e DWT |
21514 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21515 | # DIR into the resulting binary. | |
21516 | hardcode_direct=$hardcode_direct | |
6b66678a | 21517 | |
9c60689e DWT |
21518 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21519 | # DIR into the resulting binary and the resulting library dependency is | |
21520 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21521 | # library is relocated. | |
21522 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 21523 | |
9c60689e DWT |
21524 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
21525 | # into the resulting binary. | |
21526 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 21527 | |
9c60689e DWT |
21528 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
21529 | # into the resulting binary. | |
21530 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 21531 | |
9c60689e DWT |
21532 | # Set to "yes" if building a shared library automatically hardcodes DIR |
21533 | # into the library and all subsequent libraries and executables linked | |
21534 | # against it. | |
21535 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 21536 | |
9c60689e DWT |
21537 | # Set to yes if linker adds runtime paths of dependent libraries |
21538 | # to runtime path list. | |
21539 | inherit_rpath=$inherit_rpath | |
6b66678a | 21540 | |
9c60689e DWT |
21541 | # Whether libtool must link a program against all its dependency libraries. |
21542 | link_all_deplibs=$link_all_deplibs | |
21543 | ||
21544 | # Fix the shell variable \$srcfile for the compiler. | |
21545 | fix_srcfile_path=$lt_fix_srcfile_path | |
21546 | ||
21547 | # Set to "yes" if exported symbols are required. | |
21548 | always_export_symbols=$always_export_symbols | |
6b66678a | 21549 | |
9c60689e DWT |
21550 | # The commands to list exported symbols. |
21551 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 21552 | |
9c60689e DWT |
21553 | # Symbols that should not be listed in the preloaded symbols. |
21554 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 21555 | |
9c60689e DWT |
21556 | # Symbols that must always be exported. |
21557 | include_expsyms=$lt_include_expsyms | |
6b66678a | 21558 | |
9c60689e DWT |
21559 | # Commands necessary for linking programs (against libraries) with templates. |
21560 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 21561 | |
9c60689e DWT |
21562 | # Specify filename containing input files. |
21563 | file_list_spec=$lt_file_list_spec | |
6b66678a | 21564 | |
9c60689e DWT |
21565 | # How to hardcode a shared library path into an executable. |
21566 | hardcode_action=$hardcode_action | |
21567 | ||
21568 | # The directories searched by this compiler when creating a shared library. | |
21569 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
21570 | ||
21571 | # Dependencies to place before and after the objects being linked to | |
21572 | # create a shared library. | |
21573 | predep_objects=$lt_predep_objects | |
21574 | postdep_objects=$lt_postdep_objects | |
21575 | predeps=$lt_predeps | |
21576 | postdeps=$lt_postdeps | |
21577 | ||
21578 | # The library search path used internally by the compiler when linking | |
21579 | # a shared library. | |
21580 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
21581 | ||
21582 | # ### END LIBTOOL CONFIG | |
21583 | ||
21584 | _LT_EOF | |
21585 | ||
21586 | case $host_os in | |
21587 | aix3*) | |
21588 | cat <<\_LT_EOF >> "$cfgfile" | |
21589 | # AIX sometimes has problems with the GCC collect2 program. For some | |
21590 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
21591 | # vanish in a puff of smoke. | |
21592 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
21593 | COLLECT_NAMES= | |
21594 | export COLLECT_NAMES | |
6b66678a | 21595 | fi |
9c60689e DWT |
21596 | _LT_EOF |
21597 | ;; | |
21598 | esac | |
6b66678a DWT |
21599 | |
21600 | ||
9c60689e | 21601 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 21602 | |
9c60689e DWT |
21603 | |
21604 | # We use sed instead of cat because bash on DJGPP gets confused if | |
21605 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
21606 | # text mode, it properly converts lines to CR/LF. This bash problem | |
21607 | # is reportedly fixed, but why not run on old versions too? | |
21608 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
21609 | || (rm -f "$cfgfile"; exit 1) | |
21610 | ||
21611 | case $xsi_shell in | |
21612 | yes) | |
21613 | cat << \_LT_EOF >> "$cfgfile" | |
21614 | ||
21615 | # func_dirname file append nondir_replacement | |
21616 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
21617 | # otherwise set result to NONDIR_REPLACEMENT. | |
21618 | func_dirname () | |
6b66678a | 21619 | { |
9c60689e DWT |
21620 | case ${1} in |
21621 | */*) func_dirname_result="${1%/*}${2}" ;; | |
21622 | * ) func_dirname_result="${3}" ;; | |
21623 | esac | |
21624 | } | |
6b66678a | 21625 | |
9c60689e DWT |
21626 | # func_basename file |
21627 | func_basename () | |
21628 | { | |
21629 | func_basename_result="${1##*/}" | |
6b66678a | 21630 | } |
6b66678a | 21631 | |
9c60689e DWT |
21632 | # func_dirname_and_basename file append nondir_replacement |
21633 | # perform func_basename and func_dirname in a single function | |
21634 | # call: | |
21635 | # dirname: Compute the dirname of FILE. If nonempty, | |
21636 | # add APPEND to the result, otherwise set result | |
21637 | # to NONDIR_REPLACEMENT. | |
21638 | # value returned in "$func_dirname_result" | |
21639 | # basename: Compute filename of FILE. | |
21640 | # value retuned in "$func_basename_result" | |
21641 | # Implementation must be kept synchronized with func_dirname | |
21642 | # and func_basename. For efficiency, we do not delegate to | |
21643 | # those functions but instead duplicate the functionality here. | |
21644 | func_dirname_and_basename () | |
21645 | { | |
21646 | case ${1} in | |
21647 | */*) func_dirname_result="${1%/*}${2}" ;; | |
21648 | * ) func_dirname_result="${3}" ;; | |
21649 | esac | |
21650 | func_basename_result="${1##*/}" | |
21651 | } | |
6b66678a | 21652 | |
9c60689e DWT |
21653 | # func_stripname prefix suffix name |
21654 | # strip PREFIX and SUFFIX off of NAME. | |
21655 | # PREFIX and SUFFIX must not contain globbing or regex special | |
21656 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
21657 | # dot (in which case that matches only a dot). | |
21658 | func_stripname () | |
21659 | { | |
21660 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
21661 | # positional parameters, so assign one to ordinary parameter first. | |
21662 | func_stripname_result=${3} | |
21663 | func_stripname_result=${func_stripname_result#"${1}"} | |
21664 | func_stripname_result=${func_stripname_result%"${2}"} | |
21665 | } | |
6b66678a | 21666 | |
9c60689e DWT |
21667 | # func_opt_split |
21668 | func_opt_split () | |
21669 | { | |
21670 | func_opt_split_opt=${1%%=*} | |
21671 | func_opt_split_arg=${1#*=} | |
21672 | } | |
6b66678a | 21673 | |
9c60689e DWT |
21674 | # func_lo2o object |
21675 | func_lo2o () | |
21676 | { | |
21677 | case ${1} in | |
21678 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
21679 | *) func_lo2o_result=${1} ;; | |
21680 | esac | |
21681 | } | |
6b66678a | 21682 | |
9c60689e DWT |
21683 | # func_xform libobj-or-source |
21684 | func_xform () | |
21685 | { | |
21686 | func_xform_result=${1%.*}.lo | |
21687 | } | |
6b66678a | 21688 | |
9c60689e DWT |
21689 | # func_arith arithmetic-term... |
21690 | func_arith () | |
21691 | { | |
21692 | func_arith_result=$(( $* )) | |
21693 | } | |
6b66678a | 21694 | |
9c60689e DWT |
21695 | # func_len string |
21696 | # STRING may not start with a hyphen. | |
21697 | func_len () | |
21698 | { | |
21699 | func_len_result=${#1} | |
21700 | } | |
6b66678a | 21701 | |
9c60689e DWT |
21702 | _LT_EOF |
21703 | ;; | |
21704 | *) # Bourne compatible functions. | |
21705 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 21706 | |
9c60689e DWT |
21707 | # func_dirname file append nondir_replacement |
21708 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
21709 | # otherwise set result to NONDIR_REPLACEMENT. | |
21710 | func_dirname () | |
21711 | { | |
21712 | # Extract subdirectory from the argument. | |
21713 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
21714 | if test "X$func_dirname_result" = "X${1}"; then | |
21715 | func_dirname_result="${3}" | |
21716 | else | |
21717 | func_dirname_result="$func_dirname_result${2}" | |
21718 | fi | |
21719 | } | |
6b66678a | 21720 | |
9c60689e DWT |
21721 | # func_basename file |
21722 | func_basename () | |
6b66678a | 21723 | { |
9c60689e | 21724 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 21725 | } |
6b66678a | 21726 | |
6b66678a | 21727 | |
9c60689e DWT |
21728 | # func_stripname prefix suffix name |
21729 | # strip PREFIX and SUFFIX off of NAME. | |
21730 | # PREFIX and SUFFIX must not contain globbing or regex special | |
21731 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
21732 | # dot (in which case that matches only a dot). | |
21733 | # func_strip_suffix prefix name | |
21734 | func_stripname () | |
21735 | { | |
21736 | case ${2} in | |
21737 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
21738 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
21739 | *) func_stripname_result=`$ECHO "X${3}" \ | |
21740 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
21741 | esac | |
21742 | } | |
6b66678a | 21743 | |
9c60689e DWT |
21744 | # sed scripts: |
21745 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
21746 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 21747 | |
9c60689e DWT |
21748 | # func_opt_split |
21749 | func_opt_split () | |
21750 | { | |
21751 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
21752 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
21753 | } | |
6b66678a | 21754 | |
9c60689e DWT |
21755 | # func_lo2o object |
21756 | func_lo2o () | |
21757 | { | |
21758 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
21759 | } | |
21760 | ||
21761 | # func_xform libobj-or-source | |
21762 | func_xform () | |
21763 | { | |
21764 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
21765 | } | |
21766 | ||
21767 | # func_arith arithmetic-term... | |
21768 | func_arith () | |
21769 | { | |
21770 | func_arith_result=`expr "$@"` | |
21771 | } | |
21772 | ||
21773 | # func_len string | |
21774 | # STRING may not start with a hyphen. | |
21775 | func_len () | |
21776 | { | |
21777 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
21778 | } | |
21779 | ||
21780 | _LT_EOF | |
21781 | esac | |
21782 | ||
21783 | case $lt_shell_append in | |
21784 | yes) | |
21785 | cat << \_LT_EOF >> "$cfgfile" | |
21786 | ||
21787 | # func_append var value | |
21788 | # Append VALUE to the end of shell variable VAR. | |
21789 | func_append () | |
21790 | { | |
21791 | eval "$1+=\$2" | |
21792 | } | |
21793 | _LT_EOF | |
21794 | ;; | |
21795 | *) | |
21796 | cat << \_LT_EOF >> "$cfgfile" | |
21797 | ||
21798 | # func_append var value | |
21799 | # Append VALUE to the end of shell variable VAR. | |
21800 | func_append () | |
21801 | { | |
21802 | eval "$1=\$$1\$2" | |
21803 | } | |
21804 | ||
21805 | _LT_EOF | |
21806 | ;; | |
21807 | esac | |
21808 | ||
21809 | ||
21810 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
21811 | || (rm -f "$cfgfile"; exit 1) | |
21812 | ||
21813 | mv -f "$cfgfile" "$ofile" || | |
21814 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
21815 | chmod +x "$ofile" | |
21816 | ||
21817 | ||
21818 | cat <<_LT_EOF >> "$ofile" | |
21819 | ||
21820 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
21821 | ||
21822 | # The linker used to build libraries. | |
21823 | LD=$lt_LD_CXX | |
21824 | ||
21825 | # Commands used to build an old-style archive. | |
21826 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
21827 | ||
21828 | # A language specific compiler. | |
21829 | CC=$lt_compiler_CXX | |
21830 | ||
21831 | # Is the compiler the GNU compiler? | |
21832 | with_gcc=$GCC_CXX | |
21833 | ||
21834 | # Compiler flag to turn off builtin functions. | |
21835 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 21836 | |
9c60689e DWT |
21837 | # How to pass a linker flag through the compiler. |
21838 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 21839 | |
9c60689e DWT |
21840 | # Additional compiler flags for building library objects. |
21841 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 21842 | |
9c60689e DWT |
21843 | # Compiler flag to prevent dynamic linking. |
21844 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 21845 | |
9c60689e DWT |
21846 | # Does compiler simultaneously support -c and -o options? |
21847 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 21848 | |
9c60689e DWT |
21849 | # Whether or not to add -lc for building shared libraries. |
21850 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 21851 | |
9c60689e DWT |
21852 | # Whether or not to disallow shared libs when runtime libs are static. |
21853 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 21854 | |
9c60689e DWT |
21855 | # Compiler flag to allow reflexive dlopens. |
21856 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 21857 | |
9c60689e DWT |
21858 | # Compiler flag to generate shared objects directly from archives. |
21859 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 21860 | |
9c60689e DWT |
21861 | # Whether the compiler copes with passing no objects directly. |
21862 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 21863 | |
9c60689e DWT |
21864 | # Create an old-style archive from a shared archive. |
21865 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 21866 | |
9c60689e DWT |
21867 | # Create a temporary old-style archive to link instead of a shared archive. |
21868 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 21869 | |
9c60689e DWT |
21870 | # Commands used to build a shared archive. |
21871 | archive_cmds=$lt_archive_cmds_CXX | |
21872 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 21873 | |
9c60689e DWT |
21874 | # Commands used to build a loadable module if different from building |
21875 | # a shared archive. | |
21876 | module_cmds=$lt_module_cmds_CXX | |
21877 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 21878 | |
9c60689e DWT |
21879 | # Whether we are building with GNU ld or not. |
21880 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 21881 | |
9c60689e DWT |
21882 | # Flag that allows shared libraries with undefined symbols to be built. |
21883 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 21884 | |
9c60689e DWT |
21885 | # Flag that enforces no undefined symbols. |
21886 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 21887 | |
9c60689e DWT |
21888 | # Flag to hardcode \$libdir into a binary during linking. |
21889 | # This must work even if \$libdir does not exist | |
21890 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 21891 | |
9c60689e DWT |
21892 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
21893 | # during linking. This must work even if \$libdir does not exist. | |
21894 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 21895 | |
9c60689e DWT |
21896 | # Whether we need a single "-rpath" flag with a separated argument. |
21897 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 21898 | |
9c60689e DWT |
21899 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21900 | # DIR into the resulting binary. | |
21901 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 21902 | |
9c60689e DWT |
21903 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21904 | # DIR into the resulting binary and the resulting library dependency is | |
21905 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21906 | # library is relocated. | |
21907 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 21908 | |
9c60689e DWT |
21909 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
21910 | # into the resulting binary. | |
21911 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 21912 | |
9c60689e DWT |
21913 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
21914 | # into the resulting binary. | |
21915 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 21916 | |
9c60689e DWT |
21917 | # Set to "yes" if building a shared library automatically hardcodes DIR |
21918 | # into the library and all subsequent libraries and executables linked | |
21919 | # against it. | |
21920 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 21921 | |
9c60689e DWT |
21922 | # Set to yes if linker adds runtime paths of dependent libraries |
21923 | # to runtime path list. | |
21924 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 21925 | |
9c60689e DWT |
21926 | # Whether libtool must link a program against all its dependency libraries. |
21927 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 21928 | |
9c60689e DWT |
21929 | # Fix the shell variable \$srcfile for the compiler. |
21930 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 21931 | |
9c60689e DWT |
21932 | # Set to "yes" if exported symbols are required. |
21933 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 21934 | |
9c60689e DWT |
21935 | # The commands to list exported symbols. |
21936 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 21937 | |
9c60689e DWT |
21938 | # Symbols that should not be listed in the preloaded symbols. |
21939 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 21940 | |
9c60689e DWT |
21941 | # Symbols that must always be exported. |
21942 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 21943 | |
9c60689e DWT |
21944 | # Commands necessary for linking programs (against libraries) with templates. |
21945 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 21946 | |
9c60689e DWT |
21947 | # Specify filename containing input files. |
21948 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 21949 | |
9c60689e DWT |
21950 | # How to hardcode a shared library path into an executable. |
21951 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 21952 | |
9c60689e DWT |
21953 | # The directories searched by this compiler when creating a shared library. |
21954 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 21955 | |
9c60689e DWT |
21956 | # Dependencies to place before and after the objects being linked to |
21957 | # create a shared library. | |
21958 | predep_objects=$lt_predep_objects_CXX | |
21959 | postdep_objects=$lt_postdep_objects_CXX | |
21960 | predeps=$lt_predeps_CXX | |
21961 | postdeps=$lt_postdeps_CXX | |
309b0535 | 21962 | |
9c60689e DWT |
21963 | # The library search path used internally by the compiler when linking |
21964 | # a shared library. | |
21965 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
21966 | ||
21967 | # ### END LIBTOOL TAG CONFIG: CXX | |
21968 | _LT_EOF | |
21969 | ||
21970 | ;; | |
21971 | ||
21972 | esac | |
21973 | done # for ac_tag | |
21974 | ||
21975 | ||
21976 | as_fn_exit 0 | |
21977 | _ACEOF | |
21978 | ac_clean_files=$ac_clean_files_save | |
21979 | ||
21980 | test $ac_write_fail = 0 || | |
21981 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
21982 | ||
21983 | ||
21984 | # configure is writing to config.log, and then calls config.status. | |
21985 | # config.status does its own redirection, appending to config.log. | |
21986 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21987 | # by configure, so config.status won't be able to write to it; its | |
21988 | # output is simply discarded. So we exec the FD to /dev/null, | |
21989 | # effectively closing config.log, so it can be properly (re)opened and | |
21990 | # appended to by config.status. When coming back to configure, we | |
21991 | # need to make the FD available again. | |
21992 | if test "$no_create" != yes; then | |
21993 | ac_cs_success=: | |
21994 | ac_config_status_args= | |
21995 | test "$silent" = yes && | |
21996 | ac_config_status_args="$ac_config_status_args --quiet" | |
21997 | exec 5>/dev/null | |
21998 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
21999 | exec 5>>config.log | |
22000 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22001 | # would make configure fail if this is the last instruction. | |
22002 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 22003 | fi |
9c60689e DWT |
22004 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
22005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
22006 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
22007 | fi | |
22008 |