]>
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 | ||
6b66678a DWT |
680 | as_awk_strverscmp=' |
681 | # Use only awk features that work with 7th edition Unix awk (1978). | |
682 | # My, what an old awk you have, Mr. Solaris! | |
683 | END { | |
684 | while (length(v1) && length(v2)) { | |
685 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
686 | # Normally this is a single character, but if v1 and v2 contain digits, | |
687 | # compare them as integers and fractions as strverscmp does. | |
688 | if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { | |
689 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
690 | # and advance v1 and v2 past the leading digit strings. | |
691 | for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue | |
692 | for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue | |
693 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
694 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
695 | if (d1 ~ /^0/) { | |
696 | if (d2 ~ /^0/) { | |
697 | # Compare two fractions. | |
698 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
699 | d1 = substr(d1, 2); len1-- | |
700 | d2 = substr(d2, 2); len2-- | |
701 | } | |
702 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
703 | # The two components differ in length, and the common prefix | |
704 | # contains only leading zeros. Consider the longer to be less. | |
705 | d1 = -len1 | |
706 | d2 = -len2 | |
707 | } else { | |
708 | # Otherwise, compare as strings. | |
709 | d1 = "x" d1 | |
710 | d2 = "x" d2 | |
711 | } | |
712 | } else { | |
713 | # A fraction is less than an integer. | |
714 | exit 1 | |
715 | } | |
716 | } else { | |
717 | if (d2 ~ /^0/) { | |
718 | # An integer is greater than a fraction. | |
719 | exit 2 | |
720 | } else { | |
721 | # Compare two integers. | |
722 | d1 += 0 | |
723 | d2 += 0 | |
724 | } | |
725 | } | |
726 | } else { | |
727 | # The normal case, without worrying about digits. | |
728 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
729 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
730 | } | |
731 | if (d1 < d2) exit 1 | |
732 | if (d1 > d2) exit 2 | |
733 | } | |
734 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
735 | # which mishandles some comparisons of empty strings to integers. | |
736 | if (length(v2)) exit 1 | |
737 | if (length(v1)) exit 2 | |
738 | } | |
739 | ' | |
c7aa54aa | 740 | |
9c60689e DWT |
741 | test -n "$DJDIR" || exec 7<&0 </dev/null |
742 | exec 6>&1 | |
c7aa54aa DWT |
743 | |
744 | # Name of the host. | |
745 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
746 | # so uname gets run too. | |
747 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
748 | ||
749 | # | |
750 | # Initializations. | |
751 | # | |
752 | ac_default_prefix=/usr/local | |
753 | ac_clean_files= | |
754 | ac_config_libobj_dir=. | |
755 | LIBOBJS= | |
756 | cross_compiling=no | |
757 | subdirs= | |
758 | MFLAGS= | |
759 | MAKEFLAGS= | |
760 | ||
761 | # Identity of this package. | |
762 | PACKAGE_NAME='Cycript' | |
763 | PACKAGE_TARNAME='cycript' | |
764 | PACKAGE_VERSION='0.9' | |
765 | PACKAGE_STRING='Cycript 0.9' | |
766 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
767 | PACKAGE_URL='http://www.cycript.org/' | |
768 | ||
35fa52c0 | 769 | ac_unique_file="Console.cpp" |
6b66678a DWT |
770 | # Factoring default headers for most tests. |
771 | ac_includes_default="\ | |
772 | #include <stdio.h> | |
773 | #ifdef HAVE_SYS_TYPES_H | |
774 | # include <sys/types.h> | |
775 | #endif | |
776 | #ifdef HAVE_SYS_STAT_H | |
777 | # include <sys/stat.h> | |
778 | #endif | |
779 | #ifdef STDC_HEADERS | |
780 | # include <stdlib.h> | |
781 | # include <stddef.h> | |
782 | #else | |
783 | # ifdef HAVE_STDLIB_H | |
784 | # include <stdlib.h> | |
785 | # endif | |
786 | #endif | |
787 | #ifdef HAVE_STRING_H | |
788 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
789 | # include <memory.h> | |
790 | # endif | |
791 | # include <string.h> | |
792 | #endif | |
793 | #ifdef HAVE_STRINGS_H | |
794 | # include <strings.h> | |
795 | #endif | |
796 | #ifdef HAVE_INTTYPES_H | |
797 | # include <inttypes.h> | |
798 | #endif | |
799 | #ifdef HAVE_STDINT_H | |
800 | # include <stdint.h> | |
801 | #endif | |
802 | #ifdef HAVE_UNISTD_H | |
803 | # include <unistd.h> | |
804 | #endif" | |
805 | ||
9c60689e DWT |
806 | ac_subst_vars='LTLIBOBJS |
807 | LIBOBJS | |
47aaa820 | 808 | ifGNUmake |
e1cce270 | 809 | CY_OBJECTIVEC_MACH |
47aaa820 | 810 | GNUSTEP_CONFIG |
c823f118 | 811 | CY_OBJECTIVEC |
309b0535 | 812 | LIBFFI_LIBS |
35fa52c0 | 813 | LIBFFI_CFLAGS |
3fd51f51 | 814 | CY_EXECUTE |
a667869d DWT |
815 | ac_ct_OBJCXX |
816 | OBJCXXFLAGS | |
817 | OBJCXX | |
35fa52c0 DWT |
818 | WEBKIT_LIBS |
819 | WEBKIT_CFLAGS | |
35fa52c0 DWT |
820 | LTLIBICONV |
821 | LIBICONV | |
35fa52c0 DWT |
822 | INSTALL_DATA |
823 | INSTALL_SCRIPT | |
824 | INSTALL_PROGRAM | |
549f29b5 | 825 | LTLIBAPR |
3530897b | 826 | TIME |
9c60689e DWT |
827 | GPERF |
828 | _BASH | |
35fa52c0 DWT |
829 | FLEX |
830 | LEXLIB | |
9c60689e DWT |
831 | LEX_OUTPUT_ROOT |
832 | LEX | |
833 | BISON | |
834 | AWK | |
835 | YFLAGS | |
836 | YACC | |
47aaa820 DWT |
837 | CXXCPP |
838 | ac_ct_CXX | |
839 | CXXFLAGS | |
840 | CXX | |
3fd51f51 | 841 | PKG_CONFIG |
9c60689e DWT |
842 | CPP |
843 | OTOOL64 | |
844 | OTOOL | |
845 | LIPO | |
846 | NMEDIT | |
847 | DSYMUTIL | |
848 | lt_ECHO | |
849 | RANLIB | |
850 | STRIP | |
851 | AR | |
852 | OBJDUMP | |
853 | LN_S | |
854 | NM | |
855 | ac_ct_DUMPBIN | |
856 | DUMPBIN | |
857 | LD | |
858 | FGREP | |
859 | EGREP | |
860 | GREP | |
861 | SED | |
35fa52c0 DWT |
862 | OBJEXT |
863 | EXEEXT | |
864 | ac_ct_CC | |
865 | CPPFLAGS | |
866 | LDFLAGS | |
867 | CFLAGS | |
868 | CC | |
9c60689e DWT |
869 | host_os |
870 | host_vendor | |
871 | host_cpu | |
872 | host | |
873 | build_os | |
874 | build_vendor | |
875 | build_cpu | |
876 | build | |
877 | LIBTOOL | |
dbadc56a | 878 | target_alias |
c7aa54aa DWT |
879 | host_alias |
880 | build_alias | |
881 | LIBS | |
882 | ECHO_T | |
883 | ECHO_N | |
884 | ECHO_C | |
885 | DEFS | |
886 | mandir | |
887 | localedir | |
888 | libdir | |
889 | psdir | |
890 | pdfdir | |
891 | dvidir | |
892 | htmldir | |
893 | infodir | |
894 | docdir | |
895 | oldincludedir | |
896 | includedir | |
897 | localstatedir | |
898 | sharedstatedir | |
899 | sysconfdir | |
900 | datadir | |
901 | datarootdir | |
902 | libexecdir | |
903 | sbindir | |
904 | bindir | |
905 | program_transform_name | |
906 | prefix | |
907 | exec_prefix | |
908 | PACKAGE_URL | |
909 | PACKAGE_BUGREPORT | |
910 | PACKAGE_STRING | |
911 | PACKAGE_VERSION | |
912 | PACKAGE_TARNAME | |
913 | PACKAGE_NAME | |
914 | PATH_SEPARATOR | |
915 | SHELL' | |
916 | ac_subst_files='' | |
917 | ac_user_opts=' | |
918 | enable_option_checking | |
9c60689e | 919 | enable_static |
549f29b5 | 920 | enable_shared |
9c60689e DWT |
921 | with_pic |
922 | enable_fast_install | |
35fa52c0 | 923 | with_gnu_ld |
9c60689e DWT |
924 | enable_libtool_lock |
925 | with_apr | |
35fa52c0 DWT |
926 | enable_rpath |
927 | with_libiconv_prefix | |
c7aa54aa DWT |
928 | ' |
929 | ac_precious_vars='build_alias | |
930 | host_alias | |
dbadc56a | 931 | target_alias |
35fa52c0 DWT |
932 | CC |
933 | CFLAGS | |
dbadc56a DWT |
934 | LDFLAGS |
935 | LIBS | |
936 | CPPFLAGS | |
9c60689e | 937 | CPP |
3fd51f51 | 938 | PKG_CONFIG |
35fa52c0 DWT |
939 | CXX |
940 | CXXFLAGS | |
941 | CCC | |
9c60689e | 942 | CXXCPP |
47aaa820 DWT |
943 | YACC |
944 | YFLAGS | |
27557508 | 945 | GPERF |
35fa52c0 DWT |
946 | WEBKIT_CFLAGS |
947 | WEBKIT_LIBS | |
9c60689e | 948 | OBJCXX |
a667869d DWT |
949 | OBJCXXFLAGS |
950 | LIBFFI_CFLAGS | |
951 | LIBFFI_LIBS' | |
c7aa54aa DWT |
952 | |
953 | ||
954 | # Initialize some variables set by options. | |
955 | ac_init_help= | |
956 | ac_init_version=false | |
957 | ac_unrecognized_opts= | |
958 | ac_unrecognized_sep= | |
959 | # The variables have the same names as the options, with | |
960 | # dashes changed to underlines. | |
961 | cache_file=/dev/null | |
962 | exec_prefix=NONE | |
963 | no_create= | |
964 | no_recursion= | |
965 | prefix=NONE | |
966 | program_prefix=NONE | |
967 | program_suffix=NONE | |
968 | program_transform_name=s,x,x, | |
969 | silent= | |
970 | site= | |
971 | srcdir= | |
972 | verbose= | |
973 | x_includes=NONE | |
974 | x_libraries=NONE | |
975 | ||
976 | # Installation directory options. | |
977 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
978 | # and all the variables that are supposed to be based on exec_prefix | |
979 | # by default will actually change. | |
980 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
981 | # (The list follows the same order as the GNU Coding Standards.) | |
982 | bindir='${exec_prefix}/bin' | |
983 | sbindir='${exec_prefix}/sbin' | |
984 | libexecdir='${exec_prefix}/libexec' | |
985 | datarootdir='${prefix}/share' | |
986 | datadir='${datarootdir}' | |
987 | sysconfdir='${prefix}/etc' | |
988 | sharedstatedir='${prefix}/com' | |
989 | localstatedir='${prefix}/var' | |
990 | includedir='${prefix}/include' | |
991 | oldincludedir='/usr/include' | |
992 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
993 | infodir='${datarootdir}/info' | |
994 | htmldir='${docdir}' | |
995 | dvidir='${docdir}' | |
996 | pdfdir='${docdir}' | |
997 | psdir='${docdir}' | |
998 | libdir='${exec_prefix}/lib' | |
999 | localedir='${datarootdir}/locale' | |
1000 | mandir='${datarootdir}/man' | |
1001 | ||
1002 | ac_prev= | |
1003 | ac_dashdash= | |
1004 | for ac_option | |
1005 | do | |
1006 | # If the previous option needs an argument, assign it. | |
1007 | if test -n "$ac_prev"; then | |
1008 | eval $ac_prev=\$ac_option | |
1009 | ac_prev= | |
1010 | continue | |
1011 | fi | |
1012 | ||
1013 | case $ac_option in | |
1014 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1015 | *) ac_optarg=yes ;; | |
1016 | esac | |
1017 | ||
1018 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1019 | ||
1020 | case $ac_dashdash$ac_option in | |
1021 | --) | |
1022 | ac_dashdash=yes ;; | |
1023 | ||
1024 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1025 | ac_prev=bindir ;; | |
1026 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1027 | bindir=$ac_optarg ;; | |
1028 | ||
1029 | -build | --build | --buil | --bui | --bu) | |
1030 | ac_prev=build_alias ;; | |
1031 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1032 | build_alias=$ac_optarg ;; | |
1033 | ||
1034 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1035 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1036 | ac_prev=cache_file ;; | |
1037 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1038 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1039 | cache_file=$ac_optarg ;; | |
1040 | ||
1041 | --config-cache | -C) | |
1042 | cache_file=config.cache ;; | |
1043 | ||
1044 | -datadir | --datadir | --datadi | --datad) | |
1045 | ac_prev=datadir ;; | |
1046 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1047 | datadir=$ac_optarg ;; | |
1048 | ||
1049 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1050 | | --dataroo | --dataro | --datar) | |
1051 | ac_prev=datarootdir ;; | |
1052 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1053 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1054 | datarootdir=$ac_optarg ;; | |
1055 | ||
1056 | -disable-* | --disable-*) | |
1057 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1058 | # Reject names that are not valid shell variable names. | |
1059 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1060 | as_fn_error "invalid feature name: $ac_useropt" | |
1061 | ac_useropt_orig=$ac_useropt | |
1062 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1063 | case $ac_user_opts in | |
1064 | *" | |
1065 | "enable_$ac_useropt" | |
1066 | "*) ;; | |
1067 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1068 | ac_unrecognized_sep=', ';; | |
1069 | esac | |
1070 | eval enable_$ac_useropt=no ;; | |
1071 | ||
1072 | -docdir | --docdir | --docdi | --doc | --do) | |
1073 | ac_prev=docdir ;; | |
1074 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1075 | docdir=$ac_optarg ;; | |
1076 | ||
1077 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1078 | ac_prev=dvidir ;; | |
1079 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1080 | dvidir=$ac_optarg ;; | |
1081 | ||
1082 | -enable-* | --enable-*) | |
1083 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1084 | # Reject names that are not valid shell variable names. | |
1085 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1086 | as_fn_error "invalid feature name: $ac_useropt" | |
1087 | ac_useropt_orig=$ac_useropt | |
1088 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1089 | case $ac_user_opts in | |
1090 | *" | |
1091 | "enable_$ac_useropt" | |
1092 | "*) ;; | |
1093 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1094 | ac_unrecognized_sep=', ';; | |
1095 | esac | |
1096 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1097 | ||
1098 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1099 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1100 | | --exec | --exe | --ex) | |
1101 | ac_prev=exec_prefix ;; | |
1102 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1103 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1104 | | --exec=* | --exe=* | --ex=*) | |
1105 | exec_prefix=$ac_optarg ;; | |
1106 | ||
1107 | -gas | --gas | --ga | --g) | |
1108 | # Obsolete; use --with-gas. | |
1109 | with_gas=yes ;; | |
1110 | ||
1111 | -help | --help | --hel | --he | -h) | |
1112 | ac_init_help=long ;; | |
1113 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1114 | ac_init_help=recursive ;; | |
1115 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1116 | ac_init_help=short ;; | |
1117 | ||
1118 | -host | --host | --hos | --ho) | |
1119 | ac_prev=host_alias ;; | |
1120 | -host=* | --host=* | --hos=* | --ho=*) | |
1121 | host_alias=$ac_optarg ;; | |
1122 | ||
1123 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1124 | ac_prev=htmldir ;; | |
1125 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1126 | | --ht=*) | |
1127 | htmldir=$ac_optarg ;; | |
1128 | ||
1129 | -includedir | --includedir | --includedi | --included | --include \ | |
1130 | | --includ | --inclu | --incl | --inc) | |
1131 | ac_prev=includedir ;; | |
1132 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1133 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1134 | includedir=$ac_optarg ;; | |
1135 | ||
1136 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1137 | ac_prev=infodir ;; | |
1138 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1139 | infodir=$ac_optarg ;; | |
1140 | ||
1141 | -libdir | --libdir | --libdi | --libd) | |
1142 | ac_prev=libdir ;; | |
1143 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1144 | libdir=$ac_optarg ;; | |
1145 | ||
1146 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1147 | | --libexe | --libex | --libe) | |
1148 | ac_prev=libexecdir ;; | |
1149 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1150 | | --libexe=* | --libex=* | --libe=*) | |
1151 | libexecdir=$ac_optarg ;; | |
1152 | ||
1153 | -localedir | --localedir | --localedi | --localed | --locale) | |
1154 | ac_prev=localedir ;; | |
1155 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1156 | localedir=$ac_optarg ;; | |
1157 | ||
1158 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1159 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1160 | ac_prev=localstatedir ;; | |
1161 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1162 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1163 | localstatedir=$ac_optarg ;; | |
1164 | ||
1165 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1166 | ac_prev=mandir ;; | |
1167 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1168 | mandir=$ac_optarg ;; | |
1169 | ||
1170 | -nfp | --nfp | --nf) | |
1171 | # Obsolete; use --without-fp. | |
1172 | with_fp=no ;; | |
1173 | ||
1174 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1175 | | --no-cr | --no-c | -n) | |
1176 | no_create=yes ;; | |
1177 | ||
1178 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1179 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1180 | no_recursion=yes ;; | |
1181 | ||
1182 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1183 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1184 | | --oldin | --oldi | --old | --ol | --o) | |
1185 | ac_prev=oldincludedir ;; | |
1186 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1187 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1188 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1189 | oldincludedir=$ac_optarg ;; | |
1190 | ||
1191 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1192 | ac_prev=prefix ;; | |
1193 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1194 | prefix=$ac_optarg ;; | |
1195 | ||
1196 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1197 | | --program-pre | --program-pr | --program-p) | |
1198 | ac_prev=program_prefix ;; | |
1199 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1200 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1201 | program_prefix=$ac_optarg ;; | |
1202 | ||
1203 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1204 | | --program-suf | --program-su | --program-s) | |
1205 | ac_prev=program_suffix ;; | |
1206 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1207 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1208 | program_suffix=$ac_optarg ;; | |
1209 | ||
1210 | -program-transform-name | --program-transform-name \ | |
1211 | | --program-transform-nam | --program-transform-na \ | |
1212 | | --program-transform-n | --program-transform- \ | |
1213 | | --program-transform | --program-transfor \ | |
1214 | | --program-transfo | --program-transf \ | |
1215 | | --program-trans | --program-tran \ | |
1216 | | --progr-tra | --program-tr | --program-t) | |
1217 | ac_prev=program_transform_name ;; | |
1218 | -program-transform-name=* | --program-transform-name=* \ | |
1219 | | --program-transform-nam=* | --program-transform-na=* \ | |
1220 | | --program-transform-n=* | --program-transform-=* \ | |
1221 | | --program-transform=* | --program-transfor=* \ | |
1222 | | --program-transfo=* | --program-transf=* \ | |
1223 | | --program-trans=* | --program-tran=* \ | |
1224 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1225 | program_transform_name=$ac_optarg ;; | |
1226 | ||
1227 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1228 | ac_prev=pdfdir ;; | |
1229 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1230 | pdfdir=$ac_optarg ;; | |
1231 | ||
1232 | -psdir | --psdir | --psdi | --psd | --ps) | |
1233 | ac_prev=psdir ;; | |
1234 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1235 | psdir=$ac_optarg ;; | |
1236 | ||
1237 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1238 | | -silent | --silent | --silen | --sile | --sil) | |
1239 | silent=yes ;; | |
1240 | ||
1241 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1242 | ac_prev=sbindir ;; | |
1243 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1244 | | --sbi=* | --sb=*) | |
1245 | sbindir=$ac_optarg ;; | |
1246 | ||
1247 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1248 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1249 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1250 | | --sha | --sh) | |
1251 | ac_prev=sharedstatedir ;; | |
1252 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1253 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1254 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1255 | | --sha=* | --sh=*) | |
1256 | sharedstatedir=$ac_optarg ;; | |
1257 | ||
1258 | -site | --site | --sit) | |
1259 | ac_prev=site ;; | |
1260 | -site=* | --site=* | --sit=*) | |
1261 | site=$ac_optarg ;; | |
1262 | ||
1263 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1264 | ac_prev=srcdir ;; | |
1265 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1266 | srcdir=$ac_optarg ;; | |
1267 | ||
1268 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1269 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1270 | ac_prev=sysconfdir ;; | |
1271 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1272 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1273 | sysconfdir=$ac_optarg ;; | |
1274 | ||
1275 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1276 | ac_prev=target_alias ;; | |
1277 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1278 | target_alias=$ac_optarg ;; | |
1279 | ||
1280 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1281 | verbose=yes ;; | |
1282 | ||
1283 | -version | --version | --versio | --versi | --vers | -V) | |
1284 | ac_init_version=: ;; | |
1285 | ||
1286 | -with-* | --with-*) | |
1287 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1288 | # Reject names that are not valid shell variable names. | |
1289 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1290 | as_fn_error "invalid package name: $ac_useropt" | |
1291 | ac_useropt_orig=$ac_useropt | |
1292 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1293 | case $ac_user_opts in | |
1294 | *" | |
1295 | "with_$ac_useropt" | |
1296 | "*) ;; | |
1297 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1298 | ac_unrecognized_sep=', ';; | |
1299 | esac | |
1300 | eval with_$ac_useropt=\$ac_optarg ;; | |
1301 | ||
1302 | -without-* | --without-*) | |
1303 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1304 | # Reject names that are not valid shell variable names. | |
1305 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1306 | as_fn_error "invalid package name: $ac_useropt" | |
1307 | ac_useropt_orig=$ac_useropt | |
1308 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1309 | case $ac_user_opts in | |
1310 | *" | |
1311 | "with_$ac_useropt" | |
1312 | "*) ;; | |
1313 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1314 | ac_unrecognized_sep=', ';; | |
1315 | esac | |
1316 | eval with_$ac_useropt=no ;; | |
1317 | ||
1318 | --x) | |
1319 | # Obsolete; use --with-x. | |
1320 | with_x=yes ;; | |
1321 | ||
1322 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1323 | | --x-incl | --x-inc | --x-in | --x-i) | |
1324 | ac_prev=x_includes ;; | |
1325 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1326 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1327 | x_includes=$ac_optarg ;; | |
1328 | ||
1329 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1330 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1331 | ac_prev=x_libraries ;; | |
1332 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1333 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1334 | x_libraries=$ac_optarg ;; | |
1335 | ||
1336 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1337 | Try \`$0 --help' for more information." | |
1338 | ;; | |
1339 | ||
1340 | *=*) | |
1341 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1342 | # Reject names that are not valid shell variable names. | |
1343 | case $ac_envvar in #( | |
1344 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1345 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1346 | esac | |
1347 | eval $ac_envvar=\$ac_optarg | |
1348 | export $ac_envvar ;; | |
1349 | ||
1350 | *) | |
1351 | # FIXME: should be removed in autoconf 3.0. | |
1352 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1353 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1354 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1355 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1356 | ;; | |
1357 | ||
1358 | esac | |
1359 | done | |
1360 | ||
1361 | if test -n "$ac_prev"; then | |
1362 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1363 | as_fn_error "missing argument to $ac_option" | |
1364 | fi | |
1365 | ||
1366 | if test -n "$ac_unrecognized_opts"; then | |
1367 | case $enable_option_checking in | |
1368 | no) ;; | |
1369 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1370 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1371 | esac | |
1372 | fi | |
1373 | ||
1374 | # Check all directory arguments for consistency. | |
1375 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1376 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1377 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1378 | libdir localedir mandir | |
1379 | do | |
1380 | eval ac_val=\$$ac_var | |
1381 | # Remove trailing slashes. | |
1382 | case $ac_val in | |
1383 | */ ) | |
1384 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1385 | eval $ac_var=\$ac_val;; | |
1386 | esac | |
1387 | # Be sure to have absolute directory names. | |
1388 | case $ac_val in | |
1389 | [\\/$]* | ?:[\\/]* ) continue;; | |
1390 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1391 | esac | |
1392 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1393 | done | |
1394 | ||
1395 | # There might be people who depend on the old broken behavior: `$host' | |
1396 | # used to hold the argument of --host etc. | |
1397 | # FIXME: To remove some day. | |
1398 | build=$build_alias | |
1399 | host=$host_alias | |
1400 | target=$target_alias | |
1401 | ||
1402 | # FIXME: To remove some day. | |
1403 | if test "x$host_alias" != x; then | |
1404 | if test "x$build_alias" = x; then | |
1405 | cross_compiling=maybe | |
1406 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1407 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1408 | elif test "x$build_alias" != "x$host_alias"; then | |
1409 | cross_compiling=yes | |
1410 | fi | |
1411 | fi | |
1412 | ||
1413 | ac_tool_prefix= | |
1414 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1415 | ||
1416 | test "$silent" = yes && exec 6>/dev/null | |
1417 | ||
1418 | ||
1419 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1420 | ac_ls_di=`ls -di .` && | |
1421 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1422 | as_fn_error "working directory cannot be determined" | |
1423 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1424 | as_fn_error "pwd does not report name of working directory" | |
1425 | ||
1426 | ||
1427 | # Find the source files, if location was not specified. | |
1428 | if test -z "$srcdir"; then | |
1429 | ac_srcdir_defaulted=yes | |
1430 | # Try the directory containing this script, then the parent directory. | |
1431 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1432 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1433 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1434 | X"$as_myself" : 'X\(//\)$' \| \ | |
1435 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1436 | $as_echo X"$as_myself" | | |
1437 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1438 | s//\1/ | |
1439 | q | |
1440 | } | |
1441 | /^X\(\/\/\)[^/].*/{ | |
1442 | s//\1/ | |
1443 | q | |
1444 | } | |
1445 | /^X\(\/\/\)$/{ | |
1446 | s//\1/ | |
1447 | q | |
1448 | } | |
1449 | /^X\(\/\).*/{ | |
1450 | s//\1/ | |
1451 | q | |
1452 | } | |
1453 | s/.*/./; q'` | |
1454 | srcdir=$ac_confdir | |
1455 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1456 | srcdir=.. | |
1457 | fi | |
1458 | else | |
1459 | ac_srcdir_defaulted=no | |
1460 | fi | |
1461 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1462 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1463 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1464 | fi | |
1465 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1466 | ac_abs_confdir=`( | |
1467 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1468 | pwd)` | |
1469 | # When building in place, set srcdir=. | |
1470 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1471 | srcdir=. | |
1472 | fi | |
1473 | # Remove unnecessary trailing slashes from srcdir. | |
1474 | # Double slashes in file names in object file debugging info | |
1475 | # mess up M-x gdb in Emacs. | |
1476 | case $srcdir in | |
1477 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1478 | esac | |
1479 | for ac_var in $ac_precious_vars; do | |
1480 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1481 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1482 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1483 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1484 | done | |
1485 | ||
1486 | # | |
1487 | # Report the --help message. | |
1488 | # | |
1489 | if test "$ac_init_help" = "long"; then | |
1490 | # Omit some internal or obsolete options to make the list less imposing. | |
1491 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1492 | cat <<_ACEOF | |
1493 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1494 | ||
1495 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1496 | ||
1497 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1498 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1499 | ||
1500 | Defaults for the options are specified in brackets. | |
1501 | ||
1502 | Configuration: | |
1503 | -h, --help display this help and exit | |
1504 | --help=short display options specific to this package | |
1505 | --help=recursive display the short help of all the included packages | |
1506 | -V, --version display version information and exit | |
1507 | -q, --quiet, --silent do not print \`checking...' messages | |
1508 | --cache-file=FILE cache test results in FILE [disabled] | |
1509 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1510 | -n, --no-create do not create output files | |
1511 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1512 | ||
1513 | Installation directories: | |
1514 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1515 | [$ac_default_prefix] | |
1516 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1517 | [PREFIX] | |
1518 | ||
1519 | By default, \`make install' will install all the files in | |
1520 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1521 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1522 | for instance \`--prefix=\$HOME'. | |
1523 | ||
1524 | For better control, use the options below. | |
1525 | ||
1526 | Fine tuning of the installation directories: | |
1527 | --bindir=DIR user executables [EPREFIX/bin] | |
1528 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1529 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1530 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1531 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1532 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1533 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1534 | --includedir=DIR C header files [PREFIX/include] | |
1535 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1536 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1537 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1538 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1539 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1540 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1541 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1542 | --htmldir=DIR html documentation [DOCDIR] | |
1543 | --dvidir=DIR dvi documentation [DOCDIR] | |
1544 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1545 | --psdir=DIR ps documentation [DOCDIR] | |
1546 | _ACEOF | |
1547 | ||
1548 | cat <<\_ACEOF | |
35fa52c0 DWT |
1549 | |
1550 | System types: | |
1551 | --build=BUILD configure for building on BUILD [guessed] | |
1552 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1553 | _ACEOF |
1554 | fi | |
1555 | ||
1556 | if test -n "$ac_init_help"; then | |
1557 | case $ac_init_help in | |
1558 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1559 | esac | |
1560 | cat <<\_ACEOF | |
1561 | ||
35fa52c0 DWT |
1562 | Optional Features: |
1563 | --disable-option-checking ignore unrecognized --enable/--with options | |
1564 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1565 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
549f29b5 | 1566 | --enable-static[=PKGS] build static libraries [default=no] |
9c60689e | 1567 | --enable-shared[=PKGS] build shared libraries [default=yes] |
9c60689e DWT |
1568 | --enable-fast-install[=PKGS] |
1569 | optimize for fast installation [default=yes] | |
1570 | --disable-libtool-lock avoid locking (might break parallel builds) | |
35fa52c0 DWT |
1571 | --disable-rpath do not hardcode runtime library paths |
1572 | ||
1573 | Optional Packages: | |
1574 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1575 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1576 | --with-pic try to use only PIC/non-PIC objects [default=use |
1577 | both] | |
1578 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
309b0535 DWT |
1579 | --with-apr=PATH prefix for installed APR or the full path to |
1580 | apr-config | |
35fa52c0 DWT |
1581 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1582 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1583 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1584 | ||
dbadc56a | 1585 | Some influential environment variables: |
35fa52c0 DWT |
1586 | CC C compiler command |
1587 | CFLAGS C compiler flags | |
dbadc56a DWT |
1588 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1589 | nonstandard directory <lib dir> | |
1590 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1591 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1592 | you have headers in a nonstandard directory <include dir> |
9c60689e | 1593 | CPP C preprocessor |
3fd51f51 | 1594 | PKG_CONFIG path to pkg-config utility |
47aaa820 DWT |
1595 | CXX C++ compiler command |
1596 | CXXFLAGS C++ compiler flags | |
1597 | CXXCPP C++ preprocessor | |
9c60689e DWT |
1598 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1599 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1600 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1601 | This script will default YFLAGS to the empty string to avoid a | |
1602 | default value of `-d' given by some make applications. | |
27557508 | 1603 | GPERF perfect hash function generator |
35fa52c0 DWT |
1604 | WEBKIT_CFLAGS |
1605 | C compiler flags for WEBKIT, overriding pkg-config | |
1606 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
a667869d DWT |
1607 | OBJCXX Objective C++ compiler command |
1608 | OBJCXXFLAGS Objective C++ compiler flags | |
35fa52c0 DWT |
1609 | LIBFFI_CFLAGS |
1610 | C compiler flags for LIBFFI, overriding pkg-config | |
1611 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
dbadc56a DWT |
1612 | |
1613 | Use these variables to override the choices made by `configure' or to help | |
1614 | it to find libraries and programs with nonstandard names/locations. | |
1615 | ||
c7aa54aa DWT |
1616 | Report bugs to <saurik@saurik.com>. |
1617 | Cycript home page: <http://www.cycript.org/>. | |
1618 | _ACEOF | |
1619 | ac_status=$? | |
1620 | fi | |
1621 | ||
1622 | if test "$ac_init_help" = "recursive"; then | |
1623 | # If there are subdirs, report their specific --help. | |
1624 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1625 | test -d "$ac_dir" || | |
1626 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1627 | continue | |
1628 | ac_builddir=. | |
1629 | ||
1630 | case "$ac_dir" in | |
1631 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1632 | *) | |
1633 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1634 | # A ".." for each directory in $ac_dir_suffix. | |
1635 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1636 | case $ac_top_builddir_sub in | |
1637 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1638 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1639 | esac ;; | |
1640 | esac | |
1641 | ac_abs_top_builddir=$ac_pwd | |
1642 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1643 | # for backward compatibility: | |
1644 | ac_top_builddir=$ac_top_build_prefix | |
1645 | ||
1646 | case $srcdir in | |
1647 | .) # We are building in place. | |
1648 | ac_srcdir=. | |
1649 | ac_top_srcdir=$ac_top_builddir_sub | |
1650 | ac_abs_top_srcdir=$ac_pwd ;; | |
1651 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1652 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1653 | ac_top_srcdir=$srcdir | |
1654 | ac_abs_top_srcdir=$srcdir ;; | |
1655 | *) # Relative name. | |
1656 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1657 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1658 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1659 | esac | |
1660 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1661 | ||
1662 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1663 | # Check for guested configure. | |
1664 | if test -f "$ac_srcdir/configure.gnu"; then | |
1665 | echo && | |
1666 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1667 | elif test -f "$ac_srcdir/configure"; then | |
1668 | echo && | |
1669 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1670 | else | |
1671 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1672 | fi || ac_status=$? | |
1673 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1674 | done | |
1675 | fi | |
1676 | ||
1677 | test -n "$ac_init_help" && exit $ac_status | |
1678 | if $ac_init_version; then | |
1679 | cat <<\_ACEOF | |
1680 | Cycript configure 0.9 | |
9c60689e | 1681 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1682 | |
1683 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1684 | This configure script is free software; the Free Software Foundation | |
1685 | gives unlimited permission to copy, distribute and modify it. | |
1686 | _ACEOF | |
1687 | exit | |
1688 | fi | |
1689 | ||
1690 | ## ------------------------ ## | |
1691 | ## Autoconf initialization. ## | |
1692 | ## ------------------------ ## | |
dbadc56a | 1693 | |
35fa52c0 DWT |
1694 | # ac_fn_c_try_compile LINENO |
1695 | # -------------------------- | |
1696 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1697 | ac_fn_c_try_compile () | |
1698 | { | |
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1700 | rm -f conftest.$ac_objext | |
1701 | if { { ac_try="$ac_compile" | |
1702 | case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_compile") 2>conftest.err | |
1709 | ac_status=$? | |
1710 | if test -s conftest.err; then | |
1711 | grep -v '^ *+' conftest.err >conftest.er1 | |
1712 | cat conftest.er1 >&5 | |
1713 | mv -f conftest.er1 conftest.err | |
1714 | fi | |
1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1716 | test $ac_status = 0; } && { | |
1717 | test -z "$ac_c_werror_flag" || | |
1718 | test ! -s conftest.err | |
1719 | } && test -s conftest.$ac_objext; then : | |
1720 | ac_retval=0 | |
1721 | else | |
1722 | $as_echo "$as_me: failed program was:" >&5 | |
1723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1724 | ||
1725 | ac_retval=1 | |
1726 | fi | |
1727 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1728 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1729 | |
1730 | } # ac_fn_c_try_compile | |
1731 | ||
1732 | # ac_fn_c_try_link LINENO | |
1733 | # ----------------------- | |
1734 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1735 | ac_fn_c_try_link () | |
1736 | { | |
1737 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1739 | if { { ac_try="$ac_link" | |
1740 | case "(($ac_try" in | |
1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1742 | *) ac_try_echo=$ac_try;; | |
1743 | esac | |
1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1745 | $as_echo "$ac_try_echo"; } >&5 | |
1746 | (eval "$ac_link") 2>conftest.err | |
1747 | ac_status=$? | |
1748 | if test -s conftest.err; then | |
1749 | grep -v '^ *+' conftest.err >conftest.er1 | |
1750 | cat conftest.er1 >&5 | |
1751 | mv -f conftest.er1 conftest.err | |
1752 | fi | |
1753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1754 | test $ac_status = 0; } && { | |
1755 | test -z "$ac_c_werror_flag" || | |
1756 | test ! -s conftest.err | |
1757 | } && test -s conftest$ac_exeext && { | |
1758 | test "$cross_compiling" = yes || | |
1759 | $as_test_x conftest$ac_exeext | |
1760 | }; then : | |
1761 | ac_retval=0 | |
1762 | else | |
1763 | $as_echo "$as_me: failed program was:" >&5 | |
1764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1765 | ||
1766 | ac_retval=1 | |
1767 | fi | |
1768 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1769 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1770 | # interfere with the next link command; also delete a directory that is | |
1771 | # left behind by Apple's compiler. We do this before executing the actions. | |
1772 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1773 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1774 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1775 | |
1776 | } # ac_fn_c_try_link | |
1777 | ||
9c60689e DWT |
1778 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1779 | # ------------------------------------------------------- | |
1780 | # Tests whether HEADER exists and can be compiled using the include files in | |
1781 | # INCLUDES, setting the cache variable VAR accordingly. | |
1782 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1783 | { |
1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1786 | $as_echo_n "checking for $2... " >&6; } | |
1787 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1788 | $as_echo_n "(cached) " >&6 | |
1789 | else | |
1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1791 | /* end confdefs.h. */ | |
1792 | $4 | |
1793 | #include <$2> | |
1794 | _ACEOF | |
1795 | if ac_fn_c_try_compile "$LINENO"; then : | |
1796 | eval "$3=yes" | |
1797 | else | |
1798 | eval "$3=no" | |
1799 | fi | |
1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1801 | fi | |
1802 | eval ac_res=\$$3 | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1804 | $as_echo "$ac_res" >&6; } | |
1805 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1806 | ||
1807 | } # ac_fn_c_check_header_compile | |
1808 | ||
1809 | # ac_fn_c_try_cpp LINENO | |
1810 | # ---------------------- | |
1811 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1812 | ac_fn_c_try_cpp () | |
1813 | { | |
1814 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1815 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1816 | case "(($ac_try" in |
1817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1818 | *) ac_try_echo=$ac_try;; | |
1819 | esac | |
1820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1821 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1823 | ac_status=$? |
1824 | if test -s conftest.err; then | |
1825 | grep -v '^ *+' conftest.err >conftest.er1 | |
1826 | cat conftest.er1 >&5 | |
1827 | mv -f conftest.er1 conftest.err | |
1828 | fi | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1830 | test $ac_status = 0; } >/dev/null && { |
1831 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1832 | test ! -s conftest.err |
9c60689e | 1833 | }; then : |
dbadc56a DWT |
1834 | ac_retval=0 |
1835 | else | |
1836 | $as_echo "$as_me: failed program was:" >&5 | |
1837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1838 | ||
9c60689e | 1839 | ac_retval=1 |
dbadc56a DWT |
1840 | fi |
1841 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1842 | as_fn_set_status $ac_retval |
dbadc56a | 1843 | |
9c60689e | 1844 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1845 | |
1846 | # ac_fn_c_try_run LINENO | |
1847 | # ---------------------- | |
1848 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1849 | # that executables *can* be run. | |
1850 | ac_fn_c_try_run () | |
1851 | { | |
1852 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1853 | if { { ac_try="$ac_link" | |
1854 | case "(($ac_try" in | |
1855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1856 | *) ac_try_echo=$ac_try;; | |
1857 | esac | |
1858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1859 | $as_echo "$ac_try_echo"; } >&5 | |
1860 | (eval "$ac_link") 2>&5 | |
1861 | ac_status=$? | |
1862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1863 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1864 | { { case "(($ac_try" in | |
1865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1866 | *) ac_try_echo=$ac_try;; | |
1867 | esac | |
1868 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1869 | $as_echo "$ac_try_echo"; } >&5 | |
1870 | (eval "$ac_try") 2>&5 | |
1871 | ac_status=$? | |
1872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1873 | test $ac_status = 0; }; }; then : | |
1874 | ac_retval=0 | |
1875 | else | |
1876 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1877 | $as_echo "$as_me: failed program was:" >&5 | |
1878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1879 | ||
1880 | ac_retval=$ac_status | |
1881 | fi | |
1882 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1883 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1884 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1885 | |
1886 | } # ac_fn_c_try_run | |
6b66678a | 1887 | |
9c60689e DWT |
1888 | # ac_fn_c_check_func LINENO FUNC VAR |
1889 | # ---------------------------------- | |
1890 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1891 | ac_fn_c_check_func () | |
6b66678a DWT |
1892 | { |
1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1895 | $as_echo_n "checking for $2... " >&6; } | |
1896 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1897 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1898 | else |
9c60689e DWT |
1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1900 | /* end confdefs.h. */ | |
1901 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1903 | #define $2 innocuous_$2 | |
6b66678a | 1904 | |
9c60689e DWT |
1905 | /* System header to define __stub macros and hopefully few prototypes, |
1906 | which can conflict with char $2 (); below. | |
1907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1908 | <limits.h> exists even on freestanding compilers. */ | |
1909 | ||
1910 | #ifdef __STDC__ | |
1911 | # include <limits.h> | |
1912 | #else | |
1913 | # include <assert.h> | |
1914 | #endif | |
1915 | ||
1916 | #undef $2 | |
1917 | ||
1918 | /* Override any GCC internal prototype to avoid an error. | |
1919 | Use char because int might match the return type of a GCC | |
1920 | builtin and then its argument prototype would still apply. */ | |
1921 | #ifdef __cplusplus | |
1922 | extern "C" | |
1923 | #endif | |
1924 | char $2 (); | |
1925 | /* The GNU C library defines this for functions which it implements | |
1926 | to always fail with ENOSYS. Some functions are actually named | |
1927 | something starting with __ and the normal name is an alias. */ | |
1928 | #if defined __stub_$2 || defined __stub___$2 | |
1929 | choke me | |
1930 | #endif | |
1931 | ||
1932 | int | |
1933 | main () | |
1934 | { | |
1935 | return $2 (); | |
1936 | ; | |
1937 | return 0; | |
1938 | } | |
1939 | _ACEOF | |
1940 | if ac_fn_c_try_link "$LINENO"; then : | |
1941 | eval "$3=yes" | |
1942 | else | |
1943 | eval "$3=no" | |
1944 | fi | |
1945 | rm -f core conftest.err conftest.$ac_objext \ | |
1946 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1947 | fi |
9c60689e DWT |
1948 | eval ac_res=\$$3 |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1950 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1951 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1952 | |
9c60689e | 1953 | } # ac_fn_c_check_func |
6b66678a | 1954 | |
9c60689e DWT |
1955 | # ac_fn_cxx_try_compile LINENO |
1956 | # ---------------------------- | |
1957 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1958 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
1959 | { |
1960 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1961 | rm -f conftest.$ac_objext |
1962 | if { { ac_try="$ac_compile" | |
1963 | case "(($ac_try" in | |
1964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1965 | *) ac_try_echo=$ac_try;; | |
1966 | esac | |
1967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1968 | $as_echo "$ac_try_echo"; } >&5 | |
1969 | (eval "$ac_compile") 2>conftest.err | |
1970 | ac_status=$? | |
1971 | if test -s conftest.err; then | |
1972 | grep -v '^ *+' conftest.err >conftest.er1 | |
1973 | cat conftest.er1 >&5 | |
1974 | mv -f conftest.er1 conftest.err | |
1975 | fi | |
1976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1977 | test $ac_status = 0; } && { | |
1978 | test -z "$ac_cxx_werror_flag" || | |
1979 | test ! -s conftest.err | |
1980 | } && test -s conftest.$ac_objext; then : | |
1981 | ac_retval=0 | |
1982 | else | |
1983 | $as_echo "$as_me: failed program was:" >&5 | |
1984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1985 | ||
1986 | ac_retval=1 | |
1987 | fi | |
1988 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1989 | as_fn_set_status $ac_retval | |
1990 | ||
1991 | } # ac_fn_cxx_try_compile | |
1992 | ||
1993 | # ac_fn_cxx_try_cpp LINENO | |
1994 | # ------------------------ | |
1995 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1996 | ac_fn_cxx_try_cpp () | |
1997 | { | |
1998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1999 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2000 | case "(($ac_try" in | |
2001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2002 | *) ac_try_echo=$ac_try;; | |
2003 | esac | |
2004 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2005 | $as_echo "$ac_try_echo"; } >&5 | |
2006 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2007 | ac_status=$? | |
2008 | if test -s conftest.err; then | |
2009 | grep -v '^ *+' conftest.err >conftest.er1 | |
2010 | cat conftest.er1 >&5 | |
2011 | mv -f conftest.er1 conftest.err | |
2012 | fi | |
2013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2014 | test $ac_status = 0; } >/dev/null && { | |
2015 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2016 | test ! -s conftest.err | |
2017 | }; then : | |
2018 | ac_retval=0 | |
2019 | else | |
2020 | $as_echo "$as_me: failed program was:" >&5 | |
2021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2022 | ||
2023 | ac_retval=1 | |
2024 | fi | |
2025 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2026 | as_fn_set_status $ac_retval | |
2027 | ||
2028 | } # ac_fn_cxx_try_cpp | |
2029 | ||
2030 | # ac_fn_cxx_try_link LINENO | |
2031 | # ------------------------- | |
2032 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2033 | ac_fn_cxx_try_link () | |
2034 | { | |
2035 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2037 | if { { ac_try="$ac_link" | |
2038 | case "(($ac_try" in | |
2039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2040 | *) ac_try_echo=$ac_try;; | |
2041 | esac | |
2042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2043 | $as_echo "$ac_try_echo"; } >&5 | |
2044 | (eval "$ac_link") 2>conftest.err | |
2045 | ac_status=$? | |
2046 | if test -s conftest.err; then | |
2047 | grep -v '^ *+' conftest.err >conftest.er1 | |
2048 | cat conftest.er1 >&5 | |
2049 | mv -f conftest.er1 conftest.err | |
2050 | fi | |
2051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2052 | test $ac_status = 0; } && { | |
2053 | test -z "$ac_cxx_werror_flag" || | |
2054 | test ! -s conftest.err | |
2055 | } && test -s conftest$ac_exeext && { | |
2056 | test "$cross_compiling" = yes || | |
2057 | $as_test_x conftest$ac_exeext | |
2058 | }; 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 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2067 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2068 | # interfere with the next link command; also delete a directory that is | |
2069 | # left behind by Apple's compiler. We do this before executing the actions. | |
2070 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2071 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2072 | as_fn_set_status $ac_retval | |
2073 | ||
2074 | } # ac_fn_cxx_try_link | |
2075 | ||
47aaa820 DWT |
2076 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2077 | # --------------------------------------------------------- | |
2078 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2079 | # the include files in INCLUDES and setting the cache variable VAR | |
2080 | # accordingly. | |
2081 | ac_fn_cxx_check_header_mongrel () | |
2082 | { | |
2083 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2084 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2086 | $as_echo_n "checking for $2... " >&6; } | |
2087 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2088 | $as_echo_n "(cached) " >&6 | |
2089 | fi | |
2090 | eval ac_res=\$$3 | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2092 | $as_echo "$ac_res" >&6; } | |
2093 | else | |
2094 | # Is the header compilable? | |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2096 | $as_echo_n "checking $2 usability... " >&6; } | |
2097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2098 | /* end confdefs.h. */ | |
2099 | $4 | |
2100 | #include <$2> | |
2101 | _ACEOF | |
2102 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2103 | ac_header_compiler=yes | |
2104 | else | |
2105 | ac_header_compiler=no | |
2106 | fi | |
2107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2109 | $as_echo "$ac_header_compiler" >&6; } | |
2110 | ||
2111 | # Is the header present? | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2113 | $as_echo_n "checking $2 presence... " >&6; } | |
2114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2115 | /* end confdefs.h. */ | |
2116 | #include <$2> | |
2117 | _ACEOF | |
2118 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2119 | ac_header_preproc=yes | |
2120 | else | |
2121 | ac_header_preproc=no | |
2122 | fi | |
2123 | rm -f conftest.err conftest.$ac_ext | |
2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2125 | $as_echo "$ac_header_preproc" >&6; } | |
2126 | ||
2127 | # So? What about this header? | |
2128 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2129 | yes:no: ) | |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2131 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2133 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2134 | ;; | |
2135 | no:yes:* ) | |
2136 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2137 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2139 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2141 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2143 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2145 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2146 | ( cat <<\_ASBOX | |
2147 | ## -------------------------------- ## | |
2148 | ## Report this to saurik@saurik.com ## | |
2149 | ## -------------------------------- ## | |
2150 | _ASBOX | |
2151 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2152 | ;; | |
2153 | esac | |
2154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2155 | $as_echo_n "checking for $2... " >&6; } | |
2156 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2157 | $as_echo_n "(cached) " >&6 | |
2158 | else | |
2159 | eval "$3=\$ac_header_compiler" | |
2160 | fi | |
2161 | eval ac_res=\$$3 | |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2163 | $as_echo "$ac_res" >&6; } | |
2164 | fi | |
2165 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2166 | ||
2167 | } # ac_fn_cxx_check_header_mongrel | |
2168 | ||
9c60689e DWT |
2169 | # ac_fn_objcxx_try_compile LINENO |
2170 | # ------------------------------- | |
2171 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2172 | ac_fn_objcxx_try_compile () | |
2173 | { | |
2174 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2175 | rm -f conftest.$ac_objext | |
2176 | if { { ac_try="$ac_compile" | |
2177 | case "(($ac_try" in | |
2178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2179 | *) ac_try_echo=$ac_try;; | |
2180 | esac | |
2181 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2182 | $as_echo "$ac_try_echo"; } >&5 | |
2183 | (eval "$ac_compile") 2>conftest.err | |
2184 | ac_status=$? | |
2185 | if test -s conftest.err; then | |
2186 | grep -v '^ *+' conftest.err >conftest.er1 | |
2187 | cat conftest.er1 >&5 | |
2188 | mv -f conftest.er1 conftest.err | |
2189 | fi | |
2190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2191 | test $ac_status = 0; } && { | |
2192 | test -z "$ac_objcxx_werror_flag" || | |
2193 | test ! -s conftest.err | |
2194 | } && test -s conftest.$ac_objext; then : | |
2195 | ac_retval=0 | |
2196 | else | |
2197 | $as_echo "$as_me: failed program was:" >&5 | |
2198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2199 | ||
2200 | ac_retval=1 | |
2201 | fi | |
2202 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2203 | as_fn_set_status $ac_retval | |
2204 | ||
2205 | } # ac_fn_objcxx_try_compile | |
c823f118 DWT |
2206 | |
2207 | # ac_fn_objcxx_try_link LINENO | |
2208 | # ---------------------------- | |
2209 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2210 | ac_fn_objcxx_try_link () | |
2211 | { | |
2212 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2214 | if { { ac_try="$ac_link" | |
2215 | case "(($ac_try" in | |
2216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2217 | *) ac_try_echo=$ac_try;; | |
2218 | esac | |
2219 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2220 | $as_echo "$ac_try_echo"; } >&5 | |
2221 | (eval "$ac_link") 2>conftest.err | |
2222 | ac_status=$? | |
2223 | if test -s conftest.err; then | |
2224 | grep -v '^ *+' conftest.err >conftest.er1 | |
2225 | cat conftest.er1 >&5 | |
2226 | mv -f conftest.er1 conftest.err | |
2227 | fi | |
2228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2229 | test $ac_status = 0; } && { | |
2230 | test -z "$ac_objcxx_werror_flag" || | |
2231 | test ! -s conftest.err | |
2232 | } && test -s conftest$ac_exeext && { | |
2233 | test "$cross_compiling" = yes || | |
2234 | $as_test_x conftest$ac_exeext | |
2235 | }; then : | |
2236 | ac_retval=0 | |
2237 | else | |
2238 | $as_echo "$as_me: failed program was:" >&5 | |
2239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2240 | ||
2241 | ac_retval=1 | |
2242 | fi | |
2243 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2244 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2245 | # interfere with the next link command; also delete a directory that is | |
2246 | # left behind by Apple's compiler. We do this before executing the actions. | |
2247 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2248 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2249 | as_fn_set_status $ac_retval | |
2250 | ||
2251 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2252 | cat >config.log <<_ACEOF |
2253 | This file contains any messages produced by compilers while | |
2254 | running configure, to aid debugging if configure makes a mistake. | |
2255 | ||
2256 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2257 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2258 | |
2259 | $ $0 $@ | |
2260 | ||
2261 | _ACEOF | |
2262 | exec 5>>config.log | |
2263 | { | |
2264 | cat <<_ASUNAME | |
2265 | ## --------- ## | |
2266 | ## Platform. ## | |
2267 | ## --------- ## | |
2268 | ||
2269 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2270 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2271 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2272 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2273 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2274 | ||
2275 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2276 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2277 | ||
2278 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2279 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2280 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2281 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2282 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2283 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2284 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2285 | ||
2286 | _ASUNAME | |
2287 | ||
2288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2289 | for as_dir in $PATH | |
2290 | do | |
2291 | IFS=$as_save_IFS | |
2292 | test -z "$as_dir" && as_dir=. | |
2293 | $as_echo "PATH: $as_dir" | |
2294 | done | |
2295 | IFS=$as_save_IFS | |
2296 | ||
2297 | } >&5 | |
2298 | ||
2299 | cat >&5 <<_ACEOF | |
2300 | ||
2301 | ||
2302 | ## ----------- ## | |
2303 | ## Core tests. ## | |
2304 | ## ----------- ## | |
2305 | ||
2306 | _ACEOF | |
2307 | ||
2308 | ||
2309 | # Keep a trace of the command line. | |
2310 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2311 | # Strip out --silent because we don't want to record it for future runs. | |
2312 | # Also quote any args containing shell meta-characters. | |
2313 | # Make two passes to allow for proper duplicate-argument suppression. | |
2314 | ac_configure_args= | |
2315 | ac_configure_args0= | |
2316 | ac_configure_args1= | |
2317 | ac_must_keep_next=false | |
2318 | for ac_pass in 1 2 | |
2319 | do | |
2320 | for ac_arg | |
2321 | do | |
2322 | case $ac_arg in | |
2323 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2324 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2325 | | -silent | --silent | --silen | --sile | --sil) | |
2326 | continue ;; | |
2327 | *\'*) | |
2328 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2329 | esac | |
2330 | case $ac_pass in | |
2331 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2332 | 2) | |
2333 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2334 | if test $ac_must_keep_next = true; then | |
2335 | ac_must_keep_next=false # Got value, back to normal. | |
2336 | else | |
2337 | case $ac_arg in | |
2338 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2339 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2340 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2341 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2342 | case "$ac_configure_args0 " in | |
2343 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2344 | esac | |
2345 | ;; | |
2346 | -* ) ac_must_keep_next=true ;; | |
2347 | esac | |
2348 | fi | |
2349 | as_fn_append ac_configure_args " '$ac_arg'" | |
2350 | ;; | |
2351 | esac | |
2352 | done | |
2353 | done | |
2354 | { ac_configure_args0=; unset ac_configure_args0;} | |
2355 | { ac_configure_args1=; unset ac_configure_args1;} | |
2356 | ||
2357 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2358 | # config.log. We remove comments because anyway the quotes in there | |
2359 | # would cause problems or look ugly. | |
2360 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2361 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2362 | trap 'exit_status=$? | |
2363 | # Save into config.log some information that might help in debugging. | |
2364 | { | |
2365 | echo | |
2366 | ||
2367 | cat <<\_ASBOX | |
2368 | ## ---------------- ## | |
2369 | ## Cache variables. ## | |
2370 | ## ---------------- ## | |
2371 | _ASBOX | |
2372 | echo | |
2373 | # The following way of writing the cache mishandles newlines in values, | |
2374 | ( | |
2375 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2376 | eval ac_val=\$$ac_var | |
2377 | case $ac_val in #( | |
2378 | *${as_nl}*) | |
2379 | case $ac_var in #( | |
2380 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2381 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2382 | esac | |
2383 | case $ac_var in #( | |
2384 | _ | IFS | as_nl) ;; #( | |
2385 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2386 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2387 | esac ;; | |
2388 | esac | |
2389 | done | |
2390 | (set) 2>&1 | | |
2391 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2392 | *${as_nl}ac_space=\ *) | |
2393 | sed -n \ | |
2394 | "s/'\''/'\''\\\\'\'''\''/g; | |
2395 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2396 | ;; #( | |
2397 | *) | |
2398 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2399 | ;; | |
2400 | esac | | |
2401 | sort | |
2402 | ) | |
2403 | echo | |
2404 | ||
2405 | cat <<\_ASBOX | |
2406 | ## ----------------- ## | |
2407 | ## Output variables. ## | |
2408 | ## ----------------- ## | |
2409 | _ASBOX | |
2410 | echo | |
2411 | for ac_var in $ac_subst_vars | |
2412 | do | |
2413 | eval ac_val=\$$ac_var | |
2414 | case $ac_val in | |
2415 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2416 | esac | |
2417 | $as_echo "$ac_var='\''$ac_val'\''" | |
2418 | done | sort | |
2419 | echo | |
2420 | ||
2421 | if test -n "$ac_subst_files"; then | |
2422 | cat <<\_ASBOX | |
2423 | ## ------------------- ## | |
2424 | ## File substitutions. ## | |
2425 | ## ------------------- ## | |
2426 | _ASBOX | |
2427 | echo | |
2428 | for ac_var in $ac_subst_files | |
2429 | do | |
2430 | eval ac_val=\$$ac_var | |
2431 | case $ac_val in | |
2432 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2433 | esac | |
2434 | $as_echo "$ac_var='\''$ac_val'\''" | |
2435 | done | sort | |
2436 | echo | |
2437 | fi | |
2438 | ||
2439 | if test -s confdefs.h; then | |
2440 | cat <<\_ASBOX | |
2441 | ## ----------- ## | |
2442 | ## confdefs.h. ## | |
2443 | ## ----------- ## | |
2444 | _ASBOX | |
2445 | echo | |
2446 | cat confdefs.h | |
2447 | echo | |
2448 | fi | |
2449 | test "$ac_signal" != 0 && | |
2450 | $as_echo "$as_me: caught signal $ac_signal" | |
2451 | $as_echo "$as_me: exit $exit_status" | |
2452 | } >&5 | |
2453 | rm -f core *.core core.conftest.* && | |
2454 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2455 | exit $exit_status | |
2456 | ' 0 | |
2457 | for ac_signal in 1 2 13 15; do | |
2458 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2459 | done | |
2460 | ac_signal=0 | |
2461 | ||
2462 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2463 | rm -f -r conftest* confdefs.h | |
2464 | ||
2465 | $as_echo "/* confdefs.h */" > confdefs.h | |
2466 | ||
2467 | # Predefined preprocessor variables. | |
2468 | ||
2469 | cat >>confdefs.h <<_ACEOF | |
2470 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2471 | _ACEOF | |
2472 | ||
2473 | cat >>confdefs.h <<_ACEOF | |
2474 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2475 | _ACEOF | |
2476 | ||
2477 | cat >>confdefs.h <<_ACEOF | |
2478 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2479 | _ACEOF | |
2480 | ||
2481 | cat >>confdefs.h <<_ACEOF | |
2482 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2483 | _ACEOF | |
2484 | ||
2485 | cat >>confdefs.h <<_ACEOF | |
2486 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2487 | _ACEOF | |
2488 | ||
2489 | cat >>confdefs.h <<_ACEOF | |
2490 | #define PACKAGE_URL "$PACKAGE_URL" | |
2491 | _ACEOF | |
2492 | ||
2493 | ||
2494 | # Let the site file select an alternate cache file if it wants to. | |
2495 | # Prefer an explicitly selected file to automatically selected ones. | |
2496 | ac_site_file1=NONE | |
2497 | ac_site_file2=NONE | |
2498 | if test -n "$CONFIG_SITE"; then | |
2499 | ac_site_file1=$CONFIG_SITE | |
2500 | elif test "x$prefix" != xNONE; then | |
2501 | ac_site_file1=$prefix/share/config.site | |
2502 | ac_site_file2=$prefix/etc/config.site | |
2503 | else | |
2504 | ac_site_file1=$ac_default_prefix/share/config.site | |
2505 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2506 | fi | |
2507 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2508 | do | |
2509 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2510 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2512 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2513 | sed 's/^/| /' "$ac_site_file" >&5 | |
2514 | . "$ac_site_file" | |
2515 | fi | |
2516 | done | |
2517 | ||
2518 | if test -r "$cache_file"; then | |
9c60689e DWT |
2519 | # Some versions of bash will fail to source /dev/null (special files |
2520 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2521 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2523 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2524 | case $cache_file in | |
2525 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2526 | *) . "./$cache_file";; | |
2527 | esac | |
2528 | fi | |
2529 | else | |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2531 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2532 | >$cache_file | |
2533 | fi | |
2534 | ||
2535 | # Check that the precious variables saved in the cache have kept the same | |
2536 | # value. | |
2537 | ac_cache_corrupted=false | |
2538 | for ac_var in $ac_precious_vars; do | |
2539 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2540 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2541 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2542 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2543 | case $ac_old_set,$ac_new_set in | |
2544 | set,) | |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2546 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2547 | ac_cache_corrupted=: ;; | |
2548 | ,set) | |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2550 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2551 | ac_cache_corrupted=: ;; | |
2552 | ,);; | |
2553 | *) | |
2554 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2555 | # differences in whitespace do not lead to failure. | |
2556 | ac_old_val_w=`echo x $ac_old_val` | |
2557 | ac_new_val_w=`echo x $ac_new_val` | |
2558 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2560 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2561 | ac_cache_corrupted=: | |
2562 | else | |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2564 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2565 | eval $ac_var=\$ac_old_val | |
2566 | fi | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2568 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2570 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2571 | fi;; | |
2572 | esac | |
2573 | # Pass precious variables to config.status. | |
2574 | if test "$ac_new_set" = set; then | |
2575 | case $ac_new_val in | |
2576 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2577 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2578 | esac | |
2579 | case " $ac_configure_args " in | |
2580 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2581 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2582 | esac | |
2583 | fi | |
2584 | done | |
2585 | if $ac_cache_corrupted; then | |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2587 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2589 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2590 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2591 | fi | |
2592 | ## -------------------- ## | |
2593 | ## Main body of script. ## | |
2594 | ## -------------------- ## | |
2595 | ||
2596 | ac_ext=c | |
2597 | ac_cpp='$CPP $CPPFLAGS' | |
2598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2601 | ||
2602 | ||
35fa52c0 | 2603 | |
6b66678a DWT |
2604 | ac_aux_dir= |
2605 | for ac_dir in . "$srcdir"/.; do | |
2606 | for ac_t in install-sh install.sh shtool; do | |
2607 | if test -f "$ac_dir/$ac_t"; then | |
2608 | ac_aux_dir=$ac_dir | |
2609 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2610 | break 2 | |
2611 | fi | |
2612 | done | |
2613 | done | |
2614 | if test -z "$ac_aux_dir"; then | |
2615 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2616 | fi | |
2617 | ||
2618 | # These three variables are undocumented and unsupported, | |
2619 | # and are intended to be withdrawn in a future Autoconf release. | |
2620 | # They can cause serious problems if a builder's source tree is in a directory | |
2621 | # whose full name contains unusual characters. | |
2622 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2623 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2624 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2625 | ||
2626 | ||
9c60689e DWT |
2627 | case `pwd` in |
2628 | *\ * | *\ *) | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2630 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2631 | esac | |
2632 | ||
2633 | ||
2634 | ||
2635 | macro_version='2.2.6b' | |
2636 | macro_revision='1.3017' | |
2637 | ||
2638 | ||
2639 | ||
2640 | ||
2641 | ||
2642 | ||
2643 | ||
2644 | ||
2645 | ||
2646 | ||
2647 | ||
2648 | ||
2649 | ||
2650 | ltmain="$ac_aux_dir/ltmain.sh" | |
2651 | ||
2652 | # Make sure we can run config.sub. | |
2653 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2654 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2655 | ||
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2657 | $as_echo_n "checking build system type... " >&6; } | |
2658 | if test "${ac_cv_build+set}" = set; then : | |
2659 | $as_echo_n "(cached) " >&6 | |
2660 | else | |
2661 | ac_build_alias=$build_alias | |
2662 | test "x$ac_build_alias" = x && | |
2663 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2664 | test "x$ac_build_alias" = x && | |
2665 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2666 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2667 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2668 | ||
2669 | fi | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2671 | $as_echo "$ac_cv_build" >&6; } | |
2672 | case $ac_cv_build in | |
2673 | *-*-*) ;; | |
2674 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2675 | esac | |
2676 | build=$ac_cv_build | |
2677 | ac_save_IFS=$IFS; IFS='-' | |
2678 | set x $ac_cv_build | |
2679 | shift | |
2680 | build_cpu=$1 | |
2681 | build_vendor=$2 | |
2682 | shift; shift | |
2683 | # Remember, the first character of IFS is used to create $*, | |
2684 | # except with old shells: | |
2685 | build_os=$* | |
2686 | IFS=$ac_save_IFS | |
2687 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2688 | ||
2689 | ||
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2691 | $as_echo_n "checking host system type... " >&6; } | |
2692 | if test "${ac_cv_host+set}" = set; then : | |
2693 | $as_echo_n "(cached) " >&6 | |
2694 | else | |
2695 | if test "x$host_alias" = x; then | |
2696 | ac_cv_host=$ac_cv_build | |
2697 | else | |
2698 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2699 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2700 | fi | |
2701 | ||
2702 | fi | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2704 | $as_echo "$ac_cv_host" >&6; } | |
2705 | case $ac_cv_host in | |
2706 | *-*-*) ;; | |
2707 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2708 | esac | |
2709 | host=$ac_cv_host | |
2710 | ac_save_IFS=$IFS; IFS='-' | |
2711 | set x $ac_cv_host | |
2712 | shift | |
2713 | host_cpu=$1 | |
2714 | host_vendor=$2 | |
2715 | shift; shift | |
2716 | # Remember, the first character of IFS is used to create $*, | |
2717 | # except with old shells: | |
2718 | host_os=$* | |
2719 | IFS=$ac_save_IFS | |
2720 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2721 | ||
2722 | ||
2723 | ac_ext=c | |
2724 | ac_cpp='$CPP $CPPFLAGS' | |
2725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2728 | if test -n "$ac_tool_prefix"; then | |
2729 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2730 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2732 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2733 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2734 | $as_echo_n "(cached) " >&6 |
2735 | else | |
9c60689e DWT |
2736 | if test -n "$CC"; then |
2737 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2738 | else |
2739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2740 | for as_dir in $PATH | |
2741 | do | |
2742 | IFS=$as_save_IFS | |
2743 | test -z "$as_dir" && as_dir=. | |
2744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2746 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2748 | break 2 | |
2749 | fi | |
2750 | done | |
2751 | done | |
2752 | IFS=$as_save_IFS | |
2753 | ||
2754 | fi | |
2755 | fi | |
9c60689e DWT |
2756 | CC=$ac_cv_prog_CC |
2757 | if test -n "$CC"; then | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2759 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2760 | else |
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2762 | $as_echo "no" >&6; } | |
2763 | fi | |
2764 | ||
2765 | ||
2766 | fi | |
2767 | if test -z "$ac_cv_prog_CC"; then | |
2768 | ac_ct_CC=$CC | |
2769 | # Extract the first word of "gcc", so it can be a program name with args. | |
2770 | set dummy gcc; ac_word=$2 | |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2772 | $as_echo_n "checking for $ac_word... " >&6; } | |
2773 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2774 | $as_echo_n "(cached) " >&6 | |
2775 | else | |
2776 | if test -n "$ac_ct_CC"; then | |
2777 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2778 | else | |
2779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2780 | for as_dir in $PATH | |
2781 | do | |
2782 | IFS=$as_save_IFS | |
2783 | test -z "$as_dir" && as_dir=. | |
2784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2786 | ac_cv_prog_ac_ct_CC="gcc" | |
2787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2788 | break 2 | |
2789 | fi | |
2790 | done | |
2791 | done | |
2792 | IFS=$as_save_IFS | |
2793 | ||
2794 | fi | |
2795 | fi | |
2796 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2797 | if test -n "$ac_ct_CC"; then | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2799 | $as_echo "$ac_ct_CC" >&6; } | |
2800 | else | |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2802 | $as_echo "no" >&6; } | |
2803 | fi | |
2804 | ||
2805 | if test "x$ac_ct_CC" = x; then | |
2806 | CC="" | |
2807 | else | |
2808 | case $cross_compiling:$ac_tool_warned in | |
2809 | yes:) | |
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2812 | ac_tool_warned=yes ;; | |
2813 | esac | |
2814 | CC=$ac_ct_CC | |
2815 | fi | |
2816 | else | |
2817 | CC="$ac_cv_prog_CC" | |
2818 | fi | |
2819 | ||
2820 | if test -z "$CC"; then | |
2821 | if test -n "$ac_tool_prefix"; then | |
2822 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2823 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2825 | $as_echo_n "checking for $ac_word... " >&6; } | |
2826 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2827 | $as_echo_n "(cached) " >&6 | |
2828 | else | |
2829 | if test -n "$CC"; then | |
2830 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2831 | else | |
2832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2833 | for as_dir in $PATH | |
2834 | do | |
2835 | IFS=$as_save_IFS | |
2836 | test -z "$as_dir" && as_dir=. | |
2837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2839 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2841 | break 2 | |
2842 | fi | |
2843 | done | |
2844 | done | |
2845 | IFS=$as_save_IFS | |
2846 | ||
2847 | fi | |
2848 | fi | |
2849 | CC=$ac_cv_prog_CC | |
2850 | if test -n "$CC"; then | |
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2852 | $as_echo "$CC" >&6; } | |
2853 | else | |
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2855 | $as_echo "no" >&6; } | |
2856 | fi | |
2857 | ||
2858 | ||
2859 | fi | |
2860 | fi | |
2861 | if test -z "$CC"; then | |
2862 | # Extract the first word of "cc", so it can be a program name with args. | |
2863 | set dummy cc; ac_word=$2 | |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2865 | $as_echo_n "checking for $ac_word... " >&6; } | |
2866 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2867 | $as_echo_n "(cached) " >&6 | |
2868 | else | |
2869 | if test -n "$CC"; then | |
2870 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2871 | else | |
2872 | ac_prog_rejected=no | |
2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2874 | for as_dir in $PATH | |
2875 | do | |
2876 | IFS=$as_save_IFS | |
2877 | test -z "$as_dir" && as_dir=. | |
2878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2880 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2881 | ac_prog_rejected=yes | |
2882 | continue | |
2883 | fi | |
2884 | ac_cv_prog_CC="cc" | |
2885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2886 | break 2 | |
2887 | fi | |
2888 | done | |
2889 | done | |
2890 | IFS=$as_save_IFS | |
2891 | ||
2892 | if test $ac_prog_rejected = yes; then | |
2893 | # We found a bogon in the path, so make sure we never use it. | |
2894 | set dummy $ac_cv_prog_CC | |
2895 | shift | |
2896 | if test $# != 0; then | |
2897 | # We chose a different compiler from the bogus one. | |
2898 | # However, it has the same basename, so the bogon will be chosen | |
2899 | # first if we set CC to just the basename; use the full file name. | |
2900 | shift | |
2901 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2902 | fi | |
2903 | fi | |
2904 | fi | |
2905 | fi | |
2906 | CC=$ac_cv_prog_CC | |
2907 | if test -n "$CC"; then | |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2909 | $as_echo "$CC" >&6; } | |
2910 | else | |
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2912 | $as_echo "no" >&6; } | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | fi | |
2917 | if test -z "$CC"; then | |
2918 | if test -n "$ac_tool_prefix"; then | |
2919 | for ac_prog in cl.exe | |
2920 | do | |
2921 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2922 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2924 | $as_echo_n "checking for $ac_word... " >&6; } | |
2925 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2926 | $as_echo_n "(cached) " >&6 | |
2927 | else | |
2928 | if test -n "$CC"; then | |
2929 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2930 | else | |
2931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2932 | for as_dir in $PATH | |
2933 | do | |
2934 | IFS=$as_save_IFS | |
2935 | test -z "$as_dir" && as_dir=. | |
2936 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2938 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2940 | break 2 | |
2941 | fi | |
2942 | done | |
2943 | done | |
2944 | IFS=$as_save_IFS | |
2945 | ||
2946 | fi | |
2947 | fi | |
2948 | CC=$ac_cv_prog_CC | |
2949 | if test -n "$CC"; then | |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2951 | $as_echo "$CC" >&6; } | |
2952 | else | |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2954 | $as_echo "no" >&6; } | |
2955 | fi | |
2956 | ||
2957 | ||
2958 | test -n "$CC" && break | |
2959 | done | |
2960 | fi | |
2961 | if test -z "$CC"; then | |
2962 | ac_ct_CC=$CC | |
2963 | for ac_prog in cl.exe | |
2964 | do | |
2965 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2966 | set dummy $ac_prog; ac_word=$2 | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2968 | $as_echo_n "checking for $ac_word... " >&6; } | |
2969 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2970 | $as_echo_n "(cached) " >&6 | |
2971 | else | |
2972 | if test -n "$ac_ct_CC"; then | |
2973 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2974 | else | |
2975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2976 | for as_dir in $PATH | |
2977 | do | |
2978 | IFS=$as_save_IFS | |
2979 | test -z "$as_dir" && as_dir=. | |
2980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2982 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2984 | break 2 | |
2985 | fi | |
2986 | done | |
2987 | done | |
2988 | IFS=$as_save_IFS | |
2989 | ||
2990 | fi | |
2991 | fi | |
2992 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2993 | if test -n "$ac_ct_CC"; then | |
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2995 | $as_echo "$ac_ct_CC" >&6; } | |
2996 | else | |
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2998 | $as_echo "no" >&6; } | |
2999 | fi | |
3000 | ||
3001 | ||
3002 | test -n "$ac_ct_CC" && break | |
3003 | done | |
3004 | ||
3005 | if test "x$ac_ct_CC" = x; then | |
3006 | CC="" | |
3007 | else | |
3008 | case $cross_compiling:$ac_tool_warned in | |
3009 | yes:) | |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3011 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3012 | ac_tool_warned=yes ;; | |
3013 | esac | |
3014 | CC=$ac_ct_CC | |
3015 | fi | |
3016 | fi | |
3017 | ||
3018 | fi | |
3019 | ||
3020 | ||
3021 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3023 | as_fn_error "no acceptable C compiler found in \$PATH | |
3024 | See \`config.log' for more details." "$LINENO" 5; } | |
3025 | ||
3026 | # Provide some information about the compiler. | |
3027 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3028 | set X $ac_compile | |
3029 | ac_compiler=$2 | |
3030 | for ac_option in --version -v -V -qversion; do | |
3031 | { { ac_try="$ac_compiler $ac_option >&5" | |
3032 | case "(($ac_try" in | |
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3034 | *) ac_try_echo=$ac_try;; | |
3035 | esac | |
3036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3037 | $as_echo "$ac_try_echo"; } >&5 | |
3038 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3039 | ac_status=$? | |
3040 | if test -s conftest.err; then | |
3041 | sed '10a\ | |
3042 | ... rest of stderr output deleted ... | |
3043 | 10q' conftest.err >conftest.er1 | |
3044 | cat conftest.er1 >&5 | |
35fa52c0 | 3045 | fi |
9c60689e | 3046 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3048 | test $ac_status = 0; } | |
3049 | done | |
3050 | ||
3051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3052 | /* end confdefs.h. */ | |
9c60689e | 3053 | |
35fa52c0 DWT |
3054 | int |
3055 | main () | |
3056 | { | |
35fa52c0 DWT |
3057 | |
3058 | ; | |
3059 | return 0; | |
3060 | } | |
3061 | _ACEOF | |
3062 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3063 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3064 | # Try to create an executable without -o first, disregard a.out. |
3065 | # It will help us diagnose broken compilers, and finding out an intuition | |
3066 | # of exeext. | |
9c60689e DWT |
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3068 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3069 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3070 | ||
3071 | # The possible output files: | |
3072 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3073 | ||
3074 | ac_rmfiles= | |
3075 | for ac_file in $ac_files | |
3076 | do | |
3077 | case $ac_file in | |
3078 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3079 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3080 | esac | |
3081 | done | |
3082 | rm -f $ac_rmfiles | |
3083 | ||
3084 | if { { ac_try="$ac_link_default" | |
3085 | case "(($ac_try" in | |
3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3087 | *) ac_try_echo=$ac_try;; | |
3088 | esac | |
3089 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3090 | $as_echo "$ac_try_echo"; } >&5 | |
3091 | (eval "$ac_link_default") 2>&5 | |
3092 | ac_status=$? | |
3093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3094 | test $ac_status = 0; }; then : | |
3095 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3096 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3097 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3098 | # so that the user can short-circuit this test for compilers unknown to | |
3099 | # Autoconf. | |
3100 | for ac_file in $ac_files '' | |
3101 | do | |
3102 | test -f "$ac_file" || continue | |
3103 | case $ac_file in | |
3104 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3105 | ;; | |
3106 | [ab].out ) | |
3107 | # We found the default executable, but exeext='' is most | |
3108 | # certainly right. | |
3109 | break;; | |
3110 | *.* ) | |
3111 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3112 | then :; else | |
3113 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3114 | fi | |
3115 | # We set ac_cv_exeext here because the later test for it is not | |
3116 | # safe: cross compilers may not add the suffix if given an `-o' | |
3117 | # argument, so we may need to know it at that point already. | |
3118 | # Even if this section looks crufty: it has the advantage of | |
3119 | # actually working. | |
3120 | break;; | |
3121 | * ) | |
3122 | break;; | |
3123 | esac | |
3124 | done | |
3125 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3126 | ||
3127 | else | |
3128 | ac_file='' | |
3129 | fi | |
35fa52c0 | 3130 | if test -z "$ac_file"; then : |
9c60689e DWT |
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3132 | $as_echo "no" >&6; } | |
3133 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3134 | sed 's/^/| /' conftest.$ac_ext >&5 |
3135 | ||
3136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3137 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3138 | { as_fn_set_status 77 | |
3139 | as_fn_error "C compiler cannot create executables | |
3140 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3141 | else |
3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3143 | $as_echo "yes" >&6; } | |
35fa52c0 | 3144 | fi |
9c60689e DWT |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3146 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3148 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3149 | ac_exeext=$ac_cv_exeext |
3150 | ||
9c60689e | 3151 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3152 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3154 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3155 | if { { ac_try="$ac_link" | |
3156 | case "(($ac_try" in | |
3157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3158 | *) ac_try_echo=$ac_try;; | |
3159 | esac | |
3160 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3161 | $as_echo "$ac_try_echo"; } >&5 | |
3162 | (eval "$ac_link") 2>&5 | |
3163 | ac_status=$? | |
3164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3165 | test $ac_status = 0; }; then : | |
3166 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3167 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3168 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3169 | # `rm'. | |
3170 | for ac_file in conftest.exe conftest conftest.*; do | |
3171 | test -f "$ac_file" || continue | |
3172 | case $ac_file in | |
3173 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3174 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3175 | break;; | |
3176 | * ) break;; | |
3177 | esac | |
3178 | done | |
3179 | else | |
3180 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3182 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3183 | See \`config.log' for more details." "$LINENO" 5; } | |
3184 | fi | |
9c60689e | 3185 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3187 | $as_echo "$ac_cv_exeext" >&6; } | |
3188 | ||
3189 | rm -f conftest.$ac_ext | |
3190 | EXEEXT=$ac_cv_exeext | |
3191 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3193 | /* end confdefs.h. */ | |
3194 | #include <stdio.h> | |
3195 | int | |
3196 | main () | |
3197 | { | |
3198 | FILE *f = fopen ("conftest.out", "w"); | |
3199 | return ferror (f) || fclose (f) != 0; | |
3200 | ||
3201 | ; | |
3202 | return 0; | |
3203 | } | |
3204 | _ACEOF | |
3205 | ac_clean_files="$ac_clean_files conftest.out" | |
3206 | # Check that the compiler produces executables we can run. If not, either | |
3207 | # the compiler is broken, or we cross compile. | |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3209 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3210 | if test "$cross_compiling" != yes; then | |
3211 | { { ac_try="$ac_link" | |
3212 | case "(($ac_try" in | |
3213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3214 | *) ac_try_echo=$ac_try;; | |
3215 | esac | |
3216 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3217 | $as_echo "$ac_try_echo"; } >&5 | |
3218 | (eval "$ac_link") 2>&5 | |
3219 | ac_status=$? | |
3220 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3221 | test $ac_status = 0; } | |
3222 | if { ac_try='./conftest$ac_cv_exeext' | |
3223 | { { case "(($ac_try" in | |
3224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3225 | *) ac_try_echo=$ac_try;; | |
3226 | esac | |
3227 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3228 | $as_echo "$ac_try_echo"; } >&5 | |
3229 | (eval "$ac_try") 2>&5 | |
3230 | ac_status=$? | |
3231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3232 | test $ac_status = 0; }; }; then | |
3233 | cross_compiling=no | |
3234 | else | |
3235 | if test "$cross_compiling" = maybe; then | |
3236 | cross_compiling=yes | |
3237 | else | |
3238 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3239 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3240 | as_fn_error "cannot run C compiled programs. | |
3241 | If you meant to cross compile, use \`--host'. | |
3242 | See \`config.log' for more details." "$LINENO" 5; } | |
3243 | fi | |
3244 | fi | |
3245 | fi | |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3247 | $as_echo "$cross_compiling" >&6; } | |
3248 | ||
3249 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3250 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3252 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3253 | if test "${ac_cv_objext+set}" = set; then : | |
3254 | $as_echo_n "(cached) " >&6 | |
3255 | else | |
3256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3257 | /* end confdefs.h. */ | |
3258 | ||
3259 | int | |
3260 | main () | |
3261 | { | |
3262 | ||
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | rm -f conftest.o conftest.obj | |
3268 | if { { ac_try="$ac_compile" | |
3269 | case "(($ac_try" in | |
3270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3271 | *) ac_try_echo=$ac_try;; | |
3272 | esac | |
3273 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3274 | $as_echo "$ac_try_echo"; } >&5 | |
3275 | (eval "$ac_compile") 2>&5 | |
3276 | ac_status=$? | |
3277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3278 | test $ac_status = 0; }; then : | |
3279 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3280 | test -f "$ac_file" || continue; | |
3281 | case $ac_file in | |
3282 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3283 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3284 | break;; | |
3285 | esac | |
3286 | done | |
3287 | else | |
3288 | $as_echo "$as_me: failed program was:" >&5 | |
3289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3290 | ||
3291 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3292 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3293 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3294 | See \`config.log' for more details." "$LINENO" 5; } | |
3295 | fi | |
3296 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3297 | fi | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3299 | $as_echo "$ac_cv_objext" >&6; } | |
3300 | OBJEXT=$ac_cv_objext | |
3301 | ac_objext=$OBJEXT | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3303 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3304 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3305 | $as_echo_n "(cached) " >&6 | |
3306 | else | |
3307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3308 | /* end confdefs.h. */ | |
3309 | ||
3310 | int | |
3311 | main () | |
3312 | { | |
3313 | #ifndef __GNUC__ | |
3314 | choke me | |
3315 | #endif | |
3316 | ||
3317 | ; | |
3318 | return 0; | |
3319 | } | |
3320 | _ACEOF | |
3321 | if ac_fn_c_try_compile "$LINENO"; then : | |
3322 | ac_compiler_gnu=yes | |
3323 | else | |
3324 | ac_compiler_gnu=no | |
3325 | fi | |
3326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3327 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3328 | ||
3329 | fi | |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3331 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3332 | if test $ac_compiler_gnu = yes; then | |
3333 | GCC=yes | |
3334 | else | |
3335 | GCC= | |
3336 | fi | |
3337 | ac_test_CFLAGS=${CFLAGS+set} | |
3338 | ac_save_CFLAGS=$CFLAGS | |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3340 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3341 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3342 | $as_echo_n "(cached) " >&6 | |
3343 | else | |
3344 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3345 | ac_c_werror_flag=yes | |
3346 | ac_cv_prog_cc_g=no | |
3347 | CFLAGS="-g" | |
3348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3349 | /* end confdefs.h. */ | |
3350 | ||
3351 | int | |
3352 | main () | |
3353 | { | |
3354 | ||
3355 | ; | |
3356 | return 0; | |
3357 | } | |
3358 | _ACEOF | |
3359 | if ac_fn_c_try_compile "$LINENO"; then : | |
3360 | ac_cv_prog_cc_g=yes | |
3361 | else | |
3362 | CFLAGS="" | |
3363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3364 | /* end confdefs.h. */ | |
3365 | ||
3366 | int | |
3367 | main () | |
3368 | { | |
3369 | ||
3370 | ; | |
3371 | return 0; | |
3372 | } | |
3373 | _ACEOF | |
3374 | if ac_fn_c_try_compile "$LINENO"; then : | |
3375 | ||
3376 | else | |
3377 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3378 | CFLAGS="-g" | |
3379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3380 | /* end confdefs.h. */ | |
3381 | ||
3382 | int | |
3383 | main () | |
3384 | { | |
3385 | ||
3386 | ; | |
3387 | return 0; | |
3388 | } | |
3389 | _ACEOF | |
3390 | if ac_fn_c_try_compile "$LINENO"; then : | |
3391 | ac_cv_prog_cc_g=yes | |
3392 | fi | |
3393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3394 | fi | |
3395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3396 | fi | |
3397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3398 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3399 | fi | |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3401 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3402 | if test "$ac_test_CFLAGS" = set; then | |
3403 | CFLAGS=$ac_save_CFLAGS | |
3404 | elif test $ac_cv_prog_cc_g = yes; then | |
3405 | if test "$GCC" = yes; then | |
3406 | CFLAGS="-g -O2" | |
3407 | else | |
3408 | CFLAGS="-g" | |
3409 | fi | |
3410 | else | |
3411 | if test "$GCC" = yes; then | |
3412 | CFLAGS="-O2" | |
3413 | else | |
3414 | CFLAGS= | |
3415 | fi | |
3416 | fi | |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3418 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3419 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3420 | $as_echo_n "(cached) " >&6 | |
3421 | else | |
3422 | ac_cv_prog_cc_c89=no | |
3423 | ac_save_CC=$CC | |
3424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3425 | /* end confdefs.h. */ | |
3426 | #include <stdarg.h> | |
3427 | #include <stdio.h> | |
3428 | #include <sys/types.h> | |
3429 | #include <sys/stat.h> | |
3430 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3431 | struct buf { int x; }; | |
3432 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3433 | static char *e (p, i) | |
3434 | char **p; | |
3435 | int i; | |
3436 | { | |
3437 | return p[i]; | |
3438 | } | |
3439 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3440 | { | |
3441 | char *s; | |
3442 | va_list v; | |
3443 | va_start (v,p); | |
3444 | s = g (p, va_arg (v,int)); | |
3445 | va_end (v); | |
3446 | return s; | |
3447 | } | |
3448 | ||
3449 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3450 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3451 | These don't provoke an error unfortunately, instead are silently treated | |
3452 | as 'x'. The following induces an error, until -std is added to get | |
3453 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3454 | array size at least. It's necessary to write '\x00'==0 to get something | |
3455 | that's true only with -std. */ | |
3456 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3457 | ||
3458 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3459 | inside strings and character constants. */ | |
3460 | #define FOO(x) 'x' | |
3461 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3462 | ||
3463 | int test (int i, double x); | |
3464 | struct s1 {int (*f) (int a);}; | |
3465 | struct s2 {int (*f) (double a);}; | |
3466 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3467 | int argc; | |
3468 | char **argv; | |
3469 | int | |
3470 | main () | |
3471 | { | |
3472 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3473 | ; | |
3474 | return 0; | |
3475 | } | |
3476 | _ACEOF | |
3477 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3478 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3479 | do | |
3480 | CC="$ac_save_CC $ac_arg" | |
3481 | if ac_fn_c_try_compile "$LINENO"; then : | |
3482 | ac_cv_prog_cc_c89=$ac_arg | |
3483 | fi | |
3484 | rm -f core conftest.err conftest.$ac_objext | |
3485 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3486 | done | |
3487 | rm -f conftest.$ac_ext | |
3488 | CC=$ac_save_CC | |
3489 | ||
3490 | fi | |
3491 | # AC_CACHE_VAL | |
3492 | case "x$ac_cv_prog_cc_c89" in | |
3493 | x) | |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3495 | $as_echo "none needed" >&6; } ;; | |
3496 | xno) | |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3498 | $as_echo "unsupported" >&6; } ;; | |
3499 | *) | |
3500 | CC="$CC $ac_cv_prog_cc_c89" | |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3502 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3503 | esac | |
3504 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3505 | ||
3506 | fi | |
3507 | ||
3508 | ac_ext=c | |
3509 | ac_cpp='$CPP $CPPFLAGS' | |
3510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3513 | ||
9c60689e DWT |
3514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3515 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3516 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3517 | $as_echo_n "(cached) " >&6 |
3518 | else | |
9c60689e DWT |
3519 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3520 | for ac_i in 1 2 3 4 5 6 7; do | |
3521 | ac_script="$ac_script$as_nl$ac_script" | |
3522 | done | |
3523 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3524 | { ac_script=; unset ac_script;} | |
3525 | if test -z "$SED"; then | |
3526 | ac_path_SED_found=false | |
3527 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3529 | for as_dir in $PATH |
3530 | do | |
3531 | IFS=$as_save_IFS | |
3532 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3533 | for ac_prog in sed gsed; do |
35fa52c0 | 3534 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3535 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3536 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3537 | # Check for GNU ac_path_SED and select it if it is found. | |
3538 | # Check for GNU $ac_path_SED | |
3539 | case `"$ac_path_SED" --version 2>&1` in | |
3540 | *GNU*) | |
3541 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3542 | *) | |
3543 | ac_count=0 | |
3544 | $as_echo_n 0123456789 >"conftest.in" | |
3545 | while : | |
3546 | do | |
3547 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3548 | mv "conftest.tmp" "conftest.in" | |
3549 | cp "conftest.in" "conftest.nl" | |
3550 | $as_echo '' >> "conftest.nl" | |
3551 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3552 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3553 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3554 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3555 | # Best one so far, save it but keep looking for a better one | |
3556 | ac_cv_path_SED="$ac_path_SED" | |
3557 | ac_path_SED_max=$ac_count | |
3558 | fi | |
3559 | # 10*(2^10) chars as input seems more than enough | |
3560 | test $ac_count -gt 10 && break | |
35fa52c0 | 3561 | done |
9c60689e DWT |
3562 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3563 | esac | |
35fa52c0 | 3564 | |
9c60689e DWT |
3565 | $ac_path_SED_found && break 3 |
3566 | done | |
3567 | done | |
3568 | done | |
3569 | IFS=$as_save_IFS | |
3570 | if test -z "$ac_cv_path_SED"; then | |
3571 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3572 | fi | |
35fa52c0 | 3573 | else |
9c60689e | 3574 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3575 | fi |
3576 | ||
9c60689e DWT |
3577 | fi |
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3579 | $as_echo "$ac_cv_path_SED" >&6; } | |
3580 | SED="$ac_cv_path_SED" | |
3581 | rm -f conftest.sed | |
35fa52c0 | 3582 | |
9c60689e DWT |
3583 | test -z "$SED" && SED=sed |
3584 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3585 | |
35fa52c0 | 3586 | |
35fa52c0 | 3587 | |
35fa52c0 | 3588 | |
35fa52c0 | 3589 | |
35fa52c0 DWT |
3590 | |
3591 | ||
35fa52c0 | 3592 | |
35fa52c0 | 3593 | |
35fa52c0 | 3594 | |
35fa52c0 | 3595 | |
9c60689e DWT |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3597 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3598 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3599 | $as_echo_n "(cached) " >&6 | |
3600 | else | |
3601 | if test -z "$GREP"; then | |
3602 | ac_path_GREP_found=false | |
3603 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3605 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3606 | do | |
3607 | IFS=$as_save_IFS | |
3608 | test -z "$as_dir" && as_dir=. | |
3609 | for ac_prog in grep ggrep; do | |
3610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3611 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3612 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3613 | # Check for GNU ac_path_GREP and select it if it is found. | |
3614 | # Check for GNU $ac_path_GREP | |
3615 | case `"$ac_path_GREP" --version 2>&1` in | |
3616 | *GNU*) | |
3617 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3618 | *) | |
3619 | ac_count=0 | |
3620 | $as_echo_n 0123456789 >"conftest.in" | |
3621 | while : | |
3622 | do | |
3623 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3624 | mv "conftest.tmp" "conftest.in" | |
3625 | cp "conftest.in" "conftest.nl" | |
3626 | $as_echo 'GREP' >> "conftest.nl" | |
3627 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3628 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3629 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3630 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3631 | # Best one so far, save it but keep looking for a better one | |
3632 | ac_cv_path_GREP="$ac_path_GREP" | |
3633 | ac_path_GREP_max=$ac_count | |
3634 | fi | |
3635 | # 10*(2^10) chars as input seems more than enough | |
3636 | test $ac_count -gt 10 && break | |
3637 | done | |
3638 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3639 | esac | |
6b66678a | 3640 | |
9c60689e DWT |
3641 | $ac_path_GREP_found && break 3 |
3642 | done | |
3643 | done | |
3644 | done | |
3645 | IFS=$as_save_IFS | |
3646 | if test -z "$ac_cv_path_GREP"; then | |
3647 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3648 | fi | |
3649 | else | |
3650 | ac_cv_path_GREP=$GREP | |
3651 | fi | |
6b66678a | 3652 | |
9c60689e DWT |
3653 | fi |
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3655 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3656 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3657 | |
3658 | ||
9c60689e DWT |
3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3660 | $as_echo_n "checking for egrep... " >&6; } | |
3661 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3662 | $as_echo_n "(cached) " >&6 |
3663 | else | |
9c60689e DWT |
3664 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3665 | then ac_cv_path_EGREP="$GREP -E" | |
3666 | else | |
3667 | if test -z "$EGREP"; then | |
3668 | ac_path_EGREP_found=false | |
3669 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3671 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3672 | do | |
3673 | IFS=$as_save_IFS | |
3674 | test -z "$as_dir" && as_dir=. | |
3675 | for ac_prog in egrep; do | |
3676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3677 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3678 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3679 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3680 | # Check for GNU $ac_path_EGREP | |
3681 | case `"$ac_path_EGREP" --version 2>&1` in | |
3682 | *GNU*) | |
3683 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3684 | *) | |
3685 | ac_count=0 | |
3686 | $as_echo_n 0123456789 >"conftest.in" | |
3687 | while : | |
3688 | do | |
3689 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3690 | mv "conftest.tmp" "conftest.in" | |
3691 | cp "conftest.in" "conftest.nl" | |
3692 | $as_echo 'EGREP' >> "conftest.nl" | |
3693 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3694 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3695 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3696 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3697 | # Best one so far, save it but keep looking for a better one | |
3698 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3699 | ac_path_EGREP_max=$ac_count | |
3700 | fi | |
3701 | # 10*(2^10) chars as input seems more than enough | |
3702 | test $ac_count -gt 10 && break | |
3703 | done | |
3704 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3705 | esac | |
3706 | ||
3707 | $ac_path_EGREP_found && break 3 | |
3708 | done | |
3709 | done | |
3710 | done | |
3711 | IFS=$as_save_IFS | |
3712 | if test -z "$ac_cv_path_EGREP"; then | |
3713 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3714 | fi | |
3715 | else | |
3716 | ac_cv_path_EGREP=$EGREP | |
3717 | fi | |
6b66678a | 3718 | |
9c60689e DWT |
3719 | fi |
3720 | fi | |
3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3722 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3723 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3724 | |
6b66678a | 3725 | |
9c60689e DWT |
3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3727 | $as_echo_n "checking for fgrep... " >&6; } | |
3728 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3729 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3730 | else |
9c60689e DWT |
3731 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3732 | then ac_cv_path_FGREP="$GREP -F" | |
3733 | else | |
3734 | if test -z "$FGREP"; then | |
3735 | ac_path_FGREP_found=false | |
3736 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3738 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3739 | do | |
3740 | IFS=$as_save_IFS | |
3741 | test -z "$as_dir" && as_dir=. | |
3742 | for ac_prog in fgrep; do | |
3743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3744 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3745 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3746 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3747 | # Check for GNU $ac_path_FGREP | |
3748 | case `"$ac_path_FGREP" --version 2>&1` in | |
3749 | *GNU*) | |
3750 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3751 | *) | |
3752 | ac_count=0 | |
3753 | $as_echo_n 0123456789 >"conftest.in" | |
3754 | while : | |
3755 | do | |
3756 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3757 | mv "conftest.tmp" "conftest.in" | |
3758 | cp "conftest.in" "conftest.nl" | |
3759 | $as_echo 'FGREP' >> "conftest.nl" | |
3760 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3761 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3762 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3763 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3764 | # Best one so far, save it but keep looking for a better one | |
3765 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3766 | ac_path_FGREP_max=$ac_count | |
3767 | fi | |
3768 | # 10*(2^10) chars as input seems more than enough | |
3769 | test $ac_count -gt 10 && break | |
3770 | done | |
3771 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3772 | esac | |
6b66678a | 3773 | |
9c60689e DWT |
3774 | $ac_path_FGREP_found && break 3 |
3775 | done | |
3776 | done | |
3777 | done | |
3778 | IFS=$as_save_IFS | |
3779 | if test -z "$ac_cv_path_FGREP"; then | |
3780 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3781 | fi | |
3782 | else | |
3783 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3784 | fi |
3785 | ||
9c60689e | 3786 | fi |
6b66678a | 3787 | fi |
9c60689e DWT |
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3789 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3790 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3791 | |
35fa52c0 | 3792 | |
9c60689e | 3793 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3794 | |
309b0535 | 3795 | |
35fa52c0 | 3796 | |
6b66678a | 3797 | |
6b66678a DWT |
3798 | |
3799 | ||
6b66678a | 3800 | |
6b66678a | 3801 | |
35fa52c0 | 3802 | |
35fa52c0 | 3803 | |
309b0535 | 3804 | |
309b0535 | 3805 | |
309b0535 | 3806 | |
309b0535 | 3807 | |
309b0535 | 3808 | |
309b0535 | 3809 | |
309b0535 | 3810 | |
309b0535 | 3811 | |
309b0535 | 3812 | |
9c60689e DWT |
3813 | # Check whether --with-gnu-ld was given. |
3814 | if test "${with_gnu_ld+set}" = set; then : | |
3815 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3816 | else |
9c60689e DWT |
3817 | with_gnu_ld=no |
3818 | fi | |
309b0535 | 3819 | |
9c60689e DWT |
3820 | ac_prog=ld |
3821 | if test "$GCC" = yes; then | |
3822 | # Check if gcc -print-prog-name=ld gives a path. | |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3824 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3825 | case $host in | |
3826 | *-*-mingw*) | |
3827 | # gcc leaves a trailing carriage return which upsets mingw | |
3828 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3829 | *) | |
3830 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3831 | esac | |
3832 | case $ac_prog in | |
3833 | # Accept absolute paths. | |
3834 | [\\/]* | ?:[\\/]*) | |
3835 | re_direlt='/[^/][^/]*/\.\./' | |
3836 | # Canonicalize the pathname of ld | |
3837 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3838 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3839 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3840 | done |
9c60689e DWT |
3841 | test -z "$LD" && LD="$ac_prog" |
3842 | ;; | |
3843 | "") | |
3844 | # If it fails, then pretend we aren't using GCC. | |
3845 | ac_prog=ld | |
3846 | ;; | |
3847 | *) | |
3848 | # If it is relative, then search for the first ld in PATH. | |
3849 | with_gnu_ld=unknown | |
3850 | ;; | |
3851 | esac | |
3852 | elif test "$with_gnu_ld" = yes; then | |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3854 | $as_echo_n "checking for GNU ld... " >&6; } | |
3855 | else | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3857 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3858 | fi | |
3859 | if test "${lt_cv_path_LD+set}" = set; then : | |
3860 | $as_echo_n "(cached) " >&6 | |
3861 | else | |
3862 | if test -z "$LD"; then | |
3863 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3864 | for ac_dir in $PATH; do | |
3865 | IFS="$lt_save_ifs" | |
3866 | test -z "$ac_dir" && ac_dir=. | |
3867 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3868 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3869 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3870 | # but apparently some variants of GNU ld only accept -v. | |
3871 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3872 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3873 | *GNU* | *'with BFD'*) | |
3874 | test "$with_gnu_ld" != no && break | |
3875 | ;; | |
3876 | *) | |
3877 | test "$with_gnu_ld" != yes && break | |
3878 | ;; | |
309b0535 | 3879 | esac |
309b0535 | 3880 | fi |
9c60689e DWT |
3881 | done |
3882 | IFS="$lt_save_ifs" | |
3883 | else | |
3884 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3885 | fi | |
3886 | fi | |
309b0535 | 3887 | |
9c60689e DWT |
3888 | LD="$lt_cv_path_LD" |
3889 | if test -n "$LD"; then | |
3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3891 | $as_echo "$LD" >&6; } | |
3892 | else | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3894 | $as_echo "no" >&6; } | |
3895 | fi | |
3896 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3898 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3899 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3900 | $as_echo_n "(cached) " >&6 | |
3901 | else | |
3902 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3903 | case `$LD -v 2>&1 </dev/null` in | |
3904 | *GNU* | *'with BFD'*) | |
3905 | lt_cv_prog_gnu_ld=yes | |
3906 | ;; | |
3907 | *) | |
3908 | lt_cv_prog_gnu_ld=no | |
3909 | ;; | |
3910 | esac | |
309b0535 | 3911 | fi |
9c60689e DWT |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3913 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3914 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3915 | |
3916 | ||
309b0535 | 3917 | |
309b0535 DWT |
3918 | |
3919 | ||
309b0535 | 3920 | |
309b0535 | 3921 | |
9c60689e DWT |
3922 | |
3923 | ||
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3925 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3926 | if test "${lt_cv_path_NM+set}" = set; then : | |
3927 | $as_echo_n "(cached) " >&6 | |
3928 | else | |
3929 | if test -n "$NM"; then | |
3930 | # Let the user override the test. | |
3931 | lt_cv_path_NM="$NM" | |
3932 | else | |
3933 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3934 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3935 | lt_nm_to_check="$lt_nm_to_check nm" | |
3936 | fi | |
3937 | for lt_tmp_nm in $lt_nm_to_check; do | |
3938 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3939 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3940 | IFS="$lt_save_ifs" | |
3941 | test -z "$ac_dir" && ac_dir=. | |
3942 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3943 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3944 | # Check to see if the nm accepts a BSD-compat flag. | |
3945 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3946 | # nm: unknown option "B" ignored | |
3947 | # Tru64's nm complains that /dev/null is an invalid object file | |
3948 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3949 | */dev/null* | *'Invalid file or object type'*) | |
3950 | lt_cv_path_NM="$tmp_nm -B" | |
3951 | break | |
3952 | ;; | |
3953 | *) | |
3954 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3955 | */dev/null*) | |
3956 | lt_cv_path_NM="$tmp_nm -p" | |
3957 | break | |
3958 | ;; | |
3959 | *) | |
3960 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3961 | continue # so that we can try to find one that supports BSD flags | |
3962 | ;; | |
3963 | esac | |
3964 | ;; | |
3965 | esac | |
309b0535 DWT |
3966 | fi |
3967 | done | |
9c60689e | 3968 | IFS="$lt_save_ifs" |
309b0535 | 3969 | done |
9c60689e DWT |
3970 | : ${lt_cv_path_NM=no} |
3971 | fi | |
3972 | fi | |
3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3974 | $as_echo "$lt_cv_path_NM" >&6; } | |
3975 | if test "$lt_cv_path_NM" != "no"; then | |
3976 | NM="$lt_cv_path_NM" | |
3977 | else | |
3978 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3979 | if test -n "$ac_tool_prefix"; then | |
3980 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3981 | do |
3982 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3983 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3985 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3986 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3987 | $as_echo_n "(cached) " >&6 |
3988 | else | |
9c60689e DWT |
3989 | if test -n "$DUMPBIN"; then |
3990 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3991 | else |
3992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3993 | for as_dir in $PATH | |
3994 | do | |
3995 | IFS=$as_save_IFS | |
3996 | test -z "$as_dir" && as_dir=. | |
3997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3999 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
4000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4001 | break 2 | |
4002 | fi | |
4003 | done | |
4004 | done | |
4005 | IFS=$as_save_IFS | |
4006 | ||
4007 | fi | |
4008 | fi | |
9c60689e DWT |
4009 | DUMPBIN=$ac_cv_prog_DUMPBIN |
4010 | if test -n "$DUMPBIN"; then | |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4012 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
4013 | else |
4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4015 | $as_echo "no" >&6; } | |
4016 | fi | |
4017 | ||
4018 | ||
9c60689e | 4019 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
4020 | done |
4021 | fi | |
9c60689e DWT |
4022 | if test -z "$DUMPBIN"; then |
4023 | ac_ct_DUMPBIN=$DUMPBIN | |
4024 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
4025 | do |
4026 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4027 | set dummy $ac_prog; ac_word=$2 | |
4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4029 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 4030 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
4031 | $as_echo_n "(cached) " >&6 |
4032 | else | |
9c60689e DWT |
4033 | if test -n "$ac_ct_DUMPBIN"; then |
4034 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
4035 | else |
4036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4037 | for as_dir in $PATH | |
4038 | do | |
4039 | IFS=$as_save_IFS | |
4040 | test -z "$as_dir" && as_dir=. | |
4041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 4043 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
4044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4045 | break 2 | |
4046 | fi | |
4047 | done | |
4048 | done | |
4049 | IFS=$as_save_IFS | |
4050 | ||
4051 | fi | |
4052 | fi | |
9c60689e DWT |
4053 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4054 | if test -n "$ac_ct_DUMPBIN"; then | |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4056 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4057 | else |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4059 | $as_echo "no" >&6; } | |
4060 | fi | |
4061 | ||
4062 | ||
9c60689e | 4063 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4064 | done |
4065 | ||
9c60689e DWT |
4066 | if test "x$ac_ct_DUMPBIN" = x; then |
4067 | DUMPBIN=":" | |
35fa52c0 DWT |
4068 | else |
4069 | case $cross_compiling:$ac_tool_warned in | |
4070 | yes:) | |
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4072 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4073 | ac_tool_warned=yes ;; | |
4074 | esac | |
9c60689e | 4075 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4076 | fi |
4077 | fi | |
4078 | ||
9c60689e DWT |
4079 | |
4080 | if test "$DUMPBIN" != ":"; then | |
4081 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4082 | fi |
4083 | fi | |
9c60689e | 4084 | test -z "$NM" && NM=nm |
35fa52c0 | 4085 | |
35fa52c0 | 4086 | |
35fa52c0 | 4087 | |
35fa52c0 | 4088 | |
9c60689e DWT |
4089 | |
4090 | ||
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4092 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4093 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4094 | $as_echo_n "(cached) " >&6 | |
4095 | else | |
4096 | lt_cv_nm_interface="BSD nm" | |
4097 | echo "int some_variable = 0;" > conftest.$ac_ext | |
e1cce270 | 4098 | (eval echo "\"\$as_me:4098: $ac_compile\"" >&5) |
9c60689e DWT |
4099 | (eval "$ac_compile" 2>conftest.err) |
4100 | cat conftest.err >&5 | |
e1cce270 | 4101 | (eval echo "\"\$as_me:4101: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
9c60689e DWT |
4102 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4103 | cat conftest.err >&5 | |
e1cce270 | 4104 | (eval echo "\"\$as_me:4104: output\"" >&5) |
9c60689e DWT |
4105 | cat conftest.out >&5 |
4106 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4107 | lt_cv_nm_interface="MS dumpbin" | |
4108 | fi | |
4109 | rm -f conftest* | |
35fa52c0 | 4110 | fi |
9c60689e DWT |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4112 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4113 | ||
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4115 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4116 | LN_S=$as_ln_s | |
4117 | if test "$LN_S" = "ln -s"; then | |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4119 | $as_echo "yes" >&6; } | |
35fa52c0 | 4120 | else |
9c60689e DWT |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4122 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4123 | fi |
9c60689e DWT |
4124 | |
4125 | # find the maximum length of command line arguments | |
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4127 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4128 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4129 | $as_echo_n "(cached) " >&6 |
4130 | else | |
9c60689e DWT |
4131 | i=0 |
4132 | teststring="ABCD" | |
4133 | ||
4134 | case $build_os in | |
4135 | msdosdjgpp*) | |
4136 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4137 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4138 | # during glob expansion). Even if it were fixed, the result of this | |
4139 | # check would be larger than it should be. | |
4140 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4141 | ;; | |
35fa52c0 | 4142 | |
9c60689e DWT |
4143 | gnu*) |
4144 | # Under GNU Hurd, this test is not required because there is | |
4145 | # no limit to the length of command line arguments. | |
4146 | # Libtool will interpret -1 as no limit whatsoever | |
4147 | lt_cv_sys_max_cmd_len=-1; | |
4148 | ;; | |
35fa52c0 | 4149 | |
9c60689e DWT |
4150 | cygwin* | mingw* | cegcc*) |
4151 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4152 | # about 5 minutes as the teststring grows exponentially. | |
4153 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4154 | # you end up with a "frozen" computer, even though with patience | |
4155 | # the test eventually succeeds (with a max line length of 256k). | |
4156 | # Instead, let's just punt: use the minimum linelength reported by | |
4157 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4158 | lt_cv_sys_max_cmd_len=8192; | |
4159 | ;; | |
35fa52c0 | 4160 | |
9c60689e DWT |
4161 | amigaos*) |
4162 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4163 | # So we just punt and use a minimum line length of 8192. | |
4164 | lt_cv_sys_max_cmd_len=8192; | |
4165 | ;; | |
35fa52c0 | 4166 | |
9c60689e DWT |
4167 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4168 | # This has been around since 386BSD, at least. Likely further. | |
4169 | if test -x /sbin/sysctl; then | |
4170 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4171 | elif test -x /usr/sbin/sysctl; then | |
4172 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4173 | else | |
4174 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4175 | fi | |
4176 | # And add a safety zone | |
4177 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4178 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4179 | ;; | |
35fa52c0 | 4180 | |
9c60689e DWT |
4181 | interix*) |
4182 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4183 | lt_cv_sys_max_cmd_len=196608 | |
4184 | ;; | |
35fa52c0 | 4185 | |
9c60689e DWT |
4186 | osf*) |
4187 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4188 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4189 | # nice to cause kernel panics so lets avoid the loop below. | |
4190 | # First set a reasonable default. | |
4191 | lt_cv_sys_max_cmd_len=16384 | |
4192 | # | |
4193 | if test -x /sbin/sysconfig; then | |
4194 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4195 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4196 | esac | |
4197 | fi | |
4198 | ;; | |
4199 | sco3.2v5*) | |
4200 | lt_cv_sys_max_cmd_len=102400 | |
4201 | ;; | |
4202 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4203 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4204 | if test -n "$kargmax"; then | |
4205 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4206 | else | |
4207 | lt_cv_sys_max_cmd_len=32768 | |
4208 | fi | |
4209 | ;; | |
4210 | *) | |
4211 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4212 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4213 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4214 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4215 | else | |
4216 | # Make teststring a little bigger before we do anything with it. | |
4217 | # a 1K string should be a reasonable start. | |
4218 | for i in 1 2 3 4 5 6 7 8 ; do | |
4219 | teststring=$teststring$teststring | |
4220 | done | |
4221 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4222 | # If test is not a shell built-in, we'll probably end up computing a | |
4223 | # maximum length that is only half of the actual maximum length, but | |
4224 | # we can't tell. | |
4225 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4226 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4227 | test $i != 17 # 1/2 MB should be enough | |
4228 | do | |
4229 | i=`expr $i + 1` | |
4230 | teststring=$teststring$teststring | |
4231 | done | |
4232 | # Only check the string length outside the loop. | |
4233 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4234 | teststring= | |
4235 | # Add a significant safety factor because C++ compilers can tack on | |
4236 | # massive amounts of additional arguments before passing them to the | |
4237 | # linker. It appears as though 1/2 is a usable value. | |
4238 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4239 | fi | |
4240 | ;; | |
4241 | esac | |
35fa52c0 | 4242 | |
35fa52c0 | 4243 | fi |
9c60689e DWT |
4244 | |
4245 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4247 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4248 | else |
9c60689e DWT |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4250 | $as_echo "none" >&6; } | |
35fa52c0 | 4251 | fi |
9c60689e | 4252 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4253 | |
9c60689e DWT |
4254 | |
4255 | ||
4256 | ||
4257 | ||
4258 | ||
4259 | : ${CP="cp -f"} | |
4260 | : ${MV="mv -f"} | |
4261 | : ${RM="rm -f"} | |
4262 | ||
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4264 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4265 | # Try some XSI features | |
4266 | xsi_shell=no | |
4267 | ( _lt_dummy="a/b/c" | |
4268 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4269 | = c,a/b,, \ | |
4270 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4271 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4272 | && xsi_shell=yes | |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4274 | $as_echo "$xsi_shell" >&6; } | |
4275 | ||
4276 | ||
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4278 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4279 | lt_shell_append=no | |
4280 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4281 | >/dev/null 2>&1 \ | |
4282 | && lt_shell_append=yes | |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4284 | $as_echo "$lt_shell_append" >&6; } | |
4285 | ||
4286 | ||
4287 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4288 | lt_unset=unset | |
35fa52c0 | 4289 | else |
9c60689e DWT |
4290 | lt_unset=false |
4291 | fi | |
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | # test EBCDIC or ASCII | |
4298 | case `echo X|tr X '\101'` in | |
4299 | A) # ASCII based system | |
4300 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4301 | lt_SP2NL='tr \040 \012' | |
4302 | lt_NL2SP='tr \015\012 \040\040' | |
4303 | ;; | |
4304 | *) # EBCDIC based system | |
4305 | lt_SP2NL='tr \100 \n' | |
4306 | lt_NL2SP='tr \r\n \100\100' | |
4307 | ;; | |
35fa52c0 DWT |
4308 | esac |
4309 | ||
35fa52c0 | 4310 | |
35fa52c0 | 4311 | |
35fa52c0 | 4312 | |
35fa52c0 | 4313 | |
35fa52c0 | 4314 | |
35fa52c0 | 4315 | |
35fa52c0 | 4316 | |
9c60689e DWT |
4317 | |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4319 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4320 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4321 | $as_echo_n "(cached) " >&6 |
4322 | else | |
9c60689e | 4323 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4324 | fi |
9c60689e DWT |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4326 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4327 | reload_flag=$lt_cv_ld_reload_flag | |
4328 | case $reload_flag in | |
4329 | "" | " "*) ;; | |
4330 | *) reload_flag=" $reload_flag" ;; | |
4331 | esac | |
4332 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4333 | case $host_os in | |
4334 | darwin*) | |
4335 | if test "$GCC" = yes; then | |
4336 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4337 | else | |
4338 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4339 | fi | |
4340 | ;; | |
35fa52c0 | 4341 | esac |
35fa52c0 DWT |
4342 | |
4343 | ||
9c60689e DWT |
4344 | |
4345 | ||
4346 | ||
4347 | ||
4348 | ||
4349 | ||
4350 | ||
4351 | if test -n "$ac_tool_prefix"; then | |
4352 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4353 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4355 | $as_echo_n "checking for $ac_word... " >&6; } | |
4356 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4357 | $as_echo_n "(cached) " >&6 |
4358 | else | |
9c60689e DWT |
4359 | if test -n "$OBJDUMP"; then |
4360 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4361 | else |
9c60689e DWT |
4362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4363 | for as_dir in $PATH | |
4364 | do | |
4365 | IFS=$as_save_IFS | |
4366 | test -z "$as_dir" && as_dir=. | |
4367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4369 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4371 | break 2 | |
35fa52c0 | 4372 | fi |
9c60689e DWT |
4373 | done |
4374 | done | |
4375 | IFS=$as_save_IFS | |
35fa52c0 | 4376 | |
35fa52c0 | 4377 | fi |
35fa52c0 | 4378 | fi |
9c60689e DWT |
4379 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4380 | if test -n "$OBJDUMP"; then | |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4382 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4383 | else |
9c60689e DWT |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4385 | $as_echo "no" >&6; } | |
35fa52c0 | 4386 | fi |
9c60689e DWT |
4387 | |
4388 | ||
4389 | fi | |
4390 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4391 | ac_ct_OBJDUMP=$OBJDUMP | |
4392 | # Extract the first word of "objdump", so it can be a program name with args. | |
4393 | set dummy objdump; ac_word=$2 | |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4395 | $as_echo_n "checking for $ac_word... " >&6; } | |
4396 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4397 | $as_echo_n "(cached) " >&6 |
4398 | else | |
9c60689e DWT |
4399 | if test -n "$ac_ct_OBJDUMP"; then |
4400 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4401 | else |
9c60689e DWT |
4402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4403 | for as_dir in $PATH | |
4404 | do | |
4405 | IFS=$as_save_IFS | |
4406 | test -z "$as_dir" && as_dir=. | |
4407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4409 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4411 | break 2 | |
4412 | fi | |
4413 | done | |
4414 | done | |
4415 | IFS=$as_save_IFS | |
4416 | ||
35fa52c0 DWT |
4417 | fi |
4418 | fi | |
9c60689e DWT |
4419 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4420 | if test -n "$ac_ct_OBJDUMP"; then | |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4422 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4423 | else |
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4425 | $as_echo "no" >&6; } | |
4426 | fi | |
9c60689e DWT |
4427 | |
4428 | if test "x$ac_ct_OBJDUMP" = x; then | |
4429 | OBJDUMP="false" | |
4430 | else | |
4431 | case $cross_compiling:$ac_tool_warned in | |
4432 | yes:) | |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4434 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4435 | ac_tool_warned=yes ;; | |
35fa52c0 | 4436 | esac |
9c60689e DWT |
4437 | OBJDUMP=$ac_ct_OBJDUMP |
4438 | fi | |
4439 | else | |
4440 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4441 | fi |
35fa52c0 | 4442 | |
9c60689e | 4443 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4444 | |
4445 | ||
35fa52c0 | 4446 | |
35fa52c0 | 4447 | |
35fa52c0 DWT |
4448 | |
4449 | ||
4450 | ||
35fa52c0 DWT |
4451 | |
4452 | ||
9c60689e DWT |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4454 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4455 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4456 | $as_echo_n "(cached) " >&6 | |
4457 | else | |
4458 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4459 | lt_cv_file_magic_test_file= | |
4460 | lt_cv_deplibs_check_method='unknown' | |
4461 | # Need to set the preceding variable on all platforms that support | |
4462 | # interlibrary dependencies. | |
4463 | # 'none' -- dependencies not supported. | |
4464 | # `unknown' -- same as none, but documents that we really don't know. | |
4465 | # 'pass_all' -- all dependencies passed with no checks. | |
4466 | # 'test_compile' -- check by making test program. | |
4467 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4468 | # which responds to the $file_magic_cmd with a given extended regex. | |
4469 | # If you have `file' or equivalent on your system and you're not sure | |
4470 | # whether `pass_all' will *always* work, you probably want this one. | |
4471 | ||
4472 | case $host_os in | |
4473 | aix[4-9]*) | |
4474 | lt_cv_deplibs_check_method=pass_all | |
4475 | ;; | |
35fa52c0 | 4476 | |
9c60689e DWT |
4477 | beos*) |
4478 | lt_cv_deplibs_check_method=pass_all | |
4479 | ;; | |
35fa52c0 | 4480 | |
9c60689e DWT |
4481 | bsdi[45]*) |
4482 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4483 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4484 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4485 | ;; | |
35fa52c0 | 4486 | |
9c60689e DWT |
4487 | cygwin*) |
4488 | # func_win32_libid is a shell function defined in ltmain.sh | |
4489 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4490 | lt_cv_file_magic_cmd='func_win32_libid' | |
4491 | ;; | |
35fa52c0 | 4492 | |
9c60689e DWT |
4493 | mingw* | pw32*) |
4494 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4495 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4496 | # unless we find 'file', for example because we are cross-compiling. | |
4497 | if ( file / ) >/dev/null 2>&1; then | |
4498 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4499 | lt_cv_file_magic_cmd='func_win32_libid' | |
4500 | else | |
4501 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4502 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4503 | fi | |
4504 | ;; | |
35fa52c0 | 4505 | |
9c60689e DWT |
4506 | cegcc) |
4507 | # use the weaker test based on 'objdump'. See mingw*. | |
4508 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4509 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4510 | ;; | |
35fa52c0 | 4511 | |
9c60689e DWT |
4512 | darwin* | rhapsody*) |
4513 | lt_cv_deplibs_check_method=pass_all | |
4514 | ;; | |
35fa52c0 | 4515 | |
9c60689e DWT |
4516 | freebsd* | dragonfly*) |
4517 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4518 | case $host_cpu in | |
4519 | i*86 ) | |
4520 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4521 | # Let's accept both of them until this is cleared up. | |
4522 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4523 | lt_cv_file_magic_cmd=/usr/bin/file | |
4524 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4525 | ;; | |
4526 | esac | |
4527 | else | |
4528 | lt_cv_deplibs_check_method=pass_all | |
4529 | fi | |
4530 | ;; | |
35fa52c0 | 4531 | |
9c60689e DWT |
4532 | gnu*) |
4533 | lt_cv_deplibs_check_method=pass_all | |
4534 | ;; | |
35fa52c0 | 4535 | |
9c60689e DWT |
4536 | hpux10.20* | hpux11*) |
4537 | lt_cv_file_magic_cmd=/usr/bin/file | |
4538 | case $host_cpu in | |
4539 | ia64*) | |
4540 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4541 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4542 | ;; | |
4543 | hppa*64*) | |
4544 | 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]' | |
4545 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4546 | ;; | |
4547 | *) | |
4548 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4549 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4550 | ;; | |
4551 | esac | |
4552 | ;; | |
35fa52c0 | 4553 | |
9c60689e DWT |
4554 | interix[3-9]*) |
4555 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4556 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4557 | ;; | |
35fa52c0 | 4558 | |
9c60689e DWT |
4559 | irix5* | irix6* | nonstopux*) |
4560 | case $LD in | |
4561 | *-32|*"-32 ") libmagic=32-bit;; | |
4562 | *-n32|*"-n32 ") libmagic=N32;; | |
4563 | *-64|*"-64 ") libmagic=64-bit;; | |
4564 | *) libmagic=never-match;; | |
4565 | esac | |
4566 | lt_cv_deplibs_check_method=pass_all | |
4567 | ;; | |
35fa52c0 | 4568 | |
9c60689e DWT |
4569 | # This must be Linux ELF. |
4570 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4571 | lt_cv_deplibs_check_method=pass_all | |
4572 | ;; | |
35fa52c0 | 4573 | |
9c60689e DWT |
4574 | netbsd* | netbsdelf*-gnu) |
4575 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4576 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4577 | else | |
4578 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4579 | fi | |
4580 | ;; | |
35fa52c0 | 4581 | |
9c60689e DWT |
4582 | newos6*) |
4583 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4584 | lt_cv_file_magic_cmd=/usr/bin/file | |
4585 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4586 | ;; | |
35fa52c0 | 4587 | |
9c60689e DWT |
4588 | *nto* | *qnx*) |
4589 | lt_cv_deplibs_check_method=pass_all | |
4590 | ;; | |
35fa52c0 | 4591 | |
9c60689e DWT |
4592 | openbsd*) |
4593 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4594 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4595 | else | |
4596 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4597 | fi | |
4598 | ;; | |
4599 | ||
4600 | osf3* | osf4* | osf5*) | |
4601 | lt_cv_deplibs_check_method=pass_all | |
4602 | ;; | |
4603 | ||
4604 | rdos*) | |
4605 | lt_cv_deplibs_check_method=pass_all | |
4606 | ;; | |
4607 | ||
4608 | solaris*) | |
4609 | lt_cv_deplibs_check_method=pass_all | |
4610 | ;; | |
4611 | ||
4612 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4613 | lt_cv_deplibs_check_method=pass_all | |
4614 | ;; | |
4615 | ||
4616 | sysv4 | sysv4.3*) | |
4617 | case $host_vendor in | |
4618 | motorola) | |
4619 | 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]' | |
4620 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4621 | ;; | |
4622 | ncr) | |
4623 | lt_cv_deplibs_check_method=pass_all | |
4624 | ;; | |
4625 | sequent) | |
4626 | lt_cv_file_magic_cmd='/bin/file' | |
4627 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4628 | ;; | |
4629 | sni) | |
4630 | lt_cv_file_magic_cmd='/bin/file' | |
4631 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4632 | lt_cv_file_magic_test_file=/lib/libc.so | |
4633 | ;; | |
4634 | siemens) | |
4635 | lt_cv_deplibs_check_method=pass_all | |
4636 | ;; | |
4637 | pc) | |
4638 | lt_cv_deplibs_check_method=pass_all | |
4639 | ;; | |
4640 | esac | |
4641 | ;; | |
4642 | ||
4643 | tpf*) | |
4644 | lt_cv_deplibs_check_method=pass_all | |
4645 | ;; | |
4646 | esac | |
35fa52c0 DWT |
4647 | |
4648 | fi | |
9c60689e DWT |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4650 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4651 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4652 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4653 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4654 | |
35fa52c0 | 4655 | |
35fa52c0 | 4656 | |
35fa52c0 | 4657 | |
35fa52c0 | 4658 | |
35fa52c0 | 4659 | |
35fa52c0 | 4660 | |
35fa52c0 | 4661 | |
35fa52c0 | 4662 | |
35fa52c0 | 4663 | |
35fa52c0 | 4664 | |
9c60689e DWT |
4665 | |
4666 | if test -n "$ac_tool_prefix"; then | |
4667 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4668 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4670 | $as_echo_n "checking for $ac_word... " >&6; } | |
4671 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4672 | $as_echo_n "(cached) " >&6 | |
4673 | else | |
4674 | if test -n "$AR"; then | |
4675 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4676 | else | |
4677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4678 | for as_dir in $PATH | |
4679 | do | |
4680 | IFS=$as_save_IFS | |
4681 | test -z "$as_dir" && as_dir=. | |
4682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4684 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4686 | break 2 | |
4687 | fi | |
4688 | done | |
35fa52c0 | 4689 | done |
9c60689e DWT |
4690 | IFS=$as_save_IFS |
4691 | ||
4692 | fi | |
4693 | fi | |
4694 | AR=$ac_cv_prog_AR | |
4695 | if test -n "$AR"; then | |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4697 | $as_echo "$AR" >&6; } | |
4698 | else | |
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4700 | $as_echo "no" >&6; } | |
4701 | fi | |
4702 | ||
4703 | ||
4704 | fi | |
4705 | if test -z "$ac_cv_prog_AR"; then | |
4706 | ac_ct_AR=$AR | |
4707 | # Extract the first word of "ar", so it can be a program name with args. | |
4708 | set dummy ar; ac_word=$2 | |
4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4710 | $as_echo_n "checking for $ac_word... " >&6; } | |
4711 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4712 | $as_echo_n "(cached) " >&6 | |
4713 | else | |
4714 | if test -n "$ac_ct_AR"; then | |
4715 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4716 | else | |
4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4718 | for as_dir in $PATH | |
4719 | do | |
4720 | IFS=$as_save_IFS | |
4721 | test -z "$as_dir" && as_dir=. | |
4722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4724 | ac_cv_prog_ac_ct_AR="ar" | |
4725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4726 | break 2 | |
35fa52c0 | 4727 | fi |
9c60689e DWT |
4728 | done |
4729 | done | |
4730 | IFS=$as_save_IFS | |
4731 | ||
4732 | fi | |
4733 | fi | |
4734 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4735 | if test -n "$ac_ct_AR"; then | |
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4737 | $as_echo "$ac_ct_AR" >&6; } | |
4738 | else | |
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4740 | $as_echo "no" >&6; } | |
4741 | fi | |
4742 | ||
4743 | if test "x$ac_ct_AR" = x; then | |
4744 | AR="false" | |
4745 | else | |
4746 | case $cross_compiling:$ac_tool_warned in | |
4747 | yes:) | |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4749 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4750 | ac_tool_warned=yes ;; | |
4751 | esac | |
4752 | AR=$ac_ct_AR | |
4753 | fi | |
4754 | else | |
4755 | AR="$ac_cv_prog_AR" | |
4756 | fi | |
4757 | ||
4758 | test -z "$AR" && AR=ar | |
4759 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4760 | ||
4761 | ||
4762 | ||
4763 | ||
4764 | ||
4765 | ||
4766 | ||
4767 | ||
4768 | ||
4769 | ||
4770 | ||
4771 | if test -n "$ac_tool_prefix"; then | |
4772 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4773 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4775 | $as_echo_n "checking for $ac_word... " >&6; } | |
4776 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4777 | $as_echo_n "(cached) " >&6 | |
4778 | else | |
4779 | if test -n "$STRIP"; then | |
4780 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4781 | else | |
4782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4783 | for as_dir in $PATH | |
4784 | do | |
4785 | IFS=$as_save_IFS | |
4786 | test -z "$as_dir" && as_dir=. | |
4787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4788 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4789 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4790 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4791 | break 2 | |
35fa52c0 | 4792 | fi |
9c60689e DWT |
4793 | done |
4794 | done | |
4795 | IFS=$as_save_IFS | |
4796 | ||
4797 | fi | |
4798 | fi | |
4799 | STRIP=$ac_cv_prog_STRIP | |
4800 | if test -n "$STRIP"; then | |
4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4802 | $as_echo "$STRIP" >&6; } | |
4803 | else | |
4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4805 | $as_echo "no" >&6; } | |
4806 | fi | |
4807 | ||
4808 | ||
4809 | fi | |
4810 | if test -z "$ac_cv_prog_STRIP"; then | |
4811 | ac_ct_STRIP=$STRIP | |
4812 | # Extract the first word of "strip", so it can be a program name with args. | |
4813 | set dummy strip; ac_word=$2 | |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4815 | $as_echo_n "checking for $ac_word... " >&6; } | |
4816 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4817 | $as_echo_n "(cached) " >&6 | |
4818 | else | |
4819 | if test -n "$ac_ct_STRIP"; then | |
4820 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4821 | else | |
4822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4823 | for as_dir in $PATH | |
4824 | do | |
4825 | IFS=$as_save_IFS | |
4826 | test -z "$as_dir" && as_dir=. | |
4827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4829 | ac_cv_prog_ac_ct_STRIP="strip" | |
4830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4831 | break 2 | |
4832 | fi | |
4833 | done | |
4834 | done | |
4835 | IFS=$as_save_IFS | |
4836 | ||
4837 | fi | |
4838 | fi | |
4839 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4840 | if test -n "$ac_ct_STRIP"; then | |
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4842 | $as_echo "$ac_ct_STRIP" >&6; } | |
4843 | else | |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4845 | $as_echo "no" >&6; } | |
4846 | fi | |
4847 | ||
4848 | if test "x$ac_ct_STRIP" = x; then | |
4849 | STRIP=":" | |
4850 | else | |
4851 | case $cross_compiling:$ac_tool_warned in | |
4852 | yes:) | |
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4854 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4855 | ac_tool_warned=yes ;; | |
4856 | esac | |
4857 | STRIP=$ac_ct_STRIP | |
4858 | fi | |
4859 | else | |
4860 | STRIP="$ac_cv_prog_STRIP" | |
4861 | fi | |
4862 | ||
4863 | test -z "$STRIP" && STRIP=: | |
4864 | ||
4865 | ||
4866 | ||
4867 | ||
4868 | ||
4869 | ||
4870 | if test -n "$ac_tool_prefix"; then | |
4871 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4872 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4874 | $as_echo_n "checking for $ac_word... " >&6; } | |
4875 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4876 | $as_echo_n "(cached) " >&6 | |
4877 | else | |
4878 | if test -n "$RANLIB"; then | |
4879 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4880 | else | |
4881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4882 | for as_dir in $PATH | |
4883 | do | |
4884 | IFS=$as_save_IFS | |
4885 | test -z "$as_dir" && as_dir=. | |
4886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4888 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4890 | break 2 | |
4891 | fi | |
4892 | done | |
4893 | done | |
4894 | IFS=$as_save_IFS | |
4895 | ||
4896 | fi | |
4897 | fi | |
4898 | RANLIB=$ac_cv_prog_RANLIB | |
4899 | if test -n "$RANLIB"; then | |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4901 | $as_echo "$RANLIB" >&6; } | |
4902 | else | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4904 | $as_echo "no" >&6; } | |
4905 | fi | |
4906 | ||
4907 | ||
4908 | fi | |
4909 | if test -z "$ac_cv_prog_RANLIB"; then | |
4910 | ac_ct_RANLIB=$RANLIB | |
4911 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4912 | set dummy ranlib; ac_word=$2 | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4914 | $as_echo_n "checking for $ac_word... " >&6; } | |
4915 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4916 | $as_echo_n "(cached) " >&6 | |
4917 | else | |
4918 | if test -n "$ac_ct_RANLIB"; then | |
4919 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4920 | else | |
4921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4922 | for as_dir in $PATH | |
4923 | do | |
4924 | IFS=$as_save_IFS | |
4925 | test -z "$as_dir" && as_dir=. | |
4926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4928 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4930 | break 2 | |
4931 | fi | |
4932 | done | |
4933 | done | |
4934 | IFS=$as_save_IFS | |
4935 | ||
4936 | fi | |
4937 | fi | |
4938 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4939 | if test -n "$ac_ct_RANLIB"; then | |
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4941 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4942 | else | |
4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4944 | $as_echo "no" >&6; } | |
4945 | fi | |
4946 | ||
4947 | if test "x$ac_ct_RANLIB" = x; then | |
4948 | RANLIB=":" | |
4949 | else | |
4950 | case $cross_compiling:$ac_tool_warned in | |
4951 | yes:) | |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4953 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4954 | ac_tool_warned=yes ;; | |
4955 | esac | |
4956 | RANLIB=$ac_ct_RANLIB | |
4957 | fi | |
4958 | else | |
4959 | RANLIB="$ac_cv_prog_RANLIB" | |
4960 | fi | |
4961 | ||
4962 | test -z "$RANLIB" && RANLIB=: | |
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | # Determine commands to create old-style static archives. | |
4970 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4971 | old_postinstall_cmds='chmod 644 $oldlib' | |
4972 | old_postuninstall_cmds= | |
4973 | ||
4974 | if test -n "$RANLIB"; then | |
4975 | case $host_os in | |
4976 | openbsd*) | |
4977 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4978 | ;; | |
4979 | *) | |
4980 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4981 | ;; | |
4982 | esac | |
4983 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4984 | fi | |
4985 | ||
4986 | ||
4987 | ||
4988 | ||
4989 | ||
4990 | ||
4991 | ||
4992 | ||
4993 | ||
4994 | ||
4995 | ||
4996 | ||
4997 | ||
4998 | ||
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | ||
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | # If no C compiler was specified, use CC. | |
5020 | LTCC=${LTCC-"$CC"} | |
5021 | ||
5022 | # If no C compiler flags were specified, use CFLAGS. | |
5023 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5024 | ||
5025 | # Allow CC to be a program name with arguments. | |
5026 | compiler=$CC | |
5027 | ||
5028 | ||
5029 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
5031 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5032 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
5033 | $as_echo_n "(cached) " >&6 | |
5034 | else | |
5035 | ||
5036 | # These are sane defaults that work on at least a few old systems. | |
5037 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5038 | ||
5039 | # Character class describing NM global symbol codes. | |
5040 | symcode='[BCDEGRST]' | |
5041 | ||
5042 | # Regexp to match symbols that can be accessed directly from C. | |
5043 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5044 | ||
5045 | # Define system-specific variables. | |
5046 | case $host_os in | |
5047 | aix*) | |
5048 | symcode='[BCDT]' | |
5049 | ;; | |
5050 | cygwin* | mingw* | pw32* | cegcc*) | |
5051 | symcode='[ABCDGISTW]' | |
5052 | ;; | |
5053 | hpux*) | |
5054 | if test "$host_cpu" = ia64; then | |
5055 | symcode='[ABCDEGRST]' | |
5056 | fi | |
5057 | ;; | |
5058 | irix* | nonstopux*) | |
5059 | symcode='[BCDEGRST]' | |
5060 | ;; | |
5061 | osf*) | |
5062 | symcode='[BCDEGQRST]' | |
5063 | ;; | |
5064 | solaris*) | |
5065 | symcode='[BDRT]' | |
5066 | ;; | |
5067 | sco3.2v5*) | |
5068 | symcode='[DT]' | |
5069 | ;; | |
5070 | sysv4.2uw2*) | |
5071 | symcode='[DT]' | |
5072 | ;; | |
5073 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5074 | symcode='[ABDT]' | |
5075 | ;; | |
5076 | sysv4) | |
5077 | symcode='[DFNSTU]' | |
5078 | ;; | |
5079 | esac | |
5080 | ||
5081 | # If we're using GNU nm, then use its standard symbol codes. | |
5082 | case `$NM -V 2>&1` in | |
5083 | *GNU* | *'with BFD'*) | |
5084 | symcode='[ABCDGIRSTW]' ;; | |
5085 | esac | |
5086 | ||
5087 | # Transform an extracted symbol line into a proper C declaration. | |
5088 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5089 | # so use this general approach. | |
5090 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5091 | ||
5092 | # Transform an extracted symbol line into symbol name and symbol address | |
5093 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5094 | 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'" | |
5095 | ||
5096 | # Handle CRLF in mingw tool chain | |
5097 | opt_cr= | |
5098 | case $build_os in | |
5099 | mingw*) | |
5100 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5101 | ;; | |
5102 | esac | |
5103 | ||
5104 | # Try without a prefix underscore, then with it. | |
5105 | for ac_symprfx in "" "_"; do | |
5106 | ||
5107 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5108 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5109 | ||
5110 | # Write the raw and C identifiers. | |
5111 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5112 | # Fake it for dumpbin and say T for any non-static function | |
5113 | # and D for any global variable. | |
5114 | # Also find C++ and __fastcall symbols from MSVC++, | |
5115 | # which start with @ or ?. | |
5116 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5117 | " {last_section=section; section=\$ 3};"\ | |
5118 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5119 | " \$ 0!~/External *\|/{next};"\ | |
5120 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5121 | " {if(hide[section]) next};"\ | |
5122 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5123 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5124 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5125 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5126 | " ' prfx=^$ac_symprfx" | |
5127 | else | |
5128 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5129 | fi | |
5130 | ||
5131 | # Check to see that the pipe works correctly. | |
5132 | pipe_works=no | |
5133 | ||
5134 | rm -f conftest* | |
5135 | cat > conftest.$ac_ext <<_LT_EOF | |
5136 | #ifdef __cplusplus | |
5137 | extern "C" { | |
5138 | #endif | |
5139 | char nm_test_var; | |
5140 | void nm_test_func(void); | |
5141 | void nm_test_func(void){} | |
5142 | #ifdef __cplusplus | |
5143 | } | |
5144 | #endif | |
5145 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5146 | _LT_EOF | |
5147 | ||
5148 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5149 | (eval $ac_compile) 2>&5 | |
5150 | ac_status=$? | |
5151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5152 | test $ac_status = 0; }; then | |
5153 | # Now try to grab the symbols. | |
5154 | nlist=conftest.nm | |
5155 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5156 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5157 | ac_status=$? | |
5158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5159 | test $ac_status = 0; } && test -s "$nlist"; then | |
5160 | # Try sorting and uniquifying the output. | |
5161 | if sort "$nlist" | uniq > "$nlist"T; then | |
5162 | mv -f "$nlist"T "$nlist" | |
5163 | else | |
5164 | rm -f "$nlist"T | |
5165 | fi | |
5166 | ||
5167 | # Make sure that we snagged all the symbols we need. | |
5168 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5169 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5170 | cat <<_LT_EOF > conftest.$ac_ext | |
5171 | #ifdef __cplusplus | |
5172 | extern "C" { | |
5173 | #endif | |
5174 | ||
5175 | _LT_EOF | |
5176 | # Now generate the symbol file. | |
5177 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5178 | ||
5179 | cat <<_LT_EOF >> conftest.$ac_ext | |
5180 | ||
5181 | /* The mapping between symbol names and symbols. */ | |
5182 | const struct { | |
5183 | const char *name; | |
5184 | void *address; | |
5185 | } | |
5186 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5187 | { | |
5188 | { "@PROGRAM@", (void *) 0 }, | |
5189 | _LT_EOF | |
5190 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5191 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5192 | {0, (void *) 0} | |
5193 | }; | |
5194 | ||
5195 | /* This works around a problem in FreeBSD linker */ | |
5196 | #ifdef FREEBSD_WORKAROUND | |
5197 | static const void *lt_preloaded_setup() { | |
5198 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5199 | } | |
5200 | #endif | |
5201 | ||
5202 | #ifdef __cplusplus | |
5203 | } | |
5204 | #endif | |
5205 | _LT_EOF | |
5206 | # Now try linking the two files. | |
5207 | mv conftest.$ac_objext conftstm.$ac_objext | |
5208 | lt_save_LIBS="$LIBS" | |
5209 | lt_save_CFLAGS="$CFLAGS" | |
5210 | LIBS="conftstm.$ac_objext" | |
5211 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5212 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5213 | (eval $ac_link) 2>&5 | |
5214 | ac_status=$? | |
5215 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5216 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5217 | pipe_works=yes | |
5218 | fi | |
5219 | LIBS="$lt_save_LIBS" | |
5220 | CFLAGS="$lt_save_CFLAGS" | |
5221 | else | |
5222 | echo "cannot find nm_test_func in $nlist" >&5 | |
5223 | fi | |
5224 | else | |
5225 | echo "cannot find nm_test_var in $nlist" >&5 | |
5226 | fi | |
5227 | else | |
5228 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5229 | fi | |
5230 | else | |
5231 | echo "$progname: failed program was:" >&5 | |
5232 | cat conftest.$ac_ext >&5 | |
5233 | fi | |
5234 | rm -rf conftest* conftst* | |
5235 | ||
5236 | # Do not use the global_symbol_pipe unless it works. | |
5237 | if test "$pipe_works" = yes; then | |
5238 | break | |
5239 | else | |
5240 | lt_cv_sys_global_symbol_pipe= | |
5241 | fi | |
5242 | done | |
5243 | ||
5244 | fi | |
5245 | ||
5246 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5247 | lt_cv_sys_global_symbol_to_cdecl= | |
5248 | fi | |
5249 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5251 | $as_echo "failed" >&6; } | |
5252 | else | |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5254 | $as_echo "ok" >&6; } | |
5255 | fi | |
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | # Check whether --enable-libtool-lock was given. | |
5280 | if test "${enable_libtool_lock+set}" = set; then : | |
5281 | enableval=$enable_libtool_lock; | |
5282 | fi | |
5283 | ||
5284 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5285 | ||
5286 | # Some flags need to be propagated to the compiler or linker for good | |
5287 | # libtool support. | |
5288 | case $host in | |
5289 | ia64-*-hpux*) | |
5290 | # Find out which ABI we are using. | |
5291 | echo 'int i;' > conftest.$ac_ext | |
5292 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5293 | (eval $ac_compile) 2>&5 | |
5294 | ac_status=$? | |
5295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5296 | test $ac_status = 0; }; then | |
5297 | case `/usr/bin/file conftest.$ac_objext` in | |
5298 | *ELF-32*) | |
5299 | HPUX_IA64_MODE="32" | |
5300 | ;; | |
5301 | *ELF-64*) | |
5302 | HPUX_IA64_MODE="64" | |
5303 | ;; | |
5304 | esac | |
5305 | fi | |
5306 | rm -rf conftest* | |
5307 | ;; | |
5308 | *-*-irix6*) | |
5309 | # Find out which ABI we are using. | |
e1cce270 | 5310 | echo '#line 5310 "configure"' > conftest.$ac_ext |
9c60689e DWT |
5311 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5312 | (eval $ac_compile) 2>&5 | |
5313 | ac_status=$? | |
5314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5315 | test $ac_status = 0; }; then | |
5316 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5317 | case `/usr/bin/file conftest.$ac_objext` in | |
5318 | *32-bit*) | |
5319 | LD="${LD-ld} -melf32bsmip" | |
5320 | ;; | |
5321 | *N32*) | |
5322 | LD="${LD-ld} -melf32bmipn32" | |
5323 | ;; | |
5324 | *64-bit*) | |
5325 | LD="${LD-ld} -melf64bmip" | |
5326 | ;; | |
5327 | esac | |
5328 | else | |
5329 | case `/usr/bin/file conftest.$ac_objext` in | |
5330 | *32-bit*) | |
5331 | LD="${LD-ld} -32" | |
5332 | ;; | |
5333 | *N32*) | |
5334 | LD="${LD-ld} -n32" | |
5335 | ;; | |
5336 | *64-bit*) | |
5337 | LD="${LD-ld} -64" | |
5338 | ;; | |
5339 | esac | |
5340 | fi | |
5341 | fi | |
5342 | rm -rf conftest* | |
5343 | ;; | |
5344 | ||
5345 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5346 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5347 | # Find out which ABI we are using. | |
5348 | echo 'int i;' > conftest.$ac_ext | |
5349 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5350 | (eval $ac_compile) 2>&5 | |
5351 | ac_status=$? | |
5352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5353 | test $ac_status = 0; }; then | |
5354 | case `/usr/bin/file conftest.o` in | |
5355 | *32-bit*) | |
5356 | case $host in | |
5357 | x86_64-*kfreebsd*-gnu) | |
5358 | LD="${LD-ld} -m elf_i386_fbsd" | |
5359 | ;; | |
5360 | x86_64-*linux*) | |
5361 | LD="${LD-ld} -m elf_i386" | |
5362 | ;; | |
5363 | ppc64-*linux*|powerpc64-*linux*) | |
5364 | LD="${LD-ld} -m elf32ppclinux" | |
5365 | ;; | |
5366 | s390x-*linux*) | |
5367 | LD="${LD-ld} -m elf_s390" | |
5368 | ;; | |
5369 | sparc64-*linux*) | |
5370 | LD="${LD-ld} -m elf32_sparc" | |
5371 | ;; | |
5372 | esac | |
5373 | ;; | |
5374 | *64-bit*) | |
5375 | case $host in | |
5376 | x86_64-*kfreebsd*-gnu) | |
5377 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5378 | ;; | |
5379 | x86_64-*linux*) | |
5380 | LD="${LD-ld} -m elf_x86_64" | |
5381 | ;; | |
5382 | ppc*-*linux*|powerpc*-*linux*) | |
5383 | LD="${LD-ld} -m elf64ppc" | |
5384 | ;; | |
5385 | s390*-*linux*|s390*-*tpf*) | |
5386 | LD="${LD-ld} -m elf64_s390" | |
5387 | ;; | |
5388 | sparc*-*linux*) | |
5389 | LD="${LD-ld} -m elf64_sparc" | |
5390 | ;; | |
5391 | esac | |
5392 | ;; | |
5393 | esac | |
5394 | fi | |
5395 | rm -rf conftest* | |
5396 | ;; | |
5397 | ||
5398 | *-*-sco3.2v5*) | |
5399 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5400 | SAVE_CFLAGS="$CFLAGS" | |
5401 | CFLAGS="$CFLAGS -belf" | |
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5403 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5404 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5405 | $as_echo_n "(cached) " >&6 | |
5406 | else | |
5407 | ac_ext=c | |
5408 | ac_cpp='$CPP $CPPFLAGS' | |
5409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5412 | ||
5413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5414 | /* end confdefs.h. */ | |
5415 | ||
5416 | int | |
5417 | main () | |
5418 | { | |
5419 | ||
5420 | ; | |
5421 | return 0; | |
5422 | } | |
5423 | _ACEOF | |
5424 | if ac_fn_c_try_link "$LINENO"; then : | |
5425 | lt_cv_cc_needs_belf=yes | |
5426 | else | |
5427 | lt_cv_cc_needs_belf=no | |
5428 | fi | |
5429 | rm -f core conftest.err conftest.$ac_objext \ | |
5430 | conftest$ac_exeext conftest.$ac_ext | |
5431 | ac_ext=c | |
5432 | ac_cpp='$CPP $CPPFLAGS' | |
5433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5436 | ||
5437 | fi | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5439 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5440 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5441 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5442 | CFLAGS="$SAVE_CFLAGS" | |
5443 | fi | |
5444 | ;; | |
5445 | sparc*-*solaris*) | |
5446 | # Find out which ABI we are using. | |
5447 | echo 'int i;' > conftest.$ac_ext | |
5448 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5449 | (eval $ac_compile) 2>&5 | |
5450 | ac_status=$? | |
5451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5452 | test $ac_status = 0; }; then | |
5453 | case `/usr/bin/file conftest.o` in | |
5454 | *64-bit*) | |
5455 | case $lt_cv_prog_gnu_ld in | |
5456 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5457 | *) | |
5458 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5459 | LD="${LD-ld} -64" | |
5460 | fi | |
5461 | ;; | |
5462 | esac | |
5463 | ;; | |
5464 | esac | |
5465 | fi | |
5466 | rm -rf conftest* | |
5467 | ;; | |
5468 | esac | |
5469 | ||
5470 | need_locks="$enable_libtool_lock" | |
5471 | ||
5472 | ||
5473 | case $host_os in | |
5474 | rhapsody* | darwin*) | |
5475 | if test -n "$ac_tool_prefix"; then | |
5476 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5477 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5479 | $as_echo_n "checking for $ac_word... " >&6; } | |
5480 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5481 | $as_echo_n "(cached) " >&6 | |
5482 | else | |
5483 | if test -n "$DSYMUTIL"; then | |
5484 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5485 | else | |
5486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5487 | for as_dir in $PATH | |
5488 | do | |
5489 | IFS=$as_save_IFS | |
5490 | test -z "$as_dir" && as_dir=. | |
5491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5493 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5495 | break 2 | |
5496 | fi | |
5497 | done | |
5498 | done | |
5499 | IFS=$as_save_IFS | |
5500 | ||
5501 | fi | |
5502 | fi | |
5503 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5504 | if test -n "$DSYMUTIL"; then | |
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5506 | $as_echo "$DSYMUTIL" >&6; } | |
5507 | else | |
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5509 | $as_echo "no" >&6; } | |
5510 | fi | |
5511 | ||
5512 | ||
5513 | fi | |
5514 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5515 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5516 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5517 | set dummy dsymutil; ac_word=$2 | |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5519 | $as_echo_n "checking for $ac_word... " >&6; } | |
5520 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5521 | $as_echo_n "(cached) " >&6 | |
5522 | else | |
5523 | if test -n "$ac_ct_DSYMUTIL"; then | |
5524 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5525 | else | |
5526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5527 | for as_dir in $PATH | |
5528 | do | |
5529 | IFS=$as_save_IFS | |
5530 | test -z "$as_dir" && as_dir=. | |
5531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5533 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5535 | break 2 | |
5536 | fi | |
5537 | done | |
5538 | done | |
5539 | IFS=$as_save_IFS | |
5540 | ||
5541 | fi | |
5542 | fi | |
5543 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5544 | if test -n "$ac_ct_DSYMUTIL"; then | |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5546 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5547 | else | |
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5549 | $as_echo "no" >&6; } | |
5550 | fi | |
5551 | ||
5552 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5553 | DSYMUTIL=":" | |
5554 | else | |
5555 | case $cross_compiling:$ac_tool_warned in | |
5556 | yes:) | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5558 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5559 | ac_tool_warned=yes ;; | |
5560 | esac | |
5561 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5562 | fi | |
5563 | else | |
5564 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5565 | fi | |
5566 | ||
5567 | if test -n "$ac_tool_prefix"; then | |
5568 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5569 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5571 | $as_echo_n "checking for $ac_word... " >&6; } | |
5572 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5573 | $as_echo_n "(cached) " >&6 | |
5574 | else | |
5575 | if test -n "$NMEDIT"; then | |
5576 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5577 | else | |
5578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5579 | for as_dir in $PATH | |
5580 | do | |
5581 | IFS=$as_save_IFS | |
5582 | test -z "$as_dir" && as_dir=. | |
5583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5585 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5587 | break 2 | |
5588 | fi | |
5589 | done | |
5590 | done | |
5591 | IFS=$as_save_IFS | |
5592 | ||
5593 | fi | |
5594 | fi | |
5595 | NMEDIT=$ac_cv_prog_NMEDIT | |
5596 | if test -n "$NMEDIT"; then | |
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5598 | $as_echo "$NMEDIT" >&6; } | |
5599 | else | |
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5601 | $as_echo "no" >&6; } | |
5602 | fi | |
5603 | ||
5604 | ||
5605 | fi | |
5606 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5607 | ac_ct_NMEDIT=$NMEDIT | |
5608 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5609 | set dummy nmedit; ac_word=$2 | |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5611 | $as_echo_n "checking for $ac_word... " >&6; } | |
5612 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5613 | $as_echo_n "(cached) " >&6 | |
5614 | else | |
5615 | if test -n "$ac_ct_NMEDIT"; then | |
5616 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5617 | else | |
5618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5619 | for as_dir in $PATH | |
5620 | do | |
5621 | IFS=$as_save_IFS | |
5622 | test -z "$as_dir" && as_dir=. | |
5623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5625 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5627 | break 2 | |
5628 | fi | |
5629 | done | |
5630 | done | |
5631 | IFS=$as_save_IFS | |
5632 | ||
5633 | fi | |
5634 | fi | |
5635 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5636 | if test -n "$ac_ct_NMEDIT"; then | |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5638 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5639 | else | |
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5641 | $as_echo "no" >&6; } | |
5642 | fi | |
5643 | ||
5644 | if test "x$ac_ct_NMEDIT" = x; then | |
5645 | NMEDIT=":" | |
5646 | else | |
5647 | case $cross_compiling:$ac_tool_warned in | |
5648 | yes:) | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5651 | ac_tool_warned=yes ;; | |
5652 | esac | |
5653 | NMEDIT=$ac_ct_NMEDIT | |
5654 | fi | |
5655 | else | |
5656 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5657 | fi | |
5658 | ||
5659 | if test -n "$ac_tool_prefix"; then | |
5660 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5661 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5663 | $as_echo_n "checking for $ac_word... " >&6; } | |
5664 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5665 | $as_echo_n "(cached) " >&6 | |
5666 | else | |
5667 | if test -n "$LIPO"; then | |
5668 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5669 | else | |
5670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5671 | for as_dir in $PATH | |
5672 | do | |
5673 | IFS=$as_save_IFS | |
5674 | test -z "$as_dir" && as_dir=. | |
5675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5677 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5679 | break 2 | |
5680 | fi | |
5681 | done | |
5682 | done | |
5683 | IFS=$as_save_IFS | |
5684 | ||
5685 | fi | |
5686 | fi | |
5687 | LIPO=$ac_cv_prog_LIPO | |
5688 | if test -n "$LIPO"; then | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5690 | $as_echo "$LIPO" >&6; } | |
5691 | else | |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5693 | $as_echo "no" >&6; } | |
5694 | fi | |
5695 | ||
5696 | ||
5697 | fi | |
5698 | if test -z "$ac_cv_prog_LIPO"; then | |
5699 | ac_ct_LIPO=$LIPO | |
5700 | # Extract the first word of "lipo", so it can be a program name with args. | |
5701 | set dummy lipo; ac_word=$2 | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5703 | $as_echo_n "checking for $ac_word... " >&6; } | |
5704 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5705 | $as_echo_n "(cached) " >&6 | |
5706 | else | |
5707 | if test -n "$ac_ct_LIPO"; then | |
5708 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5709 | else | |
5710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5711 | for as_dir in $PATH | |
5712 | do | |
5713 | IFS=$as_save_IFS | |
5714 | test -z "$as_dir" && as_dir=. | |
5715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5717 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5719 | break 2 | |
5720 | fi | |
5721 | done | |
5722 | done | |
5723 | IFS=$as_save_IFS | |
5724 | ||
5725 | fi | |
5726 | fi | |
5727 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5728 | if test -n "$ac_ct_LIPO"; then | |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5730 | $as_echo "$ac_ct_LIPO" >&6; } | |
5731 | else | |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5733 | $as_echo "no" >&6; } | |
5734 | fi | |
5735 | ||
5736 | if test "x$ac_ct_LIPO" = x; then | |
5737 | LIPO=":" | |
5738 | else | |
5739 | case $cross_compiling:$ac_tool_warned in | |
5740 | yes:) | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5742 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5743 | ac_tool_warned=yes ;; | |
5744 | esac | |
5745 | LIPO=$ac_ct_LIPO | |
5746 | fi | |
5747 | else | |
5748 | LIPO="$ac_cv_prog_LIPO" | |
5749 | fi | |
5750 | ||
5751 | if test -n "$ac_tool_prefix"; then | |
5752 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5753 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5755 | $as_echo_n "checking for $ac_word... " >&6; } | |
5756 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5757 | $as_echo_n "(cached) " >&6 | |
5758 | else | |
5759 | if test -n "$OTOOL"; then | |
5760 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5761 | else | |
5762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5763 | for as_dir in $PATH | |
5764 | do | |
5765 | IFS=$as_save_IFS | |
5766 | test -z "$as_dir" && as_dir=. | |
5767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5769 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5771 | break 2 | |
5772 | fi | |
5773 | done | |
5774 | done | |
5775 | IFS=$as_save_IFS | |
5776 | ||
5777 | fi | |
5778 | fi | |
5779 | OTOOL=$ac_cv_prog_OTOOL | |
5780 | if test -n "$OTOOL"; then | |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5782 | $as_echo "$OTOOL" >&6; } | |
5783 | else | |
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5785 | $as_echo "no" >&6; } | |
5786 | fi | |
5787 | ||
5788 | ||
5789 | fi | |
5790 | if test -z "$ac_cv_prog_OTOOL"; then | |
5791 | ac_ct_OTOOL=$OTOOL | |
5792 | # Extract the first word of "otool", so it can be a program name with args. | |
5793 | set dummy otool; ac_word=$2 | |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5795 | $as_echo_n "checking for $ac_word... " >&6; } | |
5796 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5797 | $as_echo_n "(cached) " >&6 | |
5798 | else | |
5799 | if test -n "$ac_ct_OTOOL"; then | |
5800 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5801 | else | |
5802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5803 | for as_dir in $PATH | |
5804 | do | |
5805 | IFS=$as_save_IFS | |
5806 | test -z "$as_dir" && as_dir=. | |
5807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5809 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5811 | break 2 | |
5812 | fi | |
5813 | done | |
5814 | done | |
5815 | IFS=$as_save_IFS | |
5816 | ||
5817 | fi | |
5818 | fi | |
5819 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5820 | if test -n "$ac_ct_OTOOL"; then | |
5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5822 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5823 | else | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5825 | $as_echo "no" >&6; } | |
5826 | fi | |
5827 | ||
5828 | if test "x$ac_ct_OTOOL" = x; then | |
5829 | OTOOL=":" | |
5830 | else | |
5831 | case $cross_compiling:$ac_tool_warned in | |
5832 | yes:) | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5834 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5835 | ac_tool_warned=yes ;; | |
5836 | esac | |
5837 | OTOOL=$ac_ct_OTOOL | |
5838 | fi | |
5839 | else | |
5840 | OTOOL="$ac_cv_prog_OTOOL" | |
5841 | fi | |
5842 | ||
5843 | if test -n "$ac_tool_prefix"; then | |
5844 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5845 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5847 | $as_echo_n "checking for $ac_word... " >&6; } | |
5848 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5849 | $as_echo_n "(cached) " >&6 | |
5850 | else | |
5851 | if test -n "$OTOOL64"; then | |
5852 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5853 | else | |
5854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5855 | for as_dir in $PATH | |
5856 | do | |
5857 | IFS=$as_save_IFS | |
5858 | test -z "$as_dir" && as_dir=. | |
5859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5861 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5863 | break 2 | |
5864 | fi | |
5865 | done | |
5866 | done | |
5867 | IFS=$as_save_IFS | |
5868 | ||
5869 | fi | |
5870 | fi | |
5871 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5872 | if test -n "$OTOOL64"; then | |
5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5874 | $as_echo "$OTOOL64" >&6; } | |
5875 | else | |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5877 | $as_echo "no" >&6; } | |
5878 | fi | |
5879 | ||
5880 | ||
5881 | fi | |
5882 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5883 | ac_ct_OTOOL64=$OTOOL64 | |
5884 | # Extract the first word of "otool64", so it can be a program name with args. | |
5885 | set dummy otool64; ac_word=$2 | |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5887 | $as_echo_n "checking for $ac_word... " >&6; } | |
5888 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5889 | $as_echo_n "(cached) " >&6 | |
5890 | else | |
5891 | if test -n "$ac_ct_OTOOL64"; then | |
5892 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5893 | else | |
5894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5895 | for as_dir in $PATH | |
5896 | do | |
5897 | IFS=$as_save_IFS | |
5898 | test -z "$as_dir" && as_dir=. | |
5899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5901 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5903 | break 2 | |
5904 | fi | |
5905 | done | |
5906 | done | |
5907 | IFS=$as_save_IFS | |
5908 | ||
5909 | fi | |
5910 | fi | |
5911 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5912 | if test -n "$ac_ct_OTOOL64"; then | |
5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5914 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5915 | else | |
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5917 | $as_echo "no" >&6; } | |
5918 | fi | |
5919 | ||
5920 | if test "x$ac_ct_OTOOL64" = x; then | |
5921 | OTOOL64=":" | |
5922 | else | |
5923 | case $cross_compiling:$ac_tool_warned in | |
5924 | yes:) | |
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5926 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5927 | ac_tool_warned=yes ;; | |
5928 | esac | |
5929 | OTOOL64=$ac_ct_OTOOL64 | |
5930 | fi | |
5931 | else | |
5932 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5933 | fi | |
5934 | ||
5935 | ||
5936 | ||
5937 | ||
5938 | ||
5939 | ||
5940 | ||
5941 | ||
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | ||
5960 | ||
5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5962 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5963 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5964 | $as_echo_n "(cached) " >&6 | |
5965 | else | |
5966 | lt_cv_apple_cc_single_mod=no | |
5967 | if test -z "${LT_MULTI_MODULE}"; then | |
5968 | # By default we will add the -single_module flag. You can override | |
5969 | # by either setting the environment variable LT_MULTI_MODULE | |
5970 | # non-empty at configure time, or by adding -multi_module to the | |
5971 | # link flags. | |
5972 | rm -rf libconftest.dylib* | |
5973 | echo "int foo(void){return 1;}" > conftest.c | |
5974 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5975 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5976 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5977 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5978 | _lt_result=$? | |
5979 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5980 | lt_cv_apple_cc_single_mod=yes | |
5981 | else | |
5982 | cat conftest.err >&5 | |
5983 | fi | |
5984 | rm -rf libconftest.dylib* | |
5985 | rm -f conftest.* | |
5986 | fi | |
5987 | fi | |
5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5989 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5991 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5992 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5993 | $as_echo_n "(cached) " >&6 | |
5994 | else | |
5995 | lt_cv_ld_exported_symbols_list=no | |
5996 | save_LDFLAGS=$LDFLAGS | |
5997 | echo "_main" > conftest.sym | |
5998 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6000 | /* end confdefs.h. */ | |
6001 | ||
6002 | int | |
6003 | main () | |
6004 | { | |
6005 | ||
6006 | ; | |
6007 | return 0; | |
6008 | } | |
6009 | _ACEOF | |
6010 | if ac_fn_c_try_link "$LINENO"; then : | |
6011 | lt_cv_ld_exported_symbols_list=yes | |
6012 | else | |
6013 | lt_cv_ld_exported_symbols_list=no | |
6014 | fi | |
6015 | rm -f core conftest.err conftest.$ac_objext \ | |
6016 | conftest$ac_exeext conftest.$ac_ext | |
6017 | LDFLAGS="$save_LDFLAGS" | |
6018 | ||
6019 | fi | |
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6021 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6022 | case $host_os in | |
6023 | rhapsody* | darwin1.[012]) | |
6024 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6025 | darwin1.*) | |
6026 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6027 | darwin*) # darwin 5.x on | |
6028 | # if running on 10.5 or later, the deployment target defaults | |
6029 | # to the OS version, if on x86, and 10.4, the deployment | |
6030 | # target defaults to 10.4. Don't you love it? | |
6031 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6032 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6033 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6034 | 10.[012]*) | |
6035 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6036 | 10.*) | |
6037 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6038 | esac | |
6039 | ;; | |
6040 | esac | |
6041 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6042 | _lt_dar_single_mod='$single_module' | |
6043 | fi | |
6044 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6045 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6046 | else | |
6047 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6048 | fi | |
6049 | if test "$DSYMUTIL" != ":"; then | |
6050 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6051 | else | |
6052 | _lt_dsymutil= | |
6053 | fi | |
6054 | ;; | |
6055 | esac | |
6056 | ||
6057 | ac_ext=c | |
6058 | ac_cpp='$CPP $CPPFLAGS' | |
6059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6063 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6064 | # On Suns, sometimes $CPP names a directory. | |
6065 | if test -n "$CPP" && test -d "$CPP"; then | |
6066 | CPP= | |
6067 | fi | |
6068 | if test -z "$CPP"; then | |
6069 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6070 | $as_echo_n "(cached) " >&6 | |
6071 | else | |
6072 | # Double quotes because CPP needs to be expanded | |
6073 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6074 | do | |
6075 | ac_preproc_ok=false | |
6076 | for ac_c_preproc_warn_flag in '' yes | |
6077 | do | |
6078 | # Use a header file that comes with gcc, so configuring glibc | |
6079 | # with a fresh cross-compiler works. | |
6080 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6081 | # <limits.h> exists even on freestanding compilers. | |
6082 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6083 | # not just through cpp. "Syntax error" is here to catch this case. | |
6084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6085 | /* end confdefs.h. */ | |
6086 | #ifdef __STDC__ | |
6087 | # include <limits.h> | |
6088 | #else | |
6089 | # include <assert.h> | |
6090 | #endif | |
6091 | Syntax error | |
6092 | _ACEOF | |
6093 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6094 | ||
6095 | else | |
6096 | # Broken: fails on valid input. | |
6097 | continue | |
6098 | fi | |
6099 | rm -f conftest.err conftest.$ac_ext | |
6100 | ||
6101 | # OK, works on sane cases. Now check whether nonexistent headers | |
6102 | # can be detected and how. | |
6103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6104 | /* end confdefs.h. */ | |
6105 | #include <ac_nonexistent.h> | |
6106 | _ACEOF | |
6107 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6108 | # Broken: success on invalid input. | |
6109 | continue | |
6110 | else | |
6111 | # Passes both tests. | |
6112 | ac_preproc_ok=: | |
6113 | break | |
6114 | fi | |
6115 | rm -f conftest.err conftest.$ac_ext | |
6116 | ||
6117 | done | |
6118 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6119 | rm -f conftest.err conftest.$ac_ext | |
6120 | if $ac_preproc_ok; then : | |
6121 | break | |
6122 | fi | |
6123 | ||
6124 | done | |
6125 | ac_cv_prog_CPP=$CPP | |
6126 | ||
6127 | fi | |
6128 | CPP=$ac_cv_prog_CPP | |
6129 | else | |
6130 | ac_cv_prog_CPP=$CPP | |
6131 | fi | |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6133 | $as_echo "$CPP" >&6; } | |
6134 | ac_preproc_ok=false | |
6135 | for ac_c_preproc_warn_flag in '' yes | |
6136 | do | |
6137 | # Use a header file that comes with gcc, so configuring glibc | |
6138 | # with a fresh cross-compiler works. | |
6139 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6140 | # <limits.h> exists even on freestanding compilers. | |
6141 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6142 | # not just through cpp. "Syntax error" is here to catch this case. | |
6143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6144 | /* end confdefs.h. */ | |
6145 | #ifdef __STDC__ | |
6146 | # include <limits.h> | |
6147 | #else | |
6148 | # include <assert.h> | |
6149 | #endif | |
6150 | Syntax error | |
6151 | _ACEOF | |
6152 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6153 | ||
6154 | else | |
6155 | # Broken: fails on valid input. | |
6156 | continue | |
6157 | fi | |
6158 | rm -f conftest.err conftest.$ac_ext | |
6159 | ||
6160 | # OK, works on sane cases. Now check whether nonexistent headers | |
6161 | # can be detected and how. | |
6162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6163 | /* end confdefs.h. */ | |
6164 | #include <ac_nonexistent.h> | |
6165 | _ACEOF | |
6166 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6167 | # Broken: success on invalid input. | |
6168 | continue | |
6169 | else | |
6170 | # Passes both tests. | |
6171 | ac_preproc_ok=: | |
6172 | break | |
6173 | fi | |
6174 | rm -f conftest.err conftest.$ac_ext | |
6175 | ||
6176 | done | |
6177 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6178 | rm -f conftest.err conftest.$ac_ext | |
6179 | if $ac_preproc_ok; then : | |
6180 | ||
6181 | else | |
6182 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6184 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6185 | See \`config.log' for more details." "$LINENO" 5; } | |
6186 | fi | |
6187 | ||
6188 | ac_ext=c | |
6189 | ac_cpp='$CPP $CPPFLAGS' | |
6190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6193 | ||
6194 | ||
6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6196 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6197 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6198 | $as_echo_n "(cached) " >&6 | |
6199 | else | |
6200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6201 | /* end confdefs.h. */ | |
6202 | #include <stdlib.h> | |
6203 | #include <stdarg.h> | |
6204 | #include <string.h> | |
6205 | #include <float.h> | |
6206 | ||
6207 | int | |
6208 | main () | |
6209 | { | |
6210 | ||
6211 | ; | |
6212 | return 0; | |
6213 | } | |
6214 | _ACEOF | |
6215 | if ac_fn_c_try_compile "$LINENO"; then : | |
6216 | ac_cv_header_stdc=yes | |
6217 | else | |
6218 | ac_cv_header_stdc=no | |
6219 | fi | |
6220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6221 | ||
6222 | if test $ac_cv_header_stdc = yes; then | |
6223 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6225 | /* end confdefs.h. */ | |
6226 | #include <string.h> | |
6227 | ||
6228 | _ACEOF | |
6229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6230 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6231 | ||
6232 | else | |
6233 | ac_cv_header_stdc=no | |
6234 | fi | |
6235 | rm -f conftest* | |
6236 | ||
6237 | fi | |
6238 | ||
6239 | if test $ac_cv_header_stdc = yes; then | |
6240 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6242 | /* end confdefs.h. */ | |
6243 | #include <stdlib.h> | |
6244 | ||
6245 | _ACEOF | |
6246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6247 | $EGREP "free" >/dev/null 2>&1; then : | |
6248 | ||
6249 | else | |
6250 | ac_cv_header_stdc=no | |
6251 | fi | |
6252 | rm -f conftest* | |
6253 | ||
6254 | fi | |
6255 | ||
6256 | if test $ac_cv_header_stdc = yes; then | |
6257 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6258 | if test "$cross_compiling" = yes; then : | |
6259 | : | |
6260 | else | |
6261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6262 | /* end confdefs.h. */ | |
6263 | #include <ctype.h> | |
6264 | #include <stdlib.h> | |
6265 | #if ((' ' & 0x0FF) == 0x020) | |
6266 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6267 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6268 | #else | |
6269 | # define ISLOWER(c) \ | |
6270 | (('a' <= (c) && (c) <= 'i') \ | |
6271 | || ('j' <= (c) && (c) <= 'r') \ | |
6272 | || ('s' <= (c) && (c) <= 'z')) | |
6273 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6274 | #endif | |
6275 | ||
6276 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6277 | int | |
6278 | main () | |
6279 | { | |
6280 | int i; | |
6281 | for (i = 0; i < 256; i++) | |
6282 | if (XOR (islower (i), ISLOWER (i)) | |
6283 | || toupper (i) != TOUPPER (i)) | |
6284 | return 2; | |
6285 | return 0; | |
6286 | } | |
6287 | _ACEOF | |
6288 | if ac_fn_c_try_run "$LINENO"; then : | |
6289 | ||
6290 | else | |
6291 | ac_cv_header_stdc=no | |
6292 | fi | |
6293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6294 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6295 | fi | |
6296 | ||
6297 | fi | |
6298 | fi | |
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6300 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6301 | if test $ac_cv_header_stdc = yes; then | |
6302 | ||
6303 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6304 | ||
6305 | fi | |
6306 | ||
6307 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6308 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6309 | inttypes.h stdint.h unistd.h | |
6310 | do : | |
6311 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6312 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6313 | " | |
6314 | eval as_val=\$$as_ac_Header | |
6315 | if test "x$as_val" = x""yes; then : | |
6316 | cat >>confdefs.h <<_ACEOF | |
6317 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6318 | _ACEOF | |
6319 | ||
6320 | fi | |
6321 | ||
6322 | done | |
6323 | ||
6324 | ||
6325 | for ac_header in dlfcn.h | |
6326 | do : | |
6327 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6328 | " | |
6329 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6330 | cat >>confdefs.h <<_ACEOF | |
6331 | #define HAVE_DLFCN_H 1 | |
6332 | _ACEOF | |
6333 | ||
6334 | fi | |
6335 | ||
6336 | done | |
6337 | ||
6338 | ||
6339 | ||
6340 | # Set options | |
549f29b5 DWT |
6341 | # Check whether --enable-static was given. |
6342 | if test "${enable_static+set}" = set; then : | |
6343 | enableval=$enable_static; p=${PACKAGE-default} | |
9c60689e | 6344 | case $enableval in |
549f29b5 DWT |
6345 | yes) enable_static=yes ;; |
6346 | no) enable_static=no ;; | |
9c60689e | 6347 | *) |
549f29b5 | 6348 | enable_static=no |
9c60689e DWT |
6349 | # Look at the argument we got. We use all the common list separators. |
6350 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6351 | for pkg in $enableval; do | |
6352 | IFS="$lt_save_ifs" | |
6353 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6354 | enable_static=yes |
9c60689e DWT |
6355 | fi |
6356 | done | |
6357 | IFS="$lt_save_ifs" | |
6358 | ;; | |
6359 | esac | |
6360 | else | |
549f29b5 | 6361 | enable_static=no |
9c60689e DWT |
6362 | fi |
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
549f29b5 DWT |
6372 | |
6373 | enable_dlopen=no | |
6374 | ||
6375 | ||
6376 | enable_win32_dll=no | |
6377 | ||
6378 | ||
6379 | # Check whether --enable-shared was given. | |
6380 | if test "${enable_shared+set}" = set; then : | |
6381 | enableval=$enable_shared; p=${PACKAGE-default} | |
9c60689e | 6382 | case $enableval in |
549f29b5 DWT |
6383 | yes) enable_shared=yes ;; |
6384 | no) enable_shared=no ;; | |
9c60689e | 6385 | *) |
549f29b5 | 6386 | enable_shared=no |
9c60689e DWT |
6387 | # Look at the argument we got. We use all the common list separators. |
6388 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6389 | for pkg in $enableval; do | |
6390 | IFS="$lt_save_ifs" | |
6391 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6392 | enable_shared=yes |
9c60689e DWT |
6393 | fi |
6394 | done | |
6395 | IFS="$lt_save_ifs" | |
6396 | ;; | |
6397 | esac | |
6398 | else | |
549f29b5 | 6399 | enable_shared=yes |
9c60689e DWT |
6400 | fi |
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
549f29b5 | 6411 | |
9c60689e DWT |
6412 | # Check whether --with-pic was given. |
6413 | if test "${with_pic+set}" = set; then : | |
6414 | withval=$with_pic; pic_mode="$withval" | |
6415 | else | |
6416 | pic_mode=default | |
6417 | fi | |
6418 | ||
6419 | ||
6420 | test -z "$pic_mode" && pic_mode=default | |
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | # Check whether --enable-fast-install was given. | |
6429 | if test "${enable_fast_install+set}" = set; then : | |
6430 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6431 | case $enableval in | |
6432 | yes) enable_fast_install=yes ;; | |
6433 | no) enable_fast_install=no ;; | |
6434 | *) | |
6435 | enable_fast_install=no | |
6436 | # Look at the argument we got. We use all the common list separators. | |
6437 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6438 | for pkg in $enableval; do | |
6439 | IFS="$lt_save_ifs" | |
6440 | if test "X$pkg" = "X$p"; then | |
6441 | enable_fast_install=yes | |
6442 | fi | |
6443 | done | |
6444 | IFS="$lt_save_ifs" | |
6445 | ;; | |
6446 | esac | |
6447 | else | |
6448 | enable_fast_install=yes | |
6449 | fi | |
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | # This can be used to rebuild libtool when needed | |
6462 | LIBTOOL_DEPS="$ltmain" | |
6463 | ||
6464 | # Always use our own libtool. | |
6465 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | test -z "$LN_S" && LN_S="ln -s" | |
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | if test -n "${ZSH_VERSION+set}" ; then | |
6507 | setopt NO_GLOB_SUBST | |
6508 | fi | |
6509 | ||
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6511 | $as_echo_n "checking for objdir... " >&6; } | |
6512 | if test "${lt_cv_objdir+set}" = set; then : | |
6513 | $as_echo_n "(cached) " >&6 | |
6514 | else | |
6515 | rm -f .libs 2>/dev/null | |
6516 | mkdir .libs 2>/dev/null | |
6517 | if test -d .libs; then | |
6518 | lt_cv_objdir=.libs | |
6519 | else | |
6520 | # MS-DOS does not allow filenames that begin with a dot. | |
6521 | lt_cv_objdir=_libs | |
6522 | fi | |
6523 | rmdir .libs 2>/dev/null | |
6524 | fi | |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6526 | $as_echo "$lt_cv_objdir" >&6; } | |
6527 | objdir=$lt_cv_objdir | |
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | cat >>confdefs.h <<_ACEOF | |
6534 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6535 | _ACEOF | |
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | case $host_os in | |
6554 | aix3*) | |
6555 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6556 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6557 | # vanish in a puff of smoke. | |
6558 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6559 | COLLECT_NAMES= | |
6560 | export COLLECT_NAMES | |
6561 | fi | |
6562 | ;; | |
6563 | esac | |
6564 | ||
6565 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6566 | # metacharacters that are still active within double-quoted strings. | |
6567 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6568 | ||
6569 | # Same as above, but do not quote variable references. | |
6570 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6571 | ||
6572 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6573 | # double_quote_subst'ed string. | |
6574 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6575 | ||
6576 | # Sed substitution to delay expansion of an escaped single quote. | |
6577 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6578 | ||
6579 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6580 | no_glob_subst='s/\*/\\\*/g' | |
6581 | ||
6582 | # Global variables: | |
6583 | ofile=libtool | |
6584 | can_build_shared=yes | |
6585 | ||
6586 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6587 | # which needs '.lib'). | |
6588 | libext=a | |
6589 | ||
6590 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6591 | ||
6592 | old_CC="$CC" | |
6593 | old_CFLAGS="$CFLAGS" | |
6594 | ||
6595 | # Set sane defaults for various variables | |
6596 | test -z "$CC" && CC=cc | |
6597 | test -z "$LTCC" && LTCC=$CC | |
6598 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6599 | test -z "$LD" && LD=ld | |
6600 | test -z "$ac_objext" && ac_objext=o | |
6601 | ||
6602 | for cc_temp in $compiler""; do | |
6603 | case $cc_temp in | |
6604 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6605 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6606 | \-*) ;; | |
6607 | *) break;; | |
6608 | esac | |
6609 | done | |
6610 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6611 | ||
6612 | ||
6613 | # Only perform the check for file, if the check method requires it | |
6614 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6615 | case $deplibs_check_method in | |
6616 | file_magic*) | |
6617 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6619 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6620 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6621 | $as_echo_n "(cached) " >&6 | |
6622 | else | |
6623 | case $MAGIC_CMD in | |
6624 | [\\/*] | ?:[\\/]*) | |
6625 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6626 | ;; | |
6627 | *) | |
6628 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6629 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6630 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6631 | for ac_dir in $ac_dummy; do | |
6632 | IFS="$lt_save_ifs" | |
6633 | test -z "$ac_dir" && ac_dir=. | |
6634 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6635 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6636 | if test -n "$file_magic_test_file"; then | |
6637 | case $deplibs_check_method in | |
6638 | "file_magic "*) | |
6639 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6640 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6641 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6642 | $EGREP "$file_magic_regex" > /dev/null; then | |
6643 | : | |
6644 | else | |
6645 | cat <<_LT_EOF 1>&2 | |
6646 | ||
6647 | *** Warning: the command libtool uses to detect shared libraries, | |
6648 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6649 | *** The result is that libtool may fail to recognize shared libraries | |
6650 | *** as such. This will affect the creation of libtool libraries that | |
6651 | *** depend on shared libraries, but programs linked with such libtool | |
6652 | *** libraries will work regardless of this problem. Nevertheless, you | |
6653 | *** may want to report the problem to your system manager and/or to | |
6654 | *** bug-libtool@gnu.org | |
6655 | ||
6656 | _LT_EOF | |
6657 | fi ;; | |
6658 | esac | |
6659 | fi | |
6660 | break | |
6661 | fi | |
6662 | done | |
6663 | IFS="$lt_save_ifs" | |
6664 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6665 | ;; | |
6666 | esac | |
6667 | fi | |
6668 | ||
6669 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6670 | if test -n "$MAGIC_CMD"; then | |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6672 | $as_echo "$MAGIC_CMD" >&6; } | |
6673 | else | |
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6675 | $as_echo "no" >&6; } | |
6676 | fi | |
6677 | ||
6678 | ||
6679 | ||
6680 | ||
6681 | ||
6682 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6683 | if test -n "$ac_tool_prefix"; then | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6685 | $as_echo_n "checking for file... " >&6; } | |
6686 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6687 | $as_echo_n "(cached) " >&6 | |
6688 | else | |
6689 | case $MAGIC_CMD in | |
6690 | [\\/*] | ?:[\\/]*) | |
6691 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6692 | ;; | |
6693 | *) | |
6694 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6695 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6696 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6697 | for ac_dir in $ac_dummy; do | |
6698 | IFS="$lt_save_ifs" | |
6699 | test -z "$ac_dir" && ac_dir=. | |
6700 | if test -f $ac_dir/file; then | |
6701 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6702 | if test -n "$file_magic_test_file"; then | |
6703 | case $deplibs_check_method in | |
6704 | "file_magic "*) | |
6705 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6706 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6707 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6708 | $EGREP "$file_magic_regex" > /dev/null; then | |
6709 | : | |
6710 | else | |
6711 | cat <<_LT_EOF 1>&2 | |
6712 | ||
6713 | *** Warning: the command libtool uses to detect shared libraries, | |
6714 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6715 | *** The result is that libtool may fail to recognize shared libraries | |
6716 | *** as such. This will affect the creation of libtool libraries that | |
6717 | *** depend on shared libraries, but programs linked with such libtool | |
6718 | *** libraries will work regardless of this problem. Nevertheless, you | |
6719 | *** may want to report the problem to your system manager and/or to | |
6720 | *** bug-libtool@gnu.org | |
6721 | ||
6722 | _LT_EOF | |
6723 | fi ;; | |
6724 | esac | |
6725 | fi | |
6726 | break | |
6727 | fi | |
6728 | done | |
6729 | IFS="$lt_save_ifs" | |
6730 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6731 | ;; | |
6732 | esac | |
6733 | fi | |
6734 | ||
6735 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6736 | if test -n "$MAGIC_CMD"; then | |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6738 | $as_echo "$MAGIC_CMD" >&6; } | |
6739 | else | |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6741 | $as_echo "no" >&6; } | |
6742 | fi | |
6743 | ||
6744 | ||
6745 | else | |
6746 | MAGIC_CMD=: | |
6747 | fi | |
6748 | fi | |
6749 | ||
6750 | fi | |
6751 | ;; | |
6752 | esac | |
6753 | ||
6754 | # Use C for the default configuration in the libtool script | |
6755 | ||
6756 | lt_save_CC="$CC" | |
6757 | ac_ext=c | |
6758 | ac_cpp='$CPP $CPPFLAGS' | |
6759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6762 | ||
6763 | ||
6764 | # Source file extension for C test sources. | |
6765 | ac_ext=c | |
6766 | ||
6767 | # Object file extension for compiled C test sources. | |
6768 | objext=o | |
6769 | objext=$objext | |
6770 | ||
6771 | # Code to be used in simple compile tests | |
6772 | lt_simple_compile_test_code="int some_variable = 0;" | |
6773 | ||
6774 | # Code to be used in simple link tests | |
6775 | lt_simple_link_test_code='int main(){return(0);}' | |
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | ||
6781 | ||
6782 | ||
6783 | # If no C compiler was specified, use CC. | |
6784 | LTCC=${LTCC-"$CC"} | |
6785 | ||
6786 | # If no C compiler flags were specified, use CFLAGS. | |
6787 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6788 | ||
6789 | # Allow CC to be a program name with arguments. | |
6790 | compiler=$CC | |
6791 | ||
6792 | # Save the default compiler, since it gets overwritten when the other | |
6793 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6794 | compiler_DEFAULT=$CC | |
6795 | ||
6796 | # save warnings/boilerplate of simple test code | |
6797 | ac_outfile=conftest.$ac_objext | |
6798 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6799 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6800 | _lt_compiler_boilerplate=`cat conftest.err` | |
6801 | $RM conftest* | |
6802 | ||
6803 | ac_outfile=conftest.$ac_objext | |
6804 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6805 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6806 | _lt_linker_boilerplate=`cat conftest.err` | |
6807 | $RM -r conftest* | |
6808 | ||
6809 | ||
6810 | if test -n "$compiler"; then | |
6811 | ||
6812 | lt_prog_compiler_no_builtin_flag= | |
6813 | ||
6814 | if test "$GCC" = yes; then | |
6815 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6816 | ||
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6818 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6819 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6820 | $as_echo_n "(cached) " >&6 | |
6821 | else | |
6822 | lt_cv_prog_compiler_rtti_exceptions=no | |
6823 | ac_outfile=conftest.$ac_objext | |
6824 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6825 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6826 | # Insert the option either (1) after the last *FLAGS variable, or | |
6827 | # (2) before a word containing "conftest.", or (3) at the end. | |
6828 | # Note that $ac_compile itself does not contain backslashes and begins | |
6829 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6830 | # The option is referenced via a variable to avoid confusing sed. | |
6831 | lt_compile=`echo "$ac_compile" | $SED \ | |
6832 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6833 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6834 | -e 's:$: $lt_compiler_flag:'` | |
e1cce270 | 6835 | (eval echo "\"\$as_me:6835: $lt_compile\"" >&5) |
9c60689e DWT |
6836 | (eval "$lt_compile" 2>conftest.err) |
6837 | ac_status=$? | |
6838 | cat conftest.err >&5 | |
e1cce270 | 6839 | echo "$as_me:6839: \$? = $ac_status" >&5 |
9c60689e DWT |
6840 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6841 | # The compiler can only warn and ignore the option if not recognized | |
6842 | # So say no if there are warnings other than the usual output. | |
6843 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6844 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6845 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6846 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6847 | fi | |
6848 | fi | |
6849 | $RM conftest* | |
6850 | ||
6851 | fi | |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6853 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6854 | ||
6855 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6856 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6857 | else | |
6858 | : | |
6859 | fi | |
6860 | ||
6861 | fi | |
6862 | ||
6863 | ||
6864 | ||
6865 | ||
6866 | ||
6867 | ||
6868 | lt_prog_compiler_wl= | |
6869 | lt_prog_compiler_pic= | |
6870 | lt_prog_compiler_static= | |
6871 | ||
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6873 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6874 | ||
6875 | if test "$GCC" = yes; then | |
6876 | lt_prog_compiler_wl='-Wl,' | |
6877 | lt_prog_compiler_static='-static' | |
6878 | ||
6879 | case $host_os in | |
6880 | aix*) | |
6881 | # All AIX code is PIC. | |
6882 | if test "$host_cpu" = ia64; then | |
6883 | # AIX 5 now supports IA64 processor | |
6884 | lt_prog_compiler_static='-Bstatic' | |
6885 | fi | |
6886 | ;; | |
6887 | ||
6888 | amigaos*) | |
6889 | case $host_cpu in | |
6890 | powerpc) | |
6891 | # see comment about AmigaOS4 .so support | |
6892 | lt_prog_compiler_pic='-fPIC' | |
6893 | ;; | |
6894 | m68k) | |
6895 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6896 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6897 | # like `-m68040'. | |
6898 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6899 | ;; | |
6900 | esac | |
6901 | ;; | |
6902 | ||
6903 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6904 | # PIC is the default for these OSes. | |
6905 | ;; | |
6906 | ||
6907 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6908 | # This hack is so that the source file can tell whether it is being | |
6909 | # built for inclusion in a dll (and should export symbols for example). | |
6910 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6911 | # (--disable-auto-import) libraries | |
6912 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6913 | ;; | |
6914 | ||
6915 | darwin* | rhapsody*) | |
6916 | # PIC is the default on this platform | |
6917 | # Common symbols not allowed in MH_DYLIB files | |
6918 | lt_prog_compiler_pic='-fno-common' | |
6919 | ;; | |
6920 | ||
6921 | hpux*) | |
6922 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6923 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6924 | # sets the default TLS model and affects inlining. | |
6925 | case $host_cpu in | |
6926 | hppa*64*) | |
6927 | # +Z the default | |
6928 | ;; | |
6929 | *) | |
6930 | lt_prog_compiler_pic='-fPIC' | |
6931 | ;; | |
6932 | esac | |
6933 | ;; | |
6934 | ||
6935 | interix[3-9]*) | |
6936 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6937 | # Instead, we relocate shared libraries at runtime. | |
6938 | ;; | |
6939 | ||
6940 | msdosdjgpp*) | |
6941 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6942 | # on systems that don't support them. | |
6943 | lt_prog_compiler_can_build_shared=no | |
6944 | enable_shared=no | |
6945 | ;; | |
6946 | ||
6947 | *nto* | *qnx*) | |
6948 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6949 | # it will coredump. | |
6950 | lt_prog_compiler_pic='-fPIC -shared' | |
6951 | ;; | |
6952 | ||
6953 | sysv4*MP*) | |
6954 | if test -d /usr/nec; then | |
6955 | lt_prog_compiler_pic=-Kconform_pic | |
6956 | fi | |
6957 | ;; | |
6958 | ||
6959 | *) | |
6960 | lt_prog_compiler_pic='-fPIC' | |
6961 | ;; | |
6962 | esac | |
6963 | else | |
6964 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6965 | case $host_os in | |
6966 | aix*) | |
6967 | lt_prog_compiler_wl='-Wl,' | |
6968 | if test "$host_cpu" = ia64; then | |
6969 | # AIX 5 now supports IA64 processor | |
6970 | lt_prog_compiler_static='-Bstatic' | |
6971 | else | |
6972 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6973 | fi | |
6974 | ;; | |
6975 | ||
6976 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6977 | # This hack is so that the source file can tell whether it is being | |
6978 | # built for inclusion in a dll (and should export symbols for example). | |
6979 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6980 | ;; | |
6981 | ||
6982 | hpux9* | hpux10* | hpux11*) | |
6983 | lt_prog_compiler_wl='-Wl,' | |
6984 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6985 | # not for PA HP-UX. | |
6986 | case $host_cpu in | |
6987 | hppa*64*|ia64*) | |
6988 | # +Z the default | |
6989 | ;; | |
6990 | *) | |
6991 | lt_prog_compiler_pic='+Z' | |
6992 | ;; | |
6993 | esac | |
6994 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6995 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6996 | ;; | |
6997 | ||
6998 | irix5* | irix6* | nonstopux*) | |
6999 | lt_prog_compiler_wl='-Wl,' | |
7000 | # PIC (with -KPIC) is the default. | |
7001 | lt_prog_compiler_static='-non_shared' | |
7002 | ;; | |
7003 | ||
7004 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
7005 | case $cc_basename in | |
7006 | # old Intel for x86_64 which still supported -KPIC. | |
7007 | ecc*) | |
7008 | lt_prog_compiler_wl='-Wl,' | |
7009 | lt_prog_compiler_pic='-KPIC' | |
7010 | lt_prog_compiler_static='-static' | |
7011 | ;; | |
7012 | # icc used to be incompatible with GCC. | |
7013 | # ICC 10 doesn't accept -KPIC any more. | |
7014 | icc* | ifort*) | |
7015 | lt_prog_compiler_wl='-Wl,' | |
7016 | lt_prog_compiler_pic='-fPIC' | |
7017 | lt_prog_compiler_static='-static' | |
7018 | ;; | |
7019 | # Lahey Fortran 8.1. | |
7020 | lf95*) | |
7021 | lt_prog_compiler_wl='-Wl,' | |
7022 | lt_prog_compiler_pic='--shared' | |
7023 | lt_prog_compiler_static='--static' | |
7024 | ;; | |
7025 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7026 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7027 | # which looks to be a dead project) | |
7028 | lt_prog_compiler_wl='-Wl,' | |
7029 | lt_prog_compiler_pic='-fpic' | |
7030 | lt_prog_compiler_static='-Bstatic' | |
7031 | ;; | |
7032 | ccc*) | |
7033 | lt_prog_compiler_wl='-Wl,' | |
7034 | # All Alpha code is PIC. | |
7035 | lt_prog_compiler_static='-non_shared' | |
7036 | ;; | |
7037 | xl*) | |
7038 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7039 | lt_prog_compiler_wl='-Wl,' | |
7040 | lt_prog_compiler_pic='-qpic' | |
7041 | lt_prog_compiler_static='-qstaticlink' | |
7042 | ;; | |
7043 | *) | |
7044 | case `$CC -V 2>&1 | sed 5q` in | |
7045 | *Sun\ C*) | |
7046 | # Sun C 5.9 | |
7047 | lt_prog_compiler_pic='-KPIC' | |
7048 | lt_prog_compiler_static='-Bstatic' | |
7049 | lt_prog_compiler_wl='-Wl,' | |
7050 | ;; | |
7051 | *Sun\ F*) | |
7052 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7053 | lt_prog_compiler_pic='-KPIC' | |
7054 | lt_prog_compiler_static='-Bstatic' | |
7055 | lt_prog_compiler_wl='' | |
7056 | ;; | |
7057 | esac | |
7058 | ;; | |
7059 | esac | |
7060 | ;; | |
7061 | ||
7062 | newsos6) | |
7063 | lt_prog_compiler_pic='-KPIC' | |
7064 | lt_prog_compiler_static='-Bstatic' | |
7065 | ;; | |
7066 | ||
7067 | *nto* | *qnx*) | |
7068 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7069 | # it will coredump. | |
7070 | lt_prog_compiler_pic='-fPIC -shared' | |
7071 | ;; | |
7072 | ||
7073 | osf3* | osf4* | osf5*) | |
7074 | lt_prog_compiler_wl='-Wl,' | |
7075 | # All OSF/1 code is PIC. | |
7076 | lt_prog_compiler_static='-non_shared' | |
7077 | ;; | |
7078 | ||
7079 | rdos*) | |
7080 | lt_prog_compiler_static='-non_shared' | |
7081 | ;; | |
7082 | ||
7083 | solaris*) | |
7084 | lt_prog_compiler_pic='-KPIC' | |
7085 | lt_prog_compiler_static='-Bstatic' | |
7086 | case $cc_basename in | |
7087 | f77* | f90* | f95*) | |
7088 | lt_prog_compiler_wl='-Qoption ld ';; | |
7089 | *) | |
7090 | lt_prog_compiler_wl='-Wl,';; | |
7091 | esac | |
7092 | ;; | |
7093 | ||
7094 | sunos4*) | |
7095 | lt_prog_compiler_wl='-Qoption ld ' | |
7096 | lt_prog_compiler_pic='-PIC' | |
7097 | lt_prog_compiler_static='-Bstatic' | |
7098 | ;; | |
7099 | ||
7100 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7101 | lt_prog_compiler_wl='-Wl,' | |
7102 | lt_prog_compiler_pic='-KPIC' | |
7103 | lt_prog_compiler_static='-Bstatic' | |
7104 | ;; | |
7105 | ||
7106 | sysv4*MP*) | |
7107 | if test -d /usr/nec ;then | |
7108 | lt_prog_compiler_pic='-Kconform_pic' | |
7109 | lt_prog_compiler_static='-Bstatic' | |
7110 | fi | |
7111 | ;; | |
7112 | ||
7113 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7114 | lt_prog_compiler_wl='-Wl,' | |
7115 | lt_prog_compiler_pic='-KPIC' | |
7116 | lt_prog_compiler_static='-Bstatic' | |
7117 | ;; | |
7118 | ||
7119 | unicos*) | |
7120 | lt_prog_compiler_wl='-Wl,' | |
7121 | lt_prog_compiler_can_build_shared=no | |
7122 | ;; | |
7123 | ||
7124 | uts4*) | |
7125 | lt_prog_compiler_pic='-pic' | |
7126 | lt_prog_compiler_static='-Bstatic' | |
7127 | ;; | |
7128 | ||
7129 | *) | |
7130 | lt_prog_compiler_can_build_shared=no | |
7131 | ;; | |
7132 | esac | |
7133 | fi | |
7134 | ||
7135 | case $host_os in | |
7136 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7137 | *djgpp*) | |
7138 | lt_prog_compiler_pic= | |
7139 | ;; | |
7140 | *) | |
7141 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7142 | ;; | |
7143 | esac | |
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7145 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | # | |
7153 | # Check to make sure the PIC flag actually works. | |
7154 | # | |
7155 | if test -n "$lt_prog_compiler_pic"; then | |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7157 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7158 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7159 | $as_echo_n "(cached) " >&6 | |
7160 | else | |
7161 | lt_cv_prog_compiler_pic_works=no | |
7162 | ac_outfile=conftest.$ac_objext | |
7163 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7164 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7165 | # Insert the option either (1) after the last *FLAGS variable, or | |
7166 | # (2) before a word containing "conftest.", or (3) at the end. | |
7167 | # Note that $ac_compile itself does not contain backslashes and begins | |
7168 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7169 | # The option is referenced via a variable to avoid confusing sed. | |
7170 | lt_compile=`echo "$ac_compile" | $SED \ | |
7171 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7172 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7173 | -e 's:$: $lt_compiler_flag:'` | |
e1cce270 | 7174 | (eval echo "\"\$as_me:7174: $lt_compile\"" >&5) |
9c60689e DWT |
7175 | (eval "$lt_compile" 2>conftest.err) |
7176 | ac_status=$? | |
7177 | cat conftest.err >&5 | |
e1cce270 | 7178 | echo "$as_me:7178: \$? = $ac_status" >&5 |
9c60689e DWT |
7179 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7180 | # The compiler can only warn and ignore the option if not recognized | |
7181 | # So say no if there are warnings other than the usual output. | |
7182 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7183 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7184 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7185 | lt_cv_prog_compiler_pic_works=yes | |
7186 | fi | |
7187 | fi | |
7188 | $RM conftest* | |
7189 | ||
7190 | fi | |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7192 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7193 | ||
7194 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7195 | case $lt_prog_compiler_pic in | |
7196 | "" | " "*) ;; | |
7197 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7198 | esac | |
7199 | else | |
7200 | lt_prog_compiler_pic= | |
7201 | lt_prog_compiler_can_build_shared=no | |
7202 | fi | |
7203 | ||
7204 | fi | |
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | # | |
7212 | # Check to make sure the static flag actually works. | |
7213 | # | |
7214 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7216 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7217 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7218 | $as_echo_n "(cached) " >&6 | |
7219 | else | |
7220 | lt_cv_prog_compiler_static_works=no | |
7221 | save_LDFLAGS="$LDFLAGS" | |
7222 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7223 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7224 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7225 | # The linker can only warn and ignore the option if not recognized | |
7226 | # So say no if there are warnings | |
7227 | if test -s conftest.err; then | |
7228 | # Append any errors to the config.log. | |
7229 | cat conftest.err 1>&5 | |
7230 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7231 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7232 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7233 | lt_cv_prog_compiler_static_works=yes | |
7234 | fi | |
7235 | else | |
7236 | lt_cv_prog_compiler_static_works=yes | |
7237 | fi | |
7238 | fi | |
7239 | $RM -r conftest* | |
7240 | LDFLAGS="$save_LDFLAGS" | |
7241 | ||
7242 | fi | |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7244 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7245 | ||
7246 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7247 | : | |
7248 | else | |
7249 | lt_prog_compiler_static= | |
7250 | fi | |
7251 | ||
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | ||
7257 | ||
7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7259 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7260 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7261 | $as_echo_n "(cached) " >&6 | |
7262 | else | |
7263 | lt_cv_prog_compiler_c_o=no | |
7264 | $RM -r conftest 2>/dev/null | |
7265 | mkdir conftest | |
7266 | cd conftest | |
7267 | mkdir out | |
7268 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7269 | ||
7270 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7271 | # Insert the option either (1) after the last *FLAGS variable, or | |
7272 | # (2) before a word containing "conftest.", or (3) at the end. | |
7273 | # Note that $ac_compile itself does not contain backslashes and begins | |
7274 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7275 | lt_compile=`echo "$ac_compile" | $SED \ | |
7276 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7277 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7278 | -e 's:$: $lt_compiler_flag:'` | |
e1cce270 | 7279 | (eval echo "\"\$as_me:7279: $lt_compile\"" >&5) |
9c60689e DWT |
7280 | (eval "$lt_compile" 2>out/conftest.err) |
7281 | ac_status=$? | |
7282 | cat out/conftest.err >&5 | |
e1cce270 | 7283 | echo "$as_me:7283: \$? = $ac_status" >&5 |
9c60689e DWT |
7284 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7285 | then | |
7286 | # The compiler can only warn and ignore the option if not recognized | |
7287 | # So say no if there are warnings | |
7288 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7289 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7290 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7291 | lt_cv_prog_compiler_c_o=yes | |
7292 | fi | |
7293 | fi | |
7294 | chmod u+w . 2>&5 | |
7295 | $RM conftest* | |
7296 | # SGI C++ compiler will create directory out/ii_files/ for | |
7297 | # template instantiation | |
7298 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7299 | $RM out/* && rmdir out | |
7300 | cd .. | |
7301 | $RM -r conftest | |
7302 | $RM conftest* | |
7303 | ||
7304 | fi | |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7306 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7307 | ||
7308 | ||
7309 | ||
7310 | ||
7311 | ||
7312 | ||
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7314 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7315 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7316 | $as_echo_n "(cached) " >&6 | |
7317 | else | |
7318 | lt_cv_prog_compiler_c_o=no | |
7319 | $RM -r conftest 2>/dev/null | |
7320 | mkdir conftest | |
7321 | cd conftest | |
7322 | mkdir out | |
7323 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7324 | ||
7325 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7326 | # Insert the option either (1) after the last *FLAGS variable, or | |
7327 | # (2) before a word containing "conftest.", or (3) at the end. | |
7328 | # Note that $ac_compile itself does not contain backslashes and begins | |
7329 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7330 | lt_compile=`echo "$ac_compile" | $SED \ | |
7331 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7332 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7333 | -e 's:$: $lt_compiler_flag:'` | |
e1cce270 | 7334 | (eval echo "\"\$as_me:7334: $lt_compile\"" >&5) |
9c60689e DWT |
7335 | (eval "$lt_compile" 2>out/conftest.err) |
7336 | ac_status=$? | |
7337 | cat out/conftest.err >&5 | |
e1cce270 | 7338 | echo "$as_me:7338: \$? = $ac_status" >&5 |
9c60689e DWT |
7339 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7340 | then | |
7341 | # The compiler can only warn and ignore the option if not recognized | |
7342 | # So say no if there are warnings | |
7343 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7344 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7345 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7346 | lt_cv_prog_compiler_c_o=yes | |
7347 | fi | |
7348 | fi | |
7349 | chmod u+w . 2>&5 | |
7350 | $RM conftest* | |
7351 | # SGI C++ compiler will create directory out/ii_files/ for | |
7352 | # template instantiation | |
7353 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7354 | $RM out/* && rmdir out | |
7355 | cd .. | |
7356 | $RM -r conftest | |
7357 | $RM conftest* | |
7358 | ||
7359 | fi | |
7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7361 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | hard_links="nottested" | |
7367 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7368 | # do not overwrite the value of need_locks provided by the user | |
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7370 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7371 | hard_links=yes | |
7372 | $RM conftest* | |
7373 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7374 | touch conftest.a | |
7375 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7376 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7378 | $as_echo "$hard_links" >&6; } | |
7379 | if test "$hard_links" = no; then | |
7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7381 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7382 | need_locks=warn | |
7383 | fi | |
7384 | else | |
7385 | need_locks=no | |
7386 | fi | |
7387 | ||
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7394 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7395 | ||
7396 | runpath_var= | |
7397 | allow_undefined_flag= | |
7398 | always_export_symbols=no | |
7399 | archive_cmds= | |
7400 | archive_expsym_cmds= | |
7401 | compiler_needs_object=no | |
7402 | enable_shared_with_static_runtimes=no | |
7403 | export_dynamic_flag_spec= | |
7404 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7405 | hardcode_automatic=no | |
7406 | hardcode_direct=no | |
7407 | hardcode_direct_absolute=no | |
7408 | hardcode_libdir_flag_spec= | |
7409 | hardcode_libdir_flag_spec_ld= | |
7410 | hardcode_libdir_separator= | |
7411 | hardcode_minus_L=no | |
7412 | hardcode_shlibpath_var=unsupported | |
7413 | inherit_rpath=no | |
7414 | link_all_deplibs=unknown | |
7415 | module_cmds= | |
7416 | module_expsym_cmds= | |
7417 | old_archive_from_new_cmds= | |
7418 | old_archive_from_expsyms_cmds= | |
7419 | thread_safe_flag_spec= | |
7420 | whole_archive_flag_spec= | |
7421 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7422 | # included in the symbol list | |
7423 | include_expsyms= | |
7424 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7425 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7426 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7427 | # as well as any symbol that contains `d'. | |
7428 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7429 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7430 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7431 | # the symbol is explicitly referenced. Since portable code cannot | |
7432 | # rely on this symbol name, it's probably fine to never include it in | |
7433 | # preloaded symbol tables. | |
7434 | # Exclude shared library initialization/finalization symbols. | |
7435 | extract_expsyms_cmds= | |
7436 | ||
7437 | case $host_os in | |
7438 | cygwin* | mingw* | pw32* | cegcc*) | |
7439 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7440 | # When not using gcc, we currently assume that we are using | |
7441 | # Microsoft Visual C++. | |
7442 | if test "$GCC" != yes; then | |
7443 | with_gnu_ld=no | |
7444 | fi | |
7445 | ;; | |
7446 | interix*) | |
7447 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7448 | with_gnu_ld=yes | |
7449 | ;; | |
7450 | openbsd*) | |
7451 | with_gnu_ld=no | |
7452 | ;; | |
7453 | linux* | k*bsd*-gnu) | |
7454 | link_all_deplibs=no | |
7455 | ;; | |
7456 | esac | |
7457 | ||
7458 | ld_shlibs=yes | |
7459 | if test "$with_gnu_ld" = yes; then | |
7460 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7461 | wlarc='${wl}' | |
7462 | ||
7463 | # Set some defaults for GNU ld with shared library support. These | |
7464 | # are reset later if shared libraries are not supported. Putting them | |
7465 | # here allows them to be overridden if necessary. | |
7466 | runpath_var=LD_RUN_PATH | |
7467 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7468 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7469 | # ancient GNU ld didn't support --whole-archive et. al. | |
7470 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7471 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7472 | else | |
7473 | whole_archive_flag_spec= | |
7474 | fi | |
7475 | supports_anon_versioning=no | |
7476 | case `$LD -v 2>&1` in | |
7477 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
7478 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7479 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7480 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7481 | *\ 2.11.*) ;; # other 2.11 versions | |
7482 | *) supports_anon_versioning=yes ;; | |
7483 | esac | |
7484 | ||
7485 | # See if GNU ld supports shared libraries. | |
7486 | case $host_os in | |
7487 | aix[3-9]*) | |
7488 | # On AIX/PPC, the GNU linker is very broken | |
7489 | if test "$host_cpu" != ia64; then | |
7490 | ld_shlibs=no | |
7491 | cat <<_LT_EOF 1>&2 | |
7492 | ||
7493 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7494 | *** to be unable to reliably create shared libraries on AIX. | |
7495 | *** Therefore, libtool is disabling shared libraries support. If you | |
7496 | *** really care for shared libraries, you may want to modify your PATH | |
7497 | *** so that a non-GNU linker is found, and then restart. | |
7498 | ||
7499 | _LT_EOF | |
7500 | fi | |
7501 | ;; | |
7502 | ||
7503 | amigaos*) | |
7504 | case $host_cpu in | |
7505 | powerpc) | |
7506 | # see comment about AmigaOS4 .so support | |
7507 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7508 | archive_expsym_cmds='' | |
7509 | ;; | |
7510 | m68k) | |
7511 | 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)' | |
7512 | hardcode_libdir_flag_spec='-L$libdir' | |
7513 | hardcode_minus_L=yes | |
7514 | ;; | |
7515 | esac | |
7516 | ;; | |
7517 | ||
7518 | beos*) | |
7519 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7520 | allow_undefined_flag=unsupported | |
7521 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7522 | # support --undefined. This deserves some investigation. FIXME | |
7523 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7524 | else | |
7525 | ld_shlibs=no | |
7526 | fi | |
7527 | ;; | |
7528 | ||
7529 | cygwin* | mingw* | pw32* | cegcc*) | |
7530 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7531 | # as there is no search path for DLLs. | |
7532 | hardcode_libdir_flag_spec='-L$libdir' | |
7533 | allow_undefined_flag=unsupported | |
7534 | always_export_symbols=no | |
7535 | enable_shared_with_static_runtimes=yes | |
7536 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7537 | ||
7538 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7539 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7540 | # If the export-symbols file already is a .def file (1st line | |
7541 | # is EXPORTS), use it as is; otherwise, prepend... | |
7542 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7543 | cp $export_symbols $output_objdir/$soname.def; | |
7544 | else | |
7545 | echo EXPORTS > $output_objdir/$soname.def; | |
7546 | cat $export_symbols >> $output_objdir/$soname.def; | |
7547 | fi~ | |
7548 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7549 | else | |
7550 | ld_shlibs=no | |
7551 | fi | |
7552 | ;; | |
7553 | ||
7554 | interix[3-9]*) | |
7555 | hardcode_direct=no | |
7556 | hardcode_shlibpath_var=no | |
7557 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7558 | export_dynamic_flag_spec='${wl}-E' | |
7559 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7560 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7561 | # default) and relocated if they conflict, which is a slow very memory | |
7562 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7563 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7564 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7565 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7566 | 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' | |
7567 | ;; | |
7568 | ||
7569 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
7570 | tmp_diet=no | |
7571 | if test "$host_os" = linux-dietlibc; then | |
7572 | case $cc_basename in | |
7573 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7574 | esac | |
7575 | fi | |
7576 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7577 | && test "$tmp_diet" = no | |
7578 | then | |
7579 | tmp_addflag= | |
7580 | tmp_sharedflag='-shared' | |
7581 | case $cc_basename,$host_cpu in | |
7582 | pgcc*) # Portland Group C compiler | |
7583 | 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' | |
7584 | tmp_addflag=' $pic_flag' | |
7585 | ;; | |
7586 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7587 | 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' | |
7588 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7589 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7590 | tmp_addflag=' -i_dynamic' ;; | |
7591 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7592 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7593 | ifc* | ifort*) # Intel Fortran compiler | |
7594 | tmp_addflag=' -nofor_main' ;; | |
7595 | lf95*) # Lahey Fortran 8.1 | |
7596 | whole_archive_flag_spec= | |
7597 | tmp_sharedflag='--shared' ;; | |
7598 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7599 | tmp_sharedflag='-qmkshrobj' | |
7600 | tmp_addflag= ;; | |
7601 | esac | |
7602 | case `$CC -V 2>&1 | sed 5q` in | |
7603 | *Sun\ C*) # Sun C 5.9 | |
7604 | 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' | |
7605 | compiler_needs_object=yes | |
7606 | tmp_sharedflag='-G' ;; | |
7607 | *Sun\ F*) # Sun Fortran 8.3 | |
7608 | tmp_sharedflag='-G' ;; | |
7609 | esac | |
7610 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7611 | ||
7612 | if test "x$supports_anon_versioning" = xyes; then | |
7613 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7614 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7615 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7616 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7617 | fi | |
7618 | ||
7619 | case $cc_basename in | |
7620 | xlf*) | |
7621 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7622 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7623 | hardcode_libdir_flag_spec= | |
7624 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7625 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7626 | if test "x$supports_anon_versioning" = xyes; then | |
7627 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7628 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7629 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7630 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7631 | fi | |
7632 | ;; | |
7633 | esac | |
7634 | else | |
7635 | ld_shlibs=no | |
7636 | fi | |
7637 | ;; | |
7638 | ||
7639 | netbsd* | netbsdelf*-gnu) | |
7640 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7641 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7642 | wlarc= | |
7643 | else | |
7644 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7645 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7646 | fi | |
7647 | ;; | |
7648 | ||
7649 | solaris*) | |
7650 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7651 | ld_shlibs=no | |
7652 | cat <<_LT_EOF 1>&2 | |
7653 | ||
7654 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7655 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7656 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7657 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7658 | *** your PATH or compiler configuration so that the native linker is | |
7659 | *** used, and then restart. | |
7660 | ||
7661 | _LT_EOF | |
7662 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7663 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7664 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7665 | else | |
7666 | ld_shlibs=no | |
7667 | fi | |
7668 | ;; | |
7669 | ||
7670 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7671 | case `$LD -v 2>&1` in | |
7672 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7673 | ld_shlibs=no | |
7674 | cat <<_LT_EOF 1>&2 | |
7675 | ||
7676 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7677 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7678 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7679 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7680 | *** your PATH or compiler configuration so that the native linker is | |
7681 | *** used, and then restart. | |
7682 | ||
7683 | _LT_EOF | |
7684 | ;; | |
7685 | *) | |
7686 | # For security reasons, it is highly recommended that you always | |
7687 | # use absolute paths for naming shared libraries, and exclude the | |
7688 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7689 | # requires that you compile everything twice, which is a pain. | |
7690 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7691 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7692 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7693 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7694 | else | |
7695 | ld_shlibs=no | |
7696 | fi | |
7697 | ;; | |
7698 | esac | |
7699 | ;; | |
7700 | ||
7701 | sunos4*) | |
7702 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7703 | wlarc= | |
7704 | hardcode_direct=yes | |
7705 | hardcode_shlibpath_var=no | |
7706 | ;; | |
7707 | ||
7708 | *) | |
7709 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7710 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7711 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7712 | else | |
7713 | ld_shlibs=no | |
7714 | fi | |
7715 | ;; | |
7716 | esac | |
7717 | ||
7718 | if test "$ld_shlibs" = no; then | |
7719 | runpath_var= | |
7720 | hardcode_libdir_flag_spec= | |
7721 | export_dynamic_flag_spec= | |
7722 | whole_archive_flag_spec= | |
7723 | fi | |
7724 | else | |
7725 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7726 | case $host_os in | |
7727 | aix3*) | |
7728 | allow_undefined_flag=unsupported | |
7729 | always_export_symbols=yes | |
7730 | 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' | |
7731 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7732 | # are no directories specified by -L. | |
7733 | hardcode_minus_L=yes | |
7734 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7735 | # Neither direct hardcoding nor static linking is supported with a | |
7736 | # broken collect2. | |
7737 | hardcode_direct=unsupported | |
7738 | fi | |
7739 | ;; | |
7740 | ||
7741 | aix[4-9]*) | |
7742 | if test "$host_cpu" = ia64; then | |
7743 | # On IA64, the linker does run time linking by default, so we don't | |
7744 | # have to do anything special. | |
7745 | aix_use_runtimelinking=no | |
7746 | exp_sym_flag='-Bexport' | |
7747 | no_entry_flag="" | |
7748 | else | |
7749 | # If we're using GNU nm, then we don't want the "-C" option. | |
7750 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7751 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7752 | 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' | |
7753 | else | |
7754 | 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' | |
7755 | fi | |
7756 | aix_use_runtimelinking=no | |
7757 | ||
7758 | # Test if we are trying to use run time linking or normal | |
7759 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7760 | # need to do runtime linking. | |
7761 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7762 | for ld_flag in $LDFLAGS; do | |
7763 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7764 | aix_use_runtimelinking=yes | |
7765 | break | |
7766 | fi | |
7767 | done | |
7768 | ;; | |
7769 | esac | |
7770 | ||
7771 | exp_sym_flag='-bexport' | |
7772 | no_entry_flag='-bnoentry' | |
7773 | fi | |
7774 | ||
7775 | # When large executables or shared objects are built, AIX ld can | |
7776 | # have problems creating the table of contents. If linking a library | |
7777 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7778 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7779 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7780 | ||
7781 | archive_cmds='' | |
7782 | hardcode_direct=yes | |
7783 | hardcode_direct_absolute=yes | |
7784 | hardcode_libdir_separator=':' | |
7785 | link_all_deplibs=yes | |
7786 | file_list_spec='${wl}-f,' | |
7787 | ||
7788 | if test "$GCC" = yes; then | |
7789 | case $host_os in aix4.[012]|aix4.[012].*) | |
7790 | # We only want to do this on AIX 4.2 and lower, the check | |
7791 | # below for broken collect2 doesn't work under 4.3+ | |
7792 | collect2name=`${CC} -print-prog-name=collect2` | |
7793 | if test -f "$collect2name" && | |
7794 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7795 | then | |
7796 | # We have reworked collect2 | |
7797 | : | |
7798 | else | |
7799 | # We have old collect2 | |
7800 | hardcode_direct=unsupported | |
7801 | # It fails to find uninstalled libraries when the uninstalled | |
7802 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7803 | # to unsupported forces relinking | |
7804 | hardcode_minus_L=yes | |
7805 | hardcode_libdir_flag_spec='-L$libdir' | |
7806 | hardcode_libdir_separator= | |
7807 | fi | |
7808 | ;; | |
7809 | esac | |
7810 | shared_flag='-shared' | |
7811 | if test "$aix_use_runtimelinking" = yes; then | |
7812 | shared_flag="$shared_flag "'${wl}-G' | |
7813 | fi | |
7814 | link_all_deplibs=no | |
7815 | else | |
7816 | # not using gcc | |
7817 | if test "$host_cpu" = ia64; then | |
7818 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7819 | # chokes on -Wl,-G. The following line is correct: | |
7820 | shared_flag='-G' | |
7821 | else | |
7822 | if test "$aix_use_runtimelinking" = yes; then | |
7823 | shared_flag='${wl}-G' | |
7824 | else | |
7825 | shared_flag='${wl}-bM:SRE' | |
7826 | fi | |
7827 | fi | |
7828 | fi | |
7829 | ||
7830 | export_dynamic_flag_spec='${wl}-bexpall' | |
7831 | # It seems that -bexpall does not export symbols beginning with | |
7832 | # underscore (_), so it is better to generate a list of symbols to export. | |
7833 | always_export_symbols=yes | |
7834 | if test "$aix_use_runtimelinking" = yes; then | |
7835 | # Warning - without using the other runtime loading flags (-brtl), | |
7836 | # -berok will link without error, but may produce a broken library. | |
7837 | allow_undefined_flag='-berok' | |
7838 | # Determine the default libpath from the value encoded in an | |
7839 | # empty executable. | |
7840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7841 | /* end confdefs.h. */ | |
7842 | ||
7843 | int | |
7844 | main () | |
7845 | { | |
7846 | ||
7847 | ; | |
7848 | return 0; | |
7849 | } | |
7850 | _ACEOF | |
7851 | if ac_fn_c_try_link "$LINENO"; then : | |
7852 | ||
7853 | lt_aix_libpath_sed=' | |
7854 | /Import File Strings/,/^$/ { | |
7855 | /^0/ { | |
7856 | s/^0 *\(.*\)$/\1/ | |
7857 | p | |
7858 | } | |
7859 | }' | |
7860 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7861 | # Check for a 64-bit object if we didn't find anything. | |
7862 | if test -z "$aix_libpath"; then | |
7863 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7864 | fi | |
7865 | fi | |
7866 | rm -f core conftest.err conftest.$ac_objext \ | |
7867 | conftest$ac_exeext conftest.$ac_ext | |
7868 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7869 | ||
7870 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7871 | 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" | |
7872 | else | |
7873 | if test "$host_cpu" = ia64; then | |
7874 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7875 | allow_undefined_flag="-z nodefs" | |
7876 | 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" | |
7877 | else | |
7878 | # Determine the default libpath from the value encoded in an | |
7879 | # empty executable. | |
7880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7881 | /* end confdefs.h. */ | |
7882 | ||
7883 | int | |
7884 | main () | |
7885 | { | |
7886 | ||
7887 | ; | |
7888 | return 0; | |
7889 | } | |
7890 | _ACEOF | |
7891 | if ac_fn_c_try_link "$LINENO"; then : | |
7892 | ||
7893 | lt_aix_libpath_sed=' | |
7894 | /Import File Strings/,/^$/ { | |
7895 | /^0/ { | |
7896 | s/^0 *\(.*\)$/\1/ | |
7897 | p | |
7898 | } | |
7899 | }' | |
7900 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7901 | # Check for a 64-bit object if we didn't find anything. | |
7902 | if test -z "$aix_libpath"; then | |
7903 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7904 | fi | |
7905 | fi | |
7906 | rm -f core conftest.err conftest.$ac_objext \ | |
7907 | conftest$ac_exeext conftest.$ac_ext | |
7908 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7909 | ||
7910 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7911 | # Warning - without using the other run time loading flags, | |
7912 | # -berok will link without error, but may produce a broken library. | |
7913 | no_undefined_flag=' ${wl}-bernotok' | |
7914 | allow_undefined_flag=' ${wl}-berok' | |
7915 | # Exported symbols can be pulled into shared objects from archives | |
7916 | whole_archive_flag_spec='$convenience' | |
7917 | archive_cmds_need_lc=yes | |
7918 | # This is similar to how AIX traditionally builds its shared libraries. | |
7919 | 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' | |
7920 | fi | |
7921 | fi | |
7922 | ;; | |
7923 | ||
7924 | amigaos*) | |
7925 | case $host_cpu in | |
7926 | powerpc) | |
7927 | # see comment about AmigaOS4 .so support | |
7928 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7929 | archive_expsym_cmds='' | |
7930 | ;; | |
7931 | m68k) | |
7932 | 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)' | |
7933 | hardcode_libdir_flag_spec='-L$libdir' | |
7934 | hardcode_minus_L=yes | |
7935 | ;; | |
7936 | esac | |
7937 | ;; | |
7938 | ||
7939 | bsdi[45]*) | |
7940 | export_dynamic_flag_spec=-rdynamic | |
7941 | ;; | |
7942 | ||
7943 | cygwin* | mingw* | pw32* | cegcc*) | |
7944 | # When not using gcc, we currently assume that we are using | |
7945 | # Microsoft Visual C++. | |
7946 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7947 | # no search path for DLLs. | |
7948 | hardcode_libdir_flag_spec=' ' | |
7949 | allow_undefined_flag=unsupported | |
7950 | # Tell ltmain to make .lib files, not .a files. | |
7951 | libext=lib | |
7952 | # Tell ltmain to make .dll files, not .so files. | |
7953 | shrext_cmds=".dll" | |
7954 | # FIXME: Setting linknames here is a bad hack. | |
7955 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7956 | # The linker will automatically build a .lib file if we build a DLL. | |
7957 | old_archive_from_new_cmds='true' | |
7958 | # FIXME: Should let the user specify the lib program. | |
7959 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7960 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7961 | enable_shared_with_static_runtimes=yes | |
7962 | ;; | |
7963 | ||
7964 | darwin* | rhapsody*) | |
7965 | ||
7966 | ||
7967 | archive_cmds_need_lc=no | |
7968 | hardcode_direct=no | |
7969 | hardcode_automatic=yes | |
7970 | hardcode_shlibpath_var=unsupported | |
7971 | whole_archive_flag_spec='' | |
7972 | link_all_deplibs=yes | |
7973 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7974 | case $cc_basename in | |
7975 | ifort*) _lt_dar_can_shared=yes ;; | |
7976 | *) _lt_dar_can_shared=$GCC ;; | |
7977 | esac | |
7978 | if test "$_lt_dar_can_shared" = "yes"; then | |
7979 | output_verbose_link_cmd=echo | |
7980 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7981 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7982 | 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}" | |
7983 | 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}" | |
7984 | ||
7985 | else | |
7986 | ld_shlibs=no | |
7987 | fi | |
7988 | ||
7989 | ;; | |
7990 | ||
7991 | dgux*) | |
7992 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7993 | hardcode_libdir_flag_spec='-L$libdir' | |
7994 | hardcode_shlibpath_var=no | |
7995 | ;; | |
7996 | ||
7997 | freebsd1*) | |
7998 | ld_shlibs=no | |
7999 | ;; | |
8000 | ||
8001 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8002 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8003 | # does not break anything, and helps significantly (at the cost of a little | |
8004 | # extra space). | |
8005 | freebsd2.2*) | |
8006 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8007 | hardcode_libdir_flag_spec='-R$libdir' | |
8008 | hardcode_direct=yes | |
8009 | hardcode_shlibpath_var=no | |
8010 | ;; | |
8011 | ||
8012 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8013 | freebsd2*) | |
8014 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8015 | hardcode_direct=yes | |
8016 | hardcode_minus_L=yes | |
8017 | hardcode_shlibpath_var=no | |
8018 | ;; | |
8019 | ||
8020 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8021 | freebsd* | dragonfly*) | |
8022 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8023 | hardcode_libdir_flag_spec='-R$libdir' | |
8024 | hardcode_direct=yes | |
8025 | hardcode_shlibpath_var=no | |
8026 | ;; | |
8027 | ||
8028 | hpux9*) | |
8029 | if test "$GCC" = yes; then | |
8030 | 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' | |
8031 | else | |
8032 | 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' | |
8033 | fi | |
8034 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8035 | hardcode_libdir_separator=: | |
8036 | hardcode_direct=yes | |
8037 | ||
8038 | # hardcode_minus_L: Not really in the search PATH, | |
8039 | # but as the default location of the library. | |
8040 | hardcode_minus_L=yes | |
8041 | export_dynamic_flag_spec='${wl}-E' | |
8042 | ;; | |
8043 | ||
8044 | hpux10*) | |
8045 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8046 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8047 | else | |
8048 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8049 | fi | |
8050 | if test "$with_gnu_ld" = no; then | |
8051 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8052 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8053 | hardcode_libdir_separator=: | |
8054 | hardcode_direct=yes | |
8055 | hardcode_direct_absolute=yes | |
8056 | export_dynamic_flag_spec='${wl}-E' | |
8057 | # hardcode_minus_L: Not really in the search PATH, | |
8058 | # but as the default location of the library. | |
8059 | hardcode_minus_L=yes | |
8060 | fi | |
8061 | ;; | |
8062 | ||
8063 | hpux11*) | |
8064 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8065 | case $host_cpu in | |
8066 | hppa*64*) | |
8067 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8068 | ;; | |
8069 | ia64*) | |
8070 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8071 | ;; | |
8072 | *) | |
8073 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8074 | ;; | |
8075 | esac | |
8076 | else | |
8077 | case $host_cpu in | |
8078 | hppa*64*) | |
8079 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8080 | ;; | |
8081 | ia64*) | |
8082 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8083 | ;; | |
8084 | *) | |
8085 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8086 | ;; | |
8087 | esac | |
8088 | fi | |
8089 | if test "$with_gnu_ld" = no; then | |
8090 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8091 | hardcode_libdir_separator=: | |
8092 | ||
8093 | case $host_cpu in | |
8094 | hppa*64*|ia64*) | |
8095 | hardcode_direct=no | |
8096 | hardcode_shlibpath_var=no | |
8097 | ;; | |
8098 | *) | |
8099 | hardcode_direct=yes | |
8100 | hardcode_direct_absolute=yes | |
8101 | export_dynamic_flag_spec='${wl}-E' | |
8102 | ||
8103 | # hardcode_minus_L: Not really in the search PATH, | |
8104 | # but as the default location of the library. | |
8105 | hardcode_minus_L=yes | |
8106 | ;; | |
8107 | esac | |
8108 | fi | |
8109 | ;; | |
8110 | ||
8111 | irix5* | irix6* | nonstopux*) | |
8112 | if test "$GCC" = yes; then | |
8113 | 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' | |
8114 | # Try to use the -exported_symbol ld option, if it does not | |
8115 | # work, assume that -exports_file does not work either and | |
8116 | # implicitly export all symbols. | |
8117 | save_LDFLAGS="$LDFLAGS" | |
8118 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8120 | /* end confdefs.h. */ | |
8121 | int foo(void) {} | |
8122 | _ACEOF | |
8123 | if ac_fn_c_try_link "$LINENO"; then : | |
8124 | 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' | |
8125 | ||
8126 | fi | |
8127 | rm -f core conftest.err conftest.$ac_objext \ | |
8128 | conftest$ac_exeext conftest.$ac_ext | |
8129 | LDFLAGS="$save_LDFLAGS" | |
8130 | else | |
8131 | 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' | |
8132 | 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' | |
8133 | fi | |
8134 | archive_cmds_need_lc='no' | |
8135 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8136 | hardcode_libdir_separator=: | |
8137 | inherit_rpath=yes | |
8138 | link_all_deplibs=yes | |
8139 | ;; | |
8140 | ||
8141 | netbsd* | netbsdelf*-gnu) | |
8142 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8143 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8144 | else | |
8145 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8146 | fi | |
8147 | hardcode_libdir_flag_spec='-R$libdir' | |
8148 | hardcode_direct=yes | |
8149 | hardcode_shlibpath_var=no | |
8150 | ;; | |
8151 | ||
8152 | newsos6) | |
8153 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8154 | hardcode_direct=yes | |
8155 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8156 | hardcode_libdir_separator=: | |
8157 | hardcode_shlibpath_var=no | |
8158 | ;; | |
8159 | ||
8160 | *nto* | *qnx*) | |
8161 | ;; | |
8162 | ||
8163 | openbsd*) | |
8164 | if test -f /usr/libexec/ld.so; then | |
8165 | hardcode_direct=yes | |
8166 | hardcode_shlibpath_var=no | |
8167 | hardcode_direct_absolute=yes | |
8168 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8169 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8170 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8171 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8172 | export_dynamic_flag_spec='${wl}-E' | |
8173 | else | |
8174 | case $host_os in | |
8175 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8176 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8177 | hardcode_libdir_flag_spec='-R$libdir' | |
8178 | ;; | |
8179 | *) | |
8180 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8181 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8182 | ;; | |
8183 | esac | |
8184 | fi | |
8185 | else | |
8186 | ld_shlibs=no | |
8187 | fi | |
8188 | ;; | |
8189 | ||
8190 | os2*) | |
8191 | hardcode_libdir_flag_spec='-L$libdir' | |
8192 | hardcode_minus_L=yes | |
8193 | allow_undefined_flag=unsupported | |
8194 | 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' | |
8195 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8196 | ;; | |
8197 | ||
8198 | osf3*) | |
8199 | if test "$GCC" = yes; then | |
8200 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8201 | 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' | |
8202 | else | |
8203 | allow_undefined_flag=' -expect_unresolved \*' | |
8204 | 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' | |
8205 | fi | |
8206 | archive_cmds_need_lc='no' | |
8207 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8208 | hardcode_libdir_separator=: | |
8209 | ;; | |
8210 | ||
8211 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8212 | if test "$GCC" = yes; then | |
8213 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8214 | 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' | |
8215 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8216 | else | |
8217 | allow_undefined_flag=' -expect_unresolved \*' | |
8218 | 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' | |
8219 | 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~ | |
8220 | $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' | |
8221 | ||
8222 | # Both c and cxx compiler support -rpath directly | |
8223 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8224 | fi | |
8225 | archive_cmds_need_lc='no' | |
8226 | hardcode_libdir_separator=: | |
8227 | ;; | |
8228 | ||
8229 | solaris*) | |
8230 | no_undefined_flag=' -z defs' | |
8231 | if test "$GCC" = yes; then | |
8232 | wlarc='${wl}' | |
8233 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8234 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8235 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8236 | else | |
8237 | case `$CC -V 2>&1` in | |
8238 | *"Compilers 5.0"*) | |
8239 | wlarc='' | |
8240 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8241 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8242 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8243 | ;; | |
8244 | *) | |
8245 | wlarc='${wl}' | |
8246 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8247 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8248 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8249 | ;; | |
8250 | esac | |
8251 | fi | |
8252 | hardcode_libdir_flag_spec='-R$libdir' | |
8253 | hardcode_shlibpath_var=no | |
8254 | case $host_os in | |
8255 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8256 | *) | |
8257 | # The compiler driver will combine and reorder linker options, | |
8258 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8259 | # but is careful enough not to reorder. | |
8260 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8261 | if test "$GCC" = yes; then | |
8262 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8263 | else | |
8264 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8265 | fi | |
8266 | ;; | |
8267 | esac | |
8268 | link_all_deplibs=yes | |
8269 | ;; | |
8270 | ||
8271 | sunos4*) | |
8272 | if test "x$host_vendor" = xsequent; then | |
8273 | # Use $CC to link under sequent, because it throws in some extra .o | |
8274 | # files that make .init and .fini sections work. | |
8275 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8276 | else | |
8277 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8278 | fi | |
8279 | hardcode_libdir_flag_spec='-L$libdir' | |
8280 | hardcode_direct=yes | |
8281 | hardcode_minus_L=yes | |
8282 | hardcode_shlibpath_var=no | |
8283 | ;; | |
8284 | ||
8285 | sysv4) | |
8286 | case $host_vendor in | |
8287 | sni) | |
8288 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8289 | hardcode_direct=yes # is this really true??? | |
8290 | ;; | |
8291 | siemens) | |
8292 | ## LD is ld it makes a PLAMLIB | |
8293 | ## CC just makes a GrossModule. | |
8294 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8295 | reload_cmds='$CC -r -o $output$reload_objs' | |
8296 | hardcode_direct=no | |
8297 | ;; | |
8298 | motorola) | |
8299 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8300 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8301 | ;; | |
8302 | esac | |
8303 | runpath_var='LD_RUN_PATH' | |
8304 | hardcode_shlibpath_var=no | |
8305 | ;; | |
8306 | ||
8307 | sysv4.3*) | |
8308 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8309 | hardcode_shlibpath_var=no | |
8310 | export_dynamic_flag_spec='-Bexport' | |
8311 | ;; | |
8312 | ||
8313 | sysv4*MP*) | |
8314 | if test -d /usr/nec; then | |
8315 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8316 | hardcode_shlibpath_var=no | |
8317 | runpath_var=LD_RUN_PATH | |
8318 | hardcode_runpath_var=yes | |
8319 | ld_shlibs=yes | |
8320 | fi | |
8321 | ;; | |
8322 | ||
8323 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8324 | no_undefined_flag='${wl}-z,text' | |
8325 | archive_cmds_need_lc=no | |
8326 | hardcode_shlibpath_var=no | |
8327 | runpath_var='LD_RUN_PATH' | |
8328 | ||
8329 | if test "$GCC" = yes; then | |
8330 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8331 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8332 | else | |
8333 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8334 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8335 | fi | |
8336 | ;; | |
8337 | ||
8338 | sysv5* | sco3.2v5* | sco5v6*) | |
8339 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8340 | # link with -lc, and that would cause any symbols used from libc to | |
8341 | # always be unresolved, which means just about no library would | |
8342 | # ever link correctly. If we're not using GNU ld we use -z text | |
8343 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8344 | # as -z defs. | |
8345 | no_undefined_flag='${wl}-z,text' | |
8346 | allow_undefined_flag='${wl}-z,nodefs' | |
8347 | archive_cmds_need_lc=no | |
8348 | hardcode_shlibpath_var=no | |
8349 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8350 | hardcode_libdir_separator=':' | |
8351 | link_all_deplibs=yes | |
8352 | export_dynamic_flag_spec='${wl}-Bexport' | |
8353 | runpath_var='LD_RUN_PATH' | |
8354 | ||
8355 | if test "$GCC" = yes; then | |
8356 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8357 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8358 | else | |
8359 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8360 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8361 | fi | |
8362 | ;; | |
8363 | ||
8364 | uts4*) | |
8365 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8366 | hardcode_libdir_flag_spec='-L$libdir' | |
8367 | hardcode_shlibpath_var=no | |
8368 | ;; | |
8369 | ||
8370 | *) | |
8371 | ld_shlibs=no | |
8372 | ;; | |
8373 | esac | |
8374 | ||
8375 | if test x$host_vendor = xsni; then | |
8376 | case $host in | |
8377 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8378 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8379 | ;; | |
8380 | esac | |
8381 | fi | |
8382 | fi | |
8383 | ||
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8385 | $as_echo "$ld_shlibs" >&6; } | |
8386 | test "$ld_shlibs" = no && can_build_shared=no | |
8387 | ||
8388 | with_gnu_ld=$with_gnu_ld | |
8389 | ||
8390 | ||
8391 | ||
8392 | ||
8393 | ||
8394 | ||
8395 | ||
8396 | ||
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | # | |
8405 | # Do we need to explicitly link libc? | |
8406 | # | |
8407 | case "x$archive_cmds_need_lc" in | |
8408 | x|xyes) | |
8409 | # Assume -lc should be added | |
8410 | archive_cmds_need_lc=yes | |
8411 | ||
8412 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8413 | case $archive_cmds in | |
8414 | *'~'*) | |
8415 | # FIXME: we may have to deal with multi-command sequences. | |
8416 | ;; | |
8417 | '$CC '*) | |
8418 | # Test whether the compiler implicitly links with -lc since on some | |
8419 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8420 | # to ld, don't add -lc before -lgcc. | |
8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8422 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8423 | $RM conftest* | |
8424 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8425 | ||
8426 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8427 | (eval $ac_compile) 2>&5 | |
8428 | ac_status=$? | |
8429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8430 | test $ac_status = 0; } 2>conftest.err; then | |
8431 | soname=conftest | |
8432 | lib=conftest | |
8433 | libobjs=conftest.$ac_objext | |
8434 | deplibs= | |
8435 | wl=$lt_prog_compiler_wl | |
8436 | pic_flag=$lt_prog_compiler_pic | |
8437 | compiler_flags=-v | |
8438 | linker_flags=-v | |
8439 | verstring= | |
8440 | output_objdir=. | |
8441 | libname=conftest | |
8442 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8443 | allow_undefined_flag= | |
8444 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8445 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8446 | ac_status=$? | |
8447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8448 | test $ac_status = 0; } | |
8449 | then | |
8450 | archive_cmds_need_lc=no | |
8451 | else | |
8452 | archive_cmds_need_lc=yes | |
8453 | fi | |
8454 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8455 | else | |
8456 | cat conftest.err 1>&5 | |
8457 | fi | |
8458 | $RM conftest* | |
8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8460 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8461 | ;; | |
8462 | esac | |
8463 | fi | |
8464 | ;; | |
8465 | esac | |
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 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | ||
8591 | ||
8592 | ||
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | ||
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | ||
8618 | ||
8619 | ||
8620 | ||
8621 | ||
8622 | ||
8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8624 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8625 | ||
8626 | if test "$GCC" = yes; then | |
8627 | case $host_os in | |
8628 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8629 | *) lt_awk_arg="/^libraries:/" ;; | |
8630 | esac | |
8631 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8632 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8633 | # if the path contains ";" then we assume it to be the separator | |
8634 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8635 | # assumed that no part of a normal pathname contains ";" but that should | |
8636 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8637 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8638 | else | |
8639 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8640 | fi | |
8641 | # Ok, now we have the path, separated by spaces, we can step through it | |
8642 | # and add multilib dir if necessary. | |
8643 | lt_tmp_lt_search_path_spec= | |
8644 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8645 | for lt_sys_path in $lt_search_path_spec; do | |
8646 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8647 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8648 | else | |
8649 | test -d "$lt_sys_path" && \ | |
8650 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8651 | fi | |
8652 | done | |
8653 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8654 | BEGIN {RS=" "; FS="/|\n";} { | |
8655 | lt_foo=""; | |
8656 | lt_count=0; | |
8657 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8658 | if ($lt_i != "" && $lt_i != ".") { | |
8659 | if ($lt_i == "..") { | |
8660 | lt_count++; | |
8661 | } else { | |
8662 | if (lt_count == 0) { | |
8663 | lt_foo="/" $lt_i lt_foo; | |
8664 | } else { | |
8665 | lt_count--; | |
8666 | } | |
8667 | } | |
8668 | } | |
8669 | } | |
8670 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8671 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8672 | }'` | |
8673 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8674 | else | |
8675 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8676 | fi | |
8677 | library_names_spec= | |
8678 | libname_spec='lib$name' | |
8679 | soname_spec= | |
8680 | shrext_cmds=".so" | |
8681 | postinstall_cmds= | |
8682 | postuninstall_cmds= | |
8683 | finish_cmds= | |
8684 | finish_eval= | |
8685 | shlibpath_var= | |
8686 | shlibpath_overrides_runpath=unknown | |
8687 | version_type=none | |
8688 | dynamic_linker="$host_os ld.so" | |
8689 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8690 | need_lib_prefix=unknown | |
8691 | hardcode_into_libs=no | |
8692 | ||
8693 | # when you set need_version to no, make sure it does not cause -set_version | |
8694 | # flags to be left without arguments | |
8695 | need_version=unknown | |
8696 | ||
8697 | case $host_os in | |
8698 | aix3*) | |
8699 | version_type=linux | |
8700 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8701 | shlibpath_var=LIBPATH | |
8702 | ||
8703 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8704 | soname_spec='${libname}${release}${shared_ext}$major' | |
8705 | ;; | |
8706 | ||
8707 | aix[4-9]*) | |
8708 | version_type=linux | |
8709 | need_lib_prefix=no | |
8710 | need_version=no | |
8711 | hardcode_into_libs=yes | |
8712 | if test "$host_cpu" = ia64; then | |
8713 | # AIX 5 supports IA64 | |
8714 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8715 | shlibpath_var=LD_LIBRARY_PATH | |
8716 | else | |
8717 | # With GCC up to 2.95.x, collect2 would create an import file | |
8718 | # for dependence libraries. The import file would start with | |
8719 | # the line `#! .'. This would cause the generated library to | |
8720 | # depend on `.', always an invalid library. This was fixed in | |
8721 | # development snapshots of GCC prior to 3.0. | |
8722 | case $host_os in | |
8723 | aix4 | aix4.[01] | aix4.[01].*) | |
8724 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8725 | echo ' yes ' | |
8726 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8727 | : | |
8728 | else | |
8729 | can_build_shared=no | |
8730 | fi | |
8731 | ;; | |
8732 | esac | |
8733 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8734 | # soname into executable. Probably we can add versioning support to | |
8735 | # collect2, so additional links can be useful in future. | |
8736 | if test "$aix_use_runtimelinking" = yes; then | |
8737 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8738 | # instead of lib<name>.a to let people know that these are not | |
8739 | # typical AIX shared libraries. | |
8740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8741 | else | |
8742 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8743 | # and later when we are not doing run time linking. | |
8744 | library_names_spec='${libname}${release}.a $libname.a' | |
8745 | soname_spec='${libname}${release}${shared_ext}$major' | |
8746 | fi | |
8747 | shlibpath_var=LIBPATH | |
8748 | fi | |
8749 | ;; | |
8750 | ||
8751 | amigaos*) | |
8752 | case $host_cpu in | |
8753 | powerpc) | |
8754 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8755 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8757 | ;; | |
8758 | m68k) | |
8759 | library_names_spec='$libname.ixlibrary $libname.a' | |
8760 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8761 | 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' | |
8762 | ;; | |
8763 | esac | |
8764 | ;; | |
8765 | ||
8766 | beos*) | |
8767 | library_names_spec='${libname}${shared_ext}' | |
8768 | dynamic_linker="$host_os ld.so" | |
8769 | shlibpath_var=LIBRARY_PATH | |
8770 | ;; | |
8771 | ||
8772 | bsdi[45]*) | |
8773 | version_type=linux | |
8774 | need_version=no | |
8775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8776 | soname_spec='${libname}${release}${shared_ext}$major' | |
8777 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8778 | shlibpath_var=LD_LIBRARY_PATH | |
8779 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8780 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8781 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8782 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8783 | # libtool to hard-code these into programs | |
8784 | ;; | |
8785 | ||
8786 | cygwin* | mingw* | pw32* | cegcc*) | |
8787 | version_type=windows | |
8788 | shrext_cmds=".dll" | |
8789 | need_version=no | |
8790 | need_lib_prefix=no | |
8791 | ||
8792 | case $GCC,$host_os in | |
8793 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8794 | library_names_spec='$libname.dll.a' | |
8795 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8796 | postinstall_cmds='base_file=`basename \${file}`~ | |
8797 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8798 | dldir=$destdir/`dirname \$dlpath`~ | |
8799 | test -d \$dldir || mkdir -p \$dldir~ | |
8800 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8801 | chmod a+x \$dldir/$dlname~ | |
8802 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8803 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8804 | fi' | |
8805 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8806 | dlpath=$dir/\$dldll~ | |
8807 | $RM \$dlpath' | |
8808 | shlibpath_overrides_runpath=yes | |
8809 | ||
8810 | case $host_os in | |
8811 | cygwin*) | |
8812 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8813 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8814 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8815 | ;; | |
8816 | mingw* | cegcc*) | |
8817 | # MinGW DLLs use traditional 'lib' prefix | |
8818 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8819 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8820 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8821 | # It is most probably a Windows format PATH printed by | |
8822 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8823 | # path with ; separators, and with drive letters. We can handle the | |
8824 | # drive letters (cygwin fileutils understands them), so leave them, | |
8825 | # especially as we might pass files found there to a mingw objdump, | |
8826 | # which wouldn't understand a cygwinified path. Ahh. | |
8827 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8828 | else | |
8829 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8830 | fi | |
8831 | ;; | |
8832 | pw32*) | |
8833 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8834 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8835 | ;; | |
8836 | esac | |
8837 | ;; | |
8838 | ||
8839 | *) | |
8840 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8841 | ;; | |
8842 | esac | |
8843 | dynamic_linker='Win32 ld.exe' | |
8844 | # FIXME: first we should search . and the directory the executable is in | |
8845 | shlibpath_var=PATH | |
8846 | ;; | |
8847 | ||
8848 | darwin* | rhapsody*) | |
8849 | dynamic_linker="$host_os dyld" | |
8850 | version_type=darwin | |
8851 | need_lib_prefix=no | |
8852 | need_version=no | |
8853 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8854 | soname_spec='${libname}${release}${major}$shared_ext' | |
8855 | shlibpath_overrides_runpath=yes | |
8856 | shlibpath_var=DYLD_LIBRARY_PATH | |
8857 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8858 | ||
8859 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8860 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8861 | ;; | |
8862 | ||
8863 | dgux*) | |
8864 | version_type=linux | |
8865 | need_lib_prefix=no | |
8866 | need_version=no | |
8867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8868 | soname_spec='${libname}${release}${shared_ext}$major' | |
8869 | shlibpath_var=LD_LIBRARY_PATH | |
8870 | ;; | |
8871 | ||
8872 | freebsd1*) | |
8873 | dynamic_linker=no | |
8874 | ;; | |
8875 | ||
8876 | freebsd* | dragonfly*) | |
8877 | # DragonFly does not have aout. When/if they implement a new | |
8878 | # versioning mechanism, adjust this. | |
8879 | if test -x /usr/bin/objformat; then | |
8880 | objformat=`/usr/bin/objformat` | |
8881 | else | |
8882 | case $host_os in | |
8883 | freebsd[123]*) objformat=aout ;; | |
8884 | *) objformat=elf ;; | |
8885 | esac | |
8886 | fi | |
8887 | version_type=freebsd-$objformat | |
8888 | case $version_type in | |
8889 | freebsd-elf*) | |
8890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8891 | need_version=no | |
8892 | need_lib_prefix=no | |
8893 | ;; | |
8894 | freebsd-*) | |
8895 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8896 | need_version=yes | |
8897 | ;; | |
8898 | esac | |
8899 | shlibpath_var=LD_LIBRARY_PATH | |
8900 | case $host_os in | |
8901 | freebsd2*) | |
8902 | shlibpath_overrides_runpath=yes | |
8903 | ;; | |
8904 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8905 | shlibpath_overrides_runpath=yes | |
8906 | hardcode_into_libs=yes | |
8907 | ;; | |
8908 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8909 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8910 | shlibpath_overrides_runpath=no | |
8911 | hardcode_into_libs=yes | |
8912 | ;; | |
8913 | *) # from 4.6 on, and DragonFly | |
8914 | shlibpath_overrides_runpath=yes | |
8915 | hardcode_into_libs=yes | |
8916 | ;; | |
8917 | esac | |
8918 | ;; | |
8919 | ||
8920 | gnu*) | |
8921 | version_type=linux | |
8922 | need_lib_prefix=no | |
8923 | need_version=no | |
8924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8925 | soname_spec='${libname}${release}${shared_ext}$major' | |
8926 | shlibpath_var=LD_LIBRARY_PATH | |
8927 | hardcode_into_libs=yes | |
8928 | ;; | |
8929 | ||
8930 | hpux9* | hpux10* | hpux11*) | |
8931 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8932 | # link against other versions. | |
8933 | version_type=sunos | |
8934 | need_lib_prefix=no | |
8935 | need_version=no | |
8936 | case $host_cpu in | |
8937 | ia64*) | |
8938 | shrext_cmds='.so' | |
8939 | hardcode_into_libs=yes | |
8940 | dynamic_linker="$host_os dld.so" | |
8941 | shlibpath_var=LD_LIBRARY_PATH | |
8942 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8944 | soname_spec='${libname}${release}${shared_ext}$major' | |
8945 | if test "X$HPUX_IA64_MODE" = X32; then | |
8946 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8947 | else | |
8948 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8949 | fi | |
8950 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8951 | ;; | |
8952 | hppa*64*) | |
8953 | shrext_cmds='.sl' | |
8954 | hardcode_into_libs=yes | |
8955 | dynamic_linker="$host_os dld.sl" | |
8956 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8957 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8959 | soname_spec='${libname}${release}${shared_ext}$major' | |
8960 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8961 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8962 | ;; | |
8963 | *) | |
8964 | shrext_cmds='.sl' | |
8965 | dynamic_linker="$host_os dld.sl" | |
8966 | shlibpath_var=SHLIB_PATH | |
8967 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8969 | soname_spec='${libname}${release}${shared_ext}$major' | |
8970 | ;; | |
8971 | esac | |
8972 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8973 | postinstall_cmds='chmod 555 $lib' | |
8974 | ;; | |
8975 | ||
8976 | interix[3-9]*) | |
8977 | version_type=linux | |
8978 | need_lib_prefix=no | |
8979 | need_version=no | |
8980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8981 | soname_spec='${libname}${release}${shared_ext}$major' | |
8982 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8983 | shlibpath_var=LD_LIBRARY_PATH | |
8984 | shlibpath_overrides_runpath=no | |
8985 | hardcode_into_libs=yes | |
8986 | ;; | |
8987 | ||
8988 | irix5* | irix6* | nonstopux*) | |
8989 | case $host_os in | |
8990 | nonstopux*) version_type=nonstopux ;; | |
8991 | *) | |
8992 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8993 | version_type=linux | |
8994 | else | |
8995 | version_type=irix | |
8996 | fi ;; | |
8997 | esac | |
8998 | need_lib_prefix=no | |
8999 | need_version=no | |
9000 | soname_spec='${libname}${release}${shared_ext}$major' | |
9001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9002 | case $host_os in | |
9003 | irix5* | nonstopux*) | |
9004 | libsuff= shlibsuff= | |
9005 | ;; | |
9006 | *) | |
9007 | case $LD in # libtool.m4 will add one of these switches to LD | |
9008 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9009 | libsuff= shlibsuff= libmagic=32-bit;; | |
9010 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9011 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9012 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9013 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9014 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9015 | esac | |
9016 | ;; | |
9017 | esac | |
9018 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9019 | shlibpath_overrides_runpath=no | |
9020 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9021 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9022 | hardcode_into_libs=yes | |
9023 | ;; | |
9024 | ||
9025 | # No shared lib support for Linux oldld, aout, or coff. | |
9026 | linux*oldld* | linux*aout* | linux*coff*) | |
9027 | dynamic_linker=no | |
9028 | ;; | |
9029 | ||
9030 | # This must be Linux ELF. | |
9031 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9032 | version_type=linux | |
9033 | need_lib_prefix=no | |
9034 | need_version=no | |
9035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9036 | soname_spec='${libname}${release}${shared_ext}$major' | |
9037 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9038 | shlibpath_var=LD_LIBRARY_PATH | |
9039 | shlibpath_overrides_runpath=no | |
9040 | # Some binutils ld are patched to set DT_RUNPATH | |
9041 | save_LDFLAGS=$LDFLAGS | |
9042 | save_libdir=$libdir | |
9043 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9044 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9046 | /* end confdefs.h. */ | |
9047 | ||
9048 | int | |
9049 | main () | |
9050 | { | |
9051 | ||
9052 | ; | |
9053 | return 0; | |
9054 | } | |
9055 | _ACEOF | |
9056 | if ac_fn_c_try_link "$LINENO"; then : | |
9057 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9058 | shlibpath_overrides_runpath=yes | |
9059 | fi | |
9060 | fi | |
9061 | rm -f core conftest.err conftest.$ac_objext \ | |
9062 | conftest$ac_exeext conftest.$ac_ext | |
9063 | LDFLAGS=$save_LDFLAGS | |
9064 | libdir=$save_libdir | |
9065 | ||
9066 | # This implies no fast_install, which is unacceptable. | |
9067 | # Some rework will be needed to allow for fast_install | |
9068 | # before this can be enabled. | |
9069 | hardcode_into_libs=yes | |
9070 | ||
9071 | # Append ld.so.conf contents to the search path | |
9072 | if test -f /etc/ld.so.conf; then | |
9073 | 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' ' '` | |
9074 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9075 | fi | |
9076 | ||
9077 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9078 | # powerpc, because MkLinux only supported shared libraries with the | |
9079 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9080 | # most powerpc-linux boxes support dynamic linking these days and | |
9081 | # people can always --disable-shared, the test was removed, and we | |
9082 | # assume the GNU/Linux dynamic linker is in use. | |
9083 | dynamic_linker='GNU/Linux ld.so' | |
9084 | ;; | |
9085 | ||
9086 | netbsdelf*-gnu) | |
9087 | version_type=linux | |
9088 | need_lib_prefix=no | |
9089 | need_version=no | |
9090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9091 | soname_spec='${libname}${release}${shared_ext}$major' | |
9092 | shlibpath_var=LD_LIBRARY_PATH | |
9093 | shlibpath_overrides_runpath=no | |
9094 | hardcode_into_libs=yes | |
9095 | dynamic_linker='NetBSD ld.elf_so' | |
9096 | ;; | |
9097 | ||
9098 | netbsd*) | |
9099 | version_type=sunos | |
9100 | need_lib_prefix=no | |
9101 | need_version=no | |
9102 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9104 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9105 | dynamic_linker='NetBSD (a.out) ld.so' | |
9106 | else | |
9107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9108 | soname_spec='${libname}${release}${shared_ext}$major' | |
9109 | dynamic_linker='NetBSD ld.elf_so' | |
9110 | fi | |
9111 | shlibpath_var=LD_LIBRARY_PATH | |
9112 | shlibpath_overrides_runpath=yes | |
9113 | hardcode_into_libs=yes | |
9114 | ;; | |
9115 | ||
9116 | newsos6) | |
9117 | version_type=linux | |
9118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9119 | shlibpath_var=LD_LIBRARY_PATH | |
9120 | shlibpath_overrides_runpath=yes | |
9121 | ;; | |
9122 | ||
9123 | *nto* | *qnx*) | |
9124 | version_type=qnx | |
9125 | need_lib_prefix=no | |
9126 | need_version=no | |
9127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9128 | soname_spec='${libname}${release}${shared_ext}$major' | |
9129 | shlibpath_var=LD_LIBRARY_PATH | |
9130 | shlibpath_overrides_runpath=no | |
9131 | hardcode_into_libs=yes | |
9132 | dynamic_linker='ldqnx.so' | |
9133 | ;; | |
9134 | ||
9135 | openbsd*) | |
9136 | version_type=sunos | |
9137 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9138 | need_lib_prefix=no | |
9139 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9140 | case $host_os in | |
9141 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9142 | *) need_version=no ;; | |
9143 | esac | |
9144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9145 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9146 | shlibpath_var=LD_LIBRARY_PATH | |
9147 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9148 | case $host_os in | |
9149 | openbsd2.[89] | openbsd2.[89].*) | |
9150 | shlibpath_overrides_runpath=no | |
9151 | ;; | |
9152 | *) | |
9153 | shlibpath_overrides_runpath=yes | |
9154 | ;; | |
9155 | esac | |
9156 | else | |
9157 | shlibpath_overrides_runpath=yes | |
9158 | fi | |
9159 | ;; | |
9160 | ||
9161 | os2*) | |
9162 | libname_spec='$name' | |
9163 | shrext_cmds=".dll" | |
9164 | need_lib_prefix=no | |
9165 | library_names_spec='$libname${shared_ext} $libname.a' | |
9166 | dynamic_linker='OS/2 ld.exe' | |
9167 | shlibpath_var=LIBPATH | |
9168 | ;; | |
9169 | ||
9170 | osf3* | osf4* | osf5*) | |
9171 | version_type=osf | |
9172 | need_lib_prefix=no | |
9173 | need_version=no | |
9174 | soname_spec='${libname}${release}${shared_ext}$major' | |
9175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9176 | shlibpath_var=LD_LIBRARY_PATH | |
9177 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9178 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9179 | ;; | |
9180 | ||
9181 | rdos*) | |
9182 | dynamic_linker=no | |
9183 | ;; | |
9184 | ||
9185 | solaris*) | |
9186 | version_type=linux | |
9187 | need_lib_prefix=no | |
9188 | need_version=no | |
9189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9190 | soname_spec='${libname}${release}${shared_ext}$major' | |
9191 | shlibpath_var=LD_LIBRARY_PATH | |
9192 | shlibpath_overrides_runpath=yes | |
9193 | hardcode_into_libs=yes | |
9194 | # ldd complains unless libraries are executable | |
9195 | postinstall_cmds='chmod +x $lib' | |
9196 | ;; | |
9197 | ||
9198 | sunos4*) | |
9199 | version_type=sunos | |
9200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9201 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9202 | shlibpath_var=LD_LIBRARY_PATH | |
9203 | shlibpath_overrides_runpath=yes | |
9204 | if test "$with_gnu_ld" = yes; then | |
9205 | need_lib_prefix=no | |
9206 | fi | |
9207 | need_version=yes | |
9208 | ;; | |
9209 | ||
9210 | sysv4 | sysv4.3*) | |
9211 | version_type=linux | |
9212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9213 | soname_spec='${libname}${release}${shared_ext}$major' | |
9214 | shlibpath_var=LD_LIBRARY_PATH | |
9215 | case $host_vendor in | |
9216 | sni) | |
9217 | shlibpath_overrides_runpath=no | |
9218 | need_lib_prefix=no | |
9219 | runpath_var=LD_RUN_PATH | |
9220 | ;; | |
9221 | siemens) | |
9222 | need_lib_prefix=no | |
9223 | ;; | |
9224 | motorola) | |
9225 | need_lib_prefix=no | |
9226 | need_version=no | |
9227 | shlibpath_overrides_runpath=no | |
9228 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9229 | ;; | |
9230 | esac | |
9231 | ;; | |
9232 | ||
9233 | sysv4*MP*) | |
9234 | if test -d /usr/nec ;then | |
9235 | version_type=linux | |
9236 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9237 | soname_spec='$libname${shared_ext}.$major' | |
9238 | shlibpath_var=LD_LIBRARY_PATH | |
9239 | fi | |
9240 | ;; | |
9241 | ||
9242 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9243 | version_type=freebsd-elf | |
9244 | need_lib_prefix=no | |
9245 | need_version=no | |
9246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9247 | soname_spec='${libname}${release}${shared_ext}$major' | |
9248 | shlibpath_var=LD_LIBRARY_PATH | |
9249 | shlibpath_overrides_runpath=yes | |
9250 | hardcode_into_libs=yes | |
9251 | if test "$with_gnu_ld" = yes; then | |
9252 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9253 | else | |
9254 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9255 | case $host_os in | |
9256 | sco3.2v5*) | |
9257 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9258 | ;; | |
9259 | esac | |
9260 | fi | |
9261 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9262 | ;; | |
9263 | ||
9264 | tpf*) | |
9265 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9266 | version_type=linux | |
9267 | need_lib_prefix=no | |
9268 | need_version=no | |
9269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9270 | shlibpath_var=LD_LIBRARY_PATH | |
9271 | shlibpath_overrides_runpath=no | |
9272 | hardcode_into_libs=yes | |
9273 | ;; | |
9274 | ||
9275 | uts4*) | |
9276 | version_type=linux | |
9277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9278 | soname_spec='${libname}${release}${shared_ext}$major' | |
9279 | shlibpath_var=LD_LIBRARY_PATH | |
9280 | ;; | |
9281 | ||
9282 | *) | |
9283 | dynamic_linker=no | |
9284 | ;; | |
9285 | esac | |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9287 | $as_echo "$dynamic_linker" >&6; } | |
9288 | test "$dynamic_linker" = no && can_build_shared=no | |
9289 | ||
9290 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9291 | if test "$GCC" = yes; then | |
9292 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9293 | fi | |
9294 | ||
9295 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9296 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9297 | fi | |
9298 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9299 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9300 | fi | |
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 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9389 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9390 | hardcode_action= | |
9391 | if test -n "$hardcode_libdir_flag_spec" || | |
9392 | test -n "$runpath_var" || | |
9393 | test "X$hardcode_automatic" = "Xyes" ; then | |
9394 | ||
9395 | # We can hardcode non-existent directories. | |
9396 | if test "$hardcode_direct" != no && | |
9397 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9398 | # have to relink, otherwise we might link with an installed library | |
9399 | # when we should be linking with a yet-to-be-installed one | |
9400 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9401 | test "$hardcode_minus_L" != no; then | |
9402 | # Linking always hardcodes the temporary library directory. | |
9403 | hardcode_action=relink | |
9404 | else | |
9405 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9406 | hardcode_action=immediate | |
9407 | fi | |
9408 | else | |
9409 | # We cannot hardcode anything, or else we can only hardcode existing | |
9410 | # directories. | |
9411 | hardcode_action=unsupported | |
9412 | fi | |
9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9414 | $as_echo "$hardcode_action" >&6; } | |
9415 | ||
9416 | if test "$hardcode_action" = relink || | |
9417 | test "$inherit_rpath" = yes; then | |
9418 | # Fast installation is not supported | |
9419 | enable_fast_install=no | |
9420 | elif test "$shlibpath_overrides_runpath" = yes || | |
9421 | test "$enable_shared" = no; then | |
9422 | # Fast installation is not necessary | |
9423 | enable_fast_install=needless | |
9424 | fi | |
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | if test "x$enable_dlopen" != xyes; then | |
9432 | enable_dlopen=unknown | |
9433 | enable_dlopen_self=unknown | |
9434 | enable_dlopen_self_static=unknown | |
9435 | else | |
9436 | lt_cv_dlopen=no | |
9437 | lt_cv_dlopen_libs= | |
9438 | ||
9439 | case $host_os in | |
9440 | beos*) | |
9441 | lt_cv_dlopen="load_add_on" | |
9442 | lt_cv_dlopen_libs= | |
9443 | lt_cv_dlopen_self=yes | |
9444 | ;; | |
9445 | ||
9446 | mingw* | pw32* | cegcc*) | |
9447 | lt_cv_dlopen="LoadLibrary" | |
9448 | lt_cv_dlopen_libs= | |
9449 | ;; | |
9450 | ||
9451 | cygwin*) | |
9452 | lt_cv_dlopen="dlopen" | |
9453 | lt_cv_dlopen_libs= | |
9454 | ;; | |
9455 | ||
9456 | darwin*) | |
9457 | # if libdl is installed we need to link against it | |
9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9459 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9460 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9461 | $as_echo_n "(cached) " >&6 | |
9462 | else | |
9463 | ac_check_lib_save_LIBS=$LIBS | |
9464 | LIBS="-ldl $LIBS" | |
9465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9466 | /* end confdefs.h. */ | |
9467 | ||
9468 | /* Override any GCC internal prototype to avoid an error. | |
9469 | Use char because int might match the return type of a GCC | |
9470 | builtin and then its argument prototype would still apply. */ | |
9471 | #ifdef __cplusplus | |
9472 | extern "C" | |
9473 | #endif | |
9474 | char dlopen (); | |
9475 | int | |
9476 | main () | |
9477 | { | |
9478 | return dlopen (); | |
9479 | ; | |
9480 | return 0; | |
9481 | } | |
9482 | _ACEOF | |
9483 | if ac_fn_c_try_link "$LINENO"; then : | |
9484 | ac_cv_lib_dl_dlopen=yes | |
9485 | else | |
9486 | ac_cv_lib_dl_dlopen=no | |
9487 | fi | |
9488 | rm -f core conftest.err conftest.$ac_objext \ | |
9489 | conftest$ac_exeext conftest.$ac_ext | |
9490 | LIBS=$ac_check_lib_save_LIBS | |
9491 | fi | |
9492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9493 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9494 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9495 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9496 | else | |
9497 | ||
9498 | lt_cv_dlopen="dyld" | |
9499 | lt_cv_dlopen_libs= | |
9500 | lt_cv_dlopen_self=yes | |
9501 | ||
9502 | fi | |
9503 | ||
9504 | ;; | |
9505 | ||
9506 | *) | |
9507 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9508 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9509 | lt_cv_dlopen="shl_load" | |
9510 | else | |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9512 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9513 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9514 | $as_echo_n "(cached) " >&6 | |
9515 | else | |
9516 | ac_check_lib_save_LIBS=$LIBS | |
9517 | LIBS="-ldld $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 shl_load (); | |
9528 | int | |
9529 | main () | |
9530 | { | |
9531 | return shl_load (); | |
9532 | ; | |
9533 | return 0; | |
9534 | } | |
9535 | _ACEOF | |
9536 | if ac_fn_c_try_link "$LINENO"; then : | |
9537 | ac_cv_lib_dld_shl_load=yes | |
9538 | else | |
9539 | ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5 | |
9546 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9547 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9548 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9549 | else | |
9550 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9551 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9552 | lt_cv_dlopen="dlopen" | |
9553 | else | |
9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9555 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9556 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9557 | $as_echo_n "(cached) " >&6 | |
9558 | else | |
9559 | ac_check_lib_save_LIBS=$LIBS | |
9560 | LIBS="-ldl $LIBS" | |
9561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9562 | /* end confdefs.h. */ | |
9563 | ||
9564 | /* Override any GCC internal prototype to avoid an error. | |
9565 | Use char because int might match the return type of a GCC | |
9566 | builtin and then its argument prototype would still apply. */ | |
9567 | #ifdef __cplusplus | |
9568 | extern "C" | |
9569 | #endif | |
9570 | char dlopen (); | |
9571 | int | |
9572 | main () | |
9573 | { | |
9574 | return dlopen (); | |
9575 | ; | |
9576 | return 0; | |
9577 | } | |
9578 | _ACEOF | |
9579 | if ac_fn_c_try_link "$LINENO"; then : | |
9580 | ac_cv_lib_dl_dlopen=yes | |
9581 | else | |
9582 | ac_cv_lib_dl_dlopen=no | |
9583 | fi | |
9584 | rm -f core conftest.err conftest.$ac_objext \ | |
9585 | conftest$ac_exeext conftest.$ac_ext | |
9586 | LIBS=$ac_check_lib_save_LIBS | |
9587 | fi | |
9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9589 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9590 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9591 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9592 | else | |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9594 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9595 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9596 | $as_echo_n "(cached) " >&6 | |
9597 | else | |
9598 | ac_check_lib_save_LIBS=$LIBS | |
9599 | LIBS="-lsvld $LIBS" | |
9600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9601 | /* end confdefs.h. */ | |
9602 | ||
9603 | /* Override any GCC internal prototype to avoid an error. | |
9604 | Use char because int might match the return type of a GCC | |
9605 | builtin and then its argument prototype would still apply. */ | |
9606 | #ifdef __cplusplus | |
9607 | extern "C" | |
9608 | #endif | |
9609 | char dlopen (); | |
9610 | int | |
9611 | main () | |
9612 | { | |
9613 | return dlopen (); | |
9614 | ; | |
9615 | return 0; | |
9616 | } | |
9617 | _ACEOF | |
9618 | if ac_fn_c_try_link "$LINENO"; then : | |
9619 | ac_cv_lib_svld_dlopen=yes | |
9620 | else | |
9621 | ac_cv_lib_svld_dlopen=no | |
9622 | fi | |
9623 | rm -f core conftest.err conftest.$ac_objext \ | |
9624 | conftest$ac_exeext conftest.$ac_ext | |
9625 | LIBS=$ac_check_lib_save_LIBS | |
9626 | fi | |
9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9628 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9629 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9630 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9631 | else | |
9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9633 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9634 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9635 | $as_echo_n "(cached) " >&6 | |
9636 | else | |
9637 | ac_check_lib_save_LIBS=$LIBS | |
9638 | LIBS="-ldld $LIBS" | |
9639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9640 | /* end confdefs.h. */ | |
9641 | ||
9642 | /* Override any GCC internal prototype to avoid an error. | |
9643 | Use char because int might match the return type of a GCC | |
9644 | builtin and then its argument prototype would still apply. */ | |
9645 | #ifdef __cplusplus | |
9646 | extern "C" | |
9647 | #endif | |
9648 | char dld_link (); | |
9649 | int | |
9650 | main () | |
9651 | { | |
9652 | return dld_link (); | |
9653 | ; | |
9654 | return 0; | |
9655 | } | |
9656 | _ACEOF | |
9657 | if ac_fn_c_try_link "$LINENO"; then : | |
9658 | ac_cv_lib_dld_dld_link=yes | |
9659 | else | |
9660 | ac_cv_lib_dld_dld_link=no | |
9661 | fi | |
9662 | rm -f core conftest.err conftest.$ac_objext \ | |
9663 | conftest$ac_exeext conftest.$ac_ext | |
9664 | LIBS=$ac_check_lib_save_LIBS | |
9665 | fi | |
9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9667 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9668 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9669 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9670 | fi | |
9671 | ||
9672 | ||
9673 | fi | |
9674 | ||
9675 | ||
9676 | fi | |
9677 | ||
9678 | ||
9679 | fi | |
9680 | ||
9681 | ||
9682 | fi | |
9683 | ||
9684 | ||
9685 | fi | |
9686 | ||
9687 | ;; | |
9688 | esac | |
9689 | ||
9690 | if test "x$lt_cv_dlopen" != xno; then | |
9691 | enable_dlopen=yes | |
9692 | else | |
9693 | enable_dlopen=no | |
9694 | fi | |
9695 | ||
9696 | case $lt_cv_dlopen in | |
9697 | dlopen) | |
9698 | save_CPPFLAGS="$CPPFLAGS" | |
9699 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9700 | ||
9701 | save_LDFLAGS="$LDFLAGS" | |
9702 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9703 | ||
9704 | save_LIBS="$LIBS" | |
9705 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9706 | ||
9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9708 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9709 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9710 | $as_echo_n "(cached) " >&6 | |
9711 | else | |
9712 | if test "$cross_compiling" = yes; then : | |
9713 | lt_cv_dlopen_self=cross | |
9714 | else | |
9715 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9716 | lt_status=$lt_dlunknown | |
9717 | cat > conftest.$ac_ext <<_LT_EOF | |
e1cce270 | 9718 | #line 9718 "configure" |
9c60689e DWT |
9719 | #include "confdefs.h" |
9720 | ||
9721 | #if HAVE_DLFCN_H | |
9722 | #include <dlfcn.h> | |
9723 | #endif | |
9724 | ||
9725 | #include <stdio.h> | |
9726 | ||
9727 | #ifdef RTLD_GLOBAL | |
9728 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9729 | #else | |
9730 | # ifdef DL_GLOBAL | |
9731 | # define LT_DLGLOBAL DL_GLOBAL | |
9732 | # else | |
9733 | # define LT_DLGLOBAL 0 | |
9734 | # endif | |
9735 | #endif | |
9736 | ||
9737 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9738 | find out it does not work in some platform. */ | |
9739 | #ifndef LT_DLLAZY_OR_NOW | |
9740 | # ifdef RTLD_LAZY | |
9741 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9742 | # else | |
9743 | # ifdef DL_LAZY | |
9744 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9745 | # else | |
9746 | # ifdef RTLD_NOW | |
9747 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9748 | # else | |
9749 | # ifdef DL_NOW | |
9750 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9751 | # else | |
9752 | # define LT_DLLAZY_OR_NOW 0 | |
9753 | # endif | |
9754 | # endif | |
9755 | # endif | |
9756 | # endif | |
9757 | #endif | |
9758 | ||
9759 | void fnord() { int i=42;} | |
9760 | int main () | |
9761 | { | |
9762 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9763 | int status = $lt_dlunknown; | |
9764 | ||
9765 | if (self) | |
9766 | { | |
9767 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9768 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9769 | /* dlclose (self); */ | |
9770 | } | |
9771 | else | |
9772 | puts (dlerror ()); | |
9773 | ||
9774 | return status; | |
9775 | } | |
9776 | _LT_EOF | |
9777 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9778 | (eval $ac_link) 2>&5 | |
9779 | ac_status=$? | |
9780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9781 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9782 | (./conftest; exit; ) >&5 2>/dev/null | |
9783 | lt_status=$? | |
9784 | case x$lt_status in | |
9785 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9786 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9787 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9788 | esac | |
9789 | else : | |
9790 | # compilation failed | |
9791 | lt_cv_dlopen_self=no | |
9792 | fi | |
9793 | fi | |
9794 | rm -fr conftest* | |
9795 | ||
9796 | ||
9797 | fi | |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9799 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9800 | ||
9801 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9802 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9804 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9805 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9806 | $as_echo_n "(cached) " >&6 | |
9807 | else | |
9808 | if test "$cross_compiling" = yes; then : | |
9809 | lt_cv_dlopen_self_static=cross | |
9810 | else | |
9811 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9812 | lt_status=$lt_dlunknown | |
9813 | cat > conftest.$ac_ext <<_LT_EOF | |
e1cce270 | 9814 | #line 9814 "configure" |
9c60689e DWT |
9815 | #include "confdefs.h" |
9816 | ||
9817 | #if HAVE_DLFCN_H | |
9818 | #include <dlfcn.h> | |
9819 | #endif | |
9820 | ||
9821 | #include <stdio.h> | |
9822 | ||
9823 | #ifdef RTLD_GLOBAL | |
9824 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9825 | #else | |
9826 | # ifdef DL_GLOBAL | |
9827 | # define LT_DLGLOBAL DL_GLOBAL | |
9828 | # else | |
9829 | # define LT_DLGLOBAL 0 | |
9830 | # endif | |
9831 | #endif | |
9832 | ||
9833 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9834 | find out it does not work in some platform. */ | |
9835 | #ifndef LT_DLLAZY_OR_NOW | |
9836 | # ifdef RTLD_LAZY | |
9837 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9838 | # else | |
9839 | # ifdef DL_LAZY | |
9840 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9841 | # else | |
9842 | # ifdef RTLD_NOW | |
9843 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9844 | # else | |
9845 | # ifdef DL_NOW | |
9846 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9847 | # else | |
9848 | # define LT_DLLAZY_OR_NOW 0 | |
9849 | # endif | |
9850 | # endif | |
9851 | # endif | |
9852 | # endif | |
9853 | #endif | |
9854 | ||
9855 | void fnord() { int i=42;} | |
9856 | int main () | |
9857 | { | |
9858 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9859 | int status = $lt_dlunknown; | |
9860 | ||
9861 | if (self) | |
9862 | { | |
9863 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9864 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9865 | /* dlclose (self); */ | |
9866 | } | |
9867 | else | |
9868 | puts (dlerror ()); | |
9869 | ||
9870 | return status; | |
9871 | } | |
9872 | _LT_EOF | |
9873 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9874 | (eval $ac_link) 2>&5 | |
9875 | ac_status=$? | |
9876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9877 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9878 | (./conftest; exit; ) >&5 2>/dev/null | |
9879 | lt_status=$? | |
9880 | case x$lt_status in | |
9881 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9882 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9883 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9884 | esac | |
9885 | else : | |
9886 | # compilation failed | |
9887 | lt_cv_dlopen_self_static=no | |
9888 | fi | |
9889 | fi | |
9890 | rm -fr conftest* | |
9891 | ||
9892 | ||
9893 | fi | |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9895 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9896 | fi | |
9897 | ||
9898 | CPPFLAGS="$save_CPPFLAGS" | |
9899 | LDFLAGS="$save_LDFLAGS" | |
9900 | LIBS="$save_LIBS" | |
9901 | ;; | |
9902 | esac | |
9903 | ||
9904 | case $lt_cv_dlopen_self in | |
9905 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9906 | *) enable_dlopen_self=unknown ;; | |
9907 | esac | |
9908 | ||
9909 | case $lt_cv_dlopen_self_static in | |
9910 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9911 | *) enable_dlopen_self_static=unknown ;; | |
9912 | esac | |
9913 | fi | |
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | striplib= | |
9932 | old_striplib= | |
9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9934 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9935 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9936 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9937 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9939 | $as_echo "yes" >&6; } | |
9940 | else | |
9941 | # FIXME - insert some real tests, host_os isn't really good enough | |
9942 | case $host_os in | |
9943 | darwin*) | |
9944 | if test -n "$STRIP" ; then | |
9945 | striplib="$STRIP -x" | |
9946 | old_striplib="$STRIP -S" | |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9948 | $as_echo "yes" >&6; } | |
9949 | else | |
9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9951 | $as_echo "no" >&6; } | |
9952 | fi | |
9953 | ;; | |
9954 | *) | |
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9956 | $as_echo "no" >&6; } | |
9957 | ;; | |
9958 | esac | |
9959 | fi | |
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | # Report which library types will actually be built | |
9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9974 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9976 | $as_echo "$can_build_shared" >&6; } | |
9977 | ||
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9979 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9980 | test "$can_build_shared" = "no" && enable_shared=no | |
9981 | ||
9982 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9983 | # are all built from PIC. | |
9984 | case $host_os in | |
9985 | aix3*) | |
9986 | test "$enable_shared" = yes && enable_static=no | |
9987 | if test -n "$RANLIB"; then | |
9988 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9989 | postinstall_cmds='$RANLIB $lib' | |
9990 | fi | |
9991 | ;; | |
9992 | ||
9993 | aix[4-9]*) | |
9994 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9995 | test "$enable_shared" = yes && enable_static=no | |
9996 | fi | |
9997 | ;; | |
9998 | esac | |
9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
10000 | $as_echo "$enable_shared" >&6; } | |
10001 | ||
10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
10003 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
10004 | # Make sure either enable_shared or enable_static is yes. | |
10005 | test "$enable_shared" = yes || enable_static=yes | |
10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
10007 | $as_echo "$enable_static" >&6; } | |
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | fi | |
10013 | ac_ext=c | |
10014 | ac_cpp='$CPP $CPPFLAGS' | |
10015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10018 | ||
10019 | CC="$lt_save_CC" | |
10020 | ||
10021 | ||
10022 | ||
10023 | ||
10024 | ||
10025 | ||
10026 | ||
10027 | ||
10028 | ||
10029 | ||
10030 | ||
10031 | ||
10032 | ||
10033 | ac_config_commands="$ac_config_commands libtool" | |
10034 | ||
10035 | ||
10036 | ||
10037 | ||
10038 | # Only expand once: | |
10039 | ||
10040 | ||
3fd51f51 DWT |
10041 | |
10042 | ||
10043 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
10044 | if test -n "$ac_tool_prefix"; then | |
10045 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
10046 | set dummy ${ac_tool_prefix}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_PKG_CONFIG+set}" = set; then : | |
10050 | $as_echo_n "(cached) " >&6 | |
10051 | else | |
10052 | case $PKG_CONFIG in | |
10053 | [\\/]* | ?:[\\/]*) | |
10054 | ac_cv_path_PKG_CONFIG="$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_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 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10076 | if test -n "$PKG_CONFIG"; then | |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10078 | $as_echo "$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 | ||
10085 | fi | |
10086 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10087 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10088 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10089 | set dummy pkg-config; ac_word=$2 | |
10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10091 | $as_echo_n "checking for $ac_word... " >&6; } | |
10092 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10093 | $as_echo_n "(cached) " >&6 | |
10094 | else | |
10095 | case $ac_pt_PKG_CONFIG in | |
10096 | [\\/]* | ?:[\\/]*) | |
10097 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10098 | ;; | |
10099 | *) | |
10100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10101 | for as_dir in $PATH | |
10102 | do | |
10103 | IFS=$as_save_IFS | |
10104 | test -z "$as_dir" && as_dir=. | |
10105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10107 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10109 | break 2 | |
10110 | fi | |
10111 | done | |
10112 | done | |
10113 | IFS=$as_save_IFS | |
10114 | ||
10115 | ;; | |
10116 | esac | |
10117 | fi | |
10118 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10119 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10121 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10122 | else | |
10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10124 | $as_echo "no" >&6; } | |
10125 | fi | |
10126 | ||
10127 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10128 | PKG_CONFIG="" | |
10129 | else | |
10130 | case $cross_compiling:$ac_tool_warned in | |
10131 | yes:) | |
10132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10133 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10134 | ac_tool_warned=yes ;; | |
10135 | esac | |
10136 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10137 | fi | |
10138 | else | |
10139 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10140 | fi | |
10141 | ||
10142 | fi | |
10143 | if test -n "$PKG_CONFIG"; then | |
10144 | _pkg_min_version=0.22 | |
10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10146 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10147 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10149 | $as_echo "yes" >&6; } | |
10150 | else | |
10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10152 | $as_echo "no" >&6; } | |
10153 | PKG_CONFIG="" | |
10154 | fi | |
10155 | ||
10156 | fi | |
47aaa820 DWT |
10157 | ac_ext=cpp |
10158 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10159 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10160 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10161 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10162 | if test -z "$CXX"; then | |
10163 | if test -n "$CCC"; then | |
10164 | CXX=$CCC | |
10165 | else | |
10166 | if test -n "$ac_tool_prefix"; then | |
10167 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10168 | do | |
10169 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10170 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10172 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10173 | if test "${ac_cv_prog_CXX+set}" = set; then : |
9c60689e DWT |
10174 | $as_echo_n "(cached) " >&6 |
10175 | else | |
47aaa820 DWT |
10176 | if test -n "$CXX"; then |
10177 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9c60689e DWT |
10178 | else |
10179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10180 | for as_dir in $PATH | |
10181 | do | |
10182 | IFS=$as_save_IFS | |
10183 | test -z "$as_dir" && as_dir=. | |
10184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10186 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
10187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10188 | break 2 | |
10189 | fi | |
10190 | done | |
10191 | done | |
10192 | IFS=$as_save_IFS | |
10193 | ||
10194 | fi | |
10195 | fi | |
47aaa820 DWT |
10196 | CXX=$ac_cv_prog_CXX |
10197 | if test -n "$CXX"; then | |
10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10199 | $as_echo "$CXX" >&6; } | |
9c60689e DWT |
10200 | else |
10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10202 | $as_echo "no" >&6; } | |
10203 | fi | |
10204 | ||
10205 | ||
47aaa820 DWT |
10206 | test -n "$CXX" && break |
10207 | done | |
9c60689e | 10208 | fi |
47aaa820 DWT |
10209 | if test -z "$CXX"; then |
10210 | ac_ct_CXX=$CXX | |
10211 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
9c60689e DWT |
10212 | do |
10213 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10214 | set dummy $ac_prog; ac_word=$2 | |
10215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10216 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10217 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
9c60689e DWT |
10218 | $as_echo_n "(cached) " >&6 |
10219 | else | |
47aaa820 DWT |
10220 | if test -n "$ac_ct_CXX"; then |
10221 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
9c60689e DWT |
10222 | else |
10223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10224 | for as_dir in $PATH | |
10225 | do | |
10226 | IFS=$as_save_IFS | |
10227 | test -z "$as_dir" && as_dir=. | |
10228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10230 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
9c60689e DWT |
10231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10232 | break 2 | |
10233 | fi | |
10234 | done | |
10235 | done | |
10236 | IFS=$as_save_IFS | |
10237 | ||
10238 | fi | |
10239 | fi | |
47aaa820 DWT |
10240 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10241 | if test -n "$ac_ct_CXX"; then | |
10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10243 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e DWT |
10244 | else |
10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10246 | $as_echo "no" >&6; } | |
10247 | fi | |
10248 | ||
10249 | ||
47aaa820 | 10250 | test -n "$ac_ct_CXX" && break |
9c60689e DWT |
10251 | done |
10252 | ||
47aaa820 DWT |
10253 | if test "x$ac_ct_CXX" = x; then |
10254 | CXX="g++" | |
10255 | else | |
10256 | case $cross_compiling:$ac_tool_warned in | |
10257 | yes:) | |
10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10259 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10260 | ac_tool_warned=yes ;; | |
9c60689e | 10261 | esac |
47aaa820 DWT |
10262 | CXX=$ac_ct_CXX |
10263 | fi | |
9c60689e DWT |
10264 | fi |
10265 | ||
9c60689e | 10266 | fi |
9c60689e | 10267 | fi |
47aaa820 DWT |
10268 | # Provide some information about the compiler. |
10269 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10270 | set X $ac_compile | |
10271 | ac_compiler=$2 | |
10272 | for ac_option in --version -v -V -qversion; do | |
10273 | { { ac_try="$ac_compiler $ac_option >&5" | |
9c60689e DWT |
10274 | case "(($ac_try" in |
10275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10276 | *) ac_try_echo=$ac_try;; | |
10277 | esac | |
10278 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10279 | $as_echo "$ac_try_echo"; } >&5 | |
47aaa820 | 10280 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
9c60689e | 10281 | ac_status=$? |
47aaa820 DWT |
10282 | if test -s conftest.err; then |
10283 | sed '10a\ | |
10284 | ... rest of stderr output deleted ... | |
10285 | 10q' conftest.err >conftest.er1 | |
10286 | cat conftest.er1 >&5 | |
10287 | fi | |
10288 | rm -f conftest.er1 conftest.err | |
9c60689e DWT |
10289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10290 | test $ac_status = 0; } | |
47aaa820 DWT |
10291 | done |
10292 | ||
10293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
10294 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10295 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
9c60689e DWT |
10296 | $as_echo_n "(cached) " >&6 |
10297 | else | |
47aaa820 DWT |
10298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10299 | /* end confdefs.h. */ | |
9c60689e | 10300 | |
47aaa820 DWT |
10301 | int |
10302 | main () | |
10303 | { | |
10304 | #ifndef __GNUC__ | |
10305 | choke me | |
10306 | #endif | |
10307 | ||
10308 | ; | |
10309 | return 0; | |
10310 | } | |
10311 | _ACEOF | |
10312 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10313 | ac_compiler_gnu=yes | |
9c60689e | 10314 | else |
47aaa820 | 10315 | ac_compiler_gnu=no |
9c60689e | 10316 | fi |
47aaa820 DWT |
10317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10318 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 10319 | |
47aaa820 DWT |
10320 | fi |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10322 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10323 | if test $ac_compiler_gnu = yes; then | |
10324 | GXX=yes | |
9c60689e | 10325 | else |
47aaa820 | 10326 | GXX= |
9c60689e | 10327 | fi |
47aaa820 DWT |
10328 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10329 | ac_save_CXXFLAGS=$CXXFLAGS | |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10331 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10332 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
9c60689e DWT |
10333 | $as_echo_n "(cached) " >&6 |
10334 | else | |
47aaa820 DWT |
10335 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
10336 | ac_cxx_werror_flag=yes | |
10337 | ac_cv_prog_cxx_g=no | |
10338 | CXXFLAGS="-g" | |
10339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e | 10340 | /* end confdefs.h. */ |
9c60689e | 10341 | |
47aaa820 DWT |
10342 | int |
10343 | main () | |
10344 | { | |
9c60689e | 10345 | |
47aaa820 DWT |
10346 | ; |
10347 | return 0; | |
10348 | } | |
10349 | _ACEOF | |
10350 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10351 | ac_cv_prog_cxx_g=yes | |
9c60689e | 10352 | else |
47aaa820 DWT |
10353 | CXXFLAGS="" |
10354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10355 | /* end confdefs.h. */ | |
9c60689e | 10356 | |
47aaa820 DWT |
10357 | int |
10358 | main () | |
10359 | { | |
9c60689e | 10360 | |
47aaa820 DWT |
10361 | ; |
10362 | return 0; | |
10363 | } | |
10364 | _ACEOF | |
10365 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e DWT |
10366 | |
10367 | else | |
47aaa820 DWT |
10368 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
10369 | CXXFLAGS="-g" | |
10370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10371 | /* end confdefs.h. */ | |
9c60689e | 10372 | |
47aaa820 DWT |
10373 | int |
10374 | main () | |
10375 | { | |
9c60689e | 10376 | |
47aaa820 DWT |
10377 | ; |
10378 | return 0; | |
10379 | } | |
10380 | _ACEOF | |
10381 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10382 | ac_cv_prog_cxx_g=yes | |
9c60689e | 10383 | fi |
47aaa820 | 10384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 10385 | fi |
47aaa820 DWT |
10386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10387 | fi | |
10388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10389 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10390 | fi | |
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10392 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10393 | if test "$ac_test_CXXFLAGS" = set; then | |
10394 | CXXFLAGS=$ac_save_CXXFLAGS | |
10395 | elif test $ac_cv_prog_cxx_g = yes; then | |
10396 | if test "$GXX" = yes; then | |
10397 | CXXFLAGS="-g -O2" | |
10398 | else | |
10399 | CXXFLAGS="-g" | |
10400 | fi | |
9c60689e | 10401 | else |
47aaa820 DWT |
10402 | if test "$GXX" = yes; then |
10403 | CXXFLAGS="-O2" | |
10404 | else | |
10405 | CXXFLAGS= | |
10406 | fi | |
9c60689e | 10407 | fi |
47aaa820 DWT |
10408 | ac_ext=c |
10409 | ac_cpp='$CPP $CPPFLAGS' | |
10410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10413 | |
9c60689e | 10414 | |
47aaa820 DWT |
10415 | ac_ext=cpp |
10416 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10417 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10418 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10419 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10420 | if test -z "$CXX"; then | |
10421 | if test -n "$CCC"; then | |
10422 | CXX=$CCC | |
10423 | else | |
10424 | if test -n "$ac_tool_prefix"; then | |
10425 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10426 | do | |
10427 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10428 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10430 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10431 | if test "${ac_cv_prog_CXX+set}" = set; then : |
9c60689e DWT |
10432 | $as_echo_n "(cached) " >&6 |
10433 | else | |
47aaa820 DWT |
10434 | if test -n "$CXX"; then |
10435 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9c60689e DWT |
10436 | else |
10437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10438 | for as_dir in $PATH | |
10439 | do | |
10440 | IFS=$as_save_IFS | |
10441 | test -z "$as_dir" && as_dir=. | |
10442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10444 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
10445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10446 | break 2 | |
10447 | fi | |
10448 | done | |
10449 | done | |
10450 | IFS=$as_save_IFS | |
10451 | ||
10452 | fi | |
10453 | fi | |
47aaa820 DWT |
10454 | CXX=$ac_cv_prog_CXX |
10455 | if test -n "$CXX"; then | |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10457 | $as_echo "$CXX" >&6; } | |
9c60689e DWT |
10458 | else |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10460 | $as_echo "no" >&6; } | |
10461 | fi | |
10462 | ||
10463 | ||
47aaa820 DWT |
10464 | test -n "$CXX" && break |
10465 | done | |
10466 | fi | |
10467 | if test -z "$CXX"; then | |
10468 | ac_ct_CXX=$CXX | |
10469 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
9c60689e DWT |
10470 | do |
10471 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10472 | set dummy $ac_prog; ac_word=$2 | |
10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10474 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10475 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
9c60689e DWT |
10476 | $as_echo_n "(cached) " >&6 |
10477 | else | |
47aaa820 DWT |
10478 | if test -n "$ac_ct_CXX"; then |
10479 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
9c60689e DWT |
10480 | else |
10481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10482 | for as_dir in $PATH | |
10483 | do | |
10484 | IFS=$as_save_IFS | |
10485 | test -z "$as_dir" && as_dir=. | |
10486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10488 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
9c60689e DWT |
10489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10490 | break 2 | |
10491 | fi | |
10492 | done | |
10493 | done | |
10494 | IFS=$as_save_IFS | |
10495 | ||
10496 | fi | |
10497 | fi | |
47aaa820 DWT |
10498 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10499 | if test -n "$ac_ct_CXX"; then | |
10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10501 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e DWT |
10502 | else |
10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10504 | $as_echo "no" >&6; } | |
10505 | fi | |
10506 | ||
10507 | ||
47aaa820 | 10508 | test -n "$ac_ct_CXX" && break |
9c60689e DWT |
10509 | done |
10510 | ||
47aaa820 DWT |
10511 | if test "x$ac_ct_CXX" = x; then |
10512 | CXX="g++" | |
10513 | else | |
10514 | case $cross_compiling:$ac_tool_warned in | |
10515 | yes:) | |
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10517 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10518 | ac_tool_warned=yes ;; | |
10519 | esac | |
10520 | CXX=$ac_ct_CXX | |
10521 | fi | |
10522 | fi | |
3fd51f51 | 10523 | |
47aaa820 DWT |
10524 | fi |
10525 | fi | |
10526 | # Provide some information about the compiler. | |
10527 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10528 | set X $ac_compile | |
10529 | ac_compiler=$2 | |
10530 | for ac_option in --version -v -V -qversion; do | |
10531 | { { ac_try="$ac_compiler $ac_option >&5" | |
10532 | case "(($ac_try" in | |
10533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10534 | *) ac_try_echo=$ac_try;; | |
3fd51f51 | 10535 | esac |
47aaa820 DWT |
10536 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
10537 | $as_echo "$ac_try_echo"; } >&5 | |
10538 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10539 | ac_status=$? | |
10540 | if test -s conftest.err; then | |
10541 | sed '10a\ | |
10542 | ... rest of stderr output deleted ... | |
10543 | 10q' conftest.err >conftest.er1 | |
10544 | cat conftest.er1 >&5 | |
3530897b | 10545 | fi |
47aaa820 DWT |
10546 | rm -f conftest.er1 conftest.err |
10547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10548 | test $ac_status = 0; } | |
3530897b | 10549 | done |
3530897b | 10550 | |
47aaa820 DWT |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10552 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10553 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10554 | $as_echo_n "(cached) " >&6 | |
10555 | else | |
10556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10557 | /* end confdefs.h. */ | |
10558 | ||
10559 | int | |
10560 | main () | |
10561 | { | |
10562 | #ifndef __GNUC__ | |
10563 | choke me | |
10564 | #endif | |
10565 | ||
10566 | ; | |
10567 | return 0; | |
10568 | } | |
10569 | _ACEOF | |
10570 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10571 | ac_compiler_gnu=yes | |
10572 | else | |
10573 | ac_compiler_gnu=no | |
3530897b | 10574 | fi |
47aaa820 DWT |
10575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10576 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10577 | ||
3530897b | 10578 | fi |
47aaa820 DWT |
10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
10580 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10581 | if test $ac_compiler_gnu = yes; then | |
10582 | GXX=yes | |
3530897b | 10583 | else |
47aaa820 | 10584 | GXX= |
3530897b | 10585 | fi |
47aaa820 DWT |
10586 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10587 | ac_save_CXXFLAGS=$CXXFLAGS | |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10589 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10590 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10591 | $as_echo_n "(cached) " >&6 | |
10592 | else | |
10593 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10594 | ac_cxx_werror_flag=yes | |
10595 | ac_cv_prog_cxx_g=no | |
10596 | CXXFLAGS="-g" | |
10597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10598 | /* end confdefs.h. */ | |
3530897b | 10599 | |
47aaa820 DWT |
10600 | int |
10601 | main () | |
10602 | { | |
3530897b | 10603 | |
47aaa820 DWT |
10604 | ; |
10605 | return 0; | |
10606 | } | |
10607 | _ACEOF | |
10608 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10609 | ac_cv_prog_cxx_g=yes | |
10610 | else | |
10611 | CXXFLAGS="" | |
10612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10613 | /* end confdefs.h. */ | |
9c60689e | 10614 | |
47aaa820 DWT |
10615 | int |
10616 | main () | |
10617 | { | |
9c60689e | 10618 | |
47aaa820 DWT |
10619 | ; |
10620 | return 0; | |
10621 | } | |
10622 | _ACEOF | |
10623 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e | 10624 | |
47aaa820 DWT |
10625 | else |
10626 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10627 | CXXFLAGS="-g" | |
10628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10629 | /* end confdefs.h. */ | |
9c60689e | 10630 | |
47aaa820 DWT |
10631 | int |
10632 | main () | |
10633 | { | |
9c60689e | 10634 | |
47aaa820 DWT |
10635 | ; |
10636 | return 0; | |
10637 | } | |
10638 | _ACEOF | |
10639 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10640 | ac_cv_prog_cxx_g=yes | |
10641 | fi | |
10642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10643 | fi | |
10644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10645 | fi | |
10646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10647 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10648 | fi | |
10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10650 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10651 | if test "$ac_test_CXXFLAGS" = set; then | |
10652 | CXXFLAGS=$ac_save_CXXFLAGS | |
10653 | elif test $ac_cv_prog_cxx_g = yes; then | |
10654 | if test "$GXX" = yes; then | |
10655 | CXXFLAGS="-g -O2" | |
10656 | else | |
10657 | CXXFLAGS="-g" | |
10658 | fi | |
10659 | else | |
10660 | if test "$GXX" = yes; then | |
10661 | CXXFLAGS="-O2" | |
10662 | else | |
10663 | CXXFLAGS= | |
10664 | fi | |
10665 | fi | |
10666 | ac_ext=c | |
10667 | ac_cpp='$CPP $CPPFLAGS' | |
10668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10671 | |
47aaa820 DWT |
10672 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10673 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10674 | (test "X$CXX" != "Xg++"))) ; then | |
10675 | ac_ext=cpp | |
10676 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10677 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10678 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10679 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
10681 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
10682 | if test -z "$CXXCPP"; then | |
10683 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
10684 | $as_echo_n "(cached) " >&6 | |
10685 | else | |
10686 | # Double quotes because CXXCPP needs to be expanded | |
10687 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
9c60689e | 10688 | do |
47aaa820 DWT |
10689 | ac_preproc_ok=false |
10690 | for ac_cxx_preproc_warn_flag in '' yes | |
10691 | do | |
10692 | # Use a header file that comes with gcc, so configuring glibc | |
10693 | # with a fresh cross-compiler works. | |
10694 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10695 | # <limits.h> exists even on freestanding compilers. | |
10696 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10697 | # not just through cpp. "Syntax error" is here to catch this case. | |
10698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10699 | /* end confdefs.h. */ | |
10700 | #ifdef __STDC__ | |
10701 | # include <limits.h> | |
10702 | #else | |
10703 | # include <assert.h> | |
10704 | #endif | |
10705 | Syntax error | |
10706 | _ACEOF | |
10707 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
9c60689e DWT |
10708 | |
10709 | else | |
47aaa820 DWT |
10710 | # Broken: fails on valid input. |
10711 | continue | |
9c60689e | 10712 | fi |
47aaa820 | 10713 | rm -f conftest.err conftest.$ac_ext |
9c60689e | 10714 | |
47aaa820 DWT |
10715 | # OK, works on sane cases. Now check whether nonexistent headers |
10716 | # can be detected and how. | |
10717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10718 | /* end confdefs.h. */ | |
10719 | #include <ac_nonexistent.h> | |
10720 | _ACEOF | |
10721 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10722 | # Broken: success on invalid input. | |
10723 | continue | |
10724 | else | |
10725 | # Passes both tests. | |
10726 | ac_preproc_ok=: | |
10727 | break | |
10728 | fi | |
10729 | rm -f conftest.err conftest.$ac_ext | |
9c60689e | 10730 | |
47aaa820 DWT |
10731 | done |
10732 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10733 | rm -f conftest.err conftest.$ac_ext | |
10734 | if $ac_preproc_ok; then : | |
10735 | break | |
10736 | fi | |
9c60689e | 10737 | |
9c60689e | 10738 | done |
47aaa820 | 10739 | ac_cv_prog_CXXCPP=$CXXCPP |
9c60689e | 10740 | |
47aaa820 DWT |
10741 | fi |
10742 | CXXCPP=$ac_cv_prog_CXXCPP | |
9c60689e | 10743 | else |
47aaa820 DWT |
10744 | ac_cv_prog_CXXCPP=$CXXCPP |
10745 | fi | |
10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
10747 | $as_echo "$CXXCPP" >&6; } | |
10748 | ac_preproc_ok=false | |
10749 | for ac_cxx_preproc_warn_flag in '' yes | |
10750 | do | |
10751 | # Use a header file that comes with gcc, so configuring glibc | |
10752 | # with a fresh cross-compiler works. | |
10753 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10754 | # <limits.h> exists even on freestanding compilers. | |
10755 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10756 | # not just through cpp. "Syntax error" is here to catch this case. | |
10757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e | 10758 | /* end confdefs.h. */ |
47aaa820 DWT |
10759 | #ifdef __STDC__ |
10760 | # include <limits.h> | |
10761 | #else | |
10762 | # include <assert.h> | |
9c60689e | 10763 | #endif |
47aaa820 | 10764 | Syntax error |
9c60689e | 10765 | _ACEOF |
47aaa820 | 10766 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
9c60689e | 10767 | |
47aaa820 DWT |
10768 | else |
10769 | # Broken: fails on valid input. | |
10770 | continue | |
9c60689e | 10771 | fi |
47aaa820 | 10772 | rm -f conftest.err conftest.$ac_ext |
9c60689e | 10773 | |
47aaa820 DWT |
10774 | # OK, works on sane cases. Now check whether nonexistent headers |
10775 | # can be detected and how. | |
10776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10777 | /* end confdefs.h. */ | |
10778 | #include <ac_nonexistent.h> | |
9c60689e | 10779 | _ACEOF |
47aaa820 DWT |
10780 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
10781 | # Broken: success on invalid input. | |
10782 | continue | |
10783 | else | |
10784 | # Passes both tests. | |
10785 | ac_preproc_ok=: | |
10786 | break | |
9c60689e | 10787 | fi |
47aaa820 | 10788 | rm -f conftest.err conftest.$ac_ext |
9c60689e DWT |
10789 | |
10790 | done | |
47aaa820 DWT |
10791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
10792 | rm -f conftest.err conftest.$ac_ext | |
10793 | if $ac_preproc_ok; then : | |
9c60689e | 10794 | |
9c60689e | 10795 | else |
47aaa820 DWT |
10796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10798 | _lt_caught_CXX_error=yes; } | |
9c60689e | 10799 | fi |
9c60689e | 10800 | |
47aaa820 DWT |
10801 | ac_ext=c |
10802 | ac_cpp='$CPP $CPPFLAGS' | |
10803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10806 | |
47aaa820 DWT |
10807 | else |
10808 | _lt_caught_CXX_error=yes | |
10809 | fi | |
9c60689e | 10810 | |
9c60689e | 10811 | |
9c60689e | 10812 | |
9c60689e DWT |
10813 | |
10814 | ac_ext=cpp | |
10815 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10816 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10817 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10818 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 10819 | |
47aaa820 DWT |
10820 | archive_cmds_need_lc_CXX=no |
10821 | allow_undefined_flag_CXX= | |
10822 | always_export_symbols_CXX=no | |
10823 | archive_expsym_cmds_CXX= | |
10824 | compiler_needs_object_CXX=no | |
10825 | export_dynamic_flag_spec_CXX= | |
10826 | hardcode_direct_CXX=no | |
10827 | hardcode_direct_absolute_CXX=no | |
10828 | hardcode_libdir_flag_spec_CXX= | |
10829 | hardcode_libdir_flag_spec_ld_CXX= | |
10830 | hardcode_libdir_separator_CXX= | |
10831 | hardcode_minus_L_CXX=no | |
10832 | hardcode_shlibpath_var_CXX=unsupported | |
10833 | hardcode_automatic_CXX=no | |
10834 | inherit_rpath_CXX=no | |
10835 | module_cmds_CXX= | |
10836 | module_expsym_cmds_CXX= | |
10837 | link_all_deplibs_CXX=unknown | |
10838 | old_archive_cmds_CXX=$old_archive_cmds | |
10839 | no_undefined_flag_CXX= | |
10840 | whole_archive_flag_spec_CXX= | |
10841 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 10842 | |
47aaa820 DWT |
10843 | # Source file extension for C++ test sources. |
10844 | ac_ext=cpp | |
9c60689e | 10845 | |
47aaa820 DWT |
10846 | # Object file extension for compiled C++ test sources. |
10847 | objext=o | |
10848 | objext_CXX=$objext | |
9c60689e | 10849 | |
47aaa820 DWT |
10850 | # No sense in running all these tests if we already determined that |
10851 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
10852 | # are currently assumed to apply to all compilers on this platform, | |
10853 | # and will be corrupted by setting them based on a non-working compiler. | |
10854 | if test "$_lt_caught_CXX_error" != yes; then | |
10855 | # Code to be used in simple compile tests | |
10856 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 10857 | |
47aaa820 DWT |
10858 | # Code to be used in simple link tests |
10859 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 10860 | |
47aaa820 | 10861 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 10862 | |
9c60689e | 10863 | |
9c60689e | 10864 | |
9c60689e | 10865 | |
9c60689e | 10866 | |
9c60689e | 10867 | |
47aaa820 DWT |
10868 | # If no C compiler was specified, use CC. |
10869 | LTCC=${LTCC-"$CC"} | |
9c60689e | 10870 | |
47aaa820 DWT |
10871 | # If no C compiler flags were specified, use CFLAGS. |
10872 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 10873 | |
47aaa820 DWT |
10874 | # Allow CC to be a program name with arguments. |
10875 | compiler=$CC | |
9c60689e | 10876 | |
9c60689e | 10877 | |
47aaa820 DWT |
10878 | # save warnings/boilerplate of simple test code |
10879 | ac_outfile=conftest.$ac_objext | |
10880 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10881 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10882 | _lt_compiler_boilerplate=`cat conftest.err` | |
10883 | $RM conftest* | |
9c60689e | 10884 | |
47aaa820 DWT |
10885 | ac_outfile=conftest.$ac_objext |
10886 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10887 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10888 | _lt_linker_boilerplate=`cat conftest.err` | |
10889 | $RM -r conftest* | |
9c60689e | 10890 | |
9c60689e | 10891 | |
47aaa820 DWT |
10892 | # Allow CC to be a program name with arguments. |
10893 | lt_save_CC=$CC | |
10894 | lt_save_LD=$LD | |
10895 | lt_save_GCC=$GCC | |
10896 | GCC=$GXX | |
10897 | lt_save_with_gnu_ld=$with_gnu_ld | |
10898 | lt_save_path_LD=$lt_cv_path_LD | |
10899 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10900 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 10901 | else |
47aaa820 | 10902 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 10903 | fi |
47aaa820 DWT |
10904 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10905 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 10906 | else |
47aaa820 | 10907 | $as_unset lt_cv_path_LD |
9c60689e | 10908 | fi |
47aaa820 DWT |
10909 | test -z "${LDCXX+set}" || LD=$LDCXX |
10910 | CC=${CXX-"c++"} | |
10911 | compiler=$CC | |
10912 | compiler_CXX=$CC | |
10913 | for cc_temp in $compiler""; do | |
10914 | case $cc_temp in | |
10915 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10916 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10917 | \-*) ;; | |
10918 | *) break;; | |
10919 | esac | |
10920 | done | |
10921 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9c60689e DWT |
10922 | |
10923 | ||
47aaa820 DWT |
10924 | if test -n "$compiler"; then |
10925 | # We don't want -fno-exception when compiling C++ code, so set the | |
10926 | # no_builtin_flag separately | |
10927 | if test "$GXX" = yes; then | |
10928 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10929 | else | |
10930 | lt_prog_compiler_no_builtin_flag_CXX= | |
10931 | fi | |
9c60689e | 10932 | |
47aaa820 DWT |
10933 | if test "$GXX" = yes; then |
10934 | # Set up default GNU C++ configuration | |
10935 | ||
10936 | ||
10937 | ||
10938 | # Check whether --with-gnu-ld was given. | |
10939 | if test "${with_gnu_ld+set}" = set; then : | |
10940 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 10941 | else |
47aaa820 | 10942 | with_gnu_ld=no |
9c60689e DWT |
10943 | fi |
10944 | ||
47aaa820 DWT |
10945 | ac_prog=ld |
10946 | if test "$GCC" = yes; then | |
10947 | # Check if gcc -print-prog-name=ld gives a path. | |
10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
10949 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
10950 | case $host in | |
10951 | *-*-mingw*) | |
10952 | # gcc leaves a trailing carriage return which upsets mingw | |
10953 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10954 | *) | |
10955 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10956 | esac | |
10957 | case $ac_prog in | |
10958 | # Accept absolute paths. | |
10959 | [\\/]* | ?:[\\/]*) | |
10960 | re_direlt='/[^/][^/]*/\.\./' | |
10961 | # Canonicalize the pathname of ld | |
10962 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
10963 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
10964 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
10965 | done | |
10966 | test -z "$LD" && LD="$ac_prog" | |
10967 | ;; | |
10968 | "") | |
10969 | # If it fails, then pretend we aren't using GCC. | |
10970 | ac_prog=ld | |
10971 | ;; | |
10972 | *) | |
10973 | # If it is relative, then search for the first ld in PATH. | |
10974 | with_gnu_ld=unknown | |
10975 | ;; | |
10976 | esac | |
10977 | elif test "$with_gnu_ld" = yes; then | |
10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
10979 | $as_echo_n "checking for GNU ld... " >&6; } | |
10980 | else | |
10981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
10982 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 10983 | fi |
47aaa820 | 10984 | if test "${lt_cv_path_LD+set}" = set; then : |
9c60689e DWT |
10985 | $as_echo_n "(cached) " >&6 |
10986 | else | |
47aaa820 DWT |
10987 | if test -z "$LD"; then |
10988 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10989 | for ac_dir in $PATH; do | |
10990 | IFS="$lt_save_ifs" | |
10991 | test -z "$ac_dir" && ac_dir=. | |
10992 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10993 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
10994 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10995 | # but apparently some variants of GNU ld only accept -v. | |
10996 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10997 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10998 | *GNU* | *'with BFD'*) | |
10999 | test "$with_gnu_ld" != no && break | |
11000 | ;; | |
11001 | *) | |
11002 | test "$with_gnu_ld" != yes && break | |
11003 | ;; | |
11004 | esac | |
11005 | fi | |
9c60689e | 11006 | done |
47aaa820 DWT |
11007 | IFS="$lt_save_ifs" |
11008 | else | |
11009 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
11010 | fi |
11011 | fi | |
47aaa820 DWT |
11012 | |
11013 | LD="$lt_cv_path_LD" | |
11014 | if test -n "$LD"; then | |
11015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11016 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
11017 | else |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11019 | $as_echo "no" >&6; } | |
11020 | fi | |
47aaa820 DWT |
11021 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
11022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11023 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11024 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
11025 | $as_echo_n "(cached) " >&6 | |
11026 | else | |
11027 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11028 | case `$LD -v 2>&1 </dev/null` in | |
11029 | *GNU* | *'with BFD'*) | |
11030 | lt_cv_prog_gnu_ld=yes | |
11031 | ;; | |
11032 | *) | |
11033 | lt_cv_prog_gnu_ld=no | |
11034 | ;; | |
11035 | esac | |
11036 | fi | |
11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
11038 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
11039 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
11040 | |
11041 | ||
9c60689e | 11042 | |
9c60689e | 11043 | |
9c60689e | 11044 | |
9c60689e | 11045 | |
9c60689e | 11046 | |
47aaa820 DWT |
11047 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11048 | # archiving commands below assume that GNU ld is being used. | |
11049 | if test "$with_gnu_ld" = yes; then | |
11050 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11051 | 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 | 11052 | |
47aaa820 DWT |
11053 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11054 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11055 | |
47aaa820 DWT |
11056 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11057 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11058 | # investigate it a little bit more. (MM) | |
11059 | wlarc='${wl}' | |
9c60689e | 11060 | |
47aaa820 DWT |
11061 | # ancient GNU ld didn't support --whole-archive et. al. |
11062 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11063 | $GREP 'no-whole-archive' > /dev/null; then | |
11064 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11065 | else | |
11066 | whole_archive_flag_spec_CXX= | |
11067 | fi | |
11068 | else | |
11069 | with_gnu_ld=no | |
11070 | wlarc= | |
11071 | ||
11072 | # A generic and very simple default shared library creation | |
11073 | # command for GNU C++ for the case where it uses the native | |
11074 | # linker, instead of GNU ld. If possible, this setting should | |
11075 | # overridden to take advantage of the native linker features on | |
11076 | # the platform it is being used on. | |
11077 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11078 | fi | |
11079 | ||
11080 | # Commands to make compiler produce verbose output that lists | |
11081 | # what "hidden" libraries, object files and flags are used when | |
11082 | # linking a shared library. | |
11083 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11084 | ||
11085 | else | |
11086 | GXX=no | |
11087 | with_gnu_ld=no | |
11088 | wlarc= | |
11089 | fi | |
11090 | ||
11091 | # PORTME: fill in a description of your system's C++ link characteristics | |
11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11093 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11094 | ld_shlibs_CXX=yes | |
11095 | case $host_os in | |
11096 | aix3*) | |
11097 | # FIXME: insert proper C++ library support | |
11098 | ld_shlibs_CXX=no | |
11099 | ;; | |
11100 | aix[4-9]*) | |
11101 | if test "$host_cpu" = ia64; then | |
11102 | # On IA64, the linker does run time linking by default, so we don't | |
11103 | # have to do anything special. | |
11104 | aix_use_runtimelinking=no | |
11105 | exp_sym_flag='-Bexport' | |
11106 | no_entry_flag="" | |
11107 | else | |
11108 | aix_use_runtimelinking=no | |
11109 | ||
11110 | # Test if we are trying to use run time linking or normal | |
11111 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11112 | # need to do runtime linking. | |
11113 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11114 | for ld_flag in $LDFLAGS; do | |
11115 | case $ld_flag in | |
11116 | *-brtl*) | |
11117 | aix_use_runtimelinking=yes | |
11118 | break | |
11119 | ;; | |
11120 | esac | |
11121 | done | |
11122 | ;; | |
11123 | esac | |
11124 | ||
11125 | exp_sym_flag='-bexport' | |
11126 | no_entry_flag='-bnoentry' | |
11127 | fi | |
11128 | ||
11129 | # When large executables or shared objects are built, AIX ld can | |
11130 | # have problems creating the table of contents. If linking a library | |
11131 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11132 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11133 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11134 | ||
11135 | archive_cmds_CXX='' | |
11136 | hardcode_direct_CXX=yes | |
11137 | hardcode_direct_absolute_CXX=yes | |
11138 | hardcode_libdir_separator_CXX=':' | |
11139 | link_all_deplibs_CXX=yes | |
11140 | file_list_spec_CXX='${wl}-f,' | |
11141 | ||
11142 | if test "$GXX" = yes; then | |
11143 | case $host_os in aix4.[012]|aix4.[012].*) | |
11144 | # We only want to do this on AIX 4.2 and lower, the check | |
11145 | # below for broken collect2 doesn't work under 4.3+ | |
11146 | collect2name=`${CC} -print-prog-name=collect2` | |
11147 | if test -f "$collect2name" && | |
11148 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11149 | then | |
11150 | # We have reworked collect2 | |
11151 | : | |
11152 | else | |
11153 | # We have old collect2 | |
11154 | hardcode_direct_CXX=unsupported | |
11155 | # It fails to find uninstalled libraries when the uninstalled | |
11156 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11157 | # to unsupported forces relinking | |
11158 | hardcode_minus_L_CXX=yes | |
11159 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11160 | hardcode_libdir_separator_CXX= | |
11161 | fi | |
11162 | esac | |
11163 | shared_flag='-shared' | |
11164 | if test "$aix_use_runtimelinking" = yes; then | |
11165 | shared_flag="$shared_flag "'${wl}-G' | |
11166 | fi | |
11167 | else | |
11168 | # not using gcc | |
11169 | if test "$host_cpu" = ia64; then | |
11170 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11171 | # chokes on -Wl,-G. The following line is correct: | |
11172 | shared_flag='-G' | |
11173 | else | |
11174 | if test "$aix_use_runtimelinking" = yes; then | |
11175 | shared_flag='${wl}-G' | |
11176 | else | |
11177 | shared_flag='${wl}-bM:SRE' | |
11178 | fi | |
11179 | fi | |
11180 | fi | |
11181 | ||
11182 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11183 | # It seems that -bexpall does not export symbols beginning with | |
11184 | # underscore (_), so it is better to generate a list of symbols to | |
11185 | # export. | |
11186 | always_export_symbols_CXX=yes | |
11187 | if test "$aix_use_runtimelinking" = yes; then | |
11188 | # Warning - without using the other runtime loading flags (-brtl), | |
11189 | # -berok will link without error, but may produce a broken library. | |
11190 | allow_undefined_flag_CXX='-berok' | |
11191 | # Determine the default libpath from the value encoded in an empty | |
11192 | # executable. | |
11193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11194 | /* end confdefs.h. */ |
11195 | ||
11196 | int | |
11197 | main () | |
11198 | { | |
11199 | ||
11200 | ; | |
11201 | return 0; | |
11202 | } | |
11203 | _ACEOF | |
47aaa820 | 11204 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11205 | |
47aaa820 DWT |
11206 | lt_aix_libpath_sed=' |
11207 | /Import File Strings/,/^$/ { | |
11208 | /^0/ { | |
11209 | s/^0 *\(.*\)$/\1/ | |
11210 | p | |
11211 | } | |
11212 | }' | |
11213 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11214 | # Check for a 64-bit object if we didn't find anything. | |
11215 | if test -z "$aix_libpath"; then | |
11216 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11217 | fi | |
11218 | fi | |
11219 | rm -f core conftest.err conftest.$ac_objext \ | |
11220 | conftest$ac_exeext conftest.$ac_ext | |
11221 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11222 | ||
11223 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11224 | ||
11225 | 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" | |
11226 | else | |
11227 | if test "$host_cpu" = ia64; then | |
11228 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11229 | allow_undefined_flag_CXX="-z nodefs" | |
11230 | 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" | |
11231 | else | |
11232 | # Determine the default libpath from the value encoded in an | |
11233 | # empty executable. | |
11234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11235 | /* end confdefs.h. */ |
11236 | ||
11237 | int | |
11238 | main () | |
11239 | { | |
11240 | ||
11241 | ; | |
11242 | return 0; | |
11243 | } | |
11244 | _ACEOF | |
47aaa820 | 11245 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11246 | |
47aaa820 DWT |
11247 | lt_aix_libpath_sed=' |
11248 | /Import File Strings/,/^$/ { | |
11249 | /^0/ { | |
11250 | s/^0 *\(.*\)$/\1/ | |
11251 | p | |
11252 | } | |
11253 | }' | |
11254 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11255 | # Check for a 64-bit object if we didn't find anything. | |
11256 | if test -z "$aix_libpath"; then | |
11257 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9c60689e | 11258 | fi |
9c60689e | 11259 | fi |
47aaa820 DWT |
11260 | rm -f core conftest.err conftest.$ac_objext \ |
11261 | conftest$ac_exeext conftest.$ac_ext | |
11262 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9c60689e | 11263 | |
47aaa820 DWT |
11264 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11265 | # Warning - without using the other run time loading flags, | |
11266 | # -berok will link without error, but may produce a broken library. | |
11267 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11268 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11269 | # Exported symbols can be pulled into shared objects from archives | |
11270 | whole_archive_flag_spec_CXX='$convenience' | |
11271 | archive_cmds_need_lc_CXX=yes | |
11272 | # This is similar to how AIX traditionally builds its shared | |
11273 | # libraries. | |
11274 | 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' | |
11275 | fi | |
11276 | fi | |
11277 | ;; | |
9c60689e | 11278 | |
47aaa820 DWT |
11279 | beos*) |
11280 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11281 | allow_undefined_flag_CXX=unsupported | |
11282 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11283 | # support --undefined. This deserves some investigation. FIXME | |
11284 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11285 | else | |
11286 | ld_shlibs_CXX=no | |
11287 | fi | |
11288 | ;; | |
9c60689e | 11289 | |
47aaa820 DWT |
11290 | chorus*) |
11291 | case $cc_basename in | |
11292 | *) | |
11293 | # FIXME: insert proper C++ library support | |
11294 | ld_shlibs_CXX=no | |
11295 | ;; | |
11296 | esac | |
11297 | ;; | |
9c60689e | 11298 | |
47aaa820 DWT |
11299 | cygwin* | mingw* | pw32* | cegcc*) |
11300 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11301 | # as there is no search path for DLLs. | |
11302 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11303 | allow_undefined_flag_CXX=unsupported | |
11304 | always_export_symbols_CXX=no | |
11305 | enable_shared_with_static_runtimes_CXX=yes | |
9c60689e | 11306 | |
47aaa820 DWT |
11307 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
11308 | 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' | |
11309 | # If the export-symbols file already is a .def file (1st line | |
11310 | # is EXPORTS), use it as is; otherwise, prepend... | |
11311 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11312 | cp $export_symbols $output_objdir/$soname.def; | |
11313 | else | |
11314 | echo EXPORTS > $output_objdir/$soname.def; | |
11315 | cat $export_symbols >> $output_objdir/$soname.def; | |
11316 | fi~ | |
11317 | $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' | |
11318 | else | |
11319 | ld_shlibs_CXX=no | |
11320 | fi | |
11321 | ;; | |
11322 | darwin* | rhapsody*) | |
9c60689e | 11323 | |
9c60689e | 11324 | |
47aaa820 DWT |
11325 | archive_cmds_need_lc_CXX=no |
11326 | hardcode_direct_CXX=no | |
11327 | hardcode_automatic_CXX=yes | |
11328 | hardcode_shlibpath_var_CXX=unsupported | |
11329 | whole_archive_flag_spec_CXX='' | |
11330 | link_all_deplibs_CXX=yes | |
11331 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11332 | case $cc_basename in | |
11333 | ifort*) _lt_dar_can_shared=yes ;; | |
11334 | *) _lt_dar_can_shared=$GCC ;; | |
11335 | esac | |
11336 | if test "$_lt_dar_can_shared" = "yes"; then | |
11337 | output_verbose_link_cmd=echo | |
11338 | 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}" | |
11339 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11340 | 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}" | |
11341 | 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}" | |
11342 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11343 | 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}" | |
11344 | 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}" | |
11345 | fi | |
9c60689e | 11346 | |
47aaa820 DWT |
11347 | else |
11348 | ld_shlibs_CXX=no | |
11349 | fi | |
9c60689e | 11350 | |
47aaa820 | 11351 | ;; |
9c60689e | 11352 | |
47aaa820 DWT |
11353 | dgux*) |
11354 | case $cc_basename in | |
11355 | ec++*) | |
11356 | # FIXME: insert proper C++ library support | |
11357 | ld_shlibs_CXX=no | |
11358 | ;; | |
11359 | ghcx*) | |
11360 | # Green Hills C++ Compiler | |
11361 | # FIXME: insert proper C++ library support | |
11362 | ld_shlibs_CXX=no | |
11363 | ;; | |
11364 | *) | |
11365 | # FIXME: insert proper C++ library support | |
11366 | ld_shlibs_CXX=no | |
11367 | ;; | |
11368 | esac | |
11369 | ;; | |
9c60689e | 11370 | |
47aaa820 DWT |
11371 | freebsd[12]*) |
11372 | # C++ shared libraries reported to be fairly broken before | |
11373 | # switch to ELF | |
11374 | ld_shlibs_CXX=no | |
11375 | ;; | |
9c60689e | 11376 | |
47aaa820 DWT |
11377 | freebsd-elf*) |
11378 | archive_cmds_need_lc_CXX=no | |
11379 | ;; | |
9c60689e | 11380 | |
47aaa820 DWT |
11381 | freebsd* | dragonfly*) |
11382 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11383 | # conventions | |
11384 | ld_shlibs_CXX=yes | |
11385 | ;; | |
9c60689e | 11386 | |
47aaa820 DWT |
11387 | gnu*) |
11388 | ;; | |
9c60689e | 11389 | |
47aaa820 DWT |
11390 | hpux9*) |
11391 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11392 | hardcode_libdir_separator_CXX=: | |
11393 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11394 | hardcode_direct_CXX=yes | |
11395 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11396 | # but as the default | |
11397 | # location of the library. | |
9c60689e | 11398 | |
47aaa820 DWT |
11399 | case $cc_basename in |
11400 | CC*) | |
11401 | # FIXME: insert proper C++ library support | |
11402 | ld_shlibs_CXX=no | |
11403 | ;; | |
11404 | aCC*) | |
11405 | 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' | |
11406 | # Commands to make compiler produce verbose output that lists | |
11407 | # what "hidden" libraries, object files and flags are used when | |
11408 | # linking a shared library. | |
11409 | # | |
11410 | # There doesn't appear to be a way to prevent this compiler from | |
11411 | # explicitly linking system object files so we need to strip them | |
11412 | # from the output so that they don't get included in the library | |
11413 | # dependencies. | |
11414 | 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' | |
11415 | ;; | |
11416 | *) | |
11417 | if test "$GXX" = yes; then | |
11418 | 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' | |
11419 | else | |
11420 | # FIXME: insert proper C++ library support | |
11421 | ld_shlibs_CXX=no | |
11422 | fi | |
11423 | ;; | |
11424 | esac | |
11425 | ;; | |
9c60689e | 11426 | |
47aaa820 DWT |
11427 | hpux10*|hpux11*) |
11428 | if test $with_gnu_ld = no; then | |
11429 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11430 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11431 | |
47aaa820 DWT |
11432 | case $host_cpu in |
11433 | hppa*64*|ia64*) | |
11434 | ;; | |
11435 | *) | |
11436 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11437 | ;; | |
11438 | esac | |
11439 | fi | |
11440 | case $host_cpu in | |
11441 | hppa*64*|ia64*) | |
11442 | hardcode_direct_CXX=no | |
11443 | hardcode_shlibpath_var_CXX=no | |
11444 | ;; | |
11445 | *) | |
11446 | hardcode_direct_CXX=yes | |
11447 | hardcode_direct_absolute_CXX=yes | |
11448 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11449 | # but as the default | |
11450 | # location of the library. | |
11451 | ;; | |
11452 | esac | |
9c60689e | 11453 | |
47aaa820 DWT |
11454 | case $cc_basename in |
11455 | CC*) | |
11456 | # FIXME: insert proper C++ library support | |
11457 | ld_shlibs_CXX=no | |
11458 | ;; | |
11459 | aCC*) | |
11460 | case $host_cpu in | |
11461 | hppa*64*) | |
11462 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11463 | ;; | |
11464 | ia64*) | |
11465 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11466 | ;; | |
11467 | *) | |
11468 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11469 | ;; | |
11470 | esac | |
11471 | # Commands to make compiler produce verbose output that lists | |
11472 | # what "hidden" libraries, object files and flags are used when | |
11473 | # linking a shared library. | |
11474 | # | |
11475 | # There doesn't appear to be a way to prevent this compiler from | |
11476 | # explicitly linking system object files so we need to strip them | |
11477 | # from the output so that they don't get included in the library | |
11478 | # dependencies. | |
11479 | 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' | |
11480 | ;; | |
11481 | *) | |
11482 | if test "$GXX" = yes; then | |
11483 | if test $with_gnu_ld = no; then | |
11484 | case $host_cpu in | |
11485 | hppa*64*) | |
11486 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11487 | ;; | |
11488 | ia64*) | |
11489 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11490 | ;; | |
11491 | *) | |
11492 | 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' | |
11493 | ;; | |
11494 | esac | |
11495 | fi | |
11496 | else | |
11497 | # FIXME: insert proper C++ library support | |
11498 | ld_shlibs_CXX=no | |
11499 | fi | |
11500 | ;; | |
11501 | esac | |
11502 | ;; | |
9c60689e | 11503 | |
47aaa820 DWT |
11504 | interix[3-9]*) |
11505 | hardcode_direct_CXX=no | |
11506 | hardcode_shlibpath_var_CXX=no | |
11507 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11508 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11509 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11510 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11511 | # default) and relocated if they conflict, which is a slow very memory | |
11512 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11513 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11514 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11515 | 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' | |
11516 | 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' | |
11517 | ;; | |
11518 | irix5* | irix6*) | |
11519 | case $cc_basename in | |
11520 | CC*) | |
11521 | # SGI C++ | |
11522 | 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 | 11523 | |
47aaa820 DWT |
11524 | # Archives containing C++ object files must be created using |
11525 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11526 | # necessary to make sure instantiated templates are included | |
11527 | # in the archive. | |
11528 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11529 | ;; | |
11530 | *) | |
11531 | if test "$GXX" = yes; then | |
11532 | if test "$with_gnu_ld" = no; then | |
11533 | 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' | |
11534 | else | |
11535 | 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' | |
11536 | fi | |
11537 | fi | |
11538 | link_all_deplibs_CXX=yes | |
11539 | ;; | |
11540 | esac | |
11541 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11542 | hardcode_libdir_separator_CXX=: | |
11543 | inherit_rpath_CXX=yes | |
11544 | ;; | |
9c60689e | 11545 | |
47aaa820 DWT |
11546 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
11547 | case $cc_basename in | |
11548 | KCC*) | |
11549 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 11550 | |
47aaa820 DWT |
11551 | # KCC will only create a shared library if the output file |
11552 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11553 | # to its proper name (with version) after linking. | |
11554 | 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' | |
11555 | 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' | |
11556 | # Commands to make compiler produce verbose output that lists | |
11557 | # what "hidden" libraries, object files and flags are used when | |
11558 | # linking a shared library. | |
11559 | # | |
11560 | # There doesn't appear to be a way to prevent this compiler from | |
11561 | # explicitly linking system object files so we need to strip them | |
11562 | # from the output so that they don't get included in the library | |
11563 | # dependencies. | |
11564 | 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 | 11565 | |
47aaa820 DWT |
11566 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11567 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11568 | |
47aaa820 DWT |
11569 | # Archives containing C++ object files must be created using |
11570 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11571 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11572 | ;; | |
11573 | icpc* | ecpc* ) | |
11574 | # Intel C++ | |
11575 | with_gnu_ld=yes | |
11576 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11577 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11578 | # earlier do not add the objects themselves. | |
11579 | case `$CC -V 2>&1` in | |
11580 | *"Version 7."*) | |
11581 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11582 | 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' | |
11583 | ;; | |
11584 | *) # Version 8.0 or newer | |
11585 | tmp_idyn= | |
11586 | case $host_cpu in | |
11587 | ia64*) tmp_idyn=' -i_dynamic';; | |
11588 | esac | |
11589 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11590 | 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' | |
11591 | ;; | |
11592 | esac | |
11593 | archive_cmds_need_lc_CXX=no | |
11594 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11595 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11596 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11597 | ;; | |
11598 | pgCC* | pgcpp*) | |
11599 | # Portland Group C++ compiler | |
11600 | case `$CC -V` in | |
11601 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
11602 | prelink_cmds_CXX='tpldir=Template.dir~ | |
11603 | rm -rf $tpldir~ | |
11604 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
11605 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
11606 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
11607 | rm -rf $tpldir~ | |
11608 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
11609 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
11610 | $RANLIB $oldlib' | |
11611 | archive_cmds_CXX='tpldir=Template.dir~ | |
11612 | rm -rf $tpldir~ | |
11613 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11614 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11615 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
11616 | rm -rf $tpldir~ | |
11617 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11618 | $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' | |
11619 | ;; | |
11620 | *) # Version 6 will use weak symbols | |
11621 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11622 | 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' | |
11623 | ;; | |
11624 | esac | |
9c60689e | 11625 | |
47aaa820 DWT |
11626 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11627 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11628 | 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' | |
11629 | ;; | |
11630 | cxx*) | |
11631 | # Compaq C++ | |
11632 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11633 | 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 | 11634 | |
47aaa820 DWT |
11635 | runpath_var=LD_RUN_PATH |
11636 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11637 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11638 | |
47aaa820 DWT |
11639 | # Commands to make compiler produce verbose output that lists |
11640 | # what "hidden" libraries, object files and flags are used when | |
11641 | # linking a shared library. | |
11642 | # | |
11643 | # There doesn't appear to be a way to prevent this compiler from | |
11644 | # explicitly linking system object files so we need to strip them | |
11645 | # from the output so that they don't get included in the library | |
11646 | # dependencies. | |
11647 | 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' | |
11648 | ;; | |
11649 | xl*) | |
11650 | # IBM XL 8.0 on PPC, with GNU ld | |
11651 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11652 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11653 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11654 | if test "x$supports_anon_versioning" = xyes; then | |
11655 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
11656 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11657 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11658 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
11659 | fi | |
11660 | ;; | |
11661 | *) | |
11662 | case `$CC -V 2>&1 | sed 5q` in | |
11663 | *Sun\ C*) | |
11664 | # Sun C++ 5.9 | |
11665 | no_undefined_flag_CXX=' -zdefs' | |
11666 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11667 | 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' | |
11668 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11669 | 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' | |
11670 | compiler_needs_object_CXX=yes | |
9c60689e | 11671 | |
47aaa820 DWT |
11672 | # Not sure whether something based on |
11673 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
11674 | # would be better. | |
11675 | output_verbose_link_cmd='echo' | |
9c60689e | 11676 | |
47aaa820 DWT |
11677 | # Archives containing C++ object files must be created using |
11678 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11679 | # necessary to make sure instantiated templates are included | |
11680 | # in the archive. | |
11681 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11682 | ;; | |
11683 | esac | |
11684 | ;; | |
11685 | esac | |
11686 | ;; | |
9c60689e | 11687 | |
47aaa820 DWT |
11688 | lynxos*) |
11689 | # FIXME: insert proper C++ library support | |
11690 | ld_shlibs_CXX=no | |
11691 | ;; | |
9c60689e | 11692 | |
47aaa820 DWT |
11693 | m88k*) |
11694 | # FIXME: insert proper C++ library support | |
11695 | ld_shlibs_CXX=no | |
11696 | ;; | |
9c60689e | 11697 | |
47aaa820 DWT |
11698 | mvs*) |
11699 | case $cc_basename in | |
11700 | cxx*) | |
11701 | # FIXME: insert proper C++ library support | |
11702 | ld_shlibs_CXX=no | |
11703 | ;; | |
11704 | *) | |
11705 | # FIXME: insert proper C++ library support | |
11706 | ld_shlibs_CXX=no | |
11707 | ;; | |
11708 | esac | |
11709 | ;; | |
9c60689e | 11710 | |
47aaa820 DWT |
11711 | netbsd*) |
11712 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11713 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11714 | wlarc= | |
11715 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11716 | hardcode_direct_CXX=yes | |
11717 | hardcode_shlibpath_var_CXX=no | |
11718 | fi | |
11719 | # Workaround some broken pre-1.5 toolchains | |
11720 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 11721 | ;; |
47aaa820 DWT |
11722 | |
11723 | *nto* | *qnx*) | |
11724 | ld_shlibs_CXX=yes | |
9c60689e | 11725 | ;; |
9c60689e | 11726 | |
47aaa820 DWT |
11727 | openbsd2*) |
11728 | # C++ shared libraries are fairly broken | |
11729 | ld_shlibs_CXX=no | |
11730 | ;; | |
9c60689e | 11731 | |
47aaa820 DWT |
11732 | openbsd*) |
11733 | if test -f /usr/libexec/ld.so; then | |
11734 | hardcode_direct_CXX=yes | |
11735 | hardcode_shlibpath_var_CXX=no | |
11736 | hardcode_direct_absolute_CXX=yes | |
11737 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11738 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11739 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11740 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11741 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11742 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11743 | fi | |
11744 | output_verbose_link_cmd=echo | |
11745 | else | |
11746 | ld_shlibs_CXX=no | |
11747 | fi | |
11748 | ;; | |
9c60689e | 11749 | |
47aaa820 DWT |
11750 | osf3* | osf4* | osf5*) |
11751 | case $cc_basename in | |
11752 | KCC*) | |
11753 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 11754 | |
47aaa820 DWT |
11755 | # KCC will only create a shared library if the output file |
11756 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11757 | # to its proper name (with version) after linking. | |
11758 | 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 | 11759 | |
47aaa820 DWT |
11760 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11761 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11762 | |
47aaa820 DWT |
11763 | # Archives containing C++ object files must be created using |
11764 | # the KAI C++ compiler. | |
11765 | case $host in | |
11766 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
11767 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
11768 | esac | |
11769 | ;; | |
11770 | RCC*) | |
11771 | # Rational C++ 2.4.1 | |
11772 | # FIXME: insert proper C++ library support | |
11773 | ld_shlibs_CXX=no | |
11774 | ;; | |
11775 | cxx*) | |
11776 | case $host in | |
11777 | osf3*) | |
11778 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11779 | 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' | |
11780 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11781 | ;; | |
11782 | *) | |
11783 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11784 | 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' | |
11785 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11786 | echo "-hidden">> $lib.exp~ | |
11787 | $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~ | |
11788 | $RM $lib.exp' | |
11789 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11790 | ;; | |
11791 | esac | |
9c60689e | 11792 | |
47aaa820 | 11793 | hardcode_libdir_separator_CXX=: |
9c60689e | 11794 | |
47aaa820 DWT |
11795 | # Commands to make compiler produce verbose output that lists |
11796 | # what "hidden" libraries, object files and flags are used when | |
11797 | # linking a shared library. | |
11798 | # | |
11799 | # There doesn't appear to be a way to prevent this compiler from | |
11800 | # explicitly linking system object files so we need to strip them | |
11801 | # from the output so that they don't get included in the library | |
11802 | # dependencies. | |
11803 | 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' | |
11804 | ;; | |
11805 | *) | |
11806 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11807 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11808 | case $host in | |
11809 | osf3*) | |
11810 | 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' | |
11811 | ;; | |
11812 | *) | |
11813 | 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' | |
11814 | ;; | |
11815 | esac | |
9c60689e | 11816 | |
47aaa820 DWT |
11817 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11818 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11819 | |
47aaa820 DWT |
11820 | # Commands to make compiler produce verbose output that lists |
11821 | # what "hidden" libraries, object files and flags are used when | |
11822 | # linking a shared library. | |
11823 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
9c60689e | 11824 | |
47aaa820 DWT |
11825 | else |
11826 | # FIXME: insert proper C++ library support | |
11827 | ld_shlibs_CXX=no | |
11828 | fi | |
11829 | ;; | |
11830 | esac | |
11831 | ;; | |
9c60689e | 11832 | |
47aaa820 | 11833 | psos*) |
9c60689e DWT |
11834 | # FIXME: insert proper C++ library support |
11835 | ld_shlibs_CXX=no | |
11836 | ;; | |
9c60689e | 11837 | |
47aaa820 DWT |
11838 | sunos4*) |
11839 | case $cc_basename in | |
11840 | CC*) | |
11841 | # Sun C++ 4.x | |
11842 | # FIXME: insert proper C++ library support | |
11843 | ld_shlibs_CXX=no | |
9c60689e | 11844 | ;; |
47aaa820 DWT |
11845 | lcc*) |
11846 | # Lucid | |
11847 | # FIXME: insert proper C++ library support | |
11848 | ld_shlibs_CXX=no | |
11849 | ;; | |
11850 | *) | |
11851 | # FIXME: insert proper C++ library support | |
11852 | ld_shlibs_CXX=no | |
11853 | ;; | |
11854 | esac | |
11855 | ;; | |
9c60689e | 11856 | |
47aaa820 DWT |
11857 | solaris*) |
11858 | case $cc_basename in | |
11859 | CC*) | |
11860 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11861 | archive_cmds_need_lc_CXX=yes | |
11862 | no_undefined_flag_CXX=' -zdefs' | |
11863 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11864 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11865 | $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 | 11866 | |
47aaa820 DWT |
11867 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11868 | hardcode_shlibpath_var_CXX=no | |
11869 | case $host_os in | |
11870 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11871 | *) | |
11872 | # The compiler driver will combine and reorder linker options, | |
11873 | # but understands `-z linker_flag'. | |
11874 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11875 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
11876 | ;; | |
11877 | esac | |
11878 | link_all_deplibs_CXX=yes | |
9c60689e | 11879 | |
47aaa820 | 11880 | output_verbose_link_cmd='echo' |
9c60689e | 11881 | |
47aaa820 DWT |
11882 | # Archives containing C++ object files must be created using |
11883 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11884 | # necessary to make sure instantiated templates are included | |
11885 | # in the archive. | |
11886 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11887 | ;; | |
11888 | gcx*) | |
11889 | # Green Hills C++ Compiler | |
11890 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 11891 | |
47aaa820 DWT |
11892 | # The C++ compiler must be used to create the archive. |
11893 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11894 | ;; | |
11895 | *) | |
11896 | # GNU C++ compiler with Solaris linker | |
11897 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11898 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11899 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
11900 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11901 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11902 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 11903 | |
47aaa820 DWT |
11904 | # Commands to make compiler produce verbose output that lists |
11905 | # what "hidden" libraries, object files and flags are used when | |
11906 | # linking a shared library. | |
11907 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11908 | else | |
11909 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11910 | # platform. | |
11911 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11912 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11913 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 11914 | |
47aaa820 DWT |
11915 | # Commands to make compiler produce verbose output that lists |
11916 | # what "hidden" libraries, object files and flags are used when | |
11917 | # linking a shared library. | |
11918 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11919 | fi | |
9c60689e | 11920 | |
47aaa820 DWT |
11921 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11922 | case $host_os in | |
11923 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11924 | *) | |
11925 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11926 | ;; | |
11927 | esac | |
11928 | fi | |
11929 | ;; | |
11930 | esac | |
11931 | ;; | |
9c60689e | 11932 | |
47aaa820 DWT |
11933 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11934 | no_undefined_flag_CXX='${wl}-z,text' | |
11935 | archive_cmds_need_lc_CXX=no | |
11936 | hardcode_shlibpath_var_CXX=no | |
11937 | runpath_var='LD_RUN_PATH' | |
9c60689e | 11938 | |
47aaa820 DWT |
11939 | case $cc_basename in |
11940 | CC*) | |
11941 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11942 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11943 | ;; | |
11944 | *) | |
11945 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11946 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11947 | ;; | |
11948 | esac | |
11949 | ;; | |
9c60689e | 11950 | |
47aaa820 DWT |
11951 | sysv5* | sco3.2v5* | sco5v6*) |
11952 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11953 | # link with -lc, and that would cause any symbols used from libc to | |
11954 | # always be unresolved, which means just about no library would | |
11955 | # ever link correctly. If we're not using GNU ld we use -z text | |
11956 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11957 | # as -z defs. | |
11958 | no_undefined_flag_CXX='${wl}-z,text' | |
11959 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11960 | archive_cmds_need_lc_CXX=no | |
11961 | hardcode_shlibpath_var_CXX=no | |
11962 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
11963 | hardcode_libdir_separator_CXX=':' | |
11964 | link_all_deplibs_CXX=yes | |
11965 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11966 | runpath_var='LD_RUN_PATH' | |
9c60689e | 11967 | |
47aaa820 DWT |
11968 | case $cc_basename in |
11969 | CC*) | |
11970 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11971 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11972 | ;; | |
11973 | *) | |
11974 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11975 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11976 | ;; | |
11977 | esac | |
11978 | ;; | |
9c60689e | 11979 | |
47aaa820 | 11980 | tandem*) |
9c60689e | 11981 | case $cc_basename in |
47aaa820 DWT |
11982 | NCC*) |
11983 | # NonStop-UX NCC 3.20 | |
11984 | # FIXME: insert proper C++ library support | |
11985 | ld_shlibs_CXX=no | |
11986 | ;; | |
9c60689e | 11987 | *) |
47aaa820 DWT |
11988 | # FIXME: insert proper C++ library support |
11989 | ld_shlibs_CXX=no | |
11990 | ;; | |
9c60689e DWT |
11991 | esac |
11992 | ;; | |
11993 | ||
47aaa820 DWT |
11994 | vxworks*) |
11995 | # FIXME: insert proper C++ library support | |
11996 | ld_shlibs_CXX=no | |
11997 | ;; | |
9c60689e | 11998 | |
47aaa820 DWT |
11999 | *) |
12000 | # FIXME: insert proper C++ library support | |
12001 | ld_shlibs_CXX=no | |
9c60689e | 12002 | ;; |
47aaa820 | 12003 | esac |
9c60689e | 12004 | |
47aaa820 DWT |
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
12006 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12007 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 12008 | |
47aaa820 DWT |
12009 | GCC_CXX="$GXX" |
12010 | LD_CXX="$LD" | |
9c60689e | 12011 | |
47aaa820 DWT |
12012 | ## CAVEAT EMPTOR: |
12013 | ## There is no encapsulation within the following macros, do not change | |
12014 | ## the running order or otherwise move them around unless you know exactly | |
12015 | ## what you are doing... | |
12016 | # Dependencies to place before and after the object being linked: | |
12017 | predep_objects_CXX= | |
12018 | postdep_objects_CXX= | |
12019 | predeps_CXX= | |
12020 | postdeps_CXX= | |
12021 | compiler_lib_search_path_CXX= | |
9c60689e | 12022 | |
47aaa820 DWT |
12023 | cat > conftest.$ac_ext <<_LT_EOF |
12024 | class Foo | |
12025 | { | |
12026 | public: | |
12027 | Foo (void) { a = 0; } | |
12028 | private: | |
12029 | int a; | |
12030 | }; | |
12031 | _LT_EOF | |
9c60689e | 12032 | |
47aaa820 DWT |
12033 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12034 | (eval $ac_compile) 2>&5 | |
12035 | ac_status=$? | |
12036 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12037 | test $ac_status = 0; }; then | |
12038 | # Parse the compiler output and extract the necessary | |
12039 | # objects, libraries and library flags. | |
9c60689e | 12040 | |
47aaa820 DWT |
12041 | # Sentinel used to keep track of whether or not we are before |
12042 | # the conftest object file. | |
12043 | pre_test_object_deps_done=no | |
9c60689e | 12044 | |
47aaa820 DWT |
12045 | for p in `eval "$output_verbose_link_cmd"`; do |
12046 | case $p in | |
9c60689e | 12047 | |
47aaa820 DWT |
12048 | -L* | -R* | -l*) |
12049 | # Some compilers place space between "-{L,R}" and the path. | |
12050 | # Remove the space. | |
12051 | if test $p = "-L" || | |
12052 | test $p = "-R"; then | |
12053 | prev=$p | |
12054 | continue | |
12055 | else | |
12056 | prev= | |
12057 | fi | |
9c60689e | 12058 | |
47aaa820 DWT |
12059 | if test "$pre_test_object_deps_done" = no; then |
12060 | case $p in | |
12061 | -L* | -R*) | |
12062 | # Internal compiler library paths should come after those | |
12063 | # provided the user. The postdeps already come after the | |
12064 | # user supplied libs so there is no need to process them. | |
12065 | if test -z "$compiler_lib_search_path_CXX"; then | |
12066 | compiler_lib_search_path_CXX="${prev}${p}" | |
12067 | else | |
12068 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12069 | fi | |
12070 | ;; | |
12071 | # The "-l" case would never come before the object being | |
12072 | # linked, so don't bother handling this case. | |
12073 | esac | |
12074 | else | |
12075 | if test -z "$postdeps_CXX"; then | |
12076 | postdeps_CXX="${prev}${p}" | |
12077 | else | |
12078 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12079 | fi | |
12080 | fi | |
12081 | ;; | |
9c60689e | 12082 | |
47aaa820 DWT |
12083 | *.$objext) |
12084 | # This assumes that the test object file only shows up | |
12085 | # once in the compiler output. | |
12086 | if test "$p" = "conftest.$objext"; then | |
12087 | pre_test_object_deps_done=yes | |
12088 | continue | |
12089 | fi | |
9c60689e | 12090 | |
47aaa820 DWT |
12091 | if test "$pre_test_object_deps_done" = no; then |
12092 | if test -z "$predep_objects_CXX"; then | |
12093 | predep_objects_CXX="$p" | |
12094 | else | |
12095 | predep_objects_CXX="$predep_objects_CXX $p" | |
12096 | fi | |
12097 | else | |
12098 | if test -z "$postdep_objects_CXX"; then | |
12099 | postdep_objects_CXX="$p" | |
12100 | else | |
12101 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12102 | fi | |
12103 | fi | |
12104 | ;; | |
9c60689e | 12105 | |
47aaa820 | 12106 | *) ;; # Ignore the rest. |
9c60689e | 12107 | |
47aaa820 DWT |
12108 | esac |
12109 | done | |
9c60689e | 12110 | |
47aaa820 DWT |
12111 | # Clean up. |
12112 | rm -f a.out a.exe | |
12113 | else | |
12114 | echo "libtool.m4: error: problem compiling CXX test program" | |
12115 | fi | |
9c60689e | 12116 | |
47aaa820 | 12117 | $RM -f confest.$objext |
9c60689e | 12118 | |
47aaa820 DWT |
12119 | # PORTME: override above test on systems where it is broken |
12120 | case $host_os in | |
12121 | interix[3-9]*) | |
12122 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12123 | # hack all around it, let's just trust "g++" to DTRT. | |
12124 | predep_objects_CXX= | |
12125 | postdep_objects_CXX= | |
12126 | postdeps_CXX= | |
12127 | ;; | |
9c60689e | 12128 | |
47aaa820 DWT |
12129 | linux*) |
12130 | case `$CC -V 2>&1 | sed 5q` in | |
12131 | *Sun\ C*) | |
12132 | # Sun C++ 5.9 | |
9c60689e | 12133 | |
47aaa820 DWT |
12134 | # The more standards-conforming stlport4 library is |
12135 | # incompatible with the Cstd library. Avoid specifying | |
12136 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12137 | # -library=stlport4 depends on it. | |
12138 | case " $CXX $CXXFLAGS " in | |
12139 | *" -library=stlport4 "*) | |
12140 | solaris_use_stlport4=yes | |
12141 | ;; | |
12142 | esac | |
9c60689e | 12143 | |
47aaa820 DWT |
12144 | if test "$solaris_use_stlport4" != yes; then |
12145 | postdeps_CXX='-library=Cstd -library=Crun' | |
12146 | fi | |
12147 | ;; | |
12148 | esac | |
12149 | ;; | |
9c60689e | 12150 | |
47aaa820 DWT |
12151 | solaris*) |
12152 | case $cc_basename in | |
12153 | CC*) | |
12154 | # The more standards-conforming stlport4 library is | |
12155 | # incompatible with the Cstd library. Avoid specifying | |
12156 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12157 | # -library=stlport4 depends on it. | |
12158 | case " $CXX $CXXFLAGS " in | |
12159 | *" -library=stlport4 "*) | |
12160 | solaris_use_stlport4=yes | |
12161 | ;; | |
12162 | esac | |
9c60689e | 12163 | |
47aaa820 DWT |
12164 | # Adding this requires a known-good setup of shared libraries for |
12165 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12166 | # archive will be linked into the output, leading to subtle bugs. | |
12167 | if test "$solaris_use_stlport4" != yes; then | |
12168 | postdeps_CXX='-library=Cstd -library=Crun' | |
12169 | fi | |
12170 | ;; | |
12171 | esac | |
12172 | ;; | |
12173 | esac | |
9c60689e | 12174 | |
9c60689e | 12175 | |
47aaa820 DWT |
12176 | case " $postdeps_CXX " in |
12177 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12178 | esac | |
12179 | compiler_lib_search_dirs_CXX= | |
12180 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12181 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12182 | fi | |
9c60689e | 12183 | |
9c60689e | 12184 | |
9c60689e | 12185 | |
9c60689e | 12186 | |
9c60689e | 12187 | |
9c60689e | 12188 | |
9c60689e | 12189 | |
9c60689e | 12190 | |
9c60689e | 12191 | |
9c60689e | 12192 | |
9c60689e | 12193 | |
9c60689e | 12194 | |
9c60689e | 12195 | |
9c60689e | 12196 | |
9c60689e | 12197 | |
9c60689e | 12198 | |
9c60689e | 12199 | |
9c60689e | 12200 | |
9c60689e | 12201 | |
9c60689e | 12202 | |
9c60689e | 12203 | |
9c60689e | 12204 | |
9c60689e | 12205 | |
9c60689e | 12206 | |
9c60689e | 12207 | |
9c60689e | 12208 | |
9c60689e | 12209 | |
9c60689e | 12210 | |
9c60689e | 12211 | |
9c60689e | 12212 | |
9c60689e | 12213 | |
47aaa820 DWT |
12214 | lt_prog_compiler_wl_CXX= |
12215 | lt_prog_compiler_pic_CXX= | |
12216 | lt_prog_compiler_static_CXX= | |
9c60689e DWT |
12217 | |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12219 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12220 | ||
12221 | # C++ specific cases for pic, static, wl, etc. | |
12222 | if test "$GXX" = yes; then | |
12223 | lt_prog_compiler_wl_CXX='-Wl,' | |
12224 | lt_prog_compiler_static_CXX='-static' | |
12225 | ||
12226 | case $host_os in | |
12227 | aix*) | |
12228 | # All AIX code is PIC. | |
12229 | if test "$host_cpu" = ia64; then | |
12230 | # AIX 5 now supports IA64 processor | |
12231 | lt_prog_compiler_static_CXX='-Bstatic' | |
12232 | fi | |
12233 | ;; | |
12234 | ||
12235 | amigaos*) | |
12236 | case $host_cpu in | |
12237 | powerpc) | |
12238 | # see comment about AmigaOS4 .so support | |
12239 | lt_prog_compiler_pic_CXX='-fPIC' | |
12240 | ;; | |
12241 | m68k) | |
12242 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12243 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12244 | # like `-m68040'. | |
12245 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12246 | ;; | |
12247 | esac | |
12248 | ;; | |
12249 | ||
12250 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12251 | # PIC is the default for these OSes. | |
12252 | ;; | |
12253 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12254 | # This hack is so that the source file can tell whether it is being | |
12255 | # built for inclusion in a dll (and should export symbols for example). | |
12256 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12257 | # (--disable-auto-import) libraries | |
12258 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12259 | ;; | |
12260 | darwin* | rhapsody*) | |
12261 | # PIC is the default on this platform | |
12262 | # Common symbols not allowed in MH_DYLIB files | |
12263 | lt_prog_compiler_pic_CXX='-fno-common' | |
12264 | ;; | |
12265 | *djgpp*) | |
12266 | # DJGPP does not support shared libraries at all | |
12267 | lt_prog_compiler_pic_CXX= | |
12268 | ;; | |
12269 | interix[3-9]*) | |
12270 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12271 | # Instead, we relocate shared libraries at runtime. | |
12272 | ;; | |
12273 | sysv4*MP*) | |
12274 | if test -d /usr/nec; then | |
12275 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12276 | fi | |
12277 | ;; | |
12278 | hpux*) | |
12279 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12280 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12281 | # sets the default TLS model and affects inlining. | |
12282 | case $host_cpu in | |
12283 | hppa*64*) | |
12284 | ;; | |
12285 | *) | |
12286 | lt_prog_compiler_pic_CXX='-fPIC' | |
12287 | ;; | |
12288 | esac | |
12289 | ;; | |
12290 | *qnx* | *nto*) | |
12291 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12292 | # it will coredump. | |
12293 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12294 | ;; | |
12295 | *) | |
12296 | lt_prog_compiler_pic_CXX='-fPIC' | |
12297 | ;; | |
12298 | esac | |
12299 | else | |
12300 | case $host_os in | |
12301 | aix[4-9]*) | |
12302 | # All AIX code is PIC. | |
12303 | if test "$host_cpu" = ia64; then | |
12304 | # AIX 5 now supports IA64 processor | |
12305 | lt_prog_compiler_static_CXX='-Bstatic' | |
12306 | else | |
12307 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12308 | fi | |
12309 | ;; | |
12310 | chorus*) | |
12311 | case $cc_basename in | |
12312 | cxch68*) | |
12313 | # Green Hills C++ Compiler | |
12314 | # _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" | |
12315 | ;; | |
12316 | esac | |
12317 | ;; | |
12318 | dgux*) | |
12319 | case $cc_basename in | |
12320 | ec++*) | |
12321 | lt_prog_compiler_pic_CXX='-KPIC' | |
12322 | ;; | |
12323 | ghcx*) | |
12324 | # Green Hills C++ Compiler | |
12325 | lt_prog_compiler_pic_CXX='-pic' | |
12326 | ;; | |
12327 | *) | |
12328 | ;; | |
12329 | esac | |
12330 | ;; | |
12331 | freebsd* | dragonfly*) | |
12332 | # FreeBSD uses GNU C++ | |
12333 | ;; | |
12334 | hpux9* | hpux10* | hpux11*) | |
12335 | case $cc_basename in | |
12336 | CC*) | |
12337 | lt_prog_compiler_wl_CXX='-Wl,' | |
12338 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12339 | if test "$host_cpu" != ia64; then | |
12340 | lt_prog_compiler_pic_CXX='+Z' | |
12341 | fi | |
12342 | ;; | |
12343 | aCC*) | |
12344 | lt_prog_compiler_wl_CXX='-Wl,' | |
12345 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12346 | case $host_cpu in | |
12347 | hppa*64*|ia64*) | |
12348 | # +Z the default | |
12349 | ;; | |
12350 | *) | |
12351 | lt_prog_compiler_pic_CXX='+Z' | |
12352 | ;; | |
12353 | esac | |
12354 | ;; | |
12355 | *) | |
12356 | ;; | |
12357 | esac | |
12358 | ;; | |
12359 | interix*) | |
12360 | # This is c89, which is MS Visual C++ (no shared libs) | |
12361 | # Anyone wants to do a port? | |
12362 | ;; | |
12363 | irix5* | irix6* | nonstopux*) | |
12364 | case $cc_basename in | |
12365 | CC*) | |
12366 | lt_prog_compiler_wl_CXX='-Wl,' | |
12367 | lt_prog_compiler_static_CXX='-non_shared' | |
12368 | # CC pic flag -KPIC is the default. | |
12369 | ;; | |
12370 | *) | |
12371 | ;; | |
12372 | esac | |
12373 | ;; | |
12374 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12375 | case $cc_basename in | |
12376 | KCC*) | |
12377 | # KAI C++ Compiler | |
12378 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12379 | lt_prog_compiler_pic_CXX='-fPIC' | |
12380 | ;; | |
12381 | ecpc* ) | |
12382 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12383 | lt_prog_compiler_wl_CXX='-Wl,' | |
12384 | lt_prog_compiler_pic_CXX='-KPIC' | |
12385 | lt_prog_compiler_static_CXX='-static' | |
12386 | ;; | |
12387 | icpc* ) | |
12388 | # Intel C++, used to be incompatible with GCC. | |
12389 | # ICC 10 doesn't accept -KPIC any more. | |
12390 | lt_prog_compiler_wl_CXX='-Wl,' | |
12391 | lt_prog_compiler_pic_CXX='-fPIC' | |
12392 | lt_prog_compiler_static_CXX='-static' | |
12393 | ;; | |
12394 | pgCC* | pgcpp*) | |
12395 | # Portland Group C++ compiler | |
12396 | lt_prog_compiler_wl_CXX='-Wl,' | |
12397 | lt_prog_compiler_pic_CXX='-fpic' | |
12398 | lt_prog_compiler_static_CXX='-Bstatic' | |
12399 | ;; | |
12400 | cxx*) | |
12401 | # Compaq C++ | |
12402 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12403 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12404 | lt_prog_compiler_pic_CXX= | |
12405 | lt_prog_compiler_static_CXX='-non_shared' | |
12406 | ;; | |
12407 | xlc* | xlC*) | |
12408 | # IBM XL 8.0 on PPC | |
12409 | lt_prog_compiler_wl_CXX='-Wl,' | |
12410 | lt_prog_compiler_pic_CXX='-qpic' | |
12411 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12412 | ;; | |
12413 | *) | |
12414 | case `$CC -V 2>&1 | sed 5q` in | |
12415 | *Sun\ C*) | |
12416 | # Sun C++ 5.9 | |
12417 | lt_prog_compiler_pic_CXX='-KPIC' | |
12418 | lt_prog_compiler_static_CXX='-Bstatic' | |
12419 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12420 | ;; | |
12421 | esac | |
12422 | ;; | |
12423 | esac | |
12424 | ;; | |
12425 | lynxos*) | |
12426 | ;; | |
12427 | m88k*) | |
12428 | ;; | |
12429 | mvs*) | |
12430 | case $cc_basename in | |
12431 | cxx*) | |
12432 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12433 | ;; | |
12434 | *) | |
12435 | ;; | |
12436 | esac | |
12437 | ;; | |
12438 | netbsd* | netbsdelf*-gnu) | |
12439 | ;; | |
12440 | *qnx* | *nto*) | |
12441 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12442 | # it will coredump. | |
12443 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12444 | ;; | |
12445 | osf3* | osf4* | osf5*) | |
12446 | case $cc_basename in | |
12447 | KCC*) | |
12448 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12449 | ;; | |
12450 | RCC*) | |
12451 | # Rational C++ 2.4.1 | |
12452 | lt_prog_compiler_pic_CXX='-pic' | |
12453 | ;; | |
12454 | cxx*) | |
12455 | # Digital/Compaq C++ | |
12456 | lt_prog_compiler_wl_CXX='-Wl,' | |
12457 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12458 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12459 | lt_prog_compiler_pic_CXX= | |
12460 | lt_prog_compiler_static_CXX='-non_shared' | |
12461 | ;; | |
12462 | *) | |
12463 | ;; | |
12464 | esac | |
12465 | ;; | |
12466 | psos*) | |
12467 | ;; | |
12468 | solaris*) | |
12469 | case $cc_basename in | |
12470 | CC*) | |
12471 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12472 | lt_prog_compiler_pic_CXX='-KPIC' | |
12473 | lt_prog_compiler_static_CXX='-Bstatic' | |
12474 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12475 | ;; | |
12476 | gcx*) | |
12477 | # Green Hills C++ Compiler | |
12478 | lt_prog_compiler_pic_CXX='-PIC' | |
12479 | ;; | |
12480 | *) | |
12481 | ;; | |
12482 | esac | |
12483 | ;; | |
12484 | sunos4*) | |
12485 | case $cc_basename in | |
12486 | CC*) | |
12487 | # Sun C++ 4.x | |
12488 | lt_prog_compiler_pic_CXX='-pic' | |
12489 | lt_prog_compiler_static_CXX='-Bstatic' | |
12490 | ;; | |
12491 | lcc*) | |
12492 | # Lucid | |
12493 | lt_prog_compiler_pic_CXX='-pic' | |
12494 | ;; | |
12495 | *) | |
12496 | ;; | |
12497 | esac | |
12498 | ;; | |
12499 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12500 | case $cc_basename in | |
12501 | CC*) | |
12502 | lt_prog_compiler_wl_CXX='-Wl,' | |
12503 | lt_prog_compiler_pic_CXX='-KPIC' | |
12504 | lt_prog_compiler_static_CXX='-Bstatic' | |
12505 | ;; | |
12506 | esac | |
12507 | ;; | |
12508 | tandem*) | |
12509 | case $cc_basename in | |
12510 | NCC*) | |
12511 | # NonStop-UX NCC 3.20 | |
12512 | lt_prog_compiler_pic_CXX='-KPIC' | |
12513 | ;; | |
12514 | *) | |
12515 | ;; | |
12516 | esac | |
12517 | ;; | |
12518 | vxworks*) | |
12519 | ;; | |
12520 | *) | |
12521 | lt_prog_compiler_can_build_shared_CXX=no | |
12522 | ;; | |
12523 | esac | |
12524 | fi | |
12525 | ||
12526 | case $host_os in | |
12527 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12528 | *djgpp*) | |
12529 | lt_prog_compiler_pic_CXX= | |
12530 | ;; | |
12531 | *) | |
12532 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12533 | ;; | |
12534 | esac | |
12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
12536 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
12537 | ||
12538 | ||
12539 | ||
12540 | # | |
12541 | # Check to make sure the PIC flag actually works. | |
12542 | # | |
12543 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12545 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
12546 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
12547 | $as_echo_n "(cached) " >&6 | |
12548 | else | |
12549 | lt_cv_prog_compiler_pic_works_CXX=no | |
12550 | ac_outfile=conftest.$ac_objext | |
12551 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12552 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12553 | # Insert the option either (1) after the last *FLAGS variable, or | |
12554 | # (2) before a word containing "conftest.", or (3) at the end. | |
12555 | # Note that $ac_compile itself does not contain backslashes and begins | |
12556 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12557 | # The option is referenced via a variable to avoid confusing sed. | |
12558 | lt_compile=`echo "$ac_compile" | $SED \ | |
12559 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12560 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12561 | -e 's:$: $lt_compiler_flag:'` | |
e1cce270 | 12562 | (eval echo "\"\$as_me:12562: $lt_compile\"" >&5) |
9c60689e DWT |
12563 | (eval "$lt_compile" 2>conftest.err) |
12564 | ac_status=$? | |
12565 | cat conftest.err >&5 | |
e1cce270 | 12566 | echo "$as_me:12566: \$? = $ac_status" >&5 |
9c60689e DWT |
12567 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12568 | # The compiler can only warn and ignore the option if not recognized | |
12569 | # So say no if there are warnings other than the usual output. | |
12570 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12571 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12572 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12573 | lt_cv_prog_compiler_pic_works_CXX=yes | |
12574 | fi | |
12575 | fi | |
12576 | $RM conftest* | |
12577 | ||
12578 | fi | |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
12580 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
12581 | ||
12582 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
12583 | case $lt_prog_compiler_pic_CXX in | |
12584 | "" | " "*) ;; | |
12585 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12586 | esac | |
12587 | else | |
12588 | lt_prog_compiler_pic_CXX= | |
12589 | lt_prog_compiler_can_build_shared_CXX=no | |
12590 | fi | |
12591 | ||
12592 | fi | |
12593 | ||
12594 | ||
12595 | ||
47aaa820 DWT |
12596 | # |
12597 | # Check to make sure the static flag actually works. | |
12598 | # | |
12599 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12601 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
12602 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
12603 | $as_echo_n "(cached) " >&6 | |
12604 | else | |
12605 | lt_cv_prog_compiler_static_works_CXX=no | |
12606 | save_LDFLAGS="$LDFLAGS" | |
12607 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12608 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12609 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12610 | # The linker can only warn and ignore the option if not recognized | |
12611 | # So say no if there are warnings | |
12612 | if test -s conftest.err; then | |
12613 | # Append any errors to the config.log. | |
12614 | cat conftest.err 1>&5 | |
12615 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12616 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12617 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12618 | lt_cv_prog_compiler_static_works_CXX=yes | |
12619 | fi | |
12620 | else | |
12621 | lt_cv_prog_compiler_static_works_CXX=yes | |
12622 | fi | |
12623 | fi | |
12624 | $RM -r conftest* | |
12625 | LDFLAGS="$save_LDFLAGS" | |
12626 | ||
12627 | fi | |
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
12629 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
12630 | ||
12631 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
12632 | : | |
12633 | else | |
12634 | lt_prog_compiler_static_CXX= | |
12635 | fi | |
12636 | ||
12637 | ||
12638 | ||
12639 | ||
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12641 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12642 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12643 | $as_echo_n "(cached) " >&6 | |
12644 | else | |
12645 | lt_cv_prog_compiler_c_o_CXX=no | |
12646 | $RM -r conftest 2>/dev/null | |
12647 | mkdir conftest | |
12648 | cd conftest | |
12649 | mkdir out | |
12650 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12651 | ||
12652 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12653 | # Insert the option either (1) after the last *FLAGS variable, or | |
12654 | # (2) before a word containing "conftest.", or (3) at the end. | |
12655 | # Note that $ac_compile itself does not contain backslashes and begins | |
12656 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12657 | lt_compile=`echo "$ac_compile" | $SED \ | |
12658 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12659 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12660 | -e 's:$: $lt_compiler_flag:'` | |
e1cce270 | 12661 | (eval echo "\"\$as_me:12661: $lt_compile\"" >&5) |
47aaa820 DWT |
12662 | (eval "$lt_compile" 2>out/conftest.err) |
12663 | ac_status=$? | |
12664 | cat out/conftest.err >&5 | |
e1cce270 | 12665 | echo "$as_me:12665: \$? = $ac_status" >&5 |
47aaa820 DWT |
12666 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12667 | then | |
12668 | # The compiler can only warn and ignore the option if not recognized | |
12669 | # So say no if there are warnings | |
12670 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12671 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12672 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12673 | lt_cv_prog_compiler_c_o_CXX=yes | |
12674 | fi | |
12675 | fi | |
12676 | chmod u+w . 2>&5 | |
12677 | $RM conftest* | |
12678 | # SGI C++ compiler will create directory out/ii_files/ for | |
12679 | # template instantiation | |
12680 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12681 | $RM out/* && rmdir out | |
12682 | cd .. | |
12683 | $RM -r conftest | |
12684 | $RM conftest* | |
12685 | ||
12686 | fi | |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12688 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12689 | ||
12690 | ||
12691 | ||
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12693 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12694 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12695 | $as_echo_n "(cached) " >&6 | |
12696 | else | |
12697 | lt_cv_prog_compiler_c_o_CXX=no | |
12698 | $RM -r conftest 2>/dev/null | |
12699 | mkdir conftest | |
12700 | cd conftest | |
12701 | mkdir out | |
12702 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12703 | ||
12704 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12705 | # Insert the option either (1) after the last *FLAGS variable, or | |
12706 | # (2) before a word containing "conftest.", or (3) at the end. | |
12707 | # Note that $ac_compile itself does not contain backslashes and begins | |
12708 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12709 | lt_compile=`echo "$ac_compile" | $SED \ | |
12710 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12711 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12712 | -e 's:$: $lt_compiler_flag:'` | |
e1cce270 | 12713 | (eval echo "\"\$as_me:12713: $lt_compile\"" >&5) |
47aaa820 DWT |
12714 | (eval "$lt_compile" 2>out/conftest.err) |
12715 | ac_status=$? | |
12716 | cat out/conftest.err >&5 | |
e1cce270 | 12717 | echo "$as_me:12717: \$? = $ac_status" >&5 |
47aaa820 DWT |
12718 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12719 | then | |
12720 | # The compiler can only warn and ignore the option if not recognized | |
12721 | # So say no if there are warnings | |
12722 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12723 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12724 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12725 | lt_cv_prog_compiler_c_o_CXX=yes | |
12726 | fi | |
12727 | fi | |
12728 | chmod u+w . 2>&5 | |
12729 | $RM conftest* | |
12730 | # SGI C++ compiler will create directory out/ii_files/ for | |
12731 | # template instantiation | |
12732 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12733 | $RM out/* && rmdir out | |
12734 | cd .. | |
12735 | $RM -r conftest | |
12736 | $RM conftest* | |
12737 | ||
12738 | fi | |
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12740 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12741 | ||
12742 | ||
12743 | ||
12744 | ||
12745 | hard_links="nottested" | |
12746 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12747 | # do not overwrite the value of need_locks provided by the user | |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
12749 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
12750 | hard_links=yes | |
12751 | $RM conftest* | |
12752 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12753 | touch conftest.a | |
12754 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12755 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
12757 | $as_echo "$hard_links" >&6; } | |
12758 | if test "$hard_links" = no; then | |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12760 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12761 | need_locks=warn | |
12762 | fi | |
12763 | else | |
12764 | need_locks=no | |
12765 | fi | |
12766 | ||
12767 | ||
12768 | ||
12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12770 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12771 | ||
12772 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12773 | case $host_os in | |
12774 | aix[4-9]*) | |
12775 | # If we're using GNU nm, then we don't want the "-C" option. | |
12776 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12777 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12778 | 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' | |
12779 | else | |
12780 | 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' | |
12781 | fi | |
12782 | ;; | |
12783 | pw32*) | |
12784 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12785 | ;; | |
12786 | cygwin* | mingw* | cegcc*) | |
12787 | 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' | |
12788 | ;; | |
12789 | linux* | k*bsd*-gnu) | |
12790 | link_all_deplibs_CXX=no | |
12791 | ;; | |
12792 | *) | |
12793 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12794 | ;; | |
12795 | esac | |
12796 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
12797 | ||
12798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
12799 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12800 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12801 | ||
12802 | with_gnu_ld_CXX=$with_gnu_ld | |
12803 | ||
12804 | ||
12805 | ||
12806 | ||
12807 | ||
12808 | ||
12809 | # | |
12810 | # Do we need to explicitly link libc? | |
12811 | # | |
12812 | case "x$archive_cmds_need_lc_CXX" in | |
12813 | x|xyes) | |
12814 | # Assume -lc should be added | |
12815 | archive_cmds_need_lc_CXX=yes | |
12816 | ||
12817 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12818 | case $archive_cmds_CXX in | |
12819 | *'~'*) | |
12820 | # FIXME: we may have to deal with multi-command sequences. | |
12821 | ;; | |
12822 | '$CC '*) | |
12823 | # Test whether the compiler implicitly links with -lc since on some | |
12824 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12825 | # to ld, don't add -lc before -lgcc. | |
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
12827 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
12828 | $RM conftest* | |
12829 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12830 | ||
12831 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12832 | (eval $ac_compile) 2>&5 | |
12833 | ac_status=$? | |
12834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12835 | test $ac_status = 0; } 2>conftest.err; then | |
12836 | soname=conftest | |
12837 | lib=conftest | |
12838 | libobjs=conftest.$ac_objext | |
12839 | deplibs= | |
12840 | wl=$lt_prog_compiler_wl_CXX | |
12841 | pic_flag=$lt_prog_compiler_pic_CXX | |
12842 | compiler_flags=-v | |
12843 | linker_flags=-v | |
12844 | verstring= | |
12845 | output_objdir=. | |
12846 | libname=conftest | |
12847 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12848 | allow_undefined_flag_CXX= | |
12849 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
12850 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12851 | ac_status=$? | |
12852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12853 | test $ac_status = 0; } | |
12854 | then | |
12855 | archive_cmds_need_lc_CXX=no | |
12856 | else | |
12857 | archive_cmds_need_lc_CXX=yes | |
12858 | fi | |
12859 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12860 | else | |
12861 | cat conftest.err 1>&5 | |
12862 | fi | |
12863 | $RM conftest* | |
12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
12865 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
12866 | ;; | |
12867 | esac | |
12868 | fi | |
12869 | ;; | |
12870 | esac | |
12871 | ||
12872 | ||
12873 | ||
12874 | ||
12875 | ||
12876 | ||
12877 | ||
12878 | ||
12879 | ||
12880 | ||
12881 | ||
12882 | ||
12883 | ||
12884 | ||
12885 | ||
12886 | ||
12887 | ||
12888 | ||
12889 | ||
12890 | ||
12891 | ||
12892 | ||
12893 | ||
12894 | ||
12895 | ||
12896 | ||
12897 | ||
12898 | ||
12899 | ||
12900 | ||
12901 | ||
12902 | ||
12903 | ||
12904 | ||
12905 | ||
12906 | ||
12907 | ||
12908 | ||
12909 | ||
12910 | ||
12911 | ||
12912 | ||
12913 | ||
12914 | ||
12915 | ||
12916 | ||
12917 | ||
12918 | ||
12919 | ||
12920 | ||
12921 | ||
12922 | ||
12923 | ||
12924 | ||
12925 | ||
12926 | ||
12927 | ||
12928 | ||
12929 | ||
12930 | ||
12931 | ||
12932 | ||
12933 | ||
12934 | ||
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
12936 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
12937 | ||
12938 | library_names_spec= | |
12939 | libname_spec='lib$name' | |
12940 | soname_spec= | |
12941 | shrext_cmds=".so" | |
12942 | postinstall_cmds= | |
12943 | postuninstall_cmds= | |
12944 | finish_cmds= | |
12945 | finish_eval= | |
12946 | shlibpath_var= | |
12947 | shlibpath_overrides_runpath=unknown | |
12948 | version_type=none | |
12949 | dynamic_linker="$host_os ld.so" | |
12950 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12951 | need_lib_prefix=unknown | |
12952 | hardcode_into_libs=no | |
12953 | ||
12954 | # when you set need_version to no, make sure it does not cause -set_version | |
12955 | # flags to be left without arguments | |
12956 | need_version=unknown | |
12957 | ||
12958 | case $host_os in | |
12959 | aix3*) | |
12960 | version_type=linux | |
12961 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12962 | shlibpath_var=LIBPATH | |
12963 | ||
12964 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12965 | soname_spec='${libname}${release}${shared_ext}$major' | |
12966 | ;; | |
12967 | ||
12968 | aix[4-9]*) | |
12969 | version_type=linux | |
12970 | need_lib_prefix=no | |
12971 | need_version=no | |
12972 | hardcode_into_libs=yes | |
12973 | if test "$host_cpu" = ia64; then | |
12974 | # AIX 5 supports IA64 | |
12975 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12976 | shlibpath_var=LD_LIBRARY_PATH | |
12977 | else | |
12978 | # With GCC up to 2.95.x, collect2 would create an import file | |
12979 | # for dependence libraries. The import file would start with | |
12980 | # the line `#! .'. This would cause the generated library to | |
12981 | # depend on `.', always an invalid library. This was fixed in | |
12982 | # development snapshots of GCC prior to 3.0. | |
12983 | case $host_os in | |
12984 | aix4 | aix4.[01] | aix4.[01].*) | |
12985 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12986 | echo ' yes ' | |
12987 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
12988 | : | |
12989 | else | |
12990 | can_build_shared=no | |
12991 | fi | |
12992 | ;; | |
12993 | esac | |
12994 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12995 | # soname into executable. Probably we can add versioning support to | |
12996 | # collect2, so additional links can be useful in future. | |
12997 | if test "$aix_use_runtimelinking" = yes; then | |
12998 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12999 | # instead of lib<name>.a to let people know that these are not | |
13000 | # typical AIX shared libraries. | |
13001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13002 | else | |
13003 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13004 | # and later when we are not doing run time linking. | |
13005 | library_names_spec='${libname}${release}.a $libname.a' | |
13006 | soname_spec='${libname}${release}${shared_ext}$major' | |
13007 | fi | |
13008 | shlibpath_var=LIBPATH | |
13009 | fi | |
13010 | ;; | |
13011 | ||
13012 | amigaos*) | |
13013 | case $host_cpu in | |
13014 | powerpc) | |
13015 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13016 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13018 | ;; | |
13019 | m68k) | |
13020 | library_names_spec='$libname.ixlibrary $libname.a' | |
13021 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13022 | 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' | |
13023 | ;; | |
13024 | esac | |
13025 | ;; | |
13026 | ||
13027 | beos*) | |
13028 | library_names_spec='${libname}${shared_ext}' | |
13029 | dynamic_linker="$host_os ld.so" | |
13030 | shlibpath_var=LIBRARY_PATH | |
13031 | ;; | |
13032 | ||
13033 | bsdi[45]*) | |
13034 | version_type=linux | |
13035 | need_version=no | |
13036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13037 | soname_spec='${libname}${release}${shared_ext}$major' | |
13038 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13039 | shlibpath_var=LD_LIBRARY_PATH | |
13040 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13041 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13042 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13043 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13044 | # libtool to hard-code these into programs | |
13045 | ;; | |
9c60689e | 13046 | |
47aaa820 DWT |
13047 | cygwin* | mingw* | pw32* | cegcc*) |
13048 | version_type=windows | |
13049 | shrext_cmds=".dll" | |
13050 | need_version=no | |
13051 | need_lib_prefix=no | |
9c60689e | 13052 | |
47aaa820 DWT |
13053 | case $GCC,$host_os in |
13054 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13055 | library_names_spec='$libname.dll.a' | |
13056 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13057 | postinstall_cmds='base_file=`basename \${file}`~ | |
13058 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13059 | dldir=$destdir/`dirname \$dlpath`~ | |
13060 | test -d \$dldir || mkdir -p \$dldir~ | |
13061 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13062 | chmod a+x \$dldir/$dlname~ | |
13063 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13064 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13065 | fi' | |
13066 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13067 | dlpath=$dir/\$dldll~ | |
13068 | $RM \$dlpath' | |
13069 | shlibpath_overrides_runpath=yes | |
9c60689e | 13070 | |
47aaa820 DWT |
13071 | case $host_os in |
13072 | cygwin*) | |
13073 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13074 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13075 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13076 | ;; | |
13077 | mingw* | cegcc*) | |
13078 | # MinGW DLLs use traditional 'lib' prefix | |
13079 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13080 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13081 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13082 | # It is most probably a Windows format PATH printed by | |
13083 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13084 | # path with ; separators, and with drive letters. We can handle the | |
13085 | # drive letters (cygwin fileutils understands them), so leave them, | |
13086 | # especially as we might pass files found there to a mingw objdump, | |
13087 | # which wouldn't understand a cygwinified path. Ahh. | |
13088 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13089 | else | |
13090 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13091 | fi | |
13092 | ;; | |
13093 | pw32*) | |
13094 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13095 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13096 | ;; | |
13097 | esac | |
13098 | ;; | |
9c60689e | 13099 | |
47aaa820 DWT |
13100 | *) |
13101 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13102 | ;; | |
13103 | esac | |
13104 | dynamic_linker='Win32 ld.exe' | |
13105 | # FIXME: first we should search . and the directory the executable is in | |
13106 | shlibpath_var=PATH | |
13107 | ;; | |
9c60689e | 13108 | |
47aaa820 DWT |
13109 | darwin* | rhapsody*) |
13110 | dynamic_linker="$host_os dyld" | |
13111 | version_type=darwin | |
13112 | need_lib_prefix=no | |
13113 | need_version=no | |
13114 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13115 | soname_spec='${libname}${release}${major}$shared_ext' | |
13116 | shlibpath_overrides_runpath=yes | |
13117 | shlibpath_var=DYLD_LIBRARY_PATH | |
13118 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13119 | |
47aaa820 DWT |
13120 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13121 | ;; | |
9c60689e | 13122 | |
47aaa820 DWT |
13123 | dgux*) |
13124 | version_type=linux | |
13125 | need_lib_prefix=no | |
13126 | need_version=no | |
13127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13128 | soname_spec='${libname}${release}${shared_ext}$major' | |
13129 | shlibpath_var=LD_LIBRARY_PATH | |
13130 | ;; | |
9c60689e | 13131 | |
47aaa820 DWT |
13132 | freebsd1*) |
13133 | dynamic_linker=no | |
13134 | ;; | |
9c60689e | 13135 | |
47aaa820 DWT |
13136 | freebsd* | dragonfly*) |
13137 | # DragonFly does not have aout. When/if they implement a new | |
13138 | # versioning mechanism, adjust this. | |
13139 | if test -x /usr/bin/objformat; then | |
13140 | objformat=`/usr/bin/objformat` | |
13141 | else | |
13142 | case $host_os in | |
13143 | freebsd[123]*) objformat=aout ;; | |
13144 | *) objformat=elf ;; | |
13145 | esac | |
13146 | fi | |
13147 | version_type=freebsd-$objformat | |
13148 | case $version_type in | |
13149 | freebsd-elf*) | |
13150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13151 | need_version=no | |
13152 | need_lib_prefix=no | |
13153 | ;; | |
13154 | freebsd-*) | |
13155 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13156 | need_version=yes | |
13157 | ;; | |
13158 | esac | |
13159 | shlibpath_var=LD_LIBRARY_PATH | |
13160 | case $host_os in | |
13161 | freebsd2*) | |
13162 | shlibpath_overrides_runpath=yes | |
13163 | ;; | |
13164 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13165 | shlibpath_overrides_runpath=yes | |
13166 | hardcode_into_libs=yes | |
13167 | ;; | |
13168 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13169 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13170 | shlibpath_overrides_runpath=no | |
13171 | hardcode_into_libs=yes | |
13172 | ;; | |
13173 | *) # from 4.6 on, and DragonFly | |
13174 | shlibpath_overrides_runpath=yes | |
13175 | hardcode_into_libs=yes | |
13176 | ;; | |
13177 | esac | |
13178 | ;; | |
9c60689e | 13179 | |
47aaa820 DWT |
13180 | gnu*) |
13181 | version_type=linux | |
13182 | need_lib_prefix=no | |
13183 | need_version=no | |
13184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13185 | soname_spec='${libname}${release}${shared_ext}$major' | |
13186 | shlibpath_var=LD_LIBRARY_PATH | |
13187 | hardcode_into_libs=yes | |
13188 | ;; | |
9c60689e | 13189 | |
47aaa820 DWT |
13190 | hpux9* | hpux10* | hpux11*) |
13191 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13192 | # link against other versions. | |
13193 | version_type=sunos | |
13194 | need_lib_prefix=no | |
13195 | need_version=no | |
13196 | case $host_cpu in | |
13197 | ia64*) | |
13198 | shrext_cmds='.so' | |
13199 | hardcode_into_libs=yes | |
13200 | dynamic_linker="$host_os dld.so" | |
13201 | shlibpath_var=LD_LIBRARY_PATH | |
13202 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13204 | soname_spec='${libname}${release}${shared_ext}$major' | |
13205 | if test "X$HPUX_IA64_MODE" = X32; then | |
13206 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13207 | else | |
13208 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13209 | fi | |
13210 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13211 | ;; | |
13212 | hppa*64*) | |
13213 | shrext_cmds='.sl' | |
13214 | hardcode_into_libs=yes | |
13215 | dynamic_linker="$host_os dld.sl" | |
13216 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13217 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13219 | soname_spec='${libname}${release}${shared_ext}$major' | |
13220 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13221 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13222 | ;; | |
13223 | *) | |
13224 | shrext_cmds='.sl' | |
13225 | dynamic_linker="$host_os dld.sl" | |
13226 | shlibpath_var=SHLIB_PATH | |
13227 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13229 | soname_spec='${libname}${release}${shared_ext}$major' | |
13230 | ;; | |
13231 | esac | |
13232 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13233 | postinstall_cmds='chmod 555 $lib' | |
13234 | ;; | |
9c60689e | 13235 | |
47aaa820 DWT |
13236 | interix[3-9]*) |
13237 | version_type=linux | |
13238 | need_lib_prefix=no | |
13239 | need_version=no | |
13240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13241 | soname_spec='${libname}${release}${shared_ext}$major' | |
13242 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13243 | shlibpath_var=LD_LIBRARY_PATH | |
13244 | shlibpath_overrides_runpath=no | |
13245 | hardcode_into_libs=yes | |
13246 | ;; | |
9c60689e | 13247 | |
47aaa820 DWT |
13248 | irix5* | irix6* | nonstopux*) |
13249 | case $host_os in | |
13250 | nonstopux*) version_type=nonstopux ;; | |
13251 | *) | |
13252 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13253 | version_type=linux | |
13254 | else | |
13255 | version_type=irix | |
13256 | fi ;; | |
13257 | esac | |
13258 | need_lib_prefix=no | |
13259 | need_version=no | |
13260 | soname_spec='${libname}${release}${shared_ext}$major' | |
13261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13262 | case $host_os in | |
13263 | irix5* | nonstopux*) | |
13264 | libsuff= shlibsuff= | |
13265 | ;; | |
13266 | *) | |
13267 | case $LD in # libtool.m4 will add one of these switches to LD | |
13268 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13269 | libsuff= shlibsuff= libmagic=32-bit;; | |
13270 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13271 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13272 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13273 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13274 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13275 | esac | |
13276 | ;; | |
13277 | esac | |
13278 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13279 | shlibpath_overrides_runpath=no | |
13280 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13281 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13282 | hardcode_into_libs=yes | |
13283 | ;; | |
9c60689e | 13284 | |
47aaa820 DWT |
13285 | # No shared lib support for Linux oldld, aout, or coff. |
13286 | linux*oldld* | linux*aout* | linux*coff*) | |
13287 | dynamic_linker=no | |
13288 | ;; | |
9c60689e | 13289 | |
47aaa820 DWT |
13290 | # This must be Linux ELF. |
13291 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13292 | version_type=linux | |
13293 | need_lib_prefix=no | |
13294 | need_version=no | |
13295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13296 | soname_spec='${libname}${release}${shared_ext}$major' | |
13297 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13298 | shlibpath_var=LD_LIBRARY_PATH | |
13299 | shlibpath_overrides_runpath=no | |
13300 | # Some binutils ld are patched to set DT_RUNPATH | |
13301 | save_LDFLAGS=$LDFLAGS | |
13302 | save_libdir=$libdir | |
13303 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13304 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13306 | /* end confdefs.h. */ | |
9c60689e | 13307 | |
47aaa820 DWT |
13308 | int |
13309 | main () | |
13310 | { | |
9c60689e | 13311 | |
47aaa820 DWT |
13312 | ; |
13313 | return 0; | |
13314 | } | |
13315 | _ACEOF | |
13316 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13317 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13318 | shlibpath_overrides_runpath=yes | |
9c60689e | 13319 | fi |
47aaa820 DWT |
13320 | fi |
13321 | rm -f core conftest.err conftest.$ac_objext \ | |
13322 | conftest$ac_exeext conftest.$ac_ext | |
13323 | LDFLAGS=$save_LDFLAGS | |
13324 | libdir=$save_libdir | |
9c60689e | 13325 | |
47aaa820 DWT |
13326 | # This implies no fast_install, which is unacceptable. |
13327 | # Some rework will be needed to allow for fast_install | |
13328 | # before this can be enabled. | |
13329 | hardcode_into_libs=yes | |
9c60689e | 13330 | |
47aaa820 DWT |
13331 | # Append ld.so.conf contents to the search path |
13332 | if test -f /etc/ld.so.conf; then | |
13333 | 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' ' '` | |
13334 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13335 | fi | |
9c60689e | 13336 | |
47aaa820 DWT |
13337 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13338 | # powerpc, because MkLinux only supported shared libraries with the | |
13339 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13340 | # most powerpc-linux boxes support dynamic linking these days and | |
13341 | # people can always --disable-shared, the test was removed, and we | |
13342 | # assume the GNU/Linux dynamic linker is in use. | |
13343 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 13344 | ;; |
47aaa820 DWT |
13345 | |
13346 | netbsdelf*-gnu) | |
13347 | version_type=linux | |
13348 | need_lib_prefix=no | |
13349 | need_version=no | |
13350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13351 | soname_spec='${libname}${release}${shared_ext}$major' | |
13352 | shlibpath_var=LD_LIBRARY_PATH | |
13353 | shlibpath_overrides_runpath=no | |
13354 | hardcode_into_libs=yes | |
13355 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 13356 | ;; |
47aaa820 DWT |
13357 | |
13358 | netbsd*) | |
13359 | version_type=sunos | |
13360 | need_lib_prefix=no | |
13361 | need_version=no | |
13362 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13364 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13365 | dynamic_linker='NetBSD (a.out) ld.so' | |
13366 | else | |
13367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13368 | soname_spec='${libname}${release}${shared_ext}$major' | |
13369 | dynamic_linker='NetBSD ld.elf_so' | |
13370 | fi | |
13371 | shlibpath_var=LD_LIBRARY_PATH | |
13372 | shlibpath_overrides_runpath=yes | |
13373 | hardcode_into_libs=yes | |
9c60689e | 13374 | ;; |
9c60689e | 13375 | |
47aaa820 DWT |
13376 | newsos6) |
13377 | version_type=linux | |
13378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13379 | shlibpath_var=LD_LIBRARY_PATH | |
13380 | shlibpath_overrides_runpath=yes | |
13381 | ;; | |
9c60689e | 13382 | |
47aaa820 DWT |
13383 | *nto* | *qnx*) |
13384 | version_type=qnx | |
13385 | need_lib_prefix=no | |
13386 | need_version=no | |
13387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13388 | soname_spec='${libname}${release}${shared_ext}$major' | |
13389 | shlibpath_var=LD_LIBRARY_PATH | |
13390 | shlibpath_overrides_runpath=no | |
13391 | hardcode_into_libs=yes | |
13392 | dynamic_linker='ldqnx.so' | |
13393 | ;; | |
9c60689e | 13394 | |
47aaa820 DWT |
13395 | openbsd*) |
13396 | version_type=sunos | |
13397 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13398 | need_lib_prefix=no | |
13399 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13400 | case $host_os in | |
13401 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13402 | *) need_version=no ;; | |
13403 | esac | |
13404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13405 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13406 | shlibpath_var=LD_LIBRARY_PATH | |
13407 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13408 | case $host_os in | |
13409 | openbsd2.[89] | openbsd2.[89].*) | |
13410 | shlibpath_overrides_runpath=no | |
13411 | ;; | |
13412 | *) | |
13413 | shlibpath_overrides_runpath=yes | |
13414 | ;; | |
13415 | esac | |
13416 | else | |
13417 | shlibpath_overrides_runpath=yes | |
13418 | fi | |
13419 | ;; | |
9c60689e | 13420 | |
47aaa820 DWT |
13421 | os2*) |
13422 | libname_spec='$name' | |
13423 | shrext_cmds=".dll" | |
13424 | need_lib_prefix=no | |
13425 | library_names_spec='$libname${shared_ext} $libname.a' | |
13426 | dynamic_linker='OS/2 ld.exe' | |
13427 | shlibpath_var=LIBPATH | |
13428 | ;; | |
9c60689e | 13429 | |
47aaa820 DWT |
13430 | osf3* | osf4* | osf5*) |
13431 | version_type=osf | |
13432 | need_lib_prefix=no | |
13433 | need_version=no | |
13434 | soname_spec='${libname}${release}${shared_ext}$major' | |
13435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13436 | shlibpath_var=LD_LIBRARY_PATH | |
13437 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13438 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13439 | ;; | |
9c60689e | 13440 | |
47aaa820 DWT |
13441 | rdos*) |
13442 | dynamic_linker=no | |
13443 | ;; | |
9c60689e | 13444 | |
47aaa820 DWT |
13445 | solaris*) |
13446 | version_type=linux | |
13447 | need_lib_prefix=no | |
13448 | need_version=no | |
13449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13450 | soname_spec='${libname}${release}${shared_ext}$major' | |
13451 | shlibpath_var=LD_LIBRARY_PATH | |
13452 | shlibpath_overrides_runpath=yes | |
13453 | hardcode_into_libs=yes | |
13454 | # ldd complains unless libraries are executable | |
13455 | postinstall_cmds='chmod +x $lib' | |
13456 | ;; | |
9c60689e | 13457 | |
47aaa820 DWT |
13458 | sunos4*) |
13459 | version_type=sunos | |
13460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13461 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13462 | shlibpath_var=LD_LIBRARY_PATH | |
13463 | shlibpath_overrides_runpath=yes | |
13464 | if test "$with_gnu_ld" = yes; then | |
13465 | need_lib_prefix=no | |
13466 | fi | |
13467 | need_version=yes | |
13468 | ;; | |
9c60689e | 13469 | |
47aaa820 DWT |
13470 | sysv4 | sysv4.3*) |
13471 | version_type=linux | |
13472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13473 | soname_spec='${libname}${release}${shared_ext}$major' | |
13474 | shlibpath_var=LD_LIBRARY_PATH | |
13475 | case $host_vendor in | |
13476 | sni) | |
13477 | shlibpath_overrides_runpath=no | |
13478 | need_lib_prefix=no | |
13479 | runpath_var=LD_RUN_PATH | |
9c60689e | 13480 | ;; |
47aaa820 DWT |
13481 | siemens) |
13482 | need_lib_prefix=no | |
9c60689e | 13483 | ;; |
47aaa820 DWT |
13484 | motorola) |
13485 | need_lib_prefix=no | |
13486 | need_version=no | |
13487 | shlibpath_overrides_runpath=no | |
13488 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13489 | ;; | |
13490 | esac | |
9c60689e | 13491 | ;; |
9c60689e | 13492 | |
47aaa820 DWT |
13493 | sysv4*MP*) |
13494 | if test -d /usr/nec ;then | |
13495 | version_type=linux | |
13496 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13497 | soname_spec='$libname${shared_ext}.$major' | |
13498 | shlibpath_var=LD_LIBRARY_PATH | |
13499 | fi | |
13500 | ;; | |
9c60689e | 13501 | |
47aaa820 DWT |
13502 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13503 | version_type=freebsd-elf | |
13504 | need_lib_prefix=no | |
13505 | need_version=no | |
13506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13507 | soname_spec='${libname}${release}${shared_ext}$major' | |
13508 | shlibpath_var=LD_LIBRARY_PATH | |
13509 | shlibpath_overrides_runpath=yes | |
13510 | hardcode_into_libs=yes | |
13511 | if test "$with_gnu_ld" = yes; then | |
13512 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13513 | else | |
13514 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13515 | case $host_os in | |
13516 | sco3.2v5*) | |
13517 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13518 | ;; | |
13519 | esac | |
13520 | fi | |
13521 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13522 | ;; | |
9c60689e | 13523 | |
47aaa820 DWT |
13524 | tpf*) |
13525 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13526 | version_type=linux | |
13527 | need_lib_prefix=no | |
13528 | need_version=no | |
13529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13530 | shlibpath_var=LD_LIBRARY_PATH | |
13531 | shlibpath_overrides_runpath=no | |
13532 | hardcode_into_libs=yes | |
13533 | ;; | |
9c60689e | 13534 | |
47aaa820 DWT |
13535 | uts4*) |
13536 | version_type=linux | |
13537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13538 | soname_spec='${libname}${release}${shared_ext}$major' | |
13539 | shlibpath_var=LD_LIBRARY_PATH | |
13540 | ;; | |
9c60689e | 13541 | |
47aaa820 DWT |
13542 | *) |
13543 | dynamic_linker=no | |
13544 | ;; | |
13545 | esac | |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
13547 | $as_echo "$dynamic_linker" >&6; } | |
13548 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 13549 | |
47aaa820 DWT |
13550 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13551 | if test "$GCC" = yes; then | |
13552 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
13553 | fi | |
9c60689e | 13554 | |
47aaa820 DWT |
13555 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
13556 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
13557 | fi | |
13558 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
13559 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
13560 | fi | |
9c60689e DWT |
13561 | |
13562 | ||
13563 | ||
13564 | ||
13565 | ||
13566 | ||
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | ||
13573 | ||
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | ||
13584 | ||
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | ||
13591 | ||
13592 | ||
13593 | ||
13594 | ||
13595 | ||
13596 | ||
47aaa820 DWT |
13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
13598 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
13599 | hardcode_action_CXX= | |
13600 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
13601 | test -n "$runpath_var_CXX" || | |
13602 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
9c60689e | 13603 | |
47aaa820 DWT |
13604 | # We can hardcode non-existent directories. |
13605 | if test "$hardcode_direct_CXX" != no && | |
13606 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13607 | # have to relink, otherwise we might link with an installed library | |
13608 | # when we should be linking with a yet-to-be-installed one | |
13609 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13610 | test "$hardcode_minus_L_CXX" != no; then | |
13611 | # Linking always hardcodes the temporary library directory. | |
13612 | hardcode_action_CXX=relink | |
13613 | else | |
13614 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13615 | hardcode_action_CXX=immediate | |
13616 | fi | |
13617 | else | |
13618 | # We cannot hardcode anything, or else we can only hardcode existing | |
13619 | # directories. | |
13620 | hardcode_action_CXX=unsupported | |
13621 | fi | |
13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
13623 | $as_echo "$hardcode_action_CXX" >&6; } | |
9c60689e | 13624 | |
47aaa820 DWT |
13625 | if test "$hardcode_action_CXX" = relink || |
13626 | test "$inherit_rpath_CXX" = yes; then | |
13627 | # Fast installation is not supported | |
13628 | enable_fast_install=no | |
13629 | elif test "$shlibpath_overrides_runpath" = yes || | |
13630 | test "$enable_shared" = no; then | |
13631 | # Fast installation is not necessary | |
13632 | enable_fast_install=needless | |
13633 | fi | |
9c60689e DWT |
13634 | |
13635 | ||
13636 | ||
13637 | ||
13638 | ||
13639 | ||
13640 | ||
47aaa820 | 13641 | fi # test -n "$compiler" |
9c60689e | 13642 | |
47aaa820 DWT |
13643 | CC=$lt_save_CC |
13644 | LDCXX=$LD | |
13645 | LD=$lt_save_LD | |
13646 | GCC=$lt_save_GCC | |
13647 | with_gnu_ld=$lt_save_with_gnu_ld | |
13648 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13649 | lt_cv_path_LD=$lt_save_path_LD | |
13650 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13651 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13652 | fi # test "$_lt_caught_CXX_error" != yes | |
9c60689e | 13653 | |
47aaa820 DWT |
13654 | ac_ext=c |
13655 | ac_cpp='$CPP $CPPFLAGS' | |
13656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
13659 | |
13660 | ||
47aaa820 DWT |
13661 | ac_ext=cpp |
13662 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 13666 | |
e1cce270 DWT |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
13668 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
13669 | if test "${ac_cv_path_SED+set}" = set; then : | |
13670 | $as_echo_n "(cached) " >&6 | |
13671 | else | |
13672 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
13673 | for ac_i in 1 2 3 4 5 6 7; do | |
13674 | ac_script="$ac_script$as_nl$ac_script" | |
13675 | done | |
13676 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
13677 | { ac_script=; unset ac_script;} | |
13678 | if test -z "$SED"; then | |
13679 | ac_path_SED_found=false | |
13680 | # Loop through the user's path and test for each of PROGNAME-LIST | |
13681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13682 | for as_dir in $PATH | |
13683 | do | |
13684 | IFS=$as_save_IFS | |
13685 | test -z "$as_dir" && as_dir=. | |
13686 | for ac_prog in sed gsed; do | |
13687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13688 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
13689 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
13690 | # Check for GNU ac_path_SED and select it if it is found. | |
13691 | # Check for GNU $ac_path_SED | |
13692 | case `"$ac_path_SED" --version 2>&1` in | |
13693 | *GNU*) | |
13694 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
13695 | *) | |
13696 | ac_count=0 | |
13697 | $as_echo_n 0123456789 >"conftest.in" | |
13698 | while : | |
13699 | do | |
13700 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
13701 | mv "conftest.tmp" "conftest.in" | |
13702 | cp "conftest.in" "conftest.nl" | |
13703 | $as_echo '' >> "conftest.nl" | |
13704 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
13705 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
13706 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
13707 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
13708 | # Best one so far, save it but keep looking for a better one | |
13709 | ac_cv_path_SED="$ac_path_SED" | |
13710 | ac_path_SED_max=$ac_count | |
13711 | fi | |
13712 | # 10*(2^10) chars as input seems more than enough | |
13713 | test $ac_count -gt 10 && break | |
13714 | done | |
13715 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
13716 | esac | |
13717 | ||
13718 | $ac_path_SED_found && break 3 | |
13719 | done | |
13720 | done | |
13721 | done | |
13722 | IFS=$as_save_IFS | |
13723 | if test -z "$ac_cv_path_SED"; then | |
13724 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
13725 | fi | |
13726 | else | |
13727 | ac_cv_path_SED=$SED | |
13728 | fi | |
13729 | ||
13730 | fi | |
13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
13732 | $as_echo "$ac_cv_path_SED" >&6; } | |
13733 | SED="$ac_cv_path_SED" | |
13734 | rm -f conftest.sed | |
13735 | ||
47aaa820 DWT |
13736 | for ac_prog in 'bison -y' byacc |
13737 | do | |
13738 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13739 | set dummy $ac_prog; ac_word=$2 | |
13740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13741 | $as_echo_n "checking for $ac_word... " >&6; } | |
13742 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
13743 | $as_echo_n "(cached) " >&6 | |
13744 | else | |
13745 | if test -n "$YACC"; then | |
13746 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
13747 | else | |
13748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13749 | for as_dir in $PATH | |
13750 | do | |
13751 | IFS=$as_save_IFS | |
13752 | test -z "$as_dir" && as_dir=. | |
13753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13755 | ac_cv_prog_YACC="$ac_prog" | |
13756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13757 | break 2 | |
13758 | fi | |
13759 | done | |
13760 | done | |
13761 | IFS=$as_save_IFS | |
9c60689e | 13762 | |
47aaa820 DWT |
13763 | fi |
13764 | fi | |
13765 | YACC=$ac_cv_prog_YACC | |
13766 | if test -n "$YACC"; then | |
13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
13768 | $as_echo "$YACC" >&6; } | |
13769 | else | |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13771 | $as_echo "no" >&6; } | |
13772 | fi | |
9c60689e DWT |
13773 | |
13774 | ||
47aaa820 DWT |
13775 | test -n "$YACC" && break |
13776 | done | |
13777 | test -n "$YACC" || YACC="yacc" | |
9c60689e | 13778 | |
9c60689e | 13779 | |
9c60689e | 13780 | |
9c60689e | 13781 | |
9c60689e | 13782 | |
47aaa820 DWT |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5 |
13784 | $as_echo_n "checking if bison is the parser generator... " >&6; } | |
13785 | if test "${ax_cv_prog_bison+set}" = set; then : | |
13786 | $as_echo_n "(cached) " >&6 | |
13787 | else | |
9c60689e | 13788 | |
47aaa820 | 13789 | if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then : |
9c60689e | 13790 | |
47aaa820 | 13791 | ax_cv_prog_bison=yes |
9c60689e | 13792 | |
47aaa820 | 13793 | else |
9c60689e | 13794 | |
47aaa820 | 13795 | ax_cv_prog_bison=no |
9c60689e | 13796 | |
47aaa820 | 13797 | fi |
9c60689e | 13798 | |
47aaa820 DWT |
13799 | fi |
13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5 | |
13801 | $as_echo "$ax_cv_prog_bison" >&6; } | |
13802 | if test "$ax_cv_prog_bison" = yes; then : | |
9c60689e | 13803 | |
47aaa820 | 13804 | : |
9c60689e | 13805 | |
47aaa820 DWT |
13806 | BISON=`echo $YACC | $SED -e 's/ -y//'` |
13807 | BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
9c60689e | 13808 | |
9c60689e | 13809 | |
47aaa820 | 13810 | else |
9c60689e | 13811 | |
47aaa820 | 13812 | : |
27557508 | 13813 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
9c60689e | 13814 | |
47aaa820 | 13815 | fi |
9c60689e | 13816 | |
47aaa820 DWT |
13817 | for ac_prog in gawk mawk nawk awk |
13818 | do | |
13819 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13820 | set dummy $ac_prog; ac_word=$2 | |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13822 | $as_echo_n "checking for $ac_word... " >&6; } | |
13823 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
13824 | $as_echo_n "(cached) " >&6 | |
13825 | else | |
13826 | if test -n "$AWK"; then | |
13827 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
13828 | else | |
13829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13830 | for as_dir in $PATH | |
13831 | do | |
13832 | IFS=$as_save_IFS | |
13833 | test -z "$as_dir" && as_dir=. | |
13834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13836 | ac_cv_prog_AWK="$ac_prog" | |
13837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13838 | break 2 | |
9c60689e | 13839 | fi |
47aaa820 DWT |
13840 | done |
13841 | done | |
13842 | IFS=$as_save_IFS | |
9c60689e | 13843 | |
47aaa820 DWT |
13844 | fi |
13845 | fi | |
13846 | AWK=$ac_cv_prog_AWK | |
13847 | if test -n "$AWK"; then | |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
13849 | $as_echo "$AWK" >&6; } | |
13850 | else | |
13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13852 | $as_echo "no" >&6; } | |
13853 | fi | |
9c60689e | 13854 | |
9c60689e | 13855 | |
47aaa820 DWT |
13856 | test -n "$AWK" && break |
13857 | done | |
9c60689e | 13858 | |
27557508 DWT |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5 |
13860 | $as_echo_n "checking if bison is >= 2.3... " >&6; } | |
47aaa820 | 13861 | as_arg_v1=$BISON_VERSION |
27557508 | 13862 | as_arg_v2=2.3 |
47aaa820 DWT |
13863 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
13864 | case $? in #( | |
13865 | 1) : | |
13866 | ||
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13868 | $as_echo "no" >&6; } | |
27557508 | 13869 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
47aaa820 DWT |
13870 | ;; #( |
13871 | 0) : | |
13872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13873 | $as_echo "yes" >&6; } ;; #( | |
13874 | 2) : | |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13876 | $as_echo "yes" >&6; } ;; #( | |
13877 | *) : | |
13878 | ;; | |
13879 | esac | |
13880 | ||
13881 | # expand $ac_aux_dir to an absolute path | |
13882 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
13883 | ||
13884 | if test x"${MISSING+set}" != xset; then | |
13885 | case $am_aux_dir in | |
13886 | *\ * | *\ *) | |
13887 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
9c60689e | 13888 | *) |
47aaa820 | 13889 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
9c60689e | 13890 | esac |
47aaa820 DWT |
13891 | fi |
13892 | # Use eval to expand $SHELL | |
13893 | if eval "$MISSING --run true"; then | |
13894 | am_missing_run="$MISSING --run " | |
13895 | else | |
13896 | am_missing_run= | |
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
13898 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
13899 | fi | |
13900 | ||
13901 | for ac_prog in flex lex | |
13902 | do | |
13903 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13904 | set dummy $ac_prog; ac_word=$2 | |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13906 | $as_echo_n "checking for $ac_word... " >&6; } | |
13907 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
13908 | $as_echo_n "(cached) " >&6 | |
13909 | else | |
13910 | if test -n "$LEX"; then | |
13911 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
13912 | else | |
13913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13914 | for as_dir in $PATH | |
13915 | do | |
13916 | IFS=$as_save_IFS | |
13917 | test -z "$as_dir" && as_dir=. | |
13918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13920 | ac_cv_prog_LEX="$ac_prog" | |
13921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13922 | break 2 | |
13923 | fi | |
13924 | done | |
13925 | done | |
13926 | IFS=$as_save_IFS | |
9c60689e | 13927 | |
47aaa820 DWT |
13928 | fi |
13929 | fi | |
13930 | LEX=$ac_cv_prog_LEX | |
13931 | if test -n "$LEX"; then | |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
13933 | $as_echo "$LEX" >&6; } | |
13934 | else | |
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13936 | $as_echo "no" >&6; } | |
13937 | fi | |
9c60689e | 13938 | |
9c60689e | 13939 | |
47aaa820 DWT |
13940 | test -n "$LEX" && break |
13941 | done | |
13942 | test -n "$LEX" || LEX=":" | |
13943 | ||
13944 | if test "x$LEX" != "x:"; then | |
13945 | cat >conftest.l <<_ACEOF | |
13946 | %% | |
13947 | a { ECHO; } | |
13948 | b { REJECT; } | |
13949 | c { yymore (); } | |
13950 | d { yyless (1); } | |
13951 | e { yyless (input () != 0); } | |
13952 | f { unput (yytext[0]); } | |
13953 | . { BEGIN INITIAL; } | |
13954 | %% | |
13955 | #ifdef YYTEXT_POINTER | |
13956 | extern char *yytext; | |
13957 | #endif | |
9c60689e | 13958 | int |
47aaa820 | 13959 | main (void) |
9c60689e | 13960 | { |
47aaa820 | 13961 | return ! yylex () + ! yywrap (); |
9c60689e DWT |
13962 | } |
13963 | _ACEOF | |
47aaa820 DWT |
13964 | { { ac_try="$LEX conftest.l" |
13965 | case "(($ac_try" in | |
13966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13967 | *) ac_try_echo=$ac_try;; | |
13968 | esac | |
13969 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13970 | $as_echo "$ac_try_echo"; } >&5 | |
13971 | (eval "$LEX conftest.l") 2>&5 | |
13972 | ac_status=$? | |
13973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13974 | test $ac_status = 0; } | |
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
13976 | $as_echo_n "checking lex output file root... " >&6; } | |
13977 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
13978 | $as_echo_n "(cached) " >&6 | |
13979 | else | |
13980 | ||
13981 | if test -f lex.yy.c; then | |
13982 | ac_cv_prog_lex_root=lex.yy | |
13983 | elif test -f lexyy.c; then | |
13984 | ac_cv_prog_lex_root=lexyy | |
13985 | else | |
13986 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
13987 | fi | |
13988 | fi | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
13990 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
13991 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
13992 | ||
13993 | if test -z "${LEXLIB+set}"; then | |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
13995 | $as_echo_n "checking lex library... " >&6; } | |
13996 | if test "${ac_cv_lib_lex+set}" = set; then : | |
13997 | $as_echo_n "(cached) " >&6 | |
13998 | else | |
13999 | ||
14000 | ac_save_LIBS=$LIBS | |
14001 | ac_cv_lib_lex='none needed' | |
14002 | for ac_lib in '' -lfl -ll; do | |
14003 | LIBS="$ac_lib $ac_save_LIBS" | |
14004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14005 | /* end confdefs.h. */ | |
14006 | `cat $LEX_OUTPUT_ROOT.c` | |
14007 | _ACEOF | |
9c60689e | 14008 | if ac_fn_cxx_try_link "$LINENO"; then : |
47aaa820 | 14009 | ac_cv_lib_lex=$ac_lib |
9c60689e | 14010 | fi |
47aaa820 DWT |
14011 | rm -f core conftest.err conftest.$ac_objext \ |
14012 | conftest$ac_exeext conftest.$ac_ext | |
14013 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14014 | done | |
14015 | LIBS=$ac_save_LIBS | |
14016 | ||
14017 | fi | |
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
14019 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14020 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14021 | fi | |
14022 | ||
14023 | ||
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14025 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
14026 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
14027 | $as_echo_n "(cached) " >&6 | |
14028 | else | |
14029 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
14030 | # default is implementation-dependent. Figure out which it is, since | |
14031 | # not all implementations provide the %pointer and %array declarations. | |
14032 | ac_cv_prog_lex_yytext_pointer=no | |
14033 | ac_save_LIBS=$LIBS | |
14034 | LIBS="$LEXLIB $ac_save_LIBS" | |
14035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14036 | /* end confdefs.h. */ | |
14037 | #define YYTEXT_POINTER 1 | |
14038 | `cat $LEX_OUTPUT_ROOT.c` | |
14039 | _ACEOF | |
14040 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14041 | ac_cv_prog_lex_yytext_pointer=yes | |
9c60689e DWT |
14042 | fi |
14043 | rm -f core conftest.err conftest.$ac_objext \ | |
14044 | conftest$ac_exeext conftest.$ac_ext | |
47aaa820 | 14045 | LIBS=$ac_save_LIBS |
9c60689e | 14046 | |
47aaa820 DWT |
14047 | fi |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
14049 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14050 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
9c60689e | 14051 | |
47aaa820 | 14052 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9c60689e | 14053 | |
47aaa820 DWT |
14054 | fi |
14055 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
9c60689e | 14056 | |
47aaa820 DWT |
14057 | fi |
14058 | if test "$LEX" = :; then | |
14059 | LEX=${am_missing_run}flex | |
14060 | fi | |
9c60689e | 14061 | |
9c60689e | 14062 | |
9c60689e | 14063 | |
9c60689e | 14064 | |
47aaa820 DWT |
14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5 |
14066 | $as_echo_n "checking if flex is the lexer generator... " >&6; } | |
14067 | if test "${ax_cv_prog_flex+set}" = set; then : | |
14068 | $as_echo_n "(cached) " >&6 | |
14069 | else | |
14070 | ||
14071 | if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then : | |
14072 | ||
14073 | ax_cv_prog_flex=yes | |
14074 | ||
14075 | else | |
14076 | ||
14077 | ax_cv_prog_flex=no | |
14078 | ||
14079 | fi | |
14080 | ||
14081 | fi | |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5 | |
14083 | $as_echo "$ax_cv_prog_flex" >&6; } | |
14084 | if test "$ax_cv_prog_flex" = yes; then : | |
14085 | ||
14086 | : | |
9c60689e | 14087 | |
47aaa820 DWT |
14088 | FLEX=$LEX |
14089 | FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
9c60689e | 14090 | |
9c60689e | 14091 | |
47aaa820 | 14092 | else |
9c60689e | 14093 | |
47aaa820 DWT |
14094 | : |
14095 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
9c60689e | 14096 | |
47aaa820 | 14097 | fi |
9c60689e | 14098 | |
47aaa820 DWT |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5 |
14100 | $as_echo_n "checking if flex is >= 2.5.33... " >&6; } | |
14101 | as_arg_v1=$FLEX_VERSION | |
14102 | as_arg_v2=2.5.33 | |
14103 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
14104 | case $? in #( | |
14105 | 1) : | |
9c60689e | 14106 | |
47aaa820 DWT |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14108 | $as_echo "no" >&6; } | |
14109 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
14110 | ;; #( | |
14111 | 0) : | |
14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14113 | $as_echo "yes" >&6; } ;; #( | |
14114 | 2) : | |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14116 | $as_echo "yes" >&6; } ;; #( | |
14117 | *) : | |
14118 | ;; | |
14119 | esac | |
14120 | ||
14121 | for ac_prog in bash | |
14122 | do | |
14123 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14124 | set dummy $ac_prog; ac_word=$2 | |
14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14126 | $as_echo_n "checking for $ac_word... " >&6; } | |
14127 | if test "${ac_cv_prog__BASH+set}" = set; then : | |
14128 | $as_echo_n "(cached) " >&6 | |
14129 | else | |
14130 | if test -n "$_BASH"; then | |
14131 | ac_cv_prog__BASH="$_BASH" # Let the user override the test. | |
14132 | else | |
14133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14134 | for as_dir in $PATH | |
14135 | do | |
14136 | IFS=$as_save_IFS | |
14137 | test -z "$as_dir" && as_dir=. | |
14138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14140 | ac_cv_prog__BASH="$ac_prog" | |
14141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14142 | break 2 | |
9c60689e | 14143 | fi |
47aaa820 DWT |
14144 | done |
14145 | done | |
14146 | IFS=$as_save_IFS | |
9c60689e | 14147 | |
47aaa820 DWT |
14148 | fi |
14149 | fi | |
14150 | _BASH=$ac_cv_prog__BASH | |
14151 | if test -n "$_BASH"; then | |
14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
14153 | $as_echo "$_BASH" >&6; } | |
14154 | else | |
14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14156 | $as_echo "no" >&6; } | |
14157 | fi | |
14158 | ||
14159 | ||
14160 | test -n "$_BASH" && break | |
14161 | done | |
14162 | ||
27557508 | 14163 | |
47aaa820 DWT |
14164 | for ac_prog in gperf |
14165 | do | |
14166 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14167 | set dummy $ac_prog; ac_word=$2 | |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14169 | $as_echo_n "checking for $ac_word... " >&6; } | |
14170 | if test "${ac_cv_prog_GPERF+set}" = set; then : | |
14171 | $as_echo_n "(cached) " >&6 | |
14172 | else | |
14173 | if test -n "$GPERF"; then | |
14174 | ac_cv_prog_GPERF="$GPERF" # Let the user override the test. | |
14175 | else | |
14176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14177 | for as_dir in $PATH | |
14178 | do | |
14179 | IFS=$as_save_IFS | |
14180 | test -z "$as_dir" && as_dir=. | |
14181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14183 | ac_cv_prog_GPERF="$ac_prog" | |
14184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14185 | break 2 | |
9c60689e | 14186 | fi |
47aaa820 DWT |
14187 | done |
14188 | done | |
14189 | IFS=$as_save_IFS | |
9c60689e | 14190 | |
47aaa820 DWT |
14191 | fi |
14192 | fi | |
14193 | GPERF=$ac_cv_prog_GPERF | |
14194 | if test -n "$GPERF"; then | |
14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 | |
14196 | $as_echo "$GPERF" >&6; } | |
14197 | else | |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14199 | $as_echo "no" >&6; } | |
14200 | fi | |
9c60689e | 14201 | |
9c60689e | 14202 | |
47aaa820 DWT |
14203 | test -n "$GPERF" && break |
14204 | done | |
14205 | ||
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5 | |
14207 | $as_echo_n "checking if gperf >= 3.0.3... " >&6; } | |
14208 | GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
14209 | as_arg_v1=$GPERF_VERSION | |
14210 | as_arg_v2=3.0.3 | |
14211 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
14212 | case $? in #( | |
14213 | 1) : | |
14214 | ||
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14216 | $as_echo "no" >&6; } | |
14217 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 | |
14218 | ;; #( | |
14219 | 0) : | |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14221 | $as_echo "yes" >&6; } ;; #( | |
14222 | 2) : | |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14224 | $as_echo "yes" >&6; } ;; #( | |
14225 | *) : | |
14226 | ;; | |
9c60689e | 14227 | esac |
47aaa820 DWT |
14228 | for ac_prog in time |
14229 | do | |
14230 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14231 | set dummy $ac_prog; ac_word=$2 | |
14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14233 | $as_echo_n "checking for $ac_word... " >&6; } | |
14234 | if test "${ac_cv_prog_TIME+set}" = set; then : | |
14235 | $as_echo_n "(cached) " >&6 | |
14236 | else | |
14237 | if test -n "$TIME"; then | |
14238 | ac_cv_prog_TIME="$TIME" # Let the user override the test. | |
14239 | else | |
14240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14241 | for as_dir in $PATH | |
14242 | do | |
14243 | IFS=$as_save_IFS | |
14244 | test -z "$as_dir" && as_dir=. | |
14245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14247 | ac_cv_prog_TIME="$ac_prog" | |
14248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14249 | break 2 | |
14250 | fi | |
14251 | done | |
14252 | done | |
14253 | IFS=$as_save_IFS | |
9c60689e | 14254 | |
9c60689e | 14255 | fi |
9c60689e | 14256 | fi |
47aaa820 DWT |
14257 | TIME=$ac_cv_prog_TIME |
14258 | if test -n "$TIME"; then | |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
14260 | $as_echo "$TIME" >&6; } | |
14261 | else | |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14263 | $as_echo "no" >&6; } | |
9c60689e DWT |
14264 | fi |
14265 | ||
14266 | ||
47aaa820 DWT |
14267 | test -n "$TIME" && break |
14268 | done | |
9c60689e DWT |
14269 | |
14270 | ||
47aaa820 | 14271 | apr_found="no" |
9c60689e | 14272 | |
47aaa820 DWT |
14273 | if test "$target_os" = "os2-emx"; then |
14274 | # Scripts don't pass test -x on OS/2 | |
14275 | TEST_X="test -f" | |
14276 | else | |
14277 | TEST_X="test -x" | |
14278 | fi | |
9c60689e | 14279 | |
47aaa820 | 14280 | acceptable_majors="1" |
9c60689e | 14281 | |
47aaa820 DWT |
14282 | apr_temp_acceptable_apr_config="" |
14283 | for apr_temp_major in $acceptable_majors | |
14284 | do | |
14285 | case $apr_temp_major in | |
14286 | 0) | |
14287 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14288 | ;; | |
14289 | *) | |
14290 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14291 | ;; | |
14292 | esac | |
14293 | done | |
9c60689e | 14294 | |
47aaa820 DWT |
14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 |
14296 | $as_echo_n "checking for APR... " >&6; } | |
9c60689e | 14297 | |
47aaa820 DWT |
14298 | # Check whether --with-apr was given. |
14299 | if test "${with_apr+set}" = set; then : | |
14300 | withval=$with_apr; | |
14301 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14302 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14303 | fi | |
9c60689e | 14304 | |
47aaa820 DWT |
14305 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config |
14306 | do | |
14307 | for lookdir in "$withval/bin" "$withval" | |
14308 | do | |
14309 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14310 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
9c60689e | 14311 | |
47aaa820 DWT |
14312 | apr_found="yes" |
14313 | break 2 | |
14314 | fi | |
14315 | done | |
14316 | done | |
9c60689e | 14317 | |
47aaa820 DWT |
14318 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then |
14319 | apr_config="$withval" | |
14320 | apr_found="yes" | |
14321 | fi | |
9c60689e | 14322 | |
47aaa820 DWT |
14323 | if test "$apr_found" != "yes"; then |
14324 | 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 | |
14325 | fi | |
9c60689e | 14326 | |
47aaa820 | 14327 | else |
9c60689e | 14328 | |
47aaa820 DWT |
14329 | if test -n "1" && test "1" = "1"; then |
14330 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14331 | do | |
14332 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14333 | apr_config="$apr_temp_apr_config_file" | |
9c60689e | 14334 | |
47aaa820 DWT |
14335 | apr_found="yes" |
14336 | break | |
14337 | else | |
14338 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14339 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14340 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
9c60689e | 14341 | |
47aaa820 DWT |
14342 | apr_found="yes" |
14343 | break 2 | |
14344 | fi | |
14345 | done | |
14346 | fi | |
14347 | done | |
14348 | fi | |
14349 | if test "$apr_found" = "no" && test -d ""; then | |
14350 | apr_temp_abs_srcdir="`cd && pwd`" | |
14351 | apr_found="reconfig" | |
14352 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14353 | case $apr_bundled_major in | |
14354 | "") | |
14355 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14356 | ;; | |
14357 | 0) | |
14358 | apr_temp_apr_config_file="apr-config" | |
14359 | ;; | |
14360 | *) | |
14361 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14362 | ;; | |
14363 | esac | |
14364 | if test -n ""; then | |
14365 | apr_config="/$apr_temp_apr_config_file" | |
14366 | else | |
14367 | apr_config="/$apr_temp_apr_config_file" | |
14368 | fi | |
14369 | fi | |
9c60689e | 14370 | |
47aaa820 | 14371 | fi |
9c60689e DWT |
14372 | |
14373 | ||
47aaa820 DWT |
14374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
14375 | $as_echo "$apr_found" >&6; } | |
9c60689e | 14376 | |
47aaa820 DWT |
14377 | case $apr_found in #( |
14378 | yes) : | |
9c60689e DWT |
14379 | |
14380 | ||
47aaa820 DWT |
14381 | for element in `$apr_config --includes`; do |
14382 | haveit= | |
14383 | for x in $CPPFLAGS; do | |
9c60689e | 14384 | |
47aaa820 DWT |
14385 | acl_save_prefix="$prefix" |
14386 | prefix="$acl_final_prefix" | |
14387 | acl_save_exec_prefix="$exec_prefix" | |
14388 | exec_prefix="$acl_final_exec_prefix" | |
14389 | eval x=\"$x\" | |
14390 | exec_prefix="$acl_save_exec_prefix" | |
14391 | prefix="$acl_save_prefix" | |
9c60689e | 14392 | |
47aaa820 DWT |
14393 | if test "X$x" = "X$element"; then |
14394 | haveit=yes | |
14395 | break | |
14396 | fi | |
14397 | done | |
14398 | if test -z "$haveit"; then | |
14399 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
14400 | fi | |
14401 | done | |
9c60689e | 14402 | |
47aaa820 | 14403 | LTLIBAPR=`$apr_config --link-libtool` |
9c60689e | 14404 | |
47aaa820 DWT |
14405 | ;; #( |
14406 | *) : | |
14407 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
14408 | esac | |
9c60689e DWT |
14409 | |
14410 | ||
47aaa820 DWT |
14411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 |
14412 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
14413 | if test "${vl_cv_lib_readline+set}" = set; then : | |
14414 | $as_echo_n "(cached) " >&6 | |
14415 | else | |
9c60689e | 14416 | |
47aaa820 DWT |
14417 | ORIG_LIBS="$LIBS" |
14418 | for readline_lib in readline edit editline; do | |
14419 | for termcap_lib in "" termcap curses ncurses; do | |
14420 | if test -z "$termcap_lib"; then | |
14421 | TRY_LIB="-l$readline_lib" | |
14422 | else | |
14423 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
14424 | fi | |
14425 | LIBS="$ORIG_LIBS $TRY_LIB" | |
14426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14427 | /* end confdefs.h. */ | |
9c60689e | 14428 | |
47aaa820 DWT |
14429 | /* Override any GCC internal prototype to avoid an error. |
14430 | Use char because int might match the return type of a GCC | |
14431 | builtin and then its argument prototype would still apply. */ | |
14432 | #ifdef __cplusplus | |
14433 | extern "C" | |
14434 | #endif | |
14435 | char readline (); | |
14436 | int | |
14437 | main () | |
14438 | { | |
14439 | return readline (); | |
14440 | ; | |
14441 | return 0; | |
14442 | } | |
14443 | _ACEOF | |
14444 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14445 | vl_cv_lib_readline="$TRY_LIB" | |
14446 | fi | |
14447 | rm -f core conftest.err conftest.$ac_objext \ | |
14448 | conftest$ac_exeext conftest.$ac_ext | |
14449 | if test -n "$vl_cv_lib_readline"; then | |
14450 | break | |
14451 | fi | |
14452 | done | |
14453 | if test -n "$vl_cv_lib_readline"; then | |
14454 | break | |
14455 | fi | |
14456 | done | |
14457 | if test -z "$vl_cv_lib_readline"; then | |
14458 | vl_cv_lib_readline="no" | |
14459 | LIBS="$ORIG_LIBS" | |
14460 | fi | |
9c60689e | 14461 | |
47aaa820 DWT |
14462 | fi |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 | |
14464 | $as_echo "$vl_cv_lib_readline" >&6; } | |
9c60689e | 14465 | |
47aaa820 | 14466 | if test "$vl_cv_lib_readline" != "no"; then |
9c60689e | 14467 | |
47aaa820 | 14468 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
9c60689e | 14469 | |
47aaa820 DWT |
14470 | for ac_header in readline.h readline/readline.h |
14471 | do : | |
14472 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14473 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14474 | eval as_val=\$$as_ac_Header | |
14475 | if test "x$as_val" = x""yes; then : | |
14476 | cat >>confdefs.h <<_ACEOF | |
14477 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14478 | _ACEOF | |
9c60689e | 14479 | |
9c60689e DWT |
14480 | fi |
14481 | ||
47aaa820 | 14482 | done |
9c60689e | 14483 | |
47aaa820 DWT |
14484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 |
14485 | $as_echo_n "checking whether readline supports history... " >&6; } | |
14486 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
14487 | $as_echo_n "(cached) " >&6 | |
14488 | else | |
9c60689e | 14489 | |
47aaa820 DWT |
14490 | vl_cv_lib_readline_history="no" |
14491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14492 | /* end confdefs.h. */ | |
9c60689e | 14493 | |
47aaa820 DWT |
14494 | /* Override any GCC internal prototype to avoid an error. |
14495 | Use char because int might match the return type of a GCC | |
14496 | builtin and then its argument prototype would still apply. */ | |
14497 | #ifdef __cplusplus | |
14498 | extern "C" | |
14499 | #endif | |
14500 | char add_history (); | |
14501 | int | |
14502 | main () | |
14503 | { | |
14504 | return add_history (); | |
14505 | ; | |
14506 | return 0; | |
14507 | } | |
14508 | _ACEOF | |
14509 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14510 | vl_cv_lib_readline_history="yes" | |
14511 | fi | |
14512 | rm -f core conftest.err conftest.$ac_objext \ | |
14513 | conftest$ac_exeext conftest.$ac_ext | |
9c60689e | 14514 | |
47aaa820 DWT |
14515 | fi |
14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
14517 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
14518 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
9c60689e | 14519 | |
47aaa820 | 14520 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
9c60689e | 14521 | |
47aaa820 DWT |
14522 | for ac_header in history.h readline/history.h |
14523 | do : | |
14524 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14525 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14526 | eval as_val=\$$as_ac_Header | |
14527 | if test "x$as_val" = x""yes; then : | |
14528 | cat >>confdefs.h <<_ACEOF | |
14529 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14530 | _ACEOF | |
9c60689e | 14531 | |
47aaa820 | 14532 | fi |
9c60689e | 14533 | |
47aaa820 | 14534 | done |
9c60689e | 14535 | |
47aaa820 DWT |
14536 | fi |
14537 | fi | |
9c60689e DWT |
14538 | |
14539 | # Find a good install program. We prefer a C program (faster), | |
14540 | # so one script is as good as another. But avoid the broken or | |
14541 | # incompatible versions: | |
14542 | # SysV /etc/install, /usr/sbin/install | |
14543 | # SunOS /usr/etc/install | |
14544 | # IRIX /sbin/install | |
14545 | # AIX /bin/install | |
14546 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14547 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14548 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14549 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
14550 | # OS/2's system install, which has a completely different semantic | |
14551 | # ./install, which can be erroneously created by make from ./install.sh. | |
14552 | # Reject install programs that cannot install multiple files. | |
14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
14554 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
14555 | if test -z "$INSTALL"; then | |
14556 | if test "${ac_cv_path_install+set}" = set; then : | |
14557 | $as_echo_n "(cached) " >&6 | |
14558 | else | |
14559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14560 | for as_dir in $PATH | |
14561 | do | |
14562 | IFS=$as_save_IFS | |
14563 | test -z "$as_dir" && as_dir=. | |
14564 | # Account for people who put trailing slashes in PATH elements. | |
14565 | case $as_dir/ in #(( | |
14566 | ./ | .// | /[cC]/* | \ | |
14567 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
14568 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
14569 | /usr/ucb/* ) ;; | |
14570 | *) | |
14571 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14572 | # Don't use installbsd from OSF since it installs stuff as root | |
14573 | # by default. | |
14574 | for ac_prog in ginstall scoinst install; do | |
14575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14576 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
14577 | if test $ac_prog = install && | |
14578 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14579 | # AIX install. It has an incompatible calling convention. | |
14580 | : | |
14581 | elif test $ac_prog = install && | |
14582 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14583 | # program-specific install script used by HP pwplus--don't use. | |
14584 | : | |
14585 | else | |
14586 | rm -rf conftest.one conftest.two conftest.dir | |
14587 | echo one > conftest.one | |
14588 | echo two > conftest.two | |
14589 | mkdir conftest.dir | |
14590 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
14591 | test -s conftest.one && test -s conftest.two && | |
14592 | test -s conftest.dir/conftest.one && | |
14593 | test -s conftest.dir/conftest.two | |
14594 | then | |
14595 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14596 | break 3 | |
14597 | fi | |
14598 | fi | |
14599 | fi | |
14600 | done | |
14601 | done | |
14602 | ;; | |
14603 | esac | |
14604 | ||
14605 | done | |
14606 | IFS=$as_save_IFS | |
14607 | ||
14608 | rm -rf conftest.one conftest.two conftest.dir | |
14609 | ||
14610 | fi | |
14611 | if test "${ac_cv_path_install+set}" = set; then | |
14612 | INSTALL=$ac_cv_path_install | |
14613 | else | |
14614 | # As a last resort, use the slow shell script. Don't cache a | |
14615 | # value for INSTALL within a source directory, because that will | |
14616 | # break other packages using the cache if that directory is | |
14617 | # removed, or if the value is a relative name. | |
14618 | INSTALL=$ac_install_sh | |
14619 | fi | |
14620 | fi | |
14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
14622 | $as_echo "$INSTALL" >&6; } | |
14623 | ||
14624 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14625 | # It thinks the first close brace ends the variable substitution. | |
14626 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14627 | ||
14628 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14629 | ||
14630 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14631 | ||
94690cff DWT |
14632 | ac_ext=c |
14633 | ac_cpp='$CPP $CPPFLAGS' | |
14634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14637 | ||
9c60689e DWT |
14638 | |
14639 | if test "X$prefix" = "XNONE"; then | |
14640 | acl_final_prefix="$ac_default_prefix" | |
14641 | else | |
14642 | acl_final_prefix="$prefix" | |
14643 | fi | |
14644 | if test "X$exec_prefix" = "XNONE"; then | |
14645 | acl_final_exec_prefix='${prefix}' | |
14646 | else | |
14647 | acl_final_exec_prefix="$exec_prefix" | |
14648 | fi | |
14649 | acl_save_prefix="$prefix" | |
14650 | prefix="$acl_final_prefix" | |
14651 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
14652 | prefix="$acl_save_prefix" | |
14653 | ||
14654 | ||
14655 | # Check whether --with-gnu-ld was given. | |
14656 | if test "${with_gnu_ld+set}" = set; then : | |
14657 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
14658 | else | |
14659 | with_gnu_ld=no | |
14660 | fi | |
14661 | ||
14662 | # Prepare PATH_SEPARATOR. | |
14663 | # The user is always right. | |
14664 | if test "${PATH_SEPARATOR+set}" != set; then | |
14665 | echo "#! /bin/sh" >conf$$.sh | |
14666 | echo "exit 0" >>conf$$.sh | |
14667 | chmod +x conf$$.sh | |
14668 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14669 | PATH_SEPARATOR=';' | |
14670 | else | |
14671 | PATH_SEPARATOR=: | |
14672 | fi | |
14673 | rm -f conf$$.sh | |
14674 | fi | |
14675 | ac_prog=ld | |
14676 | if test "$GCC" = yes; then | |
14677 | # Check if gcc -print-prog-name=ld gives a path. | |
14678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
14679 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
14680 | case $host in | |
14681 | *-*-mingw*) | |
14682 | # gcc leaves a trailing carriage return which upsets mingw | |
14683 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
14684 | *) | |
14685 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
14686 | esac | |
14687 | case $ac_prog in | |
14688 | # Accept absolute paths. | |
14689 | [\\/]* | [A-Za-z]:[\\/]*) | |
14690 | re_direlt='/[^/][^/]*/\.\./' | |
14691 | # Canonicalize the path of ld | |
14692 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
14693 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
14694 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
14695 | done | |
14696 | test -z "$LD" && LD="$ac_prog" | |
14697 | ;; | |
14698 | "") | |
14699 | # If it fails, then pretend we aren't using GCC. | |
14700 | ac_prog=ld | |
14701 | ;; | |
14702 | *) | |
14703 | # If it is relative, then search for the first ld in PATH. | |
14704 | with_gnu_ld=unknown | |
14705 | ;; | |
14706 | esac | |
14707 | elif test "$with_gnu_ld" = yes; then | |
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
14709 | $as_echo_n "checking for GNU ld... " >&6; } | |
14710 | else | |
14711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
14712 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
14713 | fi | |
14714 | if test "${acl_cv_path_LD+set}" = set; then : | |
14715 | $as_echo_n "(cached) " >&6 | |
14716 | else | |
14717 | if test -z "$LD"; then | |
14718 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
14719 | for ac_dir in $PATH; do | |
14720 | test -z "$ac_dir" && ac_dir=. | |
14721 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
14722 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
14723 | # Check to see if the program is GNU ld. I'd rather use --version, | |
14724 | # but apparently some GNU ld's only accept -v. | |
14725 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
14726 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
14727 | *GNU* | *'with BFD'*) | |
14728 | test "$with_gnu_ld" != no && break ;; | |
14729 | *) | |
14730 | test "$with_gnu_ld" != yes && break ;; | |
14731 | esac | |
14732 | fi | |
14733 | done | |
14734 | IFS="$ac_save_ifs" | |
14735 | else | |
14736 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
14737 | fi | |
14738 | fi | |
14739 | ||
14740 | LD="$acl_cv_path_LD" | |
14741 | if test -n "$LD"; then | |
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14743 | $as_echo "$LD" >&6; } | |
14744 | else | |
14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14746 | $as_echo "no" >&6; } | |
14747 | fi | |
14748 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
14750 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
14751 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
14752 | $as_echo_n "(cached) " >&6 | |
14753 | else | |
14754 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
14755 | case `$LD -v 2>&1 </dev/null` in | |
14756 | *GNU* | *'with BFD'*) | |
14757 | acl_cv_prog_gnu_ld=yes ;; | |
14758 | *) | |
14759 | acl_cv_prog_gnu_ld=no ;; | |
14760 | esac | |
14761 | fi | |
14762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
14763 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
14764 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
14765 | ||
14766 | ||
14767 | ||
14768 | ||
14769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
14770 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
14771 | if test "${acl_cv_rpath+set}" = set; then : | |
14772 | $as_echo_n "(cached) " >&6 | |
14773 | else | |
14774 | ||
14775 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
14776 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
14777 | . ./conftest.sh | |
14778 | rm -f ./conftest.sh | |
14779 | acl_cv_rpath=done | |
14780 | ||
14781 | fi | |
14782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
14783 | $as_echo "$acl_cv_rpath" >&6; } | |
14784 | wl="$acl_cv_wl" | |
14785 | acl_libext="$acl_cv_libext" | |
14786 | acl_shlibext="$acl_cv_shlibext" | |
14787 | acl_libname_spec="$acl_cv_libname_spec" | |
14788 | acl_library_names_spec="$acl_cv_library_names_spec" | |
14789 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
14790 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
14791 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
14792 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
14793 | # Check whether --enable-rpath was given. | |
14794 | if test "${enable_rpath+set}" = set; then : | |
14795 | enableval=$enable_rpath; : | |
14796 | else | |
14797 | enable_rpath=yes | |
14798 | fi | |
14799 | ||
14800 | ||
14801 | ||
14802 | acl_libdirstem=lib | |
14803 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
14804 | if test -n "$searchpath"; then | |
14805 | acl_save_IFS="${IFS= }"; IFS=":" | |
14806 | for searchdir in $searchpath; do | |
14807 | if test -d "$searchdir"; then | |
14808 | case "$searchdir" in | |
14809 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
14810 | *) searchdir=`cd "$searchdir" && pwd` | |
14811 | case "$searchdir" in | |
14812 | */lib64 ) acl_libdirstem=lib64 ;; | |
14813 | esac ;; | |
14814 | esac | |
14815 | fi | |
14816 | done | |
14817 | IFS="$acl_save_IFS" | |
14818 | fi | |
14819 | ||
14820 | ||
14821 | ||
14822 | ||
14823 | ||
14824 | ||
14825 | ||
14826 | ||
14827 | ||
14828 | use_additional=yes | |
14829 | ||
14830 | acl_save_prefix="$prefix" | |
14831 | prefix="$acl_final_prefix" | |
14832 | acl_save_exec_prefix="$exec_prefix" | |
14833 | exec_prefix="$acl_final_exec_prefix" | |
14834 | ||
14835 | eval additional_includedir=\"$includedir\" | |
14836 | eval additional_libdir=\"$libdir\" | |
14837 | ||
14838 | exec_prefix="$acl_save_exec_prefix" | |
14839 | prefix="$acl_save_prefix" | |
14840 | ||
14841 | ||
14842 | # Check whether --with-libiconv-prefix was given. | |
14843 | if test "${with_libiconv_prefix+set}" = set; then : | |
14844 | withval=$with_libiconv_prefix; | |
14845 | if test "X$withval" = "Xno"; then | |
14846 | use_additional=no | |
14847 | else | |
14848 | if test "X$withval" = "X"; then | |
14849 | ||
14850 | acl_save_prefix="$prefix" | |
14851 | prefix="$acl_final_prefix" | |
14852 | acl_save_exec_prefix="$exec_prefix" | |
14853 | exec_prefix="$acl_final_exec_prefix" | |
14854 | ||
14855 | eval additional_includedir=\"$includedir\" | |
14856 | eval additional_libdir=\"$libdir\" | |
14857 | ||
14858 | exec_prefix="$acl_save_exec_prefix" | |
14859 | prefix="$acl_save_prefix" | |
14860 | ||
14861 | else | |
14862 | additional_includedir="$withval/include" | |
14863 | additional_libdir="$withval/$acl_libdirstem" | |
14864 | fi | |
14865 | fi | |
14866 | ||
14867 | fi | |
14868 | ||
14869 | LIBICONV= | |
14870 | LTLIBICONV= | |
14871 | INCICONV= | |
14872 | LIBICONV_PREFIX= | |
14873 | rpathdirs= | |
14874 | ltrpathdirs= | |
14875 | names_already_handled= | |
14876 | names_next_round='iconv ' | |
14877 | while test -n "$names_next_round"; do | |
14878 | names_this_round="$names_next_round" | |
14879 | names_next_round= | |
14880 | for name in $names_this_round; do | |
14881 | already_handled= | |
14882 | for n in $names_already_handled; do | |
14883 | if test "$n" = "$name"; then | |
14884 | already_handled=yes | |
14885 | break | |
14886 | fi | |
14887 | done | |
14888 | if test -z "$already_handled"; then | |
14889 | names_already_handled="$names_already_handled $name" | |
14890 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
14891 | eval value=\"\$HAVE_LIB$uppername\" | |
14892 | if test -n "$value"; then | |
14893 | if test "$value" = yes; then | |
14894 | eval value=\"\$LIB$uppername\" | |
14895 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
14896 | eval value=\"\$LTLIB$uppername\" | |
14897 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
14898 | else | |
14899 | : | |
14900 | fi | |
14901 | else | |
14902 | found_dir= | |
14903 | found_la= | |
14904 | found_so= | |
14905 | found_a= | |
14906 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
14907 | if test -n "$acl_shlibext"; then | |
14908 | shrext=".$acl_shlibext" # typically: shrext=.so | |
14909 | else | |
14910 | shrext= | |
14911 | fi | |
14912 | if test $use_additional = yes; then | |
14913 | dir="$additional_libdir" | |
14914 | if test -n "$acl_shlibext"; then | |
14915 | if test -f "$dir/$libname$shrext"; then | |
14916 | found_dir="$dir" | |
14917 | found_so="$dir/$libname$shrext" | |
14918 | else | |
14919 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14920 | ver=`(cd "$dir" && \ | |
14921 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14922 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14923 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14924 | | sed 1q ) 2>/dev/null` | |
14925 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14926 | found_dir="$dir" | |
14927 | found_so="$dir/$libname$shrext.$ver" | |
14928 | fi | |
14929 | else | |
14930 | eval library_names=\"$acl_library_names_spec\" | |
14931 | for f in $library_names; do | |
14932 | if test -f "$dir/$f"; then | |
14933 | found_dir="$dir" | |
14934 | found_so="$dir/$f" | |
14935 | break | |
14936 | fi | |
14937 | done | |
14938 | fi | |
14939 | fi | |
14940 | fi | |
14941 | if test "X$found_dir" = "X"; then | |
14942 | if test -f "$dir/$libname.$acl_libext"; then | |
14943 | found_dir="$dir" | |
14944 | found_a="$dir/$libname.$acl_libext" | |
14945 | fi | |
14946 | fi | |
14947 | if test "X$found_dir" != "X"; then | |
14948 | if test -f "$dir/$libname.la"; then | |
14949 | found_la="$dir/$libname.la" | |
14950 | fi | |
14951 | fi | |
14952 | fi | |
14953 | if test "X$found_dir" = "X"; then | |
14954 | for x in $LDFLAGS $LTLIBICONV; do | |
14955 | ||
14956 | acl_save_prefix="$prefix" | |
14957 | prefix="$acl_final_prefix" | |
14958 | acl_save_exec_prefix="$exec_prefix" | |
14959 | exec_prefix="$acl_final_exec_prefix" | |
14960 | eval x=\"$x\" | |
14961 | exec_prefix="$acl_save_exec_prefix" | |
14962 | prefix="$acl_save_prefix" | |
14963 | ||
14964 | case "$x" in | |
14965 | -L*) | |
14966 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
14967 | if test -n "$acl_shlibext"; then | |
14968 | if test -f "$dir/$libname$shrext"; then | |
14969 | found_dir="$dir" | |
14970 | found_so="$dir/$libname$shrext" | |
14971 | else | |
14972 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14973 | ver=`(cd "$dir" && \ | |
14974 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14975 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14976 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14977 | | sed 1q ) 2>/dev/null` | |
14978 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14979 | found_dir="$dir" | |
14980 | found_so="$dir/$libname$shrext.$ver" | |
14981 | fi | |
14982 | else | |
14983 | eval library_names=\"$acl_library_names_spec\" | |
14984 | for f in $library_names; do | |
14985 | if test -f "$dir/$f"; then | |
14986 | found_dir="$dir" | |
14987 | found_so="$dir/$f" | |
14988 | break | |
14989 | fi | |
14990 | done | |
14991 | fi | |
14992 | fi | |
14993 | fi | |
14994 | if test "X$found_dir" = "X"; then | |
14995 | if test -f "$dir/$libname.$acl_libext"; then | |
14996 | found_dir="$dir" | |
14997 | found_a="$dir/$libname.$acl_libext" | |
14998 | fi | |
14999 | fi | |
15000 | if test "X$found_dir" != "X"; then | |
15001 | if test -f "$dir/$libname.la"; then | |
15002 | found_la="$dir/$libname.la" | |
15003 | fi | |
15004 | fi | |
15005 | ;; | |
15006 | esac | |
15007 | if test "X$found_dir" != "X"; then | |
15008 | break | |
15009 | fi | |
15010 | done | |
15011 | fi | |
15012 | if test "X$found_dir" != "X"; then | |
15013 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
15014 | if test "X$found_so" != "X"; then | |
15015 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
15016 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15017 | else | |
15018 | haveit= | |
15019 | for x in $ltrpathdirs; do | |
15020 | if test "X$x" = "X$found_dir"; then | |
15021 | haveit=yes | |
15022 | break | |
15023 | fi | |
15024 | done | |
15025 | if test -z "$haveit"; then | |
15026 | ltrpathdirs="$ltrpathdirs $found_dir" | |
15027 | fi | |
15028 | if test "$acl_hardcode_direct" = yes; then | |
15029 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15030 | else | |
15031 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
15032 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15033 | haveit= | |
15034 | for x in $rpathdirs; do | |
15035 | if test "X$x" = "X$found_dir"; then | |
15036 | haveit=yes | |
15037 | break | |
15038 | fi | |
15039 | done | |
15040 | if test -z "$haveit"; then | |
15041 | rpathdirs="$rpathdirs $found_dir" | |
15042 | fi | |
15043 | else | |
15044 | haveit= | |
15045 | for x in $LDFLAGS $LIBICONV; do | |
15046 | ||
15047 | acl_save_prefix="$prefix" | |
15048 | prefix="$acl_final_prefix" | |
15049 | acl_save_exec_prefix="$exec_prefix" | |
15050 | exec_prefix="$acl_final_exec_prefix" | |
15051 | eval x=\"$x\" | |
15052 | exec_prefix="$acl_save_exec_prefix" | |
15053 | prefix="$acl_save_prefix" | |
15054 | ||
15055 | if test "X$x" = "X-L$found_dir"; then | |
15056 | haveit=yes | |
15057 | break | |
15058 | fi | |
15059 | done | |
15060 | if test -z "$haveit"; then | |
15061 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
15062 | fi | |
15063 | if test "$acl_hardcode_minus_L" != no; then | |
15064 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15065 | else | |
15066 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15067 | fi | |
15068 | fi | |
15069 | fi | |
15070 | fi | |
15071 | else | |
15072 | if test "X$found_a" != "X"; then | |
15073 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
15074 | else | |
15075 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
15076 | fi | |
15077 | fi | |
15078 | additional_includedir= | |
15079 | case "$found_dir" in | |
15080 | */$acl_libdirstem | */$acl_libdirstem/) | |
15081 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
15082 | LIBICONV_PREFIX="$basedir" | |
15083 | additional_includedir="$basedir/include" | |
15084 | ;; | |
15085 | esac | |
15086 | if test "X$additional_includedir" != "X"; then | |
15087 | if test "X$additional_includedir" != "X/usr/include"; then | |
15088 | haveit= | |
15089 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
15090 | if test -n "$GCC"; then | |
15091 | case $host_os in | |
15092 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15093 | esac | |
15094 | fi | |
15095 | fi | |
15096 | if test -z "$haveit"; then | |
15097 | for x in $CPPFLAGS $INCICONV; do | |
15098 | ||
15099 | acl_save_prefix="$prefix" | |
15100 | prefix="$acl_final_prefix" | |
15101 | acl_save_exec_prefix="$exec_prefix" | |
15102 | exec_prefix="$acl_final_exec_prefix" | |
15103 | eval x=\"$x\" | |
15104 | exec_prefix="$acl_save_exec_prefix" | |
15105 | prefix="$acl_save_prefix" | |
15106 | ||
15107 | if test "X$x" = "X-I$additional_includedir"; then | |
15108 | haveit=yes | |
15109 | break | |
15110 | fi | |
15111 | done | |
15112 | if test -z "$haveit"; then | |
15113 | if test -d "$additional_includedir"; then | |
15114 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
15115 | fi | |
15116 | fi | |
15117 | fi | |
15118 | fi | |
15119 | fi | |
15120 | if test -n "$found_la"; then | |
15121 | save_libdir="$libdir" | |
15122 | case "$found_la" in | |
15123 | */* | *\\*) . "$found_la" ;; | |
15124 | *) . "./$found_la" ;; | |
15125 | esac | |
15126 | libdir="$save_libdir" | |
15127 | for dep in $dependency_libs; do | |
15128 | case "$dep" in | |
15129 | -L*) | |
15130 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
15131 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
15132 | haveit= | |
15133 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
15134 | if test -n "$GCC"; then | |
15135 | case $host_os in | |
15136 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15137 | esac | |
15138 | fi | |
15139 | fi | |
15140 | if test -z "$haveit"; then | |
15141 | haveit= | |
15142 | for x in $LDFLAGS $LIBICONV; do | |
15143 | ||
15144 | acl_save_prefix="$prefix" | |
15145 | prefix="$acl_final_prefix" | |
15146 | acl_save_exec_prefix="$exec_prefix" | |
15147 | exec_prefix="$acl_final_exec_prefix" | |
15148 | eval x=\"$x\" | |
15149 | exec_prefix="$acl_save_exec_prefix" | |
15150 | prefix="$acl_save_prefix" | |
15151 | ||
15152 | if test "X$x" = "X-L$additional_libdir"; then | |
15153 | haveit=yes | |
15154 | break | |
15155 | fi | |
15156 | done | |
15157 | if test -z "$haveit"; then | |
15158 | if test -d "$additional_libdir"; then | |
15159 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
15160 | fi | |
15161 | fi | |
15162 | haveit= | |
15163 | for x in $LDFLAGS $LTLIBICONV; do | |
15164 | ||
15165 | acl_save_prefix="$prefix" | |
15166 | prefix="$acl_final_prefix" | |
15167 | acl_save_exec_prefix="$exec_prefix" | |
15168 | exec_prefix="$acl_final_exec_prefix" | |
15169 | eval x=\"$x\" | |
15170 | exec_prefix="$acl_save_exec_prefix" | |
15171 | prefix="$acl_save_prefix" | |
15172 | ||
15173 | if test "X$x" = "X-L$additional_libdir"; then | |
15174 | haveit=yes | |
15175 | break | |
15176 | fi | |
15177 | done | |
15178 | if test -z "$haveit"; then | |
15179 | if test -d "$additional_libdir"; then | |
15180 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
15181 | fi | |
15182 | fi | |
15183 | fi | |
15184 | fi | |
15185 | ;; | |
15186 | -R*) | |
15187 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
15188 | if test "$enable_rpath" != no; then | |
15189 | haveit= | |
15190 | for x in $rpathdirs; do | |
15191 | if test "X$x" = "X$dir"; then | |
15192 | haveit=yes | |
15193 | break | |
15194 | fi | |
15195 | done | |
15196 | if test -z "$haveit"; then | |
15197 | rpathdirs="$rpathdirs $dir" | |
15198 | fi | |
15199 | haveit= | |
15200 | for x in $ltrpathdirs; do | |
15201 | if test "X$x" = "X$dir"; then | |
15202 | haveit=yes | |
15203 | break | |
15204 | fi | |
15205 | done | |
15206 | if test -z "$haveit"; then | |
15207 | ltrpathdirs="$ltrpathdirs $dir" | |
15208 | fi | |
15209 | fi | |
15210 | ;; | |
15211 | -l*) | |
15212 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
15213 | ;; | |
15214 | *.la) | |
15215 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
15216 | ;; | |
15217 | *) | |
15218 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
15219 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
15220 | ;; | |
15221 | esac | |
15222 | done | |
15223 | fi | |
15224 | else | |
15225 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15226 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
15227 | fi | |
15228 | fi | |
15229 | fi | |
15230 | done | |
15231 | done | |
15232 | if test "X$rpathdirs" != "X"; then | |
15233 | if test -n "$acl_hardcode_libdir_separator"; then | |
15234 | alldirs= | |
15235 | for found_dir in $rpathdirs; do | |
15236 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
15237 | done | |
15238 | acl_save_libdir="$libdir" | |
15239 | libdir="$alldirs" | |
15240 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15241 | libdir="$acl_save_libdir" | |
15242 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15243 | else | |
15244 | for found_dir in $rpathdirs; do | |
15245 | acl_save_libdir="$libdir" | |
15246 | libdir="$found_dir" | |
15247 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15248 | libdir="$acl_save_libdir" | |
15249 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15250 | done | |
15251 | fi | |
15252 | fi | |
15253 | if test "X$ltrpathdirs" != "X"; then | |
15254 | for found_dir in $ltrpathdirs; do | |
15255 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
15256 | done | |
15257 | fi | |
15258 | ||
15259 | ||
15260 | ||
15261 | ||
15262 | ||
15263 | ||
15264 | ||
15265 | am_save_CPPFLAGS="$CPPFLAGS" | |
15266 | ||
15267 | for element in $INCICONV; do | |
15268 | haveit= | |
15269 | for x in $CPPFLAGS; do | |
15270 | ||
15271 | acl_save_prefix="$prefix" | |
15272 | prefix="$acl_final_prefix" | |
15273 | acl_save_exec_prefix="$exec_prefix" | |
15274 | exec_prefix="$acl_final_exec_prefix" | |
15275 | eval x=\"$x\" | |
15276 | exec_prefix="$acl_save_exec_prefix" | |
15277 | prefix="$acl_save_prefix" | |
15278 | ||
15279 | if test "X$x" = "X$element"; then | |
15280 | haveit=yes | |
15281 | break | |
15282 | fi | |
15283 | done | |
15284 | if test -z "$haveit"; then | |
15285 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
15286 | fi | |
15287 | done | |
15288 | ||
15289 | ||
15290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
15291 | $as_echo_n "checking for iconv... " >&6; } | |
15292 | if test "${am_cv_func_iconv+set}" = set; then : | |
15293 | $as_echo_n "(cached) " >&6 | |
15294 | else | |
15295 | ||
15296 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
15297 | am_cv_lib_iconv=no | |
15298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15299 | /* end confdefs.h. */ | |
15300 | #include <stdlib.h> | |
15301 | #include <iconv.h> | |
15302 | int | |
15303 | main () | |
15304 | { | |
15305 | iconv_t cd = iconv_open("",""); | |
15306 | iconv(cd,NULL,NULL,NULL,NULL); | |
15307 | iconv_close(cd); | |
15308 | ; | |
15309 | return 0; | |
15310 | } | |
15311 | _ACEOF | |
94690cff | 15312 | if ac_fn_c_try_link "$LINENO"; then : |
9c60689e DWT |
15313 | am_cv_func_iconv=yes |
15314 | fi | |
15315 | rm -f core conftest.err conftest.$ac_objext \ | |
15316 | conftest$ac_exeext conftest.$ac_ext | |
15317 | if test "$am_cv_func_iconv" != yes; then | |
15318 | am_save_LIBS="$LIBS" | |
15319 | LIBS="$LIBS $LIBICONV" | |
15320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15321 | /* end confdefs.h. */ | |
15322 | #include <stdlib.h> | |
15323 | #include <iconv.h> | |
15324 | int | |
15325 | main () | |
15326 | { | |
15327 | iconv_t cd = iconv_open("",""); | |
15328 | iconv(cd,NULL,NULL,NULL,NULL); | |
15329 | iconv_close(cd); | |
15330 | ; | |
15331 | return 0; | |
15332 | } | |
15333 | _ACEOF | |
94690cff | 15334 | if ac_fn_c_try_link "$LINENO"; then : |
9c60689e DWT |
15335 | am_cv_lib_iconv=yes |
15336 | am_cv_func_iconv=yes | |
15337 | fi | |
15338 | rm -f core conftest.err conftest.$ac_objext \ | |
15339 | conftest$ac_exeext conftest.$ac_ext | |
15340 | LIBS="$am_save_LIBS" | |
15341 | fi | |
15342 | ||
15343 | fi | |
15344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
15345 | $as_echo "$am_cv_func_iconv" >&6; } | |
15346 | if test "$am_cv_func_iconv" = yes; then | |
15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
15348 | $as_echo_n "checking for working iconv... " >&6; } | |
15349 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
15350 | $as_echo_n "(cached) " >&6 | |
15351 | else | |
15352 | ||
15353 | am_save_LIBS="$LIBS" | |
15354 | if test $am_cv_lib_iconv = yes; then | |
15355 | LIBS="$LIBS $LIBICONV" | |
15356 | fi | |
15357 | if test "$cross_compiling" = yes; then : | |
15358 | case "$host_os" in | |
15359 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
15360 | *) am_cv_func_iconv_works="guessing yes" ;; | |
15361 | esac | |
15362 | else | |
15363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15364 | /* end confdefs.h. */ | |
15365 | ||
15366 | #include <iconv.h> | |
15367 | #include <string.h> | |
15368 | int main () | |
15369 | { | |
15370 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
15371 | returns. */ | |
15372 | { | |
15373 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
15374 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
15375 | { | |
15376 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
15377 | char buf[10]; | |
15378 | const char *inptr = input; | |
15379 | size_t inbytesleft = strlen (input); | |
15380 | char *outptr = buf; | |
15381 | size_t outbytesleft = sizeof (buf); | |
15382 | size_t res = iconv (cd_utf8_to_88591, | |
15383 | (char **) &inptr, &inbytesleft, | |
15384 | &outptr, &outbytesleft); | |
15385 | if (res == 0) | |
15386 | return 1; | |
15387 | } | |
15388 | } | |
15389 | #if 0 /* This bug could be worked around by the caller. */ | |
15390 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
15391 | { | |
15392 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
15393 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
15394 | { | |
15395 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
15396 | char buf[50]; | |
15397 | const char *inptr = input; | |
15398 | size_t inbytesleft = strlen (input); | |
15399 | char *outptr = buf; | |
15400 | size_t outbytesleft = sizeof (buf); | |
15401 | size_t res = iconv (cd_88591_to_utf8, | |
15402 | (char **) &inptr, &inbytesleft, | |
15403 | &outptr, &outbytesleft); | |
15404 | if ((int)res > 0) | |
15405 | return 1; | |
15406 | } | |
15407 | } | |
15408 | #endif | |
15409 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
15410 | provided. */ | |
15411 | if (/* Try standardized names. */ | |
15412 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
15413 | /* Try IRIX, OSF/1 names. */ | |
15414 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
15415 | /* Try AIX names. */ | |
15416 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
15417 | /* Try HP-UX names. */ | |
15418 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
15419 | return 1; | |
15420 | return 0; | |
15421 | } | |
15422 | _ACEOF | |
94690cff | 15423 | if ac_fn_c_try_run "$LINENO"; then : |
9c60689e DWT |
15424 | am_cv_func_iconv_works=yes |
15425 | else | |
15426 | am_cv_func_iconv_works=no | |
15427 | fi | |
15428 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15429 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15430 | fi | |
15431 | ||
15432 | LIBS="$am_save_LIBS" | |
15433 | ||
15434 | fi | |
15435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
15436 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
15437 | case "$am_cv_func_iconv_works" in | |
15438 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
15439 | *) am_func_iconv=yes ;; | |
15440 | esac | |
15441 | else | |
15442 | am_func_iconv=no am_cv_lib_iconv=no | |
15443 | fi | |
15444 | if test "$am_func_iconv" = yes; then | |
15445 | ||
15446 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
15447 | ||
15448 | fi | |
15449 | if test "$am_cv_lib_iconv" = yes; then | |
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
15451 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
15452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
15453 | $as_echo "$LIBICONV" >&6; } | |
15454 | else | |
15455 | CPPFLAGS="$am_save_CPPFLAGS" | |
15456 | LIBICONV= | |
15457 | LTLIBICONV= | |
15458 | fi | |
15459 | ||
15460 | ||
15461 | ||
15462 | if test "$am_cv_func_iconv" = yes; then | |
15463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
15464 | $as_echo_n "checking for iconv declaration... " >&6; } | |
15465 | if test "${am_cv_proto_iconv+set}" = set; then : | |
15466 | $as_echo_n "(cached) " >&6 | |
15467 | else | |
15468 | ||
15469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15470 | /* end confdefs.h. */ | |
15471 | ||
15472 | #include <stdlib.h> | |
15473 | #include <iconv.h> | |
15474 | extern | |
15475 | #ifdef __cplusplus | |
15476 | "C" | |
15477 | #endif | |
15478 | #if defined(__STDC__) || defined(__cplusplus) | |
15479 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15480 | #else | |
15481 | size_t iconv(); | |
15482 | #endif | |
15483 | ||
15484 | int | |
15485 | main () | |
15486 | { | |
15487 | ||
15488 | ; | |
15489 | return 0; | |
15490 | } | |
15491 | _ACEOF | |
94690cff | 15492 | if ac_fn_c_try_compile "$LINENO"; then : |
9c60689e DWT |
15493 | am_cv_proto_iconv_arg1="" |
15494 | else | |
15495 | am_cv_proto_iconv_arg1="const" | |
15496 | fi | |
15497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15498 | 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);" | |
15499 | fi | |
15500 | ||
15501 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
15502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
15503 | }$am_cv_proto_iconv" >&5 | |
15504 | $as_echo "${ac_t:- | |
15505 | }$am_cv_proto_iconv" >&6; } | |
15506 | ||
15507 | cat >>confdefs.h <<_ACEOF | |
15508 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
15509 | _ACEOF | |
15510 | ||
15511 | fi | |
15512 | ||
94690cff DWT |
15513 | ac_ext=cpp |
15514 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15515 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15516 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15517 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15518 | ||
9c60689e DWT |
15519 | case $am_cv_func_iconv in #( |
15520 | yes) : | |
15521 | ;; #( | |
15522 | *) : | |
15523 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
15524 | esac | |
15525 | ||
9c60689e DWT |
15526 | pkg_failed=no |
15527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15528 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15529 | ||
15530 | if test -n "$PKG_CONFIG"; then | |
15531 | if test -n "$WEBKIT_CFLAGS"; then | |
15532 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15533 | else | |
15534 | if test -n "$PKG_CONFIG" && \ | |
15535 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15536 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15537 | ac_status=$? | |
15538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15539 | test $ac_status = 0; }; then | |
15540 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15541 | else | |
15542 | pkg_failed=yes | |
15543 | fi | |
15544 | fi | |
15545 | else | |
15546 | pkg_failed=untried | |
15547 | fi | |
15548 | if test -n "$PKG_CONFIG"; then | |
15549 | if test -n "$WEBKIT_LIBS"; then | |
15550 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15551 | else | |
15552 | if test -n "$PKG_CONFIG" && \ | |
15553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15554 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15555 | ac_status=$? | |
15556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15557 | test $ac_status = 0; }; then | |
15558 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15559 | else | |
15560 | pkg_failed=yes | |
15561 | fi | |
15562 | fi | |
15563 | else | |
15564 | pkg_failed=untried | |
15565 | fi | |
15566 | ||
15567 | ||
15568 | ||
15569 | if test $pkg_failed = yes; then | |
15570 | ||
15571 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15572 | _pkg_short_errors_supported=yes | |
15573 | else | |
15574 | _pkg_short_errors_supported=no | |
15575 | fi | |
15576 | if test $_pkg_short_errors_supported = yes; then | |
15577 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
15578 | else | |
15579 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
15580 | fi | |
15581 | # Put the nasty error message in config.log where it belongs | |
15582 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15583 | ||
15584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15585 | $as_echo "no" >&6; } | |
15586 | ||
15587 | ||
15588 | pkg_failed=no | |
15589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15590 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15591 | ||
15592 | if test -n "$PKG_CONFIG"; then | |
15593 | if test -n "$WEBKIT_CFLAGS"; then | |
15594 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15595 | else | |
15596 | if test -n "$PKG_CONFIG" && \ | |
15597 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15598 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15599 | ac_status=$? | |
15600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15601 | test $ac_status = 0; }; then | |
15602 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15603 | else | |
15604 | pkg_failed=yes | |
15605 | fi | |
15606 | fi | |
15607 | else | |
15608 | pkg_failed=untried | |
15609 | fi | |
15610 | if test -n "$PKG_CONFIG"; then | |
15611 | if test -n "$WEBKIT_LIBS"; then | |
15612 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15613 | else | |
15614 | if test -n "$PKG_CONFIG" && \ | |
15615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15616 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15617 | ac_status=$? | |
15618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15619 | test $ac_status = 0; }; then | |
15620 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15621 | else | |
15622 | pkg_failed=yes | |
15623 | fi | |
15624 | fi | |
15625 | else | |
15626 | pkg_failed=untried | |
15627 | fi | |
15628 | ||
15629 | ||
15630 | ||
15631 | if test $pkg_failed = yes; then | |
15632 | ||
15633 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15634 | _pkg_short_errors_supported=yes | |
15635 | else | |
15636 | _pkg_short_errors_supported=no | |
15637 | fi | |
15638 | if test $_pkg_short_errors_supported = yes; then | |
15639 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15640 | else | |
15641 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15642 | fi | |
15643 | # Put the nasty error message in config.log where it belongs | |
15644 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15645 | ||
15646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15647 | $as_echo "no" >&6; } | |
b128dfee | 15648 | |
c823f118 DWT |
15649 | |
15650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15651 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15652 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15653 | $as_echo_n "(cached) " >&6 | |
15654 | else | |
15655 | ||
15656 | ac_check_framework_save_LIBS=$LIBS | |
15657 | LIBS="-framework JavaScriptCore $LIBS" | |
15658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15659 | /* end confdefs.h. */ | |
15660 | ||
15661 | #include <JavaScriptCore/JSBase.h> | |
15662 | ||
15663 | int | |
15664 | main () | |
15665 | { | |
15666 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15667 | ; | |
15668 | return 0; | |
15669 | } | |
b128dfee | 15670 | _ACEOF |
c823f118 DWT |
15671 | if ac_fn_cxx_try_link "$LINENO"; then : |
15672 | ||
15673 | ac_cv_framework_JavaScriptCore=yes | |
15674 | ||
15675 | else | |
15676 | ac_cv_framework_JavaScriptCore=no | |
b128dfee | 15677 | fi |
c823f118 DWT |
15678 | rm -f core conftest.err conftest.$ac_objext \ |
15679 | conftest$ac_exeext conftest.$ac_ext | |
15680 | LIBS=$ac_check_framework_save_LIBS | |
b128dfee | 15681 | |
c823f118 DWT |
15682 | fi |
15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15684 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15685 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15686 | ||
15687 | ||
15688 | for element in "-framework JavaScriptCore $LIBS"; do | |
15689 | haveit= | |
15690 | for x in $LIBS; do | |
15691 | ||
15692 | acl_save_prefix="$prefix" | |
15693 | prefix="$acl_final_prefix" | |
15694 | acl_save_exec_prefix="$exec_prefix" | |
15695 | exec_prefix="$acl_final_exec_prefix" | |
15696 | eval x=\"$x\" | |
15697 | exec_prefix="$acl_save_exec_prefix" | |
15698 | prefix="$acl_save_prefix" | |
b128dfee | 15699 | |
c823f118 DWT |
15700 | if test "X$x" = "X$element"; then |
15701 | haveit=yes | |
15702 | break | |
15703 | fi | |
15704 | done | |
15705 | if test -z "$haveit"; then | |
15706 | LIBS="${LIBS}${LIBS:+ }$element" | |
15707 | fi | |
15708 | done | |
15709 | ||
15710 | CY_EXECUTE=1 | |
15711 | ||
15712 | fi | |
b128dfee | 15713 | |
9c60689e | 15714 | elif test $pkg_failed = untried; then |
b128dfee | 15715 | |
c823f118 DWT |
15716 | |
15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15718 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15719 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15720 | $as_echo_n "(cached) " >&6 | |
15721 | else | |
15722 | ||
15723 | ac_check_framework_save_LIBS=$LIBS | |
15724 | LIBS="-framework JavaScriptCore $LIBS" | |
15725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15726 | /* end confdefs.h. */ | |
15727 | ||
15728 | #include <JavaScriptCore/JSBase.h> | |
15729 | ||
15730 | int | |
15731 | main () | |
15732 | { | |
15733 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15734 | ; | |
15735 | return 0; | |
15736 | } | |
b128dfee | 15737 | _ACEOF |
c823f118 DWT |
15738 | if ac_fn_cxx_try_link "$LINENO"; then : |
15739 | ||
15740 | ac_cv_framework_JavaScriptCore=yes | |
15741 | ||
15742 | else | |
15743 | ac_cv_framework_JavaScriptCore=no | |
15744 | fi | |
15745 | rm -f core conftest.err conftest.$ac_objext \ | |
15746 | conftest$ac_exeext conftest.$ac_ext | |
15747 | LIBS=$ac_check_framework_save_LIBS | |
15748 | ||
b128dfee | 15749 | fi |
c823f118 DWT |
15750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
15751 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15752 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
b128dfee | 15753 | |
b128dfee | 15754 | |
c823f118 DWT |
15755 | for element in "-framework JavaScriptCore $LIBS"; do |
15756 | haveit= | |
15757 | for x in $LIBS; do | |
15758 | ||
15759 | acl_save_prefix="$prefix" | |
15760 | prefix="$acl_final_prefix" | |
15761 | acl_save_exec_prefix="$exec_prefix" | |
15762 | exec_prefix="$acl_final_exec_prefix" | |
15763 | eval x=\"$x\" | |
15764 | exec_prefix="$acl_save_exec_prefix" | |
15765 | prefix="$acl_save_prefix" | |
15766 | ||
15767 | if test "X$x" = "X$element"; then | |
15768 | haveit=yes | |
15769 | break | |
15770 | fi | |
15771 | done | |
15772 | if test -z "$haveit"; then | |
15773 | LIBS="${LIBS}${LIBS:+ }$element" | |
15774 | fi | |
15775 | done | |
15776 | ||
15777 | CY_EXECUTE=1 | |
15778 | ||
15779 | fi | |
b128dfee | 15780 | |
9c60689e DWT |
15781 | else |
15782 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15783 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15785 | $as_echo "yes" >&6; } | |
3fd51f51 | 15786 | |
a667869d | 15787 | CY_EXECUTE=1 |
3fd51f51 DWT |
15788 | |
15789 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15790 | haveit= | |
15791 | for x in $CXXFLAGS; do | |
15792 | ||
15793 | acl_save_prefix="$prefix" | |
15794 | prefix="$acl_final_prefix" | |
15795 | acl_save_exec_prefix="$exec_prefix" | |
15796 | exec_prefix="$acl_final_exec_prefix" | |
15797 | eval x=\"$x\" | |
15798 | exec_prefix="$acl_save_exec_prefix" | |
15799 | prefix="$acl_save_prefix" | |
15800 | ||
15801 | if test "X$x" = "X$element"; then | |
15802 | haveit=yes | |
15803 | break | |
15804 | fi | |
15805 | done | |
15806 | if test -z "$haveit"; then | |
15807 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15808 | fi | |
15809 | done | |
15810 | ||
15811 | ||
15812 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15813 | haveit= | |
15814 | for x in $LIBS; do | |
15815 | ||
15816 | acl_save_prefix="$prefix" | |
15817 | prefix="$acl_final_prefix" | |
15818 | acl_save_exec_prefix="$exec_prefix" | |
15819 | exec_prefix="$acl_final_exec_prefix" | |
15820 | eval x=\"$x\" | |
15821 | exec_prefix="$acl_save_exec_prefix" | |
15822 | prefix="$acl_save_prefix" | |
15823 | ||
15824 | if test "X$x" = "X$element"; then | |
15825 | haveit=yes | |
15826 | break | |
15827 | fi | |
15828 | done | |
15829 | if test -z "$haveit"; then | |
15830 | LIBS="${LIBS}${LIBS:+ }$element" | |
15831 | fi | |
15832 | done | |
15833 | ||
15834 | ||
9c60689e DWT |
15835 | fi |
15836 | ||
15837 | elif test $pkg_failed = untried; then | |
15838 | ||
15839 | ||
15840 | pkg_failed=no | |
15841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15842 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15843 | ||
15844 | if test -n "$PKG_CONFIG"; then | |
15845 | if test -n "$WEBKIT_CFLAGS"; then | |
15846 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15847 | else | |
15848 | if test -n "$PKG_CONFIG" && \ | |
15849 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15850 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15851 | ac_status=$? | |
15852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15853 | test $ac_status = 0; }; then | |
15854 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15855 | else | |
15856 | pkg_failed=yes | |
15857 | fi | |
15858 | fi | |
15859 | else | |
15860 | pkg_failed=untried | |
15861 | fi | |
15862 | if test -n "$PKG_CONFIG"; then | |
15863 | if test -n "$WEBKIT_LIBS"; then | |
15864 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15865 | else | |
15866 | if test -n "$PKG_CONFIG" && \ | |
15867 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15868 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15869 | ac_status=$? | |
15870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15871 | test $ac_status = 0; }; then | |
15872 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15873 | else | |
15874 | pkg_failed=yes | |
15875 | fi | |
15876 | fi | |
15877 | else | |
15878 | pkg_failed=untried | |
15879 | fi | |
15880 | ||
15881 | ||
15882 | ||
15883 | if test $pkg_failed = yes; then | |
15884 | ||
15885 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15886 | _pkg_short_errors_supported=yes | |
15887 | else | |
15888 | _pkg_short_errors_supported=no | |
15889 | fi | |
15890 | if test $_pkg_short_errors_supported = yes; then | |
15891 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15892 | else | |
15893 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15894 | fi | |
15895 | # Put the nasty error message in config.log where it belongs | |
15896 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15897 | ||
15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15899 | $as_echo "no" >&6; } | |
b128dfee | 15900 | |
c823f118 DWT |
15901 | |
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15903 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15904 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15905 | $as_echo_n "(cached) " >&6 | |
15906 | else | |
15907 | ||
15908 | ac_check_framework_save_LIBS=$LIBS | |
15909 | LIBS="-framework JavaScriptCore $LIBS" | |
15910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15911 | /* end confdefs.h. */ | |
15912 | ||
15913 | #include <JavaScriptCore/JSBase.h> | |
15914 | ||
15915 | int | |
15916 | main () | |
15917 | { | |
15918 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15919 | ; | |
15920 | return 0; | |
15921 | } | |
b128dfee | 15922 | _ACEOF |
c823f118 DWT |
15923 | if ac_fn_cxx_try_link "$LINENO"; then : |
15924 | ||
15925 | ac_cv_framework_JavaScriptCore=yes | |
15926 | ||
15927 | else | |
15928 | ac_cv_framework_JavaScriptCore=no | |
15929 | fi | |
15930 | rm -f core conftest.err conftest.$ac_objext \ | |
15931 | conftest$ac_exeext conftest.$ac_ext | |
15932 | LIBS=$ac_check_framework_save_LIBS | |
15933 | ||
b128dfee | 15934 | fi |
c823f118 DWT |
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
15936 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15937 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
b128dfee | 15938 | |
b128dfee | 15939 | |
c823f118 DWT |
15940 | for element in "-framework JavaScriptCore $LIBS"; do |
15941 | haveit= | |
15942 | for x in $LIBS; do | |
15943 | ||
15944 | acl_save_prefix="$prefix" | |
15945 | prefix="$acl_final_prefix" | |
15946 | acl_save_exec_prefix="$exec_prefix" | |
15947 | exec_prefix="$acl_final_exec_prefix" | |
15948 | eval x=\"$x\" | |
15949 | exec_prefix="$acl_save_exec_prefix" | |
15950 | prefix="$acl_save_prefix" | |
15951 | ||
15952 | if test "X$x" = "X$element"; then | |
15953 | haveit=yes | |
15954 | break | |
15955 | fi | |
15956 | done | |
15957 | if test -z "$haveit"; then | |
15958 | LIBS="${LIBS}${LIBS:+ }$element" | |
15959 | fi | |
15960 | done | |
15961 | ||
15962 | CY_EXECUTE=1 | |
15963 | ||
15964 | fi | |
b128dfee | 15965 | |
9c60689e | 15966 | elif test $pkg_failed = untried; then |
b128dfee | 15967 | |
c823f118 DWT |
15968 | |
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15970 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15971 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15972 | $as_echo_n "(cached) " >&6 | |
15973 | else | |
15974 | ||
15975 | ac_check_framework_save_LIBS=$LIBS | |
15976 | LIBS="-framework JavaScriptCore $LIBS" | |
15977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15978 | /* end confdefs.h. */ | |
15979 | ||
15980 | #include <JavaScriptCore/JSBase.h> | |
15981 | ||
15982 | int | |
15983 | main () | |
15984 | { | |
15985 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15986 | ; | |
15987 | return 0; | |
15988 | } | |
b128dfee | 15989 | _ACEOF |
c823f118 DWT |
15990 | if ac_fn_cxx_try_link "$LINENO"; then : |
15991 | ||
15992 | ac_cv_framework_JavaScriptCore=yes | |
15993 | ||
15994 | else | |
15995 | ac_cv_framework_JavaScriptCore=no | |
b128dfee | 15996 | fi |
c823f118 DWT |
15997 | rm -f core conftest.err conftest.$ac_objext \ |
15998 | conftest$ac_exeext conftest.$ac_ext | |
15999 | LIBS=$ac_check_framework_save_LIBS | |
b128dfee | 16000 | |
c823f118 DWT |
16001 | fi |
16002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16003 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16004 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16005 | ||
16006 | ||
16007 | for element in "-framework JavaScriptCore $LIBS"; do | |
16008 | haveit= | |
16009 | for x in $LIBS; do | |
b128dfee | 16010 | |
c823f118 DWT |
16011 | acl_save_prefix="$prefix" |
16012 | prefix="$acl_final_prefix" | |
16013 | acl_save_exec_prefix="$exec_prefix" | |
16014 | exec_prefix="$acl_final_exec_prefix" | |
16015 | eval x=\"$x\" | |
16016 | exec_prefix="$acl_save_exec_prefix" | |
16017 | prefix="$acl_save_prefix" | |
16018 | ||
16019 | if test "X$x" = "X$element"; then | |
16020 | haveit=yes | |
16021 | break | |
16022 | fi | |
16023 | done | |
16024 | if test -z "$haveit"; then | |
16025 | LIBS="${LIBS}${LIBS:+ }$element" | |
16026 | fi | |
16027 | done | |
16028 | ||
16029 | CY_EXECUTE=1 | |
16030 | ||
16031 | fi | |
b128dfee | 16032 | |
9c60689e DWT |
16033 | else |
16034 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16035 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16037 | $as_echo "yes" >&6; } | |
3fd51f51 | 16038 | |
a667869d | 16039 | CY_EXECUTE=1 |
3fd51f51 DWT |
16040 | |
16041 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16042 | haveit= | |
16043 | for x in $CXXFLAGS; do | |
16044 | ||
16045 | acl_save_prefix="$prefix" | |
16046 | prefix="$acl_final_prefix" | |
16047 | acl_save_exec_prefix="$exec_prefix" | |
16048 | exec_prefix="$acl_final_exec_prefix" | |
16049 | eval x=\"$x\" | |
16050 | exec_prefix="$acl_save_exec_prefix" | |
16051 | prefix="$acl_save_prefix" | |
16052 | ||
16053 | if test "X$x" = "X$element"; then | |
16054 | haveit=yes | |
16055 | break | |
16056 | fi | |
16057 | done | |
16058 | if test -z "$haveit"; then | |
16059 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16060 | fi | |
16061 | done | |
16062 | ||
16063 | ||
16064 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16065 | haveit= | |
16066 | for x in $LIBS; do | |
16067 | ||
16068 | acl_save_prefix="$prefix" | |
16069 | prefix="$acl_final_prefix" | |
16070 | acl_save_exec_prefix="$exec_prefix" | |
16071 | exec_prefix="$acl_final_exec_prefix" | |
16072 | eval x=\"$x\" | |
16073 | exec_prefix="$acl_save_exec_prefix" | |
16074 | prefix="$acl_save_prefix" | |
16075 | ||
16076 | if test "X$x" = "X$element"; then | |
16077 | haveit=yes | |
16078 | break | |
16079 | fi | |
16080 | done | |
16081 | if test -z "$haveit"; then | |
16082 | LIBS="${LIBS}${LIBS:+ }$element" | |
16083 | fi | |
16084 | done | |
16085 | ||
16086 | ||
9c60689e DWT |
16087 | fi |
16088 | ||
16089 | else | |
16090 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16091 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16093 | $as_echo "yes" >&6; } | |
3fd51f51 | 16094 | |
a667869d | 16095 | CY_EXECUTE=1 |
3fd51f51 DWT |
16096 | |
16097 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16098 | haveit= | |
16099 | for x in $CXXFLAGS; do | |
16100 | ||
16101 | acl_save_prefix="$prefix" | |
16102 | prefix="$acl_final_prefix" | |
16103 | acl_save_exec_prefix="$exec_prefix" | |
16104 | exec_prefix="$acl_final_exec_prefix" | |
16105 | eval x=\"$x\" | |
16106 | exec_prefix="$acl_save_exec_prefix" | |
16107 | prefix="$acl_save_prefix" | |
16108 | ||
16109 | if test "X$x" = "X$element"; then | |
16110 | haveit=yes | |
16111 | break | |
16112 | fi | |
16113 | done | |
16114 | if test -z "$haveit"; then | |
16115 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16116 | fi | |
16117 | done | |
16118 | ||
16119 | ||
16120 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16121 | haveit= | |
16122 | for x in $LIBS; do | |
16123 | ||
16124 | acl_save_prefix="$prefix" | |
16125 | prefix="$acl_final_prefix" | |
16126 | acl_save_exec_prefix="$exec_prefix" | |
16127 | exec_prefix="$acl_final_exec_prefix" | |
16128 | eval x=\"$x\" | |
16129 | exec_prefix="$acl_save_exec_prefix" | |
16130 | prefix="$acl_save_prefix" | |
16131 | ||
16132 | if test "X$x" = "X$element"; then | |
16133 | haveit=yes | |
16134 | break | |
16135 | fi | |
16136 | done | |
16137 | if test -z "$haveit"; then | |
16138 | LIBS="${LIBS}${LIBS:+ }$element" | |
16139 | fi | |
16140 | done | |
16141 | ||
16142 | ||
9c60689e | 16143 | fi |
a667869d DWT |
16144 | ac_ext=mm |
16145 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
16146 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16147 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16148 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16149 | if test -n "$ac_tool_prefix"; then | |
16150 | for ac_prog in g++ objc++ objcxx c++ CXX | |
16151 | do | |
16152 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
16153 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
16154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16155 | $as_echo_n "checking for $ac_word... " >&6; } | |
16156 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : | |
16157 | $as_echo_n "(cached) " >&6 | |
9c60689e | 16158 | else |
a667869d DWT |
16159 | if test -n "$OBJCXX"; then |
16160 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
9c60689e | 16161 | else |
a667869d DWT |
16162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16163 | for as_dir in $PATH | |
16164 | do | |
16165 | IFS=$as_save_IFS | |
16166 | test -z "$as_dir" && as_dir=. | |
16167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16169 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
16170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16171 | break 2 | |
16172 | fi | |
16173 | done | |
16174 | done | |
16175 | IFS=$as_save_IFS | |
16176 | ||
9c60689e | 16177 | fi |
9c60689e | 16178 | fi |
a667869d DWT |
16179 | OBJCXX=$ac_cv_prog_OBJCXX |
16180 | if test -n "$OBJCXX"; then | |
16181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
16182 | $as_echo "$OBJCXX" >&6; } | |
9c60689e | 16183 | else |
a667869d DWT |
16184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16185 | $as_echo "no" >&6; } | |
9c60689e DWT |
16186 | fi |
16187 | ||
16188 | ||
a667869d DWT |
16189 | test -n "$OBJCXX" && break |
16190 | done | |
9c60689e | 16191 | fi |
a667869d DWT |
16192 | if test -z "$OBJCXX"; then |
16193 | ac_ct_OBJCXX=$OBJCXX | |
16194 | for ac_prog in g++ objc++ objcxx c++ CXX | |
16195 | do | |
16196 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16197 | set dummy $ac_prog; ac_word=$2 | |
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16199 | $as_echo_n "checking for $ac_word... " >&6; } | |
16200 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : | |
16201 | $as_echo_n "(cached) " >&6 | |
16202 | else | |
16203 | if test -n "$ac_ct_OBJCXX"; then | |
16204 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
16205 | else | |
16206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16207 | for as_dir in $PATH | |
16208 | do | |
16209 | IFS=$as_save_IFS | |
16210 | test -z "$as_dir" && as_dir=. | |
16211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16213 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
16214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16215 | break 2 | |
16216 | fi | |
16217 | done | |
16218 | done | |
16219 | IFS=$as_save_IFS | |
9c60689e | 16220 | |
a667869d DWT |
16221 | fi |
16222 | fi | |
16223 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
16224 | if test -n "$ac_ct_OBJCXX"; then | |
16225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
16226 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
16227 | else | |
16228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9c60689e | 16229 | $as_echo "no" >&6; } |
9c60689e DWT |
16230 | fi |
16231 | ||
a667869d DWT |
16232 | |
16233 | test -n "$ac_ct_OBJCXX" && break | |
9c60689e DWT |
16234 | done |
16235 | ||
a667869d DWT |
16236 | if test "x$ac_ct_OBJCXX" = x; then |
16237 | OBJCXX="g++" | |
16238 | else | |
16239 | case $cross_compiling:$ac_tool_warned in | |
16240 | yes:) | |
16241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16242 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16243 | ac_tool_warned=yes ;; | |
16244 | esac | |
16245 | OBJCXX=$ac_ct_OBJCXX | |
16246 | fi | |
16247 | fi | |
9c60689e | 16248 | |
a667869d DWT |
16249 | # Provide some information about the compiler. |
16250 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
16251 | set X $ac_compile | |
16252 | ac_compiler=$2 | |
16253 | for ac_option in --version -v -V -qversion; do | |
16254 | { { ac_try="$ac_compiler $ac_option >&5" | |
16255 | case "(($ac_try" in | |
16256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16257 | *) ac_try_echo=$ac_try;; | |
16258 | esac | |
16259 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16260 | $as_echo "$ac_try_echo"; } >&5 | |
16261 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
16262 | ac_status=$? | |
16263 | if test -s conftest.err; then | |
16264 | sed '10a\ | |
16265 | ... rest of stderr output deleted ... | |
16266 | 10q' conftest.err >conftest.er1 | |
16267 | cat conftest.er1 >&5 | |
16268 | fi | |
16269 | rm -f conftest.er1 conftest.err | |
16270 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16271 | test $ac_status = 0; } | |
16272 | done | |
9c60689e | 16273 | |
a667869d DWT |
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
16275 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
16276 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
9c60689e DWT |
16277 | $as_echo_n "(cached) " >&6 |
16278 | else | |
a667869d | 16279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
16280 | /* end confdefs.h. */ |
16281 | ||
9c60689e DWT |
16282 | int |
16283 | main () | |
16284 | { | |
a667869d DWT |
16285 | #ifndef __GNUC__ |
16286 | choke me | |
16287 | #endif | |
16288 | ||
9c60689e DWT |
16289 | ; |
16290 | return 0; | |
16291 | } | |
16292 | _ACEOF | |
a667869d DWT |
16293 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
16294 | ac_compiler_gnu=yes | |
9c60689e | 16295 | else |
a667869d | 16296 | ac_compiler_gnu=no |
9c60689e | 16297 | fi |
a667869d DWT |
16298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16299 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e DWT |
16300 | |
16301 | fi | |
a667869d DWT |
16302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
16303 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
16304 | if test $ac_compiler_gnu = yes; then | |
16305 | GOBJCXX=yes | |
16306 | else | |
16307 | GOBJCXX= | |
16308 | fi | |
16309 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
16310 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
16312 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
16313 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
16314 | $as_echo_n "(cached) " >&6 | |
16315 | else | |
16316 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
16317 | ac_objcxx_werror_flag=yes | |
16318 | ac_cv_prog_objcxx_g=no | |
16319 | OBJCXXFLAGS="-g" | |
16320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16321 | /* end confdefs.h. */ | |
16322 | ||
16323 | int | |
16324 | main () | |
16325 | { | |
16326 | ||
16327 | ; | |
16328 | return 0; | |
16329 | } | |
16330 | _ACEOF | |
16331 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16332 | ac_cv_prog_objcxx_g=yes | |
16333 | else | |
16334 | OBJCXXFLAGS="" | |
16335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16336 | /* end confdefs.h. */ | |
16337 | ||
16338 | int | |
16339 | main () | |
16340 | { | |
16341 | ||
16342 | ; | |
16343 | return 0; | |
16344 | } | |
16345 | _ACEOF | |
16346 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16347 | ||
16348 | else | |
16349 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
16350 | OBJCXXFLAGS="-g" | |
16351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16352 | /* end confdefs.h. */ | |
16353 | ||
16354 | int | |
16355 | main () | |
16356 | { | |
16357 | ||
16358 | ; | |
16359 | return 0; | |
16360 | } | |
16361 | _ACEOF | |
16362 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16363 | ac_cv_prog_objcxx_g=yes | |
16364 | fi | |
16365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16366 | fi | |
16367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16368 | fi | |
16369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16370 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
16371 | fi | |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
16373 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
16374 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
16375 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
16376 | elif test $ac_cv_prog_objcxx_g = yes; then | |
16377 | if test "$GOBJCXX" = yes; then | |
16378 | OBJCXXFLAGS="-g -O2" | |
16379 | else | |
16380 | OBJCXXFLAGS="-g" | |
16381 | fi | |
16382 | else | |
16383 | if test "$GOBJCXX" = yes; then | |
16384 | OBJCXXFLAGS="-O2" | |
16385 | else | |
16386 | OBJCXXFLAGS= | |
16387 | fi | |
16388 | fi | |
16389 | ac_ext=cpp | |
16390 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16391 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16392 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16393 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16394 | ||
16395 | ||
16396 | case $CY_EXECUTE in #( | |
16397 | 1) : | |
16398 | ||
16399 | ||
16400 | ||
16401 | pkg_failed=no | |
16402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
16403 | $as_echo_n "checking for LIBFFI... " >&6; } | |
16404 | ||
16405 | if test -n "$PKG_CONFIG"; then | |
16406 | if test -n "$LIBFFI_CFLAGS"; then | |
16407 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
16408 | else | |
16409 | if test -n "$PKG_CONFIG" && \ | |
16410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
16411 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16412 | ac_status=$? | |
16413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16414 | test $ac_status = 0; }; then | |
16415 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
16416 | else | |
16417 | pkg_failed=yes | |
16418 | fi | |
16419 | fi | |
16420 | else | |
16421 | pkg_failed=untried | |
16422 | fi | |
16423 | if test -n "$PKG_CONFIG"; then | |
16424 | if test -n "$LIBFFI_LIBS"; then | |
16425 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
16426 | else | |
16427 | if test -n "$PKG_CONFIG" && \ | |
16428 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
16429 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16430 | ac_status=$? | |
16431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16432 | test $ac_status = 0; }; then | |
16433 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
16434 | else | |
16435 | pkg_failed=yes | |
16436 | fi | |
16437 | fi | |
16438 | else | |
16439 | pkg_failed=untried | |
16440 | fi | |
16441 | ||
16442 | ||
16443 | ||
16444 | if test $pkg_failed = yes; then | |
16445 | ||
16446 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16447 | _pkg_short_errors_supported=yes | |
16448 | else | |
16449 | _pkg_short_errors_supported=no | |
16450 | fi | |
16451 | if test $_pkg_short_errors_supported = yes; then | |
16452 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` | |
16453 | else | |
16454 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` | |
16455 | fi | |
16456 | # Put the nasty error message in config.log where it belongs | |
16457 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
16458 | ||
16459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16460 | $as_echo "no" >&6; } | |
16461 | ||
16462 | for ac_header in ffi.h ffi/ffi.h | |
16463 | do : | |
16464 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16465 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16466 | eval as_val=\$$as_ac_Header | |
16467 | if test "x$as_val" = x""yes; then : | |
16468 | cat >>confdefs.h <<_ACEOF | |
16469 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16470 | _ACEOF | |
16471 | break | |
16472 | fi | |
16473 | ||
16474 | done | |
16475 | ||
16476 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16477 | ||
16478 | as_fn_error "You need libffi" "$LINENO" 5 | |
16479 | ||
16480 | fi | |
16481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
16482 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
16483 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16484 | $as_echo_n "(cached) " >&6 | |
16485 | else | |
16486 | ac_func_search_save_LIBS=$LIBS | |
16487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16488 | /* end confdefs.h. */ | |
16489 | ||
16490 | /* Override any GCC internal prototype to avoid an error. | |
16491 | Use char because int might match the return type of a GCC | |
16492 | builtin and then its argument prototype would still apply. */ | |
16493 | #ifdef __cplusplus | |
16494 | extern "C" | |
16495 | #endif | |
16496 | char ffi_call (); | |
16497 | int | |
16498 | main () | |
16499 | { | |
16500 | return ffi_call (); | |
16501 | ; | |
16502 | return 0; | |
16503 | } | |
16504 | _ACEOF | |
16505 | for ac_lib in '' ffi; do | |
16506 | if test -z "$ac_lib"; then | |
16507 | ac_res="none required" | |
16508 | else | |
16509 | ac_res=-l$ac_lib | |
16510 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16511 | fi | |
16512 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16513 | ac_cv_search_ffi_call=$ac_res | |
16514 | fi | |
16515 | rm -f core conftest.err conftest.$ac_objext \ | |
16516 | conftest$ac_exeext | |
16517 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16518 | break | |
16519 | fi | |
16520 | done | |
16521 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16522 | ||
16523 | else | |
16524 | ac_cv_search_ffi_call=no | |
16525 | fi | |
16526 | rm conftest.$ac_ext | |
16527 | LIBS=$ac_func_search_save_LIBS | |
16528 | fi | |
16529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
16530 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
16531 | ac_res=$ac_cv_search_ffi_call | |
16532 | if test "$ac_res" != no; then : | |
16533 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16534 | ||
16535 | fi | |
16536 | ||
16537 | case $ac_cv_search_ffi_call in #( | |
16538 | no) : | |
16539 | ||
16540 | as_fn_error "You need libffi" "$LINENO" 5 | |
16541 | ;; #( | |
16542 | *) : | |
9c60689e DWT |
16543 | ;; |
16544 | esac | |
16545 | ||
16546 | elif test $pkg_failed = untried; then | |
16547 | ||
16548 | for ac_header in ffi.h ffi/ffi.h | |
16549 | do : | |
16550 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47aaa820 | 16551 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
9c60689e DWT |
16552 | eval as_val=\$$as_ac_Header |
16553 | if test "x$as_val" = x""yes; then : | |
16554 | cat >>confdefs.h <<_ACEOF | |
16555 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16556 | _ACEOF | |
16557 | break | |
16558 | fi | |
16559 | ||
16560 | done | |
16561 | ||
16562 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16563 | ||
16564 | as_fn_error "You need libffi" "$LINENO" 5 | |
16565 | ||
16566 | fi | |
16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
16568 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
16569 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16570 | $as_echo_n "(cached) " >&6 | |
16571 | else | |
16572 | ac_func_search_save_LIBS=$LIBS | |
16573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16574 | /* end confdefs.h. */ | |
16575 | ||
16576 | /* Override any GCC internal prototype to avoid an error. | |
16577 | Use char because int might match the return type of a GCC | |
16578 | builtin and then its argument prototype would still apply. */ | |
16579 | #ifdef __cplusplus | |
16580 | extern "C" | |
16581 | #endif | |
16582 | char ffi_call (); | |
16583 | int | |
16584 | main () | |
16585 | { | |
16586 | return ffi_call (); | |
16587 | ; | |
16588 | return 0; | |
16589 | } | |
16590 | _ACEOF | |
16591 | for ac_lib in '' ffi; do | |
16592 | if test -z "$ac_lib"; then | |
16593 | ac_res="none required" | |
16594 | else | |
16595 | ac_res=-l$ac_lib | |
16596 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16597 | fi | |
47aaa820 | 16598 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e DWT |
16599 | ac_cv_search_ffi_call=$ac_res |
16600 | fi | |
16601 | rm -f core conftest.err conftest.$ac_objext \ | |
16602 | conftest$ac_exeext | |
16603 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16604 | break | |
16605 | fi | |
16606 | done | |
16607 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16608 | ||
16609 | else | |
16610 | ac_cv_search_ffi_call=no | |
16611 | fi | |
16612 | rm conftest.$ac_ext | |
16613 | LIBS=$ac_func_search_save_LIBS | |
16614 | fi | |
16615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
16616 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
16617 | ac_res=$ac_cv_search_ffi_call | |
16618 | if test "$ac_res" != no; then : | |
16619 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16620 | ||
16621 | fi | |
16622 | ||
16623 | case $ac_cv_search_ffi_call in #( | |
16624 | no) : | |
16625 | ||
16626 | as_fn_error "You need libffi" "$LINENO" 5 | |
16627 | ;; #( | |
16628 | *) : | |
16629 | ;; | |
16630 | esac | |
16631 | ||
16632 | else | |
16633 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
16634 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16636 | $as_echo "yes" >&6; } | |
3fd51f51 DWT |
16637 | |
16638 | ||
16639 | for element in `$PKG_CONFIG --cflags libffi`; do | |
16640 | haveit= | |
16641 | for x in $CXXFLAGS; do | |
16642 | ||
16643 | acl_save_prefix="$prefix" | |
16644 | prefix="$acl_final_prefix" | |
16645 | acl_save_exec_prefix="$exec_prefix" | |
16646 | exec_prefix="$acl_final_exec_prefix" | |
16647 | eval x=\"$x\" | |
16648 | exec_prefix="$acl_save_exec_prefix" | |
16649 | prefix="$acl_save_prefix" | |
16650 | ||
16651 | if test "X$x" = "X$element"; then | |
16652 | haveit=yes | |
16653 | break | |
16654 | fi | |
16655 | done | |
16656 | if test -z "$haveit"; then | |
16657 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16658 | fi | |
16659 | done | |
16660 | ||
16661 | ||
16662 | for element in `$PKG_CONFIG --libs libffi`; do | |
16663 | haveit= | |
16664 | for x in $LIBS; do | |
16665 | ||
16666 | acl_save_prefix="$prefix" | |
16667 | prefix="$acl_final_prefix" | |
16668 | acl_save_exec_prefix="$exec_prefix" | |
16669 | exec_prefix="$acl_final_exec_prefix" | |
16670 | eval x=\"$x\" | |
16671 | exec_prefix="$acl_save_exec_prefix" | |
16672 | prefix="$acl_save_prefix" | |
16673 | ||
16674 | if test "X$x" = "X$element"; then | |
16675 | haveit=yes | |
16676 | break | |
16677 | fi | |
16678 | done | |
16679 | if test -z "$haveit"; then | |
16680 | LIBS="${LIBS}${LIBS:+ }$element" | |
16681 | fi | |
16682 | done | |
16683 | ||
16684 | ||
9c60689e | 16685 | fi |
a667869d | 16686 | ac_ext=mm |
47aaa820 DWT |
16687 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
16688 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16689 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16690 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16691 | ||
a667869d | 16692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 |
47aaa820 | 16693 | $as_echo_n "checking if we really have Objective C++... " >&6; } |
a667869d | 16694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
47aaa820 DWT |
16695 | /* end confdefs.h. */ |
16696 | ||
a667869d | 16697 | // This space intentionally left blank |
47aaa820 DWT |
16698 | |
16699 | _ACEOF | |
16700 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16701 | ||
a667869d DWT |
16702 | CY_OBJECTIVEC=1 |
16703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
47aaa820 DWT |
16704 | $as_echo "yes" >&6; } |
16705 | ||
16706 | else | |
16707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16708 | $as_echo "no" >&6; } | |
16709 | fi | |
16710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a667869d | 16711 | if test "x$CY_OBJECTIVEC" = x1; then : |
47aaa820 | 16712 | |
c823f118 DWT |
16713 | |
16714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 | |
16715 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
16716 | if test "${ac_cv_framework_CoreFoundation+set}" = set; then : | |
16717 | $as_echo_n "(cached) " >&6 | |
16718 | else | |
16719 | ||
16720 | ac_check_framework_save_LIBS=$LIBS | |
16721 | LIBS="-framework CoreFoundation $LIBS" | |
16722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16723 | /* end confdefs.h. */ | |
16724 | ||
16725 | #include <CoreFoundation/CFBase.h> | |
16726 | ||
16727 | int | |
16728 | main () | |
16729 | { | |
16730 | CFAllocatorGetDefault(); | |
16731 | ; | |
16732 | return 0; | |
16733 | } | |
16734 | _ACEOF | |
16735 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
16736 | ||
16737 | ac_cv_framework_CoreFoundation=yes | |
16738 | ||
16739 | else | |
16740 | ac_cv_framework_CoreFoundation=no | |
16741 | fi | |
16742 | rm -f core conftest.err conftest.$ac_objext \ | |
16743 | conftest$ac_exeext conftest.$ac_ext | |
16744 | LIBS=$ac_check_framework_save_LIBS | |
16745 | ||
16746 | fi | |
16747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 | |
16748 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
16749 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
16750 | ||
16751 | ||
16752 | for element in "-framework CoreFoundation $LIBS"; do | |
16753 | haveit= | |
16754 | for x in $LIBS; do | |
16755 | ||
16756 | acl_save_prefix="$prefix" | |
16757 | prefix="$acl_final_prefix" | |
16758 | acl_save_exec_prefix="$exec_prefix" | |
16759 | exec_prefix="$acl_final_exec_prefix" | |
16760 | eval x=\"$x\" | |
16761 | exec_prefix="$acl_save_exec_prefix" | |
16762 | prefix="$acl_save_prefix" | |
16763 | ||
16764 | if test "X$x" = "X$element"; then | |
16765 | haveit=yes | |
16766 | break | |
16767 | fi | |
16768 | done | |
16769 | if test -z "$haveit"; then | |
16770 | LIBS="${LIBS}${LIBS:+ }$element" | |
16771 | fi | |
16772 | done | |
16773 | ||
16774 | ||
16775 | ||
16776 | ||
16777 | ||
16778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 | |
16779 | $as_echo_n "checking for framework Foundation... " >&6; } | |
16780 | if test "${ac_cv_framework_Foundation+set}" = set; then : | |
16781 | $as_echo_n "(cached) " >&6 | |
16782 | else | |
16783 | ||
16784 | ac_check_framework_save_LIBS=$LIBS | |
16785 | LIBS="-framework Foundation $LIBS" | |
16786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16787 | /* end confdefs.h. */ | |
16788 | ||
16789 | #include <Foundation/NSObject.h> | |
16790 | ||
16791 | int | |
16792 | main () | |
16793 | { | |
16794 | [[NSObject alloc] init]; | |
16795 | ; | |
16796 | return 0; | |
16797 | } | |
16798 | _ACEOF | |
16799 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
16800 | ||
16801 | ac_cv_framework_Foundation=yes | |
16802 | ||
16803 | else | |
16804 | ac_cv_framework_Foundation=no | |
16805 | fi | |
16806 | rm -f core conftest.err conftest.$ac_objext \ | |
16807 | conftest$ac_exeext conftest.$ac_ext | |
16808 | LIBS=$ac_check_framework_save_LIBS | |
16809 | ||
16810 | fi | |
16811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
16812 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
16813 | if test $ac_cv_framework_Foundation = yes; then : | |
16814 | ||
16815 | ||
16816 | for element in "-framework Foundation $LIBS"; do | |
16817 | haveit= | |
16818 | for x in $LIBS; do | |
16819 | ||
16820 | acl_save_prefix="$prefix" | |
16821 | prefix="$acl_final_prefix" | |
16822 | acl_save_exec_prefix="$exec_prefix" | |
16823 | exec_prefix="$acl_final_exec_prefix" | |
16824 | eval x=\"$x\" | |
16825 | exec_prefix="$acl_save_exec_prefix" | |
16826 | prefix="$acl_save_prefix" | |
16827 | ||
16828 | if test "X$x" = "X$element"; then | |
16829 | haveit=yes | |
16830 | break | |
16831 | fi | |
16832 | done | |
16833 | if test -z "$haveit"; then | |
16834 | LIBS="${LIBS}${LIBS:+ }$element" | |
16835 | fi | |
16836 | done | |
16837 | ||
16838 | cat >>confdefs.h <<_ACEOF | |
16839 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
16840 | _ACEOF | |
16841 | ||
16842 | ||
16843 | fi | |
16844 | ||
16845 | ||
16846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 | |
16847 | $as_echo_n "checking for framework WebKit... " >&6; } | |
16848 | if test "${ac_cv_framework_WebKit+set}" = set; then : | |
16849 | $as_echo_n "(cached) " >&6 | |
16850 | else | |
16851 | ||
16852 | ac_check_framework_save_LIBS=$LIBS | |
16853 | LIBS="-framework WebKit $LIBS" | |
16854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16855 | /* end confdefs.h. */ | |
16856 | ||
16857 | #include <WebKit/WebScriptObject.h> | |
16858 | ||
16859 | int | |
16860 | main () | |
16861 | { | |
16862 | [[WebScriptObject alloc] init]; | |
16863 | ; | |
16864 | return 0; | |
16865 | } | |
16866 | _ACEOF | |
16867 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
16868 | ||
16869 | ac_cv_framework_WebKit=yes | |
16870 | ||
16871 | else | |
16872 | ac_cv_framework_WebKit=no | |
16873 | fi | |
16874 | rm -f core conftest.err conftest.$ac_objext \ | |
16875 | conftest$ac_exeext conftest.$ac_ext | |
16876 | LIBS=$ac_check_framework_save_LIBS | |
16877 | ||
16878 | fi | |
16879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
16880 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
16881 | if test $ac_cv_framework_WebKit = yes; then : | |
16882 | ||
16883 | ||
16884 | for element in "-framework WebKit $LIBS"; do | |
16885 | haveit= | |
16886 | for x in $LIBS; do | |
16887 | ||
16888 | acl_save_prefix="$prefix" | |
16889 | prefix="$acl_final_prefix" | |
16890 | acl_save_exec_prefix="$exec_prefix" | |
16891 | exec_prefix="$acl_final_exec_prefix" | |
16892 | eval x=\"$x\" | |
16893 | exec_prefix="$acl_save_exec_prefix" | |
16894 | prefix="$acl_save_prefix" | |
16895 | ||
16896 | if test "X$x" = "X$element"; then | |
16897 | haveit=yes | |
16898 | break | |
16899 | fi | |
16900 | done | |
16901 | if test -z "$haveit"; then | |
16902 | LIBS="${LIBS}${LIBS:+ }$element" | |
16903 | fi | |
16904 | done | |
16905 | ||
16906 | cat >>confdefs.h <<_ACEOF | |
16907 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
16908 | _ACEOF | |
16909 | ||
16910 | ||
16911 | fi | |
16912 | ||
16913 | ||
16914 | else | |
16915 | ||
16916 | for ac_prog in gnustep-config | |
47aaa820 DWT |
16917 | do |
16918 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16919 | set dummy $ac_prog; ac_word=$2 | |
16920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16921 | $as_echo_n "checking for $ac_word... " >&6; } | |
16922 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
16923 | $as_echo_n "(cached) " >&6 | |
16924 | else | |
16925 | if test -n "$GNUSTEP_CONFIG"; then | |
16926 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
16927 | else | |
16928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16929 | for as_dir in $PATH | |
16930 | do | |
16931 | IFS=$as_save_IFS | |
16932 | test -z "$as_dir" && as_dir=. | |
16933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16935 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
16936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16937 | break 2 | |
16938 | fi | |
16939 | done | |
16940 | done | |
16941 | IFS=$as_save_IFS | |
16942 | ||
16943 | fi | |
16944 | fi | |
16945 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
16946 | if test -n "$GNUSTEP_CONFIG"; then | |
16947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
16948 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
16949 | else | |
16950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16951 | $as_echo "no" >&6; } | |
16952 | fi | |
16953 | ||
16954 | ||
16955 | test -n "$GNUSTEP_CONFIG" && break | |
16956 | done | |
16957 | ||
c823f118 | 16958 | if test "x$GNUSTEP_CONFIG" != x; then : |
47aaa820 DWT |
16959 | |
16960 | ||
16961 | ||
16962 | for element in `$GNUSTEP_CONFIG --objc-flags`; do | |
16963 | haveit= | |
16964 | for x in $OBJCXXFLAGS; do | |
16965 | ||
16966 | acl_save_prefix="$prefix" | |
16967 | prefix="$acl_final_prefix" | |
16968 | acl_save_exec_prefix="$exec_prefix" | |
16969 | exec_prefix="$acl_final_exec_prefix" | |
16970 | eval x=\"$x\" | |
16971 | exec_prefix="$acl_save_exec_prefix" | |
16972 | prefix="$acl_save_prefix" | |
9c60689e | 16973 | |
47aaa820 DWT |
16974 | if test "X$x" = "X$element"; then |
16975 | haveit=yes | |
16976 | break | |
16977 | fi | |
16978 | done | |
16979 | if test -z "$haveit"; then | |
16980 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16981 | fi | |
16982 | done | |
16983 | ||
16984 | ||
16985 | for element in `$GNUSTEP_CONFIG --base-libs`; do | |
16986 | haveit= | |
16987 | for x in $LIBS; do | |
16988 | ||
16989 | acl_save_prefix="$prefix" | |
16990 | prefix="$acl_final_prefix" | |
16991 | acl_save_exec_prefix="$exec_prefix" | |
16992 | exec_prefix="$acl_final_exec_prefix" | |
16993 | eval x=\"$x\" | |
16994 | exec_prefix="$acl_save_exec_prefix" | |
16995 | prefix="$acl_save_prefix" | |
16996 | ||
16997 | if test "X$x" = "X$element"; then | |
16998 | haveit=yes | |
16999 | break | |
17000 | fi | |
17001 | done | |
17002 | if test -z "$haveit"; then | |
17003 | LIBS="${LIBS}${LIBS:+ }$element" | |
17004 | fi | |
17005 | done | |
17006 | ||
17007 | ||
c823f118 DWT |
17008 | else |
17009 | CY_OBJECTIVEC=0 | |
17010 | ||
17011 | fi | |
17012 | ||
47aaa820 DWT |
17013 | fi |
17014 | ||
17015 | fi | |
c823f118 DWT |
17016 | ac_ext=cpp |
17017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17021 | ||
a667869d DWT |
17022 | ;; #( |
17023 | *) : | |
17024 | ||
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5 | |
17026 | $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} | |
17027 | ;; | |
17028 | esac | |
e1cce270 DWT |
17029 | if test "x$CY_OBJECTIVEC" = x1; then : |
17030 | ||
17031 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
17032 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : | |
17033 | ||
17034 | case $OTOOL in #( | |
17035 | :) : | |
17036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5 | |
17037 | $as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #( | |
17038 | *) : | |
17039 | CY_OBJECTIVEC_MACH=1 | |
17040 | ;; | |
17041 | esac | |
17042 | ||
17043 | fi | |
17044 | ||
17045 | ||
17046 | ||
17047 | fi | |
47aaa820 DWT |
17048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
17049 | $as_echo_n "checking for GNU make... " >&6; } | |
17050 | if test "${_cv_gnu_make_command+set}" = set; then : | |
17051 | $as_echo_n "(cached) " >&6 | |
17052 | else | |
17053 | _cv_gnu_make_command='' ; | |
17054 | for a in "$MAKE" make gmake gnumake ; do | |
17055 | if test -z "$a" ; then continue ; fi ; | |
17056 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
17057 | _cv_gnu_make_command=$a ; | |
17058 | break; | |
17059 | fi | |
17060 | done ; | |
17061 | ||
17062 | fi | |
17063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
17064 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
17065 | if test "x$_cv_gnu_make_command" != "x" ; then | |
17066 | ifGNUmake='' ; | |
17067 | else | |
17068 | ifGNUmake='#' ; | |
17069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
17070 | $as_echo "\"Not found\"" >&6; }; | |
17071 | fi | |
17072 | ||
17073 | ||
17074 | if test "x$_cv_gnu_make_command" = x; then : | |
17075 | as_fn_error "You need GNU make" "$LINENO" 5 | |
17076 | fi | |
9c60689e DWT |
17077 | ac_config_files="$ac_config_files GNUmakefile" |
17078 | ||
17079 | cat >confcache <<\_ACEOF | |
17080 | # This file is a shell script that caches the results of configure | |
17081 | # tests run on this system so they can be shared between configure | |
17082 | # scripts and configure runs, see configure's option --config-cache. | |
17083 | # It is not useful on other systems. If it contains results you don't | |
17084 | # want to keep, you may remove or edit it. | |
17085 | # | |
17086 | # config.status only pays attention to the cache file if you give it | |
17087 | # the --recheck option to rerun configure. | |
17088 | # | |
17089 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17090 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17091 | # following values. | |
17092 | ||
17093 | _ACEOF | |
17094 | ||
17095 | # The following way of writing the cache mishandles newlines in values, | |
17096 | # but we know of no workaround that is simple, portable, and efficient. | |
17097 | # So, we kill variables containing newlines. | |
17098 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17099 | # and sets the high bit in the cache file unless we assign to the vars. | |
17100 | ( | |
17101 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17102 | eval ac_val=\$$ac_var | |
17103 | case $ac_val in #( | |
17104 | *${as_nl}*) | |
17105 | case $ac_var in #( | |
17106 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17107 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17108 | esac | |
17109 | case $ac_var in #( | |
17110 | _ | IFS | as_nl) ;; #( | |
17111 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17112 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17113 | esac ;; | |
17114 | esac | |
17115 | done | |
17116 | ||
17117 | (set) 2>&1 | | |
17118 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17119 | *${as_nl}ac_space=\ *) | |
17120 | # `set' does not quote correctly, so add quotes: double-quote | |
17121 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
17122 | sed -n \ | |
17123 | "s/'/'\\\\''/g; | |
17124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17125 | ;; #( | |
17126 | *) | |
17127 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17128 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17129 | ;; | |
17130 | esac | | |
17131 | sort | |
17132 | ) | | |
17133 | sed ' | |
17134 | /^ac_cv_env_/b end | |
17135 | t clear | |
17136 | :clear | |
17137 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17138 | t end | |
17139 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17140 | :end' >>confcache | |
17141 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17142 | if test -w "$cache_file"; then | |
17143 | test "x$cache_file" != "x/dev/null" && | |
17144 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
17145 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
17146 | cat confcache >$cache_file | |
17147 | else | |
17148 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
17149 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17150 | fi | |
17151 | fi | |
17152 | rm -f confcache | |
17153 | ||
17154 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17155 | # Let make expand exec_prefix. | |
17156 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17157 | ||
17158 | # Transform confdefs.h into DEFS. | |
17159 | # Protect against shell expansion while executing Makefile rules. | |
17160 | # Protect against Makefile macro expansion. | |
17161 | # | |
17162 | # If the first sed substitution is executed (which looks for macros that | |
17163 | # take arguments), then branch to the quote section. Otherwise, | |
17164 | # look for a macro that doesn't take arguments. | |
17165 | ac_script=' | |
17166 | :mline | |
17167 | /\\$/{ | |
17168 | N | |
17169 | s,\\\n,, | |
17170 | b mline | |
17171 | } | |
17172 | t clear | |
17173 | :clear | |
17174 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
17175 | t quote | |
17176 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
17177 | t quote | |
17178 | b any | |
17179 | :quote | |
17180 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
17181 | s/\[/\\&/g | |
17182 | s/\]/\\&/g | |
17183 | s/\$/$$/g | |
17184 | H | |
17185 | :any | |
17186 | ${ | |
17187 | g | |
17188 | s/^\n// | |
17189 | s/\n/ /g | |
17190 | p | |
17191 | } | |
17192 | ' | |
17193 | DEFS=`sed -n "$ac_script" confdefs.h` | |
17194 | ||
17195 | ||
17196 | ac_libobjs= | |
17197 | ac_ltlibobjs= | |
17198 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17199 | # 1. Remove the extension, and $U if already installed. | |
17200 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
17201 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17202 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17203 | # will be set to the directory where LIBOBJS objects are built. | |
17204 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17205 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
17206 | done | |
17207 | LIBOBJS=$ac_libobjs | |
17208 | ||
17209 | LTLIBOBJS=$ac_ltlibobjs | |
17210 | ||
17211 | ||
17212 | ||
17213 | : ${CONFIG_STATUS=./config.status} | |
17214 | ac_write_fail=0 | |
17215 | ac_clean_files_save=$ac_clean_files | |
17216 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
17217 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
17218 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17219 | as_write_fail=0 | |
17220 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
17221 | #! $SHELL | |
17222 | # Generated by $as_me. | |
17223 | # Run this file to recreate the current configuration. | |
17224 | # Compiler output produced by configure, useful for debugging | |
17225 | # configure, is in config.log if it exists. | |
17226 | ||
17227 | debug=false | |
17228 | ac_cs_recheck=false | |
17229 | ac_cs_silent=false | |
17230 | ||
17231 | SHELL=\${CONFIG_SHELL-$SHELL} | |
17232 | export SHELL | |
17233 | _ASEOF | |
17234 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17235 | ## -------------------- ## | |
17236 | ## M4sh Initialization. ## | |
17237 | ## -------------------- ## | |
17238 | ||
17239 | # Be more Bourne compatible | |
17240 | DUALCASE=1; export DUALCASE # for MKS sh | |
17241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
17242 | emulate sh | |
17243 | NULLCMD=: | |
17244 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
17245 | # is contrary to our usage. Disable this feature. | |
17246 | alias -g '${1+"$@"}'='"$@"' | |
17247 | setopt NO_GLOB_SUBST | |
17248 | else | |
17249 | case `(set -o) 2>/dev/null` in #( | |
17250 | *posix*) : | |
17251 | set -o posix ;; #( | |
17252 | *) : | |
17253 | ;; | |
17254 | esac | |
17255 | fi | |
17256 | ||
17257 | ||
17258 | as_nl=' | |
17259 | ' | |
17260 | export as_nl | |
17261 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17262 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17263 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17264 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17265 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17266 | # but without wasting forks for bash or zsh. | |
17267 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17268 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17269 | as_echo='print -r --' | |
17270 | as_echo_n='print -rn --' | |
17271 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17272 | as_echo='printf %s\n' | |
17273 | as_echo_n='printf %s' | |
17274 | else | |
17275 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17276 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17277 | as_echo_n='/usr/ucb/echo -n' | |
17278 | else | |
17279 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17280 | as_echo_n_body='eval | |
17281 | arg=$1; | |
17282 | case $arg in #( | |
17283 | *"$as_nl"*) | |
17284 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17285 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17286 | esac; | |
17287 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17288 | ' | |
17289 | export as_echo_n_body | |
17290 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17291 | fi | |
17292 | export as_echo_body | |
17293 | as_echo='sh -c $as_echo_body as_echo' | |
17294 | fi | |
17295 | ||
17296 | # The user is always right. | |
17297 | if test "${PATH_SEPARATOR+set}" != set; then | |
17298 | PATH_SEPARATOR=: | |
17299 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17300 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17301 | PATH_SEPARATOR=';' | |
17302 | } | |
17303 | fi | |
17304 | ||
17305 | ||
17306 | # IFS | |
17307 | # We need space, tab and new line, in precisely that order. Quoting is | |
17308 | # there to prevent editors from complaining about space-tab. | |
17309 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17310 | # splitting by setting IFS to empty value.) | |
17311 | IFS=" "" $as_nl" | |
17312 | ||
17313 | # Find who we are. Look in the path if we contain no directory separator. | |
17314 | case $0 in #(( | |
17315 | *[\\/]* ) as_myself=$0 ;; | |
17316 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17317 | for as_dir in $PATH | |
17318 | do | |
17319 | IFS=$as_save_IFS | |
17320 | test -z "$as_dir" && as_dir=. | |
17321 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17322 | done | |
17323 | IFS=$as_save_IFS | |
17324 | ||
17325 | ;; | |
17326 | esac | |
17327 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17328 | # in which case we are not to be found in the path. | |
17329 | if test "x$as_myself" = x; then | |
17330 | as_myself=$0 | |
17331 | fi | |
17332 | if test ! -f "$as_myself"; then | |
17333 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17334 | exit 1 | |
17335 | fi | |
17336 | ||
17337 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17338 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17339 | # suppresses any "Segmentation fault" message there. '((' could | |
17340 | # trigger a bug in pdksh 5.2.14. | |
17341 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17342 | do eval test x\${$as_var+set} = xset \ | |
17343 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17344 | done | |
17345 | PS1='$ ' | |
17346 | PS2='> ' | |
17347 | PS4='+ ' | |
17348 | ||
17349 | # NLS nuisances. | |
17350 | LC_ALL=C | |
17351 | export LC_ALL | |
17352 | LANGUAGE=C | |
17353 | export LANGUAGE | |
17354 | ||
17355 | # CDPATH. | |
17356 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17357 | ||
17358 | ||
17359 | # as_fn_error ERROR [LINENO LOG_FD] | |
17360 | # --------------------------------- | |
17361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
17362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
17363 | # script with status $?, using 1 if that was 0. | |
17364 | as_fn_error () | |
17365 | { | |
17366 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
17367 | if test "$3"; then | |
17368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
17370 | fi | |
17371 | $as_echo "$as_me: error: $1" >&2 | |
17372 | as_fn_exit $as_status | |
17373 | } # as_fn_error | |
17374 | ||
17375 | ||
17376 | # as_fn_set_status STATUS | |
17377 | # ----------------------- | |
17378 | # Set $? to STATUS, without forking. | |
17379 | as_fn_set_status () | |
17380 | { | |
17381 | return $1 | |
17382 | } # as_fn_set_status | |
17383 | ||
17384 | # as_fn_exit STATUS | |
17385 | # ----------------- | |
17386 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17387 | as_fn_exit () | |
17388 | { | |
17389 | set +e | |
17390 | as_fn_set_status $1 | |
17391 | exit $1 | |
17392 | } # as_fn_exit | |
17393 | ||
17394 | # as_fn_unset VAR | |
17395 | # --------------- | |
17396 | # Portably unset VAR. | |
17397 | as_fn_unset () | |
17398 | { | |
17399 | { eval $1=; unset $1;} | |
17400 | } | |
17401 | as_unset=as_fn_unset | |
17402 | # as_fn_append VAR VALUE | |
17403 | # ---------------------- | |
17404 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17405 | # advantage of any shell optimizations that allow amortized linear growth over | |
17406 | # repeated appends, instead of the typical quadratic growth present in naive | |
17407 | # implementations. | |
17408 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17409 | eval 'as_fn_append () | |
17410 | { | |
17411 | eval $1+=\$2 | |
17412 | }' | |
17413 | else | |
17414 | as_fn_append () | |
17415 | { | |
17416 | eval $1=\$$1\$2 | |
17417 | } | |
17418 | fi # as_fn_append | |
17419 | ||
17420 | # as_fn_arith ARG... | |
17421 | # ------------------ | |
17422 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17423 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17424 | # must be portable across $(()) and expr. | |
17425 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17426 | eval 'as_fn_arith () | |
17427 | { | |
17428 | as_val=$(( $* )) | |
17429 | }' | |
17430 | else | |
17431 | as_fn_arith () | |
17432 | { | |
17433 | as_val=`expr "$@" || test $? -eq 1` | |
17434 | } | |
17435 | fi # as_fn_arith | |
17436 | ||
17437 | ||
17438 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
17439 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
17440 | as_expr=expr | |
17441 | else | |
17442 | as_expr=false | |
17443 | fi | |
17444 | ||
17445 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
17446 | as_basename=basename | |
17447 | else | |
17448 | as_basename=false | |
17449 | fi | |
17450 | ||
17451 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
17452 | as_dirname=dirname | |
17453 | else | |
17454 | as_dirname=false | |
17455 | fi | |
17456 | ||
17457 | as_me=`$as_basename -- "$0" || | |
17458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
17459 | X"$0" : 'X\(//\)$' \| \ | |
17460 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
17461 | $as_echo X/"$0" | | |
17462 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17463 | s//\1/ | |
17464 | q | |
17465 | } | |
17466 | /^X\/\(\/\/\)$/{ | |
17467 | s//\1/ | |
17468 | q | |
17469 | } | |
17470 | /^X\/\(\/\).*/{ | |
17471 | s//\1/ | |
17472 | q | |
17473 | } | |
17474 | s/.*/./; q'` | |
17475 | ||
17476 | # Avoid depending upon Character Ranges. | |
17477 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17478 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17479 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17480 | as_cr_digits='0123456789' | |
17481 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17482 | ||
17483 | ECHO_C= ECHO_N= ECHO_T= | |
17484 | case `echo -n x` in #((((( | |
17485 | -n*) | |
17486 | case `echo 'xy\c'` in | |
17487 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17488 | xy) ECHO_C='\c';; | |
17489 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17490 | ECHO_T=' ';; | |
17491 | esac;; | |
17492 | *) | |
17493 | ECHO_N='-n';; | |
17494 | esac | |
17495 | ||
17496 | rm -f conf$$ conf$$.exe conf$$.file | |
17497 | if test -d conf$$.dir; then | |
17498 | rm -f conf$$.dir/conf$$.file | |
17499 | else | |
17500 | rm -f conf$$.dir | |
17501 | mkdir conf$$.dir 2>/dev/null | |
17502 | fi | |
17503 | if (echo >conf$$.file) 2>/dev/null; then | |
17504 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
17505 | as_ln_s='ln -s' | |
17506 | # ... but there are two gotchas: | |
17507 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17508 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17509 | # In both cases, we have to default to `cp -p'. | |
17510 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17511 | as_ln_s='cp -p' | |
17512 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
17513 | as_ln_s=ln | |
17514 | else | |
17515 | as_ln_s='cp -p' | |
17516 | fi | |
17517 | else | |
17518 | as_ln_s='cp -p' | |
17519 | fi | |
17520 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
17521 | rmdir conf$$.dir 2>/dev/null | |
17522 | ||
17523 | ||
17524 | # as_fn_mkdir_p | |
17525 | # ------------- | |
17526 | # Create "$as_dir" as a directory, including parents if necessary. | |
17527 | as_fn_mkdir_p () | |
17528 | { | |
17529 | ||
17530 | case $as_dir in #( | |
17531 | -*) as_dir=./$as_dir;; | |
17532 | esac | |
17533 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17534 | as_dirs= | |
17535 | while :; do | |
17536 | case $as_dir in #( | |
17537 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17538 | *) as_qdir=$as_dir;; | |
17539 | esac | |
17540 | as_dirs="'$as_qdir' $as_dirs" | |
17541 | as_dir=`$as_dirname -- "$as_dir" || | |
17542 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17543 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17544 | X"$as_dir" : 'X\(//\)$' \| \ | |
17545 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17546 | $as_echo X"$as_dir" | | |
17547 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17548 | s//\1/ | |
17549 | q | |
17550 | } | |
17551 | /^X\(\/\/\)[^/].*/{ | |
17552 | s//\1/ | |
17553 | q | |
17554 | } | |
17555 | /^X\(\/\/\)$/{ | |
17556 | s//\1/ | |
17557 | q | |
17558 | } | |
17559 | /^X\(\/\).*/{ | |
17560 | s//\1/ | |
17561 | q | |
17562 | } | |
17563 | s/.*/./; q'` | |
17564 | test -d "$as_dir" && break | |
17565 | done | |
17566 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17567 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
17568 | ||
17569 | ||
17570 | } # as_fn_mkdir_p | |
17571 | if mkdir -p . 2>/dev/null; then | |
17572 | as_mkdir_p='mkdir -p "$as_dir"' | |
17573 | else | |
17574 | test -d ./-p && rmdir ./-p | |
17575 | as_mkdir_p=false | |
17576 | fi | |
17577 | ||
17578 | if test -x / >/dev/null 2>&1; then | |
17579 | as_test_x='test -x' | |
17580 | else | |
17581 | if ls -dL / >/dev/null 2>&1; then | |
17582 | as_ls_L_option=L | |
17583 | else | |
17584 | as_ls_L_option= | |
17585 | fi | |
17586 | as_test_x=' | |
17587 | eval sh -c '\'' | |
17588 | if test -d "$1"; then | |
17589 | test -d "$1/."; | |
17590 | else | |
17591 | case $1 in #( | |
17592 | -*)set "./$1";; | |
17593 | esac; | |
17594 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
17595 | ???[sx]*):;;*)false;;esac;fi | |
17596 | '\'' sh | |
17597 | ' | |
17598 | fi | |
17599 | as_executable_p=$as_test_x | |
17600 | ||
17601 | # Sed expression to map a string onto a valid CPP name. | |
17602 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17603 | ||
17604 | # Sed expression to map a string onto a valid variable name. | |
17605 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17606 | ||
17607 | ||
17608 | exec 6>&1 | |
17609 | ## ----------------------------------- ## | |
17610 | ## Main body of $CONFIG_STATUS script. ## | |
17611 | ## ----------------------------------- ## | |
17612 | _ASEOF | |
17613 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17614 | ||
17615 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17616 | # Save the log message, to keep $0 and so on meaningful, and to | |
17617 | # report actual input values of CONFIG_FILES etc. instead of their | |
17618 | # values after options handling. | |
17619 | ac_log=" | |
17620 | This file was extended by Cycript $as_me 0.9, which was | |
17621 | generated by GNU Autoconf 2.65. Invocation command line was | |
17622 | ||
17623 | CONFIG_FILES = $CONFIG_FILES | |
17624 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17625 | CONFIG_LINKS = $CONFIG_LINKS | |
17626 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17627 | $ $0 $@ | |
17628 | ||
17629 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
17630 | " | |
17631 | ||
17632 | _ACEOF | |
17633 | ||
17634 | case $ac_config_files in *" | |
17635 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17636 | esac | |
17637 | ||
17638 | ||
17639 | ||
17640 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17641 | # Files that config.status was made for. | |
17642 | config_files="$ac_config_files" | |
17643 | config_commands="$ac_config_commands" | |
17644 | ||
17645 | _ACEOF | |
17646 | ||
17647 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17648 | ac_cs_usage="\ | |
17649 | \`$as_me' instantiates files and other configuration actions | |
17650 | from templates according to the current configuration. Unless the files | |
17651 | and actions are specified as TAGs, all are instantiated by default. | |
17652 | ||
17653 | Usage: $0 [OPTION]... [TAG]... | |
17654 | ||
17655 | -h, --help print this help, then exit | |
17656 | -V, --version print version number and configuration settings, then exit | |
17657 | --config print configuration, then exit | |
17658 | -q, --quiet, --silent | |
17659 | do not print progress messages | |
17660 | -d, --debug don't remove temporary files | |
17661 | --recheck update $as_me by reconfiguring in the same conditions | |
17662 | --file=FILE[:TEMPLATE] | |
17663 | instantiate the configuration file FILE | |
17664 | ||
17665 | Configuration files: | |
17666 | $config_files | |
17667 | ||
17668 | Configuration commands: | |
17669 | $config_commands | |
17670 | ||
17671 | Report bugs to <saurik@saurik.com>. | |
17672 | Cycript home page: <http://www.cycript.org/>." | |
17673 | ||
17674 | _ACEOF | |
17675 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17676 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
17677 | ac_cs_version="\\ | |
17678 | Cycript config.status 0.9 | |
17679 | configured by $0, generated by GNU Autoconf 2.65, | |
17680 | with options \\"\$ac_cs_config\\" | |
17681 | ||
17682 | Copyright (C) 2009 Free Software Foundation, Inc. | |
17683 | This config.status script is free software; the Free Software Foundation | |
17684 | gives unlimited permission to copy, distribute and modify it." | |
17685 | ||
17686 | ac_pwd='$ac_pwd' | |
17687 | srcdir='$srcdir' | |
17688 | INSTALL='$INSTALL' | |
17689 | AWK='$AWK' | |
17690 | test -n "\$AWK" || AWK=awk | |
17691 | _ACEOF | |
17692 | ||
17693 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17694 | # The default lists apply if the user does not specify any file. | |
17695 | ac_need_defaults=: | |
17696 | while test $# != 0 | |
17697 | do | |
17698 | case $1 in | |
17699 | --*=*) | |
17700 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17701 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17702 | ac_shift=: | |
17703 | ;; | |
17704 | *) | |
17705 | ac_option=$1 | |
17706 | ac_optarg=$2 | |
17707 | ac_shift=shift | |
17708 | ;; | |
17709 | esac | |
17710 | ||
17711 | case $ac_option in | |
17712 | # Handling of the options. | |
17713 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17714 | ac_cs_recheck=: ;; | |
17715 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17716 | $as_echo "$ac_cs_version"; exit ;; | |
17717 | --config | --confi | --conf | --con | --co | --c ) | |
17718 | $as_echo "$ac_cs_config"; exit ;; | |
17719 | --debug | --debu | --deb | --de | --d | -d ) | |
17720 | debug=: ;; | |
17721 | --file | --fil | --fi | --f ) | |
17722 | $ac_shift | |
17723 | case $ac_optarg in | |
17724 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17725 | esac | |
17726 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
17727 | ac_need_defaults=false;; | |
17728 | --he | --h | --help | --hel | -h ) | |
17729 | $as_echo "$ac_cs_usage"; exit ;; | |
17730 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17731 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17732 | ac_cs_silent=: ;; | |
17733 | ||
17734 | # This is an error. | |
17735 | -*) as_fn_error "unrecognized option: \`$1' | |
17736 | Try \`$0 --help' for more information." ;; | |
17737 | ||
17738 | *) as_fn_append ac_config_targets " $1" | |
17739 | ac_need_defaults=false ;; | |
17740 | ||
17741 | esac | |
17742 | shift | |
17743 | done | |
17744 | ||
17745 | ac_configure_extra_args= | |
17746 | ||
17747 | if $ac_cs_silent; then | |
17748 | exec 6>/dev/null | |
17749 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17750 | fi | |
17751 | ||
17752 | _ACEOF | |
17753 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17754 | if \$ac_cs_recheck; then | |
17755 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17756 | shift | |
17757 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17758 | CONFIG_SHELL='$SHELL' | |
17759 | export CONFIG_SHELL | |
17760 | exec "\$@" | |
17761 | fi | |
17762 | ||
17763 | _ACEOF | |
17764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17765 | exec 5>>config.log | |
17766 | { | |
17767 | echo | |
17768 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17769 | ## Running $as_me. ## | |
17770 | _ASBOX | |
17771 | $as_echo "$ac_log" | |
17772 | } >&5 | |
17773 | ||
17774 | _ACEOF | |
17775 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17776 | # | |
17777 | # INIT-COMMANDS | |
17778 | # | |
17779 | ||
17780 | ||
17781 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17782 | # if CDPATH is set. | |
17783 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17784 | ||
17785 | sed_quote_subst='$sed_quote_subst' | |
17786 | double_quote_subst='$double_quote_subst' | |
17787 | delay_variable_subst='$delay_variable_subst' | |
17788 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17789 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
9c60689e | 17790 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
549f29b5 | 17791 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
9c60689e DWT |
17792 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
17793 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
17794 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17795 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
17796 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17797 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17798 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
17799 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17800 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
17801 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
17802 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17803 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17804 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17805 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
17806 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
17807 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
17808 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
17809 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
17810 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
17811 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
17812 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
17813 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
17814 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17815 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17816 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
17817 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
17818 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
17819 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
17820 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17821 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
17822 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
17823 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17824 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17825 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17826 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
17827 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17828 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
17829 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
17830 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
17831 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
17832 | 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"`' | |
17833 | 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"`' | |
17834 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
17835 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
17836 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
17837 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
17838 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17839 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
17840 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
17841 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17842 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
17843 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
17844 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
17845 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
17846 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
17847 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
17848 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
17849 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
17850 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17851 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17852 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
17853 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
17854 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17855 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17856 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
17857 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17858 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17859 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17860 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17861 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17862 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17863 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17864 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17865 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17866 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17867 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17868 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
17869 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
17870 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
17871 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
17872 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17873 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
17874 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17875 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
17876 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17877 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
17878 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17879 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17880 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17881 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17882 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17883 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
17884 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
17885 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17886 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
17887 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17888 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17889 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17890 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17891 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17892 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17893 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17894 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17895 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17896 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
17897 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
17898 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17899 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17900 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
17901 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
17902 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
17903 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17904 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17905 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17906 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
17907 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17908 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17909 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17910 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17911 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17912 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17913 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17914 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17915 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17916 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17917 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17918 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17919 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17920 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17921 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17922 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17923 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17924 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17925 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17926 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17927 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17928 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17929 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17930 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17931 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17932 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17933 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17934 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17935 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17936 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17937 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17938 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17939 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17940 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17941 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17942 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17943 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17944 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17945 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17946 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17947 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17948 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17949 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17950 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17951 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17952 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17953 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17954 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17955 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17956 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17957 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17958 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17959 | ||
17960 | LTCC='$LTCC' | |
17961 | LTCFLAGS='$LTCFLAGS' | |
17962 | compiler='$compiler_DEFAULT' | |
17963 | ||
17964 | # Quote evaled strings. | |
17965 | for var in SED \ | |
17966 | GREP \ | |
17967 | EGREP \ | |
17968 | FGREP \ | |
17969 | LD \ | |
17970 | NM \ | |
17971 | LN_S \ | |
17972 | lt_SP2NL \ | |
17973 | lt_NL2SP \ | |
17974 | reload_flag \ | |
17975 | OBJDUMP \ | |
17976 | deplibs_check_method \ | |
17977 | file_magic_cmd \ | |
17978 | AR \ | |
17979 | AR_FLAGS \ | |
17980 | STRIP \ | |
17981 | RANLIB \ | |
17982 | CC \ | |
17983 | CFLAGS \ | |
17984 | compiler \ | |
17985 | lt_cv_sys_global_symbol_pipe \ | |
17986 | lt_cv_sys_global_symbol_to_cdecl \ | |
17987 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17988 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
17989 | SHELL \ | |
17990 | ECHO \ | |
17991 | lt_prog_compiler_no_builtin_flag \ | |
17992 | lt_prog_compiler_wl \ | |
17993 | lt_prog_compiler_pic \ | |
17994 | lt_prog_compiler_static \ | |
17995 | lt_cv_prog_compiler_c_o \ | |
17996 | need_locks \ | |
17997 | DSYMUTIL \ | |
17998 | NMEDIT \ | |
17999 | LIPO \ | |
18000 | OTOOL \ | |
18001 | OTOOL64 \ | |
18002 | shrext_cmds \ | |
18003 | export_dynamic_flag_spec \ | |
18004 | whole_archive_flag_spec \ | |
18005 | compiler_needs_object \ | |
18006 | with_gnu_ld \ | |
18007 | allow_undefined_flag \ | |
18008 | no_undefined_flag \ | |
18009 | hardcode_libdir_flag_spec \ | |
18010 | hardcode_libdir_flag_spec_ld \ | |
18011 | hardcode_libdir_separator \ | |
18012 | fix_srcfile_path \ | |
18013 | exclude_expsyms \ | |
18014 | include_expsyms \ | |
18015 | file_list_spec \ | |
18016 | variables_saved_for_relink \ | |
18017 | libname_spec \ | |
18018 | library_names_spec \ | |
18019 | soname_spec \ | |
18020 | finish_eval \ | |
18021 | old_striplib \ | |
18022 | striplib \ | |
18023 | compiler_lib_search_dirs \ | |
18024 | predep_objects \ | |
18025 | postdep_objects \ | |
18026 | predeps \ | |
18027 | postdeps \ | |
18028 | compiler_lib_search_path \ | |
18029 | LD_CXX \ | |
18030 | compiler_CXX \ | |
18031 | lt_prog_compiler_no_builtin_flag_CXX \ | |
18032 | lt_prog_compiler_wl_CXX \ | |
18033 | lt_prog_compiler_pic_CXX \ | |
18034 | lt_prog_compiler_static_CXX \ | |
18035 | lt_cv_prog_compiler_c_o_CXX \ | |
18036 | export_dynamic_flag_spec_CXX \ | |
18037 | whole_archive_flag_spec_CXX \ | |
18038 | compiler_needs_object_CXX \ | |
18039 | with_gnu_ld_CXX \ | |
18040 | allow_undefined_flag_CXX \ | |
18041 | no_undefined_flag_CXX \ | |
18042 | hardcode_libdir_flag_spec_CXX \ | |
18043 | hardcode_libdir_flag_spec_ld_CXX \ | |
18044 | hardcode_libdir_separator_CXX \ | |
18045 | fix_srcfile_path_CXX \ | |
18046 | exclude_expsyms_CXX \ | |
18047 | include_expsyms_CXX \ | |
18048 | file_list_spec_CXX \ | |
18049 | compiler_lib_search_dirs_CXX \ | |
18050 | predep_objects_CXX \ | |
18051 | postdep_objects_CXX \ | |
18052 | predeps_CXX \ | |
18053 | postdeps_CXX \ | |
18054 | compiler_lib_search_path_CXX; do | |
18055 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
18056 | *[\\\\\\\`\\"\\\$]*) | |
18057 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18058 | ;; | |
18059 | *) | |
18060 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18061 | ;; | |
18062 | esac | |
18063 | done | |
18064 | ||
18065 | # Double-quote double-evaled strings. | |
18066 | for var in reload_cmds \ | |
18067 | old_postinstall_cmds \ | |
18068 | old_postuninstall_cmds \ | |
18069 | old_archive_cmds \ | |
18070 | extract_expsyms_cmds \ | |
18071 | old_archive_from_new_cmds \ | |
18072 | old_archive_from_expsyms_cmds \ | |
18073 | archive_cmds \ | |
18074 | archive_expsym_cmds \ | |
18075 | module_cmds \ | |
18076 | module_expsym_cmds \ | |
18077 | export_symbols_cmds \ | |
18078 | prelink_cmds \ | |
18079 | postinstall_cmds \ | |
18080 | postuninstall_cmds \ | |
18081 | finish_cmds \ | |
18082 | sys_lib_search_path_spec \ | |
18083 | sys_lib_dlsearch_path_spec \ | |
18084 | old_archive_cmds_CXX \ | |
18085 | old_archive_from_new_cmds_CXX \ | |
18086 | old_archive_from_expsyms_cmds_CXX \ | |
18087 | archive_cmds_CXX \ | |
18088 | archive_expsym_cmds_CXX \ | |
18089 | module_cmds_CXX \ | |
18090 | module_expsym_cmds_CXX \ | |
18091 | export_symbols_cmds_CXX \ | |
18092 | prelink_cmds_CXX; do | |
18093 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
18094 | *[\\\\\\\`\\"\\\$]*) | |
18095 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18096 | ;; | |
18097 | *) | |
18098 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18099 | ;; | |
18100 | esac | |
18101 | done | |
18102 | ||
18103 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
18104 | case \$lt_ECHO in | |
18105 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
18106 | ;; | |
18107 | esac | |
18108 | ||
18109 | ac_aux_dir='$ac_aux_dir' | |
18110 | xsi_shell='$xsi_shell' | |
18111 | lt_shell_append='$lt_shell_append' | |
18112 | ||
18113 | # See if we are running on zsh, and set the options which allow our | |
18114 | # commands through without removal of \ escapes INIT. | |
18115 | if test -n "\${ZSH_VERSION+set}" ; then | |
18116 | setopt NO_GLOB_SUBST | |
18117 | fi | |
18118 | ||
18119 | ||
18120 | PACKAGE='$PACKAGE' | |
18121 | VERSION='$VERSION' | |
18122 | TIMESTAMP='$TIMESTAMP' | |
18123 | RM='$RM' | |
18124 | ofile='$ofile' | |
18125 | ||
18126 | ||
18127 | ||
18128 | ||
18129 | ||
18130 | ||
18131 | _ACEOF | |
18132 | ||
18133 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18134 | ||
18135 | # Handling of arguments. | |
18136 | for ac_config_target in $ac_config_targets | |
18137 | do | |
18138 | case $ac_config_target in | |
18139 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
18140 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; | |
18141 | ||
18142 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
18143 | esac | |
18144 | done | |
18145 | ||
18146 | ||
18147 | # If the user did not use the arguments to specify the items to instantiate, | |
18148 | # then the envvar interface is used. Set only those that are not. | |
18149 | # We use the long form for the default assignment because of an extremely | |
18150 | # bizarre bug on SunOS 4.1.3. | |
18151 | if $ac_need_defaults; then | |
18152 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18153 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18154 | fi | |
18155 | ||
18156 | # Have a temporary directory for convenience. Make it in the build tree | |
18157 | # simply because there is no reason against having it here, and in addition, | |
18158 | # creating and moving files from /tmp can sometimes cause problems. | |
18159 | # Hook for its removal unless debugging. | |
18160 | # Note that there is a small window in which the directory will not be cleaned: | |
18161 | # after its creation but before its name has been assigned to `$tmp'. | |
18162 | $debug || | |
18163 | { | |
18164 | tmp= | |
18165 | trap 'exit_status=$? | |
18166 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18167 | ' 0 | |
18168 | trap 'as_fn_exit 1' 1 2 13 15 | |
18169 | } | |
18170 | # Create a (secure) tmp directory for tmp files. | |
18171 | ||
18172 | { | |
18173 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
18174 | test -n "$tmp" && test -d "$tmp" | |
18175 | } || | |
18176 | { | |
18177 | tmp=./conf$$-$RANDOM | |
18178 | (umask 077 && mkdir "$tmp") | |
18179 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
18180 | ||
18181 | # Set up the scripts for CONFIG_FILES section. | |
18182 | # No need to generate them if there are no CONFIG_FILES. | |
18183 | # This happens for instance with `./config.status config.h'. | |
18184 | if test -n "$CONFIG_FILES"; then | |
18185 | ||
18186 | ||
18187 | ac_cr=`echo X | tr X '\015'` | |
18188 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18189 | # But we know of no other shell where ac_cr would be empty at this | |
18190 | # point, so we can use a bashism as a fallback. | |
18191 | if test "x$ac_cr" = x; then | |
18192 | eval ac_cr=\$\'\\r\' | |
18193 | fi | |
18194 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18195 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18196 | ac_cs_awk_cr='\r' | |
18197 | else | |
18198 | ac_cs_awk_cr=$ac_cr | |
18199 | fi | |
18200 | ||
18201 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
18202 | _ACEOF | |
18203 | ||
18204 | ||
18205 | { | |
18206 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18207 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18208 | echo "_ACEOF" | |
18209 | } >conf$$subs.sh || | |
18210 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18211 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
18212 | ac_delim='%!_!# ' | |
18213 | for ac_last_try in false false false false false :; do | |
18214 | . ./conf$$subs.sh || | |
18215 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18216 | ||
18217 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18218 | if test $ac_delim_n = $ac_delim_num; then | |
18219 | break | |
18220 | elif $ac_last_try; then | |
18221 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18222 | else | |
18223 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18224 | fi | |
18225 | done | |
18226 | rm -f conf$$subs.sh | |
18227 | ||
18228 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18229 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18230 | _ACEOF | |
18231 | sed -n ' | |
18232 | h | |
18233 | s/^/S["/; s/!.*/"]=/ | |
18234 | p | |
18235 | g | |
18236 | s/^[^!]*!// | |
18237 | :repl | |
18238 | t repl | |
18239 | s/'"$ac_delim"'$// | |
18240 | t delim | |
18241 | :nl | |
18242 | h | |
18243 | s/\(.\{148\}\)..*/\1/ | |
18244 | t more1 | |
18245 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18246 | p | |
18247 | n | |
18248 | b repl | |
18249 | :more1 | |
18250 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18251 | p | |
18252 | g | |
18253 | s/.\{148\}// | |
18254 | t nl | |
18255 | :delim | |
18256 | h | |
18257 | s/\(.\{148\}\)..*/\1/ | |
18258 | t more2 | |
18259 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18260 | p | |
18261 | b | |
18262 | :more2 | |
18263 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18264 | p | |
18265 | g | |
18266 | s/.\{148\}// | |
18267 | t delim | |
18268 | ' <conf$$subs.awk | sed ' | |
18269 | /^[^""]/{ | |
18270 | N | |
18271 | s/\n// | |
18272 | } | |
18273 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18274 | rm -f conf$$subs.awk | |
18275 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18276 | _ACAWK | |
18277 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18278 | for (key in S) S_is_set[key] = 1 | |
18279 | FS = "\a" | |
18280 | ||
18281 | } | |
18282 | { | |
18283 | line = $ 0 | |
18284 | nfields = split(line, field, "@") | |
18285 | substed = 0 | |
18286 | len = length(field[1]) | |
18287 | for (i = 2; i < nfields; i++) { | |
18288 | key = field[i] | |
18289 | keylen = length(key) | |
18290 | if (S_is_set[key]) { | |
18291 | value = S[key] | |
18292 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18293 | len += length(value) + length(field[++i]) | |
18294 | substed = 1 | |
18295 | } else | |
18296 | len += 1 + keylen | |
18297 | } | |
18298 | ||
18299 | print line | |
18300 | } | |
18301 | ||
18302 | _ACAWK | |
18303 | _ACEOF | |
18304 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18305 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18306 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18307 | else | |
18308 | cat | |
18309 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18310 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
18311 | _ACEOF | |
18312 | ||
18313 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
18314 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18315 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18316 | # (actually we leave an empty line to preserve line numbers). | |
18317 | if test "x$srcdir" = x.; then | |
18318 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18319 | s/:*\$(srcdir):*/:/ | |
18320 | s/:*\${srcdir}:*/:/ | |
18321 | s/:*@srcdir@:*/:/ | |
18322 | s/^\([^=]*=[ ]*\):*/\1/ | |
18323 | s/:*$// | |
18324 | s/^[^=]*=[ ]*$// | |
18325 | }' | |
18326 | fi | |
18327 | ||
18328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18329 | fi # test -n "$CONFIG_FILES" | |
18330 | ||
18331 | ||
18332 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
18333 | shift | |
18334 | for ac_tag | |
18335 | do | |
18336 | case $ac_tag in | |
18337 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18338 | esac | |
18339 | case $ac_mode$ac_tag in | |
18340 | :[FHL]*:*);; | |
18341 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
18342 | :[FH]-) ac_tag=-:-;; | |
18343 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18344 | esac | |
18345 | ac_save_IFS=$IFS | |
18346 | IFS=: | |
18347 | set x $ac_tag | |
18348 | IFS=$ac_save_IFS | |
18349 | shift | |
18350 | ac_file=$1 | |
18351 | shift | |
18352 | ||
18353 | case $ac_mode in | |
18354 | :L) ac_source=$1;; | |
18355 | :[FH]) | |
18356 | ac_file_inputs= | |
18357 | for ac_f | |
18358 | do | |
18359 | case $ac_f in | |
18360 | -) ac_f="$tmp/stdin";; | |
18361 | *) # Look for the file first in the build tree, then in the source tree | |
18362 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18363 | # because $ac_f cannot contain `:'. | |
18364 | test -f "$ac_f" || | |
18365 | case $ac_f in | |
18366 | [\\/$]*) false;; | |
18367 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18368 | esac || | |
18369 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
18370 | esac | |
18371 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18372 | as_fn_append ac_file_inputs " '$ac_f'" | |
18373 | done | |
18374 | ||
18375 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18376 | # use $as_me), people would be surprised to read: | |
18377 | # /* config.h. Generated by config.status. */ | |
18378 | configure_input='Generated from '` | |
18379 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18380 | `' by configure.' | |
18381 | if test x"$ac_file" != x-; then | |
18382 | configure_input="$ac_file. $configure_input" | |
18383 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18384 | $as_echo "$as_me: creating $ac_file" >&6;} | |
18385 | fi | |
18386 | # Neutralize special characters interpreted by sed in replacement strings. | |
18387 | case $configure_input in #( | |
18388 | *\&* | *\|* | *\\* ) | |
18389 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18390 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18391 | *) ac_sed_conf_input=$configure_input;; | |
18392 | esac | |
18393 | ||
18394 | case $ac_tag in | |
18395 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
18396 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
18397 | esac | |
18398 | ;; | |
18399 | esac | |
18400 | ||
18401 | ac_dir=`$as_dirname -- "$ac_file" || | |
18402 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18403 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18404 | X"$ac_file" : 'X\(//\)$' \| \ | |
18405 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
18406 | $as_echo X"$ac_file" | | |
18407 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18408 | s//\1/ | |
18409 | q | |
18410 | } | |
18411 | /^X\(\/\/\)[^/].*/{ | |
18412 | s//\1/ | |
18413 | q | |
18414 | } | |
18415 | /^X\(\/\/\)$/{ | |
18416 | s//\1/ | |
18417 | q | |
18418 | } | |
18419 | /^X\(\/\).*/{ | |
18420 | s//\1/ | |
18421 | q | |
18422 | } | |
18423 | s/.*/./; q'` | |
18424 | as_dir="$ac_dir"; as_fn_mkdir_p | |
18425 | ac_builddir=. | |
18426 | ||
18427 | case "$ac_dir" in | |
18428 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18429 | *) | |
18430 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18431 | # A ".." for each directory in $ac_dir_suffix. | |
18432 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18433 | case $ac_top_builddir_sub in | |
18434 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18435 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18436 | esac ;; | |
18437 | esac | |
18438 | ac_abs_top_builddir=$ac_pwd | |
18439 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18440 | # for backward compatibility: | |
18441 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 18442 | |
9c60689e DWT |
18443 | case $srcdir in |
18444 | .) # We are building in place. | |
18445 | ac_srcdir=. | |
18446 | ac_top_srcdir=$ac_top_builddir_sub | |
18447 | ac_abs_top_srcdir=$ac_pwd ;; | |
18448 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
18449 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18450 | ac_top_srcdir=$srcdir | |
18451 | ac_abs_top_srcdir=$srcdir ;; | |
18452 | *) # Relative name. | |
18453 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18454 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18455 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
18456 | esac | |
18457 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
18458 | |
18459 | ||
9c60689e DWT |
18460 | case $ac_mode in |
18461 | :F) | |
18462 | # | |
18463 | # CONFIG_FILE | |
18464 | # | |
35fa52c0 | 18465 | |
9c60689e DWT |
18466 | case $INSTALL in |
18467 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
18468 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
18469 | esac | |
18470 | _ACEOF | |
35fa52c0 | 18471 | |
9c60689e DWT |
18472 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18473 | # If the template does not know about datarootdir, expand it. | |
18474 | # FIXME: This hack should be removed a few years after 2.60. | |
18475 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18476 | ac_sed_dataroot=' | |
18477 | /datarootdir/ { | |
18478 | p | |
18479 | q | |
18480 | } | |
18481 | /@datadir@/p | |
18482 | /@docdir@/p | |
18483 | /@infodir@/p | |
18484 | /@localedir@/p | |
18485 | /@mandir@/p' | |
18486 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18487 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18488 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18490 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18491 | _ACEOF | |
18492 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18493 | ac_datarootdir_hack=' | |
18494 | s&@datadir@&$datadir&g | |
18495 | s&@docdir@&$docdir&g | |
18496 | s&@infodir@&$infodir&g | |
18497 | s&@localedir@&$localedir&g | |
18498 | s&@mandir@&$mandir&g | |
18499 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18500 | esac | |
18501 | _ACEOF | |
35fa52c0 | 18502 | |
9c60689e DWT |
18503 | # Neutralize VPATH when `$srcdir' = `.'. |
18504 | # Shell code in configure.ac might set extrasub. | |
18505 | # FIXME: do we really want to maintain this feature? | |
18506 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18507 | ac_sed_extra="$ac_vpsub | |
18508 | $extrasub | |
18509 | _ACEOF | |
18510 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18511 | :t | |
18512 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18513 | s|@configure_input@|$ac_sed_conf_input|;t t | |
18514 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18515 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18516 | s&@srcdir@&$ac_srcdir&;t t | |
18517 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18518 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18519 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18520 | s&@builddir@&$ac_builddir&;t t | |
18521 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18522 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18523 | s&@INSTALL@&$ac_INSTALL&;t t | |
18524 | $ac_datarootdir_hack | |
18525 | " | |
18526 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
18527 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18528 | ||
18529 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
18530 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
18531 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
18532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18533 | which seems to be undefined. Please make sure it is defined." >&5 | |
18534 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18535 | which seems to be undefined. Please make sure it is defined." >&2;} | |
18536 | ||
18537 | rm -f "$tmp/stdin" | |
18538 | case $ac_file in | |
18539 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
18540 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
18541 | esac \ | |
18542 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18543 | ;; | |
35fa52c0 | 18544 | |
35fa52c0 | 18545 | |
9c60689e DWT |
18546 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18547 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18548 | ;; | |
18549 | esac | |
35fa52c0 | 18550 | |
35fa52c0 | 18551 | |
9c60689e DWT |
18552 | case $ac_file$ac_mode in |
18553 | "libtool":C) | |
18554 | ||
18555 | # See if we are running on zsh, and set the options which allow our | |
18556 | # commands through without removal of \ escapes. | |
18557 | if test -n "${ZSH_VERSION+set}" ; then | |
18558 | setopt NO_GLOB_SUBST | |
35fa52c0 | 18559 | fi |
35fa52c0 | 18560 | |
9c60689e DWT |
18561 | cfgfile="${ofile}T" |
18562 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18563 | $RM "$cfgfile" | |
35fa52c0 | 18564 | |
9c60689e DWT |
18565 | cat <<_LT_EOF >> "$cfgfile" |
18566 | #! $SHELL | |
35fa52c0 | 18567 | |
9c60689e DWT |
18568 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
18569 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
18570 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18571 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18572 | # | |
18573 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
18574 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
18575 | # Written by Gordon Matzigkeit, 1996 | |
18576 | # | |
18577 | # This file is part of GNU Libtool. | |
18578 | # | |
18579 | # GNU Libtool is free software; you can redistribute it and/or | |
18580 | # modify it under the terms of the GNU General Public License as | |
18581 | # published by the Free Software Foundation; either version 2 of | |
18582 | # the License, or (at your option) any later version. | |
18583 | # | |
18584 | # As a special exception to the GNU General Public License, | |
18585 | # if you distribute this file as part of a program or library that | |
18586 | # is built using GNU Libtool, you may include this file under the | |
18587 | # same distribution terms that you use for the rest of that program. | |
18588 | # | |
18589 | # GNU Libtool is distributed in the hope that it will be useful, | |
18590 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18591 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18592 | # GNU General Public License for more details. | |
18593 | # | |
18594 | # You should have received a copy of the GNU General Public License | |
18595 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18596 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18597 | # obtained by writing to the Free Software Foundation, Inc., | |
18598 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 18599 | |
35fa52c0 | 18600 | |
9c60689e DWT |
18601 | # The names of the tagged configurations supported by this script. |
18602 | available_tags="CXX " | |
35fa52c0 | 18603 | |
9c60689e | 18604 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 18605 | |
9c60689e DWT |
18606 | # Which release of libtool.m4 was used? |
18607 | macro_version=$macro_version | |
18608 | macro_revision=$macro_revision | |
35fa52c0 | 18609 | |
9c60689e DWT |
18610 | # Whether or not to build static libraries. |
18611 | build_old_libs=$enable_static | |
35fa52c0 | 18612 | |
549f29b5 DWT |
18613 | # Whether or not to build shared libraries. |
18614 | build_libtool_libs=$enable_shared | |
18615 | ||
9c60689e DWT |
18616 | # What type of objects to build. |
18617 | pic_mode=$pic_mode | |
35fa52c0 | 18618 | |
9c60689e DWT |
18619 | # Whether or not to optimize for fast installation. |
18620 | fast_install=$enable_fast_install | |
35fa52c0 | 18621 | |
9c60689e DWT |
18622 | # The host system. |
18623 | host_alias=$host_alias | |
18624 | host=$host | |
18625 | host_os=$host_os | |
35fa52c0 | 18626 | |
9c60689e DWT |
18627 | # The build system. |
18628 | build_alias=$build_alias | |
18629 | build=$build | |
18630 | build_os=$build_os | |
18631 | ||
18632 | # A sed program that does not truncate output. | |
18633 | SED=$lt_SED | |
18634 | ||
18635 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18636 | Xsed="\$SED -e 1s/^X//" | |
18637 | ||
18638 | # A grep program that handles long lines. | |
18639 | GREP=$lt_GREP | |
18640 | ||
18641 | # An ERE matcher. | |
18642 | EGREP=$lt_EGREP | |
18643 | ||
18644 | # A literal string matcher. | |
18645 | FGREP=$lt_FGREP | |
18646 | ||
18647 | # A BSD- or MS-compatible name lister. | |
18648 | NM=$lt_NM | |
18649 | ||
18650 | # Whether we need soft or hard links. | |
18651 | LN_S=$lt_LN_S | |
18652 | ||
18653 | # What is the maximum length of a command? | |
18654 | max_cmd_len=$max_cmd_len | |
18655 | ||
18656 | # Object file suffix (normally "o"). | |
18657 | objext=$ac_objext | |
18658 | ||
18659 | # Executable file suffix (normally ""). | |
18660 | exeext=$exeext | |
18661 | ||
18662 | # whether the shell understands "unset". | |
18663 | lt_unset=$lt_unset | |
18664 | ||
18665 | # turn spaces into newlines. | |
18666 | SP2NL=$lt_lt_SP2NL | |
18667 | ||
18668 | # turn newlines into spaces. | |
18669 | NL2SP=$lt_lt_NL2SP | |
18670 | ||
18671 | # How to create reloadable object files. | |
18672 | reload_flag=$lt_reload_flag | |
18673 | reload_cmds=$lt_reload_cmds | |
18674 | ||
18675 | # An object symbol dumper. | |
18676 | OBJDUMP=$lt_OBJDUMP | |
18677 | ||
18678 | # Method to check whether dependent libraries are shared objects. | |
18679 | deplibs_check_method=$lt_deplibs_check_method | |
18680 | ||
18681 | # Command to use when deplibs_check_method == "file_magic". | |
18682 | file_magic_cmd=$lt_file_magic_cmd | |
18683 | ||
18684 | # The archiver. | |
18685 | AR=$lt_AR | |
18686 | AR_FLAGS=$lt_AR_FLAGS | |
18687 | ||
18688 | # A symbol stripping program. | |
18689 | STRIP=$lt_STRIP | |
18690 | ||
18691 | # Commands used to install an old-style archive. | |
18692 | RANLIB=$lt_RANLIB | |
18693 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18694 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18695 | ||
18696 | # A C compiler. | |
18697 | LTCC=$lt_CC | |
18698 | ||
18699 | # LTCC compiler flags. | |
18700 | LTCFLAGS=$lt_CFLAGS | |
18701 | ||
18702 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18703 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18704 | ||
18705 | # Transform the output of nm in a proper C declaration. | |
18706 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18707 | ||
18708 | # Transform the output of nm in a C name address pair. | |
18709 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18710 | ||
18711 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
18712 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18713 | ||
18714 | # The name of the directory that contains temporary libtool files. | |
18715 | objdir=$objdir | |
18716 | ||
18717 | # Shell to use when invoking shell scripts. | |
18718 | SHELL=$lt_SHELL | |
18719 | ||
18720 | # An echo program that does not interpret backslashes. | |
18721 | ECHO=$lt_ECHO | |
18722 | ||
18723 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18724 | MAGIC_CMD=$MAGIC_CMD | |
18725 | ||
18726 | # Must we lock files when doing compilation? | |
18727 | need_locks=$lt_need_locks | |
18728 | ||
18729 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
18730 | DSYMUTIL=$lt_DSYMUTIL | |
18731 | ||
18732 | # Tool to change global to local symbols on Mac OS X. | |
18733 | NMEDIT=$lt_NMEDIT | |
18734 | ||
18735 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18736 | LIPO=$lt_LIPO | |
18737 | ||
18738 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18739 | OTOOL=$lt_OTOOL | |
18740 | ||
18741 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18742 | OTOOL64=$lt_OTOOL64 | |
18743 | ||
18744 | # Old archive suffix (normally "a"). | |
18745 | libext=$libext | |
18746 | ||
18747 | # Shared library suffix (normally ".so"). | |
18748 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 18749 | |
9c60689e DWT |
18750 | # The commands to extract the exported symbol list from a shared archive. |
18751 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 18752 | |
9c60689e DWT |
18753 | # Variables whose values should be saved in libtool wrapper scripts and |
18754 | # restored at link time. | |
18755 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 18756 | |
9c60689e DWT |
18757 | # Do we need the "lib" prefix for modules? |
18758 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 18759 | |
9c60689e DWT |
18760 | # Do we need a version for libraries? |
18761 | need_version=$need_version | |
35fa52c0 | 18762 | |
9c60689e DWT |
18763 | # Library versioning type. |
18764 | version_type=$version_type | |
35fa52c0 | 18765 | |
9c60689e DWT |
18766 | # Shared library runtime path variable. |
18767 | runpath_var=$runpath_var | |
35fa52c0 | 18768 | |
9c60689e DWT |
18769 | # Shared library path variable. |
18770 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 18771 | |
9c60689e DWT |
18772 | # Is shlibpath searched before the hard-coded library search path? |
18773 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 18774 | |
9c60689e DWT |
18775 | # Format of library name prefix. |
18776 | libname_spec=$lt_libname_spec | |
35fa52c0 | 18777 | |
9c60689e DWT |
18778 | # List of archive names. First name is the real one, the rest are links. |
18779 | # The last name is the one that the linker finds with -lNAME | |
18780 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 18781 | |
9c60689e DWT |
18782 | # The coded name of the library, if different from the real name. |
18783 | soname_spec=$lt_soname_spec | |
dbadc56a | 18784 | |
9c60689e DWT |
18785 | # Command to use after installation of a shared archive. |
18786 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 18787 | |
9c60689e DWT |
18788 | # Command to use after uninstallation of a shared archive. |
18789 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 18790 | |
9c60689e DWT |
18791 | # Commands used to finish a libtool library installation in a directory. |
18792 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 18793 | |
9c60689e DWT |
18794 | # As "finish_cmds", except a single script fragment to be evaled but |
18795 | # not shown. | |
18796 | finish_eval=$lt_finish_eval | |
35fa52c0 | 18797 | |
9c60689e DWT |
18798 | # Whether we should hardcode library paths into libraries. |
18799 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 18800 | |
9c60689e DWT |
18801 | # Compile-time system search path for libraries. |
18802 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 18803 | |
9c60689e DWT |
18804 | # Run-time system search path for libraries. |
18805 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 18806 | |
9c60689e DWT |
18807 | # Whether dlopen is supported. |
18808 | dlopen_support=$enable_dlopen | |
dbadc56a | 18809 | |
9c60689e DWT |
18810 | # Whether dlopen of programs is supported. |
18811 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 18812 | |
9c60689e DWT |
18813 | # Whether dlopen of statically linked programs is supported. |
18814 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 18815 | |
9c60689e DWT |
18816 | # Commands to strip libraries. |
18817 | old_striplib=$lt_old_striplib | |
18818 | striplib=$lt_striplib | |
35fa52c0 | 18819 | |
35fa52c0 | 18820 | |
9c60689e DWT |
18821 | # The linker used to build libraries. |
18822 | LD=$lt_LD | |
dbadc56a | 18823 | |
9c60689e DWT |
18824 | # Commands used to build an old-style archive. |
18825 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 18826 | |
9c60689e DWT |
18827 | # A language specific compiler. |
18828 | CC=$lt_compiler | |
35fa52c0 | 18829 | |
9c60689e DWT |
18830 | # Is the compiler the GNU compiler? |
18831 | with_gcc=$GCC | |
dbadc56a | 18832 | |
9c60689e DWT |
18833 | # Compiler flag to turn off builtin functions. |
18834 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 18835 | |
9c60689e DWT |
18836 | # How to pass a linker flag through the compiler. |
18837 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 18838 | |
9c60689e DWT |
18839 | # Additional compiler flags for building library objects. |
18840 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 18841 | |
9c60689e DWT |
18842 | # Compiler flag to prevent dynamic linking. |
18843 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 18844 | |
9c60689e DWT |
18845 | # Does compiler simultaneously support -c and -o options? |
18846 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 18847 | |
9c60689e DWT |
18848 | # Whether or not to add -lc for building shared libraries. |
18849 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 18850 | |
9c60689e DWT |
18851 | # Whether or not to disallow shared libs when runtime libs are static. |
18852 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 18853 | |
9c60689e DWT |
18854 | # Compiler flag to allow reflexive dlopens. |
18855 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 18856 | |
9c60689e DWT |
18857 | # Compiler flag to generate shared objects directly from archives. |
18858 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 18859 | |
9c60689e DWT |
18860 | # Whether the compiler copes with passing no objects directly. |
18861 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 18862 | |
9c60689e DWT |
18863 | # Create an old-style archive from a shared archive. |
18864 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 18865 | |
9c60689e DWT |
18866 | # Create a temporary old-style archive to link instead of a shared archive. |
18867 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 18868 | |
9c60689e DWT |
18869 | # Commands used to build a shared archive. |
18870 | archive_cmds=$lt_archive_cmds | |
18871 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 18872 | |
9c60689e DWT |
18873 | # Commands used to build a loadable module if different from building |
18874 | # a shared archive. | |
18875 | module_cmds=$lt_module_cmds | |
18876 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 18877 | |
9c60689e DWT |
18878 | # Whether we are building with GNU ld or not. |
18879 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 18880 | |
9c60689e DWT |
18881 | # Flag that allows shared libraries with undefined symbols to be built. |
18882 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 18883 | |
9c60689e DWT |
18884 | # Flag that enforces no undefined symbols. |
18885 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 18886 | |
9c60689e DWT |
18887 | # Flag to hardcode \$libdir into a binary during linking. |
18888 | # This must work even if \$libdir does not exist | |
18889 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 18890 | |
9c60689e DWT |
18891 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
18892 | # during linking. This must work even if \$libdir does not exist. | |
18893 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 18894 | |
9c60689e DWT |
18895 | # Whether we need a single "-rpath" flag with a separated argument. |
18896 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 18897 | |
9c60689e DWT |
18898 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18899 | # DIR into the resulting binary. | |
18900 | hardcode_direct=$hardcode_direct | |
6b66678a | 18901 | |
9c60689e DWT |
18902 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18903 | # DIR into the resulting binary and the resulting library dependency is | |
18904 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18905 | # library is relocated. | |
18906 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 18907 | |
9c60689e DWT |
18908 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
18909 | # into the resulting binary. | |
18910 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 18911 | |
9c60689e DWT |
18912 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
18913 | # into the resulting binary. | |
18914 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 18915 | |
9c60689e DWT |
18916 | # Set to "yes" if building a shared library automatically hardcodes DIR |
18917 | # into the library and all subsequent libraries and executables linked | |
18918 | # against it. | |
18919 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 18920 | |
9c60689e DWT |
18921 | # Set to yes if linker adds runtime paths of dependent libraries |
18922 | # to runtime path list. | |
18923 | inherit_rpath=$inherit_rpath | |
6b66678a | 18924 | |
9c60689e DWT |
18925 | # Whether libtool must link a program against all its dependency libraries. |
18926 | link_all_deplibs=$link_all_deplibs | |
18927 | ||
18928 | # Fix the shell variable \$srcfile for the compiler. | |
18929 | fix_srcfile_path=$lt_fix_srcfile_path | |
18930 | ||
18931 | # Set to "yes" if exported symbols are required. | |
18932 | always_export_symbols=$always_export_symbols | |
6b66678a | 18933 | |
9c60689e DWT |
18934 | # The commands to list exported symbols. |
18935 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 18936 | |
9c60689e DWT |
18937 | # Symbols that should not be listed in the preloaded symbols. |
18938 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 18939 | |
9c60689e DWT |
18940 | # Symbols that must always be exported. |
18941 | include_expsyms=$lt_include_expsyms | |
6b66678a | 18942 | |
9c60689e DWT |
18943 | # Commands necessary for linking programs (against libraries) with templates. |
18944 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 18945 | |
9c60689e DWT |
18946 | # Specify filename containing input files. |
18947 | file_list_spec=$lt_file_list_spec | |
6b66678a | 18948 | |
9c60689e DWT |
18949 | # How to hardcode a shared library path into an executable. |
18950 | hardcode_action=$hardcode_action | |
18951 | ||
18952 | # The directories searched by this compiler when creating a shared library. | |
18953 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
18954 | ||
18955 | # Dependencies to place before and after the objects being linked to | |
18956 | # create a shared library. | |
18957 | predep_objects=$lt_predep_objects | |
18958 | postdep_objects=$lt_postdep_objects | |
18959 | predeps=$lt_predeps | |
18960 | postdeps=$lt_postdeps | |
18961 | ||
18962 | # The library search path used internally by the compiler when linking | |
18963 | # a shared library. | |
18964 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
18965 | ||
18966 | # ### END LIBTOOL CONFIG | |
18967 | ||
18968 | _LT_EOF | |
18969 | ||
18970 | case $host_os in | |
18971 | aix3*) | |
18972 | cat <<\_LT_EOF >> "$cfgfile" | |
18973 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18974 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18975 | # vanish in a puff of smoke. | |
18976 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18977 | COLLECT_NAMES= | |
18978 | export COLLECT_NAMES | |
6b66678a | 18979 | fi |
9c60689e DWT |
18980 | _LT_EOF |
18981 | ;; | |
18982 | esac | |
6b66678a DWT |
18983 | |
18984 | ||
9c60689e | 18985 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 18986 | |
9c60689e DWT |
18987 | |
18988 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18989 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18990 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18991 | # is reportedly fixed, but why not run on old versions too? | |
18992 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
18993 | || (rm -f "$cfgfile"; exit 1) | |
18994 | ||
18995 | case $xsi_shell in | |
18996 | yes) | |
18997 | cat << \_LT_EOF >> "$cfgfile" | |
18998 | ||
18999 | # func_dirname file append nondir_replacement | |
19000 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19001 | # otherwise set result to NONDIR_REPLACEMENT. | |
19002 | func_dirname () | |
6b66678a | 19003 | { |
9c60689e DWT |
19004 | case ${1} in |
19005 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19006 | * ) func_dirname_result="${3}" ;; | |
19007 | esac | |
19008 | } | |
6b66678a | 19009 | |
9c60689e DWT |
19010 | # func_basename file |
19011 | func_basename () | |
19012 | { | |
19013 | func_basename_result="${1##*/}" | |
6b66678a | 19014 | } |
6b66678a | 19015 | |
9c60689e DWT |
19016 | # func_dirname_and_basename file append nondir_replacement |
19017 | # perform func_basename and func_dirname in a single function | |
19018 | # call: | |
19019 | # dirname: Compute the dirname of FILE. If nonempty, | |
19020 | # add APPEND to the result, otherwise set result | |
19021 | # to NONDIR_REPLACEMENT. | |
19022 | # value returned in "$func_dirname_result" | |
19023 | # basename: Compute filename of FILE. | |
19024 | # value retuned in "$func_basename_result" | |
19025 | # Implementation must be kept synchronized with func_dirname | |
19026 | # and func_basename. For efficiency, we do not delegate to | |
19027 | # those functions but instead duplicate the functionality here. | |
19028 | func_dirname_and_basename () | |
19029 | { | |
19030 | case ${1} in | |
19031 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19032 | * ) func_dirname_result="${3}" ;; | |
19033 | esac | |
19034 | func_basename_result="${1##*/}" | |
19035 | } | |
6b66678a | 19036 | |
9c60689e DWT |
19037 | # func_stripname prefix suffix name |
19038 | # strip PREFIX and SUFFIX off of NAME. | |
19039 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19040 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19041 | # dot (in which case that matches only a dot). | |
19042 | func_stripname () | |
19043 | { | |
19044 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19045 | # positional parameters, so assign one to ordinary parameter first. | |
19046 | func_stripname_result=${3} | |
19047 | func_stripname_result=${func_stripname_result#"${1}"} | |
19048 | func_stripname_result=${func_stripname_result%"${2}"} | |
19049 | } | |
6b66678a | 19050 | |
9c60689e DWT |
19051 | # func_opt_split |
19052 | func_opt_split () | |
19053 | { | |
19054 | func_opt_split_opt=${1%%=*} | |
19055 | func_opt_split_arg=${1#*=} | |
19056 | } | |
6b66678a | 19057 | |
9c60689e DWT |
19058 | # func_lo2o object |
19059 | func_lo2o () | |
19060 | { | |
19061 | case ${1} in | |
19062 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19063 | *) func_lo2o_result=${1} ;; | |
19064 | esac | |
19065 | } | |
6b66678a | 19066 | |
9c60689e DWT |
19067 | # func_xform libobj-or-source |
19068 | func_xform () | |
19069 | { | |
19070 | func_xform_result=${1%.*}.lo | |
19071 | } | |
6b66678a | 19072 | |
9c60689e DWT |
19073 | # func_arith arithmetic-term... |
19074 | func_arith () | |
19075 | { | |
19076 | func_arith_result=$(( $* )) | |
19077 | } | |
6b66678a | 19078 | |
9c60689e DWT |
19079 | # func_len string |
19080 | # STRING may not start with a hyphen. | |
19081 | func_len () | |
19082 | { | |
19083 | func_len_result=${#1} | |
19084 | } | |
6b66678a | 19085 | |
9c60689e DWT |
19086 | _LT_EOF |
19087 | ;; | |
19088 | *) # Bourne compatible functions. | |
19089 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 19090 | |
9c60689e DWT |
19091 | # func_dirname file append nondir_replacement |
19092 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19093 | # otherwise set result to NONDIR_REPLACEMENT. | |
19094 | func_dirname () | |
19095 | { | |
19096 | # Extract subdirectory from the argument. | |
19097 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
19098 | if test "X$func_dirname_result" = "X${1}"; then | |
19099 | func_dirname_result="${3}" | |
19100 | else | |
19101 | func_dirname_result="$func_dirname_result${2}" | |
19102 | fi | |
19103 | } | |
6b66678a | 19104 | |
9c60689e DWT |
19105 | # func_basename file |
19106 | func_basename () | |
6b66678a | 19107 | { |
9c60689e | 19108 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 19109 | } |
6b66678a | 19110 | |
6b66678a | 19111 | |
9c60689e DWT |
19112 | # func_stripname prefix suffix name |
19113 | # strip PREFIX and SUFFIX off of NAME. | |
19114 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19115 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19116 | # dot (in which case that matches only a dot). | |
19117 | # func_strip_suffix prefix name | |
19118 | func_stripname () | |
19119 | { | |
19120 | case ${2} in | |
19121 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
19122 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
19123 | *) func_stripname_result=`$ECHO "X${3}" \ | |
19124 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
19125 | esac | |
19126 | } | |
6b66678a | 19127 | |
9c60689e DWT |
19128 | # sed scripts: |
19129 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19130 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 19131 | |
9c60689e DWT |
19132 | # func_opt_split |
19133 | func_opt_split () | |
19134 | { | |
19135 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
19136 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
19137 | } | |
6b66678a | 19138 | |
9c60689e DWT |
19139 | # func_lo2o object |
19140 | func_lo2o () | |
19141 | { | |
19142 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
19143 | } | |
19144 | ||
19145 | # func_xform libobj-or-source | |
19146 | func_xform () | |
19147 | { | |
19148 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
19149 | } | |
19150 | ||
19151 | # func_arith arithmetic-term... | |
19152 | func_arith () | |
19153 | { | |
19154 | func_arith_result=`expr "$@"` | |
19155 | } | |
19156 | ||
19157 | # func_len string | |
19158 | # STRING may not start with a hyphen. | |
19159 | func_len () | |
19160 | { | |
19161 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19162 | } | |
19163 | ||
19164 | _LT_EOF | |
19165 | esac | |
19166 | ||
19167 | case $lt_shell_append in | |
19168 | yes) | |
19169 | cat << \_LT_EOF >> "$cfgfile" | |
19170 | ||
19171 | # func_append var value | |
19172 | # Append VALUE to the end of shell variable VAR. | |
19173 | func_append () | |
19174 | { | |
19175 | eval "$1+=\$2" | |
19176 | } | |
19177 | _LT_EOF | |
19178 | ;; | |
19179 | *) | |
19180 | cat << \_LT_EOF >> "$cfgfile" | |
19181 | ||
19182 | # func_append var value | |
19183 | # Append VALUE to the end of shell variable VAR. | |
19184 | func_append () | |
19185 | { | |
19186 | eval "$1=\$$1\$2" | |
19187 | } | |
19188 | ||
19189 | _LT_EOF | |
19190 | ;; | |
19191 | esac | |
19192 | ||
19193 | ||
19194 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19195 | || (rm -f "$cfgfile"; exit 1) | |
19196 | ||
19197 | mv -f "$cfgfile" "$ofile" || | |
19198 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19199 | chmod +x "$ofile" | |
19200 | ||
19201 | ||
19202 | cat <<_LT_EOF >> "$ofile" | |
19203 | ||
19204 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
19205 | ||
19206 | # The linker used to build libraries. | |
19207 | LD=$lt_LD_CXX | |
19208 | ||
19209 | # Commands used to build an old-style archive. | |
19210 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19211 | ||
19212 | # A language specific compiler. | |
19213 | CC=$lt_compiler_CXX | |
19214 | ||
19215 | # Is the compiler the GNU compiler? | |
19216 | with_gcc=$GCC_CXX | |
19217 | ||
19218 | # Compiler flag to turn off builtin functions. | |
19219 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 19220 | |
9c60689e DWT |
19221 | # How to pass a linker flag through the compiler. |
19222 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 19223 | |
9c60689e DWT |
19224 | # Additional compiler flags for building library objects. |
19225 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 19226 | |
9c60689e DWT |
19227 | # Compiler flag to prevent dynamic linking. |
19228 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 19229 | |
9c60689e DWT |
19230 | # Does compiler simultaneously support -c and -o options? |
19231 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 19232 | |
9c60689e DWT |
19233 | # Whether or not to add -lc for building shared libraries. |
19234 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 19235 | |
9c60689e DWT |
19236 | # Whether or not to disallow shared libs when runtime libs are static. |
19237 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 19238 | |
9c60689e DWT |
19239 | # Compiler flag to allow reflexive dlopens. |
19240 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 19241 | |
9c60689e DWT |
19242 | # Compiler flag to generate shared objects directly from archives. |
19243 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 19244 | |
9c60689e DWT |
19245 | # Whether the compiler copes with passing no objects directly. |
19246 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 19247 | |
9c60689e DWT |
19248 | # Create an old-style archive from a shared archive. |
19249 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 19250 | |
9c60689e DWT |
19251 | # Create a temporary old-style archive to link instead of a shared archive. |
19252 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 19253 | |
9c60689e DWT |
19254 | # Commands used to build a shared archive. |
19255 | archive_cmds=$lt_archive_cmds_CXX | |
19256 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 19257 | |
9c60689e DWT |
19258 | # Commands used to build a loadable module if different from building |
19259 | # a shared archive. | |
19260 | module_cmds=$lt_module_cmds_CXX | |
19261 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 19262 | |
9c60689e DWT |
19263 | # Whether we are building with GNU ld or not. |
19264 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 19265 | |
9c60689e DWT |
19266 | # Flag that allows shared libraries with undefined symbols to be built. |
19267 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 19268 | |
9c60689e DWT |
19269 | # Flag that enforces no undefined symbols. |
19270 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 19271 | |
9c60689e DWT |
19272 | # Flag to hardcode \$libdir into a binary during linking. |
19273 | # This must work even if \$libdir does not exist | |
19274 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 19275 | |
9c60689e DWT |
19276 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
19277 | # during linking. This must work even if \$libdir does not exist. | |
19278 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 19279 | |
9c60689e DWT |
19280 | # Whether we need a single "-rpath" flag with a separated argument. |
19281 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 19282 | |
9c60689e DWT |
19283 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19284 | # DIR into the resulting binary. | |
19285 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 19286 | |
9c60689e DWT |
19287 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19288 | # DIR into the resulting binary and the resulting library dependency is | |
19289 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19290 | # library is relocated. | |
19291 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 19292 | |
9c60689e DWT |
19293 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
19294 | # into the resulting binary. | |
19295 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 19296 | |
9c60689e DWT |
19297 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
19298 | # into the resulting binary. | |
19299 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 19300 | |
9c60689e DWT |
19301 | # Set to "yes" if building a shared library automatically hardcodes DIR |
19302 | # into the library and all subsequent libraries and executables linked | |
19303 | # against it. | |
19304 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 19305 | |
9c60689e DWT |
19306 | # Set to yes if linker adds runtime paths of dependent libraries |
19307 | # to runtime path list. | |
19308 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 19309 | |
9c60689e DWT |
19310 | # Whether libtool must link a program against all its dependency libraries. |
19311 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 19312 | |
9c60689e DWT |
19313 | # Fix the shell variable \$srcfile for the compiler. |
19314 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 19315 | |
9c60689e DWT |
19316 | # Set to "yes" if exported symbols are required. |
19317 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 19318 | |
9c60689e DWT |
19319 | # The commands to list exported symbols. |
19320 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 19321 | |
9c60689e DWT |
19322 | # Symbols that should not be listed in the preloaded symbols. |
19323 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 19324 | |
9c60689e DWT |
19325 | # Symbols that must always be exported. |
19326 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 19327 | |
9c60689e DWT |
19328 | # Commands necessary for linking programs (against libraries) with templates. |
19329 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 19330 | |
9c60689e DWT |
19331 | # Specify filename containing input files. |
19332 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 19333 | |
9c60689e DWT |
19334 | # How to hardcode a shared library path into an executable. |
19335 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 19336 | |
9c60689e DWT |
19337 | # The directories searched by this compiler when creating a shared library. |
19338 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 19339 | |
9c60689e DWT |
19340 | # Dependencies to place before and after the objects being linked to |
19341 | # create a shared library. | |
19342 | predep_objects=$lt_predep_objects_CXX | |
19343 | postdep_objects=$lt_postdep_objects_CXX | |
19344 | predeps=$lt_predeps_CXX | |
19345 | postdeps=$lt_postdeps_CXX | |
309b0535 | 19346 | |
9c60689e DWT |
19347 | # The library search path used internally by the compiler when linking |
19348 | # a shared library. | |
19349 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19350 | ||
19351 | # ### END LIBTOOL TAG CONFIG: CXX | |
19352 | _LT_EOF | |
19353 | ||
19354 | ;; | |
19355 | ||
19356 | esac | |
19357 | done # for ac_tag | |
19358 | ||
19359 | ||
19360 | as_fn_exit 0 | |
19361 | _ACEOF | |
19362 | ac_clean_files=$ac_clean_files_save | |
19363 | ||
19364 | test $ac_write_fail = 0 || | |
19365 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
19366 | ||
19367 | ||
19368 | # configure is writing to config.log, and then calls config.status. | |
19369 | # config.status does its own redirection, appending to config.log. | |
19370 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19371 | # by configure, so config.status won't be able to write to it; its | |
19372 | # output is simply discarded. So we exec the FD to /dev/null, | |
19373 | # effectively closing config.log, so it can be properly (re)opened and | |
19374 | # appended to by config.status. When coming back to configure, we | |
19375 | # need to make the FD available again. | |
19376 | if test "$no_create" != yes; then | |
19377 | ac_cs_success=: | |
19378 | ac_config_status_args= | |
19379 | test "$silent" = yes && | |
19380 | ac_config_status_args="$ac_config_status_args --quiet" | |
19381 | exec 5>/dev/null | |
19382 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19383 | exec 5>>config.log | |
19384 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19385 | # would make configure fail if this is the last instruction. | |
19386 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 19387 | fi |
9c60689e DWT |
19388 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19389 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19390 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19391 | fi | |
19392 |