]>
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 DWT |
808 | ifGNUmake |
809 | CY_OBJECTIVEC | |
810 | GNUSTEP_CONFIG | |
309b0535 | 811 | LIBFFI_LIBS |
35fa52c0 | 812 | LIBFFI_CFLAGS |
3fd51f51 | 813 | CY_EXECUTE |
a667869d DWT |
814 | ac_ct_OBJCXX |
815 | OBJCXXFLAGS | |
816 | OBJCXX | |
35fa52c0 DWT |
817 | WEBKIT_LIBS |
818 | WEBKIT_CFLAGS | |
35fa52c0 DWT |
819 | LTLIBICONV |
820 | LIBICONV | |
35fa52c0 DWT |
821 | INSTALL_DATA |
822 | INSTALL_SCRIPT | |
823 | INSTALL_PROGRAM | |
549f29b5 | 824 | LTLIBAPR |
3530897b | 825 | TIME |
9c60689e DWT |
826 | GPERF |
827 | _BASH | |
35fa52c0 DWT |
828 | FLEX |
829 | LEXLIB | |
9c60689e DWT |
830 | LEX_OUTPUT_ROOT |
831 | LEX | |
832 | BISON | |
833 | AWK | |
834 | YFLAGS | |
835 | YACC | |
47aaa820 DWT |
836 | CXXCPP |
837 | ac_ct_CXX | |
838 | CXXFLAGS | |
839 | CXX | |
3fd51f51 | 840 | PKG_CONFIG |
9c60689e DWT |
841 | CPP |
842 | OTOOL64 | |
843 | OTOOL | |
844 | LIPO | |
845 | NMEDIT | |
846 | DSYMUTIL | |
847 | lt_ECHO | |
848 | RANLIB | |
849 | STRIP | |
850 | AR | |
851 | OBJDUMP | |
852 | LN_S | |
853 | NM | |
854 | ac_ct_DUMPBIN | |
855 | DUMPBIN | |
856 | LD | |
857 | FGREP | |
858 | EGREP | |
859 | GREP | |
860 | SED | |
35fa52c0 DWT |
861 | OBJEXT |
862 | EXEEXT | |
863 | ac_ct_CC | |
864 | CPPFLAGS | |
865 | LDFLAGS | |
866 | CFLAGS | |
867 | CC | |
9c60689e DWT |
868 | host_os |
869 | host_vendor | |
870 | host_cpu | |
871 | host | |
872 | build_os | |
873 | build_vendor | |
874 | build_cpu | |
875 | build | |
876 | LIBTOOL | |
dbadc56a | 877 | target_alias |
c7aa54aa DWT |
878 | host_alias |
879 | build_alias | |
880 | LIBS | |
881 | ECHO_T | |
882 | ECHO_N | |
883 | ECHO_C | |
884 | DEFS | |
885 | mandir | |
886 | localedir | |
887 | libdir | |
888 | psdir | |
889 | pdfdir | |
890 | dvidir | |
891 | htmldir | |
892 | infodir | |
893 | docdir | |
894 | oldincludedir | |
895 | includedir | |
896 | localstatedir | |
897 | sharedstatedir | |
898 | sysconfdir | |
899 | datadir | |
900 | datarootdir | |
901 | libexecdir | |
902 | sbindir | |
903 | bindir | |
904 | program_transform_name | |
905 | prefix | |
906 | exec_prefix | |
907 | PACKAGE_URL | |
908 | PACKAGE_BUGREPORT | |
909 | PACKAGE_STRING | |
910 | PACKAGE_VERSION | |
911 | PACKAGE_TARNAME | |
912 | PACKAGE_NAME | |
913 | PATH_SEPARATOR | |
914 | SHELL' | |
915 | ac_subst_files='' | |
916 | ac_user_opts=' | |
917 | enable_option_checking | |
9c60689e | 918 | enable_static |
549f29b5 | 919 | enable_shared |
9c60689e DWT |
920 | with_pic |
921 | enable_fast_install | |
35fa52c0 | 922 | with_gnu_ld |
9c60689e DWT |
923 | enable_libtool_lock |
924 | with_apr | |
35fa52c0 DWT |
925 | enable_rpath |
926 | with_libiconv_prefix | |
c7aa54aa DWT |
927 | ' |
928 | ac_precious_vars='build_alias | |
929 | host_alias | |
dbadc56a | 930 | target_alias |
35fa52c0 DWT |
931 | CC |
932 | CFLAGS | |
dbadc56a DWT |
933 | LDFLAGS |
934 | LIBS | |
935 | CPPFLAGS | |
9c60689e | 936 | CPP |
3fd51f51 | 937 | PKG_CONFIG |
35fa52c0 DWT |
938 | CXX |
939 | CXXFLAGS | |
940 | CCC | |
9c60689e | 941 | CXXCPP |
47aaa820 DWT |
942 | YACC |
943 | YFLAGS | |
27557508 | 944 | GPERF |
35fa52c0 DWT |
945 | WEBKIT_CFLAGS |
946 | WEBKIT_LIBS | |
9c60689e | 947 | OBJCXX |
a667869d DWT |
948 | OBJCXXFLAGS |
949 | LIBFFI_CFLAGS | |
950 | LIBFFI_LIBS' | |
c7aa54aa DWT |
951 | |
952 | ||
953 | # Initialize some variables set by options. | |
954 | ac_init_help= | |
955 | ac_init_version=false | |
956 | ac_unrecognized_opts= | |
957 | ac_unrecognized_sep= | |
958 | # The variables have the same names as the options, with | |
959 | # dashes changed to underlines. | |
960 | cache_file=/dev/null | |
961 | exec_prefix=NONE | |
962 | no_create= | |
963 | no_recursion= | |
964 | prefix=NONE | |
965 | program_prefix=NONE | |
966 | program_suffix=NONE | |
967 | program_transform_name=s,x,x, | |
968 | silent= | |
969 | site= | |
970 | srcdir= | |
971 | verbose= | |
972 | x_includes=NONE | |
973 | x_libraries=NONE | |
974 | ||
975 | # Installation directory options. | |
976 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
977 | # and all the variables that are supposed to be based on exec_prefix | |
978 | # by default will actually change. | |
979 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
980 | # (The list follows the same order as the GNU Coding Standards.) | |
981 | bindir='${exec_prefix}/bin' | |
982 | sbindir='${exec_prefix}/sbin' | |
983 | libexecdir='${exec_prefix}/libexec' | |
984 | datarootdir='${prefix}/share' | |
985 | datadir='${datarootdir}' | |
986 | sysconfdir='${prefix}/etc' | |
987 | sharedstatedir='${prefix}/com' | |
988 | localstatedir='${prefix}/var' | |
989 | includedir='${prefix}/include' | |
990 | oldincludedir='/usr/include' | |
991 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
992 | infodir='${datarootdir}/info' | |
993 | htmldir='${docdir}' | |
994 | dvidir='${docdir}' | |
995 | pdfdir='${docdir}' | |
996 | psdir='${docdir}' | |
997 | libdir='${exec_prefix}/lib' | |
998 | localedir='${datarootdir}/locale' | |
999 | mandir='${datarootdir}/man' | |
1000 | ||
1001 | ac_prev= | |
1002 | ac_dashdash= | |
1003 | for ac_option | |
1004 | do | |
1005 | # If the previous option needs an argument, assign it. | |
1006 | if test -n "$ac_prev"; then | |
1007 | eval $ac_prev=\$ac_option | |
1008 | ac_prev= | |
1009 | continue | |
1010 | fi | |
1011 | ||
1012 | case $ac_option in | |
1013 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1014 | *) ac_optarg=yes ;; | |
1015 | esac | |
1016 | ||
1017 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1018 | ||
1019 | case $ac_dashdash$ac_option in | |
1020 | --) | |
1021 | ac_dashdash=yes ;; | |
1022 | ||
1023 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1024 | ac_prev=bindir ;; | |
1025 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1026 | bindir=$ac_optarg ;; | |
1027 | ||
1028 | -build | --build | --buil | --bui | --bu) | |
1029 | ac_prev=build_alias ;; | |
1030 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1031 | build_alias=$ac_optarg ;; | |
1032 | ||
1033 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1034 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1035 | ac_prev=cache_file ;; | |
1036 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1037 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1038 | cache_file=$ac_optarg ;; | |
1039 | ||
1040 | --config-cache | -C) | |
1041 | cache_file=config.cache ;; | |
1042 | ||
1043 | -datadir | --datadir | --datadi | --datad) | |
1044 | ac_prev=datadir ;; | |
1045 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1046 | datadir=$ac_optarg ;; | |
1047 | ||
1048 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1049 | | --dataroo | --dataro | --datar) | |
1050 | ac_prev=datarootdir ;; | |
1051 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1052 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1053 | datarootdir=$ac_optarg ;; | |
1054 | ||
1055 | -disable-* | --disable-*) | |
1056 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1057 | # Reject names that are not valid shell variable names. | |
1058 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1059 | as_fn_error "invalid feature name: $ac_useropt" | |
1060 | ac_useropt_orig=$ac_useropt | |
1061 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1062 | case $ac_user_opts in | |
1063 | *" | |
1064 | "enable_$ac_useropt" | |
1065 | "*) ;; | |
1066 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1067 | ac_unrecognized_sep=', ';; | |
1068 | esac | |
1069 | eval enable_$ac_useropt=no ;; | |
1070 | ||
1071 | -docdir | --docdir | --docdi | --doc | --do) | |
1072 | ac_prev=docdir ;; | |
1073 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1074 | docdir=$ac_optarg ;; | |
1075 | ||
1076 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1077 | ac_prev=dvidir ;; | |
1078 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1079 | dvidir=$ac_optarg ;; | |
1080 | ||
1081 | -enable-* | --enable-*) | |
1082 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1083 | # Reject names that are not valid shell variable names. | |
1084 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1085 | as_fn_error "invalid feature name: $ac_useropt" | |
1086 | ac_useropt_orig=$ac_useropt | |
1087 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1088 | case $ac_user_opts in | |
1089 | *" | |
1090 | "enable_$ac_useropt" | |
1091 | "*) ;; | |
1092 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1093 | ac_unrecognized_sep=', ';; | |
1094 | esac | |
1095 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1096 | ||
1097 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1098 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1099 | | --exec | --exe | --ex) | |
1100 | ac_prev=exec_prefix ;; | |
1101 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1102 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1103 | | --exec=* | --exe=* | --ex=*) | |
1104 | exec_prefix=$ac_optarg ;; | |
1105 | ||
1106 | -gas | --gas | --ga | --g) | |
1107 | # Obsolete; use --with-gas. | |
1108 | with_gas=yes ;; | |
1109 | ||
1110 | -help | --help | --hel | --he | -h) | |
1111 | ac_init_help=long ;; | |
1112 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1113 | ac_init_help=recursive ;; | |
1114 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1115 | ac_init_help=short ;; | |
1116 | ||
1117 | -host | --host | --hos | --ho) | |
1118 | ac_prev=host_alias ;; | |
1119 | -host=* | --host=* | --hos=* | --ho=*) | |
1120 | host_alias=$ac_optarg ;; | |
1121 | ||
1122 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1123 | ac_prev=htmldir ;; | |
1124 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1125 | | --ht=*) | |
1126 | htmldir=$ac_optarg ;; | |
1127 | ||
1128 | -includedir | --includedir | --includedi | --included | --include \ | |
1129 | | --includ | --inclu | --incl | --inc) | |
1130 | ac_prev=includedir ;; | |
1131 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1132 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1133 | includedir=$ac_optarg ;; | |
1134 | ||
1135 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1136 | ac_prev=infodir ;; | |
1137 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1138 | infodir=$ac_optarg ;; | |
1139 | ||
1140 | -libdir | --libdir | --libdi | --libd) | |
1141 | ac_prev=libdir ;; | |
1142 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1143 | libdir=$ac_optarg ;; | |
1144 | ||
1145 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1146 | | --libexe | --libex | --libe) | |
1147 | ac_prev=libexecdir ;; | |
1148 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1149 | | --libexe=* | --libex=* | --libe=*) | |
1150 | libexecdir=$ac_optarg ;; | |
1151 | ||
1152 | -localedir | --localedir | --localedi | --localed | --locale) | |
1153 | ac_prev=localedir ;; | |
1154 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1155 | localedir=$ac_optarg ;; | |
1156 | ||
1157 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1158 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1159 | ac_prev=localstatedir ;; | |
1160 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1161 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1162 | localstatedir=$ac_optarg ;; | |
1163 | ||
1164 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1165 | ac_prev=mandir ;; | |
1166 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1167 | mandir=$ac_optarg ;; | |
1168 | ||
1169 | -nfp | --nfp | --nf) | |
1170 | # Obsolete; use --without-fp. | |
1171 | with_fp=no ;; | |
1172 | ||
1173 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1174 | | --no-cr | --no-c | -n) | |
1175 | no_create=yes ;; | |
1176 | ||
1177 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1178 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1179 | no_recursion=yes ;; | |
1180 | ||
1181 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1182 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1183 | | --oldin | --oldi | --old | --ol | --o) | |
1184 | ac_prev=oldincludedir ;; | |
1185 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1186 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1187 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1188 | oldincludedir=$ac_optarg ;; | |
1189 | ||
1190 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1191 | ac_prev=prefix ;; | |
1192 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1193 | prefix=$ac_optarg ;; | |
1194 | ||
1195 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1196 | | --program-pre | --program-pr | --program-p) | |
1197 | ac_prev=program_prefix ;; | |
1198 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1199 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1200 | program_prefix=$ac_optarg ;; | |
1201 | ||
1202 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1203 | | --program-suf | --program-su | --program-s) | |
1204 | ac_prev=program_suffix ;; | |
1205 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1206 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1207 | program_suffix=$ac_optarg ;; | |
1208 | ||
1209 | -program-transform-name | --program-transform-name \ | |
1210 | | --program-transform-nam | --program-transform-na \ | |
1211 | | --program-transform-n | --program-transform- \ | |
1212 | | --program-transform | --program-transfor \ | |
1213 | | --program-transfo | --program-transf \ | |
1214 | | --program-trans | --program-tran \ | |
1215 | | --progr-tra | --program-tr | --program-t) | |
1216 | ac_prev=program_transform_name ;; | |
1217 | -program-transform-name=* | --program-transform-name=* \ | |
1218 | | --program-transform-nam=* | --program-transform-na=* \ | |
1219 | | --program-transform-n=* | --program-transform-=* \ | |
1220 | | --program-transform=* | --program-transfor=* \ | |
1221 | | --program-transfo=* | --program-transf=* \ | |
1222 | | --program-trans=* | --program-tran=* \ | |
1223 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1224 | program_transform_name=$ac_optarg ;; | |
1225 | ||
1226 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1227 | ac_prev=pdfdir ;; | |
1228 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1229 | pdfdir=$ac_optarg ;; | |
1230 | ||
1231 | -psdir | --psdir | --psdi | --psd | --ps) | |
1232 | ac_prev=psdir ;; | |
1233 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1234 | psdir=$ac_optarg ;; | |
1235 | ||
1236 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1237 | | -silent | --silent | --silen | --sile | --sil) | |
1238 | silent=yes ;; | |
1239 | ||
1240 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1241 | ac_prev=sbindir ;; | |
1242 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1243 | | --sbi=* | --sb=*) | |
1244 | sbindir=$ac_optarg ;; | |
1245 | ||
1246 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1247 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1248 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1249 | | --sha | --sh) | |
1250 | ac_prev=sharedstatedir ;; | |
1251 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1252 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1253 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1254 | | --sha=* | --sh=*) | |
1255 | sharedstatedir=$ac_optarg ;; | |
1256 | ||
1257 | -site | --site | --sit) | |
1258 | ac_prev=site ;; | |
1259 | -site=* | --site=* | --sit=*) | |
1260 | site=$ac_optarg ;; | |
1261 | ||
1262 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1263 | ac_prev=srcdir ;; | |
1264 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1265 | srcdir=$ac_optarg ;; | |
1266 | ||
1267 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1268 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1269 | ac_prev=sysconfdir ;; | |
1270 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1271 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1272 | sysconfdir=$ac_optarg ;; | |
1273 | ||
1274 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1275 | ac_prev=target_alias ;; | |
1276 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1277 | target_alias=$ac_optarg ;; | |
1278 | ||
1279 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1280 | verbose=yes ;; | |
1281 | ||
1282 | -version | --version | --versio | --versi | --vers | -V) | |
1283 | ac_init_version=: ;; | |
1284 | ||
1285 | -with-* | --with-*) | |
1286 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1287 | # Reject names that are not valid shell variable names. | |
1288 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1289 | as_fn_error "invalid package name: $ac_useropt" | |
1290 | ac_useropt_orig=$ac_useropt | |
1291 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1292 | case $ac_user_opts in | |
1293 | *" | |
1294 | "with_$ac_useropt" | |
1295 | "*) ;; | |
1296 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1297 | ac_unrecognized_sep=', ';; | |
1298 | esac | |
1299 | eval with_$ac_useropt=\$ac_optarg ;; | |
1300 | ||
1301 | -without-* | --without-*) | |
1302 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1303 | # Reject names that are not valid shell variable names. | |
1304 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1305 | as_fn_error "invalid package name: $ac_useropt" | |
1306 | ac_useropt_orig=$ac_useropt | |
1307 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1308 | case $ac_user_opts in | |
1309 | *" | |
1310 | "with_$ac_useropt" | |
1311 | "*) ;; | |
1312 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1313 | ac_unrecognized_sep=', ';; | |
1314 | esac | |
1315 | eval with_$ac_useropt=no ;; | |
1316 | ||
1317 | --x) | |
1318 | # Obsolete; use --with-x. | |
1319 | with_x=yes ;; | |
1320 | ||
1321 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1322 | | --x-incl | --x-inc | --x-in | --x-i) | |
1323 | ac_prev=x_includes ;; | |
1324 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1325 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1326 | x_includes=$ac_optarg ;; | |
1327 | ||
1328 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1329 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1330 | ac_prev=x_libraries ;; | |
1331 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1332 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1333 | x_libraries=$ac_optarg ;; | |
1334 | ||
1335 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1336 | Try \`$0 --help' for more information." | |
1337 | ;; | |
1338 | ||
1339 | *=*) | |
1340 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1341 | # Reject names that are not valid shell variable names. | |
1342 | case $ac_envvar in #( | |
1343 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1344 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1345 | esac | |
1346 | eval $ac_envvar=\$ac_optarg | |
1347 | export $ac_envvar ;; | |
1348 | ||
1349 | *) | |
1350 | # FIXME: should be removed in autoconf 3.0. | |
1351 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1352 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1353 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1354 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1355 | ;; | |
1356 | ||
1357 | esac | |
1358 | done | |
1359 | ||
1360 | if test -n "$ac_prev"; then | |
1361 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1362 | as_fn_error "missing argument to $ac_option" | |
1363 | fi | |
1364 | ||
1365 | if test -n "$ac_unrecognized_opts"; then | |
1366 | case $enable_option_checking in | |
1367 | no) ;; | |
1368 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1369 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1370 | esac | |
1371 | fi | |
1372 | ||
1373 | # Check all directory arguments for consistency. | |
1374 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1375 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1376 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1377 | libdir localedir mandir | |
1378 | do | |
1379 | eval ac_val=\$$ac_var | |
1380 | # Remove trailing slashes. | |
1381 | case $ac_val in | |
1382 | */ ) | |
1383 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1384 | eval $ac_var=\$ac_val;; | |
1385 | esac | |
1386 | # Be sure to have absolute directory names. | |
1387 | case $ac_val in | |
1388 | [\\/$]* | ?:[\\/]* ) continue;; | |
1389 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1390 | esac | |
1391 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1392 | done | |
1393 | ||
1394 | # There might be people who depend on the old broken behavior: `$host' | |
1395 | # used to hold the argument of --host etc. | |
1396 | # FIXME: To remove some day. | |
1397 | build=$build_alias | |
1398 | host=$host_alias | |
1399 | target=$target_alias | |
1400 | ||
1401 | # FIXME: To remove some day. | |
1402 | if test "x$host_alias" != x; then | |
1403 | if test "x$build_alias" = x; then | |
1404 | cross_compiling=maybe | |
1405 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1406 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1407 | elif test "x$build_alias" != "x$host_alias"; then | |
1408 | cross_compiling=yes | |
1409 | fi | |
1410 | fi | |
1411 | ||
1412 | ac_tool_prefix= | |
1413 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1414 | ||
1415 | test "$silent" = yes && exec 6>/dev/null | |
1416 | ||
1417 | ||
1418 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1419 | ac_ls_di=`ls -di .` && | |
1420 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1421 | as_fn_error "working directory cannot be determined" | |
1422 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1423 | as_fn_error "pwd does not report name of working directory" | |
1424 | ||
1425 | ||
1426 | # Find the source files, if location was not specified. | |
1427 | if test -z "$srcdir"; then | |
1428 | ac_srcdir_defaulted=yes | |
1429 | # Try the directory containing this script, then the parent directory. | |
1430 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1431 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1432 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1433 | X"$as_myself" : 'X\(//\)$' \| \ | |
1434 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1435 | $as_echo X"$as_myself" | | |
1436 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1437 | s//\1/ | |
1438 | q | |
1439 | } | |
1440 | /^X\(\/\/\)[^/].*/{ | |
1441 | s//\1/ | |
1442 | q | |
1443 | } | |
1444 | /^X\(\/\/\)$/{ | |
1445 | s//\1/ | |
1446 | q | |
1447 | } | |
1448 | /^X\(\/\).*/{ | |
1449 | s//\1/ | |
1450 | q | |
1451 | } | |
1452 | s/.*/./; q'` | |
1453 | srcdir=$ac_confdir | |
1454 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1455 | srcdir=.. | |
1456 | fi | |
1457 | else | |
1458 | ac_srcdir_defaulted=no | |
1459 | fi | |
1460 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1461 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1462 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1463 | fi | |
1464 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1465 | ac_abs_confdir=`( | |
1466 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1467 | pwd)` | |
1468 | # When building in place, set srcdir=. | |
1469 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1470 | srcdir=. | |
1471 | fi | |
1472 | # Remove unnecessary trailing slashes from srcdir. | |
1473 | # Double slashes in file names in object file debugging info | |
1474 | # mess up M-x gdb in Emacs. | |
1475 | case $srcdir in | |
1476 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1477 | esac | |
1478 | for ac_var in $ac_precious_vars; do | |
1479 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1480 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1481 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1482 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1483 | done | |
1484 | ||
1485 | # | |
1486 | # Report the --help message. | |
1487 | # | |
1488 | if test "$ac_init_help" = "long"; then | |
1489 | # Omit some internal or obsolete options to make the list less imposing. | |
1490 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1491 | cat <<_ACEOF | |
1492 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1493 | ||
1494 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1495 | ||
1496 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1497 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1498 | ||
1499 | Defaults for the options are specified in brackets. | |
1500 | ||
1501 | Configuration: | |
1502 | -h, --help display this help and exit | |
1503 | --help=short display options specific to this package | |
1504 | --help=recursive display the short help of all the included packages | |
1505 | -V, --version display version information and exit | |
1506 | -q, --quiet, --silent do not print \`checking...' messages | |
1507 | --cache-file=FILE cache test results in FILE [disabled] | |
1508 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1509 | -n, --no-create do not create output files | |
1510 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1511 | ||
1512 | Installation directories: | |
1513 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1514 | [$ac_default_prefix] | |
1515 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1516 | [PREFIX] | |
1517 | ||
1518 | By default, \`make install' will install all the files in | |
1519 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1520 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1521 | for instance \`--prefix=\$HOME'. | |
1522 | ||
1523 | For better control, use the options below. | |
1524 | ||
1525 | Fine tuning of the installation directories: | |
1526 | --bindir=DIR user executables [EPREFIX/bin] | |
1527 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1528 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1529 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1530 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1531 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1532 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1533 | --includedir=DIR C header files [PREFIX/include] | |
1534 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1535 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1536 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1537 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1538 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1539 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1540 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1541 | --htmldir=DIR html documentation [DOCDIR] | |
1542 | --dvidir=DIR dvi documentation [DOCDIR] | |
1543 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1544 | --psdir=DIR ps documentation [DOCDIR] | |
1545 | _ACEOF | |
1546 | ||
1547 | cat <<\_ACEOF | |
35fa52c0 DWT |
1548 | |
1549 | System types: | |
1550 | --build=BUILD configure for building on BUILD [guessed] | |
1551 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1552 | _ACEOF |
1553 | fi | |
1554 | ||
1555 | if test -n "$ac_init_help"; then | |
1556 | case $ac_init_help in | |
1557 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1558 | esac | |
1559 | cat <<\_ACEOF | |
1560 | ||
35fa52c0 DWT |
1561 | Optional Features: |
1562 | --disable-option-checking ignore unrecognized --enable/--with options | |
1563 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1564 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
549f29b5 | 1565 | --enable-static[=PKGS] build static libraries [default=no] |
9c60689e | 1566 | --enable-shared[=PKGS] build shared libraries [default=yes] |
9c60689e DWT |
1567 | --enable-fast-install[=PKGS] |
1568 | optimize for fast installation [default=yes] | |
1569 | --disable-libtool-lock avoid locking (might break parallel builds) | |
35fa52c0 DWT |
1570 | --disable-rpath do not hardcode runtime library paths |
1571 | ||
1572 | Optional Packages: | |
1573 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1574 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1575 | --with-pic try to use only PIC/non-PIC objects [default=use |
1576 | both] | |
1577 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
309b0535 DWT |
1578 | --with-apr=PATH prefix for installed APR or the full path to |
1579 | apr-config | |
35fa52c0 DWT |
1580 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1581 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1582 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1583 | ||
dbadc56a | 1584 | Some influential environment variables: |
35fa52c0 DWT |
1585 | CC C compiler command |
1586 | CFLAGS C compiler flags | |
dbadc56a DWT |
1587 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1588 | nonstandard directory <lib dir> | |
1589 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1590 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1591 | you have headers in a nonstandard directory <include dir> |
9c60689e | 1592 | CPP C preprocessor |
3fd51f51 | 1593 | PKG_CONFIG path to pkg-config utility |
47aaa820 DWT |
1594 | CXX C++ compiler command |
1595 | CXXFLAGS C++ compiler flags | |
1596 | CXXCPP C++ preprocessor | |
9c60689e DWT |
1597 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1598 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1599 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1600 | This script will default YFLAGS to the empty string to avoid a | |
1601 | default value of `-d' given by some make applications. | |
27557508 | 1602 | GPERF perfect hash function generator |
35fa52c0 DWT |
1603 | WEBKIT_CFLAGS |
1604 | C compiler flags for WEBKIT, overriding pkg-config | |
1605 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
a667869d DWT |
1606 | OBJCXX Objective C++ compiler command |
1607 | OBJCXXFLAGS Objective C++ compiler flags | |
35fa52c0 DWT |
1608 | LIBFFI_CFLAGS |
1609 | C compiler flags for LIBFFI, overriding pkg-config | |
1610 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
dbadc56a DWT |
1611 | |
1612 | Use these variables to override the choices made by `configure' or to help | |
1613 | it to find libraries and programs with nonstandard names/locations. | |
1614 | ||
c7aa54aa DWT |
1615 | Report bugs to <saurik@saurik.com>. |
1616 | Cycript home page: <http://www.cycript.org/>. | |
1617 | _ACEOF | |
1618 | ac_status=$? | |
1619 | fi | |
1620 | ||
1621 | if test "$ac_init_help" = "recursive"; then | |
1622 | # If there are subdirs, report their specific --help. | |
1623 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1624 | test -d "$ac_dir" || | |
1625 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1626 | continue | |
1627 | ac_builddir=. | |
1628 | ||
1629 | case "$ac_dir" in | |
1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1631 | *) | |
1632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1633 | # A ".." for each directory in $ac_dir_suffix. | |
1634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1635 | case $ac_top_builddir_sub in | |
1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1638 | esac ;; | |
1639 | esac | |
1640 | ac_abs_top_builddir=$ac_pwd | |
1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1642 | # for backward compatibility: | |
1643 | ac_top_builddir=$ac_top_build_prefix | |
1644 | ||
1645 | case $srcdir in | |
1646 | .) # We are building in place. | |
1647 | ac_srcdir=. | |
1648 | ac_top_srcdir=$ac_top_builddir_sub | |
1649 | ac_abs_top_srcdir=$ac_pwd ;; | |
1650 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1651 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1652 | ac_top_srcdir=$srcdir | |
1653 | ac_abs_top_srcdir=$srcdir ;; | |
1654 | *) # Relative name. | |
1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1658 | esac | |
1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1660 | ||
1661 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1662 | # Check for guested configure. | |
1663 | if test -f "$ac_srcdir/configure.gnu"; then | |
1664 | echo && | |
1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1666 | elif test -f "$ac_srcdir/configure"; then | |
1667 | echo && | |
1668 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1669 | else | |
1670 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1671 | fi || ac_status=$? | |
1672 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1673 | done | |
1674 | fi | |
1675 | ||
1676 | test -n "$ac_init_help" && exit $ac_status | |
1677 | if $ac_init_version; then | |
1678 | cat <<\_ACEOF | |
1679 | Cycript configure 0.9 | |
9c60689e | 1680 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1681 | |
1682 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1683 | This configure script is free software; the Free Software Foundation | |
1684 | gives unlimited permission to copy, distribute and modify it. | |
1685 | _ACEOF | |
1686 | exit | |
1687 | fi | |
1688 | ||
1689 | ## ------------------------ ## | |
1690 | ## Autoconf initialization. ## | |
1691 | ## ------------------------ ## | |
dbadc56a | 1692 | |
35fa52c0 DWT |
1693 | # ac_fn_c_try_compile LINENO |
1694 | # -------------------------- | |
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_compile () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | rm -f conftest.$ac_objext | |
1700 | if { { ac_try="$ac_compile" | |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_compile") 2>conftest.err | |
1708 | ac_status=$? | |
1709 | if test -s conftest.err; then | |
1710 | grep -v '^ *+' conftest.err >conftest.er1 | |
1711 | cat conftest.er1 >&5 | |
1712 | mv -f conftest.er1 conftest.err | |
1713 | fi | |
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1715 | test $ac_status = 0; } && { | |
1716 | test -z "$ac_c_werror_flag" || | |
1717 | test ! -s conftest.err | |
1718 | } && test -s conftest.$ac_objext; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1727 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1728 | |
1729 | } # ac_fn_c_try_compile | |
1730 | ||
1731 | # ac_fn_c_try_link LINENO | |
1732 | # ----------------------- | |
1733 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_c_try_link () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1738 | if { { ac_try="$ac_link" | |
1739 | case "(($ac_try" in | |
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1741 | *) ac_try_echo=$ac_try;; | |
1742 | esac | |
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1744 | $as_echo "$ac_try_echo"; } >&5 | |
1745 | (eval "$ac_link") 2>conftest.err | |
1746 | ac_status=$? | |
1747 | if test -s conftest.err; then | |
1748 | grep -v '^ *+' conftest.err >conftest.er1 | |
1749 | cat conftest.er1 >&5 | |
1750 | mv -f conftest.er1 conftest.err | |
1751 | fi | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; } && { | |
1754 | test -z "$ac_c_werror_flag" || | |
1755 | test ! -s conftest.err | |
1756 | } && test -s conftest$ac_exeext && { | |
1757 | test "$cross_compiling" = yes || | |
1758 | $as_test_x conftest$ac_exeext | |
1759 | }; then : | |
1760 | ac_retval=0 | |
1761 | else | |
1762 | $as_echo "$as_me: failed program was:" >&5 | |
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1764 | ||
1765 | ac_retval=1 | |
1766 | fi | |
1767 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1768 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1769 | # interfere with the next link command; also delete a directory that is | |
1770 | # left behind by Apple's compiler. We do this before executing the actions. | |
1771 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1772 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1773 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1774 | |
1775 | } # ac_fn_c_try_link | |
1776 | ||
9c60689e DWT |
1777 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1778 | # ------------------------------------------------------- | |
1779 | # Tests whether HEADER exists and can be compiled using the include files in | |
1780 | # INCLUDES, setting the cache variable VAR accordingly. | |
1781 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1782 | { |
1783 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1785 | $as_echo_n "checking for $2... " >&6; } | |
1786 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1787 | $as_echo_n "(cached) " >&6 | |
1788 | else | |
1789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1790 | /* end confdefs.h. */ | |
1791 | $4 | |
1792 | #include <$2> | |
1793 | _ACEOF | |
1794 | if ac_fn_c_try_compile "$LINENO"; then : | |
1795 | eval "$3=yes" | |
1796 | else | |
1797 | eval "$3=no" | |
1798 | fi | |
1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1800 | fi | |
1801 | eval ac_res=\$$3 | |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1803 | $as_echo "$ac_res" >&6; } | |
1804 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1805 | ||
1806 | } # ac_fn_c_check_header_compile | |
1807 | ||
1808 | # ac_fn_c_try_cpp LINENO | |
1809 | # ---------------------- | |
1810 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1811 | ac_fn_c_try_cpp () | |
1812 | { | |
1813 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1814 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1815 | case "(($ac_try" in |
1816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1817 | *) ac_try_echo=$ac_try;; | |
1818 | esac | |
1819 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1820 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1822 | ac_status=$? |
1823 | if test -s conftest.err; then | |
1824 | grep -v '^ *+' conftest.err >conftest.er1 | |
1825 | cat conftest.er1 >&5 | |
1826 | mv -f conftest.er1 conftest.err | |
1827 | fi | |
1828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1829 | test $ac_status = 0; } >/dev/null && { |
1830 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1831 | test ! -s conftest.err |
9c60689e | 1832 | }; then : |
dbadc56a DWT |
1833 | ac_retval=0 |
1834 | else | |
1835 | $as_echo "$as_me: failed program was:" >&5 | |
1836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1837 | ||
9c60689e | 1838 | ac_retval=1 |
dbadc56a DWT |
1839 | fi |
1840 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1841 | as_fn_set_status $ac_retval |
dbadc56a | 1842 | |
9c60689e | 1843 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1844 | |
1845 | # ac_fn_c_try_run LINENO | |
1846 | # ---------------------- | |
1847 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1848 | # that executables *can* be run. | |
1849 | ac_fn_c_try_run () | |
1850 | { | |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1852 | if { { ac_try="$ac_link" | |
1853 | case "(($ac_try" in | |
1854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1855 | *) ac_try_echo=$ac_try;; | |
1856 | esac | |
1857 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1858 | $as_echo "$ac_try_echo"; } >&5 | |
1859 | (eval "$ac_link") 2>&5 | |
1860 | ac_status=$? | |
1861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1862 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1863 | { { case "(($ac_try" in | |
1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1865 | *) ac_try_echo=$ac_try;; | |
1866 | esac | |
1867 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1868 | $as_echo "$ac_try_echo"; } >&5 | |
1869 | (eval "$ac_try") 2>&5 | |
1870 | ac_status=$? | |
1871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1872 | test $ac_status = 0; }; }; then : | |
1873 | ac_retval=0 | |
1874 | else | |
1875 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1876 | $as_echo "$as_me: failed program was:" >&5 | |
1877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1878 | ||
1879 | ac_retval=$ac_status | |
1880 | fi | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1882 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1883 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1884 | |
1885 | } # ac_fn_c_try_run | |
6b66678a | 1886 | |
9c60689e DWT |
1887 | # ac_fn_c_check_func LINENO FUNC VAR |
1888 | # ---------------------------------- | |
1889 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1890 | ac_fn_c_check_func () | |
6b66678a DWT |
1891 | { |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1894 | $as_echo_n "checking for $2... " >&6; } | |
1895 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1896 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1897 | else |
9c60689e DWT |
1898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1899 | /* end confdefs.h. */ | |
1900 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1902 | #define $2 innocuous_$2 | |
6b66678a | 1903 | |
9c60689e DWT |
1904 | /* System header to define __stub macros and hopefully few prototypes, |
1905 | which can conflict with char $2 (); below. | |
1906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1907 | <limits.h> exists even on freestanding compilers. */ | |
1908 | ||
1909 | #ifdef __STDC__ | |
1910 | # include <limits.h> | |
1911 | #else | |
1912 | # include <assert.h> | |
1913 | #endif | |
1914 | ||
1915 | #undef $2 | |
1916 | ||
1917 | /* Override any GCC internal prototype to avoid an error. | |
1918 | Use char because int might match the return type of a GCC | |
1919 | builtin and then its argument prototype would still apply. */ | |
1920 | #ifdef __cplusplus | |
1921 | extern "C" | |
1922 | #endif | |
1923 | char $2 (); | |
1924 | /* The GNU C library defines this for functions which it implements | |
1925 | to always fail with ENOSYS. Some functions are actually named | |
1926 | something starting with __ and the normal name is an alias. */ | |
1927 | #if defined __stub_$2 || defined __stub___$2 | |
1928 | choke me | |
1929 | #endif | |
1930 | ||
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | return $2 (); | |
1935 | ; | |
1936 | return 0; | |
1937 | } | |
1938 | _ACEOF | |
1939 | if ac_fn_c_try_link "$LINENO"; then : | |
1940 | eval "$3=yes" | |
1941 | else | |
1942 | eval "$3=no" | |
1943 | fi | |
1944 | rm -f core conftest.err conftest.$ac_objext \ | |
1945 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1946 | fi |
9c60689e DWT |
1947 | eval ac_res=\$$3 |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1949 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1950 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1951 | |
9c60689e | 1952 | } # ac_fn_c_check_func |
6b66678a | 1953 | |
9c60689e DWT |
1954 | # ac_fn_cxx_try_compile LINENO |
1955 | # ---------------------------- | |
1956 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1957 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
1958 | { |
1959 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1960 | rm -f conftest.$ac_objext |
1961 | if { { ac_try="$ac_compile" | |
1962 | case "(($ac_try" in | |
1963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1964 | *) ac_try_echo=$ac_try;; | |
1965 | esac | |
1966 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1967 | $as_echo "$ac_try_echo"; } >&5 | |
1968 | (eval "$ac_compile") 2>conftest.err | |
1969 | ac_status=$? | |
1970 | if test -s conftest.err; then | |
1971 | grep -v '^ *+' conftest.err >conftest.er1 | |
1972 | cat conftest.er1 >&5 | |
1973 | mv -f conftest.er1 conftest.err | |
1974 | fi | |
1975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1976 | test $ac_status = 0; } && { | |
1977 | test -z "$ac_cxx_werror_flag" || | |
1978 | test ! -s conftest.err | |
1979 | } && test -s conftest.$ac_objext; then : | |
1980 | ac_retval=0 | |
1981 | else | |
1982 | $as_echo "$as_me: failed program was:" >&5 | |
1983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1984 | ||
1985 | ac_retval=1 | |
1986 | fi | |
1987 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1988 | as_fn_set_status $ac_retval | |
1989 | ||
1990 | } # ac_fn_cxx_try_compile | |
1991 | ||
1992 | # ac_fn_cxx_try_cpp LINENO | |
1993 | # ------------------------ | |
1994 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1995 | ac_fn_cxx_try_cpp () | |
1996 | { | |
1997 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1998 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1999 | case "(($ac_try" in | |
2000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2001 | *) ac_try_echo=$ac_try;; | |
2002 | esac | |
2003 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2004 | $as_echo "$ac_try_echo"; } >&5 | |
2005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2006 | ac_status=$? | |
2007 | if test -s conftest.err; then | |
2008 | grep -v '^ *+' conftest.err >conftest.er1 | |
2009 | cat conftest.er1 >&5 | |
2010 | mv -f conftest.er1 conftest.err | |
2011 | fi | |
2012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2013 | test $ac_status = 0; } >/dev/null && { | |
2014 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2015 | test ! -s conftest.err | |
2016 | }; then : | |
2017 | ac_retval=0 | |
2018 | else | |
2019 | $as_echo "$as_me: failed program was:" >&5 | |
2020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2021 | ||
2022 | ac_retval=1 | |
2023 | fi | |
2024 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2025 | as_fn_set_status $ac_retval | |
2026 | ||
2027 | } # ac_fn_cxx_try_cpp | |
2028 | ||
2029 | # ac_fn_cxx_try_link LINENO | |
2030 | # ------------------------- | |
2031 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2032 | ac_fn_cxx_try_link () | |
2033 | { | |
2034 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2036 | if { { ac_try="$ac_link" | |
2037 | case "(($ac_try" in | |
2038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2039 | *) ac_try_echo=$ac_try;; | |
2040 | esac | |
2041 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2042 | $as_echo "$ac_try_echo"; } >&5 | |
2043 | (eval "$ac_link") 2>conftest.err | |
2044 | ac_status=$? | |
2045 | if test -s conftest.err; then | |
2046 | grep -v '^ *+' conftest.err >conftest.er1 | |
2047 | cat conftest.er1 >&5 | |
2048 | mv -f conftest.er1 conftest.err | |
2049 | fi | |
2050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2051 | test $ac_status = 0; } && { | |
2052 | test -z "$ac_cxx_werror_flag" || | |
2053 | test ! -s conftest.err | |
2054 | } && test -s conftest$ac_exeext && { | |
2055 | test "$cross_compiling" = yes || | |
2056 | $as_test_x conftest$ac_exeext | |
2057 | }; then : | |
2058 | ac_retval=0 | |
2059 | else | |
2060 | $as_echo "$as_me: failed program was:" >&5 | |
2061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2062 | ||
2063 | ac_retval=1 | |
2064 | fi | |
2065 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2066 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2067 | # interfere with the next link command; also delete a directory that is | |
2068 | # left behind by Apple's compiler. We do this before executing the actions. | |
2069 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2070 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2071 | as_fn_set_status $ac_retval | |
2072 | ||
2073 | } # ac_fn_cxx_try_link | |
2074 | ||
47aaa820 DWT |
2075 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2076 | # --------------------------------------------------------- | |
2077 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2078 | # the include files in INCLUDES and setting the cache variable VAR | |
2079 | # accordingly. | |
2080 | ac_fn_cxx_check_header_mongrel () | |
2081 | { | |
2082 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2083 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2085 | $as_echo_n "checking for $2... " >&6; } | |
2086 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2087 | $as_echo_n "(cached) " >&6 | |
2088 | fi | |
2089 | eval ac_res=\$$3 | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2091 | $as_echo "$ac_res" >&6; } | |
2092 | else | |
2093 | # Is the header compilable? | |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2095 | $as_echo_n "checking $2 usability... " >&6; } | |
2096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2097 | /* end confdefs.h. */ | |
2098 | $4 | |
2099 | #include <$2> | |
2100 | _ACEOF | |
2101 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2102 | ac_header_compiler=yes | |
2103 | else | |
2104 | ac_header_compiler=no | |
2105 | fi | |
2106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2108 | $as_echo "$ac_header_compiler" >&6; } | |
2109 | ||
2110 | # Is the header present? | |
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2112 | $as_echo_n "checking $2 presence... " >&6; } | |
2113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2114 | /* end confdefs.h. */ | |
2115 | #include <$2> | |
2116 | _ACEOF | |
2117 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2118 | ac_header_preproc=yes | |
2119 | else | |
2120 | ac_header_preproc=no | |
2121 | fi | |
2122 | rm -f conftest.err conftest.$ac_ext | |
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2124 | $as_echo "$ac_header_preproc" >&6; } | |
2125 | ||
2126 | # So? What about this header? | |
2127 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2128 | yes:no: ) | |
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2130 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2132 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2133 | ;; | |
2134 | no:yes:* ) | |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2136 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2138 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2140 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2142 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2144 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2145 | ( cat <<\_ASBOX | |
2146 | ## -------------------------------- ## | |
2147 | ## Report this to saurik@saurik.com ## | |
2148 | ## -------------------------------- ## | |
2149 | _ASBOX | |
2150 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2151 | ;; | |
2152 | esac | |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2154 | $as_echo_n "checking for $2... " >&6; } | |
2155 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2156 | $as_echo_n "(cached) " >&6 | |
2157 | else | |
2158 | eval "$3=\$ac_header_compiler" | |
2159 | fi | |
2160 | eval ac_res=\$$3 | |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2162 | $as_echo "$ac_res" >&6; } | |
2163 | fi | |
2164 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2165 | ||
2166 | } # ac_fn_cxx_check_header_mongrel | |
2167 | ||
9c60689e DWT |
2168 | # ac_fn_objcxx_try_compile LINENO |
2169 | # ------------------------------- | |
2170 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2171 | ac_fn_objcxx_try_compile () | |
2172 | { | |
2173 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2174 | rm -f conftest.$ac_objext | |
2175 | if { { ac_try="$ac_compile" | |
2176 | case "(($ac_try" in | |
2177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2178 | *) ac_try_echo=$ac_try;; | |
2179 | esac | |
2180 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2181 | $as_echo "$ac_try_echo"; } >&5 | |
2182 | (eval "$ac_compile") 2>conftest.err | |
2183 | ac_status=$? | |
2184 | if test -s conftest.err; then | |
2185 | grep -v '^ *+' conftest.err >conftest.er1 | |
2186 | cat conftest.er1 >&5 | |
2187 | mv -f conftest.er1 conftest.err | |
2188 | fi | |
2189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2190 | test $ac_status = 0; } && { | |
2191 | test -z "$ac_objcxx_werror_flag" || | |
2192 | test ! -s conftest.err | |
2193 | } && test -s conftest.$ac_objext; then : | |
2194 | ac_retval=0 | |
2195 | else | |
2196 | $as_echo "$as_me: failed program was:" >&5 | |
2197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2198 | ||
2199 | ac_retval=1 | |
2200 | fi | |
2201 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2202 | as_fn_set_status $ac_retval | |
2203 | ||
2204 | } # ac_fn_objcxx_try_compile | |
c7aa54aa DWT |
2205 | cat >config.log <<_ACEOF |
2206 | This file contains any messages produced by compilers while | |
2207 | running configure, to aid debugging if configure makes a mistake. | |
2208 | ||
2209 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2210 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2211 | |
2212 | $ $0 $@ | |
2213 | ||
2214 | _ACEOF | |
2215 | exec 5>>config.log | |
2216 | { | |
2217 | cat <<_ASUNAME | |
2218 | ## --------- ## | |
2219 | ## Platform. ## | |
2220 | ## --------- ## | |
2221 | ||
2222 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2223 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2224 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2225 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2226 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2227 | ||
2228 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2229 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2230 | ||
2231 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2232 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2233 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2234 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2235 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2236 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2237 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2238 | ||
2239 | _ASUNAME | |
2240 | ||
2241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2242 | for as_dir in $PATH | |
2243 | do | |
2244 | IFS=$as_save_IFS | |
2245 | test -z "$as_dir" && as_dir=. | |
2246 | $as_echo "PATH: $as_dir" | |
2247 | done | |
2248 | IFS=$as_save_IFS | |
2249 | ||
2250 | } >&5 | |
2251 | ||
2252 | cat >&5 <<_ACEOF | |
2253 | ||
2254 | ||
2255 | ## ----------- ## | |
2256 | ## Core tests. ## | |
2257 | ## ----------- ## | |
2258 | ||
2259 | _ACEOF | |
2260 | ||
2261 | ||
2262 | # Keep a trace of the command line. | |
2263 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2264 | # Strip out --silent because we don't want to record it for future runs. | |
2265 | # Also quote any args containing shell meta-characters. | |
2266 | # Make two passes to allow for proper duplicate-argument suppression. | |
2267 | ac_configure_args= | |
2268 | ac_configure_args0= | |
2269 | ac_configure_args1= | |
2270 | ac_must_keep_next=false | |
2271 | for ac_pass in 1 2 | |
2272 | do | |
2273 | for ac_arg | |
2274 | do | |
2275 | case $ac_arg in | |
2276 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2278 | | -silent | --silent | --silen | --sile | --sil) | |
2279 | continue ;; | |
2280 | *\'*) | |
2281 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2282 | esac | |
2283 | case $ac_pass in | |
2284 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2285 | 2) | |
2286 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2287 | if test $ac_must_keep_next = true; then | |
2288 | ac_must_keep_next=false # Got value, back to normal. | |
2289 | else | |
2290 | case $ac_arg in | |
2291 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2292 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2293 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2294 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2295 | case "$ac_configure_args0 " in | |
2296 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2297 | esac | |
2298 | ;; | |
2299 | -* ) ac_must_keep_next=true ;; | |
2300 | esac | |
2301 | fi | |
2302 | as_fn_append ac_configure_args " '$ac_arg'" | |
2303 | ;; | |
2304 | esac | |
2305 | done | |
2306 | done | |
2307 | { ac_configure_args0=; unset ac_configure_args0;} | |
2308 | { ac_configure_args1=; unset ac_configure_args1;} | |
2309 | ||
2310 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2311 | # config.log. We remove comments because anyway the quotes in there | |
2312 | # would cause problems or look ugly. | |
2313 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2314 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2315 | trap 'exit_status=$? | |
2316 | # Save into config.log some information that might help in debugging. | |
2317 | { | |
2318 | echo | |
2319 | ||
2320 | cat <<\_ASBOX | |
2321 | ## ---------------- ## | |
2322 | ## Cache variables. ## | |
2323 | ## ---------------- ## | |
2324 | _ASBOX | |
2325 | echo | |
2326 | # The following way of writing the cache mishandles newlines in values, | |
2327 | ( | |
2328 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2329 | eval ac_val=\$$ac_var | |
2330 | case $ac_val in #( | |
2331 | *${as_nl}*) | |
2332 | case $ac_var in #( | |
2333 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2334 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2335 | esac | |
2336 | case $ac_var in #( | |
2337 | _ | IFS | as_nl) ;; #( | |
2338 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2339 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2340 | esac ;; | |
2341 | esac | |
2342 | done | |
2343 | (set) 2>&1 | | |
2344 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2345 | *${as_nl}ac_space=\ *) | |
2346 | sed -n \ | |
2347 | "s/'\''/'\''\\\\'\'''\''/g; | |
2348 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2349 | ;; #( | |
2350 | *) | |
2351 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2352 | ;; | |
2353 | esac | | |
2354 | sort | |
2355 | ) | |
2356 | echo | |
2357 | ||
2358 | cat <<\_ASBOX | |
2359 | ## ----------------- ## | |
2360 | ## Output variables. ## | |
2361 | ## ----------------- ## | |
2362 | _ASBOX | |
2363 | echo | |
2364 | for ac_var in $ac_subst_vars | |
2365 | do | |
2366 | eval ac_val=\$$ac_var | |
2367 | case $ac_val in | |
2368 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2369 | esac | |
2370 | $as_echo "$ac_var='\''$ac_val'\''" | |
2371 | done | sort | |
2372 | echo | |
2373 | ||
2374 | if test -n "$ac_subst_files"; then | |
2375 | cat <<\_ASBOX | |
2376 | ## ------------------- ## | |
2377 | ## File substitutions. ## | |
2378 | ## ------------------- ## | |
2379 | _ASBOX | |
2380 | echo | |
2381 | for ac_var in $ac_subst_files | |
2382 | do | |
2383 | eval ac_val=\$$ac_var | |
2384 | case $ac_val in | |
2385 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2386 | esac | |
2387 | $as_echo "$ac_var='\''$ac_val'\''" | |
2388 | done | sort | |
2389 | echo | |
2390 | fi | |
2391 | ||
2392 | if test -s confdefs.h; then | |
2393 | cat <<\_ASBOX | |
2394 | ## ----------- ## | |
2395 | ## confdefs.h. ## | |
2396 | ## ----------- ## | |
2397 | _ASBOX | |
2398 | echo | |
2399 | cat confdefs.h | |
2400 | echo | |
2401 | fi | |
2402 | test "$ac_signal" != 0 && | |
2403 | $as_echo "$as_me: caught signal $ac_signal" | |
2404 | $as_echo "$as_me: exit $exit_status" | |
2405 | } >&5 | |
2406 | rm -f core *.core core.conftest.* && | |
2407 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2408 | exit $exit_status | |
2409 | ' 0 | |
2410 | for ac_signal in 1 2 13 15; do | |
2411 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2412 | done | |
2413 | ac_signal=0 | |
2414 | ||
2415 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2416 | rm -f -r conftest* confdefs.h | |
2417 | ||
2418 | $as_echo "/* confdefs.h */" > confdefs.h | |
2419 | ||
2420 | # Predefined preprocessor variables. | |
2421 | ||
2422 | cat >>confdefs.h <<_ACEOF | |
2423 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2424 | _ACEOF | |
2425 | ||
2426 | cat >>confdefs.h <<_ACEOF | |
2427 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2428 | _ACEOF | |
2429 | ||
2430 | cat >>confdefs.h <<_ACEOF | |
2431 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2432 | _ACEOF | |
2433 | ||
2434 | cat >>confdefs.h <<_ACEOF | |
2435 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2436 | _ACEOF | |
2437 | ||
2438 | cat >>confdefs.h <<_ACEOF | |
2439 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2440 | _ACEOF | |
2441 | ||
2442 | cat >>confdefs.h <<_ACEOF | |
2443 | #define PACKAGE_URL "$PACKAGE_URL" | |
2444 | _ACEOF | |
2445 | ||
2446 | ||
2447 | # Let the site file select an alternate cache file if it wants to. | |
2448 | # Prefer an explicitly selected file to automatically selected ones. | |
2449 | ac_site_file1=NONE | |
2450 | ac_site_file2=NONE | |
2451 | if test -n "$CONFIG_SITE"; then | |
2452 | ac_site_file1=$CONFIG_SITE | |
2453 | elif test "x$prefix" != xNONE; then | |
2454 | ac_site_file1=$prefix/share/config.site | |
2455 | ac_site_file2=$prefix/etc/config.site | |
2456 | else | |
2457 | ac_site_file1=$ac_default_prefix/share/config.site | |
2458 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2459 | fi | |
2460 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2461 | do | |
2462 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2463 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2465 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2466 | sed 's/^/| /' "$ac_site_file" >&5 | |
2467 | . "$ac_site_file" | |
2468 | fi | |
2469 | done | |
2470 | ||
2471 | if test -r "$cache_file"; then | |
9c60689e DWT |
2472 | # Some versions of bash will fail to source /dev/null (special files |
2473 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2474 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2476 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2477 | case $cache_file in | |
2478 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2479 | *) . "./$cache_file";; | |
2480 | esac | |
2481 | fi | |
2482 | else | |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2484 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2485 | >$cache_file | |
2486 | fi | |
2487 | ||
2488 | # Check that the precious variables saved in the cache have kept the same | |
2489 | # value. | |
2490 | ac_cache_corrupted=false | |
2491 | for ac_var in $ac_precious_vars; do | |
2492 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2493 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2494 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2495 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2496 | case $ac_old_set,$ac_new_set in | |
2497 | set,) | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2499 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2500 | ac_cache_corrupted=: ;; | |
2501 | ,set) | |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2503 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2504 | ac_cache_corrupted=: ;; | |
2505 | ,);; | |
2506 | *) | |
2507 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2508 | # differences in whitespace do not lead to failure. | |
2509 | ac_old_val_w=`echo x $ac_old_val` | |
2510 | ac_new_val_w=`echo x $ac_new_val` | |
2511 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2513 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2514 | ac_cache_corrupted=: | |
2515 | else | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2517 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2518 | eval $ac_var=\$ac_old_val | |
2519 | fi | |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2521 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2523 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2524 | fi;; | |
2525 | esac | |
2526 | # Pass precious variables to config.status. | |
2527 | if test "$ac_new_set" = set; then | |
2528 | case $ac_new_val in | |
2529 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2530 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2531 | esac | |
2532 | case " $ac_configure_args " in | |
2533 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2534 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2535 | esac | |
2536 | fi | |
2537 | done | |
2538 | if $ac_cache_corrupted; then | |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2542 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2543 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2544 | fi | |
2545 | ## -------------------- ## | |
2546 | ## Main body of script. ## | |
2547 | ## -------------------- ## | |
2548 | ||
2549 | ac_ext=c | |
2550 | ac_cpp='$CPP $CPPFLAGS' | |
2551 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2552 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2553 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2554 | ||
2555 | ||
35fa52c0 | 2556 | |
6b66678a DWT |
2557 | ac_aux_dir= |
2558 | for ac_dir in . "$srcdir"/.; do | |
2559 | for ac_t in install-sh install.sh shtool; do | |
2560 | if test -f "$ac_dir/$ac_t"; then | |
2561 | ac_aux_dir=$ac_dir | |
2562 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2563 | break 2 | |
2564 | fi | |
2565 | done | |
2566 | done | |
2567 | if test -z "$ac_aux_dir"; then | |
2568 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2569 | fi | |
2570 | ||
2571 | # These three variables are undocumented and unsupported, | |
2572 | # and are intended to be withdrawn in a future Autoconf release. | |
2573 | # They can cause serious problems if a builder's source tree is in a directory | |
2574 | # whose full name contains unusual characters. | |
2575 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2576 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2577 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2578 | ||
2579 | ||
9c60689e DWT |
2580 | case `pwd` in |
2581 | *\ * | *\ *) | |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2583 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2584 | esac | |
2585 | ||
2586 | ||
2587 | ||
2588 | macro_version='2.2.6b' | |
2589 | macro_revision='1.3017' | |
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ||
2595 | ||
2596 | ||
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | ||
2602 | ||
2603 | ltmain="$ac_aux_dir/ltmain.sh" | |
2604 | ||
2605 | # Make sure we can run config.sub. | |
2606 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2607 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2608 | ||
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2610 | $as_echo_n "checking build system type... " >&6; } | |
2611 | if test "${ac_cv_build+set}" = set; then : | |
2612 | $as_echo_n "(cached) " >&6 | |
2613 | else | |
2614 | ac_build_alias=$build_alias | |
2615 | test "x$ac_build_alias" = x && | |
2616 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2617 | test "x$ac_build_alias" = x && | |
2618 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2619 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2620 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2621 | ||
2622 | fi | |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2624 | $as_echo "$ac_cv_build" >&6; } | |
2625 | case $ac_cv_build in | |
2626 | *-*-*) ;; | |
2627 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2628 | esac | |
2629 | build=$ac_cv_build | |
2630 | ac_save_IFS=$IFS; IFS='-' | |
2631 | set x $ac_cv_build | |
2632 | shift | |
2633 | build_cpu=$1 | |
2634 | build_vendor=$2 | |
2635 | shift; shift | |
2636 | # Remember, the first character of IFS is used to create $*, | |
2637 | # except with old shells: | |
2638 | build_os=$* | |
2639 | IFS=$ac_save_IFS | |
2640 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2641 | ||
2642 | ||
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2644 | $as_echo_n "checking host system type... " >&6; } | |
2645 | if test "${ac_cv_host+set}" = set; then : | |
2646 | $as_echo_n "(cached) " >&6 | |
2647 | else | |
2648 | if test "x$host_alias" = x; then | |
2649 | ac_cv_host=$ac_cv_build | |
2650 | else | |
2651 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2652 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2653 | fi | |
2654 | ||
2655 | fi | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2657 | $as_echo "$ac_cv_host" >&6; } | |
2658 | case $ac_cv_host in | |
2659 | *-*-*) ;; | |
2660 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2661 | esac | |
2662 | host=$ac_cv_host | |
2663 | ac_save_IFS=$IFS; IFS='-' | |
2664 | set x $ac_cv_host | |
2665 | shift | |
2666 | host_cpu=$1 | |
2667 | host_vendor=$2 | |
2668 | shift; shift | |
2669 | # Remember, the first character of IFS is used to create $*, | |
2670 | # except with old shells: | |
2671 | host_os=$* | |
2672 | IFS=$ac_save_IFS | |
2673 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2674 | ||
2675 | ||
2676 | ac_ext=c | |
2677 | ac_cpp='$CPP $CPPFLAGS' | |
2678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2681 | if test -n "$ac_tool_prefix"; then | |
2682 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2683 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2685 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2686 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2687 | $as_echo_n "(cached) " >&6 |
2688 | else | |
9c60689e DWT |
2689 | if test -n "$CC"; then |
2690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2691 | else |
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2693 | for as_dir in $PATH | |
2694 | do | |
2695 | IFS=$as_save_IFS | |
2696 | test -z "$as_dir" && as_dir=. | |
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2699 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2701 | break 2 | |
2702 | fi | |
2703 | done | |
2704 | done | |
2705 | IFS=$as_save_IFS | |
2706 | ||
2707 | fi | |
2708 | fi | |
9c60689e DWT |
2709 | CC=$ac_cv_prog_CC |
2710 | if test -n "$CC"; then | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2712 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2713 | else |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2715 | $as_echo "no" >&6; } | |
2716 | fi | |
2717 | ||
2718 | ||
2719 | fi | |
2720 | if test -z "$ac_cv_prog_CC"; then | |
2721 | ac_ct_CC=$CC | |
2722 | # Extract the first word of "gcc", so it can be a program name with args. | |
2723 | set dummy gcc; ac_word=$2 | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2725 | $as_echo_n "checking for $ac_word... " >&6; } | |
2726 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2727 | $as_echo_n "(cached) " >&6 | |
2728 | else | |
2729 | if test -n "$ac_ct_CC"; then | |
2730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2731 | else | |
2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2733 | for as_dir in $PATH | |
2734 | do | |
2735 | IFS=$as_save_IFS | |
2736 | test -z "$as_dir" && as_dir=. | |
2737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2739 | ac_cv_prog_ac_ct_CC="gcc" | |
2740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2741 | break 2 | |
2742 | fi | |
2743 | done | |
2744 | done | |
2745 | IFS=$as_save_IFS | |
2746 | ||
2747 | fi | |
2748 | fi | |
2749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2750 | if test -n "$ac_ct_CC"; then | |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2752 | $as_echo "$ac_ct_CC" >&6; } | |
2753 | else | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2755 | $as_echo "no" >&6; } | |
2756 | fi | |
2757 | ||
2758 | if test "x$ac_ct_CC" = x; then | |
2759 | CC="" | |
2760 | else | |
2761 | case $cross_compiling:$ac_tool_warned in | |
2762 | yes:) | |
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2765 | ac_tool_warned=yes ;; | |
2766 | esac | |
2767 | CC=$ac_ct_CC | |
2768 | fi | |
2769 | else | |
2770 | CC="$ac_cv_prog_CC" | |
2771 | fi | |
2772 | ||
2773 | if test -z "$CC"; then | |
2774 | if test -n "$ac_tool_prefix"; then | |
2775 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2776 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2778 | $as_echo_n "checking for $ac_word... " >&6; } | |
2779 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2780 | $as_echo_n "(cached) " >&6 | |
2781 | else | |
2782 | if test -n "$CC"; then | |
2783 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2784 | else | |
2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2786 | for as_dir in $PATH | |
2787 | do | |
2788 | IFS=$as_save_IFS | |
2789 | test -z "$as_dir" && as_dir=. | |
2790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2792 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2794 | break 2 | |
2795 | fi | |
2796 | done | |
2797 | done | |
2798 | IFS=$as_save_IFS | |
2799 | ||
2800 | fi | |
2801 | fi | |
2802 | CC=$ac_cv_prog_CC | |
2803 | if test -n "$CC"; then | |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2805 | $as_echo "$CC" >&6; } | |
2806 | else | |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2808 | $as_echo "no" >&6; } | |
2809 | fi | |
2810 | ||
2811 | ||
2812 | fi | |
2813 | fi | |
2814 | if test -z "$CC"; then | |
2815 | # Extract the first word of "cc", so it can be a program name with args. | |
2816 | set dummy cc; ac_word=$2 | |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2818 | $as_echo_n "checking for $ac_word... " >&6; } | |
2819 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2820 | $as_echo_n "(cached) " >&6 | |
2821 | else | |
2822 | if test -n "$CC"; then | |
2823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2824 | else | |
2825 | ac_prog_rejected=no | |
2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2827 | for as_dir in $PATH | |
2828 | do | |
2829 | IFS=$as_save_IFS | |
2830 | test -z "$as_dir" && as_dir=. | |
2831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2833 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2834 | ac_prog_rejected=yes | |
2835 | continue | |
2836 | fi | |
2837 | ac_cv_prog_CC="cc" | |
2838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2839 | break 2 | |
2840 | fi | |
2841 | done | |
2842 | done | |
2843 | IFS=$as_save_IFS | |
2844 | ||
2845 | if test $ac_prog_rejected = yes; then | |
2846 | # We found a bogon in the path, so make sure we never use it. | |
2847 | set dummy $ac_cv_prog_CC | |
2848 | shift | |
2849 | if test $# != 0; then | |
2850 | # We chose a different compiler from the bogus one. | |
2851 | # However, it has the same basename, so the bogon will be chosen | |
2852 | # first if we set CC to just the basename; use the full file name. | |
2853 | shift | |
2854 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2855 | fi | |
2856 | fi | |
2857 | fi | |
2858 | fi | |
2859 | CC=$ac_cv_prog_CC | |
2860 | if test -n "$CC"; then | |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2862 | $as_echo "$CC" >&6; } | |
2863 | else | |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2865 | $as_echo "no" >&6; } | |
2866 | fi | |
2867 | ||
2868 | ||
2869 | fi | |
2870 | if test -z "$CC"; then | |
2871 | if test -n "$ac_tool_prefix"; then | |
2872 | for ac_prog in cl.exe | |
2873 | do | |
2874 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2875 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2877 | $as_echo_n "checking for $ac_word... " >&6; } | |
2878 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2879 | $as_echo_n "(cached) " >&6 | |
2880 | else | |
2881 | if test -n "$CC"; then | |
2882 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2883 | else | |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2885 | for as_dir in $PATH | |
2886 | do | |
2887 | IFS=$as_save_IFS | |
2888 | test -z "$as_dir" && as_dir=. | |
2889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2891 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2893 | break 2 | |
2894 | fi | |
2895 | done | |
2896 | done | |
2897 | IFS=$as_save_IFS | |
2898 | ||
2899 | fi | |
2900 | fi | |
2901 | CC=$ac_cv_prog_CC | |
2902 | if test -n "$CC"; then | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2904 | $as_echo "$CC" >&6; } | |
2905 | else | |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2907 | $as_echo "no" >&6; } | |
2908 | fi | |
2909 | ||
2910 | ||
2911 | test -n "$CC" && break | |
2912 | done | |
2913 | fi | |
2914 | if test -z "$CC"; then | |
2915 | ac_ct_CC=$CC | |
2916 | for ac_prog in cl.exe | |
2917 | do | |
2918 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2919 | set dummy $ac_prog; ac_word=$2 | |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2921 | $as_echo_n "checking for $ac_word... " >&6; } | |
2922 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2923 | $as_echo_n "(cached) " >&6 | |
2924 | else | |
2925 | if test -n "$ac_ct_CC"; then | |
2926 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2927 | else | |
2928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2929 | for as_dir in $PATH | |
2930 | do | |
2931 | IFS=$as_save_IFS | |
2932 | test -z "$as_dir" && as_dir=. | |
2933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2935 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2937 | break 2 | |
2938 | fi | |
2939 | done | |
2940 | done | |
2941 | IFS=$as_save_IFS | |
2942 | ||
2943 | fi | |
2944 | fi | |
2945 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2946 | if test -n "$ac_ct_CC"; then | |
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2948 | $as_echo "$ac_ct_CC" >&6; } | |
2949 | else | |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2951 | $as_echo "no" >&6; } | |
2952 | fi | |
2953 | ||
2954 | ||
2955 | test -n "$ac_ct_CC" && break | |
2956 | done | |
2957 | ||
2958 | if test "x$ac_ct_CC" = x; then | |
2959 | CC="" | |
2960 | else | |
2961 | case $cross_compiling:$ac_tool_warned in | |
2962 | yes:) | |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2964 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2965 | ac_tool_warned=yes ;; | |
2966 | esac | |
2967 | CC=$ac_ct_CC | |
2968 | fi | |
2969 | fi | |
2970 | ||
2971 | fi | |
2972 | ||
2973 | ||
2974 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2976 | as_fn_error "no acceptable C compiler found in \$PATH | |
2977 | See \`config.log' for more details." "$LINENO" 5; } | |
2978 | ||
2979 | # Provide some information about the compiler. | |
2980 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2981 | set X $ac_compile | |
2982 | ac_compiler=$2 | |
2983 | for ac_option in --version -v -V -qversion; do | |
2984 | { { ac_try="$ac_compiler $ac_option >&5" | |
2985 | case "(($ac_try" in | |
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2987 | *) ac_try_echo=$ac_try;; | |
2988 | esac | |
2989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2990 | $as_echo "$ac_try_echo"; } >&5 | |
2991 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2992 | ac_status=$? | |
2993 | if test -s conftest.err; then | |
2994 | sed '10a\ | |
2995 | ... rest of stderr output deleted ... | |
2996 | 10q' conftest.err >conftest.er1 | |
2997 | cat conftest.er1 >&5 | |
35fa52c0 | 2998 | fi |
9c60689e | 2999 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3001 | test $ac_status = 0; } | |
3002 | done | |
3003 | ||
3004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3005 | /* end confdefs.h. */ | |
9c60689e | 3006 | |
35fa52c0 DWT |
3007 | int |
3008 | main () | |
3009 | { | |
35fa52c0 DWT |
3010 | |
3011 | ; | |
3012 | return 0; | |
3013 | } | |
3014 | _ACEOF | |
3015 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3016 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3017 | # Try to create an executable without -o first, disregard a.out. |
3018 | # It will help us diagnose broken compilers, and finding out an intuition | |
3019 | # of exeext. | |
9c60689e DWT |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3021 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3022 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3023 | ||
3024 | # The possible output files: | |
3025 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3026 | ||
3027 | ac_rmfiles= | |
3028 | for ac_file in $ac_files | |
3029 | do | |
3030 | case $ac_file in | |
3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3032 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3033 | esac | |
3034 | done | |
3035 | rm -f $ac_rmfiles | |
3036 | ||
3037 | if { { ac_try="$ac_link_default" | |
3038 | case "(($ac_try" in | |
3039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3040 | *) ac_try_echo=$ac_try;; | |
3041 | esac | |
3042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3043 | $as_echo "$ac_try_echo"; } >&5 | |
3044 | (eval "$ac_link_default") 2>&5 | |
3045 | ac_status=$? | |
3046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3047 | test $ac_status = 0; }; then : | |
3048 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3049 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3050 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3051 | # so that the user can short-circuit this test for compilers unknown to | |
3052 | # Autoconf. | |
3053 | for ac_file in $ac_files '' | |
3054 | do | |
3055 | test -f "$ac_file" || continue | |
3056 | case $ac_file in | |
3057 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3058 | ;; | |
3059 | [ab].out ) | |
3060 | # We found the default executable, but exeext='' is most | |
3061 | # certainly right. | |
3062 | break;; | |
3063 | *.* ) | |
3064 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3065 | then :; else | |
3066 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3067 | fi | |
3068 | # We set ac_cv_exeext here because the later test for it is not | |
3069 | # safe: cross compilers may not add the suffix if given an `-o' | |
3070 | # argument, so we may need to know it at that point already. | |
3071 | # Even if this section looks crufty: it has the advantage of | |
3072 | # actually working. | |
3073 | break;; | |
3074 | * ) | |
3075 | break;; | |
3076 | esac | |
3077 | done | |
3078 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3079 | ||
3080 | else | |
3081 | ac_file='' | |
3082 | fi | |
35fa52c0 | 3083 | if test -z "$ac_file"; then : |
9c60689e DWT |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3085 | $as_echo "no" >&6; } | |
3086 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3087 | sed 's/^/| /' conftest.$ac_ext >&5 |
3088 | ||
3089 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3090 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3091 | { as_fn_set_status 77 | |
3092 | as_fn_error "C compiler cannot create executables | |
3093 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3094 | else |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3096 | $as_echo "yes" >&6; } | |
35fa52c0 | 3097 | fi |
9c60689e DWT |
3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3099 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3101 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3102 | ac_exeext=$ac_cv_exeext |
3103 | ||
9c60689e | 3104 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3105 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3107 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3108 | if { { ac_try="$ac_link" | |
3109 | case "(($ac_try" in | |
3110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3111 | *) ac_try_echo=$ac_try;; | |
3112 | esac | |
3113 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3114 | $as_echo "$ac_try_echo"; } >&5 | |
3115 | (eval "$ac_link") 2>&5 | |
3116 | ac_status=$? | |
3117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3118 | test $ac_status = 0; }; then : | |
3119 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3120 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3121 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3122 | # `rm'. | |
3123 | for ac_file in conftest.exe conftest conftest.*; do | |
3124 | test -f "$ac_file" || continue | |
3125 | case $ac_file in | |
3126 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3127 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3128 | break;; | |
3129 | * ) break;; | |
3130 | esac | |
3131 | done | |
3132 | else | |
3133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3135 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3136 | See \`config.log' for more details." "$LINENO" 5; } | |
3137 | fi | |
9c60689e | 3138 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3140 | $as_echo "$ac_cv_exeext" >&6; } | |
3141 | ||
3142 | rm -f conftest.$ac_ext | |
3143 | EXEEXT=$ac_cv_exeext | |
3144 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3146 | /* end confdefs.h. */ | |
3147 | #include <stdio.h> | |
3148 | int | |
3149 | main () | |
3150 | { | |
3151 | FILE *f = fopen ("conftest.out", "w"); | |
3152 | return ferror (f) || fclose (f) != 0; | |
3153 | ||
3154 | ; | |
3155 | return 0; | |
3156 | } | |
3157 | _ACEOF | |
3158 | ac_clean_files="$ac_clean_files conftest.out" | |
3159 | # Check that the compiler produces executables we can run. If not, either | |
3160 | # the compiler is broken, or we cross compile. | |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3162 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3163 | if test "$cross_compiling" != yes; then | |
3164 | { { ac_try="$ac_link" | |
3165 | case "(($ac_try" in | |
3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3167 | *) ac_try_echo=$ac_try;; | |
3168 | esac | |
3169 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3170 | $as_echo "$ac_try_echo"; } >&5 | |
3171 | (eval "$ac_link") 2>&5 | |
3172 | ac_status=$? | |
3173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3174 | test $ac_status = 0; } | |
3175 | if { ac_try='./conftest$ac_cv_exeext' | |
3176 | { { case "(($ac_try" in | |
3177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3178 | *) ac_try_echo=$ac_try;; | |
3179 | esac | |
3180 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3181 | $as_echo "$ac_try_echo"; } >&5 | |
3182 | (eval "$ac_try") 2>&5 | |
3183 | ac_status=$? | |
3184 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3185 | test $ac_status = 0; }; }; then | |
3186 | cross_compiling=no | |
3187 | else | |
3188 | if test "$cross_compiling" = maybe; then | |
3189 | cross_compiling=yes | |
3190 | else | |
3191 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3192 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3193 | as_fn_error "cannot run C compiled programs. | |
3194 | If you meant to cross compile, use \`--host'. | |
3195 | See \`config.log' for more details." "$LINENO" 5; } | |
3196 | fi | |
3197 | fi | |
3198 | fi | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3200 | $as_echo "$cross_compiling" >&6; } | |
3201 | ||
3202 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3203 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3205 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3206 | if test "${ac_cv_objext+set}" = set; then : | |
3207 | $as_echo_n "(cached) " >&6 | |
3208 | else | |
3209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3210 | /* end confdefs.h. */ | |
3211 | ||
3212 | int | |
3213 | main () | |
3214 | { | |
3215 | ||
3216 | ; | |
3217 | return 0; | |
3218 | } | |
3219 | _ACEOF | |
3220 | rm -f conftest.o conftest.obj | |
3221 | if { { ac_try="$ac_compile" | |
3222 | case "(($ac_try" in | |
3223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3224 | *) ac_try_echo=$ac_try;; | |
3225 | esac | |
3226 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3227 | $as_echo "$ac_try_echo"; } >&5 | |
3228 | (eval "$ac_compile") 2>&5 | |
3229 | ac_status=$? | |
3230 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3231 | test $ac_status = 0; }; then : | |
3232 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3233 | test -f "$ac_file" || continue; | |
3234 | case $ac_file in | |
3235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3236 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3237 | break;; | |
3238 | esac | |
3239 | done | |
3240 | else | |
3241 | $as_echo "$as_me: failed program was:" >&5 | |
3242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3243 | ||
3244 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3245 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3246 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3247 | See \`config.log' for more details." "$LINENO" 5; } | |
3248 | fi | |
3249 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3250 | fi | |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3252 | $as_echo "$ac_cv_objext" >&6; } | |
3253 | OBJEXT=$ac_cv_objext | |
3254 | ac_objext=$OBJEXT | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3256 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3257 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3258 | $as_echo_n "(cached) " >&6 | |
3259 | else | |
3260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3261 | /* end confdefs.h. */ | |
3262 | ||
3263 | int | |
3264 | main () | |
3265 | { | |
3266 | #ifndef __GNUC__ | |
3267 | choke me | |
3268 | #endif | |
3269 | ||
3270 | ; | |
3271 | return 0; | |
3272 | } | |
3273 | _ACEOF | |
3274 | if ac_fn_c_try_compile "$LINENO"; then : | |
3275 | ac_compiler_gnu=yes | |
3276 | else | |
3277 | ac_compiler_gnu=no | |
3278 | fi | |
3279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3280 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3281 | ||
3282 | fi | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3284 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3285 | if test $ac_compiler_gnu = yes; then | |
3286 | GCC=yes | |
3287 | else | |
3288 | GCC= | |
3289 | fi | |
3290 | ac_test_CFLAGS=${CFLAGS+set} | |
3291 | ac_save_CFLAGS=$CFLAGS | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3293 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3294 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3295 | $as_echo_n "(cached) " >&6 | |
3296 | else | |
3297 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3298 | ac_c_werror_flag=yes | |
3299 | ac_cv_prog_cc_g=no | |
3300 | CFLAGS="-g" | |
3301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3302 | /* end confdefs.h. */ | |
3303 | ||
3304 | int | |
3305 | main () | |
3306 | { | |
3307 | ||
3308 | ; | |
3309 | return 0; | |
3310 | } | |
3311 | _ACEOF | |
3312 | if ac_fn_c_try_compile "$LINENO"; then : | |
3313 | ac_cv_prog_cc_g=yes | |
3314 | else | |
3315 | CFLAGS="" | |
3316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3317 | /* end confdefs.h. */ | |
3318 | ||
3319 | int | |
3320 | main () | |
3321 | { | |
3322 | ||
3323 | ; | |
3324 | return 0; | |
3325 | } | |
3326 | _ACEOF | |
3327 | if ac_fn_c_try_compile "$LINENO"; then : | |
3328 | ||
3329 | else | |
3330 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3331 | CFLAGS="-g" | |
3332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3333 | /* end confdefs.h. */ | |
3334 | ||
3335 | int | |
3336 | main () | |
3337 | { | |
3338 | ||
3339 | ; | |
3340 | return 0; | |
3341 | } | |
3342 | _ACEOF | |
3343 | if ac_fn_c_try_compile "$LINENO"; then : | |
3344 | ac_cv_prog_cc_g=yes | |
3345 | fi | |
3346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3347 | fi | |
3348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3349 | fi | |
3350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3351 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3352 | fi | |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3354 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3355 | if test "$ac_test_CFLAGS" = set; then | |
3356 | CFLAGS=$ac_save_CFLAGS | |
3357 | elif test $ac_cv_prog_cc_g = yes; then | |
3358 | if test "$GCC" = yes; then | |
3359 | CFLAGS="-g -O2" | |
3360 | else | |
3361 | CFLAGS="-g" | |
3362 | fi | |
3363 | else | |
3364 | if test "$GCC" = yes; then | |
3365 | CFLAGS="-O2" | |
3366 | else | |
3367 | CFLAGS= | |
3368 | fi | |
3369 | fi | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3371 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3372 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3373 | $as_echo_n "(cached) " >&6 | |
3374 | else | |
3375 | ac_cv_prog_cc_c89=no | |
3376 | ac_save_CC=$CC | |
3377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3378 | /* end confdefs.h. */ | |
3379 | #include <stdarg.h> | |
3380 | #include <stdio.h> | |
3381 | #include <sys/types.h> | |
3382 | #include <sys/stat.h> | |
3383 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3384 | struct buf { int x; }; | |
3385 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3386 | static char *e (p, i) | |
3387 | char **p; | |
3388 | int i; | |
3389 | { | |
3390 | return p[i]; | |
3391 | } | |
3392 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3393 | { | |
3394 | char *s; | |
3395 | va_list v; | |
3396 | va_start (v,p); | |
3397 | s = g (p, va_arg (v,int)); | |
3398 | va_end (v); | |
3399 | return s; | |
3400 | } | |
3401 | ||
3402 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3403 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3404 | These don't provoke an error unfortunately, instead are silently treated | |
3405 | as 'x'. The following induces an error, until -std is added to get | |
3406 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3407 | array size at least. It's necessary to write '\x00'==0 to get something | |
3408 | that's true only with -std. */ | |
3409 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3410 | ||
3411 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3412 | inside strings and character constants. */ | |
3413 | #define FOO(x) 'x' | |
3414 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3415 | ||
3416 | int test (int i, double x); | |
3417 | struct s1 {int (*f) (int a);}; | |
3418 | struct s2 {int (*f) (double a);}; | |
3419 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3420 | int argc; | |
3421 | char **argv; | |
3422 | int | |
3423 | main () | |
3424 | { | |
3425 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3426 | ; | |
3427 | return 0; | |
3428 | } | |
3429 | _ACEOF | |
3430 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3431 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3432 | do | |
3433 | CC="$ac_save_CC $ac_arg" | |
3434 | if ac_fn_c_try_compile "$LINENO"; then : | |
3435 | ac_cv_prog_cc_c89=$ac_arg | |
3436 | fi | |
3437 | rm -f core conftest.err conftest.$ac_objext | |
3438 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3439 | done | |
3440 | rm -f conftest.$ac_ext | |
3441 | CC=$ac_save_CC | |
3442 | ||
3443 | fi | |
3444 | # AC_CACHE_VAL | |
3445 | case "x$ac_cv_prog_cc_c89" in | |
3446 | x) | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3448 | $as_echo "none needed" >&6; } ;; | |
3449 | xno) | |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3451 | $as_echo "unsupported" >&6; } ;; | |
3452 | *) | |
3453 | CC="$CC $ac_cv_prog_cc_c89" | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3455 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3456 | esac | |
3457 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3458 | ||
3459 | fi | |
3460 | ||
3461 | ac_ext=c | |
3462 | ac_cpp='$CPP $CPPFLAGS' | |
3463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3466 | ||
9c60689e DWT |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3468 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3469 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3470 | $as_echo_n "(cached) " >&6 |
3471 | else | |
9c60689e DWT |
3472 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3473 | for ac_i in 1 2 3 4 5 6 7; do | |
3474 | ac_script="$ac_script$as_nl$ac_script" | |
3475 | done | |
3476 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3477 | { ac_script=; unset ac_script;} | |
3478 | if test -z "$SED"; then | |
3479 | ac_path_SED_found=false | |
3480 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3482 | for as_dir in $PATH |
3483 | do | |
3484 | IFS=$as_save_IFS | |
3485 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3486 | for ac_prog in sed gsed; do |
35fa52c0 | 3487 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3488 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3489 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3490 | # Check for GNU ac_path_SED and select it if it is found. | |
3491 | # Check for GNU $ac_path_SED | |
3492 | case `"$ac_path_SED" --version 2>&1` in | |
3493 | *GNU*) | |
3494 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3495 | *) | |
3496 | ac_count=0 | |
3497 | $as_echo_n 0123456789 >"conftest.in" | |
3498 | while : | |
3499 | do | |
3500 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3501 | mv "conftest.tmp" "conftest.in" | |
3502 | cp "conftest.in" "conftest.nl" | |
3503 | $as_echo '' >> "conftest.nl" | |
3504 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3505 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3506 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3507 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3508 | # Best one so far, save it but keep looking for a better one | |
3509 | ac_cv_path_SED="$ac_path_SED" | |
3510 | ac_path_SED_max=$ac_count | |
3511 | fi | |
3512 | # 10*(2^10) chars as input seems more than enough | |
3513 | test $ac_count -gt 10 && break | |
35fa52c0 | 3514 | done |
9c60689e DWT |
3515 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3516 | esac | |
35fa52c0 | 3517 | |
9c60689e DWT |
3518 | $ac_path_SED_found && break 3 |
3519 | done | |
3520 | done | |
3521 | done | |
3522 | IFS=$as_save_IFS | |
3523 | if test -z "$ac_cv_path_SED"; then | |
3524 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3525 | fi | |
35fa52c0 | 3526 | else |
9c60689e | 3527 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3528 | fi |
3529 | ||
9c60689e DWT |
3530 | fi |
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3532 | $as_echo "$ac_cv_path_SED" >&6; } | |
3533 | SED="$ac_cv_path_SED" | |
3534 | rm -f conftest.sed | |
35fa52c0 | 3535 | |
9c60689e DWT |
3536 | test -z "$SED" && SED=sed |
3537 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3538 | |
35fa52c0 | 3539 | |
35fa52c0 | 3540 | |
35fa52c0 | 3541 | |
35fa52c0 | 3542 | |
35fa52c0 DWT |
3543 | |
3544 | ||
35fa52c0 | 3545 | |
35fa52c0 | 3546 | |
35fa52c0 | 3547 | |
35fa52c0 | 3548 | |
9c60689e DWT |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3550 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3551 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3552 | $as_echo_n "(cached) " >&6 | |
3553 | else | |
3554 | if test -z "$GREP"; then | |
3555 | ac_path_GREP_found=false | |
3556 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3558 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3559 | do | |
3560 | IFS=$as_save_IFS | |
3561 | test -z "$as_dir" && as_dir=. | |
3562 | for ac_prog in grep ggrep; do | |
3563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3564 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3565 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3566 | # Check for GNU ac_path_GREP and select it if it is found. | |
3567 | # Check for GNU $ac_path_GREP | |
3568 | case `"$ac_path_GREP" --version 2>&1` in | |
3569 | *GNU*) | |
3570 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3571 | *) | |
3572 | ac_count=0 | |
3573 | $as_echo_n 0123456789 >"conftest.in" | |
3574 | while : | |
3575 | do | |
3576 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3577 | mv "conftest.tmp" "conftest.in" | |
3578 | cp "conftest.in" "conftest.nl" | |
3579 | $as_echo 'GREP' >> "conftest.nl" | |
3580 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3581 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3582 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3583 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3584 | # Best one so far, save it but keep looking for a better one | |
3585 | ac_cv_path_GREP="$ac_path_GREP" | |
3586 | ac_path_GREP_max=$ac_count | |
3587 | fi | |
3588 | # 10*(2^10) chars as input seems more than enough | |
3589 | test $ac_count -gt 10 && break | |
3590 | done | |
3591 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3592 | esac | |
6b66678a | 3593 | |
9c60689e DWT |
3594 | $ac_path_GREP_found && break 3 |
3595 | done | |
3596 | done | |
3597 | done | |
3598 | IFS=$as_save_IFS | |
3599 | if test -z "$ac_cv_path_GREP"; then | |
3600 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3601 | fi | |
3602 | else | |
3603 | ac_cv_path_GREP=$GREP | |
3604 | fi | |
6b66678a | 3605 | |
9c60689e DWT |
3606 | fi |
3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3608 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3609 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3610 | |
3611 | ||
9c60689e DWT |
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3613 | $as_echo_n "checking for egrep... " >&6; } | |
3614 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3615 | $as_echo_n "(cached) " >&6 |
3616 | else | |
9c60689e DWT |
3617 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3618 | then ac_cv_path_EGREP="$GREP -E" | |
3619 | else | |
3620 | if test -z "$EGREP"; then | |
3621 | ac_path_EGREP_found=false | |
3622 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3624 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3625 | do | |
3626 | IFS=$as_save_IFS | |
3627 | test -z "$as_dir" && as_dir=. | |
3628 | for ac_prog in egrep; do | |
3629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3630 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3631 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3632 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3633 | # Check for GNU $ac_path_EGREP | |
3634 | case `"$ac_path_EGREP" --version 2>&1` in | |
3635 | *GNU*) | |
3636 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3637 | *) | |
3638 | ac_count=0 | |
3639 | $as_echo_n 0123456789 >"conftest.in" | |
3640 | while : | |
3641 | do | |
3642 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3643 | mv "conftest.tmp" "conftest.in" | |
3644 | cp "conftest.in" "conftest.nl" | |
3645 | $as_echo 'EGREP' >> "conftest.nl" | |
3646 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3647 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3648 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3649 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3650 | # Best one so far, save it but keep looking for a better one | |
3651 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3652 | ac_path_EGREP_max=$ac_count | |
3653 | fi | |
3654 | # 10*(2^10) chars as input seems more than enough | |
3655 | test $ac_count -gt 10 && break | |
3656 | done | |
3657 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3658 | esac | |
3659 | ||
3660 | $ac_path_EGREP_found && break 3 | |
3661 | done | |
3662 | done | |
3663 | done | |
3664 | IFS=$as_save_IFS | |
3665 | if test -z "$ac_cv_path_EGREP"; then | |
3666 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3667 | fi | |
3668 | else | |
3669 | ac_cv_path_EGREP=$EGREP | |
3670 | fi | |
6b66678a | 3671 | |
9c60689e DWT |
3672 | fi |
3673 | fi | |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3675 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3676 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3677 | |
6b66678a | 3678 | |
9c60689e DWT |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3680 | $as_echo_n "checking for fgrep... " >&6; } | |
3681 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3682 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3683 | else |
9c60689e DWT |
3684 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3685 | then ac_cv_path_FGREP="$GREP -F" | |
3686 | else | |
3687 | if test -z "$FGREP"; then | |
3688 | ac_path_FGREP_found=false | |
3689 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3691 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3692 | do | |
3693 | IFS=$as_save_IFS | |
3694 | test -z "$as_dir" && as_dir=. | |
3695 | for ac_prog in fgrep; do | |
3696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3697 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3698 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3699 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3700 | # Check for GNU $ac_path_FGREP | |
3701 | case `"$ac_path_FGREP" --version 2>&1` in | |
3702 | *GNU*) | |
3703 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3704 | *) | |
3705 | ac_count=0 | |
3706 | $as_echo_n 0123456789 >"conftest.in" | |
3707 | while : | |
3708 | do | |
3709 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3710 | mv "conftest.tmp" "conftest.in" | |
3711 | cp "conftest.in" "conftest.nl" | |
3712 | $as_echo 'FGREP' >> "conftest.nl" | |
3713 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3714 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3715 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3716 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3717 | # Best one so far, save it but keep looking for a better one | |
3718 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3719 | ac_path_FGREP_max=$ac_count | |
3720 | fi | |
3721 | # 10*(2^10) chars as input seems more than enough | |
3722 | test $ac_count -gt 10 && break | |
3723 | done | |
3724 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3725 | esac | |
6b66678a | 3726 | |
9c60689e DWT |
3727 | $ac_path_FGREP_found && break 3 |
3728 | done | |
3729 | done | |
3730 | done | |
3731 | IFS=$as_save_IFS | |
3732 | if test -z "$ac_cv_path_FGREP"; then | |
3733 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3734 | fi | |
3735 | else | |
3736 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3737 | fi |
3738 | ||
9c60689e | 3739 | fi |
6b66678a | 3740 | fi |
9c60689e DWT |
3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3742 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3743 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3744 | |
35fa52c0 | 3745 | |
9c60689e | 3746 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3747 | |
309b0535 | 3748 | |
35fa52c0 | 3749 | |
6b66678a | 3750 | |
6b66678a DWT |
3751 | |
3752 | ||
6b66678a | 3753 | |
6b66678a | 3754 | |
35fa52c0 | 3755 | |
35fa52c0 | 3756 | |
309b0535 | 3757 | |
309b0535 | 3758 | |
309b0535 | 3759 | |
309b0535 | 3760 | |
309b0535 | 3761 | |
309b0535 | 3762 | |
309b0535 | 3763 | |
309b0535 | 3764 | |
309b0535 | 3765 | |
9c60689e DWT |
3766 | # Check whether --with-gnu-ld was given. |
3767 | if test "${with_gnu_ld+set}" = set; then : | |
3768 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3769 | else |
9c60689e DWT |
3770 | with_gnu_ld=no |
3771 | fi | |
309b0535 | 3772 | |
9c60689e DWT |
3773 | ac_prog=ld |
3774 | if test "$GCC" = yes; then | |
3775 | # Check if gcc -print-prog-name=ld gives a path. | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3777 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3778 | case $host in | |
3779 | *-*-mingw*) | |
3780 | # gcc leaves a trailing carriage return which upsets mingw | |
3781 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3782 | *) | |
3783 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3784 | esac | |
3785 | case $ac_prog in | |
3786 | # Accept absolute paths. | |
3787 | [\\/]* | ?:[\\/]*) | |
3788 | re_direlt='/[^/][^/]*/\.\./' | |
3789 | # Canonicalize the pathname of ld | |
3790 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3791 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3792 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3793 | done |
9c60689e DWT |
3794 | test -z "$LD" && LD="$ac_prog" |
3795 | ;; | |
3796 | "") | |
3797 | # If it fails, then pretend we aren't using GCC. | |
3798 | ac_prog=ld | |
3799 | ;; | |
3800 | *) | |
3801 | # If it is relative, then search for the first ld in PATH. | |
3802 | with_gnu_ld=unknown | |
3803 | ;; | |
3804 | esac | |
3805 | elif test "$with_gnu_ld" = yes; then | |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3807 | $as_echo_n "checking for GNU ld... " >&6; } | |
3808 | else | |
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3810 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3811 | fi | |
3812 | if test "${lt_cv_path_LD+set}" = set; then : | |
3813 | $as_echo_n "(cached) " >&6 | |
3814 | else | |
3815 | if test -z "$LD"; then | |
3816 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3817 | for ac_dir in $PATH; do | |
3818 | IFS="$lt_save_ifs" | |
3819 | test -z "$ac_dir" && ac_dir=. | |
3820 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3821 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3822 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3823 | # but apparently some variants of GNU ld only accept -v. | |
3824 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3825 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3826 | *GNU* | *'with BFD'*) | |
3827 | test "$with_gnu_ld" != no && break | |
3828 | ;; | |
3829 | *) | |
3830 | test "$with_gnu_ld" != yes && break | |
3831 | ;; | |
309b0535 | 3832 | esac |
309b0535 | 3833 | fi |
9c60689e DWT |
3834 | done |
3835 | IFS="$lt_save_ifs" | |
3836 | else | |
3837 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3838 | fi | |
3839 | fi | |
309b0535 | 3840 | |
9c60689e DWT |
3841 | LD="$lt_cv_path_LD" |
3842 | if test -n "$LD"; then | |
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3844 | $as_echo "$LD" >&6; } | |
3845 | else | |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3847 | $as_echo "no" >&6; } | |
3848 | fi | |
3849 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3851 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3852 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3853 | $as_echo_n "(cached) " >&6 | |
3854 | else | |
3855 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3856 | case `$LD -v 2>&1 </dev/null` in | |
3857 | *GNU* | *'with BFD'*) | |
3858 | lt_cv_prog_gnu_ld=yes | |
3859 | ;; | |
3860 | *) | |
3861 | lt_cv_prog_gnu_ld=no | |
3862 | ;; | |
3863 | esac | |
309b0535 | 3864 | fi |
9c60689e DWT |
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3866 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3867 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3868 | |
3869 | ||
309b0535 | 3870 | |
309b0535 DWT |
3871 | |
3872 | ||
309b0535 | 3873 | |
309b0535 | 3874 | |
9c60689e DWT |
3875 | |
3876 | ||
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3878 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3879 | if test "${lt_cv_path_NM+set}" = set; then : | |
3880 | $as_echo_n "(cached) " >&6 | |
3881 | else | |
3882 | if test -n "$NM"; then | |
3883 | # Let the user override the test. | |
3884 | lt_cv_path_NM="$NM" | |
3885 | else | |
3886 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3887 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3888 | lt_nm_to_check="$lt_nm_to_check nm" | |
3889 | fi | |
3890 | for lt_tmp_nm in $lt_nm_to_check; do | |
3891 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3892 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3893 | IFS="$lt_save_ifs" | |
3894 | test -z "$ac_dir" && ac_dir=. | |
3895 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3896 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3897 | # Check to see if the nm accepts a BSD-compat flag. | |
3898 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3899 | # nm: unknown option "B" ignored | |
3900 | # Tru64's nm complains that /dev/null is an invalid object file | |
3901 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3902 | */dev/null* | *'Invalid file or object type'*) | |
3903 | lt_cv_path_NM="$tmp_nm -B" | |
3904 | break | |
3905 | ;; | |
3906 | *) | |
3907 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3908 | */dev/null*) | |
3909 | lt_cv_path_NM="$tmp_nm -p" | |
3910 | break | |
3911 | ;; | |
3912 | *) | |
3913 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3914 | continue # so that we can try to find one that supports BSD flags | |
3915 | ;; | |
3916 | esac | |
3917 | ;; | |
3918 | esac | |
309b0535 DWT |
3919 | fi |
3920 | done | |
9c60689e | 3921 | IFS="$lt_save_ifs" |
309b0535 | 3922 | done |
9c60689e DWT |
3923 | : ${lt_cv_path_NM=no} |
3924 | fi | |
3925 | fi | |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3927 | $as_echo "$lt_cv_path_NM" >&6; } | |
3928 | if test "$lt_cv_path_NM" != "no"; then | |
3929 | NM="$lt_cv_path_NM" | |
3930 | else | |
3931 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3932 | if test -n "$ac_tool_prefix"; then | |
3933 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3934 | do |
3935 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3936 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3938 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3939 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3940 | $as_echo_n "(cached) " >&6 |
3941 | else | |
9c60689e DWT |
3942 | if test -n "$DUMPBIN"; then |
3943 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3944 | else |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3946 | for as_dir in $PATH | |
3947 | do | |
3948 | IFS=$as_save_IFS | |
3949 | test -z "$as_dir" && as_dir=. | |
3950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3952 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
3953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3954 | break 2 | |
3955 | fi | |
3956 | done | |
3957 | done | |
3958 | IFS=$as_save_IFS | |
3959 | ||
3960 | fi | |
3961 | fi | |
9c60689e DWT |
3962 | DUMPBIN=$ac_cv_prog_DUMPBIN |
3963 | if test -n "$DUMPBIN"; then | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
3965 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
3966 | else |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3968 | $as_echo "no" >&6; } | |
3969 | fi | |
3970 | ||
3971 | ||
9c60689e | 3972 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
3973 | done |
3974 | fi | |
9c60689e DWT |
3975 | if test -z "$DUMPBIN"; then |
3976 | ac_ct_DUMPBIN=$DUMPBIN | |
3977 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3978 | do |
3979 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3980 | set dummy $ac_prog; ac_word=$2 | |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3982 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3983 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3984 | $as_echo_n "(cached) " >&6 |
3985 | else | |
9c60689e DWT |
3986 | if test -n "$ac_ct_DUMPBIN"; then |
3987 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3988 | else |
3989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3990 | for as_dir in $PATH | |
3991 | do | |
3992 | IFS=$as_save_IFS | |
3993 | test -z "$as_dir" && as_dir=. | |
3994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3996 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
3997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3998 | break 2 | |
3999 | fi | |
4000 | done | |
4001 | done | |
4002 | IFS=$as_save_IFS | |
4003 | ||
4004 | fi | |
4005 | fi | |
9c60689e DWT |
4006 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4007 | if test -n "$ac_ct_DUMPBIN"; then | |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4009 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4010 | else |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4012 | $as_echo "no" >&6; } | |
4013 | fi | |
4014 | ||
4015 | ||
9c60689e | 4016 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4017 | done |
4018 | ||
9c60689e DWT |
4019 | if test "x$ac_ct_DUMPBIN" = x; then |
4020 | DUMPBIN=":" | |
35fa52c0 DWT |
4021 | else |
4022 | case $cross_compiling:$ac_tool_warned in | |
4023 | yes:) | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4026 | ac_tool_warned=yes ;; | |
4027 | esac | |
9c60689e | 4028 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4029 | fi |
4030 | fi | |
4031 | ||
9c60689e DWT |
4032 | |
4033 | if test "$DUMPBIN" != ":"; then | |
4034 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4035 | fi |
4036 | fi | |
9c60689e | 4037 | test -z "$NM" && NM=nm |
35fa52c0 | 4038 | |
35fa52c0 | 4039 | |
35fa52c0 | 4040 | |
35fa52c0 | 4041 | |
9c60689e DWT |
4042 | |
4043 | ||
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4045 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4046 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4047 | $as_echo_n "(cached) " >&6 | |
4048 | else | |
4049 | lt_cv_nm_interface="BSD nm" | |
4050 | echo "int some_variable = 0;" > conftest.$ac_ext | |
27557508 | 4051 | (eval echo "\"\$as_me:4051: $ac_compile\"" >&5) |
9c60689e DWT |
4052 | (eval "$ac_compile" 2>conftest.err) |
4053 | cat conftest.err >&5 | |
27557508 | 4054 | (eval echo "\"\$as_me:4054: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
9c60689e DWT |
4055 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4056 | cat conftest.err >&5 | |
27557508 | 4057 | (eval echo "\"\$as_me:4057: output\"" >&5) |
9c60689e DWT |
4058 | cat conftest.out >&5 |
4059 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4060 | lt_cv_nm_interface="MS dumpbin" | |
4061 | fi | |
4062 | rm -f conftest* | |
35fa52c0 | 4063 | fi |
9c60689e DWT |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4065 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4066 | ||
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4068 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4069 | LN_S=$as_ln_s | |
4070 | if test "$LN_S" = "ln -s"; then | |
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4072 | $as_echo "yes" >&6; } | |
35fa52c0 | 4073 | else |
9c60689e DWT |
4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4075 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4076 | fi |
9c60689e DWT |
4077 | |
4078 | # find the maximum length of command line arguments | |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4080 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4081 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4082 | $as_echo_n "(cached) " >&6 |
4083 | else | |
9c60689e DWT |
4084 | i=0 |
4085 | teststring="ABCD" | |
4086 | ||
4087 | case $build_os in | |
4088 | msdosdjgpp*) | |
4089 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4090 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4091 | # during glob expansion). Even if it were fixed, the result of this | |
4092 | # check would be larger than it should be. | |
4093 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4094 | ;; | |
35fa52c0 | 4095 | |
9c60689e DWT |
4096 | gnu*) |
4097 | # Under GNU Hurd, this test is not required because there is | |
4098 | # no limit to the length of command line arguments. | |
4099 | # Libtool will interpret -1 as no limit whatsoever | |
4100 | lt_cv_sys_max_cmd_len=-1; | |
4101 | ;; | |
35fa52c0 | 4102 | |
9c60689e DWT |
4103 | cygwin* | mingw* | cegcc*) |
4104 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4105 | # about 5 minutes as the teststring grows exponentially. | |
4106 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4107 | # you end up with a "frozen" computer, even though with patience | |
4108 | # the test eventually succeeds (with a max line length of 256k). | |
4109 | # Instead, let's just punt: use the minimum linelength reported by | |
4110 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4111 | lt_cv_sys_max_cmd_len=8192; | |
4112 | ;; | |
35fa52c0 | 4113 | |
9c60689e DWT |
4114 | amigaos*) |
4115 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4116 | # So we just punt and use a minimum line length of 8192. | |
4117 | lt_cv_sys_max_cmd_len=8192; | |
4118 | ;; | |
35fa52c0 | 4119 | |
9c60689e DWT |
4120 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4121 | # This has been around since 386BSD, at least. Likely further. | |
4122 | if test -x /sbin/sysctl; then | |
4123 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4124 | elif test -x /usr/sbin/sysctl; then | |
4125 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4126 | else | |
4127 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4128 | fi | |
4129 | # And add a safety zone | |
4130 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4131 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4132 | ;; | |
35fa52c0 | 4133 | |
9c60689e DWT |
4134 | interix*) |
4135 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4136 | lt_cv_sys_max_cmd_len=196608 | |
4137 | ;; | |
35fa52c0 | 4138 | |
9c60689e DWT |
4139 | osf*) |
4140 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4141 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4142 | # nice to cause kernel panics so lets avoid the loop below. | |
4143 | # First set a reasonable default. | |
4144 | lt_cv_sys_max_cmd_len=16384 | |
4145 | # | |
4146 | if test -x /sbin/sysconfig; then | |
4147 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4148 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4149 | esac | |
4150 | fi | |
4151 | ;; | |
4152 | sco3.2v5*) | |
4153 | lt_cv_sys_max_cmd_len=102400 | |
4154 | ;; | |
4155 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4156 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4157 | if test -n "$kargmax"; then | |
4158 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4159 | else | |
4160 | lt_cv_sys_max_cmd_len=32768 | |
4161 | fi | |
4162 | ;; | |
4163 | *) | |
4164 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4165 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4166 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4167 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4168 | else | |
4169 | # Make teststring a little bigger before we do anything with it. | |
4170 | # a 1K string should be a reasonable start. | |
4171 | for i in 1 2 3 4 5 6 7 8 ; do | |
4172 | teststring=$teststring$teststring | |
4173 | done | |
4174 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4175 | # If test is not a shell built-in, we'll probably end up computing a | |
4176 | # maximum length that is only half of the actual maximum length, but | |
4177 | # we can't tell. | |
4178 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4179 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4180 | test $i != 17 # 1/2 MB should be enough | |
4181 | do | |
4182 | i=`expr $i + 1` | |
4183 | teststring=$teststring$teststring | |
4184 | done | |
4185 | # Only check the string length outside the loop. | |
4186 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4187 | teststring= | |
4188 | # Add a significant safety factor because C++ compilers can tack on | |
4189 | # massive amounts of additional arguments before passing them to the | |
4190 | # linker. It appears as though 1/2 is a usable value. | |
4191 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4192 | fi | |
4193 | ;; | |
4194 | esac | |
35fa52c0 | 4195 | |
35fa52c0 | 4196 | fi |
9c60689e DWT |
4197 | |
4198 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4200 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4201 | else |
9c60689e DWT |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4203 | $as_echo "none" >&6; } | |
35fa52c0 | 4204 | fi |
9c60689e | 4205 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4206 | |
9c60689e DWT |
4207 | |
4208 | ||
4209 | ||
4210 | ||
4211 | ||
4212 | : ${CP="cp -f"} | |
4213 | : ${MV="mv -f"} | |
4214 | : ${RM="rm -f"} | |
4215 | ||
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4217 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4218 | # Try some XSI features | |
4219 | xsi_shell=no | |
4220 | ( _lt_dummy="a/b/c" | |
4221 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4222 | = c,a/b,, \ | |
4223 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4224 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4225 | && xsi_shell=yes | |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4227 | $as_echo "$xsi_shell" >&6; } | |
4228 | ||
4229 | ||
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4231 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4232 | lt_shell_append=no | |
4233 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4234 | >/dev/null 2>&1 \ | |
4235 | && lt_shell_append=yes | |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4237 | $as_echo "$lt_shell_append" >&6; } | |
4238 | ||
4239 | ||
4240 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4241 | lt_unset=unset | |
35fa52c0 | 4242 | else |
9c60689e DWT |
4243 | lt_unset=false |
4244 | fi | |
4245 | ||
4246 | ||
4247 | ||
4248 | ||
4249 | ||
4250 | # test EBCDIC or ASCII | |
4251 | case `echo X|tr X '\101'` in | |
4252 | A) # ASCII based system | |
4253 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4254 | lt_SP2NL='tr \040 \012' | |
4255 | lt_NL2SP='tr \015\012 \040\040' | |
4256 | ;; | |
4257 | *) # EBCDIC based system | |
4258 | lt_SP2NL='tr \100 \n' | |
4259 | lt_NL2SP='tr \r\n \100\100' | |
4260 | ;; | |
35fa52c0 DWT |
4261 | esac |
4262 | ||
35fa52c0 | 4263 | |
35fa52c0 | 4264 | |
35fa52c0 | 4265 | |
35fa52c0 | 4266 | |
35fa52c0 | 4267 | |
35fa52c0 | 4268 | |
35fa52c0 | 4269 | |
9c60689e DWT |
4270 | |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4272 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4273 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4274 | $as_echo_n "(cached) " >&6 |
4275 | else | |
9c60689e | 4276 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4277 | fi |
9c60689e DWT |
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4279 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4280 | reload_flag=$lt_cv_ld_reload_flag | |
4281 | case $reload_flag in | |
4282 | "" | " "*) ;; | |
4283 | *) reload_flag=" $reload_flag" ;; | |
4284 | esac | |
4285 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4286 | case $host_os in | |
4287 | darwin*) | |
4288 | if test "$GCC" = yes; then | |
4289 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4290 | else | |
4291 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4292 | fi | |
4293 | ;; | |
35fa52c0 | 4294 | esac |
35fa52c0 DWT |
4295 | |
4296 | ||
9c60689e DWT |
4297 | |
4298 | ||
4299 | ||
4300 | ||
4301 | ||
4302 | ||
4303 | ||
4304 | if test -n "$ac_tool_prefix"; then | |
4305 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4306 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4308 | $as_echo_n "checking for $ac_word... " >&6; } | |
4309 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4310 | $as_echo_n "(cached) " >&6 |
4311 | else | |
9c60689e DWT |
4312 | if test -n "$OBJDUMP"; then |
4313 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4314 | else |
9c60689e DWT |
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4316 | for as_dir in $PATH | |
4317 | do | |
4318 | IFS=$as_save_IFS | |
4319 | test -z "$as_dir" && as_dir=. | |
4320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4322 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4324 | break 2 | |
35fa52c0 | 4325 | fi |
9c60689e DWT |
4326 | done |
4327 | done | |
4328 | IFS=$as_save_IFS | |
35fa52c0 | 4329 | |
35fa52c0 | 4330 | fi |
35fa52c0 | 4331 | fi |
9c60689e DWT |
4332 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4333 | if test -n "$OBJDUMP"; then | |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4335 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4336 | else |
9c60689e DWT |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4338 | $as_echo "no" >&6; } | |
35fa52c0 | 4339 | fi |
9c60689e DWT |
4340 | |
4341 | ||
4342 | fi | |
4343 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4344 | ac_ct_OBJDUMP=$OBJDUMP | |
4345 | # Extract the first word of "objdump", so it can be a program name with args. | |
4346 | set dummy objdump; ac_word=$2 | |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4348 | $as_echo_n "checking for $ac_word... " >&6; } | |
4349 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4350 | $as_echo_n "(cached) " >&6 |
4351 | else | |
9c60689e DWT |
4352 | if test -n "$ac_ct_OBJDUMP"; then |
4353 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4354 | else |
9c60689e DWT |
4355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4356 | for as_dir in $PATH | |
4357 | do | |
4358 | IFS=$as_save_IFS | |
4359 | test -z "$as_dir" && as_dir=. | |
4360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4362 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4364 | break 2 | |
4365 | fi | |
4366 | done | |
4367 | done | |
4368 | IFS=$as_save_IFS | |
4369 | ||
35fa52c0 DWT |
4370 | fi |
4371 | fi | |
9c60689e DWT |
4372 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4373 | if test -n "$ac_ct_OBJDUMP"; then | |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4375 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4376 | else |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4378 | $as_echo "no" >&6; } | |
4379 | fi | |
9c60689e DWT |
4380 | |
4381 | if test "x$ac_ct_OBJDUMP" = x; then | |
4382 | OBJDUMP="false" | |
4383 | else | |
4384 | case $cross_compiling:$ac_tool_warned in | |
4385 | yes:) | |
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4387 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4388 | ac_tool_warned=yes ;; | |
35fa52c0 | 4389 | esac |
9c60689e DWT |
4390 | OBJDUMP=$ac_ct_OBJDUMP |
4391 | fi | |
4392 | else | |
4393 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4394 | fi |
35fa52c0 | 4395 | |
9c60689e | 4396 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4397 | |
4398 | ||
35fa52c0 | 4399 | |
35fa52c0 | 4400 | |
35fa52c0 DWT |
4401 | |
4402 | ||
4403 | ||
35fa52c0 DWT |
4404 | |
4405 | ||
9c60689e DWT |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4407 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4408 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4409 | $as_echo_n "(cached) " >&6 | |
4410 | else | |
4411 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4412 | lt_cv_file_magic_test_file= | |
4413 | lt_cv_deplibs_check_method='unknown' | |
4414 | # Need to set the preceding variable on all platforms that support | |
4415 | # interlibrary dependencies. | |
4416 | # 'none' -- dependencies not supported. | |
4417 | # `unknown' -- same as none, but documents that we really don't know. | |
4418 | # 'pass_all' -- all dependencies passed with no checks. | |
4419 | # 'test_compile' -- check by making test program. | |
4420 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4421 | # which responds to the $file_magic_cmd with a given extended regex. | |
4422 | # If you have `file' or equivalent on your system and you're not sure | |
4423 | # whether `pass_all' will *always* work, you probably want this one. | |
4424 | ||
4425 | case $host_os in | |
4426 | aix[4-9]*) | |
4427 | lt_cv_deplibs_check_method=pass_all | |
4428 | ;; | |
35fa52c0 | 4429 | |
9c60689e DWT |
4430 | beos*) |
4431 | lt_cv_deplibs_check_method=pass_all | |
4432 | ;; | |
35fa52c0 | 4433 | |
9c60689e DWT |
4434 | bsdi[45]*) |
4435 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4436 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4437 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4438 | ;; | |
35fa52c0 | 4439 | |
9c60689e DWT |
4440 | cygwin*) |
4441 | # func_win32_libid is a shell function defined in ltmain.sh | |
4442 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4443 | lt_cv_file_magic_cmd='func_win32_libid' | |
4444 | ;; | |
35fa52c0 | 4445 | |
9c60689e DWT |
4446 | mingw* | pw32*) |
4447 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4448 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4449 | # unless we find 'file', for example because we are cross-compiling. | |
4450 | if ( file / ) >/dev/null 2>&1; then | |
4451 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4452 | lt_cv_file_magic_cmd='func_win32_libid' | |
4453 | else | |
4454 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4455 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4456 | fi | |
4457 | ;; | |
35fa52c0 | 4458 | |
9c60689e DWT |
4459 | cegcc) |
4460 | # use the weaker test based on 'objdump'. See mingw*. | |
4461 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4462 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4463 | ;; | |
35fa52c0 | 4464 | |
9c60689e DWT |
4465 | darwin* | rhapsody*) |
4466 | lt_cv_deplibs_check_method=pass_all | |
4467 | ;; | |
35fa52c0 | 4468 | |
9c60689e DWT |
4469 | freebsd* | dragonfly*) |
4470 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4471 | case $host_cpu in | |
4472 | i*86 ) | |
4473 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4474 | # Let's accept both of them until this is cleared up. | |
4475 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4476 | lt_cv_file_magic_cmd=/usr/bin/file | |
4477 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4478 | ;; | |
4479 | esac | |
4480 | else | |
4481 | lt_cv_deplibs_check_method=pass_all | |
4482 | fi | |
4483 | ;; | |
35fa52c0 | 4484 | |
9c60689e DWT |
4485 | gnu*) |
4486 | lt_cv_deplibs_check_method=pass_all | |
4487 | ;; | |
35fa52c0 | 4488 | |
9c60689e DWT |
4489 | hpux10.20* | hpux11*) |
4490 | lt_cv_file_magic_cmd=/usr/bin/file | |
4491 | case $host_cpu in | |
4492 | ia64*) | |
4493 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4494 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4495 | ;; | |
4496 | hppa*64*) | |
4497 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4498 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4499 | ;; | |
4500 | *) | |
4501 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4502 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4503 | ;; | |
4504 | esac | |
4505 | ;; | |
35fa52c0 | 4506 | |
9c60689e DWT |
4507 | interix[3-9]*) |
4508 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4509 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4510 | ;; | |
35fa52c0 | 4511 | |
9c60689e DWT |
4512 | irix5* | irix6* | nonstopux*) |
4513 | case $LD in | |
4514 | *-32|*"-32 ") libmagic=32-bit;; | |
4515 | *-n32|*"-n32 ") libmagic=N32;; | |
4516 | *-64|*"-64 ") libmagic=64-bit;; | |
4517 | *) libmagic=never-match;; | |
4518 | esac | |
4519 | lt_cv_deplibs_check_method=pass_all | |
4520 | ;; | |
35fa52c0 | 4521 | |
9c60689e DWT |
4522 | # This must be Linux ELF. |
4523 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4524 | lt_cv_deplibs_check_method=pass_all | |
4525 | ;; | |
35fa52c0 | 4526 | |
9c60689e DWT |
4527 | netbsd* | netbsdelf*-gnu) |
4528 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4529 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4530 | else | |
4531 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4532 | fi | |
4533 | ;; | |
35fa52c0 | 4534 | |
9c60689e DWT |
4535 | newos6*) |
4536 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4537 | lt_cv_file_magic_cmd=/usr/bin/file | |
4538 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4539 | ;; | |
35fa52c0 | 4540 | |
9c60689e DWT |
4541 | *nto* | *qnx*) |
4542 | lt_cv_deplibs_check_method=pass_all | |
4543 | ;; | |
35fa52c0 | 4544 | |
9c60689e DWT |
4545 | openbsd*) |
4546 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4547 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4548 | else | |
4549 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4550 | fi | |
4551 | ;; | |
4552 | ||
4553 | osf3* | osf4* | osf5*) | |
4554 | lt_cv_deplibs_check_method=pass_all | |
4555 | ;; | |
4556 | ||
4557 | rdos*) | |
4558 | lt_cv_deplibs_check_method=pass_all | |
4559 | ;; | |
4560 | ||
4561 | solaris*) | |
4562 | lt_cv_deplibs_check_method=pass_all | |
4563 | ;; | |
4564 | ||
4565 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4566 | lt_cv_deplibs_check_method=pass_all | |
4567 | ;; | |
4568 | ||
4569 | sysv4 | sysv4.3*) | |
4570 | case $host_vendor in | |
4571 | motorola) | |
4572 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
4573 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4574 | ;; | |
4575 | ncr) | |
4576 | lt_cv_deplibs_check_method=pass_all | |
4577 | ;; | |
4578 | sequent) | |
4579 | lt_cv_file_magic_cmd='/bin/file' | |
4580 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4581 | ;; | |
4582 | sni) | |
4583 | lt_cv_file_magic_cmd='/bin/file' | |
4584 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4585 | lt_cv_file_magic_test_file=/lib/libc.so | |
4586 | ;; | |
4587 | siemens) | |
4588 | lt_cv_deplibs_check_method=pass_all | |
4589 | ;; | |
4590 | pc) | |
4591 | lt_cv_deplibs_check_method=pass_all | |
4592 | ;; | |
4593 | esac | |
4594 | ;; | |
4595 | ||
4596 | tpf*) | |
4597 | lt_cv_deplibs_check_method=pass_all | |
4598 | ;; | |
4599 | esac | |
35fa52c0 DWT |
4600 | |
4601 | fi | |
9c60689e DWT |
4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4603 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4604 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4605 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4606 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4607 | |
35fa52c0 | 4608 | |
35fa52c0 | 4609 | |
35fa52c0 | 4610 | |
35fa52c0 | 4611 | |
35fa52c0 | 4612 | |
35fa52c0 | 4613 | |
35fa52c0 | 4614 | |
35fa52c0 | 4615 | |
35fa52c0 | 4616 | |
35fa52c0 | 4617 | |
9c60689e DWT |
4618 | |
4619 | if test -n "$ac_tool_prefix"; then | |
4620 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4621 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4623 | $as_echo_n "checking for $ac_word... " >&6; } | |
4624 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4625 | $as_echo_n "(cached) " >&6 | |
4626 | else | |
4627 | if test -n "$AR"; then | |
4628 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4629 | else | |
4630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4631 | for as_dir in $PATH | |
4632 | do | |
4633 | IFS=$as_save_IFS | |
4634 | test -z "$as_dir" && as_dir=. | |
4635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4637 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4639 | break 2 | |
4640 | fi | |
4641 | done | |
35fa52c0 | 4642 | done |
9c60689e DWT |
4643 | IFS=$as_save_IFS |
4644 | ||
4645 | fi | |
4646 | fi | |
4647 | AR=$ac_cv_prog_AR | |
4648 | if test -n "$AR"; then | |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4650 | $as_echo "$AR" >&6; } | |
4651 | else | |
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4653 | $as_echo "no" >&6; } | |
4654 | fi | |
4655 | ||
4656 | ||
4657 | fi | |
4658 | if test -z "$ac_cv_prog_AR"; then | |
4659 | ac_ct_AR=$AR | |
4660 | # Extract the first word of "ar", so it can be a program name with args. | |
4661 | set dummy ar; ac_word=$2 | |
4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4663 | $as_echo_n "checking for $ac_word... " >&6; } | |
4664 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4665 | $as_echo_n "(cached) " >&6 | |
4666 | else | |
4667 | if test -n "$ac_ct_AR"; then | |
4668 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4669 | else | |
4670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4671 | for as_dir in $PATH | |
4672 | do | |
4673 | IFS=$as_save_IFS | |
4674 | test -z "$as_dir" && as_dir=. | |
4675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4677 | ac_cv_prog_ac_ct_AR="ar" | |
4678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4679 | break 2 | |
35fa52c0 | 4680 | fi |
9c60689e DWT |
4681 | done |
4682 | done | |
4683 | IFS=$as_save_IFS | |
4684 | ||
4685 | fi | |
4686 | fi | |
4687 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4688 | if test -n "$ac_ct_AR"; then | |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4690 | $as_echo "$ac_ct_AR" >&6; } | |
4691 | else | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4693 | $as_echo "no" >&6; } | |
4694 | fi | |
4695 | ||
4696 | if test "x$ac_ct_AR" = x; then | |
4697 | AR="false" | |
4698 | else | |
4699 | case $cross_compiling:$ac_tool_warned in | |
4700 | yes:) | |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4702 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4703 | ac_tool_warned=yes ;; | |
4704 | esac | |
4705 | AR=$ac_ct_AR | |
4706 | fi | |
4707 | else | |
4708 | AR="$ac_cv_prog_AR" | |
4709 | fi | |
4710 | ||
4711 | test -z "$AR" && AR=ar | |
4712 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4713 | ||
4714 | ||
4715 | ||
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | ||
4724 | if test -n "$ac_tool_prefix"; then | |
4725 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4726 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4728 | $as_echo_n "checking for $ac_word... " >&6; } | |
4729 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4730 | $as_echo_n "(cached) " >&6 | |
4731 | else | |
4732 | if test -n "$STRIP"; then | |
4733 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4734 | else | |
4735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4736 | for as_dir in $PATH | |
4737 | do | |
4738 | IFS=$as_save_IFS | |
4739 | test -z "$as_dir" && as_dir=. | |
4740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4742 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4744 | break 2 | |
35fa52c0 | 4745 | fi |
9c60689e DWT |
4746 | done |
4747 | done | |
4748 | IFS=$as_save_IFS | |
4749 | ||
4750 | fi | |
4751 | fi | |
4752 | STRIP=$ac_cv_prog_STRIP | |
4753 | if test -n "$STRIP"; then | |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4755 | $as_echo "$STRIP" >&6; } | |
4756 | else | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4758 | $as_echo "no" >&6; } | |
4759 | fi | |
4760 | ||
4761 | ||
4762 | fi | |
4763 | if test -z "$ac_cv_prog_STRIP"; then | |
4764 | ac_ct_STRIP=$STRIP | |
4765 | # Extract the first word of "strip", so it can be a program name with args. | |
4766 | set dummy strip; ac_word=$2 | |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4768 | $as_echo_n "checking for $ac_word... " >&6; } | |
4769 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4770 | $as_echo_n "(cached) " >&6 | |
4771 | else | |
4772 | if test -n "$ac_ct_STRIP"; then | |
4773 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4774 | else | |
4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4776 | for as_dir in $PATH | |
4777 | do | |
4778 | IFS=$as_save_IFS | |
4779 | test -z "$as_dir" && as_dir=. | |
4780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4782 | ac_cv_prog_ac_ct_STRIP="strip" | |
4783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4784 | break 2 | |
4785 | fi | |
4786 | done | |
4787 | done | |
4788 | IFS=$as_save_IFS | |
4789 | ||
4790 | fi | |
4791 | fi | |
4792 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4793 | if test -n "$ac_ct_STRIP"; then | |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4795 | $as_echo "$ac_ct_STRIP" >&6; } | |
4796 | else | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4798 | $as_echo "no" >&6; } | |
4799 | fi | |
4800 | ||
4801 | if test "x$ac_ct_STRIP" = x; then | |
4802 | STRIP=":" | |
4803 | else | |
4804 | case $cross_compiling:$ac_tool_warned in | |
4805 | yes:) | |
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4807 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4808 | ac_tool_warned=yes ;; | |
4809 | esac | |
4810 | STRIP=$ac_ct_STRIP | |
4811 | fi | |
4812 | else | |
4813 | STRIP="$ac_cv_prog_STRIP" | |
4814 | fi | |
4815 | ||
4816 | test -z "$STRIP" && STRIP=: | |
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | ||
4823 | if test -n "$ac_tool_prefix"; then | |
4824 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4825 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4827 | $as_echo_n "checking for $ac_word... " >&6; } | |
4828 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4829 | $as_echo_n "(cached) " >&6 | |
4830 | else | |
4831 | if test -n "$RANLIB"; then | |
4832 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4833 | else | |
4834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4835 | for as_dir in $PATH | |
4836 | do | |
4837 | IFS=$as_save_IFS | |
4838 | test -z "$as_dir" && as_dir=. | |
4839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4841 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4843 | break 2 | |
4844 | fi | |
4845 | done | |
4846 | done | |
4847 | IFS=$as_save_IFS | |
4848 | ||
4849 | fi | |
4850 | fi | |
4851 | RANLIB=$ac_cv_prog_RANLIB | |
4852 | if test -n "$RANLIB"; then | |
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4854 | $as_echo "$RANLIB" >&6; } | |
4855 | else | |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4857 | $as_echo "no" >&6; } | |
4858 | fi | |
4859 | ||
4860 | ||
4861 | fi | |
4862 | if test -z "$ac_cv_prog_RANLIB"; then | |
4863 | ac_ct_RANLIB=$RANLIB | |
4864 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4865 | set dummy ranlib; ac_word=$2 | |
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4867 | $as_echo_n "checking for $ac_word... " >&6; } | |
4868 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4869 | $as_echo_n "(cached) " >&6 | |
4870 | else | |
4871 | if test -n "$ac_ct_RANLIB"; then | |
4872 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4873 | else | |
4874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4875 | for as_dir in $PATH | |
4876 | do | |
4877 | IFS=$as_save_IFS | |
4878 | test -z "$as_dir" && as_dir=. | |
4879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4881 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4883 | break 2 | |
4884 | fi | |
4885 | done | |
4886 | done | |
4887 | IFS=$as_save_IFS | |
4888 | ||
4889 | fi | |
4890 | fi | |
4891 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4892 | if test -n "$ac_ct_RANLIB"; then | |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4894 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4895 | else | |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4897 | $as_echo "no" >&6; } | |
4898 | fi | |
4899 | ||
4900 | if test "x$ac_ct_RANLIB" = x; then | |
4901 | RANLIB=":" | |
4902 | else | |
4903 | case $cross_compiling:$ac_tool_warned in | |
4904 | yes:) | |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4906 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4907 | ac_tool_warned=yes ;; | |
4908 | esac | |
4909 | RANLIB=$ac_ct_RANLIB | |
4910 | fi | |
4911 | else | |
4912 | RANLIB="$ac_cv_prog_RANLIB" | |
4913 | fi | |
4914 | ||
4915 | test -z "$RANLIB" && RANLIB=: | |
4916 | ||
4917 | ||
4918 | ||
4919 | ||
4920 | ||
4921 | ||
4922 | # Determine commands to create old-style static archives. | |
4923 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4924 | old_postinstall_cmds='chmod 644 $oldlib' | |
4925 | old_postuninstall_cmds= | |
4926 | ||
4927 | if test -n "$RANLIB"; then | |
4928 | case $host_os in | |
4929 | openbsd*) | |
4930 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4931 | ;; | |
4932 | *) | |
4933 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4934 | ;; | |
4935 | esac | |
4936 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4937 | fi | |
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | # If no C compiler was specified, use CC. | |
4973 | LTCC=${LTCC-"$CC"} | |
4974 | ||
4975 | # If no C compiler flags were specified, use CFLAGS. | |
4976 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4977 | ||
4978 | # Allow CC to be a program name with arguments. | |
4979 | compiler=$CC | |
4980 | ||
4981 | ||
4982 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
4984 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
4985 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
4986 | $as_echo_n "(cached) " >&6 | |
4987 | else | |
4988 | ||
4989 | # These are sane defaults that work on at least a few old systems. | |
4990 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4991 | ||
4992 | # Character class describing NM global symbol codes. | |
4993 | symcode='[BCDEGRST]' | |
4994 | ||
4995 | # Regexp to match symbols that can be accessed directly from C. | |
4996 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
4997 | ||
4998 | # Define system-specific variables. | |
4999 | case $host_os in | |
5000 | aix*) | |
5001 | symcode='[BCDT]' | |
5002 | ;; | |
5003 | cygwin* | mingw* | pw32* | cegcc*) | |
5004 | symcode='[ABCDGISTW]' | |
5005 | ;; | |
5006 | hpux*) | |
5007 | if test "$host_cpu" = ia64; then | |
5008 | symcode='[ABCDEGRST]' | |
5009 | fi | |
5010 | ;; | |
5011 | irix* | nonstopux*) | |
5012 | symcode='[BCDEGRST]' | |
5013 | ;; | |
5014 | osf*) | |
5015 | symcode='[BCDEGQRST]' | |
5016 | ;; | |
5017 | solaris*) | |
5018 | symcode='[BDRT]' | |
5019 | ;; | |
5020 | sco3.2v5*) | |
5021 | symcode='[DT]' | |
5022 | ;; | |
5023 | sysv4.2uw2*) | |
5024 | symcode='[DT]' | |
5025 | ;; | |
5026 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5027 | symcode='[ABDT]' | |
5028 | ;; | |
5029 | sysv4) | |
5030 | symcode='[DFNSTU]' | |
5031 | ;; | |
5032 | esac | |
5033 | ||
5034 | # If we're using GNU nm, then use its standard symbol codes. | |
5035 | case `$NM -V 2>&1` in | |
5036 | *GNU* | *'with BFD'*) | |
5037 | symcode='[ABCDGIRSTW]' ;; | |
5038 | esac | |
5039 | ||
5040 | # Transform an extracted symbol line into a proper C declaration. | |
5041 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5042 | # so use this general approach. | |
5043 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5044 | ||
5045 | # Transform an extracted symbol line into symbol name and symbol address | |
5046 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5047 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
5048 | ||
5049 | # Handle CRLF in mingw tool chain | |
5050 | opt_cr= | |
5051 | case $build_os in | |
5052 | mingw*) | |
5053 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5054 | ;; | |
5055 | esac | |
5056 | ||
5057 | # Try without a prefix underscore, then with it. | |
5058 | for ac_symprfx in "" "_"; do | |
5059 | ||
5060 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5061 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5062 | ||
5063 | # Write the raw and C identifiers. | |
5064 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5065 | # Fake it for dumpbin and say T for any non-static function | |
5066 | # and D for any global variable. | |
5067 | # Also find C++ and __fastcall symbols from MSVC++, | |
5068 | # which start with @ or ?. | |
5069 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5070 | " {last_section=section; section=\$ 3};"\ | |
5071 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5072 | " \$ 0!~/External *\|/{next};"\ | |
5073 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5074 | " {if(hide[section]) next};"\ | |
5075 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5076 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5077 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5078 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5079 | " ' prfx=^$ac_symprfx" | |
5080 | else | |
5081 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5082 | fi | |
5083 | ||
5084 | # Check to see that the pipe works correctly. | |
5085 | pipe_works=no | |
5086 | ||
5087 | rm -f conftest* | |
5088 | cat > conftest.$ac_ext <<_LT_EOF | |
5089 | #ifdef __cplusplus | |
5090 | extern "C" { | |
5091 | #endif | |
5092 | char nm_test_var; | |
5093 | void nm_test_func(void); | |
5094 | void nm_test_func(void){} | |
5095 | #ifdef __cplusplus | |
5096 | } | |
5097 | #endif | |
5098 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5099 | _LT_EOF | |
5100 | ||
5101 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5102 | (eval $ac_compile) 2>&5 | |
5103 | ac_status=$? | |
5104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5105 | test $ac_status = 0; }; then | |
5106 | # Now try to grab the symbols. | |
5107 | nlist=conftest.nm | |
5108 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5109 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5110 | ac_status=$? | |
5111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5112 | test $ac_status = 0; } && test -s "$nlist"; then | |
5113 | # Try sorting and uniquifying the output. | |
5114 | if sort "$nlist" | uniq > "$nlist"T; then | |
5115 | mv -f "$nlist"T "$nlist" | |
5116 | else | |
5117 | rm -f "$nlist"T | |
5118 | fi | |
5119 | ||
5120 | # Make sure that we snagged all the symbols we need. | |
5121 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5122 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5123 | cat <<_LT_EOF > conftest.$ac_ext | |
5124 | #ifdef __cplusplus | |
5125 | extern "C" { | |
5126 | #endif | |
5127 | ||
5128 | _LT_EOF | |
5129 | # Now generate the symbol file. | |
5130 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5131 | ||
5132 | cat <<_LT_EOF >> conftest.$ac_ext | |
5133 | ||
5134 | /* The mapping between symbol names and symbols. */ | |
5135 | const struct { | |
5136 | const char *name; | |
5137 | void *address; | |
5138 | } | |
5139 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5140 | { | |
5141 | { "@PROGRAM@", (void *) 0 }, | |
5142 | _LT_EOF | |
5143 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5144 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5145 | {0, (void *) 0} | |
5146 | }; | |
5147 | ||
5148 | /* This works around a problem in FreeBSD linker */ | |
5149 | #ifdef FREEBSD_WORKAROUND | |
5150 | static const void *lt_preloaded_setup() { | |
5151 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5152 | } | |
5153 | #endif | |
5154 | ||
5155 | #ifdef __cplusplus | |
5156 | } | |
5157 | #endif | |
5158 | _LT_EOF | |
5159 | # Now try linking the two files. | |
5160 | mv conftest.$ac_objext conftstm.$ac_objext | |
5161 | lt_save_LIBS="$LIBS" | |
5162 | lt_save_CFLAGS="$CFLAGS" | |
5163 | LIBS="conftstm.$ac_objext" | |
5164 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5165 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5166 | (eval $ac_link) 2>&5 | |
5167 | ac_status=$? | |
5168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5169 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5170 | pipe_works=yes | |
5171 | fi | |
5172 | LIBS="$lt_save_LIBS" | |
5173 | CFLAGS="$lt_save_CFLAGS" | |
5174 | else | |
5175 | echo "cannot find nm_test_func in $nlist" >&5 | |
5176 | fi | |
5177 | else | |
5178 | echo "cannot find nm_test_var in $nlist" >&5 | |
5179 | fi | |
5180 | else | |
5181 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5182 | fi | |
5183 | else | |
5184 | echo "$progname: failed program was:" >&5 | |
5185 | cat conftest.$ac_ext >&5 | |
5186 | fi | |
5187 | rm -rf conftest* conftst* | |
5188 | ||
5189 | # Do not use the global_symbol_pipe unless it works. | |
5190 | if test "$pipe_works" = yes; then | |
5191 | break | |
5192 | else | |
5193 | lt_cv_sys_global_symbol_pipe= | |
5194 | fi | |
5195 | done | |
5196 | ||
5197 | fi | |
5198 | ||
5199 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5200 | lt_cv_sys_global_symbol_to_cdecl= | |
5201 | fi | |
5202 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5204 | $as_echo "failed" >&6; } | |
5205 | else | |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5207 | $as_echo "ok" >&6; } | |
5208 | fi | |
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | # Check whether --enable-libtool-lock was given. | |
5233 | if test "${enable_libtool_lock+set}" = set; then : | |
5234 | enableval=$enable_libtool_lock; | |
5235 | fi | |
5236 | ||
5237 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5238 | ||
5239 | # Some flags need to be propagated to the compiler or linker for good | |
5240 | # libtool support. | |
5241 | case $host in | |
5242 | ia64-*-hpux*) | |
5243 | # Find out which ABI we are using. | |
5244 | echo 'int i;' > conftest.$ac_ext | |
5245 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5246 | (eval $ac_compile) 2>&5 | |
5247 | ac_status=$? | |
5248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5249 | test $ac_status = 0; }; then | |
5250 | case `/usr/bin/file conftest.$ac_objext` in | |
5251 | *ELF-32*) | |
5252 | HPUX_IA64_MODE="32" | |
5253 | ;; | |
5254 | *ELF-64*) | |
5255 | HPUX_IA64_MODE="64" | |
5256 | ;; | |
5257 | esac | |
5258 | fi | |
5259 | rm -rf conftest* | |
5260 | ;; | |
5261 | *-*-irix6*) | |
5262 | # Find out which ABI we are using. | |
27557508 | 5263 | echo '#line 5263 "configure"' > conftest.$ac_ext |
9c60689e DWT |
5264 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5265 | (eval $ac_compile) 2>&5 | |
5266 | ac_status=$? | |
5267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5268 | test $ac_status = 0; }; then | |
5269 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5270 | case `/usr/bin/file conftest.$ac_objext` in | |
5271 | *32-bit*) | |
5272 | LD="${LD-ld} -melf32bsmip" | |
5273 | ;; | |
5274 | *N32*) | |
5275 | LD="${LD-ld} -melf32bmipn32" | |
5276 | ;; | |
5277 | *64-bit*) | |
5278 | LD="${LD-ld} -melf64bmip" | |
5279 | ;; | |
5280 | esac | |
5281 | else | |
5282 | case `/usr/bin/file conftest.$ac_objext` in | |
5283 | *32-bit*) | |
5284 | LD="${LD-ld} -32" | |
5285 | ;; | |
5286 | *N32*) | |
5287 | LD="${LD-ld} -n32" | |
5288 | ;; | |
5289 | *64-bit*) | |
5290 | LD="${LD-ld} -64" | |
5291 | ;; | |
5292 | esac | |
5293 | fi | |
5294 | fi | |
5295 | rm -rf conftest* | |
5296 | ;; | |
5297 | ||
5298 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5299 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5300 | # Find out which ABI we are using. | |
5301 | echo 'int i;' > conftest.$ac_ext | |
5302 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5303 | (eval $ac_compile) 2>&5 | |
5304 | ac_status=$? | |
5305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5306 | test $ac_status = 0; }; then | |
5307 | case `/usr/bin/file conftest.o` in | |
5308 | *32-bit*) | |
5309 | case $host in | |
5310 | x86_64-*kfreebsd*-gnu) | |
5311 | LD="${LD-ld} -m elf_i386_fbsd" | |
5312 | ;; | |
5313 | x86_64-*linux*) | |
5314 | LD="${LD-ld} -m elf_i386" | |
5315 | ;; | |
5316 | ppc64-*linux*|powerpc64-*linux*) | |
5317 | LD="${LD-ld} -m elf32ppclinux" | |
5318 | ;; | |
5319 | s390x-*linux*) | |
5320 | LD="${LD-ld} -m elf_s390" | |
5321 | ;; | |
5322 | sparc64-*linux*) | |
5323 | LD="${LD-ld} -m elf32_sparc" | |
5324 | ;; | |
5325 | esac | |
5326 | ;; | |
5327 | *64-bit*) | |
5328 | case $host in | |
5329 | x86_64-*kfreebsd*-gnu) | |
5330 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5331 | ;; | |
5332 | x86_64-*linux*) | |
5333 | LD="${LD-ld} -m elf_x86_64" | |
5334 | ;; | |
5335 | ppc*-*linux*|powerpc*-*linux*) | |
5336 | LD="${LD-ld} -m elf64ppc" | |
5337 | ;; | |
5338 | s390*-*linux*|s390*-*tpf*) | |
5339 | LD="${LD-ld} -m elf64_s390" | |
5340 | ;; | |
5341 | sparc*-*linux*) | |
5342 | LD="${LD-ld} -m elf64_sparc" | |
5343 | ;; | |
5344 | esac | |
5345 | ;; | |
5346 | esac | |
5347 | fi | |
5348 | rm -rf conftest* | |
5349 | ;; | |
5350 | ||
5351 | *-*-sco3.2v5*) | |
5352 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5353 | SAVE_CFLAGS="$CFLAGS" | |
5354 | CFLAGS="$CFLAGS -belf" | |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5356 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5357 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5358 | $as_echo_n "(cached) " >&6 | |
5359 | else | |
5360 | ac_ext=c | |
5361 | ac_cpp='$CPP $CPPFLAGS' | |
5362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5365 | ||
5366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5367 | /* end confdefs.h. */ | |
5368 | ||
5369 | int | |
5370 | main () | |
5371 | { | |
5372 | ||
5373 | ; | |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5377 | if ac_fn_c_try_link "$LINENO"; then : | |
5378 | lt_cv_cc_needs_belf=yes | |
5379 | else | |
5380 | lt_cv_cc_needs_belf=no | |
5381 | fi | |
5382 | rm -f core conftest.err conftest.$ac_objext \ | |
5383 | conftest$ac_exeext conftest.$ac_ext | |
5384 | ac_ext=c | |
5385 | ac_cpp='$CPP $CPPFLAGS' | |
5386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5389 | ||
5390 | fi | |
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5392 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5393 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5394 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5395 | CFLAGS="$SAVE_CFLAGS" | |
5396 | fi | |
5397 | ;; | |
5398 | sparc*-*solaris*) | |
5399 | # Find out which ABI we are using. | |
5400 | echo 'int i;' > conftest.$ac_ext | |
5401 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5402 | (eval $ac_compile) 2>&5 | |
5403 | ac_status=$? | |
5404 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5405 | test $ac_status = 0; }; then | |
5406 | case `/usr/bin/file conftest.o` in | |
5407 | *64-bit*) | |
5408 | case $lt_cv_prog_gnu_ld in | |
5409 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5410 | *) | |
5411 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5412 | LD="${LD-ld} -64" | |
5413 | fi | |
5414 | ;; | |
5415 | esac | |
5416 | ;; | |
5417 | esac | |
5418 | fi | |
5419 | rm -rf conftest* | |
5420 | ;; | |
5421 | esac | |
5422 | ||
5423 | need_locks="$enable_libtool_lock" | |
5424 | ||
5425 | ||
5426 | case $host_os in | |
5427 | rhapsody* | darwin*) | |
5428 | if test -n "$ac_tool_prefix"; then | |
5429 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5430 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5432 | $as_echo_n "checking for $ac_word... " >&6; } | |
5433 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5434 | $as_echo_n "(cached) " >&6 | |
5435 | else | |
5436 | if test -n "$DSYMUTIL"; then | |
5437 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5438 | else | |
5439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5440 | for as_dir in $PATH | |
5441 | do | |
5442 | IFS=$as_save_IFS | |
5443 | test -z "$as_dir" && as_dir=. | |
5444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5446 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5448 | break 2 | |
5449 | fi | |
5450 | done | |
5451 | done | |
5452 | IFS=$as_save_IFS | |
5453 | ||
5454 | fi | |
5455 | fi | |
5456 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5457 | if test -n "$DSYMUTIL"; then | |
5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5459 | $as_echo "$DSYMUTIL" >&6; } | |
5460 | else | |
5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5462 | $as_echo "no" >&6; } | |
5463 | fi | |
5464 | ||
5465 | ||
5466 | fi | |
5467 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5468 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5469 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5470 | set dummy dsymutil; ac_word=$2 | |
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5472 | $as_echo_n "checking for $ac_word... " >&6; } | |
5473 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5474 | $as_echo_n "(cached) " >&6 | |
5475 | else | |
5476 | if test -n "$ac_ct_DSYMUTIL"; then | |
5477 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5478 | else | |
5479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5480 | for as_dir in $PATH | |
5481 | do | |
5482 | IFS=$as_save_IFS | |
5483 | test -z "$as_dir" && as_dir=. | |
5484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5486 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5488 | break 2 | |
5489 | fi | |
5490 | done | |
5491 | done | |
5492 | IFS=$as_save_IFS | |
5493 | ||
5494 | fi | |
5495 | fi | |
5496 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5497 | if test -n "$ac_ct_DSYMUTIL"; then | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5499 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5500 | else | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5502 | $as_echo "no" >&6; } | |
5503 | fi | |
5504 | ||
5505 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5506 | DSYMUTIL=":" | |
5507 | else | |
5508 | case $cross_compiling:$ac_tool_warned in | |
5509 | yes:) | |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5512 | ac_tool_warned=yes ;; | |
5513 | esac | |
5514 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5515 | fi | |
5516 | else | |
5517 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5518 | fi | |
5519 | ||
5520 | if test -n "$ac_tool_prefix"; then | |
5521 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5522 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5524 | $as_echo_n "checking for $ac_word... " >&6; } | |
5525 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5526 | $as_echo_n "(cached) " >&6 | |
5527 | else | |
5528 | if test -n "$NMEDIT"; then | |
5529 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5530 | else | |
5531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5532 | for as_dir in $PATH | |
5533 | do | |
5534 | IFS=$as_save_IFS | |
5535 | test -z "$as_dir" && as_dir=. | |
5536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5538 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5540 | break 2 | |
5541 | fi | |
5542 | done | |
5543 | done | |
5544 | IFS=$as_save_IFS | |
5545 | ||
5546 | fi | |
5547 | fi | |
5548 | NMEDIT=$ac_cv_prog_NMEDIT | |
5549 | if test -n "$NMEDIT"; then | |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5551 | $as_echo "$NMEDIT" >&6; } | |
5552 | else | |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5554 | $as_echo "no" >&6; } | |
5555 | fi | |
5556 | ||
5557 | ||
5558 | fi | |
5559 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5560 | ac_ct_NMEDIT=$NMEDIT | |
5561 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5562 | set dummy nmedit; ac_word=$2 | |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5564 | $as_echo_n "checking for $ac_word... " >&6; } | |
5565 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5566 | $as_echo_n "(cached) " >&6 | |
5567 | else | |
5568 | if test -n "$ac_ct_NMEDIT"; then | |
5569 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5570 | else | |
5571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5572 | for as_dir in $PATH | |
5573 | do | |
5574 | IFS=$as_save_IFS | |
5575 | test -z "$as_dir" && as_dir=. | |
5576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5578 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5580 | break 2 | |
5581 | fi | |
5582 | done | |
5583 | done | |
5584 | IFS=$as_save_IFS | |
5585 | ||
5586 | fi | |
5587 | fi | |
5588 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5589 | if test -n "$ac_ct_NMEDIT"; then | |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5591 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5592 | else | |
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5594 | $as_echo "no" >&6; } | |
5595 | fi | |
5596 | ||
5597 | if test "x$ac_ct_NMEDIT" = x; then | |
5598 | NMEDIT=":" | |
5599 | else | |
5600 | case $cross_compiling:$ac_tool_warned in | |
5601 | yes:) | |
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5604 | ac_tool_warned=yes ;; | |
5605 | esac | |
5606 | NMEDIT=$ac_ct_NMEDIT | |
5607 | fi | |
5608 | else | |
5609 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5610 | fi | |
5611 | ||
5612 | if test -n "$ac_tool_prefix"; then | |
5613 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5614 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5616 | $as_echo_n "checking for $ac_word... " >&6; } | |
5617 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5618 | $as_echo_n "(cached) " >&6 | |
5619 | else | |
5620 | if test -n "$LIPO"; then | |
5621 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5622 | else | |
5623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5624 | for as_dir in $PATH | |
5625 | do | |
5626 | IFS=$as_save_IFS | |
5627 | test -z "$as_dir" && as_dir=. | |
5628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5630 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5632 | break 2 | |
5633 | fi | |
5634 | done | |
5635 | done | |
5636 | IFS=$as_save_IFS | |
5637 | ||
5638 | fi | |
5639 | fi | |
5640 | LIPO=$ac_cv_prog_LIPO | |
5641 | if test -n "$LIPO"; then | |
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5643 | $as_echo "$LIPO" >&6; } | |
5644 | else | |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5646 | $as_echo "no" >&6; } | |
5647 | fi | |
5648 | ||
5649 | ||
5650 | fi | |
5651 | if test -z "$ac_cv_prog_LIPO"; then | |
5652 | ac_ct_LIPO=$LIPO | |
5653 | # Extract the first word of "lipo", so it can be a program name with args. | |
5654 | set dummy lipo; ac_word=$2 | |
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5656 | $as_echo_n "checking for $ac_word... " >&6; } | |
5657 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5658 | $as_echo_n "(cached) " >&6 | |
5659 | else | |
5660 | if test -n "$ac_ct_LIPO"; then | |
5661 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5662 | else | |
5663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5664 | for as_dir in $PATH | |
5665 | do | |
5666 | IFS=$as_save_IFS | |
5667 | test -z "$as_dir" && as_dir=. | |
5668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5670 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5672 | break 2 | |
5673 | fi | |
5674 | done | |
5675 | done | |
5676 | IFS=$as_save_IFS | |
5677 | ||
5678 | fi | |
5679 | fi | |
5680 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5681 | if test -n "$ac_ct_LIPO"; then | |
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5683 | $as_echo "$ac_ct_LIPO" >&6; } | |
5684 | else | |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5686 | $as_echo "no" >&6; } | |
5687 | fi | |
5688 | ||
5689 | if test "x$ac_ct_LIPO" = x; then | |
5690 | LIPO=":" | |
5691 | else | |
5692 | case $cross_compiling:$ac_tool_warned in | |
5693 | yes:) | |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5695 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5696 | ac_tool_warned=yes ;; | |
5697 | esac | |
5698 | LIPO=$ac_ct_LIPO | |
5699 | fi | |
5700 | else | |
5701 | LIPO="$ac_cv_prog_LIPO" | |
5702 | fi | |
5703 | ||
5704 | if test -n "$ac_tool_prefix"; then | |
5705 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5706 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5708 | $as_echo_n "checking for $ac_word... " >&6; } | |
5709 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5710 | $as_echo_n "(cached) " >&6 | |
5711 | else | |
5712 | if test -n "$OTOOL"; then | |
5713 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5714 | else | |
5715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5716 | for as_dir in $PATH | |
5717 | do | |
5718 | IFS=$as_save_IFS | |
5719 | test -z "$as_dir" && as_dir=. | |
5720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5722 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5724 | break 2 | |
5725 | fi | |
5726 | done | |
5727 | done | |
5728 | IFS=$as_save_IFS | |
5729 | ||
5730 | fi | |
5731 | fi | |
5732 | OTOOL=$ac_cv_prog_OTOOL | |
5733 | if test -n "$OTOOL"; then | |
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5735 | $as_echo "$OTOOL" >&6; } | |
5736 | else | |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5738 | $as_echo "no" >&6; } | |
5739 | fi | |
5740 | ||
5741 | ||
5742 | fi | |
5743 | if test -z "$ac_cv_prog_OTOOL"; then | |
5744 | ac_ct_OTOOL=$OTOOL | |
5745 | # Extract the first word of "otool", so it can be a program name with args. | |
5746 | set dummy otool; ac_word=$2 | |
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5748 | $as_echo_n "checking for $ac_word... " >&6; } | |
5749 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5750 | $as_echo_n "(cached) " >&6 | |
5751 | else | |
5752 | if test -n "$ac_ct_OTOOL"; then | |
5753 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5754 | else | |
5755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5756 | for as_dir in $PATH | |
5757 | do | |
5758 | IFS=$as_save_IFS | |
5759 | test -z "$as_dir" && as_dir=. | |
5760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5762 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5764 | break 2 | |
5765 | fi | |
5766 | done | |
5767 | done | |
5768 | IFS=$as_save_IFS | |
5769 | ||
5770 | fi | |
5771 | fi | |
5772 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5773 | if test -n "$ac_ct_OTOOL"; then | |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5775 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5776 | else | |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5778 | $as_echo "no" >&6; } | |
5779 | fi | |
5780 | ||
5781 | if test "x$ac_ct_OTOOL" = x; then | |
5782 | OTOOL=":" | |
5783 | else | |
5784 | case $cross_compiling:$ac_tool_warned in | |
5785 | yes:) | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5788 | ac_tool_warned=yes ;; | |
5789 | esac | |
5790 | OTOOL=$ac_ct_OTOOL | |
5791 | fi | |
5792 | else | |
5793 | OTOOL="$ac_cv_prog_OTOOL" | |
5794 | fi | |
5795 | ||
5796 | if test -n "$ac_tool_prefix"; then | |
5797 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5798 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5800 | $as_echo_n "checking for $ac_word... " >&6; } | |
5801 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5802 | $as_echo_n "(cached) " >&6 | |
5803 | else | |
5804 | if test -n "$OTOOL64"; then | |
5805 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5806 | else | |
5807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5808 | for as_dir in $PATH | |
5809 | do | |
5810 | IFS=$as_save_IFS | |
5811 | test -z "$as_dir" && as_dir=. | |
5812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5814 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5816 | break 2 | |
5817 | fi | |
5818 | done | |
5819 | done | |
5820 | IFS=$as_save_IFS | |
5821 | ||
5822 | fi | |
5823 | fi | |
5824 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5825 | if test -n "$OTOOL64"; then | |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5827 | $as_echo "$OTOOL64" >&6; } | |
5828 | else | |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5830 | $as_echo "no" >&6; } | |
5831 | fi | |
5832 | ||
5833 | ||
5834 | fi | |
5835 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5836 | ac_ct_OTOOL64=$OTOOL64 | |
5837 | # Extract the first word of "otool64", so it can be a program name with args. | |
5838 | set dummy otool64; ac_word=$2 | |
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5840 | $as_echo_n "checking for $ac_word... " >&6; } | |
5841 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5842 | $as_echo_n "(cached) " >&6 | |
5843 | else | |
5844 | if test -n "$ac_ct_OTOOL64"; then | |
5845 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5846 | else | |
5847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5848 | for as_dir in $PATH | |
5849 | do | |
5850 | IFS=$as_save_IFS | |
5851 | test -z "$as_dir" && as_dir=. | |
5852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5854 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5856 | break 2 | |
5857 | fi | |
5858 | done | |
5859 | done | |
5860 | IFS=$as_save_IFS | |
5861 | ||
5862 | fi | |
5863 | fi | |
5864 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5865 | if test -n "$ac_ct_OTOOL64"; then | |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5867 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5868 | else | |
5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5870 | $as_echo "no" >&6; } | |
5871 | fi | |
5872 | ||
5873 | if test "x$ac_ct_OTOOL64" = x; then | |
5874 | OTOOL64=":" | |
5875 | else | |
5876 | case $cross_compiling:$ac_tool_warned in | |
5877 | yes:) | |
5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5879 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5880 | ac_tool_warned=yes ;; | |
5881 | esac | |
5882 | OTOOL64=$ac_ct_OTOOL64 | |
5883 | fi | |
5884 | else | |
5885 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5915 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5916 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5917 | $as_echo_n "(cached) " >&6 | |
5918 | else | |
5919 | lt_cv_apple_cc_single_mod=no | |
5920 | if test -z "${LT_MULTI_MODULE}"; then | |
5921 | # By default we will add the -single_module flag. You can override | |
5922 | # by either setting the environment variable LT_MULTI_MODULE | |
5923 | # non-empty at configure time, or by adding -multi_module to the | |
5924 | # link flags. | |
5925 | rm -rf libconftest.dylib* | |
5926 | echo "int foo(void){return 1;}" > conftest.c | |
5927 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5928 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5929 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5930 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5931 | _lt_result=$? | |
5932 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5933 | lt_cv_apple_cc_single_mod=yes | |
5934 | else | |
5935 | cat conftest.err >&5 | |
5936 | fi | |
5937 | rm -rf libconftest.dylib* | |
5938 | rm -f conftest.* | |
5939 | fi | |
5940 | fi | |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5942 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5944 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5945 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5946 | $as_echo_n "(cached) " >&6 | |
5947 | else | |
5948 | lt_cv_ld_exported_symbols_list=no | |
5949 | save_LDFLAGS=$LDFLAGS | |
5950 | echo "_main" > conftest.sym | |
5951 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5953 | /* end confdefs.h. */ | |
5954 | ||
5955 | int | |
5956 | main () | |
5957 | { | |
5958 | ||
5959 | ; | |
5960 | return 0; | |
5961 | } | |
5962 | _ACEOF | |
5963 | if ac_fn_c_try_link "$LINENO"; then : | |
5964 | lt_cv_ld_exported_symbols_list=yes | |
5965 | else | |
5966 | lt_cv_ld_exported_symbols_list=no | |
5967 | fi | |
5968 | rm -f core conftest.err conftest.$ac_objext \ | |
5969 | conftest$ac_exeext conftest.$ac_ext | |
5970 | LDFLAGS="$save_LDFLAGS" | |
5971 | ||
5972 | fi | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
5974 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
5975 | case $host_os in | |
5976 | rhapsody* | darwin1.[012]) | |
5977 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
5978 | darwin1.*) | |
5979 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5980 | darwin*) # darwin 5.x on | |
5981 | # if running on 10.5 or later, the deployment target defaults | |
5982 | # to the OS version, if on x86, and 10.4, the deployment | |
5983 | # target defaults to 10.4. Don't you love it? | |
5984 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
5985 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
5986 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5987 | 10.[012]*) | |
5988 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5989 | 10.*) | |
5990 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5991 | esac | |
5992 | ;; | |
5993 | esac | |
5994 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
5995 | _lt_dar_single_mod='$single_module' | |
5996 | fi | |
5997 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
5998 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
5999 | else | |
6000 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6001 | fi | |
6002 | if test "$DSYMUTIL" != ":"; then | |
6003 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6004 | else | |
6005 | _lt_dsymutil= | |
6006 | fi | |
6007 | ;; | |
6008 | esac | |
6009 | ||
6010 | ac_ext=c | |
6011 | ac_cpp='$CPP $CPPFLAGS' | |
6012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6016 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6017 | # On Suns, sometimes $CPP names a directory. | |
6018 | if test -n "$CPP" && test -d "$CPP"; then | |
6019 | CPP= | |
6020 | fi | |
6021 | if test -z "$CPP"; then | |
6022 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6023 | $as_echo_n "(cached) " >&6 | |
6024 | else | |
6025 | # Double quotes because CPP needs to be expanded | |
6026 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6027 | do | |
6028 | ac_preproc_ok=false | |
6029 | for ac_c_preproc_warn_flag in '' yes | |
6030 | do | |
6031 | # Use a header file that comes with gcc, so configuring glibc | |
6032 | # with a fresh cross-compiler works. | |
6033 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6034 | # <limits.h> exists even on freestanding compilers. | |
6035 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6036 | # not just through cpp. "Syntax error" is here to catch this case. | |
6037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6038 | /* end confdefs.h. */ | |
6039 | #ifdef __STDC__ | |
6040 | # include <limits.h> | |
6041 | #else | |
6042 | # include <assert.h> | |
6043 | #endif | |
6044 | Syntax error | |
6045 | _ACEOF | |
6046 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6047 | ||
6048 | else | |
6049 | # Broken: fails on valid input. | |
6050 | continue | |
6051 | fi | |
6052 | rm -f conftest.err conftest.$ac_ext | |
6053 | ||
6054 | # OK, works on sane cases. Now check whether nonexistent headers | |
6055 | # can be detected and how. | |
6056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6057 | /* end confdefs.h. */ | |
6058 | #include <ac_nonexistent.h> | |
6059 | _ACEOF | |
6060 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6061 | # Broken: success on invalid input. | |
6062 | continue | |
6063 | else | |
6064 | # Passes both tests. | |
6065 | ac_preproc_ok=: | |
6066 | break | |
6067 | fi | |
6068 | rm -f conftest.err conftest.$ac_ext | |
6069 | ||
6070 | done | |
6071 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6072 | rm -f conftest.err conftest.$ac_ext | |
6073 | if $ac_preproc_ok; then : | |
6074 | break | |
6075 | fi | |
6076 | ||
6077 | done | |
6078 | ac_cv_prog_CPP=$CPP | |
6079 | ||
6080 | fi | |
6081 | CPP=$ac_cv_prog_CPP | |
6082 | else | |
6083 | ac_cv_prog_CPP=$CPP | |
6084 | fi | |
6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6086 | $as_echo "$CPP" >&6; } | |
6087 | ac_preproc_ok=false | |
6088 | for ac_c_preproc_warn_flag in '' yes | |
6089 | do | |
6090 | # Use a header file that comes with gcc, so configuring glibc | |
6091 | # with a fresh cross-compiler works. | |
6092 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6093 | # <limits.h> exists even on freestanding compilers. | |
6094 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6095 | # not just through cpp. "Syntax error" is here to catch this case. | |
6096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6097 | /* end confdefs.h. */ | |
6098 | #ifdef __STDC__ | |
6099 | # include <limits.h> | |
6100 | #else | |
6101 | # include <assert.h> | |
6102 | #endif | |
6103 | Syntax error | |
6104 | _ACEOF | |
6105 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6106 | ||
6107 | else | |
6108 | # Broken: fails on valid input. | |
6109 | continue | |
6110 | fi | |
6111 | rm -f conftest.err conftest.$ac_ext | |
6112 | ||
6113 | # OK, works on sane cases. Now check whether nonexistent headers | |
6114 | # can be detected and how. | |
6115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6116 | /* end confdefs.h. */ | |
6117 | #include <ac_nonexistent.h> | |
6118 | _ACEOF | |
6119 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6120 | # Broken: success on invalid input. | |
6121 | continue | |
6122 | else | |
6123 | # Passes both tests. | |
6124 | ac_preproc_ok=: | |
6125 | break | |
6126 | fi | |
6127 | rm -f conftest.err conftest.$ac_ext | |
6128 | ||
6129 | done | |
6130 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6131 | rm -f conftest.err conftest.$ac_ext | |
6132 | if $ac_preproc_ok; then : | |
6133 | ||
6134 | else | |
6135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6137 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6138 | See \`config.log' for more details." "$LINENO" 5; } | |
6139 | fi | |
6140 | ||
6141 | ac_ext=c | |
6142 | ac_cpp='$CPP $CPPFLAGS' | |
6143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6146 | ||
6147 | ||
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6149 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6150 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6151 | $as_echo_n "(cached) " >&6 | |
6152 | else | |
6153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6154 | /* end confdefs.h. */ | |
6155 | #include <stdlib.h> | |
6156 | #include <stdarg.h> | |
6157 | #include <string.h> | |
6158 | #include <float.h> | |
6159 | ||
6160 | int | |
6161 | main () | |
6162 | { | |
6163 | ||
6164 | ; | |
6165 | return 0; | |
6166 | } | |
6167 | _ACEOF | |
6168 | if ac_fn_c_try_compile "$LINENO"; then : | |
6169 | ac_cv_header_stdc=yes | |
6170 | else | |
6171 | ac_cv_header_stdc=no | |
6172 | fi | |
6173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6174 | ||
6175 | if test $ac_cv_header_stdc = yes; then | |
6176 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6178 | /* end confdefs.h. */ | |
6179 | #include <string.h> | |
6180 | ||
6181 | _ACEOF | |
6182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6183 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6184 | ||
6185 | else | |
6186 | ac_cv_header_stdc=no | |
6187 | fi | |
6188 | rm -f conftest* | |
6189 | ||
6190 | fi | |
6191 | ||
6192 | if test $ac_cv_header_stdc = yes; then | |
6193 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6195 | /* end confdefs.h. */ | |
6196 | #include <stdlib.h> | |
6197 | ||
6198 | _ACEOF | |
6199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6200 | $EGREP "free" >/dev/null 2>&1; then : | |
6201 | ||
6202 | else | |
6203 | ac_cv_header_stdc=no | |
6204 | fi | |
6205 | rm -f conftest* | |
6206 | ||
6207 | fi | |
6208 | ||
6209 | if test $ac_cv_header_stdc = yes; then | |
6210 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6211 | if test "$cross_compiling" = yes; then : | |
6212 | : | |
6213 | else | |
6214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6215 | /* end confdefs.h. */ | |
6216 | #include <ctype.h> | |
6217 | #include <stdlib.h> | |
6218 | #if ((' ' & 0x0FF) == 0x020) | |
6219 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6220 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6221 | #else | |
6222 | # define ISLOWER(c) \ | |
6223 | (('a' <= (c) && (c) <= 'i') \ | |
6224 | || ('j' <= (c) && (c) <= 'r') \ | |
6225 | || ('s' <= (c) && (c) <= 'z')) | |
6226 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6227 | #endif | |
6228 | ||
6229 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6230 | int | |
6231 | main () | |
6232 | { | |
6233 | int i; | |
6234 | for (i = 0; i < 256; i++) | |
6235 | if (XOR (islower (i), ISLOWER (i)) | |
6236 | || toupper (i) != TOUPPER (i)) | |
6237 | return 2; | |
6238 | return 0; | |
6239 | } | |
6240 | _ACEOF | |
6241 | if ac_fn_c_try_run "$LINENO"; then : | |
6242 | ||
6243 | else | |
6244 | ac_cv_header_stdc=no | |
6245 | fi | |
6246 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6247 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6248 | fi | |
6249 | ||
6250 | fi | |
6251 | fi | |
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6253 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6254 | if test $ac_cv_header_stdc = yes; then | |
6255 | ||
6256 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6257 | ||
6258 | fi | |
6259 | ||
6260 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6261 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6262 | inttypes.h stdint.h unistd.h | |
6263 | do : | |
6264 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6265 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6266 | " | |
6267 | eval as_val=\$$as_ac_Header | |
6268 | if test "x$as_val" = x""yes; then : | |
6269 | cat >>confdefs.h <<_ACEOF | |
6270 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6271 | _ACEOF | |
6272 | ||
6273 | fi | |
6274 | ||
6275 | done | |
6276 | ||
6277 | ||
6278 | for ac_header in dlfcn.h | |
6279 | do : | |
6280 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6281 | " | |
6282 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6283 | cat >>confdefs.h <<_ACEOF | |
6284 | #define HAVE_DLFCN_H 1 | |
6285 | _ACEOF | |
6286 | ||
6287 | fi | |
6288 | ||
6289 | done | |
6290 | ||
6291 | ||
6292 | ||
6293 | # Set options | |
549f29b5 DWT |
6294 | # Check whether --enable-static was given. |
6295 | if test "${enable_static+set}" = set; then : | |
6296 | enableval=$enable_static; p=${PACKAGE-default} | |
9c60689e | 6297 | case $enableval in |
549f29b5 DWT |
6298 | yes) enable_static=yes ;; |
6299 | no) enable_static=no ;; | |
9c60689e | 6300 | *) |
549f29b5 | 6301 | enable_static=no |
9c60689e DWT |
6302 | # Look at the argument we got. We use all the common list separators. |
6303 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6304 | for pkg in $enableval; do | |
6305 | IFS="$lt_save_ifs" | |
6306 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6307 | enable_static=yes |
9c60689e DWT |
6308 | fi |
6309 | done | |
6310 | IFS="$lt_save_ifs" | |
6311 | ;; | |
6312 | esac | |
6313 | else | |
549f29b5 | 6314 | enable_static=no |
9c60689e DWT |
6315 | fi |
6316 | ||
6317 | ||
6318 | ||
6319 | ||
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
549f29b5 DWT |
6325 | |
6326 | enable_dlopen=no | |
6327 | ||
6328 | ||
6329 | enable_win32_dll=no | |
6330 | ||
6331 | ||
6332 | # Check whether --enable-shared was given. | |
6333 | if test "${enable_shared+set}" = set; then : | |
6334 | enableval=$enable_shared; p=${PACKAGE-default} | |
9c60689e | 6335 | case $enableval in |
549f29b5 DWT |
6336 | yes) enable_shared=yes ;; |
6337 | no) enable_shared=no ;; | |
9c60689e | 6338 | *) |
549f29b5 | 6339 | enable_shared=no |
9c60689e DWT |
6340 | # Look at the argument we got. We use all the common list separators. |
6341 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6342 | for pkg in $enableval; do | |
6343 | IFS="$lt_save_ifs" | |
6344 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6345 | enable_shared=yes |
9c60689e DWT |
6346 | fi |
6347 | done | |
6348 | IFS="$lt_save_ifs" | |
6349 | ;; | |
6350 | esac | |
6351 | else | |
549f29b5 | 6352 | enable_shared=yes |
9c60689e DWT |
6353 | fi |
6354 | ||
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
549f29b5 | 6364 | |
9c60689e DWT |
6365 | # Check whether --with-pic was given. |
6366 | if test "${with_pic+set}" = set; then : | |
6367 | withval=$with_pic; pic_mode="$withval" | |
6368 | else | |
6369 | pic_mode=default | |
6370 | fi | |
6371 | ||
6372 | ||
6373 | test -z "$pic_mode" && pic_mode=default | |
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
6381 | # Check whether --enable-fast-install was given. | |
6382 | if test "${enable_fast_install+set}" = set; then : | |
6383 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6384 | case $enableval in | |
6385 | yes) enable_fast_install=yes ;; | |
6386 | no) enable_fast_install=no ;; | |
6387 | *) | |
6388 | enable_fast_install=no | |
6389 | # Look at the argument we got. We use all the common list separators. | |
6390 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6391 | for pkg in $enableval; do | |
6392 | IFS="$lt_save_ifs" | |
6393 | if test "X$pkg" = "X$p"; then | |
6394 | enable_fast_install=yes | |
6395 | fi | |
6396 | done | |
6397 | IFS="$lt_save_ifs" | |
6398 | ;; | |
6399 | esac | |
6400 | else | |
6401 | enable_fast_install=yes | |
6402 | fi | |
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | # This can be used to rebuild libtool when needed | |
6415 | LIBTOOL_DEPS="$ltmain" | |
6416 | ||
6417 | # Always use our own libtool. | |
6418 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | test -z "$LN_S" && LN_S="ln -s" | |
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | if test -n "${ZSH_VERSION+set}" ; then | |
6460 | setopt NO_GLOB_SUBST | |
6461 | fi | |
6462 | ||
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6464 | $as_echo_n "checking for objdir... " >&6; } | |
6465 | if test "${lt_cv_objdir+set}" = set; then : | |
6466 | $as_echo_n "(cached) " >&6 | |
6467 | else | |
6468 | rm -f .libs 2>/dev/null | |
6469 | mkdir .libs 2>/dev/null | |
6470 | if test -d .libs; then | |
6471 | lt_cv_objdir=.libs | |
6472 | else | |
6473 | # MS-DOS does not allow filenames that begin with a dot. | |
6474 | lt_cv_objdir=_libs | |
6475 | fi | |
6476 | rmdir .libs 2>/dev/null | |
6477 | fi | |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6479 | $as_echo "$lt_cv_objdir" >&6; } | |
6480 | objdir=$lt_cv_objdir | |
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | cat >>confdefs.h <<_ACEOF | |
6487 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6488 | _ACEOF | |
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | case $host_os in | |
6507 | aix3*) | |
6508 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6509 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6510 | # vanish in a puff of smoke. | |
6511 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6512 | COLLECT_NAMES= | |
6513 | export COLLECT_NAMES | |
6514 | fi | |
6515 | ;; | |
6516 | esac | |
6517 | ||
6518 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6519 | # metacharacters that are still active within double-quoted strings. | |
6520 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6521 | ||
6522 | # Same as above, but do not quote variable references. | |
6523 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6524 | ||
6525 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6526 | # double_quote_subst'ed string. | |
6527 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6528 | ||
6529 | # Sed substitution to delay expansion of an escaped single quote. | |
6530 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6531 | ||
6532 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6533 | no_glob_subst='s/\*/\\\*/g' | |
6534 | ||
6535 | # Global variables: | |
6536 | ofile=libtool | |
6537 | can_build_shared=yes | |
6538 | ||
6539 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6540 | # which needs '.lib'). | |
6541 | libext=a | |
6542 | ||
6543 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6544 | ||
6545 | old_CC="$CC" | |
6546 | old_CFLAGS="$CFLAGS" | |
6547 | ||
6548 | # Set sane defaults for various variables | |
6549 | test -z "$CC" && CC=cc | |
6550 | test -z "$LTCC" && LTCC=$CC | |
6551 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6552 | test -z "$LD" && LD=ld | |
6553 | test -z "$ac_objext" && ac_objext=o | |
6554 | ||
6555 | for cc_temp in $compiler""; do | |
6556 | case $cc_temp in | |
6557 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6558 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6559 | \-*) ;; | |
6560 | *) break;; | |
6561 | esac | |
6562 | done | |
6563 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6564 | ||
6565 | ||
6566 | # Only perform the check for file, if the check method requires it | |
6567 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6568 | case $deplibs_check_method in | |
6569 | file_magic*) | |
6570 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6572 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6573 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6574 | $as_echo_n "(cached) " >&6 | |
6575 | else | |
6576 | case $MAGIC_CMD in | |
6577 | [\\/*] | ?:[\\/]*) | |
6578 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6579 | ;; | |
6580 | *) | |
6581 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6582 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6583 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6584 | for ac_dir in $ac_dummy; do | |
6585 | IFS="$lt_save_ifs" | |
6586 | test -z "$ac_dir" && ac_dir=. | |
6587 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6588 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6589 | if test -n "$file_magic_test_file"; then | |
6590 | case $deplibs_check_method in | |
6591 | "file_magic "*) | |
6592 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6593 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6594 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6595 | $EGREP "$file_magic_regex" > /dev/null; then | |
6596 | : | |
6597 | else | |
6598 | cat <<_LT_EOF 1>&2 | |
6599 | ||
6600 | *** Warning: the command libtool uses to detect shared libraries, | |
6601 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6602 | *** The result is that libtool may fail to recognize shared libraries | |
6603 | *** as such. This will affect the creation of libtool libraries that | |
6604 | *** depend on shared libraries, but programs linked with such libtool | |
6605 | *** libraries will work regardless of this problem. Nevertheless, you | |
6606 | *** may want to report the problem to your system manager and/or to | |
6607 | *** bug-libtool@gnu.org | |
6608 | ||
6609 | _LT_EOF | |
6610 | fi ;; | |
6611 | esac | |
6612 | fi | |
6613 | break | |
6614 | fi | |
6615 | done | |
6616 | IFS="$lt_save_ifs" | |
6617 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6618 | ;; | |
6619 | esac | |
6620 | fi | |
6621 | ||
6622 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6623 | if test -n "$MAGIC_CMD"; then | |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6625 | $as_echo "$MAGIC_CMD" >&6; } | |
6626 | else | |
6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6628 | $as_echo "no" >&6; } | |
6629 | fi | |
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6636 | if test -n "$ac_tool_prefix"; then | |
6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6638 | $as_echo_n "checking for file... " >&6; } | |
6639 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6640 | $as_echo_n "(cached) " >&6 | |
6641 | else | |
6642 | case $MAGIC_CMD in | |
6643 | [\\/*] | ?:[\\/]*) | |
6644 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6645 | ;; | |
6646 | *) | |
6647 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6648 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6649 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6650 | for ac_dir in $ac_dummy; do | |
6651 | IFS="$lt_save_ifs" | |
6652 | test -z "$ac_dir" && ac_dir=. | |
6653 | if test -f $ac_dir/file; then | |
6654 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6655 | if test -n "$file_magic_test_file"; then | |
6656 | case $deplibs_check_method in | |
6657 | "file_magic "*) | |
6658 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6659 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6660 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6661 | $EGREP "$file_magic_regex" > /dev/null; then | |
6662 | : | |
6663 | else | |
6664 | cat <<_LT_EOF 1>&2 | |
6665 | ||
6666 | *** Warning: the command libtool uses to detect shared libraries, | |
6667 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6668 | *** The result is that libtool may fail to recognize shared libraries | |
6669 | *** as such. This will affect the creation of libtool libraries that | |
6670 | *** depend on shared libraries, but programs linked with such libtool | |
6671 | *** libraries will work regardless of this problem. Nevertheless, you | |
6672 | *** may want to report the problem to your system manager and/or to | |
6673 | *** bug-libtool@gnu.org | |
6674 | ||
6675 | _LT_EOF | |
6676 | fi ;; | |
6677 | esac | |
6678 | fi | |
6679 | break | |
6680 | fi | |
6681 | done | |
6682 | IFS="$lt_save_ifs" | |
6683 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6684 | ;; | |
6685 | esac | |
6686 | fi | |
6687 | ||
6688 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6689 | if test -n "$MAGIC_CMD"; then | |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6691 | $as_echo "$MAGIC_CMD" >&6; } | |
6692 | else | |
6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6694 | $as_echo "no" >&6; } | |
6695 | fi | |
6696 | ||
6697 | ||
6698 | else | |
6699 | MAGIC_CMD=: | |
6700 | fi | |
6701 | fi | |
6702 | ||
6703 | fi | |
6704 | ;; | |
6705 | esac | |
6706 | ||
6707 | # Use C for the default configuration in the libtool script | |
6708 | ||
6709 | lt_save_CC="$CC" | |
6710 | ac_ext=c | |
6711 | ac_cpp='$CPP $CPPFLAGS' | |
6712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6715 | ||
6716 | ||
6717 | # Source file extension for C test sources. | |
6718 | ac_ext=c | |
6719 | ||
6720 | # Object file extension for compiled C test sources. | |
6721 | objext=o | |
6722 | objext=$objext | |
6723 | ||
6724 | # Code to be used in simple compile tests | |
6725 | lt_simple_compile_test_code="int some_variable = 0;" | |
6726 | ||
6727 | # Code to be used in simple link tests | |
6728 | lt_simple_link_test_code='int main(){return(0);}' | |
6729 | ||
6730 | ||
6731 | ||
6732 | ||
6733 | ||
6734 | ||
6735 | ||
6736 | # If no C compiler was specified, use CC. | |
6737 | LTCC=${LTCC-"$CC"} | |
6738 | ||
6739 | # If no C compiler flags were specified, use CFLAGS. | |
6740 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6741 | ||
6742 | # Allow CC to be a program name with arguments. | |
6743 | compiler=$CC | |
6744 | ||
6745 | # Save the default compiler, since it gets overwritten when the other | |
6746 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6747 | compiler_DEFAULT=$CC | |
6748 | ||
6749 | # save warnings/boilerplate of simple test code | |
6750 | ac_outfile=conftest.$ac_objext | |
6751 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6752 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6753 | _lt_compiler_boilerplate=`cat conftest.err` | |
6754 | $RM conftest* | |
6755 | ||
6756 | ac_outfile=conftest.$ac_objext | |
6757 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6758 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6759 | _lt_linker_boilerplate=`cat conftest.err` | |
6760 | $RM -r conftest* | |
6761 | ||
6762 | ||
6763 | if test -n "$compiler"; then | |
6764 | ||
6765 | lt_prog_compiler_no_builtin_flag= | |
6766 | ||
6767 | if test "$GCC" = yes; then | |
6768 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6769 | ||
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6771 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6772 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6773 | $as_echo_n "(cached) " >&6 | |
6774 | else | |
6775 | lt_cv_prog_compiler_rtti_exceptions=no | |
6776 | ac_outfile=conftest.$ac_objext | |
6777 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6778 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6779 | # Insert the option either (1) after the last *FLAGS variable, or | |
6780 | # (2) before a word containing "conftest.", or (3) at the end. | |
6781 | # Note that $ac_compile itself does not contain backslashes and begins | |
6782 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6783 | # The option is referenced via a variable to avoid confusing sed. | |
6784 | lt_compile=`echo "$ac_compile" | $SED \ | |
6785 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6786 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6787 | -e 's:$: $lt_compiler_flag:'` | |
27557508 | 6788 | (eval echo "\"\$as_me:6788: $lt_compile\"" >&5) |
9c60689e DWT |
6789 | (eval "$lt_compile" 2>conftest.err) |
6790 | ac_status=$? | |
6791 | cat conftest.err >&5 | |
27557508 | 6792 | echo "$as_me:6792: \$? = $ac_status" >&5 |
9c60689e DWT |
6793 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6794 | # The compiler can only warn and ignore the option if not recognized | |
6795 | # So say no if there are warnings other than the usual output. | |
6796 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6797 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6798 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6799 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6800 | fi | |
6801 | fi | |
6802 | $RM conftest* | |
6803 | ||
6804 | fi | |
6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6806 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6807 | ||
6808 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6809 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6810 | else | |
6811 | : | |
6812 | fi | |
6813 | ||
6814 | fi | |
6815 | ||
6816 | ||
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | lt_prog_compiler_wl= | |
6822 | lt_prog_compiler_pic= | |
6823 | lt_prog_compiler_static= | |
6824 | ||
6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6826 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6827 | ||
6828 | if test "$GCC" = yes; then | |
6829 | lt_prog_compiler_wl='-Wl,' | |
6830 | lt_prog_compiler_static='-static' | |
6831 | ||
6832 | case $host_os in | |
6833 | aix*) | |
6834 | # All AIX code is PIC. | |
6835 | if test "$host_cpu" = ia64; then | |
6836 | # AIX 5 now supports IA64 processor | |
6837 | lt_prog_compiler_static='-Bstatic' | |
6838 | fi | |
6839 | ;; | |
6840 | ||
6841 | amigaos*) | |
6842 | case $host_cpu in | |
6843 | powerpc) | |
6844 | # see comment about AmigaOS4 .so support | |
6845 | lt_prog_compiler_pic='-fPIC' | |
6846 | ;; | |
6847 | m68k) | |
6848 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6849 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6850 | # like `-m68040'. | |
6851 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6852 | ;; | |
6853 | esac | |
6854 | ;; | |
6855 | ||
6856 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6857 | # PIC is the default for these OSes. | |
6858 | ;; | |
6859 | ||
6860 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6861 | # This hack is so that the source file can tell whether it is being | |
6862 | # built for inclusion in a dll (and should export symbols for example). | |
6863 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6864 | # (--disable-auto-import) libraries | |
6865 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6866 | ;; | |
6867 | ||
6868 | darwin* | rhapsody*) | |
6869 | # PIC is the default on this platform | |
6870 | # Common symbols not allowed in MH_DYLIB files | |
6871 | lt_prog_compiler_pic='-fno-common' | |
6872 | ;; | |
6873 | ||
6874 | hpux*) | |
6875 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6876 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6877 | # sets the default TLS model and affects inlining. | |
6878 | case $host_cpu in | |
6879 | hppa*64*) | |
6880 | # +Z the default | |
6881 | ;; | |
6882 | *) | |
6883 | lt_prog_compiler_pic='-fPIC' | |
6884 | ;; | |
6885 | esac | |
6886 | ;; | |
6887 | ||
6888 | interix[3-9]*) | |
6889 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6890 | # Instead, we relocate shared libraries at runtime. | |
6891 | ;; | |
6892 | ||
6893 | msdosdjgpp*) | |
6894 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6895 | # on systems that don't support them. | |
6896 | lt_prog_compiler_can_build_shared=no | |
6897 | enable_shared=no | |
6898 | ;; | |
6899 | ||
6900 | *nto* | *qnx*) | |
6901 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6902 | # it will coredump. | |
6903 | lt_prog_compiler_pic='-fPIC -shared' | |
6904 | ;; | |
6905 | ||
6906 | sysv4*MP*) | |
6907 | if test -d /usr/nec; then | |
6908 | lt_prog_compiler_pic=-Kconform_pic | |
6909 | fi | |
6910 | ;; | |
6911 | ||
6912 | *) | |
6913 | lt_prog_compiler_pic='-fPIC' | |
6914 | ;; | |
6915 | esac | |
6916 | else | |
6917 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6918 | case $host_os in | |
6919 | aix*) | |
6920 | lt_prog_compiler_wl='-Wl,' | |
6921 | if test "$host_cpu" = ia64; then | |
6922 | # AIX 5 now supports IA64 processor | |
6923 | lt_prog_compiler_static='-Bstatic' | |
6924 | else | |
6925 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6926 | fi | |
6927 | ;; | |
6928 | ||
6929 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6930 | # This hack is so that the source file can tell whether it is being | |
6931 | # built for inclusion in a dll (and should export symbols for example). | |
6932 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6933 | ;; | |
6934 | ||
6935 | hpux9* | hpux10* | hpux11*) | |
6936 | lt_prog_compiler_wl='-Wl,' | |
6937 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6938 | # not for PA HP-UX. | |
6939 | case $host_cpu in | |
6940 | hppa*64*|ia64*) | |
6941 | # +Z the default | |
6942 | ;; | |
6943 | *) | |
6944 | lt_prog_compiler_pic='+Z' | |
6945 | ;; | |
6946 | esac | |
6947 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6948 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6949 | ;; | |
6950 | ||
6951 | irix5* | irix6* | nonstopux*) | |
6952 | lt_prog_compiler_wl='-Wl,' | |
6953 | # PIC (with -KPIC) is the default. | |
6954 | lt_prog_compiler_static='-non_shared' | |
6955 | ;; | |
6956 | ||
6957 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6958 | case $cc_basename in | |
6959 | # old Intel for x86_64 which still supported -KPIC. | |
6960 | ecc*) | |
6961 | lt_prog_compiler_wl='-Wl,' | |
6962 | lt_prog_compiler_pic='-KPIC' | |
6963 | lt_prog_compiler_static='-static' | |
6964 | ;; | |
6965 | # icc used to be incompatible with GCC. | |
6966 | # ICC 10 doesn't accept -KPIC any more. | |
6967 | icc* | ifort*) | |
6968 | lt_prog_compiler_wl='-Wl,' | |
6969 | lt_prog_compiler_pic='-fPIC' | |
6970 | lt_prog_compiler_static='-static' | |
6971 | ;; | |
6972 | # Lahey Fortran 8.1. | |
6973 | lf95*) | |
6974 | lt_prog_compiler_wl='-Wl,' | |
6975 | lt_prog_compiler_pic='--shared' | |
6976 | lt_prog_compiler_static='--static' | |
6977 | ;; | |
6978 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6979 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6980 | # which looks to be a dead project) | |
6981 | lt_prog_compiler_wl='-Wl,' | |
6982 | lt_prog_compiler_pic='-fpic' | |
6983 | lt_prog_compiler_static='-Bstatic' | |
6984 | ;; | |
6985 | ccc*) | |
6986 | lt_prog_compiler_wl='-Wl,' | |
6987 | # All Alpha code is PIC. | |
6988 | lt_prog_compiler_static='-non_shared' | |
6989 | ;; | |
6990 | xl*) | |
6991 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
6992 | lt_prog_compiler_wl='-Wl,' | |
6993 | lt_prog_compiler_pic='-qpic' | |
6994 | lt_prog_compiler_static='-qstaticlink' | |
6995 | ;; | |
6996 | *) | |
6997 | case `$CC -V 2>&1 | sed 5q` in | |
6998 | *Sun\ C*) | |
6999 | # Sun C 5.9 | |
7000 | lt_prog_compiler_pic='-KPIC' | |
7001 | lt_prog_compiler_static='-Bstatic' | |
7002 | lt_prog_compiler_wl='-Wl,' | |
7003 | ;; | |
7004 | *Sun\ F*) | |
7005 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7006 | lt_prog_compiler_pic='-KPIC' | |
7007 | lt_prog_compiler_static='-Bstatic' | |
7008 | lt_prog_compiler_wl='' | |
7009 | ;; | |
7010 | esac | |
7011 | ;; | |
7012 | esac | |
7013 | ;; | |
7014 | ||
7015 | newsos6) | |
7016 | lt_prog_compiler_pic='-KPIC' | |
7017 | lt_prog_compiler_static='-Bstatic' | |
7018 | ;; | |
7019 | ||
7020 | *nto* | *qnx*) | |
7021 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7022 | # it will coredump. | |
7023 | lt_prog_compiler_pic='-fPIC -shared' | |
7024 | ;; | |
7025 | ||
7026 | osf3* | osf4* | osf5*) | |
7027 | lt_prog_compiler_wl='-Wl,' | |
7028 | # All OSF/1 code is PIC. | |
7029 | lt_prog_compiler_static='-non_shared' | |
7030 | ;; | |
7031 | ||
7032 | rdos*) | |
7033 | lt_prog_compiler_static='-non_shared' | |
7034 | ;; | |
7035 | ||
7036 | solaris*) | |
7037 | lt_prog_compiler_pic='-KPIC' | |
7038 | lt_prog_compiler_static='-Bstatic' | |
7039 | case $cc_basename in | |
7040 | f77* | f90* | f95*) | |
7041 | lt_prog_compiler_wl='-Qoption ld ';; | |
7042 | *) | |
7043 | lt_prog_compiler_wl='-Wl,';; | |
7044 | esac | |
7045 | ;; | |
7046 | ||
7047 | sunos4*) | |
7048 | lt_prog_compiler_wl='-Qoption ld ' | |
7049 | lt_prog_compiler_pic='-PIC' | |
7050 | lt_prog_compiler_static='-Bstatic' | |
7051 | ;; | |
7052 | ||
7053 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7054 | lt_prog_compiler_wl='-Wl,' | |
7055 | lt_prog_compiler_pic='-KPIC' | |
7056 | lt_prog_compiler_static='-Bstatic' | |
7057 | ;; | |
7058 | ||
7059 | sysv4*MP*) | |
7060 | if test -d /usr/nec ;then | |
7061 | lt_prog_compiler_pic='-Kconform_pic' | |
7062 | lt_prog_compiler_static='-Bstatic' | |
7063 | fi | |
7064 | ;; | |
7065 | ||
7066 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7067 | lt_prog_compiler_wl='-Wl,' | |
7068 | lt_prog_compiler_pic='-KPIC' | |
7069 | lt_prog_compiler_static='-Bstatic' | |
7070 | ;; | |
7071 | ||
7072 | unicos*) | |
7073 | lt_prog_compiler_wl='-Wl,' | |
7074 | lt_prog_compiler_can_build_shared=no | |
7075 | ;; | |
7076 | ||
7077 | uts4*) | |
7078 | lt_prog_compiler_pic='-pic' | |
7079 | lt_prog_compiler_static='-Bstatic' | |
7080 | ;; | |
7081 | ||
7082 | *) | |
7083 | lt_prog_compiler_can_build_shared=no | |
7084 | ;; | |
7085 | esac | |
7086 | fi | |
7087 | ||
7088 | case $host_os in | |
7089 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7090 | *djgpp*) | |
7091 | lt_prog_compiler_pic= | |
7092 | ;; | |
7093 | *) | |
7094 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7095 | ;; | |
7096 | esac | |
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7098 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | ||
7105 | # | |
7106 | # Check to make sure the PIC flag actually works. | |
7107 | # | |
7108 | if test -n "$lt_prog_compiler_pic"; then | |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7110 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7111 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7112 | $as_echo_n "(cached) " >&6 | |
7113 | else | |
7114 | lt_cv_prog_compiler_pic_works=no | |
7115 | ac_outfile=conftest.$ac_objext | |
7116 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7117 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7118 | # Insert the option either (1) after the last *FLAGS variable, or | |
7119 | # (2) before a word containing "conftest.", or (3) at the end. | |
7120 | # Note that $ac_compile itself does not contain backslashes and begins | |
7121 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7122 | # The option is referenced via a variable to avoid confusing sed. | |
7123 | lt_compile=`echo "$ac_compile" | $SED \ | |
7124 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7125 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7126 | -e 's:$: $lt_compiler_flag:'` | |
27557508 | 7127 | (eval echo "\"\$as_me:7127: $lt_compile\"" >&5) |
9c60689e DWT |
7128 | (eval "$lt_compile" 2>conftest.err) |
7129 | ac_status=$? | |
7130 | cat conftest.err >&5 | |
27557508 | 7131 | echo "$as_me:7131: \$? = $ac_status" >&5 |
9c60689e DWT |
7132 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7133 | # The compiler can only warn and ignore the option if not recognized | |
7134 | # So say no if there are warnings other than the usual output. | |
7135 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7136 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7137 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7138 | lt_cv_prog_compiler_pic_works=yes | |
7139 | fi | |
7140 | fi | |
7141 | $RM conftest* | |
7142 | ||
7143 | fi | |
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7145 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7146 | ||
7147 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7148 | case $lt_prog_compiler_pic in | |
7149 | "" | " "*) ;; | |
7150 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7151 | esac | |
7152 | else | |
7153 | lt_prog_compiler_pic= | |
7154 | lt_prog_compiler_can_build_shared=no | |
7155 | fi | |
7156 | ||
7157 | fi | |
7158 | ||
7159 | ||
7160 | ||
7161 | ||
7162 | ||
7163 | ||
7164 | # | |
7165 | # Check to make sure the static flag actually works. | |
7166 | # | |
7167 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7169 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7170 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7171 | $as_echo_n "(cached) " >&6 | |
7172 | else | |
7173 | lt_cv_prog_compiler_static_works=no | |
7174 | save_LDFLAGS="$LDFLAGS" | |
7175 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7176 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7177 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7178 | # The linker can only warn and ignore the option if not recognized | |
7179 | # So say no if there are warnings | |
7180 | if test -s conftest.err; then | |
7181 | # Append any errors to the config.log. | |
7182 | cat conftest.err 1>&5 | |
7183 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7184 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7185 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7186 | lt_cv_prog_compiler_static_works=yes | |
7187 | fi | |
7188 | else | |
7189 | lt_cv_prog_compiler_static_works=yes | |
7190 | fi | |
7191 | fi | |
7192 | $RM -r conftest* | |
7193 | LDFLAGS="$save_LDFLAGS" | |
7194 | ||
7195 | fi | |
7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7197 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7198 | ||
7199 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7200 | : | |
7201 | else | |
7202 | lt_prog_compiler_static= | |
7203 | fi | |
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7212 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7213 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7214 | $as_echo_n "(cached) " >&6 | |
7215 | else | |
7216 | lt_cv_prog_compiler_c_o=no | |
7217 | $RM -r conftest 2>/dev/null | |
7218 | mkdir conftest | |
7219 | cd conftest | |
7220 | mkdir out | |
7221 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7222 | ||
7223 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7224 | # Insert the option either (1) after the last *FLAGS variable, or | |
7225 | # (2) before a word containing "conftest.", or (3) at the end. | |
7226 | # Note that $ac_compile itself does not contain backslashes and begins | |
7227 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7228 | lt_compile=`echo "$ac_compile" | $SED \ | |
7229 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7230 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7231 | -e 's:$: $lt_compiler_flag:'` | |
27557508 | 7232 | (eval echo "\"\$as_me:7232: $lt_compile\"" >&5) |
9c60689e DWT |
7233 | (eval "$lt_compile" 2>out/conftest.err) |
7234 | ac_status=$? | |
7235 | cat out/conftest.err >&5 | |
27557508 | 7236 | echo "$as_me:7236: \$? = $ac_status" >&5 |
9c60689e DWT |
7237 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7238 | then | |
7239 | # The compiler can only warn and ignore the option if not recognized | |
7240 | # So say no if there are warnings | |
7241 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7242 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7243 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7244 | lt_cv_prog_compiler_c_o=yes | |
7245 | fi | |
7246 | fi | |
7247 | chmod u+w . 2>&5 | |
7248 | $RM conftest* | |
7249 | # SGI C++ compiler will create directory out/ii_files/ for | |
7250 | # template instantiation | |
7251 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7252 | $RM out/* && rmdir out | |
7253 | cd .. | |
7254 | $RM -r conftest | |
7255 | $RM conftest* | |
7256 | ||
7257 | fi | |
7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7259 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7260 | ||
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | ||
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7267 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7268 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7269 | $as_echo_n "(cached) " >&6 | |
7270 | else | |
7271 | lt_cv_prog_compiler_c_o=no | |
7272 | $RM -r conftest 2>/dev/null | |
7273 | mkdir conftest | |
7274 | cd conftest | |
7275 | mkdir out | |
7276 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7277 | ||
7278 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7279 | # Insert the option either (1) after the last *FLAGS variable, or | |
7280 | # (2) before a word containing "conftest.", or (3) at the end. | |
7281 | # Note that $ac_compile itself does not contain backslashes and begins | |
7282 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7283 | lt_compile=`echo "$ac_compile" | $SED \ | |
7284 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7285 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7286 | -e 's:$: $lt_compiler_flag:'` | |
27557508 | 7287 | (eval echo "\"\$as_me:7287: $lt_compile\"" >&5) |
9c60689e DWT |
7288 | (eval "$lt_compile" 2>out/conftest.err) |
7289 | ac_status=$? | |
7290 | cat out/conftest.err >&5 | |
27557508 | 7291 | echo "$as_me:7291: \$? = $ac_status" >&5 |
9c60689e DWT |
7292 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7293 | then | |
7294 | # The compiler can only warn and ignore the option if not recognized | |
7295 | # So say no if there are warnings | |
7296 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7297 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7298 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7299 | lt_cv_prog_compiler_c_o=yes | |
7300 | fi | |
7301 | fi | |
7302 | chmod u+w . 2>&5 | |
7303 | $RM conftest* | |
7304 | # SGI C++ compiler will create directory out/ii_files/ for | |
7305 | # template instantiation | |
7306 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7307 | $RM out/* && rmdir out | |
7308 | cd .. | |
7309 | $RM -r conftest | |
7310 | $RM conftest* | |
7311 | ||
7312 | fi | |
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7314 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7315 | ||
7316 | ||
7317 | ||
7318 | ||
7319 | hard_links="nottested" | |
7320 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7321 | # do not overwrite the value of need_locks provided by the user | |
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7323 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7324 | hard_links=yes | |
7325 | $RM conftest* | |
7326 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7327 | touch conftest.a | |
7328 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7329 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7331 | $as_echo "$hard_links" >&6; } | |
7332 | if test "$hard_links" = no; then | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7334 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7335 | need_locks=warn | |
7336 | fi | |
7337 | else | |
7338 | need_locks=no | |
7339 | fi | |
7340 | ||
7341 | ||
7342 | ||
7343 | ||
7344 | ||
7345 | ||
7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7347 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7348 | ||
7349 | runpath_var= | |
7350 | allow_undefined_flag= | |
7351 | always_export_symbols=no | |
7352 | archive_cmds= | |
7353 | archive_expsym_cmds= | |
7354 | compiler_needs_object=no | |
7355 | enable_shared_with_static_runtimes=no | |
7356 | export_dynamic_flag_spec= | |
7357 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7358 | hardcode_automatic=no | |
7359 | hardcode_direct=no | |
7360 | hardcode_direct_absolute=no | |
7361 | hardcode_libdir_flag_spec= | |
7362 | hardcode_libdir_flag_spec_ld= | |
7363 | hardcode_libdir_separator= | |
7364 | hardcode_minus_L=no | |
7365 | hardcode_shlibpath_var=unsupported | |
7366 | inherit_rpath=no | |
7367 | link_all_deplibs=unknown | |
7368 | module_cmds= | |
7369 | module_expsym_cmds= | |
7370 | old_archive_from_new_cmds= | |
7371 | old_archive_from_expsyms_cmds= | |
7372 | thread_safe_flag_spec= | |
7373 | whole_archive_flag_spec= | |
7374 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7375 | # included in the symbol list | |
7376 | include_expsyms= | |
7377 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7378 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7379 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7380 | # as well as any symbol that contains `d'. | |
7381 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7382 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7383 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7384 | # the symbol is explicitly referenced. Since portable code cannot | |
7385 | # rely on this symbol name, it's probably fine to never include it in | |
7386 | # preloaded symbol tables. | |
7387 | # Exclude shared library initialization/finalization symbols. | |
7388 | extract_expsyms_cmds= | |
7389 | ||
7390 | case $host_os in | |
7391 | cygwin* | mingw* | pw32* | cegcc*) | |
7392 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7393 | # When not using gcc, we currently assume that we are using | |
7394 | # Microsoft Visual C++. | |
7395 | if test "$GCC" != yes; then | |
7396 | with_gnu_ld=no | |
7397 | fi | |
7398 | ;; | |
7399 | interix*) | |
7400 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7401 | with_gnu_ld=yes | |
7402 | ;; | |
7403 | openbsd*) | |
7404 | with_gnu_ld=no | |
7405 | ;; | |
7406 | linux* | k*bsd*-gnu) | |
7407 | link_all_deplibs=no | |
7408 | ;; | |
7409 | esac | |
7410 | ||
7411 | ld_shlibs=yes | |
7412 | if test "$with_gnu_ld" = yes; then | |
7413 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7414 | wlarc='${wl}' | |
7415 | ||
7416 | # Set some defaults for GNU ld with shared library support. These | |
7417 | # are reset later if shared libraries are not supported. Putting them | |
7418 | # here allows them to be overridden if necessary. | |
7419 | runpath_var=LD_RUN_PATH | |
7420 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7421 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7422 | # ancient GNU ld didn't support --whole-archive et. al. | |
7423 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7424 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7425 | else | |
7426 | whole_archive_flag_spec= | |
7427 | fi | |
7428 | supports_anon_versioning=no | |
7429 | case `$LD -v 2>&1` in | |
7430 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
7431 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7432 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7433 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7434 | *\ 2.11.*) ;; # other 2.11 versions | |
7435 | *) supports_anon_versioning=yes ;; | |
7436 | esac | |
7437 | ||
7438 | # See if GNU ld supports shared libraries. | |
7439 | case $host_os in | |
7440 | aix[3-9]*) | |
7441 | # On AIX/PPC, the GNU linker is very broken | |
7442 | if test "$host_cpu" != ia64; then | |
7443 | ld_shlibs=no | |
7444 | cat <<_LT_EOF 1>&2 | |
7445 | ||
7446 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7447 | *** to be unable to reliably create shared libraries on AIX. | |
7448 | *** Therefore, libtool is disabling shared libraries support. If you | |
7449 | *** really care for shared libraries, you may want to modify your PATH | |
7450 | *** so that a non-GNU linker is found, and then restart. | |
7451 | ||
7452 | _LT_EOF | |
7453 | fi | |
7454 | ;; | |
7455 | ||
7456 | amigaos*) | |
7457 | case $host_cpu in | |
7458 | powerpc) | |
7459 | # see comment about AmigaOS4 .so support | |
7460 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7461 | archive_expsym_cmds='' | |
7462 | ;; | |
7463 | m68k) | |
7464 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7465 | hardcode_libdir_flag_spec='-L$libdir' | |
7466 | hardcode_minus_L=yes | |
7467 | ;; | |
7468 | esac | |
7469 | ;; | |
7470 | ||
7471 | beos*) | |
7472 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7473 | allow_undefined_flag=unsupported | |
7474 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7475 | # support --undefined. This deserves some investigation. FIXME | |
7476 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7477 | else | |
7478 | ld_shlibs=no | |
7479 | fi | |
7480 | ;; | |
7481 | ||
7482 | cygwin* | mingw* | pw32* | cegcc*) | |
7483 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7484 | # as there is no search path for DLLs. | |
7485 | hardcode_libdir_flag_spec='-L$libdir' | |
7486 | allow_undefined_flag=unsupported | |
7487 | always_export_symbols=no | |
7488 | enable_shared_with_static_runtimes=yes | |
7489 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7490 | ||
7491 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7492 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7493 | # If the export-symbols file already is a .def file (1st line | |
7494 | # is EXPORTS), use it as is; otherwise, prepend... | |
7495 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7496 | cp $export_symbols $output_objdir/$soname.def; | |
7497 | else | |
7498 | echo EXPORTS > $output_objdir/$soname.def; | |
7499 | cat $export_symbols >> $output_objdir/$soname.def; | |
7500 | fi~ | |
7501 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7502 | else | |
7503 | ld_shlibs=no | |
7504 | fi | |
7505 | ;; | |
7506 | ||
7507 | interix[3-9]*) | |
7508 | hardcode_direct=no | |
7509 | hardcode_shlibpath_var=no | |
7510 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7511 | export_dynamic_flag_spec='${wl}-E' | |
7512 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7513 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7514 | # default) and relocated if they conflict, which is a slow very memory | |
7515 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7516 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7517 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7518 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7519 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7520 | ;; | |
7521 | ||
7522 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
7523 | tmp_diet=no | |
7524 | if test "$host_os" = linux-dietlibc; then | |
7525 | case $cc_basename in | |
7526 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7527 | esac | |
7528 | fi | |
7529 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7530 | && test "$tmp_diet" = no | |
7531 | then | |
7532 | tmp_addflag= | |
7533 | tmp_sharedflag='-shared' | |
7534 | case $cc_basename,$host_cpu in | |
7535 | pgcc*) # Portland Group C compiler | |
7536 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7537 | tmp_addflag=' $pic_flag' | |
7538 | ;; | |
7539 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7540 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7541 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7542 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7543 | tmp_addflag=' -i_dynamic' ;; | |
7544 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7545 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7546 | ifc* | ifort*) # Intel Fortran compiler | |
7547 | tmp_addflag=' -nofor_main' ;; | |
7548 | lf95*) # Lahey Fortran 8.1 | |
7549 | whole_archive_flag_spec= | |
7550 | tmp_sharedflag='--shared' ;; | |
7551 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7552 | tmp_sharedflag='-qmkshrobj' | |
7553 | tmp_addflag= ;; | |
7554 | esac | |
7555 | case `$CC -V 2>&1 | sed 5q` in | |
7556 | *Sun\ C*) # Sun C 5.9 | |
7557 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7558 | compiler_needs_object=yes | |
7559 | tmp_sharedflag='-G' ;; | |
7560 | *Sun\ F*) # Sun Fortran 8.3 | |
7561 | tmp_sharedflag='-G' ;; | |
7562 | esac | |
7563 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7564 | ||
7565 | if test "x$supports_anon_versioning" = xyes; then | |
7566 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7567 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7568 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7569 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7570 | fi | |
7571 | ||
7572 | case $cc_basename in | |
7573 | xlf*) | |
7574 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7575 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7576 | hardcode_libdir_flag_spec= | |
7577 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7578 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7579 | if test "x$supports_anon_versioning" = xyes; then | |
7580 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7581 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7582 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7583 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7584 | fi | |
7585 | ;; | |
7586 | esac | |
7587 | else | |
7588 | ld_shlibs=no | |
7589 | fi | |
7590 | ;; | |
7591 | ||
7592 | netbsd* | netbsdelf*-gnu) | |
7593 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7594 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7595 | wlarc= | |
7596 | else | |
7597 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7598 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7599 | fi | |
7600 | ;; | |
7601 | ||
7602 | solaris*) | |
7603 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7604 | ld_shlibs=no | |
7605 | cat <<_LT_EOF 1>&2 | |
7606 | ||
7607 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7608 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7609 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7610 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7611 | *** your PATH or compiler configuration so that the native linker is | |
7612 | *** used, and then restart. | |
7613 | ||
7614 | _LT_EOF | |
7615 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7616 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7617 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7618 | else | |
7619 | ld_shlibs=no | |
7620 | fi | |
7621 | ;; | |
7622 | ||
7623 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7624 | case `$LD -v 2>&1` in | |
7625 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7626 | ld_shlibs=no | |
7627 | cat <<_LT_EOF 1>&2 | |
7628 | ||
7629 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7630 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7631 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7632 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7633 | *** your PATH or compiler configuration so that the native linker is | |
7634 | *** used, and then restart. | |
7635 | ||
7636 | _LT_EOF | |
7637 | ;; | |
7638 | *) | |
7639 | # For security reasons, it is highly recommended that you always | |
7640 | # use absolute paths for naming shared libraries, and exclude the | |
7641 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7642 | # requires that you compile everything twice, which is a pain. | |
7643 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7644 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7645 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7646 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7647 | else | |
7648 | ld_shlibs=no | |
7649 | fi | |
7650 | ;; | |
7651 | esac | |
7652 | ;; | |
7653 | ||
7654 | sunos4*) | |
7655 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7656 | wlarc= | |
7657 | hardcode_direct=yes | |
7658 | hardcode_shlibpath_var=no | |
7659 | ;; | |
7660 | ||
7661 | *) | |
7662 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7663 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7664 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7665 | else | |
7666 | ld_shlibs=no | |
7667 | fi | |
7668 | ;; | |
7669 | esac | |
7670 | ||
7671 | if test "$ld_shlibs" = no; then | |
7672 | runpath_var= | |
7673 | hardcode_libdir_flag_spec= | |
7674 | export_dynamic_flag_spec= | |
7675 | whole_archive_flag_spec= | |
7676 | fi | |
7677 | else | |
7678 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7679 | case $host_os in | |
7680 | aix3*) | |
7681 | allow_undefined_flag=unsupported | |
7682 | always_export_symbols=yes | |
7683 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
7684 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7685 | # are no directories specified by -L. | |
7686 | hardcode_minus_L=yes | |
7687 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7688 | # Neither direct hardcoding nor static linking is supported with a | |
7689 | # broken collect2. | |
7690 | hardcode_direct=unsupported | |
7691 | fi | |
7692 | ;; | |
7693 | ||
7694 | aix[4-9]*) | |
7695 | if test "$host_cpu" = ia64; then | |
7696 | # On IA64, the linker does run time linking by default, so we don't | |
7697 | # have to do anything special. | |
7698 | aix_use_runtimelinking=no | |
7699 | exp_sym_flag='-Bexport' | |
7700 | no_entry_flag="" | |
7701 | else | |
7702 | # If we're using GNU nm, then we don't want the "-C" option. | |
7703 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7704 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7705 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7706 | else | |
7707 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7708 | fi | |
7709 | aix_use_runtimelinking=no | |
7710 | ||
7711 | # Test if we are trying to use run time linking or normal | |
7712 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7713 | # need to do runtime linking. | |
7714 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7715 | for ld_flag in $LDFLAGS; do | |
7716 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7717 | aix_use_runtimelinking=yes | |
7718 | break | |
7719 | fi | |
7720 | done | |
7721 | ;; | |
7722 | esac | |
7723 | ||
7724 | exp_sym_flag='-bexport' | |
7725 | no_entry_flag='-bnoentry' | |
7726 | fi | |
7727 | ||
7728 | # When large executables or shared objects are built, AIX ld can | |
7729 | # have problems creating the table of contents. If linking a library | |
7730 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7731 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7732 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7733 | ||
7734 | archive_cmds='' | |
7735 | hardcode_direct=yes | |
7736 | hardcode_direct_absolute=yes | |
7737 | hardcode_libdir_separator=':' | |
7738 | link_all_deplibs=yes | |
7739 | file_list_spec='${wl}-f,' | |
7740 | ||
7741 | if test "$GCC" = yes; then | |
7742 | case $host_os in aix4.[012]|aix4.[012].*) | |
7743 | # We only want to do this on AIX 4.2 and lower, the check | |
7744 | # below for broken collect2 doesn't work under 4.3+ | |
7745 | collect2name=`${CC} -print-prog-name=collect2` | |
7746 | if test -f "$collect2name" && | |
7747 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7748 | then | |
7749 | # We have reworked collect2 | |
7750 | : | |
7751 | else | |
7752 | # We have old collect2 | |
7753 | hardcode_direct=unsupported | |
7754 | # It fails to find uninstalled libraries when the uninstalled | |
7755 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7756 | # to unsupported forces relinking | |
7757 | hardcode_minus_L=yes | |
7758 | hardcode_libdir_flag_spec='-L$libdir' | |
7759 | hardcode_libdir_separator= | |
7760 | fi | |
7761 | ;; | |
7762 | esac | |
7763 | shared_flag='-shared' | |
7764 | if test "$aix_use_runtimelinking" = yes; then | |
7765 | shared_flag="$shared_flag "'${wl}-G' | |
7766 | fi | |
7767 | link_all_deplibs=no | |
7768 | else | |
7769 | # not using gcc | |
7770 | if test "$host_cpu" = ia64; then | |
7771 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7772 | # chokes on -Wl,-G. The following line is correct: | |
7773 | shared_flag='-G' | |
7774 | else | |
7775 | if test "$aix_use_runtimelinking" = yes; then | |
7776 | shared_flag='${wl}-G' | |
7777 | else | |
7778 | shared_flag='${wl}-bM:SRE' | |
7779 | fi | |
7780 | fi | |
7781 | fi | |
7782 | ||
7783 | export_dynamic_flag_spec='${wl}-bexpall' | |
7784 | # It seems that -bexpall does not export symbols beginning with | |
7785 | # underscore (_), so it is better to generate a list of symbols to export. | |
7786 | always_export_symbols=yes | |
7787 | if test "$aix_use_runtimelinking" = yes; then | |
7788 | # Warning - without using the other runtime loading flags (-brtl), | |
7789 | # -berok will link without error, but may produce a broken library. | |
7790 | allow_undefined_flag='-berok' | |
7791 | # Determine the default libpath from the value encoded in an | |
7792 | # empty executable. | |
7793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7794 | /* end confdefs.h. */ | |
7795 | ||
7796 | int | |
7797 | main () | |
7798 | { | |
7799 | ||
7800 | ; | |
7801 | return 0; | |
7802 | } | |
7803 | _ACEOF | |
7804 | if ac_fn_c_try_link "$LINENO"; then : | |
7805 | ||
7806 | lt_aix_libpath_sed=' | |
7807 | /Import File Strings/,/^$/ { | |
7808 | /^0/ { | |
7809 | s/^0 *\(.*\)$/\1/ | |
7810 | p | |
7811 | } | |
7812 | }' | |
7813 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7814 | # Check for a 64-bit object if we didn't find anything. | |
7815 | if test -z "$aix_libpath"; then | |
7816 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7817 | fi | |
7818 | fi | |
7819 | rm -f core conftest.err conftest.$ac_objext \ | |
7820 | conftest$ac_exeext conftest.$ac_ext | |
7821 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7822 | ||
7823 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7824 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7825 | else | |
7826 | if test "$host_cpu" = ia64; then | |
7827 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7828 | allow_undefined_flag="-z nodefs" | |
7829 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
7830 | else | |
7831 | # Determine the default libpath from the value encoded in an | |
7832 | # empty executable. | |
7833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7834 | /* end confdefs.h. */ | |
7835 | ||
7836 | int | |
7837 | main () | |
7838 | { | |
7839 | ||
7840 | ; | |
7841 | return 0; | |
7842 | } | |
7843 | _ACEOF | |
7844 | if ac_fn_c_try_link "$LINENO"; then : | |
7845 | ||
7846 | lt_aix_libpath_sed=' | |
7847 | /Import File Strings/,/^$/ { | |
7848 | /^0/ { | |
7849 | s/^0 *\(.*\)$/\1/ | |
7850 | p | |
7851 | } | |
7852 | }' | |
7853 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7854 | # Check for a 64-bit object if we didn't find anything. | |
7855 | if test -z "$aix_libpath"; then | |
7856 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7857 | fi | |
7858 | fi | |
7859 | rm -f core conftest.err conftest.$ac_objext \ | |
7860 | conftest$ac_exeext conftest.$ac_ext | |
7861 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7862 | ||
7863 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7864 | # Warning - without using the other run time loading flags, | |
7865 | # -berok will link without error, but may produce a broken library. | |
7866 | no_undefined_flag=' ${wl}-bernotok' | |
7867 | allow_undefined_flag=' ${wl}-berok' | |
7868 | # Exported symbols can be pulled into shared objects from archives | |
7869 | whole_archive_flag_spec='$convenience' | |
7870 | archive_cmds_need_lc=yes | |
7871 | # This is similar to how AIX traditionally builds its shared libraries. | |
7872 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7873 | fi | |
7874 | fi | |
7875 | ;; | |
7876 | ||
7877 | amigaos*) | |
7878 | case $host_cpu in | |
7879 | powerpc) | |
7880 | # see comment about AmigaOS4 .so support | |
7881 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7882 | archive_expsym_cmds='' | |
7883 | ;; | |
7884 | m68k) | |
7885 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7886 | hardcode_libdir_flag_spec='-L$libdir' | |
7887 | hardcode_minus_L=yes | |
7888 | ;; | |
7889 | esac | |
7890 | ;; | |
7891 | ||
7892 | bsdi[45]*) | |
7893 | export_dynamic_flag_spec=-rdynamic | |
7894 | ;; | |
7895 | ||
7896 | cygwin* | mingw* | pw32* | cegcc*) | |
7897 | # When not using gcc, we currently assume that we are using | |
7898 | # Microsoft Visual C++. | |
7899 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7900 | # no search path for DLLs. | |
7901 | hardcode_libdir_flag_spec=' ' | |
7902 | allow_undefined_flag=unsupported | |
7903 | # Tell ltmain to make .lib files, not .a files. | |
7904 | libext=lib | |
7905 | # Tell ltmain to make .dll files, not .so files. | |
7906 | shrext_cmds=".dll" | |
7907 | # FIXME: Setting linknames here is a bad hack. | |
7908 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7909 | # The linker will automatically build a .lib file if we build a DLL. | |
7910 | old_archive_from_new_cmds='true' | |
7911 | # FIXME: Should let the user specify the lib program. | |
7912 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7913 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7914 | enable_shared_with_static_runtimes=yes | |
7915 | ;; | |
7916 | ||
7917 | darwin* | rhapsody*) | |
7918 | ||
7919 | ||
7920 | archive_cmds_need_lc=no | |
7921 | hardcode_direct=no | |
7922 | hardcode_automatic=yes | |
7923 | hardcode_shlibpath_var=unsupported | |
7924 | whole_archive_flag_spec='' | |
7925 | link_all_deplibs=yes | |
7926 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7927 | case $cc_basename in | |
7928 | ifort*) _lt_dar_can_shared=yes ;; | |
7929 | *) _lt_dar_can_shared=$GCC ;; | |
7930 | esac | |
7931 | if test "$_lt_dar_can_shared" = "yes"; then | |
7932 | output_verbose_link_cmd=echo | |
7933 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7934 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7935 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
7936 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
7937 | ||
7938 | else | |
7939 | ld_shlibs=no | |
7940 | fi | |
7941 | ||
7942 | ;; | |
7943 | ||
7944 | dgux*) | |
7945 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7946 | hardcode_libdir_flag_spec='-L$libdir' | |
7947 | hardcode_shlibpath_var=no | |
7948 | ;; | |
7949 | ||
7950 | freebsd1*) | |
7951 | ld_shlibs=no | |
7952 | ;; | |
7953 | ||
7954 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7955 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7956 | # does not break anything, and helps significantly (at the cost of a little | |
7957 | # extra space). | |
7958 | freebsd2.2*) | |
7959 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7960 | hardcode_libdir_flag_spec='-R$libdir' | |
7961 | hardcode_direct=yes | |
7962 | hardcode_shlibpath_var=no | |
7963 | ;; | |
7964 | ||
7965 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7966 | freebsd2*) | |
7967 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7968 | hardcode_direct=yes | |
7969 | hardcode_minus_L=yes | |
7970 | hardcode_shlibpath_var=no | |
7971 | ;; | |
7972 | ||
7973 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7974 | freebsd* | dragonfly*) | |
7975 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7976 | hardcode_libdir_flag_spec='-R$libdir' | |
7977 | hardcode_direct=yes | |
7978 | hardcode_shlibpath_var=no | |
7979 | ;; | |
7980 | ||
7981 | hpux9*) | |
7982 | if test "$GCC" = yes; then | |
7983 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7984 | else | |
7985 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7986 | fi | |
7987 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7988 | hardcode_libdir_separator=: | |
7989 | hardcode_direct=yes | |
7990 | ||
7991 | # hardcode_minus_L: Not really in the search PATH, | |
7992 | # but as the default location of the library. | |
7993 | hardcode_minus_L=yes | |
7994 | export_dynamic_flag_spec='${wl}-E' | |
7995 | ;; | |
7996 | ||
7997 | hpux10*) | |
7998 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7999 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8000 | else | |
8001 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8002 | fi | |
8003 | if test "$with_gnu_ld" = no; then | |
8004 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8005 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8006 | hardcode_libdir_separator=: | |
8007 | hardcode_direct=yes | |
8008 | hardcode_direct_absolute=yes | |
8009 | export_dynamic_flag_spec='${wl}-E' | |
8010 | # hardcode_minus_L: Not really in the search PATH, | |
8011 | # but as the default location of the library. | |
8012 | hardcode_minus_L=yes | |
8013 | fi | |
8014 | ;; | |
8015 | ||
8016 | hpux11*) | |
8017 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8018 | case $host_cpu in | |
8019 | hppa*64*) | |
8020 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8021 | ;; | |
8022 | ia64*) | |
8023 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8024 | ;; | |
8025 | *) | |
8026 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8027 | ;; | |
8028 | esac | |
8029 | else | |
8030 | case $host_cpu in | |
8031 | hppa*64*) | |
8032 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8033 | ;; | |
8034 | ia64*) | |
8035 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8036 | ;; | |
8037 | *) | |
8038 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8039 | ;; | |
8040 | esac | |
8041 | fi | |
8042 | if test "$with_gnu_ld" = no; then | |
8043 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8044 | hardcode_libdir_separator=: | |
8045 | ||
8046 | case $host_cpu in | |
8047 | hppa*64*|ia64*) | |
8048 | hardcode_direct=no | |
8049 | hardcode_shlibpath_var=no | |
8050 | ;; | |
8051 | *) | |
8052 | hardcode_direct=yes | |
8053 | hardcode_direct_absolute=yes | |
8054 | export_dynamic_flag_spec='${wl}-E' | |
8055 | ||
8056 | # hardcode_minus_L: Not really in the search PATH, | |
8057 | # but as the default location of the library. | |
8058 | hardcode_minus_L=yes | |
8059 | ;; | |
8060 | esac | |
8061 | fi | |
8062 | ;; | |
8063 | ||
8064 | irix5* | irix6* | nonstopux*) | |
8065 | if test "$GCC" = yes; then | |
8066 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8067 | # Try to use the -exported_symbol ld option, if it does not | |
8068 | # work, assume that -exports_file does not work either and | |
8069 | # implicitly export all symbols. | |
8070 | save_LDFLAGS="$LDFLAGS" | |
8071 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8073 | /* end confdefs.h. */ | |
8074 | int foo(void) {} | |
8075 | _ACEOF | |
8076 | if ac_fn_c_try_link "$LINENO"; then : | |
8077 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8078 | ||
8079 | fi | |
8080 | rm -f core conftest.err conftest.$ac_objext \ | |
8081 | conftest$ac_exeext conftest.$ac_ext | |
8082 | LDFLAGS="$save_LDFLAGS" | |
8083 | else | |
8084 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8085 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8086 | fi | |
8087 | archive_cmds_need_lc='no' | |
8088 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8089 | hardcode_libdir_separator=: | |
8090 | inherit_rpath=yes | |
8091 | link_all_deplibs=yes | |
8092 | ;; | |
8093 | ||
8094 | netbsd* | netbsdelf*-gnu) | |
8095 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8096 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8097 | else | |
8098 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8099 | fi | |
8100 | hardcode_libdir_flag_spec='-R$libdir' | |
8101 | hardcode_direct=yes | |
8102 | hardcode_shlibpath_var=no | |
8103 | ;; | |
8104 | ||
8105 | newsos6) | |
8106 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8107 | hardcode_direct=yes | |
8108 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8109 | hardcode_libdir_separator=: | |
8110 | hardcode_shlibpath_var=no | |
8111 | ;; | |
8112 | ||
8113 | *nto* | *qnx*) | |
8114 | ;; | |
8115 | ||
8116 | openbsd*) | |
8117 | if test -f /usr/libexec/ld.so; then | |
8118 | hardcode_direct=yes | |
8119 | hardcode_shlibpath_var=no | |
8120 | hardcode_direct_absolute=yes | |
8121 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8122 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8123 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8124 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8125 | export_dynamic_flag_spec='${wl}-E' | |
8126 | else | |
8127 | case $host_os in | |
8128 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8129 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8130 | hardcode_libdir_flag_spec='-R$libdir' | |
8131 | ;; | |
8132 | *) | |
8133 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8134 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8135 | ;; | |
8136 | esac | |
8137 | fi | |
8138 | else | |
8139 | ld_shlibs=no | |
8140 | fi | |
8141 | ;; | |
8142 | ||
8143 | os2*) | |
8144 | hardcode_libdir_flag_spec='-L$libdir' | |
8145 | hardcode_minus_L=yes | |
8146 | allow_undefined_flag=unsupported | |
8147 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
8148 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8149 | ;; | |
8150 | ||
8151 | osf3*) | |
8152 | if test "$GCC" = yes; then | |
8153 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8154 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8155 | else | |
8156 | allow_undefined_flag=' -expect_unresolved \*' | |
8157 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8158 | fi | |
8159 | archive_cmds_need_lc='no' | |
8160 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8161 | hardcode_libdir_separator=: | |
8162 | ;; | |
8163 | ||
8164 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8165 | if test "$GCC" = yes; then | |
8166 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8167 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8168 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8169 | else | |
8170 | allow_undefined_flag=' -expect_unresolved \*' | |
8171 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8172 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
8173 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8174 | ||
8175 | # Both c and cxx compiler support -rpath directly | |
8176 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8177 | fi | |
8178 | archive_cmds_need_lc='no' | |
8179 | hardcode_libdir_separator=: | |
8180 | ;; | |
8181 | ||
8182 | solaris*) | |
8183 | no_undefined_flag=' -z defs' | |
8184 | if test "$GCC" = yes; then | |
8185 | wlarc='${wl}' | |
8186 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8187 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8188 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8189 | else | |
8190 | case `$CC -V 2>&1` in | |
8191 | *"Compilers 5.0"*) | |
8192 | wlarc='' | |
8193 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8194 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8195 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8196 | ;; | |
8197 | *) | |
8198 | wlarc='${wl}' | |
8199 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8200 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8201 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8202 | ;; | |
8203 | esac | |
8204 | fi | |
8205 | hardcode_libdir_flag_spec='-R$libdir' | |
8206 | hardcode_shlibpath_var=no | |
8207 | case $host_os in | |
8208 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8209 | *) | |
8210 | # The compiler driver will combine and reorder linker options, | |
8211 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8212 | # but is careful enough not to reorder. | |
8213 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8214 | if test "$GCC" = yes; then | |
8215 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8216 | else | |
8217 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8218 | fi | |
8219 | ;; | |
8220 | esac | |
8221 | link_all_deplibs=yes | |
8222 | ;; | |
8223 | ||
8224 | sunos4*) | |
8225 | if test "x$host_vendor" = xsequent; then | |
8226 | # Use $CC to link under sequent, because it throws in some extra .o | |
8227 | # files that make .init and .fini sections work. | |
8228 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8229 | else | |
8230 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8231 | fi | |
8232 | hardcode_libdir_flag_spec='-L$libdir' | |
8233 | hardcode_direct=yes | |
8234 | hardcode_minus_L=yes | |
8235 | hardcode_shlibpath_var=no | |
8236 | ;; | |
8237 | ||
8238 | sysv4) | |
8239 | case $host_vendor in | |
8240 | sni) | |
8241 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8242 | hardcode_direct=yes # is this really true??? | |
8243 | ;; | |
8244 | siemens) | |
8245 | ## LD is ld it makes a PLAMLIB | |
8246 | ## CC just makes a GrossModule. | |
8247 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8248 | reload_cmds='$CC -r -o $output$reload_objs' | |
8249 | hardcode_direct=no | |
8250 | ;; | |
8251 | motorola) | |
8252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8253 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8254 | ;; | |
8255 | esac | |
8256 | runpath_var='LD_RUN_PATH' | |
8257 | hardcode_shlibpath_var=no | |
8258 | ;; | |
8259 | ||
8260 | sysv4.3*) | |
8261 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8262 | hardcode_shlibpath_var=no | |
8263 | export_dynamic_flag_spec='-Bexport' | |
8264 | ;; | |
8265 | ||
8266 | sysv4*MP*) | |
8267 | if test -d /usr/nec; then | |
8268 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8269 | hardcode_shlibpath_var=no | |
8270 | runpath_var=LD_RUN_PATH | |
8271 | hardcode_runpath_var=yes | |
8272 | ld_shlibs=yes | |
8273 | fi | |
8274 | ;; | |
8275 | ||
8276 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8277 | no_undefined_flag='${wl}-z,text' | |
8278 | archive_cmds_need_lc=no | |
8279 | hardcode_shlibpath_var=no | |
8280 | runpath_var='LD_RUN_PATH' | |
8281 | ||
8282 | if test "$GCC" = yes; then | |
8283 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8284 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8285 | else | |
8286 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8287 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8288 | fi | |
8289 | ;; | |
8290 | ||
8291 | sysv5* | sco3.2v5* | sco5v6*) | |
8292 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8293 | # link with -lc, and that would cause any symbols used from libc to | |
8294 | # always be unresolved, which means just about no library would | |
8295 | # ever link correctly. If we're not using GNU ld we use -z text | |
8296 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8297 | # as -z defs. | |
8298 | no_undefined_flag='${wl}-z,text' | |
8299 | allow_undefined_flag='${wl}-z,nodefs' | |
8300 | archive_cmds_need_lc=no | |
8301 | hardcode_shlibpath_var=no | |
8302 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8303 | hardcode_libdir_separator=':' | |
8304 | link_all_deplibs=yes | |
8305 | export_dynamic_flag_spec='${wl}-Bexport' | |
8306 | runpath_var='LD_RUN_PATH' | |
8307 | ||
8308 | if test "$GCC" = yes; then | |
8309 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8310 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8311 | else | |
8312 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8313 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8314 | fi | |
8315 | ;; | |
8316 | ||
8317 | uts4*) | |
8318 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8319 | hardcode_libdir_flag_spec='-L$libdir' | |
8320 | hardcode_shlibpath_var=no | |
8321 | ;; | |
8322 | ||
8323 | *) | |
8324 | ld_shlibs=no | |
8325 | ;; | |
8326 | esac | |
8327 | ||
8328 | if test x$host_vendor = xsni; then | |
8329 | case $host in | |
8330 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8331 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8332 | ;; | |
8333 | esac | |
8334 | fi | |
8335 | fi | |
8336 | ||
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8338 | $as_echo "$ld_shlibs" >&6; } | |
8339 | test "$ld_shlibs" = no && can_build_shared=no | |
8340 | ||
8341 | with_gnu_ld=$with_gnu_ld | |
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | ||
8353 | ||
8354 | ||
8355 | ||
8356 | ||
8357 | # | |
8358 | # Do we need to explicitly link libc? | |
8359 | # | |
8360 | case "x$archive_cmds_need_lc" in | |
8361 | x|xyes) | |
8362 | # Assume -lc should be added | |
8363 | archive_cmds_need_lc=yes | |
8364 | ||
8365 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8366 | case $archive_cmds in | |
8367 | *'~'*) | |
8368 | # FIXME: we may have to deal with multi-command sequences. | |
8369 | ;; | |
8370 | '$CC '*) | |
8371 | # Test whether the compiler implicitly links with -lc since on some | |
8372 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8373 | # to ld, don't add -lc before -lgcc. | |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8375 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8376 | $RM conftest* | |
8377 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8378 | ||
8379 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8380 | (eval $ac_compile) 2>&5 | |
8381 | ac_status=$? | |
8382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8383 | test $ac_status = 0; } 2>conftest.err; then | |
8384 | soname=conftest | |
8385 | lib=conftest | |
8386 | libobjs=conftest.$ac_objext | |
8387 | deplibs= | |
8388 | wl=$lt_prog_compiler_wl | |
8389 | pic_flag=$lt_prog_compiler_pic | |
8390 | compiler_flags=-v | |
8391 | linker_flags=-v | |
8392 | verstring= | |
8393 | output_objdir=. | |
8394 | libname=conftest | |
8395 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8396 | allow_undefined_flag= | |
8397 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8398 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8399 | ac_status=$? | |
8400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8401 | test $ac_status = 0; } | |
8402 | then | |
8403 | archive_cmds_need_lc=no | |
8404 | else | |
8405 | archive_cmds_need_lc=yes | |
8406 | fi | |
8407 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8408 | else | |
8409 | cat conftest.err 1>&5 | |
8410 | fi | |
8411 | $RM conftest* | |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8413 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8414 | ;; | |
8415 | esac | |
8416 | fi | |
8417 | ;; | |
8418 | esac | |
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
8453 | ||
8454 | ||
8455 | ||
8456 | ||
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8577 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8578 | ||
8579 | if test "$GCC" = yes; then | |
8580 | case $host_os in | |
8581 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8582 | *) lt_awk_arg="/^libraries:/" ;; | |
8583 | esac | |
8584 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8585 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8586 | # if the path contains ";" then we assume it to be the separator | |
8587 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8588 | # assumed that no part of a normal pathname contains ";" but that should | |
8589 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8590 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8591 | else | |
8592 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8593 | fi | |
8594 | # Ok, now we have the path, separated by spaces, we can step through it | |
8595 | # and add multilib dir if necessary. | |
8596 | lt_tmp_lt_search_path_spec= | |
8597 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8598 | for lt_sys_path in $lt_search_path_spec; do | |
8599 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8600 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8601 | else | |
8602 | test -d "$lt_sys_path" && \ | |
8603 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8604 | fi | |
8605 | done | |
8606 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8607 | BEGIN {RS=" "; FS="/|\n";} { | |
8608 | lt_foo=""; | |
8609 | lt_count=0; | |
8610 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8611 | if ($lt_i != "" && $lt_i != ".") { | |
8612 | if ($lt_i == "..") { | |
8613 | lt_count++; | |
8614 | } else { | |
8615 | if (lt_count == 0) { | |
8616 | lt_foo="/" $lt_i lt_foo; | |
8617 | } else { | |
8618 | lt_count--; | |
8619 | } | |
8620 | } | |
8621 | } | |
8622 | } | |
8623 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8624 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8625 | }'` | |
8626 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8627 | else | |
8628 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8629 | fi | |
8630 | library_names_spec= | |
8631 | libname_spec='lib$name' | |
8632 | soname_spec= | |
8633 | shrext_cmds=".so" | |
8634 | postinstall_cmds= | |
8635 | postuninstall_cmds= | |
8636 | finish_cmds= | |
8637 | finish_eval= | |
8638 | shlibpath_var= | |
8639 | shlibpath_overrides_runpath=unknown | |
8640 | version_type=none | |
8641 | dynamic_linker="$host_os ld.so" | |
8642 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8643 | need_lib_prefix=unknown | |
8644 | hardcode_into_libs=no | |
8645 | ||
8646 | # when you set need_version to no, make sure it does not cause -set_version | |
8647 | # flags to be left without arguments | |
8648 | need_version=unknown | |
8649 | ||
8650 | case $host_os in | |
8651 | aix3*) | |
8652 | version_type=linux | |
8653 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8654 | shlibpath_var=LIBPATH | |
8655 | ||
8656 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8657 | soname_spec='${libname}${release}${shared_ext}$major' | |
8658 | ;; | |
8659 | ||
8660 | aix[4-9]*) | |
8661 | version_type=linux | |
8662 | need_lib_prefix=no | |
8663 | need_version=no | |
8664 | hardcode_into_libs=yes | |
8665 | if test "$host_cpu" = ia64; then | |
8666 | # AIX 5 supports IA64 | |
8667 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8668 | shlibpath_var=LD_LIBRARY_PATH | |
8669 | else | |
8670 | # With GCC up to 2.95.x, collect2 would create an import file | |
8671 | # for dependence libraries. The import file would start with | |
8672 | # the line `#! .'. This would cause the generated library to | |
8673 | # depend on `.', always an invalid library. This was fixed in | |
8674 | # development snapshots of GCC prior to 3.0. | |
8675 | case $host_os in | |
8676 | aix4 | aix4.[01] | aix4.[01].*) | |
8677 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8678 | echo ' yes ' | |
8679 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8680 | : | |
8681 | else | |
8682 | can_build_shared=no | |
8683 | fi | |
8684 | ;; | |
8685 | esac | |
8686 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8687 | # soname into executable. Probably we can add versioning support to | |
8688 | # collect2, so additional links can be useful in future. | |
8689 | if test "$aix_use_runtimelinking" = yes; then | |
8690 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8691 | # instead of lib<name>.a to let people know that these are not | |
8692 | # typical AIX shared libraries. | |
8693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8694 | else | |
8695 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8696 | # and later when we are not doing run time linking. | |
8697 | library_names_spec='${libname}${release}.a $libname.a' | |
8698 | soname_spec='${libname}${release}${shared_ext}$major' | |
8699 | fi | |
8700 | shlibpath_var=LIBPATH | |
8701 | fi | |
8702 | ;; | |
8703 | ||
8704 | amigaos*) | |
8705 | case $host_cpu in | |
8706 | powerpc) | |
8707 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8708 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8710 | ;; | |
8711 | m68k) | |
8712 | library_names_spec='$libname.ixlibrary $libname.a' | |
8713 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8714 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
8715 | ;; | |
8716 | esac | |
8717 | ;; | |
8718 | ||
8719 | beos*) | |
8720 | library_names_spec='${libname}${shared_ext}' | |
8721 | dynamic_linker="$host_os ld.so" | |
8722 | shlibpath_var=LIBRARY_PATH | |
8723 | ;; | |
8724 | ||
8725 | bsdi[45]*) | |
8726 | version_type=linux | |
8727 | need_version=no | |
8728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8729 | soname_spec='${libname}${release}${shared_ext}$major' | |
8730 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8731 | shlibpath_var=LD_LIBRARY_PATH | |
8732 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8733 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8734 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8735 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8736 | # libtool to hard-code these into programs | |
8737 | ;; | |
8738 | ||
8739 | cygwin* | mingw* | pw32* | cegcc*) | |
8740 | version_type=windows | |
8741 | shrext_cmds=".dll" | |
8742 | need_version=no | |
8743 | need_lib_prefix=no | |
8744 | ||
8745 | case $GCC,$host_os in | |
8746 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8747 | library_names_spec='$libname.dll.a' | |
8748 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8749 | postinstall_cmds='base_file=`basename \${file}`~ | |
8750 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8751 | dldir=$destdir/`dirname \$dlpath`~ | |
8752 | test -d \$dldir || mkdir -p \$dldir~ | |
8753 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8754 | chmod a+x \$dldir/$dlname~ | |
8755 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8756 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8757 | fi' | |
8758 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8759 | dlpath=$dir/\$dldll~ | |
8760 | $RM \$dlpath' | |
8761 | shlibpath_overrides_runpath=yes | |
8762 | ||
8763 | case $host_os in | |
8764 | cygwin*) | |
8765 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8766 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8767 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8768 | ;; | |
8769 | mingw* | cegcc*) | |
8770 | # MinGW DLLs use traditional 'lib' prefix | |
8771 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8772 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8773 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8774 | # It is most probably a Windows format PATH printed by | |
8775 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8776 | # path with ; separators, and with drive letters. We can handle the | |
8777 | # drive letters (cygwin fileutils understands them), so leave them, | |
8778 | # especially as we might pass files found there to a mingw objdump, | |
8779 | # which wouldn't understand a cygwinified path. Ahh. | |
8780 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8781 | else | |
8782 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8783 | fi | |
8784 | ;; | |
8785 | pw32*) | |
8786 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8787 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8788 | ;; | |
8789 | esac | |
8790 | ;; | |
8791 | ||
8792 | *) | |
8793 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8794 | ;; | |
8795 | esac | |
8796 | dynamic_linker='Win32 ld.exe' | |
8797 | # FIXME: first we should search . and the directory the executable is in | |
8798 | shlibpath_var=PATH | |
8799 | ;; | |
8800 | ||
8801 | darwin* | rhapsody*) | |
8802 | dynamic_linker="$host_os dyld" | |
8803 | version_type=darwin | |
8804 | need_lib_prefix=no | |
8805 | need_version=no | |
8806 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8807 | soname_spec='${libname}${release}${major}$shared_ext' | |
8808 | shlibpath_overrides_runpath=yes | |
8809 | shlibpath_var=DYLD_LIBRARY_PATH | |
8810 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8811 | ||
8812 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8813 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8814 | ;; | |
8815 | ||
8816 | dgux*) | |
8817 | version_type=linux | |
8818 | need_lib_prefix=no | |
8819 | need_version=no | |
8820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8821 | soname_spec='${libname}${release}${shared_ext}$major' | |
8822 | shlibpath_var=LD_LIBRARY_PATH | |
8823 | ;; | |
8824 | ||
8825 | freebsd1*) | |
8826 | dynamic_linker=no | |
8827 | ;; | |
8828 | ||
8829 | freebsd* | dragonfly*) | |
8830 | # DragonFly does not have aout. When/if they implement a new | |
8831 | # versioning mechanism, adjust this. | |
8832 | if test -x /usr/bin/objformat; then | |
8833 | objformat=`/usr/bin/objformat` | |
8834 | else | |
8835 | case $host_os in | |
8836 | freebsd[123]*) objformat=aout ;; | |
8837 | *) objformat=elf ;; | |
8838 | esac | |
8839 | fi | |
8840 | version_type=freebsd-$objformat | |
8841 | case $version_type in | |
8842 | freebsd-elf*) | |
8843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8844 | need_version=no | |
8845 | need_lib_prefix=no | |
8846 | ;; | |
8847 | freebsd-*) | |
8848 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8849 | need_version=yes | |
8850 | ;; | |
8851 | esac | |
8852 | shlibpath_var=LD_LIBRARY_PATH | |
8853 | case $host_os in | |
8854 | freebsd2*) | |
8855 | shlibpath_overrides_runpath=yes | |
8856 | ;; | |
8857 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8858 | shlibpath_overrides_runpath=yes | |
8859 | hardcode_into_libs=yes | |
8860 | ;; | |
8861 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8862 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8863 | shlibpath_overrides_runpath=no | |
8864 | hardcode_into_libs=yes | |
8865 | ;; | |
8866 | *) # from 4.6 on, and DragonFly | |
8867 | shlibpath_overrides_runpath=yes | |
8868 | hardcode_into_libs=yes | |
8869 | ;; | |
8870 | esac | |
8871 | ;; | |
8872 | ||
8873 | gnu*) | |
8874 | version_type=linux | |
8875 | need_lib_prefix=no | |
8876 | need_version=no | |
8877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8878 | soname_spec='${libname}${release}${shared_ext}$major' | |
8879 | shlibpath_var=LD_LIBRARY_PATH | |
8880 | hardcode_into_libs=yes | |
8881 | ;; | |
8882 | ||
8883 | hpux9* | hpux10* | hpux11*) | |
8884 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8885 | # link against other versions. | |
8886 | version_type=sunos | |
8887 | need_lib_prefix=no | |
8888 | need_version=no | |
8889 | case $host_cpu in | |
8890 | ia64*) | |
8891 | shrext_cmds='.so' | |
8892 | hardcode_into_libs=yes | |
8893 | dynamic_linker="$host_os dld.so" | |
8894 | shlibpath_var=LD_LIBRARY_PATH | |
8895 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8897 | soname_spec='${libname}${release}${shared_ext}$major' | |
8898 | if test "X$HPUX_IA64_MODE" = X32; then | |
8899 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8900 | else | |
8901 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8902 | fi | |
8903 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8904 | ;; | |
8905 | hppa*64*) | |
8906 | shrext_cmds='.sl' | |
8907 | hardcode_into_libs=yes | |
8908 | dynamic_linker="$host_os dld.sl" | |
8909 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8910 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8912 | soname_spec='${libname}${release}${shared_ext}$major' | |
8913 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8914 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8915 | ;; | |
8916 | *) | |
8917 | shrext_cmds='.sl' | |
8918 | dynamic_linker="$host_os dld.sl" | |
8919 | shlibpath_var=SHLIB_PATH | |
8920 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8922 | soname_spec='${libname}${release}${shared_ext}$major' | |
8923 | ;; | |
8924 | esac | |
8925 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8926 | postinstall_cmds='chmod 555 $lib' | |
8927 | ;; | |
8928 | ||
8929 | interix[3-9]*) | |
8930 | version_type=linux | |
8931 | need_lib_prefix=no | |
8932 | need_version=no | |
8933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8934 | soname_spec='${libname}${release}${shared_ext}$major' | |
8935 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8936 | shlibpath_var=LD_LIBRARY_PATH | |
8937 | shlibpath_overrides_runpath=no | |
8938 | hardcode_into_libs=yes | |
8939 | ;; | |
8940 | ||
8941 | irix5* | irix6* | nonstopux*) | |
8942 | case $host_os in | |
8943 | nonstopux*) version_type=nonstopux ;; | |
8944 | *) | |
8945 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8946 | version_type=linux | |
8947 | else | |
8948 | version_type=irix | |
8949 | fi ;; | |
8950 | esac | |
8951 | need_lib_prefix=no | |
8952 | need_version=no | |
8953 | soname_spec='${libname}${release}${shared_ext}$major' | |
8954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8955 | case $host_os in | |
8956 | irix5* | nonstopux*) | |
8957 | libsuff= shlibsuff= | |
8958 | ;; | |
8959 | *) | |
8960 | case $LD in # libtool.m4 will add one of these switches to LD | |
8961 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8962 | libsuff= shlibsuff= libmagic=32-bit;; | |
8963 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8964 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8965 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8966 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8967 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8968 | esac | |
8969 | ;; | |
8970 | esac | |
8971 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8972 | shlibpath_overrides_runpath=no | |
8973 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8974 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8975 | hardcode_into_libs=yes | |
8976 | ;; | |
8977 | ||
8978 | # No shared lib support for Linux oldld, aout, or coff. | |
8979 | linux*oldld* | linux*aout* | linux*coff*) | |
8980 | dynamic_linker=no | |
8981 | ;; | |
8982 | ||
8983 | # This must be Linux ELF. | |
8984 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8985 | version_type=linux | |
8986 | need_lib_prefix=no | |
8987 | need_version=no | |
8988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8989 | soname_spec='${libname}${release}${shared_ext}$major' | |
8990 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8991 | shlibpath_var=LD_LIBRARY_PATH | |
8992 | shlibpath_overrides_runpath=no | |
8993 | # Some binutils ld are patched to set DT_RUNPATH | |
8994 | save_LDFLAGS=$LDFLAGS | |
8995 | save_libdir=$libdir | |
8996 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
8997 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
8998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8999 | /* end confdefs.h. */ | |
9000 | ||
9001 | int | |
9002 | main () | |
9003 | { | |
9004 | ||
9005 | ; | |
9006 | return 0; | |
9007 | } | |
9008 | _ACEOF | |
9009 | if ac_fn_c_try_link "$LINENO"; then : | |
9010 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9011 | shlibpath_overrides_runpath=yes | |
9012 | fi | |
9013 | fi | |
9014 | rm -f core conftest.err conftest.$ac_objext \ | |
9015 | conftest$ac_exeext conftest.$ac_ext | |
9016 | LDFLAGS=$save_LDFLAGS | |
9017 | libdir=$save_libdir | |
9018 | ||
9019 | # This implies no fast_install, which is unacceptable. | |
9020 | # Some rework will be needed to allow for fast_install | |
9021 | # before this can be enabled. | |
9022 | hardcode_into_libs=yes | |
9023 | ||
9024 | # Append ld.so.conf contents to the search path | |
9025 | if test -f /etc/ld.so.conf; then | |
9026 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9027 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9028 | fi | |
9029 | ||
9030 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9031 | # powerpc, because MkLinux only supported shared libraries with the | |
9032 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9033 | # most powerpc-linux boxes support dynamic linking these days and | |
9034 | # people can always --disable-shared, the test was removed, and we | |
9035 | # assume the GNU/Linux dynamic linker is in use. | |
9036 | dynamic_linker='GNU/Linux ld.so' | |
9037 | ;; | |
9038 | ||
9039 | netbsdelf*-gnu) | |
9040 | version_type=linux | |
9041 | need_lib_prefix=no | |
9042 | need_version=no | |
9043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9044 | soname_spec='${libname}${release}${shared_ext}$major' | |
9045 | shlibpath_var=LD_LIBRARY_PATH | |
9046 | shlibpath_overrides_runpath=no | |
9047 | hardcode_into_libs=yes | |
9048 | dynamic_linker='NetBSD ld.elf_so' | |
9049 | ;; | |
9050 | ||
9051 | netbsd*) | |
9052 | version_type=sunos | |
9053 | need_lib_prefix=no | |
9054 | need_version=no | |
9055 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9057 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9058 | dynamic_linker='NetBSD (a.out) ld.so' | |
9059 | else | |
9060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9061 | soname_spec='${libname}${release}${shared_ext}$major' | |
9062 | dynamic_linker='NetBSD ld.elf_so' | |
9063 | fi | |
9064 | shlibpath_var=LD_LIBRARY_PATH | |
9065 | shlibpath_overrides_runpath=yes | |
9066 | hardcode_into_libs=yes | |
9067 | ;; | |
9068 | ||
9069 | newsos6) | |
9070 | version_type=linux | |
9071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9072 | shlibpath_var=LD_LIBRARY_PATH | |
9073 | shlibpath_overrides_runpath=yes | |
9074 | ;; | |
9075 | ||
9076 | *nto* | *qnx*) | |
9077 | version_type=qnx | |
9078 | need_lib_prefix=no | |
9079 | need_version=no | |
9080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9081 | soname_spec='${libname}${release}${shared_ext}$major' | |
9082 | shlibpath_var=LD_LIBRARY_PATH | |
9083 | shlibpath_overrides_runpath=no | |
9084 | hardcode_into_libs=yes | |
9085 | dynamic_linker='ldqnx.so' | |
9086 | ;; | |
9087 | ||
9088 | openbsd*) | |
9089 | version_type=sunos | |
9090 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9091 | need_lib_prefix=no | |
9092 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9093 | case $host_os in | |
9094 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9095 | *) need_version=no ;; | |
9096 | esac | |
9097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9098 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9099 | shlibpath_var=LD_LIBRARY_PATH | |
9100 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9101 | case $host_os in | |
9102 | openbsd2.[89] | openbsd2.[89].*) | |
9103 | shlibpath_overrides_runpath=no | |
9104 | ;; | |
9105 | *) | |
9106 | shlibpath_overrides_runpath=yes | |
9107 | ;; | |
9108 | esac | |
9109 | else | |
9110 | shlibpath_overrides_runpath=yes | |
9111 | fi | |
9112 | ;; | |
9113 | ||
9114 | os2*) | |
9115 | libname_spec='$name' | |
9116 | shrext_cmds=".dll" | |
9117 | need_lib_prefix=no | |
9118 | library_names_spec='$libname${shared_ext} $libname.a' | |
9119 | dynamic_linker='OS/2 ld.exe' | |
9120 | shlibpath_var=LIBPATH | |
9121 | ;; | |
9122 | ||
9123 | osf3* | osf4* | osf5*) | |
9124 | version_type=osf | |
9125 | need_lib_prefix=no | |
9126 | need_version=no | |
9127 | soname_spec='${libname}${release}${shared_ext}$major' | |
9128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9129 | shlibpath_var=LD_LIBRARY_PATH | |
9130 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9131 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9132 | ;; | |
9133 | ||
9134 | rdos*) | |
9135 | dynamic_linker=no | |
9136 | ;; | |
9137 | ||
9138 | solaris*) | |
9139 | version_type=linux | |
9140 | need_lib_prefix=no | |
9141 | need_version=no | |
9142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9143 | soname_spec='${libname}${release}${shared_ext}$major' | |
9144 | shlibpath_var=LD_LIBRARY_PATH | |
9145 | shlibpath_overrides_runpath=yes | |
9146 | hardcode_into_libs=yes | |
9147 | # ldd complains unless libraries are executable | |
9148 | postinstall_cmds='chmod +x $lib' | |
9149 | ;; | |
9150 | ||
9151 | sunos4*) | |
9152 | version_type=sunos | |
9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9154 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9155 | shlibpath_var=LD_LIBRARY_PATH | |
9156 | shlibpath_overrides_runpath=yes | |
9157 | if test "$with_gnu_ld" = yes; then | |
9158 | need_lib_prefix=no | |
9159 | fi | |
9160 | need_version=yes | |
9161 | ;; | |
9162 | ||
9163 | sysv4 | sysv4.3*) | |
9164 | version_type=linux | |
9165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9166 | soname_spec='${libname}${release}${shared_ext}$major' | |
9167 | shlibpath_var=LD_LIBRARY_PATH | |
9168 | case $host_vendor in | |
9169 | sni) | |
9170 | shlibpath_overrides_runpath=no | |
9171 | need_lib_prefix=no | |
9172 | runpath_var=LD_RUN_PATH | |
9173 | ;; | |
9174 | siemens) | |
9175 | need_lib_prefix=no | |
9176 | ;; | |
9177 | motorola) | |
9178 | need_lib_prefix=no | |
9179 | need_version=no | |
9180 | shlibpath_overrides_runpath=no | |
9181 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9182 | ;; | |
9183 | esac | |
9184 | ;; | |
9185 | ||
9186 | sysv4*MP*) | |
9187 | if test -d /usr/nec ;then | |
9188 | version_type=linux | |
9189 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9190 | soname_spec='$libname${shared_ext}.$major' | |
9191 | shlibpath_var=LD_LIBRARY_PATH | |
9192 | fi | |
9193 | ;; | |
9194 | ||
9195 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9196 | version_type=freebsd-elf | |
9197 | need_lib_prefix=no | |
9198 | need_version=no | |
9199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9200 | soname_spec='${libname}${release}${shared_ext}$major' | |
9201 | shlibpath_var=LD_LIBRARY_PATH | |
9202 | shlibpath_overrides_runpath=yes | |
9203 | hardcode_into_libs=yes | |
9204 | if test "$with_gnu_ld" = yes; then | |
9205 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9206 | else | |
9207 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9208 | case $host_os in | |
9209 | sco3.2v5*) | |
9210 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9211 | ;; | |
9212 | esac | |
9213 | fi | |
9214 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9215 | ;; | |
9216 | ||
9217 | tpf*) | |
9218 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9219 | version_type=linux | |
9220 | need_lib_prefix=no | |
9221 | need_version=no | |
9222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9223 | shlibpath_var=LD_LIBRARY_PATH | |
9224 | shlibpath_overrides_runpath=no | |
9225 | hardcode_into_libs=yes | |
9226 | ;; | |
9227 | ||
9228 | uts4*) | |
9229 | version_type=linux | |
9230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9231 | soname_spec='${libname}${release}${shared_ext}$major' | |
9232 | shlibpath_var=LD_LIBRARY_PATH | |
9233 | ;; | |
9234 | ||
9235 | *) | |
9236 | dynamic_linker=no | |
9237 | ;; | |
9238 | esac | |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9240 | $as_echo "$dynamic_linker" >&6; } | |
9241 | test "$dynamic_linker" = no && can_build_shared=no | |
9242 | ||
9243 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9244 | if test "$GCC" = yes; then | |
9245 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9246 | fi | |
9247 | ||
9248 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9249 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9250 | fi | |
9251 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9252 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9253 | fi | |
9254 | ||
9255 | ||
9256 | ||
9257 | ||
9258 | ||
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | ||
9264 | ||
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9342 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9343 | hardcode_action= | |
9344 | if test -n "$hardcode_libdir_flag_spec" || | |
9345 | test -n "$runpath_var" || | |
9346 | test "X$hardcode_automatic" = "Xyes" ; then | |
9347 | ||
9348 | # We can hardcode non-existent directories. | |
9349 | if test "$hardcode_direct" != no && | |
9350 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9351 | # have to relink, otherwise we might link with an installed library | |
9352 | # when we should be linking with a yet-to-be-installed one | |
9353 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9354 | test "$hardcode_minus_L" != no; then | |
9355 | # Linking always hardcodes the temporary library directory. | |
9356 | hardcode_action=relink | |
9357 | else | |
9358 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9359 | hardcode_action=immediate | |
9360 | fi | |
9361 | else | |
9362 | # We cannot hardcode anything, or else we can only hardcode existing | |
9363 | # directories. | |
9364 | hardcode_action=unsupported | |
9365 | fi | |
9366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9367 | $as_echo "$hardcode_action" >&6; } | |
9368 | ||
9369 | if test "$hardcode_action" = relink || | |
9370 | test "$inherit_rpath" = yes; then | |
9371 | # Fast installation is not supported | |
9372 | enable_fast_install=no | |
9373 | elif test "$shlibpath_overrides_runpath" = yes || | |
9374 | test "$enable_shared" = no; then | |
9375 | # Fast installation is not necessary | |
9376 | enable_fast_install=needless | |
9377 | fi | |
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | if test "x$enable_dlopen" != xyes; then | |
9385 | enable_dlopen=unknown | |
9386 | enable_dlopen_self=unknown | |
9387 | enable_dlopen_self_static=unknown | |
9388 | else | |
9389 | lt_cv_dlopen=no | |
9390 | lt_cv_dlopen_libs= | |
9391 | ||
9392 | case $host_os in | |
9393 | beos*) | |
9394 | lt_cv_dlopen="load_add_on" | |
9395 | lt_cv_dlopen_libs= | |
9396 | lt_cv_dlopen_self=yes | |
9397 | ;; | |
9398 | ||
9399 | mingw* | pw32* | cegcc*) | |
9400 | lt_cv_dlopen="LoadLibrary" | |
9401 | lt_cv_dlopen_libs= | |
9402 | ;; | |
9403 | ||
9404 | cygwin*) | |
9405 | lt_cv_dlopen="dlopen" | |
9406 | lt_cv_dlopen_libs= | |
9407 | ;; | |
9408 | ||
9409 | darwin*) | |
9410 | # if libdl is installed we need to link against it | |
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9412 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9413 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9414 | $as_echo_n "(cached) " >&6 | |
9415 | else | |
9416 | ac_check_lib_save_LIBS=$LIBS | |
9417 | LIBS="-ldl $LIBS" | |
9418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9419 | /* end confdefs.h. */ | |
9420 | ||
9421 | /* Override any GCC internal prototype to avoid an error. | |
9422 | Use char because int might match the return type of a GCC | |
9423 | builtin and then its argument prototype would still apply. */ | |
9424 | #ifdef __cplusplus | |
9425 | extern "C" | |
9426 | #endif | |
9427 | char dlopen (); | |
9428 | int | |
9429 | main () | |
9430 | { | |
9431 | return dlopen (); | |
9432 | ; | |
9433 | return 0; | |
9434 | } | |
9435 | _ACEOF | |
9436 | if ac_fn_c_try_link "$LINENO"; then : | |
9437 | ac_cv_lib_dl_dlopen=yes | |
9438 | else | |
9439 | ac_cv_lib_dl_dlopen=no | |
9440 | fi | |
9441 | rm -f core conftest.err conftest.$ac_objext \ | |
9442 | conftest$ac_exeext conftest.$ac_ext | |
9443 | LIBS=$ac_check_lib_save_LIBS | |
9444 | fi | |
9445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9446 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9447 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9448 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9449 | else | |
9450 | ||
9451 | lt_cv_dlopen="dyld" | |
9452 | lt_cv_dlopen_libs= | |
9453 | lt_cv_dlopen_self=yes | |
9454 | ||
9455 | fi | |
9456 | ||
9457 | ;; | |
9458 | ||
9459 | *) | |
9460 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9461 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9462 | lt_cv_dlopen="shl_load" | |
9463 | else | |
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9465 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9466 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9467 | $as_echo_n "(cached) " >&6 | |
9468 | else | |
9469 | ac_check_lib_save_LIBS=$LIBS | |
9470 | LIBS="-ldld $LIBS" | |
9471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9472 | /* end confdefs.h. */ | |
9473 | ||
9474 | /* Override any GCC internal prototype to avoid an error. | |
9475 | Use char because int might match the return type of a GCC | |
9476 | builtin and then its argument prototype would still apply. */ | |
9477 | #ifdef __cplusplus | |
9478 | extern "C" | |
9479 | #endif | |
9480 | char shl_load (); | |
9481 | int | |
9482 | main () | |
9483 | { | |
9484 | return shl_load (); | |
9485 | ; | |
9486 | return 0; | |
9487 | } | |
9488 | _ACEOF | |
9489 | if ac_fn_c_try_link "$LINENO"; then : | |
9490 | ac_cv_lib_dld_shl_load=yes | |
9491 | else | |
9492 | ac_cv_lib_dld_shl_load=no | |
9493 | fi | |
9494 | rm -f core conftest.err conftest.$ac_objext \ | |
9495 | conftest$ac_exeext conftest.$ac_ext | |
9496 | LIBS=$ac_check_lib_save_LIBS | |
9497 | fi | |
9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9499 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9500 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9501 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9502 | else | |
9503 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9504 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9505 | lt_cv_dlopen="dlopen" | |
9506 | else | |
9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9508 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9509 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9510 | $as_echo_n "(cached) " >&6 | |
9511 | else | |
9512 | ac_check_lib_save_LIBS=$LIBS | |
9513 | LIBS="-ldl $LIBS" | |
9514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9515 | /* end confdefs.h. */ | |
9516 | ||
9517 | /* Override any GCC internal prototype to avoid an error. | |
9518 | Use char because int might match the return type of a GCC | |
9519 | builtin and then its argument prototype would still apply. */ | |
9520 | #ifdef __cplusplus | |
9521 | extern "C" | |
9522 | #endif | |
9523 | char dlopen (); | |
9524 | int | |
9525 | main () | |
9526 | { | |
9527 | return dlopen (); | |
9528 | ; | |
9529 | return 0; | |
9530 | } | |
9531 | _ACEOF | |
9532 | if ac_fn_c_try_link "$LINENO"; then : | |
9533 | ac_cv_lib_dl_dlopen=yes | |
9534 | else | |
9535 | ac_cv_lib_dl_dlopen=no | |
9536 | fi | |
9537 | rm -f core conftest.err conftest.$ac_objext \ | |
9538 | conftest$ac_exeext conftest.$ac_ext | |
9539 | LIBS=$ac_check_lib_save_LIBS | |
9540 | fi | |
9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9542 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9543 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9544 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9545 | else | |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9547 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9548 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9549 | $as_echo_n "(cached) " >&6 | |
9550 | else | |
9551 | ac_check_lib_save_LIBS=$LIBS | |
9552 | LIBS="-lsvld $LIBS" | |
9553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9554 | /* end confdefs.h. */ | |
9555 | ||
9556 | /* Override any GCC internal prototype to avoid an error. | |
9557 | Use char because int might match the return type of a GCC | |
9558 | builtin and then its argument prototype would still apply. */ | |
9559 | #ifdef __cplusplus | |
9560 | extern "C" | |
9561 | #endif | |
9562 | char dlopen (); | |
9563 | int | |
9564 | main () | |
9565 | { | |
9566 | return dlopen (); | |
9567 | ; | |
9568 | return 0; | |
9569 | } | |
9570 | _ACEOF | |
9571 | if ac_fn_c_try_link "$LINENO"; then : | |
9572 | ac_cv_lib_svld_dlopen=yes | |
9573 | else | |
9574 | ac_cv_lib_svld_dlopen=no | |
9575 | fi | |
9576 | rm -f core conftest.err conftest.$ac_objext \ | |
9577 | conftest$ac_exeext conftest.$ac_ext | |
9578 | LIBS=$ac_check_lib_save_LIBS | |
9579 | fi | |
9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9581 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9582 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9583 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9584 | else | |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9586 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9587 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9588 | $as_echo_n "(cached) " >&6 | |
9589 | else | |
9590 | ac_check_lib_save_LIBS=$LIBS | |
9591 | LIBS="-ldld $LIBS" | |
9592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9593 | /* end confdefs.h. */ | |
9594 | ||
9595 | /* Override any GCC internal prototype to avoid an error. | |
9596 | Use char because int might match the return type of a GCC | |
9597 | builtin and then its argument prototype would still apply. */ | |
9598 | #ifdef __cplusplus | |
9599 | extern "C" | |
9600 | #endif | |
9601 | char dld_link (); | |
9602 | int | |
9603 | main () | |
9604 | { | |
9605 | return dld_link (); | |
9606 | ; | |
9607 | return 0; | |
9608 | } | |
9609 | _ACEOF | |
9610 | if ac_fn_c_try_link "$LINENO"; then : | |
9611 | ac_cv_lib_dld_dld_link=yes | |
9612 | else | |
9613 | ac_cv_lib_dld_dld_link=no | |
9614 | fi | |
9615 | rm -f core conftest.err conftest.$ac_objext \ | |
9616 | conftest$ac_exeext conftest.$ac_ext | |
9617 | LIBS=$ac_check_lib_save_LIBS | |
9618 | fi | |
9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9620 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9621 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9622 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9623 | fi | |
9624 | ||
9625 | ||
9626 | fi | |
9627 | ||
9628 | ||
9629 | fi | |
9630 | ||
9631 | ||
9632 | fi | |
9633 | ||
9634 | ||
9635 | fi | |
9636 | ||
9637 | ||
9638 | fi | |
9639 | ||
9640 | ;; | |
9641 | esac | |
9642 | ||
9643 | if test "x$lt_cv_dlopen" != xno; then | |
9644 | enable_dlopen=yes | |
9645 | else | |
9646 | enable_dlopen=no | |
9647 | fi | |
9648 | ||
9649 | case $lt_cv_dlopen in | |
9650 | dlopen) | |
9651 | save_CPPFLAGS="$CPPFLAGS" | |
9652 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9653 | ||
9654 | save_LDFLAGS="$LDFLAGS" | |
9655 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9656 | ||
9657 | save_LIBS="$LIBS" | |
9658 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9659 | ||
9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9661 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9662 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9663 | $as_echo_n "(cached) " >&6 | |
9664 | else | |
9665 | if test "$cross_compiling" = yes; then : | |
9666 | lt_cv_dlopen_self=cross | |
9667 | else | |
9668 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9669 | lt_status=$lt_dlunknown | |
9670 | cat > conftest.$ac_ext <<_LT_EOF | |
27557508 | 9671 | #line 9671 "configure" |
9c60689e DWT |
9672 | #include "confdefs.h" |
9673 | ||
9674 | #if HAVE_DLFCN_H | |
9675 | #include <dlfcn.h> | |
9676 | #endif | |
9677 | ||
9678 | #include <stdio.h> | |
9679 | ||
9680 | #ifdef RTLD_GLOBAL | |
9681 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9682 | #else | |
9683 | # ifdef DL_GLOBAL | |
9684 | # define LT_DLGLOBAL DL_GLOBAL | |
9685 | # else | |
9686 | # define LT_DLGLOBAL 0 | |
9687 | # endif | |
9688 | #endif | |
9689 | ||
9690 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9691 | find out it does not work in some platform. */ | |
9692 | #ifndef LT_DLLAZY_OR_NOW | |
9693 | # ifdef RTLD_LAZY | |
9694 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9695 | # else | |
9696 | # ifdef DL_LAZY | |
9697 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9698 | # else | |
9699 | # ifdef RTLD_NOW | |
9700 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9701 | # else | |
9702 | # ifdef DL_NOW | |
9703 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9704 | # else | |
9705 | # define LT_DLLAZY_OR_NOW 0 | |
9706 | # endif | |
9707 | # endif | |
9708 | # endif | |
9709 | # endif | |
9710 | #endif | |
9711 | ||
9712 | void fnord() { int i=42;} | |
9713 | int main () | |
9714 | { | |
9715 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9716 | int status = $lt_dlunknown; | |
9717 | ||
9718 | if (self) | |
9719 | { | |
9720 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9721 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9722 | /* dlclose (self); */ | |
9723 | } | |
9724 | else | |
9725 | puts (dlerror ()); | |
9726 | ||
9727 | return status; | |
9728 | } | |
9729 | _LT_EOF | |
9730 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9731 | (eval $ac_link) 2>&5 | |
9732 | ac_status=$? | |
9733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9734 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9735 | (./conftest; exit; ) >&5 2>/dev/null | |
9736 | lt_status=$? | |
9737 | case x$lt_status in | |
9738 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9739 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9740 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9741 | esac | |
9742 | else : | |
9743 | # compilation failed | |
9744 | lt_cv_dlopen_self=no | |
9745 | fi | |
9746 | fi | |
9747 | rm -fr conftest* | |
9748 | ||
9749 | ||
9750 | fi | |
9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9752 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9753 | ||
9754 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9755 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9757 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9758 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9759 | $as_echo_n "(cached) " >&6 | |
9760 | else | |
9761 | if test "$cross_compiling" = yes; then : | |
9762 | lt_cv_dlopen_self_static=cross | |
9763 | else | |
9764 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9765 | lt_status=$lt_dlunknown | |
9766 | cat > conftest.$ac_ext <<_LT_EOF | |
27557508 | 9767 | #line 9767 "configure" |
9c60689e DWT |
9768 | #include "confdefs.h" |
9769 | ||
9770 | #if HAVE_DLFCN_H | |
9771 | #include <dlfcn.h> | |
9772 | #endif | |
9773 | ||
9774 | #include <stdio.h> | |
9775 | ||
9776 | #ifdef RTLD_GLOBAL | |
9777 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9778 | #else | |
9779 | # ifdef DL_GLOBAL | |
9780 | # define LT_DLGLOBAL DL_GLOBAL | |
9781 | # else | |
9782 | # define LT_DLGLOBAL 0 | |
9783 | # endif | |
9784 | #endif | |
9785 | ||
9786 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9787 | find out it does not work in some platform. */ | |
9788 | #ifndef LT_DLLAZY_OR_NOW | |
9789 | # ifdef RTLD_LAZY | |
9790 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9791 | # else | |
9792 | # ifdef DL_LAZY | |
9793 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9794 | # else | |
9795 | # ifdef RTLD_NOW | |
9796 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9797 | # else | |
9798 | # ifdef DL_NOW | |
9799 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9800 | # else | |
9801 | # define LT_DLLAZY_OR_NOW 0 | |
9802 | # endif | |
9803 | # endif | |
9804 | # endif | |
9805 | # endif | |
9806 | #endif | |
9807 | ||
9808 | void fnord() { int i=42;} | |
9809 | int main () | |
9810 | { | |
9811 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9812 | int status = $lt_dlunknown; | |
9813 | ||
9814 | if (self) | |
9815 | { | |
9816 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9817 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9818 | /* dlclose (self); */ | |
9819 | } | |
9820 | else | |
9821 | puts (dlerror ()); | |
9822 | ||
9823 | return status; | |
9824 | } | |
9825 | _LT_EOF | |
9826 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9827 | (eval $ac_link) 2>&5 | |
9828 | ac_status=$? | |
9829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9830 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9831 | (./conftest; exit; ) >&5 2>/dev/null | |
9832 | lt_status=$? | |
9833 | case x$lt_status in | |
9834 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9835 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9836 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9837 | esac | |
9838 | else : | |
9839 | # compilation failed | |
9840 | lt_cv_dlopen_self_static=no | |
9841 | fi | |
9842 | fi | |
9843 | rm -fr conftest* | |
9844 | ||
9845 | ||
9846 | fi | |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9848 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9849 | fi | |
9850 | ||
9851 | CPPFLAGS="$save_CPPFLAGS" | |
9852 | LDFLAGS="$save_LDFLAGS" | |
9853 | LIBS="$save_LIBS" | |
9854 | ;; | |
9855 | esac | |
9856 | ||
9857 | case $lt_cv_dlopen_self in | |
9858 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9859 | *) enable_dlopen_self=unknown ;; | |
9860 | esac | |
9861 | ||
9862 | case $lt_cv_dlopen_self_static in | |
9863 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9864 | *) enable_dlopen_self_static=unknown ;; | |
9865 | esac | |
9866 | fi | |
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | striplib= | |
9885 | old_striplib= | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9887 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9888 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9889 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9890 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9892 | $as_echo "yes" >&6; } | |
9893 | else | |
9894 | # FIXME - insert some real tests, host_os isn't really good enough | |
9895 | case $host_os in | |
9896 | darwin*) | |
9897 | if test -n "$STRIP" ; then | |
9898 | striplib="$STRIP -x" | |
9899 | old_striplib="$STRIP -S" | |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9901 | $as_echo "yes" >&6; } | |
9902 | else | |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9904 | $as_echo "no" >&6; } | |
9905 | fi | |
9906 | ;; | |
9907 | *) | |
9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9909 | $as_echo "no" >&6; } | |
9910 | ;; | |
9911 | esac | |
9912 | fi | |
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | # Report which library types will actually be built | |
9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9927 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9929 | $as_echo "$can_build_shared" >&6; } | |
9930 | ||
9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9932 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9933 | test "$can_build_shared" = "no" && enable_shared=no | |
9934 | ||
9935 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9936 | # are all built from PIC. | |
9937 | case $host_os in | |
9938 | aix3*) | |
9939 | test "$enable_shared" = yes && enable_static=no | |
9940 | if test -n "$RANLIB"; then | |
9941 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9942 | postinstall_cmds='$RANLIB $lib' | |
9943 | fi | |
9944 | ;; | |
9945 | ||
9946 | aix[4-9]*) | |
9947 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9948 | test "$enable_shared" = yes && enable_static=no | |
9949 | fi | |
9950 | ;; | |
9951 | esac | |
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
9953 | $as_echo "$enable_shared" >&6; } | |
9954 | ||
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
9956 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
9957 | # Make sure either enable_shared or enable_static is yes. | |
9958 | test "$enable_shared" = yes || enable_static=yes | |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
9960 | $as_echo "$enable_static" >&6; } | |
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | fi | |
9966 | ac_ext=c | |
9967 | ac_cpp='$CPP $CPPFLAGS' | |
9968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9971 | ||
9972 | CC="$lt_save_CC" | |
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ac_config_commands="$ac_config_commands libtool" | |
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | # Only expand once: | |
9992 | ||
9993 | ||
3fd51f51 DWT |
9994 | |
9995 | ||
9996 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9997 | if test -n "$ac_tool_prefix"; then | |
9998 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9999 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
10000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10001 | $as_echo_n "checking for $ac_word... " >&6; } | |
10002 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
10003 | $as_echo_n "(cached) " >&6 | |
10004 | else | |
10005 | case $PKG_CONFIG in | |
10006 | [\\/]* | ?:[\\/]*) | |
10007 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10008 | ;; | |
10009 | *) | |
10010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10011 | for as_dir in $PATH | |
10012 | do | |
10013 | IFS=$as_save_IFS | |
10014 | test -z "$as_dir" && as_dir=. | |
10015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10017 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10019 | break 2 | |
10020 | fi | |
10021 | done | |
10022 | done | |
10023 | IFS=$as_save_IFS | |
10024 | ||
10025 | ;; | |
10026 | esac | |
10027 | fi | |
10028 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10029 | if test -n "$PKG_CONFIG"; then | |
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10031 | $as_echo "$PKG_CONFIG" >&6; } | |
10032 | else | |
10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10034 | $as_echo "no" >&6; } | |
10035 | fi | |
10036 | ||
10037 | ||
10038 | fi | |
10039 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10040 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10041 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10042 | set dummy pkg-config; ac_word=$2 | |
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10044 | $as_echo_n "checking for $ac_word... " >&6; } | |
10045 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10046 | $as_echo_n "(cached) " >&6 | |
10047 | else | |
10048 | case $ac_pt_PKG_CONFIG in | |
10049 | [\\/]* | ?:[\\/]*) | |
10050 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10051 | ;; | |
10052 | *) | |
10053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10054 | for as_dir in $PATH | |
10055 | do | |
10056 | IFS=$as_save_IFS | |
10057 | test -z "$as_dir" && as_dir=. | |
10058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10060 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10062 | break 2 | |
10063 | fi | |
10064 | done | |
10065 | done | |
10066 | IFS=$as_save_IFS | |
10067 | ||
10068 | ;; | |
10069 | esac | |
10070 | fi | |
10071 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10072 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10074 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10075 | else | |
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10077 | $as_echo "no" >&6; } | |
10078 | fi | |
10079 | ||
10080 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10081 | PKG_CONFIG="" | |
10082 | else | |
10083 | case $cross_compiling:$ac_tool_warned in | |
10084 | yes:) | |
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10087 | ac_tool_warned=yes ;; | |
10088 | esac | |
10089 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10090 | fi | |
10091 | else | |
10092 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10093 | fi | |
10094 | ||
10095 | fi | |
10096 | if test -n "$PKG_CONFIG"; then | |
10097 | _pkg_min_version=0.22 | |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10099 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10100 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10102 | $as_echo "yes" >&6; } | |
10103 | else | |
10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10105 | $as_echo "no" >&6; } | |
10106 | PKG_CONFIG="" | |
10107 | fi | |
10108 | ||
10109 | fi | |
47aaa820 DWT |
10110 | ac_ext=cpp |
10111 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10112 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10113 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10114 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10115 | if test -z "$CXX"; then | |
10116 | if test -n "$CCC"; then | |
10117 | CXX=$CCC | |
10118 | else | |
10119 | if test -n "$ac_tool_prefix"; then | |
10120 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10121 | do | |
10122 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10123 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
10124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10125 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10126 | if test "${ac_cv_prog_CXX+set}" = set; then : |
9c60689e DWT |
10127 | $as_echo_n "(cached) " >&6 |
10128 | else | |
47aaa820 DWT |
10129 | if test -n "$CXX"; then |
10130 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9c60689e DWT |
10131 | else |
10132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10133 | for as_dir in $PATH | |
10134 | do | |
10135 | IFS=$as_save_IFS | |
10136 | test -z "$as_dir" && as_dir=. | |
10137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10139 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
10140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10141 | break 2 | |
10142 | fi | |
10143 | done | |
10144 | done | |
10145 | IFS=$as_save_IFS | |
10146 | ||
10147 | fi | |
10148 | fi | |
47aaa820 DWT |
10149 | CXX=$ac_cv_prog_CXX |
10150 | if test -n "$CXX"; then | |
10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10152 | $as_echo "$CXX" >&6; } | |
9c60689e DWT |
10153 | else |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10155 | $as_echo "no" >&6; } | |
10156 | fi | |
10157 | ||
10158 | ||
47aaa820 DWT |
10159 | test -n "$CXX" && break |
10160 | done | |
9c60689e | 10161 | fi |
47aaa820 DWT |
10162 | if test -z "$CXX"; then |
10163 | ac_ct_CXX=$CXX | |
10164 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
9c60689e DWT |
10165 | do |
10166 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10167 | set dummy $ac_prog; ac_word=$2 | |
10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10169 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10170 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
9c60689e DWT |
10171 | $as_echo_n "(cached) " >&6 |
10172 | else | |
47aaa820 DWT |
10173 | if test -n "$ac_ct_CXX"; then |
10174 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
9c60689e DWT |
10175 | else |
10176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10177 | for as_dir in $PATH | |
10178 | do | |
10179 | IFS=$as_save_IFS | |
10180 | test -z "$as_dir" && as_dir=. | |
10181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10183 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
9c60689e DWT |
10184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10185 | break 2 | |
10186 | fi | |
10187 | done | |
10188 | done | |
10189 | IFS=$as_save_IFS | |
10190 | ||
10191 | fi | |
10192 | fi | |
47aaa820 DWT |
10193 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10194 | if test -n "$ac_ct_CXX"; then | |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10196 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e DWT |
10197 | else |
10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10199 | $as_echo "no" >&6; } | |
10200 | fi | |
10201 | ||
10202 | ||
47aaa820 | 10203 | test -n "$ac_ct_CXX" && break |
9c60689e DWT |
10204 | done |
10205 | ||
47aaa820 DWT |
10206 | if test "x$ac_ct_CXX" = x; then |
10207 | CXX="g++" | |
10208 | else | |
10209 | case $cross_compiling:$ac_tool_warned in | |
10210 | yes:) | |
10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10212 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10213 | ac_tool_warned=yes ;; | |
9c60689e | 10214 | esac |
47aaa820 DWT |
10215 | CXX=$ac_ct_CXX |
10216 | fi | |
9c60689e DWT |
10217 | fi |
10218 | ||
9c60689e | 10219 | fi |
9c60689e | 10220 | fi |
47aaa820 DWT |
10221 | # Provide some information about the compiler. |
10222 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10223 | set X $ac_compile | |
10224 | ac_compiler=$2 | |
10225 | for ac_option in --version -v -V -qversion; do | |
10226 | { { ac_try="$ac_compiler $ac_option >&5" | |
9c60689e DWT |
10227 | case "(($ac_try" in |
10228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10229 | *) ac_try_echo=$ac_try;; | |
10230 | esac | |
10231 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10232 | $as_echo "$ac_try_echo"; } >&5 | |
47aaa820 | 10233 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
9c60689e | 10234 | ac_status=$? |
47aaa820 DWT |
10235 | if test -s conftest.err; then |
10236 | sed '10a\ | |
10237 | ... rest of stderr output deleted ... | |
10238 | 10q' conftest.err >conftest.er1 | |
10239 | cat conftest.er1 >&5 | |
10240 | fi | |
10241 | rm -f conftest.er1 conftest.err | |
9c60689e DWT |
10242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10243 | test $ac_status = 0; } | |
47aaa820 DWT |
10244 | done |
10245 | ||
10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
10247 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10248 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
9c60689e DWT |
10249 | $as_echo_n "(cached) " >&6 |
10250 | else | |
47aaa820 DWT |
10251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10252 | /* end confdefs.h. */ | |
9c60689e | 10253 | |
47aaa820 DWT |
10254 | int |
10255 | main () | |
10256 | { | |
10257 | #ifndef __GNUC__ | |
10258 | choke me | |
10259 | #endif | |
10260 | ||
10261 | ; | |
10262 | return 0; | |
10263 | } | |
10264 | _ACEOF | |
10265 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10266 | ac_compiler_gnu=yes | |
9c60689e | 10267 | else |
47aaa820 | 10268 | ac_compiler_gnu=no |
9c60689e | 10269 | fi |
47aaa820 DWT |
10270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10271 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 10272 | |
47aaa820 DWT |
10273 | fi |
10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10275 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10276 | if test $ac_compiler_gnu = yes; then | |
10277 | GXX=yes | |
9c60689e | 10278 | else |
47aaa820 | 10279 | GXX= |
9c60689e | 10280 | fi |
47aaa820 DWT |
10281 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10282 | ac_save_CXXFLAGS=$CXXFLAGS | |
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10284 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10285 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
9c60689e DWT |
10286 | $as_echo_n "(cached) " >&6 |
10287 | else | |
47aaa820 DWT |
10288 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
10289 | ac_cxx_werror_flag=yes | |
10290 | ac_cv_prog_cxx_g=no | |
10291 | CXXFLAGS="-g" | |
10292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e | 10293 | /* end confdefs.h. */ |
9c60689e | 10294 | |
47aaa820 DWT |
10295 | int |
10296 | main () | |
10297 | { | |
9c60689e | 10298 | |
47aaa820 DWT |
10299 | ; |
10300 | return 0; | |
10301 | } | |
10302 | _ACEOF | |
10303 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10304 | ac_cv_prog_cxx_g=yes | |
9c60689e | 10305 | else |
47aaa820 DWT |
10306 | CXXFLAGS="" |
10307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10308 | /* end confdefs.h. */ | |
9c60689e | 10309 | |
47aaa820 DWT |
10310 | int |
10311 | main () | |
10312 | { | |
9c60689e | 10313 | |
47aaa820 DWT |
10314 | ; |
10315 | return 0; | |
10316 | } | |
10317 | _ACEOF | |
10318 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e DWT |
10319 | |
10320 | else | |
47aaa820 DWT |
10321 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
10322 | CXXFLAGS="-g" | |
10323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10324 | /* end confdefs.h. */ | |
9c60689e | 10325 | |
47aaa820 DWT |
10326 | int |
10327 | main () | |
10328 | { | |
9c60689e | 10329 | |
47aaa820 DWT |
10330 | ; |
10331 | return 0; | |
10332 | } | |
10333 | _ACEOF | |
10334 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10335 | ac_cv_prog_cxx_g=yes | |
9c60689e | 10336 | fi |
47aaa820 | 10337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 10338 | fi |
47aaa820 DWT |
10339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10340 | fi | |
10341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10342 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10343 | fi | |
10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10345 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10346 | if test "$ac_test_CXXFLAGS" = set; then | |
10347 | CXXFLAGS=$ac_save_CXXFLAGS | |
10348 | elif test $ac_cv_prog_cxx_g = yes; then | |
10349 | if test "$GXX" = yes; then | |
10350 | CXXFLAGS="-g -O2" | |
10351 | else | |
10352 | CXXFLAGS="-g" | |
10353 | fi | |
9c60689e | 10354 | else |
47aaa820 DWT |
10355 | if test "$GXX" = yes; then |
10356 | CXXFLAGS="-O2" | |
10357 | else | |
10358 | CXXFLAGS= | |
10359 | fi | |
9c60689e | 10360 | fi |
47aaa820 DWT |
10361 | ac_ext=c |
10362 | ac_cpp='$CPP $CPPFLAGS' | |
10363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10366 | |
9c60689e | 10367 | |
47aaa820 DWT |
10368 | ac_ext=cpp |
10369 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10370 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10371 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10372 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10373 | if test -z "$CXX"; then | |
10374 | if test -n "$CCC"; then | |
10375 | CXX=$CCC | |
10376 | else | |
10377 | if test -n "$ac_tool_prefix"; then | |
10378 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10379 | do | |
10380 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10381 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10383 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10384 | if test "${ac_cv_prog_CXX+set}" = set; then : |
9c60689e DWT |
10385 | $as_echo_n "(cached) " >&6 |
10386 | else | |
47aaa820 DWT |
10387 | if test -n "$CXX"; then |
10388 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9c60689e DWT |
10389 | else |
10390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10391 | for as_dir in $PATH | |
10392 | do | |
10393 | IFS=$as_save_IFS | |
10394 | test -z "$as_dir" && as_dir=. | |
10395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10397 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
10398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10399 | break 2 | |
10400 | fi | |
10401 | done | |
10402 | done | |
10403 | IFS=$as_save_IFS | |
10404 | ||
10405 | fi | |
10406 | fi | |
47aaa820 DWT |
10407 | CXX=$ac_cv_prog_CXX |
10408 | if test -n "$CXX"; then | |
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10410 | $as_echo "$CXX" >&6; } | |
9c60689e DWT |
10411 | else |
10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10413 | $as_echo "no" >&6; } | |
10414 | fi | |
10415 | ||
10416 | ||
47aaa820 DWT |
10417 | test -n "$CXX" && break |
10418 | done | |
10419 | fi | |
10420 | if test -z "$CXX"; then | |
10421 | ac_ct_CXX=$CXX | |
10422 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
9c60689e DWT |
10423 | do |
10424 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10425 | set dummy $ac_prog; ac_word=$2 | |
10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10427 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10428 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
9c60689e DWT |
10429 | $as_echo_n "(cached) " >&6 |
10430 | else | |
47aaa820 DWT |
10431 | if test -n "$ac_ct_CXX"; then |
10432 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
9c60689e DWT |
10433 | else |
10434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10435 | for as_dir in $PATH | |
10436 | do | |
10437 | IFS=$as_save_IFS | |
10438 | test -z "$as_dir" && as_dir=. | |
10439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10441 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
9c60689e DWT |
10442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10443 | break 2 | |
10444 | fi | |
10445 | done | |
10446 | done | |
10447 | IFS=$as_save_IFS | |
10448 | ||
10449 | fi | |
10450 | fi | |
47aaa820 DWT |
10451 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10452 | if test -n "$ac_ct_CXX"; then | |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10454 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e DWT |
10455 | else |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10457 | $as_echo "no" >&6; } | |
10458 | fi | |
10459 | ||
10460 | ||
47aaa820 | 10461 | test -n "$ac_ct_CXX" && break |
9c60689e DWT |
10462 | done |
10463 | ||
47aaa820 DWT |
10464 | if test "x$ac_ct_CXX" = x; then |
10465 | CXX="g++" | |
10466 | else | |
10467 | case $cross_compiling:$ac_tool_warned in | |
10468 | yes:) | |
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10470 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10471 | ac_tool_warned=yes ;; | |
10472 | esac | |
10473 | CXX=$ac_ct_CXX | |
10474 | fi | |
10475 | fi | |
3fd51f51 | 10476 | |
47aaa820 DWT |
10477 | fi |
10478 | fi | |
10479 | # Provide some information about the compiler. | |
10480 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10481 | set X $ac_compile | |
10482 | ac_compiler=$2 | |
10483 | for ac_option in --version -v -V -qversion; do | |
10484 | { { ac_try="$ac_compiler $ac_option >&5" | |
10485 | case "(($ac_try" in | |
10486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10487 | *) ac_try_echo=$ac_try;; | |
3fd51f51 | 10488 | esac |
47aaa820 DWT |
10489 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
10490 | $as_echo "$ac_try_echo"; } >&5 | |
10491 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10492 | ac_status=$? | |
10493 | if test -s conftest.err; then | |
10494 | sed '10a\ | |
10495 | ... rest of stderr output deleted ... | |
10496 | 10q' conftest.err >conftest.er1 | |
10497 | cat conftest.er1 >&5 | |
3530897b | 10498 | fi |
47aaa820 DWT |
10499 | rm -f conftest.er1 conftest.err |
10500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10501 | test $ac_status = 0; } | |
3530897b | 10502 | done |
3530897b | 10503 | |
47aaa820 DWT |
10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10505 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10506 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10507 | $as_echo_n "(cached) " >&6 | |
10508 | else | |
10509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10510 | /* end confdefs.h. */ | |
10511 | ||
10512 | int | |
10513 | main () | |
10514 | { | |
10515 | #ifndef __GNUC__ | |
10516 | choke me | |
10517 | #endif | |
10518 | ||
10519 | ; | |
10520 | return 0; | |
10521 | } | |
10522 | _ACEOF | |
10523 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10524 | ac_compiler_gnu=yes | |
10525 | else | |
10526 | ac_compiler_gnu=no | |
3530897b | 10527 | fi |
47aaa820 DWT |
10528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10529 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10530 | ||
3530897b | 10531 | fi |
47aaa820 DWT |
10532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
10533 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10534 | if test $ac_compiler_gnu = yes; then | |
10535 | GXX=yes | |
3530897b | 10536 | else |
47aaa820 | 10537 | GXX= |
3530897b | 10538 | fi |
47aaa820 DWT |
10539 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10540 | ac_save_CXXFLAGS=$CXXFLAGS | |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10542 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10543 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10544 | $as_echo_n "(cached) " >&6 | |
10545 | else | |
10546 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10547 | ac_cxx_werror_flag=yes | |
10548 | ac_cv_prog_cxx_g=no | |
10549 | CXXFLAGS="-g" | |
10550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10551 | /* end confdefs.h. */ | |
3530897b | 10552 | |
47aaa820 DWT |
10553 | int |
10554 | main () | |
10555 | { | |
3530897b | 10556 | |
47aaa820 DWT |
10557 | ; |
10558 | return 0; | |
10559 | } | |
10560 | _ACEOF | |
10561 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10562 | ac_cv_prog_cxx_g=yes | |
10563 | else | |
10564 | CXXFLAGS="" | |
10565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10566 | /* end confdefs.h. */ | |
9c60689e | 10567 | |
47aaa820 DWT |
10568 | int |
10569 | main () | |
10570 | { | |
9c60689e | 10571 | |
47aaa820 DWT |
10572 | ; |
10573 | return 0; | |
10574 | } | |
10575 | _ACEOF | |
10576 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e | 10577 | |
47aaa820 DWT |
10578 | else |
10579 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10580 | CXXFLAGS="-g" | |
10581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10582 | /* end confdefs.h. */ | |
9c60689e | 10583 | |
47aaa820 DWT |
10584 | int |
10585 | main () | |
10586 | { | |
9c60689e | 10587 | |
47aaa820 DWT |
10588 | ; |
10589 | return 0; | |
10590 | } | |
10591 | _ACEOF | |
10592 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10593 | ac_cv_prog_cxx_g=yes | |
10594 | fi | |
10595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10596 | fi | |
10597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10598 | fi | |
10599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10600 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10601 | fi | |
10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10603 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10604 | if test "$ac_test_CXXFLAGS" = set; then | |
10605 | CXXFLAGS=$ac_save_CXXFLAGS | |
10606 | elif test $ac_cv_prog_cxx_g = yes; then | |
10607 | if test "$GXX" = yes; then | |
10608 | CXXFLAGS="-g -O2" | |
10609 | else | |
10610 | CXXFLAGS="-g" | |
10611 | fi | |
10612 | else | |
10613 | if test "$GXX" = yes; then | |
10614 | CXXFLAGS="-O2" | |
10615 | else | |
10616 | CXXFLAGS= | |
10617 | fi | |
10618 | fi | |
10619 | ac_ext=c | |
10620 | ac_cpp='$CPP $CPPFLAGS' | |
10621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10624 | |
47aaa820 DWT |
10625 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10626 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10627 | (test "X$CXX" != "Xg++"))) ; then | |
10628 | ac_ext=cpp | |
10629 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10630 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10631 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10632 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
10634 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
10635 | if test -z "$CXXCPP"; then | |
10636 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
10637 | $as_echo_n "(cached) " >&6 | |
10638 | else | |
10639 | # Double quotes because CXXCPP needs to be expanded | |
10640 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
9c60689e | 10641 | do |
47aaa820 DWT |
10642 | ac_preproc_ok=false |
10643 | for ac_cxx_preproc_warn_flag in '' yes | |
10644 | do | |
10645 | # Use a header file that comes with gcc, so configuring glibc | |
10646 | # with a fresh cross-compiler works. | |
10647 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10648 | # <limits.h> exists even on freestanding compilers. | |
10649 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10650 | # not just through cpp. "Syntax error" is here to catch this case. | |
10651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10652 | /* end confdefs.h. */ | |
10653 | #ifdef __STDC__ | |
10654 | # include <limits.h> | |
10655 | #else | |
10656 | # include <assert.h> | |
10657 | #endif | |
10658 | Syntax error | |
10659 | _ACEOF | |
10660 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
9c60689e DWT |
10661 | |
10662 | else | |
47aaa820 DWT |
10663 | # Broken: fails on valid input. |
10664 | continue | |
9c60689e | 10665 | fi |
47aaa820 | 10666 | rm -f conftest.err conftest.$ac_ext |
9c60689e | 10667 | |
47aaa820 DWT |
10668 | # OK, works on sane cases. Now check whether nonexistent headers |
10669 | # can be detected and how. | |
10670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10671 | /* end confdefs.h. */ | |
10672 | #include <ac_nonexistent.h> | |
10673 | _ACEOF | |
10674 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10675 | # Broken: success on invalid input. | |
10676 | continue | |
10677 | else | |
10678 | # Passes both tests. | |
10679 | ac_preproc_ok=: | |
10680 | break | |
10681 | fi | |
10682 | rm -f conftest.err conftest.$ac_ext | |
9c60689e | 10683 | |
47aaa820 DWT |
10684 | done |
10685 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10686 | rm -f conftest.err conftest.$ac_ext | |
10687 | if $ac_preproc_ok; then : | |
10688 | break | |
10689 | fi | |
9c60689e | 10690 | |
9c60689e | 10691 | done |
47aaa820 | 10692 | ac_cv_prog_CXXCPP=$CXXCPP |
9c60689e | 10693 | |
47aaa820 DWT |
10694 | fi |
10695 | CXXCPP=$ac_cv_prog_CXXCPP | |
9c60689e | 10696 | else |
47aaa820 DWT |
10697 | ac_cv_prog_CXXCPP=$CXXCPP |
10698 | fi | |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
10700 | $as_echo "$CXXCPP" >&6; } | |
10701 | ac_preproc_ok=false | |
10702 | for ac_cxx_preproc_warn_flag in '' yes | |
10703 | do | |
10704 | # Use a header file that comes with gcc, so configuring glibc | |
10705 | # with a fresh cross-compiler works. | |
10706 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10707 | # <limits.h> exists even on freestanding compilers. | |
10708 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10709 | # not just through cpp. "Syntax error" is here to catch this case. | |
10710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e | 10711 | /* end confdefs.h. */ |
47aaa820 DWT |
10712 | #ifdef __STDC__ |
10713 | # include <limits.h> | |
10714 | #else | |
10715 | # include <assert.h> | |
9c60689e | 10716 | #endif |
47aaa820 | 10717 | Syntax error |
9c60689e | 10718 | _ACEOF |
47aaa820 | 10719 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
9c60689e | 10720 | |
47aaa820 DWT |
10721 | else |
10722 | # Broken: fails on valid input. | |
10723 | continue | |
9c60689e | 10724 | fi |
47aaa820 | 10725 | rm -f conftest.err conftest.$ac_ext |
9c60689e | 10726 | |
47aaa820 DWT |
10727 | # OK, works on sane cases. Now check whether nonexistent headers |
10728 | # can be detected and how. | |
10729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10730 | /* end confdefs.h. */ | |
10731 | #include <ac_nonexistent.h> | |
9c60689e | 10732 | _ACEOF |
47aaa820 DWT |
10733 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
10734 | # Broken: success on invalid input. | |
10735 | continue | |
10736 | else | |
10737 | # Passes both tests. | |
10738 | ac_preproc_ok=: | |
10739 | break | |
9c60689e | 10740 | fi |
47aaa820 | 10741 | rm -f conftest.err conftest.$ac_ext |
9c60689e DWT |
10742 | |
10743 | done | |
47aaa820 DWT |
10744 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
10745 | rm -f conftest.err conftest.$ac_ext | |
10746 | if $ac_preproc_ok; then : | |
9c60689e | 10747 | |
9c60689e | 10748 | else |
47aaa820 DWT |
10749 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10750 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10751 | _lt_caught_CXX_error=yes; } | |
9c60689e | 10752 | fi |
9c60689e | 10753 | |
47aaa820 DWT |
10754 | ac_ext=c |
10755 | ac_cpp='$CPP $CPPFLAGS' | |
10756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10759 | |
47aaa820 DWT |
10760 | else |
10761 | _lt_caught_CXX_error=yes | |
10762 | fi | |
9c60689e | 10763 | |
9c60689e | 10764 | |
9c60689e | 10765 | |
9c60689e DWT |
10766 | |
10767 | ac_ext=cpp | |
10768 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10769 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10770 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10771 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 10772 | |
47aaa820 DWT |
10773 | archive_cmds_need_lc_CXX=no |
10774 | allow_undefined_flag_CXX= | |
10775 | always_export_symbols_CXX=no | |
10776 | archive_expsym_cmds_CXX= | |
10777 | compiler_needs_object_CXX=no | |
10778 | export_dynamic_flag_spec_CXX= | |
10779 | hardcode_direct_CXX=no | |
10780 | hardcode_direct_absolute_CXX=no | |
10781 | hardcode_libdir_flag_spec_CXX= | |
10782 | hardcode_libdir_flag_spec_ld_CXX= | |
10783 | hardcode_libdir_separator_CXX= | |
10784 | hardcode_minus_L_CXX=no | |
10785 | hardcode_shlibpath_var_CXX=unsupported | |
10786 | hardcode_automatic_CXX=no | |
10787 | inherit_rpath_CXX=no | |
10788 | module_cmds_CXX= | |
10789 | module_expsym_cmds_CXX= | |
10790 | link_all_deplibs_CXX=unknown | |
10791 | old_archive_cmds_CXX=$old_archive_cmds | |
10792 | no_undefined_flag_CXX= | |
10793 | whole_archive_flag_spec_CXX= | |
10794 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 10795 | |
47aaa820 DWT |
10796 | # Source file extension for C++ test sources. |
10797 | ac_ext=cpp | |
9c60689e | 10798 | |
47aaa820 DWT |
10799 | # Object file extension for compiled C++ test sources. |
10800 | objext=o | |
10801 | objext_CXX=$objext | |
9c60689e | 10802 | |
47aaa820 DWT |
10803 | # No sense in running all these tests if we already determined that |
10804 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
10805 | # are currently assumed to apply to all compilers on this platform, | |
10806 | # and will be corrupted by setting them based on a non-working compiler. | |
10807 | if test "$_lt_caught_CXX_error" != yes; then | |
10808 | # Code to be used in simple compile tests | |
10809 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 10810 | |
47aaa820 DWT |
10811 | # Code to be used in simple link tests |
10812 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 10813 | |
47aaa820 | 10814 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 10815 | |
9c60689e | 10816 | |
9c60689e | 10817 | |
9c60689e | 10818 | |
9c60689e | 10819 | |
9c60689e | 10820 | |
47aaa820 DWT |
10821 | # If no C compiler was specified, use CC. |
10822 | LTCC=${LTCC-"$CC"} | |
9c60689e | 10823 | |
47aaa820 DWT |
10824 | # If no C compiler flags were specified, use CFLAGS. |
10825 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 10826 | |
47aaa820 DWT |
10827 | # Allow CC to be a program name with arguments. |
10828 | compiler=$CC | |
9c60689e | 10829 | |
9c60689e | 10830 | |
47aaa820 DWT |
10831 | # save warnings/boilerplate of simple test code |
10832 | ac_outfile=conftest.$ac_objext | |
10833 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10834 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10835 | _lt_compiler_boilerplate=`cat conftest.err` | |
10836 | $RM conftest* | |
9c60689e | 10837 | |
47aaa820 DWT |
10838 | ac_outfile=conftest.$ac_objext |
10839 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10840 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10841 | _lt_linker_boilerplate=`cat conftest.err` | |
10842 | $RM -r conftest* | |
9c60689e | 10843 | |
9c60689e | 10844 | |
47aaa820 DWT |
10845 | # Allow CC to be a program name with arguments. |
10846 | lt_save_CC=$CC | |
10847 | lt_save_LD=$LD | |
10848 | lt_save_GCC=$GCC | |
10849 | GCC=$GXX | |
10850 | lt_save_with_gnu_ld=$with_gnu_ld | |
10851 | lt_save_path_LD=$lt_cv_path_LD | |
10852 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10853 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 10854 | else |
47aaa820 | 10855 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 10856 | fi |
47aaa820 DWT |
10857 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10858 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 10859 | else |
47aaa820 | 10860 | $as_unset lt_cv_path_LD |
9c60689e | 10861 | fi |
47aaa820 DWT |
10862 | test -z "${LDCXX+set}" || LD=$LDCXX |
10863 | CC=${CXX-"c++"} | |
10864 | compiler=$CC | |
10865 | compiler_CXX=$CC | |
10866 | for cc_temp in $compiler""; do | |
10867 | case $cc_temp in | |
10868 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10869 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10870 | \-*) ;; | |
10871 | *) break;; | |
10872 | esac | |
10873 | done | |
10874 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9c60689e DWT |
10875 | |
10876 | ||
47aaa820 DWT |
10877 | if test -n "$compiler"; then |
10878 | # We don't want -fno-exception when compiling C++ code, so set the | |
10879 | # no_builtin_flag separately | |
10880 | if test "$GXX" = yes; then | |
10881 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10882 | else | |
10883 | lt_prog_compiler_no_builtin_flag_CXX= | |
10884 | fi | |
9c60689e | 10885 | |
47aaa820 DWT |
10886 | if test "$GXX" = yes; then |
10887 | # Set up default GNU C++ configuration | |
10888 | ||
10889 | ||
10890 | ||
10891 | # Check whether --with-gnu-ld was given. | |
10892 | if test "${with_gnu_ld+set}" = set; then : | |
10893 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 10894 | else |
47aaa820 | 10895 | with_gnu_ld=no |
9c60689e DWT |
10896 | fi |
10897 | ||
47aaa820 DWT |
10898 | ac_prog=ld |
10899 | if test "$GCC" = yes; then | |
10900 | # Check if gcc -print-prog-name=ld gives a path. | |
10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
10902 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
10903 | case $host in | |
10904 | *-*-mingw*) | |
10905 | # gcc leaves a trailing carriage return which upsets mingw | |
10906 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10907 | *) | |
10908 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10909 | esac | |
10910 | case $ac_prog in | |
10911 | # Accept absolute paths. | |
10912 | [\\/]* | ?:[\\/]*) | |
10913 | re_direlt='/[^/][^/]*/\.\./' | |
10914 | # Canonicalize the pathname of ld | |
10915 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
10916 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
10917 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
10918 | done | |
10919 | test -z "$LD" && LD="$ac_prog" | |
10920 | ;; | |
10921 | "") | |
10922 | # If it fails, then pretend we aren't using GCC. | |
10923 | ac_prog=ld | |
10924 | ;; | |
10925 | *) | |
10926 | # If it is relative, then search for the first ld in PATH. | |
10927 | with_gnu_ld=unknown | |
10928 | ;; | |
10929 | esac | |
10930 | elif test "$with_gnu_ld" = yes; then | |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
10932 | $as_echo_n "checking for GNU ld... " >&6; } | |
10933 | else | |
10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
10935 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 10936 | fi |
47aaa820 | 10937 | if test "${lt_cv_path_LD+set}" = set; then : |
9c60689e DWT |
10938 | $as_echo_n "(cached) " >&6 |
10939 | else | |
47aaa820 DWT |
10940 | if test -z "$LD"; then |
10941 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10942 | for ac_dir in $PATH; do | |
10943 | IFS="$lt_save_ifs" | |
10944 | test -z "$ac_dir" && ac_dir=. | |
10945 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10946 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
10947 | # Check to see if the program is GNU ld. I'd rather use --version, | |
10948 | # but apparently some variants of GNU ld only accept -v. | |
10949 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
10950 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10951 | *GNU* | *'with BFD'*) | |
10952 | test "$with_gnu_ld" != no && break | |
10953 | ;; | |
10954 | *) | |
10955 | test "$with_gnu_ld" != yes && break | |
10956 | ;; | |
10957 | esac | |
10958 | fi | |
9c60689e | 10959 | done |
47aaa820 DWT |
10960 | IFS="$lt_save_ifs" |
10961 | else | |
10962 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
10963 | fi |
10964 | fi | |
47aaa820 DWT |
10965 | |
10966 | LD="$lt_cv_path_LD" | |
10967 | if test -n "$LD"; then | |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
10969 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
10970 | else |
10971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10972 | $as_echo "no" >&6; } | |
10973 | fi | |
47aaa820 DWT |
10974 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
10976 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
10977 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
10978 | $as_echo_n "(cached) " >&6 | |
10979 | else | |
10980 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
10981 | case `$LD -v 2>&1 </dev/null` in | |
10982 | *GNU* | *'with BFD'*) | |
10983 | lt_cv_prog_gnu_ld=yes | |
10984 | ;; | |
10985 | *) | |
10986 | lt_cv_prog_gnu_ld=no | |
10987 | ;; | |
10988 | esac | |
10989 | fi | |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
10991 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
10992 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
10993 | |
10994 | ||
9c60689e | 10995 | |
9c60689e | 10996 | |
9c60689e | 10997 | |
9c60689e | 10998 | |
9c60689e | 10999 | |
47aaa820 DWT |
11000 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11001 | # archiving commands below assume that GNU ld is being used. | |
11002 | if test "$with_gnu_ld" = yes; then | |
11003 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11004 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9c60689e | 11005 | |
47aaa820 DWT |
11006 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11007 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11008 | |
47aaa820 DWT |
11009 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11010 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11011 | # investigate it a little bit more. (MM) | |
11012 | wlarc='${wl}' | |
9c60689e | 11013 | |
47aaa820 DWT |
11014 | # ancient GNU ld didn't support --whole-archive et. al. |
11015 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11016 | $GREP 'no-whole-archive' > /dev/null; then | |
11017 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11018 | else | |
11019 | whole_archive_flag_spec_CXX= | |
11020 | fi | |
11021 | else | |
11022 | with_gnu_ld=no | |
11023 | wlarc= | |
11024 | ||
11025 | # A generic and very simple default shared library creation | |
11026 | # command for GNU C++ for the case where it uses the native | |
11027 | # linker, instead of GNU ld. If possible, this setting should | |
11028 | # overridden to take advantage of the native linker features on | |
11029 | # the platform it is being used on. | |
11030 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11031 | fi | |
11032 | ||
11033 | # Commands to make compiler produce verbose output that lists | |
11034 | # what "hidden" libraries, object files and flags are used when | |
11035 | # linking a shared library. | |
11036 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11037 | ||
11038 | else | |
11039 | GXX=no | |
11040 | with_gnu_ld=no | |
11041 | wlarc= | |
11042 | fi | |
11043 | ||
11044 | # PORTME: fill in a description of your system's C++ link characteristics | |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11046 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11047 | ld_shlibs_CXX=yes | |
11048 | case $host_os in | |
11049 | aix3*) | |
11050 | # FIXME: insert proper C++ library support | |
11051 | ld_shlibs_CXX=no | |
11052 | ;; | |
11053 | aix[4-9]*) | |
11054 | if test "$host_cpu" = ia64; then | |
11055 | # On IA64, the linker does run time linking by default, so we don't | |
11056 | # have to do anything special. | |
11057 | aix_use_runtimelinking=no | |
11058 | exp_sym_flag='-Bexport' | |
11059 | no_entry_flag="" | |
11060 | else | |
11061 | aix_use_runtimelinking=no | |
11062 | ||
11063 | # Test if we are trying to use run time linking or normal | |
11064 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11065 | # need to do runtime linking. | |
11066 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11067 | for ld_flag in $LDFLAGS; do | |
11068 | case $ld_flag in | |
11069 | *-brtl*) | |
11070 | aix_use_runtimelinking=yes | |
11071 | break | |
11072 | ;; | |
11073 | esac | |
11074 | done | |
11075 | ;; | |
11076 | esac | |
11077 | ||
11078 | exp_sym_flag='-bexport' | |
11079 | no_entry_flag='-bnoentry' | |
11080 | fi | |
11081 | ||
11082 | # When large executables or shared objects are built, AIX ld can | |
11083 | # have problems creating the table of contents. If linking a library | |
11084 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11085 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11086 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11087 | ||
11088 | archive_cmds_CXX='' | |
11089 | hardcode_direct_CXX=yes | |
11090 | hardcode_direct_absolute_CXX=yes | |
11091 | hardcode_libdir_separator_CXX=':' | |
11092 | link_all_deplibs_CXX=yes | |
11093 | file_list_spec_CXX='${wl}-f,' | |
11094 | ||
11095 | if test "$GXX" = yes; then | |
11096 | case $host_os in aix4.[012]|aix4.[012].*) | |
11097 | # We only want to do this on AIX 4.2 and lower, the check | |
11098 | # below for broken collect2 doesn't work under 4.3+ | |
11099 | collect2name=`${CC} -print-prog-name=collect2` | |
11100 | if test -f "$collect2name" && | |
11101 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11102 | then | |
11103 | # We have reworked collect2 | |
11104 | : | |
11105 | else | |
11106 | # We have old collect2 | |
11107 | hardcode_direct_CXX=unsupported | |
11108 | # It fails to find uninstalled libraries when the uninstalled | |
11109 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11110 | # to unsupported forces relinking | |
11111 | hardcode_minus_L_CXX=yes | |
11112 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11113 | hardcode_libdir_separator_CXX= | |
11114 | fi | |
11115 | esac | |
11116 | shared_flag='-shared' | |
11117 | if test "$aix_use_runtimelinking" = yes; then | |
11118 | shared_flag="$shared_flag "'${wl}-G' | |
11119 | fi | |
11120 | else | |
11121 | # not using gcc | |
11122 | if test "$host_cpu" = ia64; then | |
11123 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11124 | # chokes on -Wl,-G. The following line is correct: | |
11125 | shared_flag='-G' | |
11126 | else | |
11127 | if test "$aix_use_runtimelinking" = yes; then | |
11128 | shared_flag='${wl}-G' | |
11129 | else | |
11130 | shared_flag='${wl}-bM:SRE' | |
11131 | fi | |
11132 | fi | |
11133 | fi | |
11134 | ||
11135 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11136 | # It seems that -bexpall does not export symbols beginning with | |
11137 | # underscore (_), so it is better to generate a list of symbols to | |
11138 | # export. | |
11139 | always_export_symbols_CXX=yes | |
11140 | if test "$aix_use_runtimelinking" = yes; then | |
11141 | # Warning - without using the other runtime loading flags (-brtl), | |
11142 | # -berok will link without error, but may produce a broken library. | |
11143 | allow_undefined_flag_CXX='-berok' | |
11144 | # Determine the default libpath from the value encoded in an empty | |
11145 | # executable. | |
11146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11147 | /* end confdefs.h. */ |
11148 | ||
11149 | int | |
11150 | main () | |
11151 | { | |
11152 | ||
11153 | ; | |
11154 | return 0; | |
11155 | } | |
11156 | _ACEOF | |
47aaa820 | 11157 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11158 | |
47aaa820 DWT |
11159 | lt_aix_libpath_sed=' |
11160 | /Import File Strings/,/^$/ { | |
11161 | /^0/ { | |
11162 | s/^0 *\(.*\)$/\1/ | |
11163 | p | |
11164 | } | |
11165 | }' | |
11166 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11167 | # Check for a 64-bit object if we didn't find anything. | |
11168 | if test -z "$aix_libpath"; then | |
11169 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11170 | fi | |
11171 | fi | |
11172 | rm -f core conftest.err conftest.$ac_objext \ | |
11173 | conftest$ac_exeext conftest.$ac_ext | |
11174 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11175 | ||
11176 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11177 | ||
11178 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11179 | else | |
11180 | if test "$host_cpu" = ia64; then | |
11181 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11182 | allow_undefined_flag_CXX="-z nodefs" | |
11183 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
11184 | else | |
11185 | # Determine the default libpath from the value encoded in an | |
11186 | # empty executable. | |
11187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11188 | /* end confdefs.h. */ |
11189 | ||
11190 | int | |
11191 | main () | |
11192 | { | |
11193 | ||
11194 | ; | |
11195 | return 0; | |
11196 | } | |
11197 | _ACEOF | |
47aaa820 | 11198 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11199 | |
47aaa820 DWT |
11200 | lt_aix_libpath_sed=' |
11201 | /Import File Strings/,/^$/ { | |
11202 | /^0/ { | |
11203 | s/^0 *\(.*\)$/\1/ | |
11204 | p | |
11205 | } | |
11206 | }' | |
11207 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11208 | # Check for a 64-bit object if we didn't find anything. | |
11209 | if test -z "$aix_libpath"; then | |
11210 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9c60689e | 11211 | fi |
9c60689e | 11212 | fi |
47aaa820 DWT |
11213 | rm -f core conftest.err conftest.$ac_objext \ |
11214 | conftest$ac_exeext conftest.$ac_ext | |
11215 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9c60689e | 11216 | |
47aaa820 DWT |
11217 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11218 | # Warning - without using the other run time loading flags, | |
11219 | # -berok will link without error, but may produce a broken library. | |
11220 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11221 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11222 | # Exported symbols can be pulled into shared objects from archives | |
11223 | whole_archive_flag_spec_CXX='$convenience' | |
11224 | archive_cmds_need_lc_CXX=yes | |
11225 | # This is similar to how AIX traditionally builds its shared | |
11226 | # libraries. | |
11227 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11228 | fi | |
11229 | fi | |
11230 | ;; | |
9c60689e | 11231 | |
47aaa820 DWT |
11232 | beos*) |
11233 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11234 | allow_undefined_flag_CXX=unsupported | |
11235 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11236 | # support --undefined. This deserves some investigation. FIXME | |
11237 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11238 | else | |
11239 | ld_shlibs_CXX=no | |
11240 | fi | |
11241 | ;; | |
9c60689e | 11242 | |
47aaa820 DWT |
11243 | chorus*) |
11244 | case $cc_basename in | |
11245 | *) | |
11246 | # FIXME: insert proper C++ library support | |
11247 | ld_shlibs_CXX=no | |
11248 | ;; | |
11249 | esac | |
11250 | ;; | |
9c60689e | 11251 | |
47aaa820 DWT |
11252 | cygwin* | mingw* | pw32* | cegcc*) |
11253 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11254 | # as there is no search path for DLLs. | |
11255 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11256 | allow_undefined_flag_CXX=unsupported | |
11257 | always_export_symbols_CXX=no | |
11258 | enable_shared_with_static_runtimes_CXX=yes | |
9c60689e | 11259 | |
47aaa820 DWT |
11260 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
11261 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11262 | # If the export-symbols file already is a .def file (1st line | |
11263 | # is EXPORTS), use it as is; otherwise, prepend... | |
11264 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11265 | cp $export_symbols $output_objdir/$soname.def; | |
11266 | else | |
11267 | echo EXPORTS > $output_objdir/$soname.def; | |
11268 | cat $export_symbols >> $output_objdir/$soname.def; | |
11269 | fi~ | |
11270 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11271 | else | |
11272 | ld_shlibs_CXX=no | |
11273 | fi | |
11274 | ;; | |
11275 | darwin* | rhapsody*) | |
9c60689e | 11276 | |
9c60689e | 11277 | |
47aaa820 DWT |
11278 | archive_cmds_need_lc_CXX=no |
11279 | hardcode_direct_CXX=no | |
11280 | hardcode_automatic_CXX=yes | |
11281 | hardcode_shlibpath_var_CXX=unsupported | |
11282 | whole_archive_flag_spec_CXX='' | |
11283 | link_all_deplibs_CXX=yes | |
11284 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11285 | case $cc_basename in | |
11286 | ifort*) _lt_dar_can_shared=yes ;; | |
11287 | *) _lt_dar_can_shared=$GCC ;; | |
11288 | esac | |
11289 | if test "$_lt_dar_can_shared" = "yes"; then | |
11290 | output_verbose_link_cmd=echo | |
11291 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
11292 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11293 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
11294 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
11295 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11296 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
11297 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
11298 | fi | |
9c60689e | 11299 | |
47aaa820 DWT |
11300 | else |
11301 | ld_shlibs_CXX=no | |
11302 | fi | |
9c60689e | 11303 | |
47aaa820 | 11304 | ;; |
9c60689e | 11305 | |
47aaa820 DWT |
11306 | dgux*) |
11307 | case $cc_basename in | |
11308 | ec++*) | |
11309 | # FIXME: insert proper C++ library support | |
11310 | ld_shlibs_CXX=no | |
11311 | ;; | |
11312 | ghcx*) | |
11313 | # Green Hills C++ Compiler | |
11314 | # FIXME: insert proper C++ library support | |
11315 | ld_shlibs_CXX=no | |
11316 | ;; | |
11317 | *) | |
11318 | # FIXME: insert proper C++ library support | |
11319 | ld_shlibs_CXX=no | |
11320 | ;; | |
11321 | esac | |
11322 | ;; | |
9c60689e | 11323 | |
47aaa820 DWT |
11324 | freebsd[12]*) |
11325 | # C++ shared libraries reported to be fairly broken before | |
11326 | # switch to ELF | |
11327 | ld_shlibs_CXX=no | |
11328 | ;; | |
9c60689e | 11329 | |
47aaa820 DWT |
11330 | freebsd-elf*) |
11331 | archive_cmds_need_lc_CXX=no | |
11332 | ;; | |
9c60689e | 11333 | |
47aaa820 DWT |
11334 | freebsd* | dragonfly*) |
11335 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11336 | # conventions | |
11337 | ld_shlibs_CXX=yes | |
11338 | ;; | |
9c60689e | 11339 | |
47aaa820 DWT |
11340 | gnu*) |
11341 | ;; | |
9c60689e | 11342 | |
47aaa820 DWT |
11343 | hpux9*) |
11344 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11345 | hardcode_libdir_separator_CXX=: | |
11346 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11347 | hardcode_direct_CXX=yes | |
11348 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11349 | # but as the default | |
11350 | # location of the library. | |
9c60689e | 11351 | |
47aaa820 DWT |
11352 | case $cc_basename in |
11353 | CC*) | |
11354 | # FIXME: insert proper C++ library support | |
11355 | ld_shlibs_CXX=no | |
11356 | ;; | |
11357 | aCC*) | |
11358 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11359 | # Commands to make compiler produce verbose output that lists | |
11360 | # what "hidden" libraries, object files and flags are used when | |
11361 | # linking a shared library. | |
11362 | # | |
11363 | # There doesn't appear to be a way to prevent this compiler from | |
11364 | # explicitly linking system object files so we need to strip them | |
11365 | # from the output so that they don't get included in the library | |
11366 | # dependencies. | |
11367 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11368 | ;; | |
11369 | *) | |
11370 | if test "$GXX" = yes; then | |
11371 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11372 | else | |
11373 | # FIXME: insert proper C++ library support | |
11374 | ld_shlibs_CXX=no | |
11375 | fi | |
11376 | ;; | |
11377 | esac | |
11378 | ;; | |
9c60689e | 11379 | |
47aaa820 DWT |
11380 | hpux10*|hpux11*) |
11381 | if test $with_gnu_ld = no; then | |
11382 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11383 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11384 | |
47aaa820 DWT |
11385 | case $host_cpu in |
11386 | hppa*64*|ia64*) | |
11387 | ;; | |
11388 | *) | |
11389 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11390 | ;; | |
11391 | esac | |
11392 | fi | |
11393 | case $host_cpu in | |
11394 | hppa*64*|ia64*) | |
11395 | hardcode_direct_CXX=no | |
11396 | hardcode_shlibpath_var_CXX=no | |
11397 | ;; | |
11398 | *) | |
11399 | hardcode_direct_CXX=yes | |
11400 | hardcode_direct_absolute_CXX=yes | |
11401 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11402 | # but as the default | |
11403 | # location of the library. | |
11404 | ;; | |
11405 | esac | |
9c60689e | 11406 | |
47aaa820 DWT |
11407 | case $cc_basename in |
11408 | CC*) | |
11409 | # FIXME: insert proper C++ library support | |
11410 | ld_shlibs_CXX=no | |
11411 | ;; | |
11412 | aCC*) | |
11413 | case $host_cpu in | |
11414 | hppa*64*) | |
11415 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11416 | ;; | |
11417 | ia64*) | |
11418 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11419 | ;; | |
11420 | *) | |
11421 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11422 | ;; | |
11423 | esac | |
11424 | # Commands to make compiler produce verbose output that lists | |
11425 | # what "hidden" libraries, object files and flags are used when | |
11426 | # linking a shared library. | |
11427 | # | |
11428 | # There doesn't appear to be a way to prevent this compiler from | |
11429 | # explicitly linking system object files so we need to strip them | |
11430 | # from the output so that they don't get included in the library | |
11431 | # dependencies. | |
11432 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11433 | ;; | |
11434 | *) | |
11435 | if test "$GXX" = yes; then | |
11436 | if test $with_gnu_ld = no; then | |
11437 | case $host_cpu in | |
11438 | hppa*64*) | |
11439 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11440 | ;; | |
11441 | ia64*) | |
11442 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11443 | ;; | |
11444 | *) | |
11445 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11446 | ;; | |
11447 | esac | |
11448 | fi | |
11449 | else | |
11450 | # FIXME: insert proper C++ library support | |
11451 | ld_shlibs_CXX=no | |
11452 | fi | |
11453 | ;; | |
11454 | esac | |
11455 | ;; | |
9c60689e | 11456 | |
47aaa820 DWT |
11457 | interix[3-9]*) |
11458 | hardcode_direct_CXX=no | |
11459 | hardcode_shlibpath_var_CXX=no | |
11460 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11461 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11462 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11463 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11464 | # default) and relocated if they conflict, which is a slow very memory | |
11465 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11466 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11467 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11468 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11469 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11470 | ;; | |
11471 | irix5* | irix6*) | |
11472 | case $cc_basename in | |
11473 | CC*) | |
11474 | # SGI C++ | |
11475 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9c60689e | 11476 | |
47aaa820 DWT |
11477 | # Archives containing C++ object files must be created using |
11478 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11479 | # necessary to make sure instantiated templates are included | |
11480 | # in the archive. | |
11481 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11482 | ;; | |
11483 | *) | |
11484 | if test "$GXX" = yes; then | |
11485 | if test "$with_gnu_ld" = no; then | |
11486 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11487 | else | |
11488 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
11489 | fi | |
11490 | fi | |
11491 | link_all_deplibs_CXX=yes | |
11492 | ;; | |
11493 | esac | |
11494 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11495 | hardcode_libdir_separator_CXX=: | |
11496 | inherit_rpath_CXX=yes | |
11497 | ;; | |
9c60689e | 11498 | |
47aaa820 DWT |
11499 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
11500 | case $cc_basename in | |
11501 | KCC*) | |
11502 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 11503 | |
47aaa820 DWT |
11504 | # KCC will only create a shared library if the output file |
11505 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11506 | # to its proper name (with version) after linking. | |
11507 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11508 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
11509 | # Commands to make compiler produce verbose output that lists | |
11510 | # what "hidden" libraries, object files and flags are used when | |
11511 | # linking a shared library. | |
11512 | # | |
11513 | # There doesn't appear to be a way to prevent this compiler from | |
11514 | # explicitly linking system object files so we need to strip them | |
11515 | # from the output so that they don't get included in the library | |
11516 | # dependencies. | |
11517 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
9c60689e | 11518 | |
47aaa820 DWT |
11519 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11520 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11521 | |
47aaa820 DWT |
11522 | # Archives containing C++ object files must be created using |
11523 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11524 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11525 | ;; | |
11526 | icpc* | ecpc* ) | |
11527 | # Intel C++ | |
11528 | with_gnu_ld=yes | |
11529 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11530 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11531 | # earlier do not add the objects themselves. | |
11532 | case `$CC -V 2>&1` in | |
11533 | *"Version 7."*) | |
11534 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11535 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11536 | ;; | |
11537 | *) # Version 8.0 or newer | |
11538 | tmp_idyn= | |
11539 | case $host_cpu in | |
11540 | ia64*) tmp_idyn=' -i_dynamic';; | |
11541 | esac | |
11542 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11543 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11544 | ;; | |
11545 | esac | |
11546 | archive_cmds_need_lc_CXX=no | |
11547 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11548 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11549 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11550 | ;; | |
11551 | pgCC* | pgcpp*) | |
11552 | # Portland Group C++ compiler | |
11553 | case `$CC -V` in | |
11554 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
11555 | prelink_cmds_CXX='tpldir=Template.dir~ | |
11556 | rm -rf $tpldir~ | |
11557 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
11558 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
11559 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
11560 | rm -rf $tpldir~ | |
11561 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
11562 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
11563 | $RANLIB $oldlib' | |
11564 | archive_cmds_CXX='tpldir=Template.dir~ | |
11565 | rm -rf $tpldir~ | |
11566 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11567 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11568 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
11569 | rm -rf $tpldir~ | |
11570 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11571 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11572 | ;; | |
11573 | *) # Version 6 will use weak symbols | |
11574 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11575 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11576 | ;; | |
11577 | esac | |
9c60689e | 11578 | |
47aaa820 DWT |
11579 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11580 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11581 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11582 | ;; | |
11583 | cxx*) | |
11584 | # Compaq C++ | |
11585 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11586 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
9c60689e | 11587 | |
47aaa820 DWT |
11588 | runpath_var=LD_RUN_PATH |
11589 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11590 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11591 | |
47aaa820 DWT |
11592 | # Commands to make compiler produce verbose output that lists |
11593 | # what "hidden" libraries, object files and flags are used when | |
11594 | # linking a shared library. | |
11595 | # | |
11596 | # There doesn't appear to be a way to prevent this compiler from | |
11597 | # explicitly linking system object files so we need to strip them | |
11598 | # from the output so that they don't get included in the library | |
11599 | # dependencies. | |
11600 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11601 | ;; | |
11602 | xl*) | |
11603 | # IBM XL 8.0 on PPC, with GNU ld | |
11604 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11605 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11606 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11607 | if test "x$supports_anon_versioning" = xyes; then | |
11608 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
11609 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11610 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11611 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
11612 | fi | |
11613 | ;; | |
11614 | *) | |
11615 | case `$CC -V 2>&1 | sed 5q` in | |
11616 | *Sun\ C*) | |
11617 | # Sun C++ 5.9 | |
11618 | no_undefined_flag_CXX=' -zdefs' | |
11619 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11620 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
11621 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11622 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
11623 | compiler_needs_object_CXX=yes | |
9c60689e | 11624 | |
47aaa820 DWT |
11625 | # Not sure whether something based on |
11626 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
11627 | # would be better. | |
11628 | output_verbose_link_cmd='echo' | |
9c60689e | 11629 | |
47aaa820 DWT |
11630 | # Archives containing C++ object files must be created using |
11631 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11632 | # necessary to make sure instantiated templates are included | |
11633 | # in the archive. | |
11634 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11635 | ;; | |
11636 | esac | |
11637 | ;; | |
11638 | esac | |
11639 | ;; | |
9c60689e | 11640 | |
47aaa820 DWT |
11641 | lynxos*) |
11642 | # FIXME: insert proper C++ library support | |
11643 | ld_shlibs_CXX=no | |
11644 | ;; | |
9c60689e | 11645 | |
47aaa820 DWT |
11646 | m88k*) |
11647 | # FIXME: insert proper C++ library support | |
11648 | ld_shlibs_CXX=no | |
11649 | ;; | |
9c60689e | 11650 | |
47aaa820 DWT |
11651 | mvs*) |
11652 | case $cc_basename in | |
11653 | cxx*) | |
11654 | # FIXME: insert proper C++ library support | |
11655 | ld_shlibs_CXX=no | |
11656 | ;; | |
11657 | *) | |
11658 | # FIXME: insert proper C++ library support | |
11659 | ld_shlibs_CXX=no | |
11660 | ;; | |
11661 | esac | |
11662 | ;; | |
9c60689e | 11663 | |
47aaa820 DWT |
11664 | netbsd*) |
11665 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11666 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11667 | wlarc= | |
11668 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11669 | hardcode_direct_CXX=yes | |
11670 | hardcode_shlibpath_var_CXX=no | |
11671 | fi | |
11672 | # Workaround some broken pre-1.5 toolchains | |
11673 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 11674 | ;; |
47aaa820 DWT |
11675 | |
11676 | *nto* | *qnx*) | |
11677 | ld_shlibs_CXX=yes | |
9c60689e | 11678 | ;; |
9c60689e | 11679 | |
47aaa820 DWT |
11680 | openbsd2*) |
11681 | # C++ shared libraries are fairly broken | |
11682 | ld_shlibs_CXX=no | |
11683 | ;; | |
9c60689e | 11684 | |
47aaa820 DWT |
11685 | openbsd*) |
11686 | if test -f /usr/libexec/ld.so; then | |
11687 | hardcode_direct_CXX=yes | |
11688 | hardcode_shlibpath_var_CXX=no | |
11689 | hardcode_direct_absolute_CXX=yes | |
11690 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11691 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11692 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11693 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11694 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11695 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11696 | fi | |
11697 | output_verbose_link_cmd=echo | |
11698 | else | |
11699 | ld_shlibs_CXX=no | |
11700 | fi | |
11701 | ;; | |
9c60689e | 11702 | |
47aaa820 DWT |
11703 | osf3* | osf4* | osf5*) |
11704 | case $cc_basename in | |
11705 | KCC*) | |
11706 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 11707 | |
47aaa820 DWT |
11708 | # KCC will only create a shared library if the output file |
11709 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11710 | # to its proper name (with version) after linking. | |
11711 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
9c60689e | 11712 | |
47aaa820 DWT |
11713 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11714 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11715 | |
47aaa820 DWT |
11716 | # Archives containing C++ object files must be created using |
11717 | # the KAI C++ compiler. | |
11718 | case $host in | |
11719 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
11720 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
11721 | esac | |
11722 | ;; | |
11723 | RCC*) | |
11724 | # Rational C++ 2.4.1 | |
11725 | # FIXME: insert proper C++ library support | |
11726 | ld_shlibs_CXX=no | |
11727 | ;; | |
11728 | cxx*) | |
11729 | case $host in | |
11730 | osf3*) | |
11731 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11732 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11733 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11734 | ;; | |
11735 | *) | |
11736 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11737 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
11738 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11739 | echo "-hidden">> $lib.exp~ | |
11740 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
11741 | $RM $lib.exp' | |
11742 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11743 | ;; | |
11744 | esac | |
9c60689e | 11745 | |
47aaa820 | 11746 | hardcode_libdir_separator_CXX=: |
9c60689e | 11747 | |
47aaa820 DWT |
11748 | # Commands to make compiler produce verbose output that lists |
11749 | # what "hidden" libraries, object files and flags are used when | |
11750 | # linking a shared library. | |
11751 | # | |
11752 | # There doesn't appear to be a way to prevent this compiler from | |
11753 | # explicitly linking system object files so we need to strip them | |
11754 | # from the output so that they don't get included in the library | |
11755 | # dependencies. | |
11756 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
11757 | ;; | |
11758 | *) | |
11759 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11760 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11761 | case $host in | |
11762 | osf3*) | |
11763 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11764 | ;; | |
11765 | *) | |
11766 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11767 | ;; | |
11768 | esac | |
9c60689e | 11769 | |
47aaa820 DWT |
11770 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11771 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11772 | |
47aaa820 DWT |
11773 | # Commands to make compiler produce verbose output that lists |
11774 | # what "hidden" libraries, object files and flags are used when | |
11775 | # linking a shared library. | |
11776 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
9c60689e | 11777 | |
47aaa820 DWT |
11778 | else |
11779 | # FIXME: insert proper C++ library support | |
11780 | ld_shlibs_CXX=no | |
11781 | fi | |
11782 | ;; | |
11783 | esac | |
11784 | ;; | |
9c60689e | 11785 | |
47aaa820 | 11786 | psos*) |
9c60689e DWT |
11787 | # FIXME: insert proper C++ library support |
11788 | ld_shlibs_CXX=no | |
11789 | ;; | |
9c60689e | 11790 | |
47aaa820 DWT |
11791 | sunos4*) |
11792 | case $cc_basename in | |
11793 | CC*) | |
11794 | # Sun C++ 4.x | |
11795 | # FIXME: insert proper C++ library support | |
11796 | ld_shlibs_CXX=no | |
9c60689e | 11797 | ;; |
47aaa820 DWT |
11798 | lcc*) |
11799 | # Lucid | |
11800 | # FIXME: insert proper C++ library support | |
11801 | ld_shlibs_CXX=no | |
11802 | ;; | |
11803 | *) | |
11804 | # FIXME: insert proper C++ library support | |
11805 | ld_shlibs_CXX=no | |
11806 | ;; | |
11807 | esac | |
11808 | ;; | |
9c60689e | 11809 | |
47aaa820 DWT |
11810 | solaris*) |
11811 | case $cc_basename in | |
11812 | CC*) | |
11813 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11814 | archive_cmds_need_lc_CXX=yes | |
11815 | no_undefined_flag_CXX=' -zdefs' | |
11816 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11817 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11818 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 11819 | |
47aaa820 DWT |
11820 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11821 | hardcode_shlibpath_var_CXX=no | |
11822 | case $host_os in | |
11823 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11824 | *) | |
11825 | # The compiler driver will combine and reorder linker options, | |
11826 | # but understands `-z linker_flag'. | |
11827 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11828 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
11829 | ;; | |
11830 | esac | |
11831 | link_all_deplibs_CXX=yes | |
9c60689e | 11832 | |
47aaa820 | 11833 | output_verbose_link_cmd='echo' |
9c60689e | 11834 | |
47aaa820 DWT |
11835 | # Archives containing C++ object files must be created using |
11836 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11837 | # necessary to make sure instantiated templates are included | |
11838 | # in the archive. | |
11839 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11840 | ;; | |
11841 | gcx*) | |
11842 | # Green Hills C++ Compiler | |
11843 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 11844 | |
47aaa820 DWT |
11845 | # The C++ compiler must be used to create the archive. |
11846 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11847 | ;; | |
11848 | *) | |
11849 | # GNU C++ compiler with Solaris linker | |
11850 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11851 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11852 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
11853 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11854 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11855 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 11856 | |
47aaa820 DWT |
11857 | # Commands to make compiler produce verbose output that lists |
11858 | # what "hidden" libraries, object files and flags are used when | |
11859 | # linking a shared library. | |
11860 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11861 | else | |
11862 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11863 | # platform. | |
11864 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11865 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11866 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 11867 | |
47aaa820 DWT |
11868 | # Commands to make compiler produce verbose output that lists |
11869 | # what "hidden" libraries, object files and flags are used when | |
11870 | # linking a shared library. | |
11871 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11872 | fi | |
9c60689e | 11873 | |
47aaa820 DWT |
11874 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11875 | case $host_os in | |
11876 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11877 | *) | |
11878 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11879 | ;; | |
11880 | esac | |
11881 | fi | |
11882 | ;; | |
11883 | esac | |
11884 | ;; | |
9c60689e | 11885 | |
47aaa820 DWT |
11886 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11887 | no_undefined_flag_CXX='${wl}-z,text' | |
11888 | archive_cmds_need_lc_CXX=no | |
11889 | hardcode_shlibpath_var_CXX=no | |
11890 | runpath_var='LD_RUN_PATH' | |
9c60689e | 11891 | |
47aaa820 DWT |
11892 | case $cc_basename in |
11893 | CC*) | |
11894 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11895 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11896 | ;; | |
11897 | *) | |
11898 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11899 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11900 | ;; | |
11901 | esac | |
11902 | ;; | |
9c60689e | 11903 | |
47aaa820 DWT |
11904 | sysv5* | sco3.2v5* | sco5v6*) |
11905 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11906 | # link with -lc, and that would cause any symbols used from libc to | |
11907 | # always be unresolved, which means just about no library would | |
11908 | # ever link correctly. If we're not using GNU ld we use -z text | |
11909 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11910 | # as -z defs. | |
11911 | no_undefined_flag_CXX='${wl}-z,text' | |
11912 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11913 | archive_cmds_need_lc_CXX=no | |
11914 | hardcode_shlibpath_var_CXX=no | |
11915 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
11916 | hardcode_libdir_separator_CXX=':' | |
11917 | link_all_deplibs_CXX=yes | |
11918 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11919 | runpath_var='LD_RUN_PATH' | |
9c60689e | 11920 | |
47aaa820 DWT |
11921 | case $cc_basename in |
11922 | CC*) | |
11923 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11924 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11925 | ;; | |
11926 | *) | |
11927 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11928 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11929 | ;; | |
11930 | esac | |
11931 | ;; | |
9c60689e | 11932 | |
47aaa820 | 11933 | tandem*) |
9c60689e | 11934 | case $cc_basename in |
47aaa820 DWT |
11935 | NCC*) |
11936 | # NonStop-UX NCC 3.20 | |
11937 | # FIXME: insert proper C++ library support | |
11938 | ld_shlibs_CXX=no | |
11939 | ;; | |
9c60689e | 11940 | *) |
47aaa820 DWT |
11941 | # FIXME: insert proper C++ library support |
11942 | ld_shlibs_CXX=no | |
11943 | ;; | |
9c60689e DWT |
11944 | esac |
11945 | ;; | |
11946 | ||
47aaa820 DWT |
11947 | vxworks*) |
11948 | # FIXME: insert proper C++ library support | |
11949 | ld_shlibs_CXX=no | |
11950 | ;; | |
9c60689e | 11951 | |
47aaa820 DWT |
11952 | *) |
11953 | # FIXME: insert proper C++ library support | |
11954 | ld_shlibs_CXX=no | |
9c60689e | 11955 | ;; |
47aaa820 | 11956 | esac |
9c60689e | 11957 | |
47aaa820 DWT |
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
11959 | $as_echo "$ld_shlibs_CXX" >&6; } | |
11960 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 11961 | |
47aaa820 DWT |
11962 | GCC_CXX="$GXX" |
11963 | LD_CXX="$LD" | |
9c60689e | 11964 | |
47aaa820 DWT |
11965 | ## CAVEAT EMPTOR: |
11966 | ## There is no encapsulation within the following macros, do not change | |
11967 | ## the running order or otherwise move them around unless you know exactly | |
11968 | ## what you are doing... | |
11969 | # Dependencies to place before and after the object being linked: | |
11970 | predep_objects_CXX= | |
11971 | postdep_objects_CXX= | |
11972 | predeps_CXX= | |
11973 | postdeps_CXX= | |
11974 | compiler_lib_search_path_CXX= | |
9c60689e | 11975 | |
47aaa820 DWT |
11976 | cat > conftest.$ac_ext <<_LT_EOF |
11977 | class Foo | |
11978 | { | |
11979 | public: | |
11980 | Foo (void) { a = 0; } | |
11981 | private: | |
11982 | int a; | |
11983 | }; | |
11984 | _LT_EOF | |
9c60689e | 11985 | |
47aaa820 DWT |
11986 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
11987 | (eval $ac_compile) 2>&5 | |
11988 | ac_status=$? | |
11989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11990 | test $ac_status = 0; }; then | |
11991 | # Parse the compiler output and extract the necessary | |
11992 | # objects, libraries and library flags. | |
9c60689e | 11993 | |
47aaa820 DWT |
11994 | # Sentinel used to keep track of whether or not we are before |
11995 | # the conftest object file. | |
11996 | pre_test_object_deps_done=no | |
9c60689e | 11997 | |
47aaa820 DWT |
11998 | for p in `eval "$output_verbose_link_cmd"`; do |
11999 | case $p in | |
9c60689e | 12000 | |
47aaa820 DWT |
12001 | -L* | -R* | -l*) |
12002 | # Some compilers place space between "-{L,R}" and the path. | |
12003 | # Remove the space. | |
12004 | if test $p = "-L" || | |
12005 | test $p = "-R"; then | |
12006 | prev=$p | |
12007 | continue | |
12008 | else | |
12009 | prev= | |
12010 | fi | |
9c60689e | 12011 | |
47aaa820 DWT |
12012 | if test "$pre_test_object_deps_done" = no; then |
12013 | case $p in | |
12014 | -L* | -R*) | |
12015 | # Internal compiler library paths should come after those | |
12016 | # provided the user. The postdeps already come after the | |
12017 | # user supplied libs so there is no need to process them. | |
12018 | if test -z "$compiler_lib_search_path_CXX"; then | |
12019 | compiler_lib_search_path_CXX="${prev}${p}" | |
12020 | else | |
12021 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12022 | fi | |
12023 | ;; | |
12024 | # The "-l" case would never come before the object being | |
12025 | # linked, so don't bother handling this case. | |
12026 | esac | |
12027 | else | |
12028 | if test -z "$postdeps_CXX"; then | |
12029 | postdeps_CXX="${prev}${p}" | |
12030 | else | |
12031 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12032 | fi | |
12033 | fi | |
12034 | ;; | |
9c60689e | 12035 | |
47aaa820 DWT |
12036 | *.$objext) |
12037 | # This assumes that the test object file only shows up | |
12038 | # once in the compiler output. | |
12039 | if test "$p" = "conftest.$objext"; then | |
12040 | pre_test_object_deps_done=yes | |
12041 | continue | |
12042 | fi | |
9c60689e | 12043 | |
47aaa820 DWT |
12044 | if test "$pre_test_object_deps_done" = no; then |
12045 | if test -z "$predep_objects_CXX"; then | |
12046 | predep_objects_CXX="$p" | |
12047 | else | |
12048 | predep_objects_CXX="$predep_objects_CXX $p" | |
12049 | fi | |
12050 | else | |
12051 | if test -z "$postdep_objects_CXX"; then | |
12052 | postdep_objects_CXX="$p" | |
12053 | else | |
12054 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12055 | fi | |
12056 | fi | |
12057 | ;; | |
9c60689e | 12058 | |
47aaa820 | 12059 | *) ;; # Ignore the rest. |
9c60689e | 12060 | |
47aaa820 DWT |
12061 | esac |
12062 | done | |
9c60689e | 12063 | |
47aaa820 DWT |
12064 | # Clean up. |
12065 | rm -f a.out a.exe | |
12066 | else | |
12067 | echo "libtool.m4: error: problem compiling CXX test program" | |
12068 | fi | |
9c60689e | 12069 | |
47aaa820 | 12070 | $RM -f confest.$objext |
9c60689e | 12071 | |
47aaa820 DWT |
12072 | # PORTME: override above test on systems where it is broken |
12073 | case $host_os in | |
12074 | interix[3-9]*) | |
12075 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12076 | # hack all around it, let's just trust "g++" to DTRT. | |
12077 | predep_objects_CXX= | |
12078 | postdep_objects_CXX= | |
12079 | postdeps_CXX= | |
12080 | ;; | |
9c60689e | 12081 | |
47aaa820 DWT |
12082 | linux*) |
12083 | case `$CC -V 2>&1 | sed 5q` in | |
12084 | *Sun\ C*) | |
12085 | # Sun C++ 5.9 | |
9c60689e | 12086 | |
47aaa820 DWT |
12087 | # The more standards-conforming stlport4 library is |
12088 | # incompatible with the Cstd library. Avoid specifying | |
12089 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12090 | # -library=stlport4 depends on it. | |
12091 | case " $CXX $CXXFLAGS " in | |
12092 | *" -library=stlport4 "*) | |
12093 | solaris_use_stlport4=yes | |
12094 | ;; | |
12095 | esac | |
9c60689e | 12096 | |
47aaa820 DWT |
12097 | if test "$solaris_use_stlport4" != yes; then |
12098 | postdeps_CXX='-library=Cstd -library=Crun' | |
12099 | fi | |
12100 | ;; | |
12101 | esac | |
12102 | ;; | |
9c60689e | 12103 | |
47aaa820 DWT |
12104 | solaris*) |
12105 | case $cc_basename in | |
12106 | CC*) | |
12107 | # The more standards-conforming stlport4 library is | |
12108 | # incompatible with the Cstd library. Avoid specifying | |
12109 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12110 | # -library=stlport4 depends on it. | |
12111 | case " $CXX $CXXFLAGS " in | |
12112 | *" -library=stlport4 "*) | |
12113 | solaris_use_stlport4=yes | |
12114 | ;; | |
12115 | esac | |
9c60689e | 12116 | |
47aaa820 DWT |
12117 | # Adding this requires a known-good setup of shared libraries for |
12118 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12119 | # archive will be linked into the output, leading to subtle bugs. | |
12120 | if test "$solaris_use_stlport4" != yes; then | |
12121 | postdeps_CXX='-library=Cstd -library=Crun' | |
12122 | fi | |
12123 | ;; | |
12124 | esac | |
12125 | ;; | |
12126 | esac | |
9c60689e | 12127 | |
9c60689e | 12128 | |
47aaa820 DWT |
12129 | case " $postdeps_CXX " in |
12130 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12131 | esac | |
12132 | compiler_lib_search_dirs_CXX= | |
12133 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12134 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12135 | fi | |
9c60689e | 12136 | |
9c60689e | 12137 | |
9c60689e | 12138 | |
9c60689e | 12139 | |
9c60689e | 12140 | |
9c60689e | 12141 | |
9c60689e | 12142 | |
9c60689e | 12143 | |
9c60689e | 12144 | |
9c60689e | 12145 | |
9c60689e | 12146 | |
9c60689e | 12147 | |
9c60689e | 12148 | |
9c60689e | 12149 | |
9c60689e | 12150 | |
9c60689e | 12151 | |
9c60689e | 12152 | |
9c60689e | 12153 | |
9c60689e | 12154 | |
9c60689e | 12155 | |
9c60689e | 12156 | |
9c60689e | 12157 | |
9c60689e | 12158 | |
9c60689e | 12159 | |
9c60689e | 12160 | |
9c60689e | 12161 | |
9c60689e | 12162 | |
9c60689e | 12163 | |
9c60689e | 12164 | |
9c60689e | 12165 | |
9c60689e | 12166 | |
47aaa820 DWT |
12167 | lt_prog_compiler_wl_CXX= |
12168 | lt_prog_compiler_pic_CXX= | |
12169 | lt_prog_compiler_static_CXX= | |
9c60689e DWT |
12170 | |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12172 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12173 | ||
12174 | # C++ specific cases for pic, static, wl, etc. | |
12175 | if test "$GXX" = yes; then | |
12176 | lt_prog_compiler_wl_CXX='-Wl,' | |
12177 | lt_prog_compiler_static_CXX='-static' | |
12178 | ||
12179 | case $host_os in | |
12180 | aix*) | |
12181 | # All AIX code is PIC. | |
12182 | if test "$host_cpu" = ia64; then | |
12183 | # AIX 5 now supports IA64 processor | |
12184 | lt_prog_compiler_static_CXX='-Bstatic' | |
12185 | fi | |
12186 | ;; | |
12187 | ||
12188 | amigaos*) | |
12189 | case $host_cpu in | |
12190 | powerpc) | |
12191 | # see comment about AmigaOS4 .so support | |
12192 | lt_prog_compiler_pic_CXX='-fPIC' | |
12193 | ;; | |
12194 | m68k) | |
12195 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12196 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12197 | # like `-m68040'. | |
12198 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12199 | ;; | |
12200 | esac | |
12201 | ;; | |
12202 | ||
12203 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12204 | # PIC is the default for these OSes. | |
12205 | ;; | |
12206 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12207 | # This hack is so that the source file can tell whether it is being | |
12208 | # built for inclusion in a dll (and should export symbols for example). | |
12209 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12210 | # (--disable-auto-import) libraries | |
12211 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12212 | ;; | |
12213 | darwin* | rhapsody*) | |
12214 | # PIC is the default on this platform | |
12215 | # Common symbols not allowed in MH_DYLIB files | |
12216 | lt_prog_compiler_pic_CXX='-fno-common' | |
12217 | ;; | |
12218 | *djgpp*) | |
12219 | # DJGPP does not support shared libraries at all | |
12220 | lt_prog_compiler_pic_CXX= | |
12221 | ;; | |
12222 | interix[3-9]*) | |
12223 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12224 | # Instead, we relocate shared libraries at runtime. | |
12225 | ;; | |
12226 | sysv4*MP*) | |
12227 | if test -d /usr/nec; then | |
12228 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12229 | fi | |
12230 | ;; | |
12231 | hpux*) | |
12232 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12233 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12234 | # sets the default TLS model and affects inlining. | |
12235 | case $host_cpu in | |
12236 | hppa*64*) | |
12237 | ;; | |
12238 | *) | |
12239 | lt_prog_compiler_pic_CXX='-fPIC' | |
12240 | ;; | |
12241 | esac | |
12242 | ;; | |
12243 | *qnx* | *nto*) | |
12244 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12245 | # it will coredump. | |
12246 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12247 | ;; | |
12248 | *) | |
12249 | lt_prog_compiler_pic_CXX='-fPIC' | |
12250 | ;; | |
12251 | esac | |
12252 | else | |
12253 | case $host_os in | |
12254 | aix[4-9]*) | |
12255 | # All AIX code is PIC. | |
12256 | if test "$host_cpu" = ia64; then | |
12257 | # AIX 5 now supports IA64 processor | |
12258 | lt_prog_compiler_static_CXX='-Bstatic' | |
12259 | else | |
12260 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12261 | fi | |
12262 | ;; | |
12263 | chorus*) | |
12264 | case $cc_basename in | |
12265 | cxch68*) | |
12266 | # Green Hills C++ Compiler | |
12267 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
12268 | ;; | |
12269 | esac | |
12270 | ;; | |
12271 | dgux*) | |
12272 | case $cc_basename in | |
12273 | ec++*) | |
12274 | lt_prog_compiler_pic_CXX='-KPIC' | |
12275 | ;; | |
12276 | ghcx*) | |
12277 | # Green Hills C++ Compiler | |
12278 | lt_prog_compiler_pic_CXX='-pic' | |
12279 | ;; | |
12280 | *) | |
12281 | ;; | |
12282 | esac | |
12283 | ;; | |
12284 | freebsd* | dragonfly*) | |
12285 | # FreeBSD uses GNU C++ | |
12286 | ;; | |
12287 | hpux9* | hpux10* | hpux11*) | |
12288 | case $cc_basename in | |
12289 | CC*) | |
12290 | lt_prog_compiler_wl_CXX='-Wl,' | |
12291 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12292 | if test "$host_cpu" != ia64; then | |
12293 | lt_prog_compiler_pic_CXX='+Z' | |
12294 | fi | |
12295 | ;; | |
12296 | aCC*) | |
12297 | lt_prog_compiler_wl_CXX='-Wl,' | |
12298 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12299 | case $host_cpu in | |
12300 | hppa*64*|ia64*) | |
12301 | # +Z the default | |
12302 | ;; | |
12303 | *) | |
12304 | lt_prog_compiler_pic_CXX='+Z' | |
12305 | ;; | |
12306 | esac | |
12307 | ;; | |
12308 | *) | |
12309 | ;; | |
12310 | esac | |
12311 | ;; | |
12312 | interix*) | |
12313 | # This is c89, which is MS Visual C++ (no shared libs) | |
12314 | # Anyone wants to do a port? | |
12315 | ;; | |
12316 | irix5* | irix6* | nonstopux*) | |
12317 | case $cc_basename in | |
12318 | CC*) | |
12319 | lt_prog_compiler_wl_CXX='-Wl,' | |
12320 | lt_prog_compiler_static_CXX='-non_shared' | |
12321 | # CC pic flag -KPIC is the default. | |
12322 | ;; | |
12323 | *) | |
12324 | ;; | |
12325 | esac | |
12326 | ;; | |
12327 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12328 | case $cc_basename in | |
12329 | KCC*) | |
12330 | # KAI C++ Compiler | |
12331 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12332 | lt_prog_compiler_pic_CXX='-fPIC' | |
12333 | ;; | |
12334 | ecpc* ) | |
12335 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12336 | lt_prog_compiler_wl_CXX='-Wl,' | |
12337 | lt_prog_compiler_pic_CXX='-KPIC' | |
12338 | lt_prog_compiler_static_CXX='-static' | |
12339 | ;; | |
12340 | icpc* ) | |
12341 | # Intel C++, used to be incompatible with GCC. | |
12342 | # ICC 10 doesn't accept -KPIC any more. | |
12343 | lt_prog_compiler_wl_CXX='-Wl,' | |
12344 | lt_prog_compiler_pic_CXX='-fPIC' | |
12345 | lt_prog_compiler_static_CXX='-static' | |
12346 | ;; | |
12347 | pgCC* | pgcpp*) | |
12348 | # Portland Group C++ compiler | |
12349 | lt_prog_compiler_wl_CXX='-Wl,' | |
12350 | lt_prog_compiler_pic_CXX='-fpic' | |
12351 | lt_prog_compiler_static_CXX='-Bstatic' | |
12352 | ;; | |
12353 | cxx*) | |
12354 | # Compaq C++ | |
12355 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12356 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12357 | lt_prog_compiler_pic_CXX= | |
12358 | lt_prog_compiler_static_CXX='-non_shared' | |
12359 | ;; | |
12360 | xlc* | xlC*) | |
12361 | # IBM XL 8.0 on PPC | |
12362 | lt_prog_compiler_wl_CXX='-Wl,' | |
12363 | lt_prog_compiler_pic_CXX='-qpic' | |
12364 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12365 | ;; | |
12366 | *) | |
12367 | case `$CC -V 2>&1 | sed 5q` in | |
12368 | *Sun\ C*) | |
12369 | # Sun C++ 5.9 | |
12370 | lt_prog_compiler_pic_CXX='-KPIC' | |
12371 | lt_prog_compiler_static_CXX='-Bstatic' | |
12372 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12373 | ;; | |
12374 | esac | |
12375 | ;; | |
12376 | esac | |
12377 | ;; | |
12378 | lynxos*) | |
12379 | ;; | |
12380 | m88k*) | |
12381 | ;; | |
12382 | mvs*) | |
12383 | case $cc_basename in | |
12384 | cxx*) | |
12385 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12386 | ;; | |
12387 | *) | |
12388 | ;; | |
12389 | esac | |
12390 | ;; | |
12391 | netbsd* | netbsdelf*-gnu) | |
12392 | ;; | |
12393 | *qnx* | *nto*) | |
12394 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12395 | # it will coredump. | |
12396 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12397 | ;; | |
12398 | osf3* | osf4* | osf5*) | |
12399 | case $cc_basename in | |
12400 | KCC*) | |
12401 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12402 | ;; | |
12403 | RCC*) | |
12404 | # Rational C++ 2.4.1 | |
12405 | lt_prog_compiler_pic_CXX='-pic' | |
12406 | ;; | |
12407 | cxx*) | |
12408 | # Digital/Compaq C++ | |
12409 | lt_prog_compiler_wl_CXX='-Wl,' | |
12410 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12411 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12412 | lt_prog_compiler_pic_CXX= | |
12413 | lt_prog_compiler_static_CXX='-non_shared' | |
12414 | ;; | |
12415 | *) | |
12416 | ;; | |
12417 | esac | |
12418 | ;; | |
12419 | psos*) | |
12420 | ;; | |
12421 | solaris*) | |
12422 | case $cc_basename in | |
12423 | CC*) | |
12424 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12425 | lt_prog_compiler_pic_CXX='-KPIC' | |
12426 | lt_prog_compiler_static_CXX='-Bstatic' | |
12427 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12428 | ;; | |
12429 | gcx*) | |
12430 | # Green Hills C++ Compiler | |
12431 | lt_prog_compiler_pic_CXX='-PIC' | |
12432 | ;; | |
12433 | *) | |
12434 | ;; | |
12435 | esac | |
12436 | ;; | |
12437 | sunos4*) | |
12438 | case $cc_basename in | |
12439 | CC*) | |
12440 | # Sun C++ 4.x | |
12441 | lt_prog_compiler_pic_CXX='-pic' | |
12442 | lt_prog_compiler_static_CXX='-Bstatic' | |
12443 | ;; | |
12444 | lcc*) | |
12445 | # Lucid | |
12446 | lt_prog_compiler_pic_CXX='-pic' | |
12447 | ;; | |
12448 | *) | |
12449 | ;; | |
12450 | esac | |
12451 | ;; | |
12452 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12453 | case $cc_basename in | |
12454 | CC*) | |
12455 | lt_prog_compiler_wl_CXX='-Wl,' | |
12456 | lt_prog_compiler_pic_CXX='-KPIC' | |
12457 | lt_prog_compiler_static_CXX='-Bstatic' | |
12458 | ;; | |
12459 | esac | |
12460 | ;; | |
12461 | tandem*) | |
12462 | case $cc_basename in | |
12463 | NCC*) | |
12464 | # NonStop-UX NCC 3.20 | |
12465 | lt_prog_compiler_pic_CXX='-KPIC' | |
12466 | ;; | |
12467 | *) | |
12468 | ;; | |
12469 | esac | |
12470 | ;; | |
12471 | vxworks*) | |
12472 | ;; | |
12473 | *) | |
12474 | lt_prog_compiler_can_build_shared_CXX=no | |
12475 | ;; | |
12476 | esac | |
12477 | fi | |
12478 | ||
12479 | case $host_os in | |
12480 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12481 | *djgpp*) | |
12482 | lt_prog_compiler_pic_CXX= | |
12483 | ;; | |
12484 | *) | |
12485 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12486 | ;; | |
12487 | esac | |
12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
12489 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
12490 | ||
12491 | ||
12492 | ||
12493 | # | |
12494 | # Check to make sure the PIC flag actually works. | |
12495 | # | |
12496 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12498 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
12499 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
12500 | $as_echo_n "(cached) " >&6 | |
12501 | else | |
12502 | lt_cv_prog_compiler_pic_works_CXX=no | |
12503 | ac_outfile=conftest.$ac_objext | |
12504 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12505 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12506 | # Insert the option either (1) after the last *FLAGS variable, or | |
12507 | # (2) before a word containing "conftest.", or (3) at the end. | |
12508 | # Note that $ac_compile itself does not contain backslashes and begins | |
12509 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12510 | # The option is referenced via a variable to avoid confusing sed. | |
12511 | lt_compile=`echo "$ac_compile" | $SED \ | |
12512 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12513 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12514 | -e 's:$: $lt_compiler_flag:'` | |
27557508 | 12515 | (eval echo "\"\$as_me:12515: $lt_compile\"" >&5) |
9c60689e DWT |
12516 | (eval "$lt_compile" 2>conftest.err) |
12517 | ac_status=$? | |
12518 | cat conftest.err >&5 | |
27557508 | 12519 | echo "$as_me:12519: \$? = $ac_status" >&5 |
9c60689e DWT |
12520 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12521 | # The compiler can only warn and ignore the option if not recognized | |
12522 | # So say no if there are warnings other than the usual output. | |
12523 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12524 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12525 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12526 | lt_cv_prog_compiler_pic_works_CXX=yes | |
12527 | fi | |
12528 | fi | |
12529 | $RM conftest* | |
12530 | ||
12531 | fi | |
12532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
12533 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
12534 | ||
12535 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
12536 | case $lt_prog_compiler_pic_CXX in | |
12537 | "" | " "*) ;; | |
12538 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12539 | esac | |
12540 | else | |
12541 | lt_prog_compiler_pic_CXX= | |
12542 | lt_prog_compiler_can_build_shared_CXX=no | |
12543 | fi | |
12544 | ||
12545 | fi | |
12546 | ||
12547 | ||
12548 | ||
47aaa820 DWT |
12549 | # |
12550 | # Check to make sure the static flag actually works. | |
12551 | # | |
12552 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12554 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
12555 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
12556 | $as_echo_n "(cached) " >&6 | |
12557 | else | |
12558 | lt_cv_prog_compiler_static_works_CXX=no | |
12559 | save_LDFLAGS="$LDFLAGS" | |
12560 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12561 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12562 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12563 | # The linker can only warn and ignore the option if not recognized | |
12564 | # So say no if there are warnings | |
12565 | if test -s conftest.err; then | |
12566 | # Append any errors to the config.log. | |
12567 | cat conftest.err 1>&5 | |
12568 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12569 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12570 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12571 | lt_cv_prog_compiler_static_works_CXX=yes | |
12572 | fi | |
12573 | else | |
12574 | lt_cv_prog_compiler_static_works_CXX=yes | |
12575 | fi | |
12576 | fi | |
12577 | $RM -r conftest* | |
12578 | LDFLAGS="$save_LDFLAGS" | |
12579 | ||
12580 | fi | |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
12582 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
12583 | ||
12584 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
12585 | : | |
12586 | else | |
12587 | lt_prog_compiler_static_CXX= | |
12588 | fi | |
12589 | ||
12590 | ||
12591 | ||
12592 | ||
12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12594 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12595 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12596 | $as_echo_n "(cached) " >&6 | |
12597 | else | |
12598 | lt_cv_prog_compiler_c_o_CXX=no | |
12599 | $RM -r conftest 2>/dev/null | |
12600 | mkdir conftest | |
12601 | cd conftest | |
12602 | mkdir out | |
12603 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12604 | ||
12605 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12606 | # Insert the option either (1) after the last *FLAGS variable, or | |
12607 | # (2) before a word containing "conftest.", or (3) at the end. | |
12608 | # Note that $ac_compile itself does not contain backslashes and begins | |
12609 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12610 | lt_compile=`echo "$ac_compile" | $SED \ | |
12611 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12612 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12613 | -e 's:$: $lt_compiler_flag:'` | |
27557508 | 12614 | (eval echo "\"\$as_me:12614: $lt_compile\"" >&5) |
47aaa820 DWT |
12615 | (eval "$lt_compile" 2>out/conftest.err) |
12616 | ac_status=$? | |
12617 | cat out/conftest.err >&5 | |
27557508 | 12618 | echo "$as_me:12618: \$? = $ac_status" >&5 |
47aaa820 DWT |
12619 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12620 | then | |
12621 | # The compiler can only warn and ignore the option if not recognized | |
12622 | # So say no if there are warnings | |
12623 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12624 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12625 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12626 | lt_cv_prog_compiler_c_o_CXX=yes | |
12627 | fi | |
12628 | fi | |
12629 | chmod u+w . 2>&5 | |
12630 | $RM conftest* | |
12631 | # SGI C++ compiler will create directory out/ii_files/ for | |
12632 | # template instantiation | |
12633 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12634 | $RM out/* && rmdir out | |
12635 | cd .. | |
12636 | $RM -r conftest | |
12637 | $RM conftest* | |
12638 | ||
12639 | fi | |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12641 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12642 | ||
12643 | ||
12644 | ||
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12646 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12647 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12648 | $as_echo_n "(cached) " >&6 | |
12649 | else | |
12650 | lt_cv_prog_compiler_c_o_CXX=no | |
12651 | $RM -r conftest 2>/dev/null | |
12652 | mkdir conftest | |
12653 | cd conftest | |
12654 | mkdir out | |
12655 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12656 | ||
12657 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12658 | # Insert the option either (1) after the last *FLAGS variable, or | |
12659 | # (2) before a word containing "conftest.", or (3) at the end. | |
12660 | # Note that $ac_compile itself does not contain backslashes and begins | |
12661 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12662 | lt_compile=`echo "$ac_compile" | $SED \ | |
12663 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12664 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12665 | -e 's:$: $lt_compiler_flag:'` | |
27557508 | 12666 | (eval echo "\"\$as_me:12666: $lt_compile\"" >&5) |
47aaa820 DWT |
12667 | (eval "$lt_compile" 2>out/conftest.err) |
12668 | ac_status=$? | |
12669 | cat out/conftest.err >&5 | |
27557508 | 12670 | echo "$as_me:12670: \$? = $ac_status" >&5 |
47aaa820 DWT |
12671 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12672 | then | |
12673 | # The compiler can only warn and ignore the option if not recognized | |
12674 | # So say no if there are warnings | |
12675 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12676 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12677 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12678 | lt_cv_prog_compiler_c_o_CXX=yes | |
12679 | fi | |
12680 | fi | |
12681 | chmod u+w . 2>&5 | |
12682 | $RM conftest* | |
12683 | # SGI C++ compiler will create directory out/ii_files/ for | |
12684 | # template instantiation | |
12685 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12686 | $RM out/* && rmdir out | |
12687 | cd .. | |
12688 | $RM -r conftest | |
12689 | $RM conftest* | |
12690 | ||
12691 | fi | |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12693 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | hard_links="nottested" | |
12699 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12700 | # do not overwrite the value of need_locks provided by the user | |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
12702 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
12703 | hard_links=yes | |
12704 | $RM conftest* | |
12705 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12706 | touch conftest.a | |
12707 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12708 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
12710 | $as_echo "$hard_links" >&6; } | |
12711 | if test "$hard_links" = no; then | |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12713 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12714 | need_locks=warn | |
12715 | fi | |
12716 | else | |
12717 | need_locks=no | |
12718 | fi | |
12719 | ||
12720 | ||
12721 | ||
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12723 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12724 | ||
12725 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12726 | case $host_os in | |
12727 | aix[4-9]*) | |
12728 | # If we're using GNU nm, then we don't want the "-C" option. | |
12729 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12730 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12731 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12732 | else | |
12733 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12734 | fi | |
12735 | ;; | |
12736 | pw32*) | |
12737 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12738 | ;; | |
12739 | cygwin* | mingw* | cegcc*) | |
12740 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
12741 | ;; | |
12742 | linux* | k*bsd*-gnu) | |
12743 | link_all_deplibs_CXX=no | |
12744 | ;; | |
12745 | *) | |
12746 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12747 | ;; | |
12748 | esac | |
12749 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
12750 | ||
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
12752 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12753 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12754 | ||
12755 | with_gnu_ld_CXX=$with_gnu_ld | |
12756 | ||
12757 | ||
12758 | ||
12759 | ||
12760 | ||
12761 | ||
12762 | # | |
12763 | # Do we need to explicitly link libc? | |
12764 | # | |
12765 | case "x$archive_cmds_need_lc_CXX" in | |
12766 | x|xyes) | |
12767 | # Assume -lc should be added | |
12768 | archive_cmds_need_lc_CXX=yes | |
12769 | ||
12770 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12771 | case $archive_cmds_CXX in | |
12772 | *'~'*) | |
12773 | # FIXME: we may have to deal with multi-command sequences. | |
12774 | ;; | |
12775 | '$CC '*) | |
12776 | # Test whether the compiler implicitly links with -lc since on some | |
12777 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12778 | # to ld, don't add -lc before -lgcc. | |
12779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
12780 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
12781 | $RM conftest* | |
12782 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12783 | ||
12784 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12785 | (eval $ac_compile) 2>&5 | |
12786 | ac_status=$? | |
12787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12788 | test $ac_status = 0; } 2>conftest.err; then | |
12789 | soname=conftest | |
12790 | lib=conftest | |
12791 | libobjs=conftest.$ac_objext | |
12792 | deplibs= | |
12793 | wl=$lt_prog_compiler_wl_CXX | |
12794 | pic_flag=$lt_prog_compiler_pic_CXX | |
12795 | compiler_flags=-v | |
12796 | linker_flags=-v | |
12797 | verstring= | |
12798 | output_objdir=. | |
12799 | libname=conftest | |
12800 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12801 | allow_undefined_flag_CXX= | |
12802 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
12803 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12804 | ac_status=$? | |
12805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12806 | test $ac_status = 0; } | |
12807 | then | |
12808 | archive_cmds_need_lc_CXX=no | |
12809 | else | |
12810 | archive_cmds_need_lc_CXX=yes | |
12811 | fi | |
12812 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12813 | else | |
12814 | cat conftest.err 1>&5 | |
12815 | fi | |
12816 | $RM conftest* | |
12817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
12818 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
12819 | ;; | |
12820 | esac | |
12821 | fi | |
12822 | ;; | |
12823 | esac | |
12824 | ||
12825 | ||
12826 | ||
12827 | ||
12828 | ||
12829 | ||
12830 | ||
12831 | ||
12832 | ||
12833 | ||
12834 | ||
12835 | ||
12836 | ||
12837 | ||
12838 | ||
12839 | ||
12840 | ||
12841 | ||
12842 | ||
12843 | ||
12844 | ||
12845 | ||
12846 | ||
12847 | ||
12848 | ||
12849 | ||
12850 | ||
12851 | ||
12852 | ||
12853 | ||
12854 | ||
12855 | ||
12856 | ||
12857 | ||
12858 | ||
12859 | ||
12860 | ||
12861 | ||
12862 | ||
12863 | ||
12864 | ||
12865 | ||
12866 | ||
12867 | ||
12868 | ||
12869 | ||
12870 | ||
12871 | ||
12872 | ||
12873 | ||
12874 | ||
12875 | ||
12876 | ||
12877 | ||
12878 | ||
12879 | ||
12880 | ||
12881 | ||
12882 | ||
12883 | ||
12884 | ||
12885 | ||
12886 | ||
12887 | ||
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
12889 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
12890 | ||
12891 | library_names_spec= | |
12892 | libname_spec='lib$name' | |
12893 | soname_spec= | |
12894 | shrext_cmds=".so" | |
12895 | postinstall_cmds= | |
12896 | postuninstall_cmds= | |
12897 | finish_cmds= | |
12898 | finish_eval= | |
12899 | shlibpath_var= | |
12900 | shlibpath_overrides_runpath=unknown | |
12901 | version_type=none | |
12902 | dynamic_linker="$host_os ld.so" | |
12903 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12904 | need_lib_prefix=unknown | |
12905 | hardcode_into_libs=no | |
12906 | ||
12907 | # when you set need_version to no, make sure it does not cause -set_version | |
12908 | # flags to be left without arguments | |
12909 | need_version=unknown | |
12910 | ||
12911 | case $host_os in | |
12912 | aix3*) | |
12913 | version_type=linux | |
12914 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12915 | shlibpath_var=LIBPATH | |
12916 | ||
12917 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12918 | soname_spec='${libname}${release}${shared_ext}$major' | |
12919 | ;; | |
12920 | ||
12921 | aix[4-9]*) | |
12922 | version_type=linux | |
12923 | need_lib_prefix=no | |
12924 | need_version=no | |
12925 | hardcode_into_libs=yes | |
12926 | if test "$host_cpu" = ia64; then | |
12927 | # AIX 5 supports IA64 | |
12928 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12929 | shlibpath_var=LD_LIBRARY_PATH | |
12930 | else | |
12931 | # With GCC up to 2.95.x, collect2 would create an import file | |
12932 | # for dependence libraries. The import file would start with | |
12933 | # the line `#! .'. This would cause the generated library to | |
12934 | # depend on `.', always an invalid library. This was fixed in | |
12935 | # development snapshots of GCC prior to 3.0. | |
12936 | case $host_os in | |
12937 | aix4 | aix4.[01] | aix4.[01].*) | |
12938 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12939 | echo ' yes ' | |
12940 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
12941 | : | |
12942 | else | |
12943 | can_build_shared=no | |
12944 | fi | |
12945 | ;; | |
12946 | esac | |
12947 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12948 | # soname into executable. Probably we can add versioning support to | |
12949 | # collect2, so additional links can be useful in future. | |
12950 | if test "$aix_use_runtimelinking" = yes; then | |
12951 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12952 | # instead of lib<name>.a to let people know that these are not | |
12953 | # typical AIX shared libraries. | |
12954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12955 | else | |
12956 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12957 | # and later when we are not doing run time linking. | |
12958 | library_names_spec='${libname}${release}.a $libname.a' | |
12959 | soname_spec='${libname}${release}${shared_ext}$major' | |
12960 | fi | |
12961 | shlibpath_var=LIBPATH | |
12962 | fi | |
12963 | ;; | |
12964 | ||
12965 | amigaos*) | |
12966 | case $host_cpu in | |
12967 | powerpc) | |
12968 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
12969 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
12970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12971 | ;; | |
12972 | m68k) | |
12973 | library_names_spec='$libname.ixlibrary $libname.a' | |
12974 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12975 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
12976 | ;; | |
12977 | esac | |
12978 | ;; | |
12979 | ||
12980 | beos*) | |
12981 | library_names_spec='${libname}${shared_ext}' | |
12982 | dynamic_linker="$host_os ld.so" | |
12983 | shlibpath_var=LIBRARY_PATH | |
12984 | ;; | |
12985 | ||
12986 | bsdi[45]*) | |
12987 | version_type=linux | |
12988 | need_version=no | |
12989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12990 | soname_spec='${libname}${release}${shared_ext}$major' | |
12991 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12992 | shlibpath_var=LD_LIBRARY_PATH | |
12993 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12994 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12995 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12996 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12997 | # libtool to hard-code these into programs | |
12998 | ;; | |
9c60689e | 12999 | |
47aaa820 DWT |
13000 | cygwin* | mingw* | pw32* | cegcc*) |
13001 | version_type=windows | |
13002 | shrext_cmds=".dll" | |
13003 | need_version=no | |
13004 | need_lib_prefix=no | |
9c60689e | 13005 | |
47aaa820 DWT |
13006 | case $GCC,$host_os in |
13007 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13008 | library_names_spec='$libname.dll.a' | |
13009 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13010 | postinstall_cmds='base_file=`basename \${file}`~ | |
13011 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13012 | dldir=$destdir/`dirname \$dlpath`~ | |
13013 | test -d \$dldir || mkdir -p \$dldir~ | |
13014 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13015 | chmod a+x \$dldir/$dlname~ | |
13016 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13017 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13018 | fi' | |
13019 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13020 | dlpath=$dir/\$dldll~ | |
13021 | $RM \$dlpath' | |
13022 | shlibpath_overrides_runpath=yes | |
9c60689e | 13023 | |
47aaa820 DWT |
13024 | case $host_os in |
13025 | cygwin*) | |
13026 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13027 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13028 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13029 | ;; | |
13030 | mingw* | cegcc*) | |
13031 | # MinGW DLLs use traditional 'lib' prefix | |
13032 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13033 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13034 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13035 | # It is most probably a Windows format PATH printed by | |
13036 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13037 | # path with ; separators, and with drive letters. We can handle the | |
13038 | # drive letters (cygwin fileutils understands them), so leave them, | |
13039 | # especially as we might pass files found there to a mingw objdump, | |
13040 | # which wouldn't understand a cygwinified path. Ahh. | |
13041 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13042 | else | |
13043 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13044 | fi | |
13045 | ;; | |
13046 | pw32*) | |
13047 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13048 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13049 | ;; | |
13050 | esac | |
13051 | ;; | |
9c60689e | 13052 | |
47aaa820 DWT |
13053 | *) |
13054 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13055 | ;; | |
13056 | esac | |
13057 | dynamic_linker='Win32 ld.exe' | |
13058 | # FIXME: first we should search . and the directory the executable is in | |
13059 | shlibpath_var=PATH | |
13060 | ;; | |
9c60689e | 13061 | |
47aaa820 DWT |
13062 | darwin* | rhapsody*) |
13063 | dynamic_linker="$host_os dyld" | |
13064 | version_type=darwin | |
13065 | need_lib_prefix=no | |
13066 | need_version=no | |
13067 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13068 | soname_spec='${libname}${release}${major}$shared_ext' | |
13069 | shlibpath_overrides_runpath=yes | |
13070 | shlibpath_var=DYLD_LIBRARY_PATH | |
13071 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13072 | |
47aaa820 DWT |
13073 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13074 | ;; | |
9c60689e | 13075 | |
47aaa820 DWT |
13076 | dgux*) |
13077 | version_type=linux | |
13078 | need_lib_prefix=no | |
13079 | need_version=no | |
13080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13081 | soname_spec='${libname}${release}${shared_ext}$major' | |
13082 | shlibpath_var=LD_LIBRARY_PATH | |
13083 | ;; | |
9c60689e | 13084 | |
47aaa820 DWT |
13085 | freebsd1*) |
13086 | dynamic_linker=no | |
13087 | ;; | |
9c60689e | 13088 | |
47aaa820 DWT |
13089 | freebsd* | dragonfly*) |
13090 | # DragonFly does not have aout. When/if they implement a new | |
13091 | # versioning mechanism, adjust this. | |
13092 | if test -x /usr/bin/objformat; then | |
13093 | objformat=`/usr/bin/objformat` | |
13094 | else | |
13095 | case $host_os in | |
13096 | freebsd[123]*) objformat=aout ;; | |
13097 | *) objformat=elf ;; | |
13098 | esac | |
13099 | fi | |
13100 | version_type=freebsd-$objformat | |
13101 | case $version_type in | |
13102 | freebsd-elf*) | |
13103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13104 | need_version=no | |
13105 | need_lib_prefix=no | |
13106 | ;; | |
13107 | freebsd-*) | |
13108 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13109 | need_version=yes | |
13110 | ;; | |
13111 | esac | |
13112 | shlibpath_var=LD_LIBRARY_PATH | |
13113 | case $host_os in | |
13114 | freebsd2*) | |
13115 | shlibpath_overrides_runpath=yes | |
13116 | ;; | |
13117 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13118 | shlibpath_overrides_runpath=yes | |
13119 | hardcode_into_libs=yes | |
13120 | ;; | |
13121 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13122 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13123 | shlibpath_overrides_runpath=no | |
13124 | hardcode_into_libs=yes | |
13125 | ;; | |
13126 | *) # from 4.6 on, and DragonFly | |
13127 | shlibpath_overrides_runpath=yes | |
13128 | hardcode_into_libs=yes | |
13129 | ;; | |
13130 | esac | |
13131 | ;; | |
9c60689e | 13132 | |
47aaa820 DWT |
13133 | gnu*) |
13134 | version_type=linux | |
13135 | need_lib_prefix=no | |
13136 | need_version=no | |
13137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13138 | soname_spec='${libname}${release}${shared_ext}$major' | |
13139 | shlibpath_var=LD_LIBRARY_PATH | |
13140 | hardcode_into_libs=yes | |
13141 | ;; | |
9c60689e | 13142 | |
47aaa820 DWT |
13143 | hpux9* | hpux10* | hpux11*) |
13144 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13145 | # link against other versions. | |
13146 | version_type=sunos | |
13147 | need_lib_prefix=no | |
13148 | need_version=no | |
13149 | case $host_cpu in | |
13150 | ia64*) | |
13151 | shrext_cmds='.so' | |
13152 | hardcode_into_libs=yes | |
13153 | dynamic_linker="$host_os dld.so" | |
13154 | shlibpath_var=LD_LIBRARY_PATH | |
13155 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13157 | soname_spec='${libname}${release}${shared_ext}$major' | |
13158 | if test "X$HPUX_IA64_MODE" = X32; then | |
13159 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13160 | else | |
13161 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13162 | fi | |
13163 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13164 | ;; | |
13165 | hppa*64*) | |
13166 | shrext_cmds='.sl' | |
13167 | hardcode_into_libs=yes | |
13168 | dynamic_linker="$host_os dld.sl" | |
13169 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13170 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13172 | soname_spec='${libname}${release}${shared_ext}$major' | |
13173 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13174 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13175 | ;; | |
13176 | *) | |
13177 | shrext_cmds='.sl' | |
13178 | dynamic_linker="$host_os dld.sl" | |
13179 | shlibpath_var=SHLIB_PATH | |
13180 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13182 | soname_spec='${libname}${release}${shared_ext}$major' | |
13183 | ;; | |
13184 | esac | |
13185 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13186 | postinstall_cmds='chmod 555 $lib' | |
13187 | ;; | |
9c60689e | 13188 | |
47aaa820 DWT |
13189 | interix[3-9]*) |
13190 | version_type=linux | |
13191 | need_lib_prefix=no | |
13192 | need_version=no | |
13193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13194 | soname_spec='${libname}${release}${shared_ext}$major' | |
13195 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13196 | shlibpath_var=LD_LIBRARY_PATH | |
13197 | shlibpath_overrides_runpath=no | |
13198 | hardcode_into_libs=yes | |
13199 | ;; | |
9c60689e | 13200 | |
47aaa820 DWT |
13201 | irix5* | irix6* | nonstopux*) |
13202 | case $host_os in | |
13203 | nonstopux*) version_type=nonstopux ;; | |
13204 | *) | |
13205 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13206 | version_type=linux | |
13207 | else | |
13208 | version_type=irix | |
13209 | fi ;; | |
13210 | esac | |
13211 | need_lib_prefix=no | |
13212 | need_version=no | |
13213 | soname_spec='${libname}${release}${shared_ext}$major' | |
13214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13215 | case $host_os in | |
13216 | irix5* | nonstopux*) | |
13217 | libsuff= shlibsuff= | |
13218 | ;; | |
13219 | *) | |
13220 | case $LD in # libtool.m4 will add one of these switches to LD | |
13221 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13222 | libsuff= shlibsuff= libmagic=32-bit;; | |
13223 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13224 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13225 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13226 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13227 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13228 | esac | |
13229 | ;; | |
13230 | esac | |
13231 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13232 | shlibpath_overrides_runpath=no | |
13233 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13234 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13235 | hardcode_into_libs=yes | |
13236 | ;; | |
9c60689e | 13237 | |
47aaa820 DWT |
13238 | # No shared lib support for Linux oldld, aout, or coff. |
13239 | linux*oldld* | linux*aout* | linux*coff*) | |
13240 | dynamic_linker=no | |
13241 | ;; | |
9c60689e | 13242 | |
47aaa820 DWT |
13243 | # This must be Linux ELF. |
13244 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13245 | version_type=linux | |
13246 | need_lib_prefix=no | |
13247 | need_version=no | |
13248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13249 | soname_spec='${libname}${release}${shared_ext}$major' | |
13250 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13251 | shlibpath_var=LD_LIBRARY_PATH | |
13252 | shlibpath_overrides_runpath=no | |
13253 | # Some binutils ld are patched to set DT_RUNPATH | |
13254 | save_LDFLAGS=$LDFLAGS | |
13255 | save_libdir=$libdir | |
13256 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13257 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13259 | /* end confdefs.h. */ | |
9c60689e | 13260 | |
47aaa820 DWT |
13261 | int |
13262 | main () | |
13263 | { | |
9c60689e | 13264 | |
47aaa820 DWT |
13265 | ; |
13266 | return 0; | |
13267 | } | |
13268 | _ACEOF | |
13269 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13270 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13271 | shlibpath_overrides_runpath=yes | |
9c60689e | 13272 | fi |
47aaa820 DWT |
13273 | fi |
13274 | rm -f core conftest.err conftest.$ac_objext \ | |
13275 | conftest$ac_exeext conftest.$ac_ext | |
13276 | LDFLAGS=$save_LDFLAGS | |
13277 | libdir=$save_libdir | |
9c60689e | 13278 | |
47aaa820 DWT |
13279 | # This implies no fast_install, which is unacceptable. |
13280 | # Some rework will be needed to allow for fast_install | |
13281 | # before this can be enabled. | |
13282 | hardcode_into_libs=yes | |
9c60689e | 13283 | |
47aaa820 DWT |
13284 | # Append ld.so.conf contents to the search path |
13285 | if test -f /etc/ld.so.conf; then | |
13286 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
13287 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13288 | fi | |
9c60689e | 13289 | |
47aaa820 DWT |
13290 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13291 | # powerpc, because MkLinux only supported shared libraries with the | |
13292 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13293 | # most powerpc-linux boxes support dynamic linking these days and | |
13294 | # people can always --disable-shared, the test was removed, and we | |
13295 | # assume the GNU/Linux dynamic linker is in use. | |
13296 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 13297 | ;; |
47aaa820 DWT |
13298 | |
13299 | netbsdelf*-gnu) | |
13300 | version_type=linux | |
13301 | need_lib_prefix=no | |
13302 | need_version=no | |
13303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13304 | soname_spec='${libname}${release}${shared_ext}$major' | |
13305 | shlibpath_var=LD_LIBRARY_PATH | |
13306 | shlibpath_overrides_runpath=no | |
13307 | hardcode_into_libs=yes | |
13308 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 13309 | ;; |
47aaa820 DWT |
13310 | |
13311 | netbsd*) | |
13312 | version_type=sunos | |
13313 | need_lib_prefix=no | |
13314 | need_version=no | |
13315 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13317 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13318 | dynamic_linker='NetBSD (a.out) ld.so' | |
13319 | else | |
13320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13321 | soname_spec='${libname}${release}${shared_ext}$major' | |
13322 | dynamic_linker='NetBSD ld.elf_so' | |
13323 | fi | |
13324 | shlibpath_var=LD_LIBRARY_PATH | |
13325 | shlibpath_overrides_runpath=yes | |
13326 | hardcode_into_libs=yes | |
9c60689e | 13327 | ;; |
9c60689e | 13328 | |
47aaa820 DWT |
13329 | newsos6) |
13330 | version_type=linux | |
13331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13332 | shlibpath_var=LD_LIBRARY_PATH | |
13333 | shlibpath_overrides_runpath=yes | |
13334 | ;; | |
9c60689e | 13335 | |
47aaa820 DWT |
13336 | *nto* | *qnx*) |
13337 | version_type=qnx | |
13338 | need_lib_prefix=no | |
13339 | need_version=no | |
13340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13341 | soname_spec='${libname}${release}${shared_ext}$major' | |
13342 | shlibpath_var=LD_LIBRARY_PATH | |
13343 | shlibpath_overrides_runpath=no | |
13344 | hardcode_into_libs=yes | |
13345 | dynamic_linker='ldqnx.so' | |
13346 | ;; | |
9c60689e | 13347 | |
47aaa820 DWT |
13348 | openbsd*) |
13349 | version_type=sunos | |
13350 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13351 | need_lib_prefix=no | |
13352 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13353 | case $host_os in | |
13354 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13355 | *) need_version=no ;; | |
13356 | esac | |
13357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13358 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13359 | shlibpath_var=LD_LIBRARY_PATH | |
13360 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13361 | case $host_os in | |
13362 | openbsd2.[89] | openbsd2.[89].*) | |
13363 | shlibpath_overrides_runpath=no | |
13364 | ;; | |
13365 | *) | |
13366 | shlibpath_overrides_runpath=yes | |
13367 | ;; | |
13368 | esac | |
13369 | else | |
13370 | shlibpath_overrides_runpath=yes | |
13371 | fi | |
13372 | ;; | |
9c60689e | 13373 | |
47aaa820 DWT |
13374 | os2*) |
13375 | libname_spec='$name' | |
13376 | shrext_cmds=".dll" | |
13377 | need_lib_prefix=no | |
13378 | library_names_spec='$libname${shared_ext} $libname.a' | |
13379 | dynamic_linker='OS/2 ld.exe' | |
13380 | shlibpath_var=LIBPATH | |
13381 | ;; | |
9c60689e | 13382 | |
47aaa820 DWT |
13383 | osf3* | osf4* | osf5*) |
13384 | version_type=osf | |
13385 | need_lib_prefix=no | |
13386 | need_version=no | |
13387 | soname_spec='${libname}${release}${shared_ext}$major' | |
13388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13389 | shlibpath_var=LD_LIBRARY_PATH | |
13390 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13391 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13392 | ;; | |
9c60689e | 13393 | |
47aaa820 DWT |
13394 | rdos*) |
13395 | dynamic_linker=no | |
13396 | ;; | |
9c60689e | 13397 | |
47aaa820 DWT |
13398 | solaris*) |
13399 | version_type=linux | |
13400 | need_lib_prefix=no | |
13401 | need_version=no | |
13402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13403 | soname_spec='${libname}${release}${shared_ext}$major' | |
13404 | shlibpath_var=LD_LIBRARY_PATH | |
13405 | shlibpath_overrides_runpath=yes | |
13406 | hardcode_into_libs=yes | |
13407 | # ldd complains unless libraries are executable | |
13408 | postinstall_cmds='chmod +x $lib' | |
13409 | ;; | |
9c60689e | 13410 | |
47aaa820 DWT |
13411 | sunos4*) |
13412 | version_type=sunos | |
13413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13414 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13415 | shlibpath_var=LD_LIBRARY_PATH | |
13416 | shlibpath_overrides_runpath=yes | |
13417 | if test "$with_gnu_ld" = yes; then | |
13418 | need_lib_prefix=no | |
13419 | fi | |
13420 | need_version=yes | |
13421 | ;; | |
9c60689e | 13422 | |
47aaa820 DWT |
13423 | sysv4 | sysv4.3*) |
13424 | version_type=linux | |
13425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13426 | soname_spec='${libname}${release}${shared_ext}$major' | |
13427 | shlibpath_var=LD_LIBRARY_PATH | |
13428 | case $host_vendor in | |
13429 | sni) | |
13430 | shlibpath_overrides_runpath=no | |
13431 | need_lib_prefix=no | |
13432 | runpath_var=LD_RUN_PATH | |
9c60689e | 13433 | ;; |
47aaa820 DWT |
13434 | siemens) |
13435 | need_lib_prefix=no | |
9c60689e | 13436 | ;; |
47aaa820 DWT |
13437 | motorola) |
13438 | need_lib_prefix=no | |
13439 | need_version=no | |
13440 | shlibpath_overrides_runpath=no | |
13441 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13442 | ;; | |
13443 | esac | |
9c60689e | 13444 | ;; |
9c60689e | 13445 | |
47aaa820 DWT |
13446 | sysv4*MP*) |
13447 | if test -d /usr/nec ;then | |
13448 | version_type=linux | |
13449 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13450 | soname_spec='$libname${shared_ext}.$major' | |
13451 | shlibpath_var=LD_LIBRARY_PATH | |
13452 | fi | |
13453 | ;; | |
9c60689e | 13454 | |
47aaa820 DWT |
13455 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13456 | version_type=freebsd-elf | |
13457 | need_lib_prefix=no | |
13458 | need_version=no | |
13459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13460 | soname_spec='${libname}${release}${shared_ext}$major' | |
13461 | shlibpath_var=LD_LIBRARY_PATH | |
13462 | shlibpath_overrides_runpath=yes | |
13463 | hardcode_into_libs=yes | |
13464 | if test "$with_gnu_ld" = yes; then | |
13465 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13466 | else | |
13467 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13468 | case $host_os in | |
13469 | sco3.2v5*) | |
13470 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13471 | ;; | |
13472 | esac | |
13473 | fi | |
13474 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13475 | ;; | |
9c60689e | 13476 | |
47aaa820 DWT |
13477 | tpf*) |
13478 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13479 | version_type=linux | |
13480 | need_lib_prefix=no | |
13481 | need_version=no | |
13482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13483 | shlibpath_var=LD_LIBRARY_PATH | |
13484 | shlibpath_overrides_runpath=no | |
13485 | hardcode_into_libs=yes | |
13486 | ;; | |
9c60689e | 13487 | |
47aaa820 DWT |
13488 | uts4*) |
13489 | version_type=linux | |
13490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13491 | soname_spec='${libname}${release}${shared_ext}$major' | |
13492 | shlibpath_var=LD_LIBRARY_PATH | |
13493 | ;; | |
9c60689e | 13494 | |
47aaa820 DWT |
13495 | *) |
13496 | dynamic_linker=no | |
13497 | ;; | |
13498 | esac | |
13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
13500 | $as_echo "$dynamic_linker" >&6; } | |
13501 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 13502 | |
47aaa820 DWT |
13503 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13504 | if test "$GCC" = yes; then | |
13505 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
13506 | fi | |
9c60689e | 13507 | |
47aaa820 DWT |
13508 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
13509 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
13510 | fi | |
13511 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
13512 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
13513 | fi | |
9c60689e DWT |
13514 | |
13515 | ||
13516 | ||
13517 | ||
13518 | ||
13519 | ||
13520 | ||
13521 | ||
13522 | ||
13523 | ||
13524 | ||
13525 | ||
13526 | ||
13527 | ||
13528 | ||
13529 | ||
13530 | ||
13531 | ||
13532 | ||
13533 | ||
13534 | ||
13535 | ||
13536 | ||
13537 | ||
13538 | ||
13539 | ||
13540 | ||
13541 | ||
13542 | ||
13543 | ||
13544 | ||
13545 | ||
13546 | ||
13547 | ||
13548 | ||
13549 | ||
47aaa820 DWT |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
13551 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
13552 | hardcode_action_CXX= | |
13553 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
13554 | test -n "$runpath_var_CXX" || | |
13555 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
9c60689e | 13556 | |
47aaa820 DWT |
13557 | # We can hardcode non-existent directories. |
13558 | if test "$hardcode_direct_CXX" != no && | |
13559 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13560 | # have to relink, otherwise we might link with an installed library | |
13561 | # when we should be linking with a yet-to-be-installed one | |
13562 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13563 | test "$hardcode_minus_L_CXX" != no; then | |
13564 | # Linking always hardcodes the temporary library directory. | |
13565 | hardcode_action_CXX=relink | |
13566 | else | |
13567 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13568 | hardcode_action_CXX=immediate | |
13569 | fi | |
13570 | else | |
13571 | # We cannot hardcode anything, or else we can only hardcode existing | |
13572 | # directories. | |
13573 | hardcode_action_CXX=unsupported | |
13574 | fi | |
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
13576 | $as_echo "$hardcode_action_CXX" >&6; } | |
9c60689e | 13577 | |
47aaa820 DWT |
13578 | if test "$hardcode_action_CXX" = relink || |
13579 | test "$inherit_rpath_CXX" = yes; then | |
13580 | # Fast installation is not supported | |
13581 | enable_fast_install=no | |
13582 | elif test "$shlibpath_overrides_runpath" = yes || | |
13583 | test "$enable_shared" = no; then | |
13584 | # Fast installation is not necessary | |
13585 | enable_fast_install=needless | |
13586 | fi | |
9c60689e DWT |
13587 | |
13588 | ||
13589 | ||
13590 | ||
13591 | ||
13592 | ||
13593 | ||
47aaa820 | 13594 | fi # test -n "$compiler" |
9c60689e | 13595 | |
47aaa820 DWT |
13596 | CC=$lt_save_CC |
13597 | LDCXX=$LD | |
13598 | LD=$lt_save_LD | |
13599 | GCC=$lt_save_GCC | |
13600 | with_gnu_ld=$lt_save_with_gnu_ld | |
13601 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13602 | lt_cv_path_LD=$lt_save_path_LD | |
13603 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13604 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13605 | fi # test "$_lt_caught_CXX_error" != yes | |
9c60689e | 13606 | |
47aaa820 DWT |
13607 | ac_ext=c |
13608 | ac_cpp='$CPP $CPPFLAGS' | |
13609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
13612 | |
13613 | ||
47aaa820 DWT |
13614 | ac_ext=cpp |
13615 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13616 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13617 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13618 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 13619 | |
47aaa820 DWT |
13620 | for ac_prog in 'bison -y' byacc |
13621 | do | |
13622 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13623 | set dummy $ac_prog; ac_word=$2 | |
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13625 | $as_echo_n "checking for $ac_word... " >&6; } | |
13626 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
13627 | $as_echo_n "(cached) " >&6 | |
13628 | else | |
13629 | if test -n "$YACC"; then | |
13630 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
13631 | else | |
13632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13633 | for as_dir in $PATH | |
13634 | do | |
13635 | IFS=$as_save_IFS | |
13636 | test -z "$as_dir" && as_dir=. | |
13637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13639 | ac_cv_prog_YACC="$ac_prog" | |
13640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13641 | break 2 | |
13642 | fi | |
13643 | done | |
13644 | done | |
13645 | IFS=$as_save_IFS | |
9c60689e | 13646 | |
47aaa820 DWT |
13647 | fi |
13648 | fi | |
13649 | YACC=$ac_cv_prog_YACC | |
13650 | if test -n "$YACC"; then | |
13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
13652 | $as_echo "$YACC" >&6; } | |
13653 | else | |
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13655 | $as_echo "no" >&6; } | |
13656 | fi | |
9c60689e DWT |
13657 | |
13658 | ||
47aaa820 DWT |
13659 | test -n "$YACC" && break |
13660 | done | |
13661 | test -n "$YACC" || YACC="yacc" | |
9c60689e | 13662 | |
9c60689e | 13663 | |
9c60689e | 13664 | |
9c60689e | 13665 | |
9c60689e | 13666 | |
47aaa820 DWT |
13667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5 |
13668 | $as_echo_n "checking if bison is the parser generator... " >&6; } | |
13669 | if test "${ax_cv_prog_bison+set}" = set; then : | |
13670 | $as_echo_n "(cached) " >&6 | |
13671 | else | |
9c60689e | 13672 | |
47aaa820 | 13673 | if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then : |
9c60689e | 13674 | |
47aaa820 | 13675 | ax_cv_prog_bison=yes |
9c60689e | 13676 | |
47aaa820 | 13677 | else |
9c60689e | 13678 | |
47aaa820 | 13679 | ax_cv_prog_bison=no |
9c60689e | 13680 | |
47aaa820 | 13681 | fi |
9c60689e | 13682 | |
47aaa820 DWT |
13683 | fi |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5 | |
13685 | $as_echo "$ax_cv_prog_bison" >&6; } | |
13686 | if test "$ax_cv_prog_bison" = yes; then : | |
9c60689e | 13687 | |
47aaa820 | 13688 | : |
9c60689e | 13689 | |
47aaa820 DWT |
13690 | BISON=`echo $YACC | $SED -e 's/ -y//'` |
13691 | BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
9c60689e | 13692 | |
9c60689e | 13693 | |
47aaa820 | 13694 | else |
9c60689e | 13695 | |
47aaa820 | 13696 | : |
27557508 | 13697 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
9c60689e | 13698 | |
47aaa820 | 13699 | fi |
9c60689e | 13700 | |
47aaa820 DWT |
13701 | for ac_prog in gawk mawk nawk awk |
13702 | do | |
13703 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13704 | set dummy $ac_prog; ac_word=$2 | |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13706 | $as_echo_n "checking for $ac_word... " >&6; } | |
13707 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
13708 | $as_echo_n "(cached) " >&6 | |
13709 | else | |
13710 | if test -n "$AWK"; then | |
13711 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
13712 | else | |
13713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13714 | for as_dir in $PATH | |
13715 | do | |
13716 | IFS=$as_save_IFS | |
13717 | test -z "$as_dir" && as_dir=. | |
13718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13720 | ac_cv_prog_AWK="$ac_prog" | |
13721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13722 | break 2 | |
9c60689e | 13723 | fi |
47aaa820 DWT |
13724 | done |
13725 | done | |
13726 | IFS=$as_save_IFS | |
9c60689e | 13727 | |
47aaa820 DWT |
13728 | fi |
13729 | fi | |
13730 | AWK=$ac_cv_prog_AWK | |
13731 | if test -n "$AWK"; then | |
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
13733 | $as_echo "$AWK" >&6; } | |
13734 | else | |
13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13736 | $as_echo "no" >&6; } | |
13737 | fi | |
9c60689e | 13738 | |
9c60689e | 13739 | |
47aaa820 DWT |
13740 | test -n "$AWK" && break |
13741 | done | |
9c60689e | 13742 | |
27557508 DWT |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5 |
13744 | $as_echo_n "checking if bison is >= 2.3... " >&6; } | |
47aaa820 | 13745 | as_arg_v1=$BISON_VERSION |
27557508 | 13746 | as_arg_v2=2.3 |
47aaa820 DWT |
13747 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
13748 | case $? in #( | |
13749 | 1) : | |
13750 | ||
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13752 | $as_echo "no" >&6; } | |
27557508 | 13753 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
47aaa820 DWT |
13754 | ;; #( |
13755 | 0) : | |
13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13757 | $as_echo "yes" >&6; } ;; #( | |
13758 | 2) : | |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13760 | $as_echo "yes" >&6; } ;; #( | |
13761 | *) : | |
13762 | ;; | |
13763 | esac | |
13764 | ||
13765 | # expand $ac_aux_dir to an absolute path | |
13766 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
13767 | ||
13768 | if test x"${MISSING+set}" != xset; then | |
13769 | case $am_aux_dir in | |
13770 | *\ * | *\ *) | |
13771 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
9c60689e | 13772 | *) |
47aaa820 | 13773 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
9c60689e | 13774 | esac |
47aaa820 DWT |
13775 | fi |
13776 | # Use eval to expand $SHELL | |
13777 | if eval "$MISSING --run true"; then | |
13778 | am_missing_run="$MISSING --run " | |
13779 | else | |
13780 | am_missing_run= | |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
13782 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
13783 | fi | |
13784 | ||
13785 | for ac_prog in flex lex | |
13786 | do | |
13787 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13788 | set dummy $ac_prog; ac_word=$2 | |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13790 | $as_echo_n "checking for $ac_word... " >&6; } | |
13791 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
13792 | $as_echo_n "(cached) " >&6 | |
13793 | else | |
13794 | if test -n "$LEX"; then | |
13795 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
13796 | else | |
13797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13798 | for as_dir in $PATH | |
13799 | do | |
13800 | IFS=$as_save_IFS | |
13801 | test -z "$as_dir" && as_dir=. | |
13802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13804 | ac_cv_prog_LEX="$ac_prog" | |
13805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13806 | break 2 | |
13807 | fi | |
13808 | done | |
13809 | done | |
13810 | IFS=$as_save_IFS | |
9c60689e | 13811 | |
47aaa820 DWT |
13812 | fi |
13813 | fi | |
13814 | LEX=$ac_cv_prog_LEX | |
13815 | if test -n "$LEX"; then | |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
13817 | $as_echo "$LEX" >&6; } | |
13818 | else | |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13820 | $as_echo "no" >&6; } | |
13821 | fi | |
9c60689e | 13822 | |
9c60689e | 13823 | |
47aaa820 DWT |
13824 | test -n "$LEX" && break |
13825 | done | |
13826 | test -n "$LEX" || LEX=":" | |
13827 | ||
13828 | if test "x$LEX" != "x:"; then | |
13829 | cat >conftest.l <<_ACEOF | |
13830 | %% | |
13831 | a { ECHO; } | |
13832 | b { REJECT; } | |
13833 | c { yymore (); } | |
13834 | d { yyless (1); } | |
13835 | e { yyless (input () != 0); } | |
13836 | f { unput (yytext[0]); } | |
13837 | . { BEGIN INITIAL; } | |
13838 | %% | |
13839 | #ifdef YYTEXT_POINTER | |
13840 | extern char *yytext; | |
13841 | #endif | |
9c60689e | 13842 | int |
47aaa820 | 13843 | main (void) |
9c60689e | 13844 | { |
47aaa820 | 13845 | return ! yylex () + ! yywrap (); |
9c60689e DWT |
13846 | } |
13847 | _ACEOF | |
47aaa820 DWT |
13848 | { { ac_try="$LEX conftest.l" |
13849 | case "(($ac_try" in | |
13850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13851 | *) ac_try_echo=$ac_try;; | |
13852 | esac | |
13853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13854 | $as_echo "$ac_try_echo"; } >&5 | |
13855 | (eval "$LEX conftest.l") 2>&5 | |
13856 | ac_status=$? | |
13857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13858 | test $ac_status = 0; } | |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
13860 | $as_echo_n "checking lex output file root... " >&6; } | |
13861 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
13862 | $as_echo_n "(cached) " >&6 | |
13863 | else | |
13864 | ||
13865 | if test -f lex.yy.c; then | |
13866 | ac_cv_prog_lex_root=lex.yy | |
13867 | elif test -f lexyy.c; then | |
13868 | ac_cv_prog_lex_root=lexyy | |
13869 | else | |
13870 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
13871 | fi | |
13872 | fi | |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
13874 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
13875 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
13876 | ||
13877 | if test -z "${LEXLIB+set}"; then | |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
13879 | $as_echo_n "checking lex library... " >&6; } | |
13880 | if test "${ac_cv_lib_lex+set}" = set; then : | |
13881 | $as_echo_n "(cached) " >&6 | |
13882 | else | |
13883 | ||
13884 | ac_save_LIBS=$LIBS | |
13885 | ac_cv_lib_lex='none needed' | |
13886 | for ac_lib in '' -lfl -ll; do | |
13887 | LIBS="$ac_lib $ac_save_LIBS" | |
13888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13889 | /* end confdefs.h. */ | |
13890 | `cat $LEX_OUTPUT_ROOT.c` | |
13891 | _ACEOF | |
9c60689e | 13892 | if ac_fn_cxx_try_link "$LINENO"; then : |
47aaa820 | 13893 | ac_cv_lib_lex=$ac_lib |
9c60689e | 13894 | fi |
47aaa820 DWT |
13895 | rm -f core conftest.err conftest.$ac_objext \ |
13896 | conftest$ac_exeext conftest.$ac_ext | |
13897 | test "$ac_cv_lib_lex" != 'none needed' && break | |
13898 | done | |
13899 | LIBS=$ac_save_LIBS | |
13900 | ||
13901 | fi | |
13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
13903 | $as_echo "$ac_cv_lib_lex" >&6; } | |
13904 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
13905 | fi | |
13906 | ||
13907 | ||
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
13909 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
13910 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
13911 | $as_echo_n "(cached) " >&6 | |
13912 | else | |
13913 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
13914 | # default is implementation-dependent. Figure out which it is, since | |
13915 | # not all implementations provide the %pointer and %array declarations. | |
13916 | ac_cv_prog_lex_yytext_pointer=no | |
13917 | ac_save_LIBS=$LIBS | |
13918 | LIBS="$LEXLIB $ac_save_LIBS" | |
13919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13920 | /* end confdefs.h. */ | |
13921 | #define YYTEXT_POINTER 1 | |
13922 | `cat $LEX_OUTPUT_ROOT.c` | |
13923 | _ACEOF | |
13924 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13925 | ac_cv_prog_lex_yytext_pointer=yes | |
9c60689e DWT |
13926 | fi |
13927 | rm -f core conftest.err conftest.$ac_objext \ | |
13928 | conftest$ac_exeext conftest.$ac_ext | |
47aaa820 | 13929 | LIBS=$ac_save_LIBS |
9c60689e | 13930 | |
47aaa820 DWT |
13931 | fi |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
13933 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
13934 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
9c60689e | 13935 | |
47aaa820 | 13936 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9c60689e | 13937 | |
47aaa820 DWT |
13938 | fi |
13939 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
9c60689e | 13940 | |
47aaa820 DWT |
13941 | fi |
13942 | if test "$LEX" = :; then | |
13943 | LEX=${am_missing_run}flex | |
13944 | fi | |
9c60689e | 13945 | |
9c60689e | 13946 | |
9c60689e | 13947 | |
9c60689e | 13948 | |
47aaa820 DWT |
13949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5 |
13950 | $as_echo_n "checking if flex is the lexer generator... " >&6; } | |
13951 | if test "${ax_cv_prog_flex+set}" = set; then : | |
13952 | $as_echo_n "(cached) " >&6 | |
13953 | else | |
13954 | ||
13955 | if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then : | |
13956 | ||
13957 | ax_cv_prog_flex=yes | |
13958 | ||
13959 | else | |
13960 | ||
13961 | ax_cv_prog_flex=no | |
13962 | ||
13963 | fi | |
13964 | ||
13965 | fi | |
13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5 | |
13967 | $as_echo "$ax_cv_prog_flex" >&6; } | |
13968 | if test "$ax_cv_prog_flex" = yes; then : | |
13969 | ||
13970 | : | |
9c60689e | 13971 | |
47aaa820 DWT |
13972 | FLEX=$LEX |
13973 | FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
9c60689e | 13974 | |
9c60689e | 13975 | |
47aaa820 | 13976 | else |
9c60689e | 13977 | |
47aaa820 DWT |
13978 | : |
13979 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
9c60689e | 13980 | |
47aaa820 | 13981 | fi |
9c60689e | 13982 | |
47aaa820 DWT |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5 |
13984 | $as_echo_n "checking if flex is >= 2.5.33... " >&6; } | |
13985 | as_arg_v1=$FLEX_VERSION | |
13986 | as_arg_v2=2.5.33 | |
13987 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
13988 | case $? in #( | |
13989 | 1) : | |
9c60689e | 13990 | |
47aaa820 DWT |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13992 | $as_echo "no" >&6; } | |
13993 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
13994 | ;; #( | |
13995 | 0) : | |
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13997 | $as_echo "yes" >&6; } ;; #( | |
13998 | 2) : | |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14000 | $as_echo "yes" >&6; } ;; #( | |
14001 | *) : | |
14002 | ;; | |
14003 | esac | |
14004 | ||
14005 | for ac_prog in bash | |
14006 | do | |
14007 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14008 | set dummy $ac_prog; ac_word=$2 | |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14010 | $as_echo_n "checking for $ac_word... " >&6; } | |
14011 | if test "${ac_cv_prog__BASH+set}" = set; then : | |
14012 | $as_echo_n "(cached) " >&6 | |
14013 | else | |
14014 | if test -n "$_BASH"; then | |
14015 | ac_cv_prog__BASH="$_BASH" # Let the user override the test. | |
14016 | else | |
14017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14018 | for as_dir in $PATH | |
14019 | do | |
14020 | IFS=$as_save_IFS | |
14021 | test -z "$as_dir" && as_dir=. | |
14022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14024 | ac_cv_prog__BASH="$ac_prog" | |
14025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14026 | break 2 | |
9c60689e | 14027 | fi |
47aaa820 DWT |
14028 | done |
14029 | done | |
14030 | IFS=$as_save_IFS | |
9c60689e | 14031 | |
47aaa820 DWT |
14032 | fi |
14033 | fi | |
14034 | _BASH=$ac_cv_prog__BASH | |
14035 | if test -n "$_BASH"; then | |
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
14037 | $as_echo "$_BASH" >&6; } | |
14038 | else | |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14040 | $as_echo "no" >&6; } | |
14041 | fi | |
14042 | ||
14043 | ||
14044 | test -n "$_BASH" && break | |
14045 | done | |
14046 | ||
27557508 | 14047 | |
47aaa820 DWT |
14048 | for ac_prog in gperf |
14049 | do | |
14050 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14051 | set dummy $ac_prog; ac_word=$2 | |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14053 | $as_echo_n "checking for $ac_word... " >&6; } | |
14054 | if test "${ac_cv_prog_GPERF+set}" = set; then : | |
14055 | $as_echo_n "(cached) " >&6 | |
14056 | else | |
14057 | if test -n "$GPERF"; then | |
14058 | ac_cv_prog_GPERF="$GPERF" # Let the user override the test. | |
14059 | else | |
14060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14061 | for as_dir in $PATH | |
14062 | do | |
14063 | IFS=$as_save_IFS | |
14064 | test -z "$as_dir" && as_dir=. | |
14065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14067 | ac_cv_prog_GPERF="$ac_prog" | |
14068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14069 | break 2 | |
9c60689e | 14070 | fi |
47aaa820 DWT |
14071 | done |
14072 | done | |
14073 | IFS=$as_save_IFS | |
9c60689e | 14074 | |
47aaa820 DWT |
14075 | fi |
14076 | fi | |
14077 | GPERF=$ac_cv_prog_GPERF | |
14078 | if test -n "$GPERF"; then | |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 | |
14080 | $as_echo "$GPERF" >&6; } | |
14081 | else | |
14082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14083 | $as_echo "no" >&6; } | |
14084 | fi | |
9c60689e | 14085 | |
9c60689e | 14086 | |
47aaa820 DWT |
14087 | test -n "$GPERF" && break |
14088 | done | |
14089 | ||
14090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5 | |
14091 | $as_echo_n "checking if gperf >= 3.0.3... " >&6; } | |
14092 | GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
14093 | as_arg_v1=$GPERF_VERSION | |
14094 | as_arg_v2=3.0.3 | |
14095 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
14096 | case $? in #( | |
14097 | 1) : | |
14098 | ||
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14100 | $as_echo "no" >&6; } | |
14101 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 | |
14102 | ;; #( | |
14103 | 0) : | |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14105 | $as_echo "yes" >&6; } ;; #( | |
14106 | 2) : | |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14108 | $as_echo "yes" >&6; } ;; #( | |
14109 | *) : | |
14110 | ;; | |
9c60689e | 14111 | esac |
47aaa820 DWT |
14112 | for ac_prog in time |
14113 | do | |
14114 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14115 | set dummy $ac_prog; ac_word=$2 | |
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14117 | $as_echo_n "checking for $ac_word... " >&6; } | |
14118 | if test "${ac_cv_prog_TIME+set}" = set; then : | |
14119 | $as_echo_n "(cached) " >&6 | |
14120 | else | |
14121 | if test -n "$TIME"; then | |
14122 | ac_cv_prog_TIME="$TIME" # Let the user override the test. | |
14123 | else | |
14124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14125 | for as_dir in $PATH | |
14126 | do | |
14127 | IFS=$as_save_IFS | |
14128 | test -z "$as_dir" && as_dir=. | |
14129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14131 | ac_cv_prog_TIME="$ac_prog" | |
14132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14133 | break 2 | |
14134 | fi | |
14135 | done | |
14136 | done | |
14137 | IFS=$as_save_IFS | |
9c60689e | 14138 | |
9c60689e | 14139 | fi |
9c60689e | 14140 | fi |
47aaa820 DWT |
14141 | TIME=$ac_cv_prog_TIME |
14142 | if test -n "$TIME"; then | |
14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
14144 | $as_echo "$TIME" >&6; } | |
14145 | else | |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14147 | $as_echo "no" >&6; } | |
9c60689e DWT |
14148 | fi |
14149 | ||
14150 | ||
47aaa820 DWT |
14151 | test -n "$TIME" && break |
14152 | done | |
9c60689e DWT |
14153 | |
14154 | ||
47aaa820 | 14155 | apr_found="no" |
9c60689e | 14156 | |
47aaa820 DWT |
14157 | if test "$target_os" = "os2-emx"; then |
14158 | # Scripts don't pass test -x on OS/2 | |
14159 | TEST_X="test -f" | |
14160 | else | |
14161 | TEST_X="test -x" | |
14162 | fi | |
9c60689e | 14163 | |
47aaa820 | 14164 | acceptable_majors="1" |
9c60689e | 14165 | |
47aaa820 DWT |
14166 | apr_temp_acceptable_apr_config="" |
14167 | for apr_temp_major in $acceptable_majors | |
14168 | do | |
14169 | case $apr_temp_major in | |
14170 | 0) | |
14171 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14172 | ;; | |
14173 | *) | |
14174 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14175 | ;; | |
14176 | esac | |
14177 | done | |
9c60689e | 14178 | |
47aaa820 DWT |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 |
14180 | $as_echo_n "checking for APR... " >&6; } | |
9c60689e | 14181 | |
47aaa820 DWT |
14182 | # Check whether --with-apr was given. |
14183 | if test "${with_apr+set}" = set; then : | |
14184 | withval=$with_apr; | |
14185 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14186 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14187 | fi | |
9c60689e | 14188 | |
47aaa820 DWT |
14189 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config |
14190 | do | |
14191 | for lookdir in "$withval/bin" "$withval" | |
14192 | do | |
14193 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14194 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
9c60689e | 14195 | |
47aaa820 DWT |
14196 | apr_found="yes" |
14197 | break 2 | |
14198 | fi | |
14199 | done | |
14200 | done | |
9c60689e | 14201 | |
47aaa820 DWT |
14202 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then |
14203 | apr_config="$withval" | |
14204 | apr_found="yes" | |
14205 | fi | |
9c60689e | 14206 | |
47aaa820 DWT |
14207 | if test "$apr_found" != "yes"; then |
14208 | as_fn_error "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 | |
14209 | fi | |
9c60689e | 14210 | |
47aaa820 | 14211 | else |
9c60689e | 14212 | |
47aaa820 DWT |
14213 | if test -n "1" && test "1" = "1"; then |
14214 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14215 | do | |
14216 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14217 | apr_config="$apr_temp_apr_config_file" | |
9c60689e | 14218 | |
47aaa820 DWT |
14219 | apr_found="yes" |
14220 | break | |
14221 | else | |
14222 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14223 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14224 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
9c60689e | 14225 | |
47aaa820 DWT |
14226 | apr_found="yes" |
14227 | break 2 | |
14228 | fi | |
14229 | done | |
14230 | fi | |
14231 | done | |
14232 | fi | |
14233 | if test "$apr_found" = "no" && test -d ""; then | |
14234 | apr_temp_abs_srcdir="`cd && pwd`" | |
14235 | apr_found="reconfig" | |
14236 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14237 | case $apr_bundled_major in | |
14238 | "") | |
14239 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14240 | ;; | |
14241 | 0) | |
14242 | apr_temp_apr_config_file="apr-config" | |
14243 | ;; | |
14244 | *) | |
14245 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14246 | ;; | |
14247 | esac | |
14248 | if test -n ""; then | |
14249 | apr_config="/$apr_temp_apr_config_file" | |
14250 | else | |
14251 | apr_config="/$apr_temp_apr_config_file" | |
14252 | fi | |
14253 | fi | |
9c60689e | 14254 | |
47aaa820 | 14255 | fi |
9c60689e DWT |
14256 | |
14257 | ||
47aaa820 DWT |
14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
14259 | $as_echo "$apr_found" >&6; } | |
9c60689e | 14260 | |
47aaa820 DWT |
14261 | case $apr_found in #( |
14262 | yes) : | |
9c60689e DWT |
14263 | |
14264 | ||
47aaa820 DWT |
14265 | for element in `$apr_config --includes`; do |
14266 | haveit= | |
14267 | for x in $CPPFLAGS; do | |
9c60689e | 14268 | |
47aaa820 DWT |
14269 | acl_save_prefix="$prefix" |
14270 | prefix="$acl_final_prefix" | |
14271 | acl_save_exec_prefix="$exec_prefix" | |
14272 | exec_prefix="$acl_final_exec_prefix" | |
14273 | eval x=\"$x\" | |
14274 | exec_prefix="$acl_save_exec_prefix" | |
14275 | prefix="$acl_save_prefix" | |
9c60689e | 14276 | |
47aaa820 DWT |
14277 | if test "X$x" = "X$element"; then |
14278 | haveit=yes | |
14279 | break | |
14280 | fi | |
14281 | done | |
14282 | if test -z "$haveit"; then | |
14283 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
14284 | fi | |
14285 | done | |
9c60689e | 14286 | |
47aaa820 | 14287 | LTLIBAPR=`$apr_config --link-libtool` |
9c60689e | 14288 | |
47aaa820 DWT |
14289 | ;; #( |
14290 | *) : | |
14291 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
14292 | esac | |
9c60689e DWT |
14293 | |
14294 | ||
47aaa820 DWT |
14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 |
14296 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
14297 | if test "${vl_cv_lib_readline+set}" = set; then : | |
14298 | $as_echo_n "(cached) " >&6 | |
14299 | else | |
9c60689e | 14300 | |
47aaa820 DWT |
14301 | ORIG_LIBS="$LIBS" |
14302 | for readline_lib in readline edit editline; do | |
14303 | for termcap_lib in "" termcap curses ncurses; do | |
14304 | if test -z "$termcap_lib"; then | |
14305 | TRY_LIB="-l$readline_lib" | |
14306 | else | |
14307 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
14308 | fi | |
14309 | LIBS="$ORIG_LIBS $TRY_LIB" | |
14310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14311 | /* end confdefs.h. */ | |
9c60689e | 14312 | |
47aaa820 DWT |
14313 | /* Override any GCC internal prototype to avoid an error. |
14314 | Use char because int might match the return type of a GCC | |
14315 | builtin and then its argument prototype would still apply. */ | |
14316 | #ifdef __cplusplus | |
14317 | extern "C" | |
14318 | #endif | |
14319 | char readline (); | |
14320 | int | |
14321 | main () | |
14322 | { | |
14323 | return readline (); | |
14324 | ; | |
14325 | return 0; | |
14326 | } | |
14327 | _ACEOF | |
14328 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14329 | vl_cv_lib_readline="$TRY_LIB" | |
14330 | fi | |
14331 | rm -f core conftest.err conftest.$ac_objext \ | |
14332 | conftest$ac_exeext conftest.$ac_ext | |
14333 | if test -n "$vl_cv_lib_readline"; then | |
14334 | break | |
14335 | fi | |
14336 | done | |
14337 | if test -n "$vl_cv_lib_readline"; then | |
14338 | break | |
14339 | fi | |
14340 | done | |
14341 | if test -z "$vl_cv_lib_readline"; then | |
14342 | vl_cv_lib_readline="no" | |
14343 | LIBS="$ORIG_LIBS" | |
14344 | fi | |
9c60689e | 14345 | |
47aaa820 DWT |
14346 | fi |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 | |
14348 | $as_echo "$vl_cv_lib_readline" >&6; } | |
9c60689e | 14349 | |
47aaa820 | 14350 | if test "$vl_cv_lib_readline" != "no"; then |
9c60689e | 14351 | |
47aaa820 | 14352 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
9c60689e | 14353 | |
47aaa820 DWT |
14354 | for ac_header in readline.h readline/readline.h |
14355 | do : | |
14356 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14357 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14358 | eval as_val=\$$as_ac_Header | |
14359 | if test "x$as_val" = x""yes; then : | |
14360 | cat >>confdefs.h <<_ACEOF | |
14361 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14362 | _ACEOF | |
9c60689e | 14363 | |
9c60689e DWT |
14364 | fi |
14365 | ||
47aaa820 | 14366 | done |
9c60689e | 14367 | |
47aaa820 DWT |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 |
14369 | $as_echo_n "checking whether readline supports history... " >&6; } | |
14370 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
14371 | $as_echo_n "(cached) " >&6 | |
14372 | else | |
9c60689e | 14373 | |
47aaa820 DWT |
14374 | vl_cv_lib_readline_history="no" |
14375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14376 | /* end confdefs.h. */ | |
9c60689e | 14377 | |
47aaa820 DWT |
14378 | /* Override any GCC internal prototype to avoid an error. |
14379 | Use char because int might match the return type of a GCC | |
14380 | builtin and then its argument prototype would still apply. */ | |
14381 | #ifdef __cplusplus | |
14382 | extern "C" | |
14383 | #endif | |
14384 | char add_history (); | |
14385 | int | |
14386 | main () | |
14387 | { | |
14388 | return add_history (); | |
14389 | ; | |
14390 | return 0; | |
14391 | } | |
14392 | _ACEOF | |
14393 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14394 | vl_cv_lib_readline_history="yes" | |
14395 | fi | |
14396 | rm -f core conftest.err conftest.$ac_objext \ | |
14397 | conftest$ac_exeext conftest.$ac_ext | |
9c60689e | 14398 | |
47aaa820 DWT |
14399 | fi |
14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
14401 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
14402 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
9c60689e | 14403 | |
47aaa820 | 14404 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
9c60689e | 14405 | |
47aaa820 DWT |
14406 | for ac_header in history.h readline/history.h |
14407 | do : | |
14408 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14409 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14410 | eval as_val=\$$as_ac_Header | |
14411 | if test "x$as_val" = x""yes; then : | |
14412 | cat >>confdefs.h <<_ACEOF | |
14413 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14414 | _ACEOF | |
9c60689e | 14415 | |
47aaa820 | 14416 | fi |
9c60689e | 14417 | |
47aaa820 | 14418 | done |
9c60689e | 14419 | |
47aaa820 DWT |
14420 | fi |
14421 | fi | |
9c60689e DWT |
14422 | |
14423 | # Find a good install program. We prefer a C program (faster), | |
14424 | # so one script is as good as another. But avoid the broken or | |
14425 | # incompatible versions: | |
14426 | # SysV /etc/install, /usr/sbin/install | |
14427 | # SunOS /usr/etc/install | |
14428 | # IRIX /sbin/install | |
14429 | # AIX /bin/install | |
14430 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14431 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14432 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14433 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
14434 | # OS/2's system install, which has a completely different semantic | |
14435 | # ./install, which can be erroneously created by make from ./install.sh. | |
14436 | # Reject install programs that cannot install multiple files. | |
14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
14438 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
14439 | if test -z "$INSTALL"; then | |
14440 | if test "${ac_cv_path_install+set}" = set; then : | |
14441 | $as_echo_n "(cached) " >&6 | |
14442 | else | |
14443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14444 | for as_dir in $PATH | |
14445 | do | |
14446 | IFS=$as_save_IFS | |
14447 | test -z "$as_dir" && as_dir=. | |
14448 | # Account for people who put trailing slashes in PATH elements. | |
14449 | case $as_dir/ in #(( | |
14450 | ./ | .// | /[cC]/* | \ | |
14451 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
14452 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
14453 | /usr/ucb/* ) ;; | |
14454 | *) | |
14455 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14456 | # Don't use installbsd from OSF since it installs stuff as root | |
14457 | # by default. | |
14458 | for ac_prog in ginstall scoinst install; do | |
14459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14460 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
14461 | if test $ac_prog = install && | |
14462 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14463 | # AIX install. It has an incompatible calling convention. | |
14464 | : | |
14465 | elif test $ac_prog = install && | |
14466 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14467 | # program-specific install script used by HP pwplus--don't use. | |
14468 | : | |
14469 | else | |
14470 | rm -rf conftest.one conftest.two conftest.dir | |
14471 | echo one > conftest.one | |
14472 | echo two > conftest.two | |
14473 | mkdir conftest.dir | |
14474 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
14475 | test -s conftest.one && test -s conftest.two && | |
14476 | test -s conftest.dir/conftest.one && | |
14477 | test -s conftest.dir/conftest.two | |
14478 | then | |
14479 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14480 | break 3 | |
14481 | fi | |
14482 | fi | |
14483 | fi | |
14484 | done | |
14485 | done | |
14486 | ;; | |
14487 | esac | |
14488 | ||
14489 | done | |
14490 | IFS=$as_save_IFS | |
14491 | ||
14492 | rm -rf conftest.one conftest.two conftest.dir | |
14493 | ||
14494 | fi | |
14495 | if test "${ac_cv_path_install+set}" = set; then | |
14496 | INSTALL=$ac_cv_path_install | |
14497 | else | |
14498 | # As a last resort, use the slow shell script. Don't cache a | |
14499 | # value for INSTALL within a source directory, because that will | |
14500 | # break other packages using the cache if that directory is | |
14501 | # removed, or if the value is a relative name. | |
14502 | INSTALL=$ac_install_sh | |
14503 | fi | |
14504 | fi | |
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
14506 | $as_echo "$INSTALL" >&6; } | |
14507 | ||
14508 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14509 | # It thinks the first close brace ends the variable substitution. | |
14510 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14511 | ||
14512 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14513 | ||
14514 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14515 | ||
94690cff DWT |
14516 | ac_ext=c |
14517 | ac_cpp='$CPP $CPPFLAGS' | |
14518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14521 | ||
9c60689e DWT |
14522 | |
14523 | if test "X$prefix" = "XNONE"; then | |
14524 | acl_final_prefix="$ac_default_prefix" | |
14525 | else | |
14526 | acl_final_prefix="$prefix" | |
14527 | fi | |
14528 | if test "X$exec_prefix" = "XNONE"; then | |
14529 | acl_final_exec_prefix='${prefix}' | |
14530 | else | |
14531 | acl_final_exec_prefix="$exec_prefix" | |
14532 | fi | |
14533 | acl_save_prefix="$prefix" | |
14534 | prefix="$acl_final_prefix" | |
14535 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
14536 | prefix="$acl_save_prefix" | |
14537 | ||
14538 | ||
14539 | # Check whether --with-gnu-ld was given. | |
14540 | if test "${with_gnu_ld+set}" = set; then : | |
14541 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
14542 | else | |
14543 | with_gnu_ld=no | |
14544 | fi | |
14545 | ||
14546 | # Prepare PATH_SEPARATOR. | |
14547 | # The user is always right. | |
14548 | if test "${PATH_SEPARATOR+set}" != set; then | |
14549 | echo "#! /bin/sh" >conf$$.sh | |
14550 | echo "exit 0" >>conf$$.sh | |
14551 | chmod +x conf$$.sh | |
14552 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14553 | PATH_SEPARATOR=';' | |
14554 | else | |
14555 | PATH_SEPARATOR=: | |
14556 | fi | |
14557 | rm -f conf$$.sh | |
14558 | fi | |
14559 | ac_prog=ld | |
14560 | if test "$GCC" = yes; then | |
14561 | # Check if gcc -print-prog-name=ld gives a path. | |
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
14563 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
14564 | case $host in | |
14565 | *-*-mingw*) | |
14566 | # gcc leaves a trailing carriage return which upsets mingw | |
14567 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
14568 | *) | |
14569 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
14570 | esac | |
14571 | case $ac_prog in | |
14572 | # Accept absolute paths. | |
14573 | [\\/]* | [A-Za-z]:[\\/]*) | |
14574 | re_direlt='/[^/][^/]*/\.\./' | |
14575 | # Canonicalize the path of ld | |
14576 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
14577 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
14578 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
14579 | done | |
14580 | test -z "$LD" && LD="$ac_prog" | |
14581 | ;; | |
14582 | "") | |
14583 | # If it fails, then pretend we aren't using GCC. | |
14584 | ac_prog=ld | |
14585 | ;; | |
14586 | *) | |
14587 | # If it is relative, then search for the first ld in PATH. | |
14588 | with_gnu_ld=unknown | |
14589 | ;; | |
14590 | esac | |
14591 | elif test "$with_gnu_ld" = yes; then | |
14592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
14593 | $as_echo_n "checking for GNU ld... " >&6; } | |
14594 | else | |
14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
14596 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
14597 | fi | |
14598 | if test "${acl_cv_path_LD+set}" = set; then : | |
14599 | $as_echo_n "(cached) " >&6 | |
14600 | else | |
14601 | if test -z "$LD"; then | |
14602 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
14603 | for ac_dir in $PATH; do | |
14604 | test -z "$ac_dir" && ac_dir=. | |
14605 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
14606 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
14607 | # Check to see if the program is GNU ld. I'd rather use --version, | |
14608 | # but apparently some GNU ld's only accept -v. | |
14609 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
14610 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
14611 | *GNU* | *'with BFD'*) | |
14612 | test "$with_gnu_ld" != no && break ;; | |
14613 | *) | |
14614 | test "$with_gnu_ld" != yes && break ;; | |
14615 | esac | |
14616 | fi | |
14617 | done | |
14618 | IFS="$ac_save_ifs" | |
14619 | else | |
14620 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
14621 | fi | |
14622 | fi | |
14623 | ||
14624 | LD="$acl_cv_path_LD" | |
14625 | if test -n "$LD"; then | |
14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14627 | $as_echo "$LD" >&6; } | |
14628 | else | |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14630 | $as_echo "no" >&6; } | |
14631 | fi | |
14632 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
14634 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
14635 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
14636 | $as_echo_n "(cached) " >&6 | |
14637 | else | |
14638 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
14639 | case `$LD -v 2>&1 </dev/null` in | |
14640 | *GNU* | *'with BFD'*) | |
14641 | acl_cv_prog_gnu_ld=yes ;; | |
14642 | *) | |
14643 | acl_cv_prog_gnu_ld=no ;; | |
14644 | esac | |
14645 | fi | |
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
14647 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
14648 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
14649 | ||
14650 | ||
14651 | ||
14652 | ||
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
14654 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
14655 | if test "${acl_cv_rpath+set}" = set; then : | |
14656 | $as_echo_n "(cached) " >&6 | |
14657 | else | |
14658 | ||
14659 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
14660 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
14661 | . ./conftest.sh | |
14662 | rm -f ./conftest.sh | |
14663 | acl_cv_rpath=done | |
14664 | ||
14665 | fi | |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
14667 | $as_echo "$acl_cv_rpath" >&6; } | |
14668 | wl="$acl_cv_wl" | |
14669 | acl_libext="$acl_cv_libext" | |
14670 | acl_shlibext="$acl_cv_shlibext" | |
14671 | acl_libname_spec="$acl_cv_libname_spec" | |
14672 | acl_library_names_spec="$acl_cv_library_names_spec" | |
14673 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
14674 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
14675 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
14676 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
14677 | # Check whether --enable-rpath was given. | |
14678 | if test "${enable_rpath+set}" = set; then : | |
14679 | enableval=$enable_rpath; : | |
14680 | else | |
14681 | enable_rpath=yes | |
14682 | fi | |
14683 | ||
14684 | ||
14685 | ||
14686 | acl_libdirstem=lib | |
14687 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
14688 | if test -n "$searchpath"; then | |
14689 | acl_save_IFS="${IFS= }"; IFS=":" | |
14690 | for searchdir in $searchpath; do | |
14691 | if test -d "$searchdir"; then | |
14692 | case "$searchdir" in | |
14693 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
14694 | *) searchdir=`cd "$searchdir" && pwd` | |
14695 | case "$searchdir" in | |
14696 | */lib64 ) acl_libdirstem=lib64 ;; | |
14697 | esac ;; | |
14698 | esac | |
14699 | fi | |
14700 | done | |
14701 | IFS="$acl_save_IFS" | |
14702 | fi | |
14703 | ||
14704 | ||
14705 | ||
14706 | ||
14707 | ||
14708 | ||
14709 | ||
14710 | ||
14711 | ||
14712 | use_additional=yes | |
14713 | ||
14714 | acl_save_prefix="$prefix" | |
14715 | prefix="$acl_final_prefix" | |
14716 | acl_save_exec_prefix="$exec_prefix" | |
14717 | exec_prefix="$acl_final_exec_prefix" | |
14718 | ||
14719 | eval additional_includedir=\"$includedir\" | |
14720 | eval additional_libdir=\"$libdir\" | |
14721 | ||
14722 | exec_prefix="$acl_save_exec_prefix" | |
14723 | prefix="$acl_save_prefix" | |
14724 | ||
14725 | ||
14726 | # Check whether --with-libiconv-prefix was given. | |
14727 | if test "${with_libiconv_prefix+set}" = set; then : | |
14728 | withval=$with_libiconv_prefix; | |
14729 | if test "X$withval" = "Xno"; then | |
14730 | use_additional=no | |
14731 | else | |
14732 | if test "X$withval" = "X"; then | |
14733 | ||
14734 | acl_save_prefix="$prefix" | |
14735 | prefix="$acl_final_prefix" | |
14736 | acl_save_exec_prefix="$exec_prefix" | |
14737 | exec_prefix="$acl_final_exec_prefix" | |
14738 | ||
14739 | eval additional_includedir=\"$includedir\" | |
14740 | eval additional_libdir=\"$libdir\" | |
14741 | ||
14742 | exec_prefix="$acl_save_exec_prefix" | |
14743 | prefix="$acl_save_prefix" | |
14744 | ||
14745 | else | |
14746 | additional_includedir="$withval/include" | |
14747 | additional_libdir="$withval/$acl_libdirstem" | |
14748 | fi | |
14749 | fi | |
14750 | ||
14751 | fi | |
14752 | ||
14753 | LIBICONV= | |
14754 | LTLIBICONV= | |
14755 | INCICONV= | |
14756 | LIBICONV_PREFIX= | |
14757 | rpathdirs= | |
14758 | ltrpathdirs= | |
14759 | names_already_handled= | |
14760 | names_next_round='iconv ' | |
14761 | while test -n "$names_next_round"; do | |
14762 | names_this_round="$names_next_round" | |
14763 | names_next_round= | |
14764 | for name in $names_this_round; do | |
14765 | already_handled= | |
14766 | for n in $names_already_handled; do | |
14767 | if test "$n" = "$name"; then | |
14768 | already_handled=yes | |
14769 | break | |
14770 | fi | |
14771 | done | |
14772 | if test -z "$already_handled"; then | |
14773 | names_already_handled="$names_already_handled $name" | |
14774 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
14775 | eval value=\"\$HAVE_LIB$uppername\" | |
14776 | if test -n "$value"; then | |
14777 | if test "$value" = yes; then | |
14778 | eval value=\"\$LIB$uppername\" | |
14779 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
14780 | eval value=\"\$LTLIB$uppername\" | |
14781 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
14782 | else | |
14783 | : | |
14784 | fi | |
14785 | else | |
14786 | found_dir= | |
14787 | found_la= | |
14788 | found_so= | |
14789 | found_a= | |
14790 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
14791 | if test -n "$acl_shlibext"; then | |
14792 | shrext=".$acl_shlibext" # typically: shrext=.so | |
14793 | else | |
14794 | shrext= | |
14795 | fi | |
14796 | if test $use_additional = yes; then | |
14797 | dir="$additional_libdir" | |
14798 | if test -n "$acl_shlibext"; then | |
14799 | if test -f "$dir/$libname$shrext"; then | |
14800 | found_dir="$dir" | |
14801 | found_so="$dir/$libname$shrext" | |
14802 | else | |
14803 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14804 | ver=`(cd "$dir" && \ | |
14805 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14806 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14807 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14808 | | sed 1q ) 2>/dev/null` | |
14809 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14810 | found_dir="$dir" | |
14811 | found_so="$dir/$libname$shrext.$ver" | |
14812 | fi | |
14813 | else | |
14814 | eval library_names=\"$acl_library_names_spec\" | |
14815 | for f in $library_names; do | |
14816 | if test -f "$dir/$f"; then | |
14817 | found_dir="$dir" | |
14818 | found_so="$dir/$f" | |
14819 | break | |
14820 | fi | |
14821 | done | |
14822 | fi | |
14823 | fi | |
14824 | fi | |
14825 | if test "X$found_dir" = "X"; then | |
14826 | if test -f "$dir/$libname.$acl_libext"; then | |
14827 | found_dir="$dir" | |
14828 | found_a="$dir/$libname.$acl_libext" | |
14829 | fi | |
14830 | fi | |
14831 | if test "X$found_dir" != "X"; then | |
14832 | if test -f "$dir/$libname.la"; then | |
14833 | found_la="$dir/$libname.la" | |
14834 | fi | |
14835 | fi | |
14836 | fi | |
14837 | if test "X$found_dir" = "X"; then | |
14838 | for x in $LDFLAGS $LTLIBICONV; do | |
14839 | ||
14840 | acl_save_prefix="$prefix" | |
14841 | prefix="$acl_final_prefix" | |
14842 | acl_save_exec_prefix="$exec_prefix" | |
14843 | exec_prefix="$acl_final_exec_prefix" | |
14844 | eval x=\"$x\" | |
14845 | exec_prefix="$acl_save_exec_prefix" | |
14846 | prefix="$acl_save_prefix" | |
14847 | ||
14848 | case "$x" in | |
14849 | -L*) | |
14850 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
14851 | if test -n "$acl_shlibext"; then | |
14852 | if test -f "$dir/$libname$shrext"; then | |
14853 | found_dir="$dir" | |
14854 | found_so="$dir/$libname$shrext" | |
14855 | else | |
14856 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14857 | ver=`(cd "$dir" && \ | |
14858 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14859 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14860 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14861 | | sed 1q ) 2>/dev/null` | |
14862 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14863 | found_dir="$dir" | |
14864 | found_so="$dir/$libname$shrext.$ver" | |
14865 | fi | |
14866 | else | |
14867 | eval library_names=\"$acl_library_names_spec\" | |
14868 | for f in $library_names; do | |
14869 | if test -f "$dir/$f"; then | |
14870 | found_dir="$dir" | |
14871 | found_so="$dir/$f" | |
14872 | break | |
14873 | fi | |
14874 | done | |
14875 | fi | |
14876 | fi | |
14877 | fi | |
14878 | if test "X$found_dir" = "X"; then | |
14879 | if test -f "$dir/$libname.$acl_libext"; then | |
14880 | found_dir="$dir" | |
14881 | found_a="$dir/$libname.$acl_libext" | |
14882 | fi | |
14883 | fi | |
14884 | if test "X$found_dir" != "X"; then | |
14885 | if test -f "$dir/$libname.la"; then | |
14886 | found_la="$dir/$libname.la" | |
14887 | fi | |
14888 | fi | |
14889 | ;; | |
14890 | esac | |
14891 | if test "X$found_dir" != "X"; then | |
14892 | break | |
14893 | fi | |
14894 | done | |
14895 | fi | |
14896 | if test "X$found_dir" != "X"; then | |
14897 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
14898 | if test "X$found_so" != "X"; then | |
14899 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
14900 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14901 | else | |
14902 | haveit= | |
14903 | for x in $ltrpathdirs; do | |
14904 | if test "X$x" = "X$found_dir"; then | |
14905 | haveit=yes | |
14906 | break | |
14907 | fi | |
14908 | done | |
14909 | if test -z "$haveit"; then | |
14910 | ltrpathdirs="$ltrpathdirs $found_dir" | |
14911 | fi | |
14912 | if test "$acl_hardcode_direct" = yes; then | |
14913 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14914 | else | |
14915 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
14916 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14917 | haveit= | |
14918 | for x in $rpathdirs; do | |
14919 | if test "X$x" = "X$found_dir"; then | |
14920 | haveit=yes | |
14921 | break | |
14922 | fi | |
14923 | done | |
14924 | if test -z "$haveit"; then | |
14925 | rpathdirs="$rpathdirs $found_dir" | |
14926 | fi | |
14927 | else | |
14928 | haveit= | |
14929 | for x in $LDFLAGS $LIBICONV; do | |
14930 | ||
14931 | acl_save_prefix="$prefix" | |
14932 | prefix="$acl_final_prefix" | |
14933 | acl_save_exec_prefix="$exec_prefix" | |
14934 | exec_prefix="$acl_final_exec_prefix" | |
14935 | eval x=\"$x\" | |
14936 | exec_prefix="$acl_save_exec_prefix" | |
14937 | prefix="$acl_save_prefix" | |
14938 | ||
14939 | if test "X$x" = "X-L$found_dir"; then | |
14940 | haveit=yes | |
14941 | break | |
14942 | fi | |
14943 | done | |
14944 | if test -z "$haveit"; then | |
14945 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
14946 | fi | |
14947 | if test "$acl_hardcode_minus_L" != no; then | |
14948 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14949 | else | |
14950 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
14951 | fi | |
14952 | fi | |
14953 | fi | |
14954 | fi | |
14955 | else | |
14956 | if test "X$found_a" != "X"; then | |
14957 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
14958 | else | |
14959 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
14960 | fi | |
14961 | fi | |
14962 | additional_includedir= | |
14963 | case "$found_dir" in | |
14964 | */$acl_libdirstem | */$acl_libdirstem/) | |
14965 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
14966 | LIBICONV_PREFIX="$basedir" | |
14967 | additional_includedir="$basedir/include" | |
14968 | ;; | |
14969 | esac | |
14970 | if test "X$additional_includedir" != "X"; then | |
14971 | if test "X$additional_includedir" != "X/usr/include"; then | |
14972 | haveit= | |
14973 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
14974 | if test -n "$GCC"; then | |
14975 | case $host_os in | |
14976 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
14977 | esac | |
14978 | fi | |
14979 | fi | |
14980 | if test -z "$haveit"; then | |
14981 | for x in $CPPFLAGS $INCICONV; do | |
14982 | ||
14983 | acl_save_prefix="$prefix" | |
14984 | prefix="$acl_final_prefix" | |
14985 | acl_save_exec_prefix="$exec_prefix" | |
14986 | exec_prefix="$acl_final_exec_prefix" | |
14987 | eval x=\"$x\" | |
14988 | exec_prefix="$acl_save_exec_prefix" | |
14989 | prefix="$acl_save_prefix" | |
14990 | ||
14991 | if test "X$x" = "X-I$additional_includedir"; then | |
14992 | haveit=yes | |
14993 | break | |
14994 | fi | |
14995 | done | |
14996 | if test -z "$haveit"; then | |
14997 | if test -d "$additional_includedir"; then | |
14998 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
14999 | fi | |
15000 | fi | |
15001 | fi | |
15002 | fi | |
15003 | fi | |
15004 | if test -n "$found_la"; then | |
15005 | save_libdir="$libdir" | |
15006 | case "$found_la" in | |
15007 | */* | *\\*) . "$found_la" ;; | |
15008 | *) . "./$found_la" ;; | |
15009 | esac | |
15010 | libdir="$save_libdir" | |
15011 | for dep in $dependency_libs; do | |
15012 | case "$dep" in | |
15013 | -L*) | |
15014 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
15015 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
15016 | haveit= | |
15017 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
15018 | if test -n "$GCC"; then | |
15019 | case $host_os in | |
15020 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15021 | esac | |
15022 | fi | |
15023 | fi | |
15024 | if test -z "$haveit"; then | |
15025 | haveit= | |
15026 | for x in $LDFLAGS $LIBICONV; do | |
15027 | ||
15028 | acl_save_prefix="$prefix" | |
15029 | prefix="$acl_final_prefix" | |
15030 | acl_save_exec_prefix="$exec_prefix" | |
15031 | exec_prefix="$acl_final_exec_prefix" | |
15032 | eval x=\"$x\" | |
15033 | exec_prefix="$acl_save_exec_prefix" | |
15034 | prefix="$acl_save_prefix" | |
15035 | ||
15036 | if test "X$x" = "X-L$additional_libdir"; then | |
15037 | haveit=yes | |
15038 | break | |
15039 | fi | |
15040 | done | |
15041 | if test -z "$haveit"; then | |
15042 | if test -d "$additional_libdir"; then | |
15043 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
15044 | fi | |
15045 | fi | |
15046 | haveit= | |
15047 | for x in $LDFLAGS $LTLIBICONV; do | |
15048 | ||
15049 | acl_save_prefix="$prefix" | |
15050 | prefix="$acl_final_prefix" | |
15051 | acl_save_exec_prefix="$exec_prefix" | |
15052 | exec_prefix="$acl_final_exec_prefix" | |
15053 | eval x=\"$x\" | |
15054 | exec_prefix="$acl_save_exec_prefix" | |
15055 | prefix="$acl_save_prefix" | |
15056 | ||
15057 | if test "X$x" = "X-L$additional_libdir"; then | |
15058 | haveit=yes | |
15059 | break | |
15060 | fi | |
15061 | done | |
15062 | if test -z "$haveit"; then | |
15063 | if test -d "$additional_libdir"; then | |
15064 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
15065 | fi | |
15066 | fi | |
15067 | fi | |
15068 | fi | |
15069 | ;; | |
15070 | -R*) | |
15071 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
15072 | if test "$enable_rpath" != no; then | |
15073 | haveit= | |
15074 | for x in $rpathdirs; do | |
15075 | if test "X$x" = "X$dir"; then | |
15076 | haveit=yes | |
15077 | break | |
15078 | fi | |
15079 | done | |
15080 | if test -z "$haveit"; then | |
15081 | rpathdirs="$rpathdirs $dir" | |
15082 | fi | |
15083 | haveit= | |
15084 | for x in $ltrpathdirs; do | |
15085 | if test "X$x" = "X$dir"; then | |
15086 | haveit=yes | |
15087 | break | |
15088 | fi | |
15089 | done | |
15090 | if test -z "$haveit"; then | |
15091 | ltrpathdirs="$ltrpathdirs $dir" | |
15092 | fi | |
15093 | fi | |
15094 | ;; | |
15095 | -l*) | |
15096 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
15097 | ;; | |
15098 | *.la) | |
15099 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
15100 | ;; | |
15101 | *) | |
15102 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
15103 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
15104 | ;; | |
15105 | esac | |
15106 | done | |
15107 | fi | |
15108 | else | |
15109 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15110 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
15111 | fi | |
15112 | fi | |
15113 | fi | |
15114 | done | |
15115 | done | |
15116 | if test "X$rpathdirs" != "X"; then | |
15117 | if test -n "$acl_hardcode_libdir_separator"; then | |
15118 | alldirs= | |
15119 | for found_dir in $rpathdirs; do | |
15120 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
15121 | done | |
15122 | acl_save_libdir="$libdir" | |
15123 | libdir="$alldirs" | |
15124 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15125 | libdir="$acl_save_libdir" | |
15126 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15127 | else | |
15128 | for found_dir in $rpathdirs; do | |
15129 | acl_save_libdir="$libdir" | |
15130 | libdir="$found_dir" | |
15131 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15132 | libdir="$acl_save_libdir" | |
15133 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15134 | done | |
15135 | fi | |
15136 | fi | |
15137 | if test "X$ltrpathdirs" != "X"; then | |
15138 | for found_dir in $ltrpathdirs; do | |
15139 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
15140 | done | |
15141 | fi | |
15142 | ||
15143 | ||
15144 | ||
15145 | ||
15146 | ||
15147 | ||
15148 | ||
15149 | am_save_CPPFLAGS="$CPPFLAGS" | |
15150 | ||
15151 | for element in $INCICONV; do | |
15152 | haveit= | |
15153 | for x in $CPPFLAGS; do | |
15154 | ||
15155 | acl_save_prefix="$prefix" | |
15156 | prefix="$acl_final_prefix" | |
15157 | acl_save_exec_prefix="$exec_prefix" | |
15158 | exec_prefix="$acl_final_exec_prefix" | |
15159 | eval x=\"$x\" | |
15160 | exec_prefix="$acl_save_exec_prefix" | |
15161 | prefix="$acl_save_prefix" | |
15162 | ||
15163 | if test "X$x" = "X$element"; then | |
15164 | haveit=yes | |
15165 | break | |
15166 | fi | |
15167 | done | |
15168 | if test -z "$haveit"; then | |
15169 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
15170 | fi | |
15171 | done | |
15172 | ||
15173 | ||
15174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
15175 | $as_echo_n "checking for iconv... " >&6; } | |
15176 | if test "${am_cv_func_iconv+set}" = set; then : | |
15177 | $as_echo_n "(cached) " >&6 | |
15178 | else | |
15179 | ||
15180 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
15181 | am_cv_lib_iconv=no | |
15182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15183 | /* end confdefs.h. */ | |
15184 | #include <stdlib.h> | |
15185 | #include <iconv.h> | |
15186 | int | |
15187 | main () | |
15188 | { | |
15189 | iconv_t cd = iconv_open("",""); | |
15190 | iconv(cd,NULL,NULL,NULL,NULL); | |
15191 | iconv_close(cd); | |
15192 | ; | |
15193 | return 0; | |
15194 | } | |
15195 | _ACEOF | |
94690cff | 15196 | if ac_fn_c_try_link "$LINENO"; then : |
9c60689e DWT |
15197 | am_cv_func_iconv=yes |
15198 | fi | |
15199 | rm -f core conftest.err conftest.$ac_objext \ | |
15200 | conftest$ac_exeext conftest.$ac_ext | |
15201 | if test "$am_cv_func_iconv" != yes; then | |
15202 | am_save_LIBS="$LIBS" | |
15203 | LIBS="$LIBS $LIBICONV" | |
15204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15205 | /* end confdefs.h. */ | |
15206 | #include <stdlib.h> | |
15207 | #include <iconv.h> | |
15208 | int | |
15209 | main () | |
15210 | { | |
15211 | iconv_t cd = iconv_open("",""); | |
15212 | iconv(cd,NULL,NULL,NULL,NULL); | |
15213 | iconv_close(cd); | |
15214 | ; | |
15215 | return 0; | |
15216 | } | |
15217 | _ACEOF | |
94690cff | 15218 | if ac_fn_c_try_link "$LINENO"; then : |
9c60689e DWT |
15219 | am_cv_lib_iconv=yes |
15220 | am_cv_func_iconv=yes | |
15221 | fi | |
15222 | rm -f core conftest.err conftest.$ac_objext \ | |
15223 | conftest$ac_exeext conftest.$ac_ext | |
15224 | LIBS="$am_save_LIBS" | |
15225 | fi | |
15226 | ||
15227 | fi | |
15228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
15229 | $as_echo "$am_cv_func_iconv" >&6; } | |
15230 | if test "$am_cv_func_iconv" = yes; then | |
15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
15232 | $as_echo_n "checking for working iconv... " >&6; } | |
15233 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
15234 | $as_echo_n "(cached) " >&6 | |
15235 | else | |
15236 | ||
15237 | am_save_LIBS="$LIBS" | |
15238 | if test $am_cv_lib_iconv = yes; then | |
15239 | LIBS="$LIBS $LIBICONV" | |
15240 | fi | |
15241 | if test "$cross_compiling" = yes; then : | |
15242 | case "$host_os" in | |
15243 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
15244 | *) am_cv_func_iconv_works="guessing yes" ;; | |
15245 | esac | |
15246 | else | |
15247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15248 | /* end confdefs.h. */ | |
15249 | ||
15250 | #include <iconv.h> | |
15251 | #include <string.h> | |
15252 | int main () | |
15253 | { | |
15254 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
15255 | returns. */ | |
15256 | { | |
15257 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
15258 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
15259 | { | |
15260 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
15261 | char buf[10]; | |
15262 | const char *inptr = input; | |
15263 | size_t inbytesleft = strlen (input); | |
15264 | char *outptr = buf; | |
15265 | size_t outbytesleft = sizeof (buf); | |
15266 | size_t res = iconv (cd_utf8_to_88591, | |
15267 | (char **) &inptr, &inbytesleft, | |
15268 | &outptr, &outbytesleft); | |
15269 | if (res == 0) | |
15270 | return 1; | |
15271 | } | |
15272 | } | |
15273 | #if 0 /* This bug could be worked around by the caller. */ | |
15274 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
15275 | { | |
15276 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
15277 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
15278 | { | |
15279 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
15280 | char buf[50]; | |
15281 | const char *inptr = input; | |
15282 | size_t inbytesleft = strlen (input); | |
15283 | char *outptr = buf; | |
15284 | size_t outbytesleft = sizeof (buf); | |
15285 | size_t res = iconv (cd_88591_to_utf8, | |
15286 | (char **) &inptr, &inbytesleft, | |
15287 | &outptr, &outbytesleft); | |
15288 | if ((int)res > 0) | |
15289 | return 1; | |
15290 | } | |
15291 | } | |
15292 | #endif | |
15293 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
15294 | provided. */ | |
15295 | if (/* Try standardized names. */ | |
15296 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
15297 | /* Try IRIX, OSF/1 names. */ | |
15298 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
15299 | /* Try AIX names. */ | |
15300 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
15301 | /* Try HP-UX names. */ | |
15302 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
15303 | return 1; | |
15304 | return 0; | |
15305 | } | |
15306 | _ACEOF | |
94690cff | 15307 | if ac_fn_c_try_run "$LINENO"; then : |
9c60689e DWT |
15308 | am_cv_func_iconv_works=yes |
15309 | else | |
15310 | am_cv_func_iconv_works=no | |
15311 | fi | |
15312 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15313 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15314 | fi | |
15315 | ||
15316 | LIBS="$am_save_LIBS" | |
15317 | ||
15318 | fi | |
15319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
15320 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
15321 | case "$am_cv_func_iconv_works" in | |
15322 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
15323 | *) am_func_iconv=yes ;; | |
15324 | esac | |
15325 | else | |
15326 | am_func_iconv=no am_cv_lib_iconv=no | |
15327 | fi | |
15328 | if test "$am_func_iconv" = yes; then | |
15329 | ||
15330 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
15331 | ||
15332 | fi | |
15333 | if test "$am_cv_lib_iconv" = yes; then | |
15334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
15335 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
15336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
15337 | $as_echo "$LIBICONV" >&6; } | |
15338 | else | |
15339 | CPPFLAGS="$am_save_CPPFLAGS" | |
15340 | LIBICONV= | |
15341 | LTLIBICONV= | |
15342 | fi | |
15343 | ||
15344 | ||
15345 | ||
15346 | if test "$am_cv_func_iconv" = yes; then | |
15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
15348 | $as_echo_n "checking for iconv declaration... " >&6; } | |
15349 | if test "${am_cv_proto_iconv+set}" = set; then : | |
15350 | $as_echo_n "(cached) " >&6 | |
15351 | else | |
15352 | ||
15353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15354 | /* end confdefs.h. */ | |
15355 | ||
15356 | #include <stdlib.h> | |
15357 | #include <iconv.h> | |
15358 | extern | |
15359 | #ifdef __cplusplus | |
15360 | "C" | |
15361 | #endif | |
15362 | #if defined(__STDC__) || defined(__cplusplus) | |
15363 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15364 | #else | |
15365 | size_t iconv(); | |
15366 | #endif | |
15367 | ||
15368 | int | |
15369 | main () | |
15370 | { | |
15371 | ||
15372 | ; | |
15373 | return 0; | |
15374 | } | |
15375 | _ACEOF | |
94690cff | 15376 | if ac_fn_c_try_compile "$LINENO"; then : |
9c60689e DWT |
15377 | am_cv_proto_iconv_arg1="" |
15378 | else | |
15379 | am_cv_proto_iconv_arg1="const" | |
15380 | fi | |
15381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15382 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
15383 | fi | |
15384 | ||
15385 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
15386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
15387 | }$am_cv_proto_iconv" >&5 | |
15388 | $as_echo "${ac_t:- | |
15389 | }$am_cv_proto_iconv" >&6; } | |
15390 | ||
15391 | cat >>confdefs.h <<_ACEOF | |
15392 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
15393 | _ACEOF | |
15394 | ||
15395 | fi | |
15396 | ||
94690cff DWT |
15397 | ac_ext=cpp |
15398 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15402 | ||
9c60689e DWT |
15403 | case $am_cv_func_iconv in #( |
15404 | yes) : | |
15405 | ;; #( | |
15406 | *) : | |
15407 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
15408 | esac | |
15409 | ||
9c60689e DWT |
15410 | pkg_failed=no |
15411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15412 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15413 | ||
15414 | if test -n "$PKG_CONFIG"; then | |
15415 | if test -n "$WEBKIT_CFLAGS"; then | |
15416 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15417 | else | |
15418 | if test -n "$PKG_CONFIG" && \ | |
15419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15420 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15421 | ac_status=$? | |
15422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15423 | test $ac_status = 0; }; then | |
15424 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15425 | else | |
15426 | pkg_failed=yes | |
15427 | fi | |
15428 | fi | |
15429 | else | |
15430 | pkg_failed=untried | |
15431 | fi | |
15432 | if test -n "$PKG_CONFIG"; then | |
15433 | if test -n "$WEBKIT_LIBS"; then | |
15434 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15435 | else | |
15436 | if test -n "$PKG_CONFIG" && \ | |
15437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15438 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15439 | ac_status=$? | |
15440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15441 | test $ac_status = 0; }; then | |
15442 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15443 | else | |
15444 | pkg_failed=yes | |
15445 | fi | |
15446 | fi | |
15447 | else | |
15448 | pkg_failed=untried | |
15449 | fi | |
15450 | ||
15451 | ||
15452 | ||
15453 | if test $pkg_failed = yes; then | |
15454 | ||
15455 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15456 | _pkg_short_errors_supported=yes | |
15457 | else | |
15458 | _pkg_short_errors_supported=no | |
15459 | fi | |
15460 | if test $_pkg_short_errors_supported = yes; then | |
15461 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
15462 | else | |
15463 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
15464 | fi | |
15465 | # Put the nasty error message in config.log where it belongs | |
15466 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15467 | ||
15468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15469 | $as_echo "no" >&6; } | |
15470 | ||
15471 | ||
15472 | pkg_failed=no | |
15473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15474 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15475 | ||
15476 | if test -n "$PKG_CONFIG"; then | |
15477 | if test -n "$WEBKIT_CFLAGS"; then | |
15478 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15479 | else | |
15480 | if test -n "$PKG_CONFIG" && \ | |
15481 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15482 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15483 | ac_status=$? | |
15484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15485 | test $ac_status = 0; }; then | |
15486 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15487 | else | |
15488 | pkg_failed=yes | |
15489 | fi | |
15490 | fi | |
15491 | else | |
15492 | pkg_failed=untried | |
15493 | fi | |
15494 | if test -n "$PKG_CONFIG"; then | |
15495 | if test -n "$WEBKIT_LIBS"; then | |
15496 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15497 | else | |
15498 | if test -n "$PKG_CONFIG" && \ | |
15499 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15500 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15501 | ac_status=$? | |
15502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15503 | test $ac_status = 0; }; then | |
15504 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15505 | else | |
15506 | pkg_failed=yes | |
15507 | fi | |
15508 | fi | |
15509 | else | |
15510 | pkg_failed=untried | |
15511 | fi | |
15512 | ||
15513 | ||
15514 | ||
15515 | if test $pkg_failed = yes; then | |
15516 | ||
15517 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15518 | _pkg_short_errors_supported=yes | |
15519 | else | |
15520 | _pkg_short_errors_supported=no | |
15521 | fi | |
15522 | if test $_pkg_short_errors_supported = yes; then | |
15523 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15524 | else | |
15525 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15526 | fi | |
15527 | # Put the nasty error message in config.log where it belongs | |
15528 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15529 | ||
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15531 | $as_echo "no" >&6; } | |
b128dfee DWT |
15532 | |
15533 | for ac_header in JavaScriptCore/JSBase.h | |
15534 | do : | |
15535 | ac_fn_cxx_check_header_mongrel "$LINENO" "JavaScriptCore/JSBase.h" "ac_cv_header_JavaScriptCore_JSBase_h" "$ac_includes_default" | |
15536 | if test "x$ac_cv_header_JavaScriptCore_JSBase_h" = x""yes; then : | |
15537 | cat >>confdefs.h <<_ACEOF | |
15538 | #define HAVE_JAVASCRIPTCORE_JSBASE_H 1 | |
15539 | _ACEOF | |
15540 | CY_EXECUTE=1 | |
15541 | fi | |
15542 | ||
15543 | done | |
15544 | ||
15545 | ||
9c60689e | 15546 | elif test $pkg_failed = untried; then |
b128dfee DWT |
15547 | |
15548 | for ac_header in JavaScriptCore/JSBase.h | |
15549 | do : | |
15550 | ac_fn_cxx_check_header_mongrel "$LINENO" "JavaScriptCore/JSBase.h" "ac_cv_header_JavaScriptCore_JSBase_h" "$ac_includes_default" | |
15551 | if test "x$ac_cv_header_JavaScriptCore_JSBase_h" = x""yes; then : | |
15552 | cat >>confdefs.h <<_ACEOF | |
15553 | #define HAVE_JAVASCRIPTCORE_JSBASE_H 1 | |
15554 | _ACEOF | |
15555 | CY_EXECUTE=1 | |
15556 | fi | |
15557 | ||
15558 | done | |
15559 | ||
15560 | ||
9c60689e DWT |
15561 | else |
15562 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15563 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15565 | $as_echo "yes" >&6; } | |
3fd51f51 | 15566 | |
a667869d | 15567 | CY_EXECUTE=1 |
3fd51f51 DWT |
15568 | |
15569 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15570 | haveit= | |
15571 | for x in $CXXFLAGS; do | |
15572 | ||
15573 | acl_save_prefix="$prefix" | |
15574 | prefix="$acl_final_prefix" | |
15575 | acl_save_exec_prefix="$exec_prefix" | |
15576 | exec_prefix="$acl_final_exec_prefix" | |
15577 | eval x=\"$x\" | |
15578 | exec_prefix="$acl_save_exec_prefix" | |
15579 | prefix="$acl_save_prefix" | |
15580 | ||
15581 | if test "X$x" = "X$element"; then | |
15582 | haveit=yes | |
15583 | break | |
15584 | fi | |
15585 | done | |
15586 | if test -z "$haveit"; then | |
15587 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15588 | fi | |
15589 | done | |
15590 | ||
15591 | ||
15592 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15593 | haveit= | |
15594 | for x in $LIBS; do | |
15595 | ||
15596 | acl_save_prefix="$prefix" | |
15597 | prefix="$acl_final_prefix" | |
15598 | acl_save_exec_prefix="$exec_prefix" | |
15599 | exec_prefix="$acl_final_exec_prefix" | |
15600 | eval x=\"$x\" | |
15601 | exec_prefix="$acl_save_exec_prefix" | |
15602 | prefix="$acl_save_prefix" | |
15603 | ||
15604 | if test "X$x" = "X$element"; then | |
15605 | haveit=yes | |
15606 | break | |
15607 | fi | |
15608 | done | |
15609 | if test -z "$haveit"; then | |
15610 | LIBS="${LIBS}${LIBS:+ }$element" | |
15611 | fi | |
15612 | done | |
15613 | ||
15614 | ||
9c60689e DWT |
15615 | fi |
15616 | ||
15617 | elif test $pkg_failed = untried; then | |
15618 | ||
15619 | ||
15620 | pkg_failed=no | |
15621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15622 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15623 | ||
15624 | if test -n "$PKG_CONFIG"; then | |
15625 | if test -n "$WEBKIT_CFLAGS"; then | |
15626 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15627 | else | |
15628 | if test -n "$PKG_CONFIG" && \ | |
15629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15630 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15631 | ac_status=$? | |
15632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15633 | test $ac_status = 0; }; then | |
15634 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15635 | else | |
15636 | pkg_failed=yes | |
15637 | fi | |
15638 | fi | |
15639 | else | |
15640 | pkg_failed=untried | |
15641 | fi | |
15642 | if test -n "$PKG_CONFIG"; then | |
15643 | if test -n "$WEBKIT_LIBS"; then | |
15644 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15645 | else | |
15646 | if test -n "$PKG_CONFIG" && \ | |
15647 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15648 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15649 | ac_status=$? | |
15650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15651 | test $ac_status = 0; }; then | |
15652 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15653 | else | |
15654 | pkg_failed=yes | |
15655 | fi | |
15656 | fi | |
15657 | else | |
15658 | pkg_failed=untried | |
15659 | fi | |
15660 | ||
15661 | ||
15662 | ||
15663 | if test $pkg_failed = yes; then | |
15664 | ||
15665 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15666 | _pkg_short_errors_supported=yes | |
15667 | else | |
15668 | _pkg_short_errors_supported=no | |
15669 | fi | |
15670 | if test $_pkg_short_errors_supported = yes; then | |
15671 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15672 | else | |
15673 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15674 | fi | |
15675 | # Put the nasty error message in config.log where it belongs | |
15676 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15677 | ||
15678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15679 | $as_echo "no" >&6; } | |
b128dfee DWT |
15680 | |
15681 | for ac_header in JavaScriptCore/JSBase.h | |
15682 | do : | |
15683 | ac_fn_cxx_check_header_mongrel "$LINENO" "JavaScriptCore/JSBase.h" "ac_cv_header_JavaScriptCore_JSBase_h" "$ac_includes_default" | |
15684 | if test "x$ac_cv_header_JavaScriptCore_JSBase_h" = x""yes; then : | |
15685 | cat >>confdefs.h <<_ACEOF | |
15686 | #define HAVE_JAVASCRIPTCORE_JSBASE_H 1 | |
15687 | _ACEOF | |
15688 | CY_EXECUTE=1 | |
15689 | fi | |
15690 | ||
15691 | done | |
15692 | ||
15693 | ||
9c60689e | 15694 | elif test $pkg_failed = untried; then |
b128dfee DWT |
15695 | |
15696 | for ac_header in JavaScriptCore/JSBase.h | |
15697 | do : | |
15698 | ac_fn_cxx_check_header_mongrel "$LINENO" "JavaScriptCore/JSBase.h" "ac_cv_header_JavaScriptCore_JSBase_h" "$ac_includes_default" | |
15699 | if test "x$ac_cv_header_JavaScriptCore_JSBase_h" = x""yes; then : | |
15700 | cat >>confdefs.h <<_ACEOF | |
15701 | #define HAVE_JAVASCRIPTCORE_JSBASE_H 1 | |
15702 | _ACEOF | |
15703 | CY_EXECUTE=1 | |
15704 | fi | |
15705 | ||
15706 | done | |
15707 | ||
15708 | ||
9c60689e DWT |
15709 | else |
15710 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15711 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15713 | $as_echo "yes" >&6; } | |
3fd51f51 | 15714 | |
a667869d | 15715 | CY_EXECUTE=1 |
3fd51f51 DWT |
15716 | |
15717 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15718 | haveit= | |
15719 | for x in $CXXFLAGS; do | |
15720 | ||
15721 | acl_save_prefix="$prefix" | |
15722 | prefix="$acl_final_prefix" | |
15723 | acl_save_exec_prefix="$exec_prefix" | |
15724 | exec_prefix="$acl_final_exec_prefix" | |
15725 | eval x=\"$x\" | |
15726 | exec_prefix="$acl_save_exec_prefix" | |
15727 | prefix="$acl_save_prefix" | |
15728 | ||
15729 | if test "X$x" = "X$element"; then | |
15730 | haveit=yes | |
15731 | break | |
15732 | fi | |
15733 | done | |
15734 | if test -z "$haveit"; then | |
15735 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15736 | fi | |
15737 | done | |
15738 | ||
15739 | ||
15740 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15741 | haveit= | |
15742 | for x in $LIBS; do | |
15743 | ||
15744 | acl_save_prefix="$prefix" | |
15745 | prefix="$acl_final_prefix" | |
15746 | acl_save_exec_prefix="$exec_prefix" | |
15747 | exec_prefix="$acl_final_exec_prefix" | |
15748 | eval x=\"$x\" | |
15749 | exec_prefix="$acl_save_exec_prefix" | |
15750 | prefix="$acl_save_prefix" | |
15751 | ||
15752 | if test "X$x" = "X$element"; then | |
15753 | haveit=yes | |
15754 | break | |
15755 | fi | |
15756 | done | |
15757 | if test -z "$haveit"; then | |
15758 | LIBS="${LIBS}${LIBS:+ }$element" | |
15759 | fi | |
15760 | done | |
15761 | ||
15762 | ||
9c60689e DWT |
15763 | fi |
15764 | ||
15765 | else | |
15766 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15767 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15769 | $as_echo "yes" >&6; } | |
3fd51f51 | 15770 | |
a667869d | 15771 | CY_EXECUTE=1 |
3fd51f51 DWT |
15772 | |
15773 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
15774 | haveit= | |
15775 | for x in $CXXFLAGS; do | |
15776 | ||
15777 | acl_save_prefix="$prefix" | |
15778 | prefix="$acl_final_prefix" | |
15779 | acl_save_exec_prefix="$exec_prefix" | |
15780 | exec_prefix="$acl_final_exec_prefix" | |
15781 | eval x=\"$x\" | |
15782 | exec_prefix="$acl_save_exec_prefix" | |
15783 | prefix="$acl_save_prefix" | |
15784 | ||
15785 | if test "X$x" = "X$element"; then | |
15786 | haveit=yes | |
15787 | break | |
15788 | fi | |
15789 | done | |
15790 | if test -z "$haveit"; then | |
15791 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15792 | fi | |
15793 | done | |
15794 | ||
15795 | ||
15796 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
15797 | haveit= | |
15798 | for x in $LIBS; do | |
15799 | ||
15800 | acl_save_prefix="$prefix" | |
15801 | prefix="$acl_final_prefix" | |
15802 | acl_save_exec_prefix="$exec_prefix" | |
15803 | exec_prefix="$acl_final_exec_prefix" | |
15804 | eval x=\"$x\" | |
15805 | exec_prefix="$acl_save_exec_prefix" | |
15806 | prefix="$acl_save_prefix" | |
15807 | ||
15808 | if test "X$x" = "X$element"; then | |
15809 | haveit=yes | |
15810 | break | |
15811 | fi | |
15812 | done | |
15813 | if test -z "$haveit"; then | |
15814 | LIBS="${LIBS}${LIBS:+ }$element" | |
15815 | fi | |
15816 | done | |
15817 | ||
15818 | ||
9c60689e | 15819 | fi |
a667869d DWT |
15820 | ac_ext=mm |
15821 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
15822 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15823 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15824 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
15825 | if test -n "$ac_tool_prefix"; then | |
15826 | for ac_prog in g++ objc++ objcxx c++ CXX | |
15827 | do | |
15828 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
15829 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
15830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15831 | $as_echo_n "checking for $ac_word... " >&6; } | |
15832 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : | |
15833 | $as_echo_n "(cached) " >&6 | |
9c60689e | 15834 | else |
a667869d DWT |
15835 | if test -n "$OBJCXX"; then |
15836 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
9c60689e | 15837 | else |
a667869d DWT |
15838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15839 | for as_dir in $PATH | |
15840 | do | |
15841 | IFS=$as_save_IFS | |
15842 | test -z "$as_dir" && as_dir=. | |
15843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15845 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
15846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15847 | break 2 | |
15848 | fi | |
15849 | done | |
15850 | done | |
15851 | IFS=$as_save_IFS | |
15852 | ||
9c60689e | 15853 | fi |
9c60689e | 15854 | fi |
a667869d DWT |
15855 | OBJCXX=$ac_cv_prog_OBJCXX |
15856 | if test -n "$OBJCXX"; then | |
15857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
15858 | $as_echo "$OBJCXX" >&6; } | |
9c60689e | 15859 | else |
a667869d DWT |
15860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15861 | $as_echo "no" >&6; } | |
9c60689e DWT |
15862 | fi |
15863 | ||
15864 | ||
a667869d DWT |
15865 | test -n "$OBJCXX" && break |
15866 | done | |
9c60689e | 15867 | fi |
a667869d DWT |
15868 | if test -z "$OBJCXX"; then |
15869 | ac_ct_OBJCXX=$OBJCXX | |
15870 | for ac_prog in g++ objc++ objcxx c++ CXX | |
15871 | do | |
15872 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15873 | set dummy $ac_prog; ac_word=$2 | |
15874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15875 | $as_echo_n "checking for $ac_word... " >&6; } | |
15876 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : | |
15877 | $as_echo_n "(cached) " >&6 | |
15878 | else | |
15879 | if test -n "$ac_ct_OBJCXX"; then | |
15880 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
15881 | else | |
15882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15883 | for as_dir in $PATH | |
15884 | do | |
15885 | IFS=$as_save_IFS | |
15886 | test -z "$as_dir" && as_dir=. | |
15887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15889 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
15890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15891 | break 2 | |
15892 | fi | |
15893 | done | |
15894 | done | |
15895 | IFS=$as_save_IFS | |
9c60689e | 15896 | |
a667869d DWT |
15897 | fi |
15898 | fi | |
15899 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
15900 | if test -n "$ac_ct_OBJCXX"; then | |
15901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
15902 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
15903 | else | |
15904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9c60689e | 15905 | $as_echo "no" >&6; } |
9c60689e DWT |
15906 | fi |
15907 | ||
a667869d DWT |
15908 | |
15909 | test -n "$ac_ct_OBJCXX" && break | |
9c60689e DWT |
15910 | done |
15911 | ||
a667869d DWT |
15912 | if test "x$ac_ct_OBJCXX" = x; then |
15913 | OBJCXX="g++" | |
15914 | else | |
15915 | case $cross_compiling:$ac_tool_warned in | |
15916 | yes:) | |
15917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15919 | ac_tool_warned=yes ;; | |
15920 | esac | |
15921 | OBJCXX=$ac_ct_OBJCXX | |
15922 | fi | |
15923 | fi | |
9c60689e | 15924 | |
a667869d DWT |
15925 | # Provide some information about the compiler. |
15926 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
15927 | set X $ac_compile | |
15928 | ac_compiler=$2 | |
15929 | for ac_option in --version -v -V -qversion; do | |
15930 | { { ac_try="$ac_compiler $ac_option >&5" | |
15931 | case "(($ac_try" in | |
15932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15933 | *) ac_try_echo=$ac_try;; | |
15934 | esac | |
15935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
15936 | $as_echo "$ac_try_echo"; } >&5 | |
15937 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
15938 | ac_status=$? | |
15939 | if test -s conftest.err; then | |
15940 | sed '10a\ | |
15941 | ... rest of stderr output deleted ... | |
15942 | 10q' conftest.err >conftest.er1 | |
15943 | cat conftest.er1 >&5 | |
15944 | fi | |
15945 | rm -f conftest.er1 conftest.err | |
15946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15947 | test $ac_status = 0; } | |
15948 | done | |
9c60689e | 15949 | |
a667869d DWT |
15950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
15951 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
15952 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
9c60689e DWT |
15953 | $as_echo_n "(cached) " >&6 |
15954 | else | |
a667869d | 15955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
15956 | /* end confdefs.h. */ |
15957 | ||
9c60689e DWT |
15958 | int |
15959 | main () | |
15960 | { | |
a667869d DWT |
15961 | #ifndef __GNUC__ |
15962 | choke me | |
15963 | #endif | |
15964 | ||
9c60689e DWT |
15965 | ; |
15966 | return 0; | |
15967 | } | |
15968 | _ACEOF | |
a667869d DWT |
15969 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
15970 | ac_compiler_gnu=yes | |
9c60689e | 15971 | else |
a667869d | 15972 | ac_compiler_gnu=no |
9c60689e | 15973 | fi |
a667869d DWT |
15974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15975 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e DWT |
15976 | |
15977 | fi | |
a667869d DWT |
15978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
15979 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
15980 | if test $ac_compiler_gnu = yes; then | |
15981 | GOBJCXX=yes | |
15982 | else | |
15983 | GOBJCXX= | |
15984 | fi | |
15985 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
15986 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
15988 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
15989 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
15990 | $as_echo_n "(cached) " >&6 | |
15991 | else | |
15992 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
15993 | ac_objcxx_werror_flag=yes | |
15994 | ac_cv_prog_objcxx_g=no | |
15995 | OBJCXXFLAGS="-g" | |
15996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15997 | /* end confdefs.h. */ | |
15998 | ||
15999 | int | |
16000 | main () | |
16001 | { | |
16002 | ||
16003 | ; | |
16004 | return 0; | |
16005 | } | |
16006 | _ACEOF | |
16007 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16008 | ac_cv_prog_objcxx_g=yes | |
16009 | else | |
16010 | OBJCXXFLAGS="" | |
16011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16012 | /* end confdefs.h. */ | |
16013 | ||
16014 | int | |
16015 | main () | |
16016 | { | |
16017 | ||
16018 | ; | |
16019 | return 0; | |
16020 | } | |
16021 | _ACEOF | |
16022 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16023 | ||
16024 | else | |
16025 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
16026 | OBJCXXFLAGS="-g" | |
16027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16028 | /* end confdefs.h. */ | |
16029 | ||
16030 | int | |
16031 | main () | |
16032 | { | |
16033 | ||
16034 | ; | |
16035 | return 0; | |
16036 | } | |
16037 | _ACEOF | |
16038 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16039 | ac_cv_prog_objcxx_g=yes | |
16040 | fi | |
16041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16042 | fi | |
16043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16044 | fi | |
16045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16046 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
16047 | fi | |
16048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
16049 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
16050 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
16051 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
16052 | elif test $ac_cv_prog_objcxx_g = yes; then | |
16053 | if test "$GOBJCXX" = yes; then | |
16054 | OBJCXXFLAGS="-g -O2" | |
16055 | else | |
16056 | OBJCXXFLAGS="-g" | |
16057 | fi | |
16058 | else | |
16059 | if test "$GOBJCXX" = yes; then | |
16060 | OBJCXXFLAGS="-O2" | |
16061 | else | |
16062 | OBJCXXFLAGS= | |
16063 | fi | |
16064 | fi | |
16065 | ac_ext=cpp | |
16066 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16067 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16068 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16069 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16070 | ||
16071 | ||
16072 | case $CY_EXECUTE in #( | |
16073 | 1) : | |
16074 | ||
16075 | ||
16076 | ||
16077 | pkg_failed=no | |
16078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
16079 | $as_echo_n "checking for LIBFFI... " >&6; } | |
16080 | ||
16081 | if test -n "$PKG_CONFIG"; then | |
16082 | if test -n "$LIBFFI_CFLAGS"; then | |
16083 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
16084 | else | |
16085 | if test -n "$PKG_CONFIG" && \ | |
16086 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
16087 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16088 | ac_status=$? | |
16089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16090 | test $ac_status = 0; }; then | |
16091 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
16092 | else | |
16093 | pkg_failed=yes | |
16094 | fi | |
16095 | fi | |
16096 | else | |
16097 | pkg_failed=untried | |
16098 | fi | |
16099 | if test -n "$PKG_CONFIG"; then | |
16100 | if test -n "$LIBFFI_LIBS"; then | |
16101 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
16102 | else | |
16103 | if test -n "$PKG_CONFIG" && \ | |
16104 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
16105 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16106 | ac_status=$? | |
16107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16108 | test $ac_status = 0; }; then | |
16109 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
16110 | else | |
16111 | pkg_failed=yes | |
16112 | fi | |
16113 | fi | |
16114 | else | |
16115 | pkg_failed=untried | |
16116 | fi | |
16117 | ||
16118 | ||
16119 | ||
16120 | if test $pkg_failed = yes; then | |
16121 | ||
16122 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16123 | _pkg_short_errors_supported=yes | |
16124 | else | |
16125 | _pkg_short_errors_supported=no | |
16126 | fi | |
16127 | if test $_pkg_short_errors_supported = yes; then | |
16128 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` | |
16129 | else | |
16130 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` | |
16131 | fi | |
16132 | # Put the nasty error message in config.log where it belongs | |
16133 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
16134 | ||
16135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16136 | $as_echo "no" >&6; } | |
16137 | ||
16138 | for ac_header in ffi.h ffi/ffi.h | |
16139 | do : | |
16140 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16141 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16142 | eval as_val=\$$as_ac_Header | |
16143 | if test "x$as_val" = x""yes; then : | |
16144 | cat >>confdefs.h <<_ACEOF | |
16145 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16146 | _ACEOF | |
16147 | break | |
16148 | fi | |
16149 | ||
16150 | done | |
16151 | ||
16152 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16153 | ||
16154 | as_fn_error "You need libffi" "$LINENO" 5 | |
16155 | ||
16156 | fi | |
16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
16158 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
16159 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16160 | $as_echo_n "(cached) " >&6 | |
16161 | else | |
16162 | ac_func_search_save_LIBS=$LIBS | |
16163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16164 | /* end confdefs.h. */ | |
16165 | ||
16166 | /* Override any GCC internal prototype to avoid an error. | |
16167 | Use char because int might match the return type of a GCC | |
16168 | builtin and then its argument prototype would still apply. */ | |
16169 | #ifdef __cplusplus | |
16170 | extern "C" | |
16171 | #endif | |
16172 | char ffi_call (); | |
16173 | int | |
16174 | main () | |
16175 | { | |
16176 | return ffi_call (); | |
16177 | ; | |
16178 | return 0; | |
16179 | } | |
16180 | _ACEOF | |
16181 | for ac_lib in '' ffi; do | |
16182 | if test -z "$ac_lib"; then | |
16183 | ac_res="none required" | |
16184 | else | |
16185 | ac_res=-l$ac_lib | |
16186 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16187 | fi | |
16188 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16189 | ac_cv_search_ffi_call=$ac_res | |
16190 | fi | |
16191 | rm -f core conftest.err conftest.$ac_objext \ | |
16192 | conftest$ac_exeext | |
16193 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16194 | break | |
16195 | fi | |
16196 | done | |
16197 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16198 | ||
16199 | else | |
16200 | ac_cv_search_ffi_call=no | |
16201 | fi | |
16202 | rm conftest.$ac_ext | |
16203 | LIBS=$ac_func_search_save_LIBS | |
16204 | fi | |
16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
16206 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
16207 | ac_res=$ac_cv_search_ffi_call | |
16208 | if test "$ac_res" != no; then : | |
16209 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16210 | ||
16211 | fi | |
16212 | ||
16213 | case $ac_cv_search_ffi_call in #( | |
16214 | no) : | |
16215 | ||
16216 | as_fn_error "You need libffi" "$LINENO" 5 | |
16217 | ;; #( | |
16218 | *) : | |
9c60689e DWT |
16219 | ;; |
16220 | esac | |
16221 | ||
16222 | elif test $pkg_failed = untried; then | |
16223 | ||
16224 | for ac_header in ffi.h ffi/ffi.h | |
16225 | do : | |
16226 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47aaa820 | 16227 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
9c60689e DWT |
16228 | eval as_val=\$$as_ac_Header |
16229 | if test "x$as_val" = x""yes; then : | |
16230 | cat >>confdefs.h <<_ACEOF | |
16231 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16232 | _ACEOF | |
16233 | break | |
16234 | fi | |
16235 | ||
16236 | done | |
16237 | ||
16238 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16239 | ||
16240 | as_fn_error "You need libffi" "$LINENO" 5 | |
16241 | ||
16242 | fi | |
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
16244 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
16245 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16246 | $as_echo_n "(cached) " >&6 | |
16247 | else | |
16248 | ac_func_search_save_LIBS=$LIBS | |
16249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16250 | /* end confdefs.h. */ | |
16251 | ||
16252 | /* Override any GCC internal prototype to avoid an error. | |
16253 | Use char because int might match the return type of a GCC | |
16254 | builtin and then its argument prototype would still apply. */ | |
16255 | #ifdef __cplusplus | |
16256 | extern "C" | |
16257 | #endif | |
16258 | char ffi_call (); | |
16259 | int | |
16260 | main () | |
16261 | { | |
16262 | return ffi_call (); | |
16263 | ; | |
16264 | return 0; | |
16265 | } | |
16266 | _ACEOF | |
16267 | for ac_lib in '' ffi; do | |
16268 | if test -z "$ac_lib"; then | |
16269 | ac_res="none required" | |
16270 | else | |
16271 | ac_res=-l$ac_lib | |
16272 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16273 | fi | |
47aaa820 | 16274 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e DWT |
16275 | ac_cv_search_ffi_call=$ac_res |
16276 | fi | |
16277 | rm -f core conftest.err conftest.$ac_objext \ | |
16278 | conftest$ac_exeext | |
16279 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16280 | break | |
16281 | fi | |
16282 | done | |
16283 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16284 | ||
16285 | else | |
16286 | ac_cv_search_ffi_call=no | |
16287 | fi | |
16288 | rm conftest.$ac_ext | |
16289 | LIBS=$ac_func_search_save_LIBS | |
16290 | fi | |
16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
16292 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
16293 | ac_res=$ac_cv_search_ffi_call | |
16294 | if test "$ac_res" != no; then : | |
16295 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16296 | ||
16297 | fi | |
16298 | ||
16299 | case $ac_cv_search_ffi_call in #( | |
16300 | no) : | |
16301 | ||
16302 | as_fn_error "You need libffi" "$LINENO" 5 | |
16303 | ;; #( | |
16304 | *) : | |
16305 | ;; | |
16306 | esac | |
16307 | ||
16308 | else | |
16309 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
16310 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16312 | $as_echo "yes" >&6; } | |
3fd51f51 DWT |
16313 | |
16314 | ||
16315 | for element in `$PKG_CONFIG --cflags libffi`; do | |
16316 | haveit= | |
16317 | for x in $CXXFLAGS; do | |
16318 | ||
16319 | acl_save_prefix="$prefix" | |
16320 | prefix="$acl_final_prefix" | |
16321 | acl_save_exec_prefix="$exec_prefix" | |
16322 | exec_prefix="$acl_final_exec_prefix" | |
16323 | eval x=\"$x\" | |
16324 | exec_prefix="$acl_save_exec_prefix" | |
16325 | prefix="$acl_save_prefix" | |
16326 | ||
16327 | if test "X$x" = "X$element"; then | |
16328 | haveit=yes | |
16329 | break | |
16330 | fi | |
16331 | done | |
16332 | if test -z "$haveit"; then | |
16333 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16334 | fi | |
16335 | done | |
16336 | ||
16337 | ||
16338 | for element in `$PKG_CONFIG --libs libffi`; do | |
16339 | haveit= | |
16340 | for x in $LIBS; do | |
16341 | ||
16342 | acl_save_prefix="$prefix" | |
16343 | prefix="$acl_final_prefix" | |
16344 | acl_save_exec_prefix="$exec_prefix" | |
16345 | exec_prefix="$acl_final_exec_prefix" | |
16346 | eval x=\"$x\" | |
16347 | exec_prefix="$acl_save_exec_prefix" | |
16348 | prefix="$acl_save_prefix" | |
16349 | ||
16350 | if test "X$x" = "X$element"; then | |
16351 | haveit=yes | |
16352 | break | |
16353 | fi | |
16354 | done | |
16355 | if test -z "$haveit"; then | |
16356 | LIBS="${LIBS}${LIBS:+ }$element" | |
16357 | fi | |
16358 | done | |
16359 | ||
16360 | ||
9c60689e | 16361 | fi |
a667869d | 16362 | ac_ext=mm |
47aaa820 DWT |
16363 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
16364 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16365 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16366 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
16367 | ||
a667869d | 16368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 |
47aaa820 | 16369 | $as_echo_n "checking if we really have Objective C++... " >&6; } |
a667869d | 16370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
47aaa820 DWT |
16371 | /* end confdefs.h. */ |
16372 | ||
a667869d | 16373 | // This space intentionally left blank |
47aaa820 DWT |
16374 | |
16375 | _ACEOF | |
16376 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16377 | ||
a667869d DWT |
16378 | CY_OBJECTIVEC=1 |
16379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
47aaa820 DWT |
16380 | $as_echo "yes" >&6; } |
16381 | ||
16382 | else | |
16383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16384 | $as_echo "no" >&6; } | |
16385 | fi | |
16386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a667869d | 16387 | ac_ext=cpp |
47aaa820 DWT |
16388 | ac_cpp='$CXXCPP $CPPFLAGS' |
16389 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16390 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16391 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16392 | ||
a667869d | 16393 | if test "x$CY_OBJECTIVEC" = x1; then : |
47aaa820 | 16394 | |
a667869d DWT |
16395 | # TODO: Darwin |
16396 | for ac_prog in gnustep-config | |
47aaa820 DWT |
16397 | do |
16398 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16399 | set dummy $ac_prog; ac_word=$2 | |
16400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16401 | $as_echo_n "checking for $ac_word... " >&6; } | |
16402 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
16403 | $as_echo_n "(cached) " >&6 | |
16404 | else | |
16405 | if test -n "$GNUSTEP_CONFIG"; then | |
16406 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
16407 | else | |
16408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16409 | for as_dir in $PATH | |
16410 | do | |
16411 | IFS=$as_save_IFS | |
16412 | test -z "$as_dir" && as_dir=. | |
16413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16415 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
16416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16417 | break 2 | |
16418 | fi | |
16419 | done | |
16420 | done | |
16421 | IFS=$as_save_IFS | |
16422 | ||
16423 | fi | |
16424 | fi | |
16425 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
16426 | if test -n "$GNUSTEP_CONFIG"; then | |
16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
16428 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
16429 | else | |
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16431 | $as_echo "no" >&6; } | |
16432 | fi | |
16433 | ||
16434 | ||
16435 | test -n "$GNUSTEP_CONFIG" && break | |
16436 | done | |
16437 | ||
a667869d | 16438 | if test "x$GNUSTEP_CONFIG" != x; then : |
47aaa820 DWT |
16439 | |
16440 | ||
16441 | ||
16442 | for element in `$GNUSTEP_CONFIG --objc-flags`; do | |
16443 | haveit= | |
16444 | for x in $OBJCXXFLAGS; do | |
16445 | ||
16446 | acl_save_prefix="$prefix" | |
16447 | prefix="$acl_final_prefix" | |
16448 | acl_save_exec_prefix="$exec_prefix" | |
16449 | exec_prefix="$acl_final_exec_prefix" | |
16450 | eval x=\"$x\" | |
16451 | exec_prefix="$acl_save_exec_prefix" | |
16452 | prefix="$acl_save_prefix" | |
9c60689e | 16453 | |
47aaa820 DWT |
16454 | if test "X$x" = "X$element"; then |
16455 | haveit=yes | |
16456 | break | |
16457 | fi | |
16458 | done | |
16459 | if test -z "$haveit"; then | |
16460 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
16461 | fi | |
16462 | done | |
16463 | ||
16464 | ||
16465 | for element in `$GNUSTEP_CONFIG --base-libs`; do | |
16466 | haveit= | |
16467 | for x in $LIBS; do | |
16468 | ||
16469 | acl_save_prefix="$prefix" | |
16470 | prefix="$acl_final_prefix" | |
16471 | acl_save_exec_prefix="$exec_prefix" | |
16472 | exec_prefix="$acl_final_exec_prefix" | |
16473 | eval x=\"$x\" | |
16474 | exec_prefix="$acl_save_exec_prefix" | |
16475 | prefix="$acl_save_prefix" | |
16476 | ||
16477 | if test "X$x" = "X$element"; then | |
16478 | haveit=yes | |
16479 | break | |
16480 | fi | |
16481 | done | |
16482 | if test -z "$haveit"; then | |
16483 | LIBS="${LIBS}${LIBS:+ }$element" | |
16484 | fi | |
16485 | done | |
16486 | ||
16487 | ||
16488 | fi | |
16489 | ||
16490 | fi | |
a667869d DWT |
16491 | ;; #( |
16492 | *) : | |
16493 | ||
16494 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5 | |
16495 | $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} | |
16496 | ;; | |
16497 | esac | |
47aaa820 DWT |
16498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
16499 | $as_echo_n "checking for GNU make... " >&6; } | |
16500 | if test "${_cv_gnu_make_command+set}" = set; then : | |
16501 | $as_echo_n "(cached) " >&6 | |
16502 | else | |
16503 | _cv_gnu_make_command='' ; | |
16504 | for a in "$MAKE" make gmake gnumake ; do | |
16505 | if test -z "$a" ; then continue ; fi ; | |
16506 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
16507 | _cv_gnu_make_command=$a ; | |
16508 | break; | |
16509 | fi | |
16510 | done ; | |
16511 | ||
16512 | fi | |
16513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
16514 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
16515 | if test "x$_cv_gnu_make_command" != "x" ; then | |
16516 | ifGNUmake='' ; | |
16517 | else | |
16518 | ifGNUmake='#' ; | |
16519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
16520 | $as_echo "\"Not found\"" >&6; }; | |
16521 | fi | |
16522 | ||
16523 | ||
16524 | if test "x$_cv_gnu_make_command" = x; then : | |
16525 | as_fn_error "You need GNU make" "$LINENO" 5 | |
16526 | fi | |
9c60689e DWT |
16527 | ac_config_files="$ac_config_files GNUmakefile" |
16528 | ||
16529 | cat >confcache <<\_ACEOF | |
16530 | # This file is a shell script that caches the results of configure | |
16531 | # tests run on this system so they can be shared between configure | |
16532 | # scripts and configure runs, see configure's option --config-cache. | |
16533 | # It is not useful on other systems. If it contains results you don't | |
16534 | # want to keep, you may remove or edit it. | |
16535 | # | |
16536 | # config.status only pays attention to the cache file if you give it | |
16537 | # the --recheck option to rerun configure. | |
16538 | # | |
16539 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16540 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16541 | # following values. | |
16542 | ||
16543 | _ACEOF | |
16544 | ||
16545 | # The following way of writing the cache mishandles newlines in values, | |
16546 | # but we know of no workaround that is simple, portable, and efficient. | |
16547 | # So, we kill variables containing newlines. | |
16548 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16549 | # and sets the high bit in the cache file unless we assign to the vars. | |
16550 | ( | |
16551 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16552 | eval ac_val=\$$ac_var | |
16553 | case $ac_val in #( | |
16554 | *${as_nl}*) | |
16555 | case $ac_var in #( | |
16556 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16557 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16558 | esac | |
16559 | case $ac_var in #( | |
16560 | _ | IFS | as_nl) ;; #( | |
16561 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16562 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16563 | esac ;; | |
16564 | esac | |
16565 | done | |
16566 | ||
16567 | (set) 2>&1 | | |
16568 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16569 | *${as_nl}ac_space=\ *) | |
16570 | # `set' does not quote correctly, so add quotes: double-quote | |
16571 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16572 | sed -n \ | |
16573 | "s/'/'\\\\''/g; | |
16574 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16575 | ;; #( | |
16576 | *) | |
16577 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16578 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16579 | ;; | |
16580 | esac | | |
16581 | sort | |
16582 | ) | | |
16583 | sed ' | |
16584 | /^ac_cv_env_/b end | |
16585 | t clear | |
16586 | :clear | |
16587 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16588 | t end | |
16589 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16590 | :end' >>confcache | |
16591 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16592 | if test -w "$cache_file"; then | |
16593 | test "x$cache_file" != "x/dev/null" && | |
16594 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16595 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
16596 | cat confcache >$cache_file | |
16597 | else | |
16598 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16599 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16600 | fi | |
16601 | fi | |
16602 | rm -f confcache | |
16603 | ||
16604 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16605 | # Let make expand exec_prefix. | |
16606 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16607 | ||
16608 | # Transform confdefs.h into DEFS. | |
16609 | # Protect against shell expansion while executing Makefile rules. | |
16610 | # Protect against Makefile macro expansion. | |
16611 | # | |
16612 | # If the first sed substitution is executed (which looks for macros that | |
16613 | # take arguments), then branch to the quote section. Otherwise, | |
16614 | # look for a macro that doesn't take arguments. | |
16615 | ac_script=' | |
16616 | :mline | |
16617 | /\\$/{ | |
16618 | N | |
16619 | s,\\\n,, | |
16620 | b mline | |
16621 | } | |
16622 | t clear | |
16623 | :clear | |
16624 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
16625 | t quote | |
16626 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
16627 | t quote | |
16628 | b any | |
16629 | :quote | |
16630 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
16631 | s/\[/\\&/g | |
16632 | s/\]/\\&/g | |
16633 | s/\$/$$/g | |
16634 | H | |
16635 | :any | |
16636 | ${ | |
16637 | g | |
16638 | s/^\n// | |
16639 | s/\n/ /g | |
16640 | p | |
16641 | } | |
16642 | ' | |
16643 | DEFS=`sed -n "$ac_script" confdefs.h` | |
16644 | ||
16645 | ||
16646 | ac_libobjs= | |
16647 | ac_ltlibobjs= | |
16648 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16649 | # 1. Remove the extension, and $U if already installed. | |
16650 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16651 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16652 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16653 | # will be set to the directory where LIBOBJS objects are built. | |
16654 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16655 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
16656 | done | |
16657 | LIBOBJS=$ac_libobjs | |
16658 | ||
16659 | LTLIBOBJS=$ac_ltlibobjs | |
16660 | ||
16661 | ||
16662 | ||
16663 | : ${CONFIG_STATUS=./config.status} | |
16664 | ac_write_fail=0 | |
16665 | ac_clean_files_save=$ac_clean_files | |
16666 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16667 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
16668 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16669 | as_write_fail=0 | |
16670 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
16671 | #! $SHELL | |
16672 | # Generated by $as_me. | |
16673 | # Run this file to recreate the current configuration. | |
16674 | # Compiler output produced by configure, useful for debugging | |
16675 | # configure, is in config.log if it exists. | |
16676 | ||
16677 | debug=false | |
16678 | ac_cs_recheck=false | |
16679 | ac_cs_silent=false | |
16680 | ||
16681 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16682 | export SHELL | |
16683 | _ASEOF | |
16684 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16685 | ## -------------------- ## | |
16686 | ## M4sh Initialization. ## | |
16687 | ## -------------------- ## | |
16688 | ||
16689 | # Be more Bourne compatible | |
16690 | DUALCASE=1; export DUALCASE # for MKS sh | |
16691 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
16692 | emulate sh | |
16693 | NULLCMD=: | |
16694 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16695 | # is contrary to our usage. Disable this feature. | |
16696 | alias -g '${1+"$@"}'='"$@"' | |
16697 | setopt NO_GLOB_SUBST | |
16698 | else | |
16699 | case `(set -o) 2>/dev/null` in #( | |
16700 | *posix*) : | |
16701 | set -o posix ;; #( | |
16702 | *) : | |
16703 | ;; | |
16704 | esac | |
16705 | fi | |
16706 | ||
16707 | ||
16708 | as_nl=' | |
16709 | ' | |
16710 | export as_nl | |
16711 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16712 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16713 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16714 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16715 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16716 | # but without wasting forks for bash or zsh. | |
16717 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16718 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16719 | as_echo='print -r --' | |
16720 | as_echo_n='print -rn --' | |
16721 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16722 | as_echo='printf %s\n' | |
16723 | as_echo_n='printf %s' | |
16724 | else | |
16725 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16726 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16727 | as_echo_n='/usr/ucb/echo -n' | |
16728 | else | |
16729 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16730 | as_echo_n_body='eval | |
16731 | arg=$1; | |
16732 | case $arg in #( | |
16733 | *"$as_nl"*) | |
16734 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16735 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16736 | esac; | |
16737 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16738 | ' | |
16739 | export as_echo_n_body | |
16740 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16741 | fi | |
16742 | export as_echo_body | |
16743 | as_echo='sh -c $as_echo_body as_echo' | |
16744 | fi | |
16745 | ||
16746 | # The user is always right. | |
16747 | if test "${PATH_SEPARATOR+set}" != set; then | |
16748 | PATH_SEPARATOR=: | |
16749 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16750 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16751 | PATH_SEPARATOR=';' | |
16752 | } | |
16753 | fi | |
16754 | ||
16755 | ||
16756 | # IFS | |
16757 | # We need space, tab and new line, in precisely that order. Quoting is | |
16758 | # there to prevent editors from complaining about space-tab. | |
16759 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16760 | # splitting by setting IFS to empty value.) | |
16761 | IFS=" "" $as_nl" | |
16762 | ||
16763 | # Find who we are. Look in the path if we contain no directory separator. | |
16764 | case $0 in #(( | |
16765 | *[\\/]* ) as_myself=$0 ;; | |
16766 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16767 | for as_dir in $PATH | |
16768 | do | |
16769 | IFS=$as_save_IFS | |
16770 | test -z "$as_dir" && as_dir=. | |
16771 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16772 | done | |
16773 | IFS=$as_save_IFS | |
16774 | ||
16775 | ;; | |
16776 | esac | |
16777 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16778 | # in which case we are not to be found in the path. | |
16779 | if test "x$as_myself" = x; then | |
16780 | as_myself=$0 | |
16781 | fi | |
16782 | if test ! -f "$as_myself"; then | |
16783 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16784 | exit 1 | |
16785 | fi | |
16786 | ||
16787 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16788 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16789 | # suppresses any "Segmentation fault" message there. '((' could | |
16790 | # trigger a bug in pdksh 5.2.14. | |
16791 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16792 | do eval test x\${$as_var+set} = xset \ | |
16793 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16794 | done | |
16795 | PS1='$ ' | |
16796 | PS2='> ' | |
16797 | PS4='+ ' | |
16798 | ||
16799 | # NLS nuisances. | |
16800 | LC_ALL=C | |
16801 | export LC_ALL | |
16802 | LANGUAGE=C | |
16803 | export LANGUAGE | |
16804 | ||
16805 | # CDPATH. | |
16806 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16807 | ||
16808 | ||
16809 | # as_fn_error ERROR [LINENO LOG_FD] | |
16810 | # --------------------------------- | |
16811 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16812 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16813 | # script with status $?, using 1 if that was 0. | |
16814 | as_fn_error () | |
16815 | { | |
16816 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
16817 | if test "$3"; then | |
16818 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16819 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
16820 | fi | |
16821 | $as_echo "$as_me: error: $1" >&2 | |
16822 | as_fn_exit $as_status | |
16823 | } # as_fn_error | |
16824 | ||
16825 | ||
16826 | # as_fn_set_status STATUS | |
16827 | # ----------------------- | |
16828 | # Set $? to STATUS, without forking. | |
16829 | as_fn_set_status () | |
16830 | { | |
16831 | return $1 | |
16832 | } # as_fn_set_status | |
16833 | ||
16834 | # as_fn_exit STATUS | |
16835 | # ----------------- | |
16836 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16837 | as_fn_exit () | |
16838 | { | |
16839 | set +e | |
16840 | as_fn_set_status $1 | |
16841 | exit $1 | |
16842 | } # as_fn_exit | |
16843 | ||
16844 | # as_fn_unset VAR | |
16845 | # --------------- | |
16846 | # Portably unset VAR. | |
16847 | as_fn_unset () | |
16848 | { | |
16849 | { eval $1=; unset $1;} | |
16850 | } | |
16851 | as_unset=as_fn_unset | |
16852 | # as_fn_append VAR VALUE | |
16853 | # ---------------------- | |
16854 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16855 | # advantage of any shell optimizations that allow amortized linear growth over | |
16856 | # repeated appends, instead of the typical quadratic growth present in naive | |
16857 | # implementations. | |
16858 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16859 | eval 'as_fn_append () | |
16860 | { | |
16861 | eval $1+=\$2 | |
16862 | }' | |
16863 | else | |
16864 | as_fn_append () | |
16865 | { | |
16866 | eval $1=\$$1\$2 | |
16867 | } | |
16868 | fi # as_fn_append | |
16869 | ||
16870 | # as_fn_arith ARG... | |
16871 | # ------------------ | |
16872 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16873 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16874 | # must be portable across $(()) and expr. | |
16875 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16876 | eval 'as_fn_arith () | |
16877 | { | |
16878 | as_val=$(( $* )) | |
16879 | }' | |
16880 | else | |
16881 | as_fn_arith () | |
16882 | { | |
16883 | as_val=`expr "$@" || test $? -eq 1` | |
16884 | } | |
16885 | fi # as_fn_arith | |
16886 | ||
16887 | ||
16888 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16889 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16890 | as_expr=expr | |
16891 | else | |
16892 | as_expr=false | |
16893 | fi | |
16894 | ||
16895 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16896 | as_basename=basename | |
16897 | else | |
16898 | as_basename=false | |
16899 | fi | |
16900 | ||
16901 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16902 | as_dirname=dirname | |
16903 | else | |
16904 | as_dirname=false | |
16905 | fi | |
16906 | ||
16907 | as_me=`$as_basename -- "$0" || | |
16908 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16909 | X"$0" : 'X\(//\)$' \| \ | |
16910 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16911 | $as_echo X/"$0" | | |
16912 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16913 | s//\1/ | |
16914 | q | |
16915 | } | |
16916 | /^X\/\(\/\/\)$/{ | |
16917 | s//\1/ | |
16918 | q | |
16919 | } | |
16920 | /^X\/\(\/\).*/{ | |
16921 | s//\1/ | |
16922 | q | |
16923 | } | |
16924 | s/.*/./; q'` | |
16925 | ||
16926 | # Avoid depending upon Character Ranges. | |
16927 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16928 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16929 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16930 | as_cr_digits='0123456789' | |
16931 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16932 | ||
16933 | ECHO_C= ECHO_N= ECHO_T= | |
16934 | case `echo -n x` in #((((( | |
16935 | -n*) | |
16936 | case `echo 'xy\c'` in | |
16937 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16938 | xy) ECHO_C='\c';; | |
16939 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16940 | ECHO_T=' ';; | |
16941 | esac;; | |
16942 | *) | |
16943 | ECHO_N='-n';; | |
16944 | esac | |
16945 | ||
16946 | rm -f conf$$ conf$$.exe conf$$.file | |
16947 | if test -d conf$$.dir; then | |
16948 | rm -f conf$$.dir/conf$$.file | |
16949 | else | |
16950 | rm -f conf$$.dir | |
16951 | mkdir conf$$.dir 2>/dev/null | |
16952 | fi | |
16953 | if (echo >conf$$.file) 2>/dev/null; then | |
16954 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16955 | as_ln_s='ln -s' | |
16956 | # ... but there are two gotchas: | |
16957 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16958 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16959 | # In both cases, we have to default to `cp -p'. | |
16960 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16961 | as_ln_s='cp -p' | |
16962 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16963 | as_ln_s=ln | |
16964 | else | |
16965 | as_ln_s='cp -p' | |
16966 | fi | |
16967 | else | |
16968 | as_ln_s='cp -p' | |
16969 | fi | |
16970 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16971 | rmdir conf$$.dir 2>/dev/null | |
16972 | ||
16973 | ||
16974 | # as_fn_mkdir_p | |
16975 | # ------------- | |
16976 | # Create "$as_dir" as a directory, including parents if necessary. | |
16977 | as_fn_mkdir_p () | |
16978 | { | |
16979 | ||
16980 | case $as_dir in #( | |
16981 | -*) as_dir=./$as_dir;; | |
16982 | esac | |
16983 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16984 | as_dirs= | |
16985 | while :; do | |
16986 | case $as_dir in #( | |
16987 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16988 | *) as_qdir=$as_dir;; | |
16989 | esac | |
16990 | as_dirs="'$as_qdir' $as_dirs" | |
16991 | as_dir=`$as_dirname -- "$as_dir" || | |
16992 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16993 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16994 | X"$as_dir" : 'X\(//\)$' \| \ | |
16995 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16996 | $as_echo X"$as_dir" | | |
16997 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16998 | s//\1/ | |
16999 | q | |
17000 | } | |
17001 | /^X\(\/\/\)[^/].*/{ | |
17002 | s//\1/ | |
17003 | q | |
17004 | } | |
17005 | /^X\(\/\/\)$/{ | |
17006 | s//\1/ | |
17007 | q | |
17008 | } | |
17009 | /^X\(\/\).*/{ | |
17010 | s//\1/ | |
17011 | q | |
17012 | } | |
17013 | s/.*/./; q'` | |
17014 | test -d "$as_dir" && break | |
17015 | done | |
17016 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17017 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
17018 | ||
17019 | ||
17020 | } # as_fn_mkdir_p | |
17021 | if mkdir -p . 2>/dev/null; then | |
17022 | as_mkdir_p='mkdir -p "$as_dir"' | |
17023 | else | |
17024 | test -d ./-p && rmdir ./-p | |
17025 | as_mkdir_p=false | |
17026 | fi | |
17027 | ||
17028 | if test -x / >/dev/null 2>&1; then | |
17029 | as_test_x='test -x' | |
17030 | else | |
17031 | if ls -dL / >/dev/null 2>&1; then | |
17032 | as_ls_L_option=L | |
17033 | else | |
17034 | as_ls_L_option= | |
17035 | fi | |
17036 | as_test_x=' | |
17037 | eval sh -c '\'' | |
17038 | if test -d "$1"; then | |
17039 | test -d "$1/."; | |
17040 | else | |
17041 | case $1 in #( | |
17042 | -*)set "./$1";; | |
17043 | esac; | |
17044 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
17045 | ???[sx]*):;;*)false;;esac;fi | |
17046 | '\'' sh | |
17047 | ' | |
17048 | fi | |
17049 | as_executable_p=$as_test_x | |
17050 | ||
17051 | # Sed expression to map a string onto a valid CPP name. | |
17052 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17053 | ||
17054 | # Sed expression to map a string onto a valid variable name. | |
17055 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17056 | ||
17057 | ||
17058 | exec 6>&1 | |
17059 | ## ----------------------------------- ## | |
17060 | ## Main body of $CONFIG_STATUS script. ## | |
17061 | ## ----------------------------------- ## | |
17062 | _ASEOF | |
17063 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17064 | ||
17065 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17066 | # Save the log message, to keep $0 and so on meaningful, and to | |
17067 | # report actual input values of CONFIG_FILES etc. instead of their | |
17068 | # values after options handling. | |
17069 | ac_log=" | |
17070 | This file was extended by Cycript $as_me 0.9, which was | |
17071 | generated by GNU Autoconf 2.65. Invocation command line was | |
17072 | ||
17073 | CONFIG_FILES = $CONFIG_FILES | |
17074 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17075 | CONFIG_LINKS = $CONFIG_LINKS | |
17076 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17077 | $ $0 $@ | |
17078 | ||
17079 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
17080 | " | |
17081 | ||
17082 | _ACEOF | |
17083 | ||
17084 | case $ac_config_files in *" | |
17085 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17086 | esac | |
17087 | ||
17088 | ||
17089 | ||
17090 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17091 | # Files that config.status was made for. | |
17092 | config_files="$ac_config_files" | |
17093 | config_commands="$ac_config_commands" | |
17094 | ||
17095 | _ACEOF | |
17096 | ||
17097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17098 | ac_cs_usage="\ | |
17099 | \`$as_me' instantiates files and other configuration actions | |
17100 | from templates according to the current configuration. Unless the files | |
17101 | and actions are specified as TAGs, all are instantiated by default. | |
17102 | ||
17103 | Usage: $0 [OPTION]... [TAG]... | |
17104 | ||
17105 | -h, --help print this help, then exit | |
17106 | -V, --version print version number and configuration settings, then exit | |
17107 | --config print configuration, then exit | |
17108 | -q, --quiet, --silent | |
17109 | do not print progress messages | |
17110 | -d, --debug don't remove temporary files | |
17111 | --recheck update $as_me by reconfiguring in the same conditions | |
17112 | --file=FILE[:TEMPLATE] | |
17113 | instantiate the configuration file FILE | |
17114 | ||
17115 | Configuration files: | |
17116 | $config_files | |
17117 | ||
17118 | Configuration commands: | |
17119 | $config_commands | |
17120 | ||
17121 | Report bugs to <saurik@saurik.com>. | |
17122 | Cycript home page: <http://www.cycript.org/>." | |
17123 | ||
17124 | _ACEOF | |
17125 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17126 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
17127 | ac_cs_version="\\ | |
17128 | Cycript config.status 0.9 | |
17129 | configured by $0, generated by GNU Autoconf 2.65, | |
17130 | with options \\"\$ac_cs_config\\" | |
17131 | ||
17132 | Copyright (C) 2009 Free Software Foundation, Inc. | |
17133 | This config.status script is free software; the Free Software Foundation | |
17134 | gives unlimited permission to copy, distribute and modify it." | |
17135 | ||
17136 | ac_pwd='$ac_pwd' | |
17137 | srcdir='$srcdir' | |
17138 | INSTALL='$INSTALL' | |
17139 | AWK='$AWK' | |
17140 | test -n "\$AWK" || AWK=awk | |
17141 | _ACEOF | |
17142 | ||
17143 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17144 | # The default lists apply if the user does not specify any file. | |
17145 | ac_need_defaults=: | |
17146 | while test $# != 0 | |
17147 | do | |
17148 | case $1 in | |
17149 | --*=*) | |
17150 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17151 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17152 | ac_shift=: | |
17153 | ;; | |
17154 | *) | |
17155 | ac_option=$1 | |
17156 | ac_optarg=$2 | |
17157 | ac_shift=shift | |
17158 | ;; | |
17159 | esac | |
17160 | ||
17161 | case $ac_option in | |
17162 | # Handling of the options. | |
17163 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17164 | ac_cs_recheck=: ;; | |
17165 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17166 | $as_echo "$ac_cs_version"; exit ;; | |
17167 | --config | --confi | --conf | --con | --co | --c ) | |
17168 | $as_echo "$ac_cs_config"; exit ;; | |
17169 | --debug | --debu | --deb | --de | --d | -d ) | |
17170 | debug=: ;; | |
17171 | --file | --fil | --fi | --f ) | |
17172 | $ac_shift | |
17173 | case $ac_optarg in | |
17174 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17175 | esac | |
17176 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
17177 | ac_need_defaults=false;; | |
17178 | --he | --h | --help | --hel | -h ) | |
17179 | $as_echo "$ac_cs_usage"; exit ;; | |
17180 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17181 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17182 | ac_cs_silent=: ;; | |
17183 | ||
17184 | # This is an error. | |
17185 | -*) as_fn_error "unrecognized option: \`$1' | |
17186 | Try \`$0 --help' for more information." ;; | |
17187 | ||
17188 | *) as_fn_append ac_config_targets " $1" | |
17189 | ac_need_defaults=false ;; | |
17190 | ||
17191 | esac | |
17192 | shift | |
17193 | done | |
17194 | ||
17195 | ac_configure_extra_args= | |
17196 | ||
17197 | if $ac_cs_silent; then | |
17198 | exec 6>/dev/null | |
17199 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17200 | fi | |
17201 | ||
17202 | _ACEOF | |
17203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17204 | if \$ac_cs_recheck; then | |
17205 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17206 | shift | |
17207 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17208 | CONFIG_SHELL='$SHELL' | |
17209 | export CONFIG_SHELL | |
17210 | exec "\$@" | |
17211 | fi | |
17212 | ||
17213 | _ACEOF | |
17214 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17215 | exec 5>>config.log | |
17216 | { | |
17217 | echo | |
17218 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17219 | ## Running $as_me. ## | |
17220 | _ASBOX | |
17221 | $as_echo "$ac_log" | |
17222 | } >&5 | |
17223 | ||
17224 | _ACEOF | |
17225 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17226 | # | |
17227 | # INIT-COMMANDS | |
17228 | # | |
17229 | ||
17230 | ||
17231 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17232 | # if CDPATH is set. | |
17233 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17234 | ||
17235 | sed_quote_subst='$sed_quote_subst' | |
17236 | double_quote_subst='$double_quote_subst' | |
17237 | delay_variable_subst='$delay_variable_subst' | |
17238 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17239 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
9c60689e | 17240 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
549f29b5 | 17241 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
9c60689e DWT |
17242 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
17243 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
17244 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17245 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
17246 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17247 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17248 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
17249 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17250 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
17251 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
17252 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17253 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17254 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17255 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
17256 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
17257 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
17258 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
17259 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
17260 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
17261 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
17262 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
17263 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
17264 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17265 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17266 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
17267 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
17268 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
17269 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
17270 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17271 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
17272 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
17273 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17274 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17275 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17276 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
17277 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17278 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
17279 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
17280 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
17281 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
17282 | 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"`' | |
17283 | 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"`' | |
17284 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
17285 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
17286 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
17287 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
17288 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17289 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
17290 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
17291 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17292 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
17293 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
17294 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
17295 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
17296 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
17297 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
17298 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
17299 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
17300 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17301 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17302 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
17303 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
17304 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17305 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17306 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
17307 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17308 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17309 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17310 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17311 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17312 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17313 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17314 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17315 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17316 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17317 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17318 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
17319 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
17320 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
17321 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
17322 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17323 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
17324 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17325 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
17326 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17327 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
17328 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17329 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17330 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17331 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17332 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17333 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
17334 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
17335 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17336 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
17337 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17338 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17339 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17340 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17341 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17342 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17343 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17344 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17345 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17346 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
17347 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
17348 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17349 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17350 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
17351 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
17352 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
17353 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17354 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17355 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17356 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
17357 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17358 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17359 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17360 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17361 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17362 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17363 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17364 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17365 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17366 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17367 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17368 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17369 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17370 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17371 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17372 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17373 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17374 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17375 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17376 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17377 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17378 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17379 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17380 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17381 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17382 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17383 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17384 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17385 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17386 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17387 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17388 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17389 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17390 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17391 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17392 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17393 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17394 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17395 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17396 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17397 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17398 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17399 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17400 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17401 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17402 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17403 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17404 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17405 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17406 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17407 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17408 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17409 | ||
17410 | LTCC='$LTCC' | |
17411 | LTCFLAGS='$LTCFLAGS' | |
17412 | compiler='$compiler_DEFAULT' | |
17413 | ||
17414 | # Quote evaled strings. | |
17415 | for var in SED \ | |
17416 | GREP \ | |
17417 | EGREP \ | |
17418 | FGREP \ | |
17419 | LD \ | |
17420 | NM \ | |
17421 | LN_S \ | |
17422 | lt_SP2NL \ | |
17423 | lt_NL2SP \ | |
17424 | reload_flag \ | |
17425 | OBJDUMP \ | |
17426 | deplibs_check_method \ | |
17427 | file_magic_cmd \ | |
17428 | AR \ | |
17429 | AR_FLAGS \ | |
17430 | STRIP \ | |
17431 | RANLIB \ | |
17432 | CC \ | |
17433 | CFLAGS \ | |
17434 | compiler \ | |
17435 | lt_cv_sys_global_symbol_pipe \ | |
17436 | lt_cv_sys_global_symbol_to_cdecl \ | |
17437 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17438 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
17439 | SHELL \ | |
17440 | ECHO \ | |
17441 | lt_prog_compiler_no_builtin_flag \ | |
17442 | lt_prog_compiler_wl \ | |
17443 | lt_prog_compiler_pic \ | |
17444 | lt_prog_compiler_static \ | |
17445 | lt_cv_prog_compiler_c_o \ | |
17446 | need_locks \ | |
17447 | DSYMUTIL \ | |
17448 | NMEDIT \ | |
17449 | LIPO \ | |
17450 | OTOOL \ | |
17451 | OTOOL64 \ | |
17452 | shrext_cmds \ | |
17453 | export_dynamic_flag_spec \ | |
17454 | whole_archive_flag_spec \ | |
17455 | compiler_needs_object \ | |
17456 | with_gnu_ld \ | |
17457 | allow_undefined_flag \ | |
17458 | no_undefined_flag \ | |
17459 | hardcode_libdir_flag_spec \ | |
17460 | hardcode_libdir_flag_spec_ld \ | |
17461 | hardcode_libdir_separator \ | |
17462 | fix_srcfile_path \ | |
17463 | exclude_expsyms \ | |
17464 | include_expsyms \ | |
17465 | file_list_spec \ | |
17466 | variables_saved_for_relink \ | |
17467 | libname_spec \ | |
17468 | library_names_spec \ | |
17469 | soname_spec \ | |
17470 | finish_eval \ | |
17471 | old_striplib \ | |
17472 | striplib \ | |
17473 | compiler_lib_search_dirs \ | |
17474 | predep_objects \ | |
17475 | postdep_objects \ | |
17476 | predeps \ | |
17477 | postdeps \ | |
17478 | compiler_lib_search_path \ | |
17479 | LD_CXX \ | |
17480 | compiler_CXX \ | |
17481 | lt_prog_compiler_no_builtin_flag_CXX \ | |
17482 | lt_prog_compiler_wl_CXX \ | |
17483 | lt_prog_compiler_pic_CXX \ | |
17484 | lt_prog_compiler_static_CXX \ | |
17485 | lt_cv_prog_compiler_c_o_CXX \ | |
17486 | export_dynamic_flag_spec_CXX \ | |
17487 | whole_archive_flag_spec_CXX \ | |
17488 | compiler_needs_object_CXX \ | |
17489 | with_gnu_ld_CXX \ | |
17490 | allow_undefined_flag_CXX \ | |
17491 | no_undefined_flag_CXX \ | |
17492 | hardcode_libdir_flag_spec_CXX \ | |
17493 | hardcode_libdir_flag_spec_ld_CXX \ | |
17494 | hardcode_libdir_separator_CXX \ | |
17495 | fix_srcfile_path_CXX \ | |
17496 | exclude_expsyms_CXX \ | |
17497 | include_expsyms_CXX \ | |
17498 | file_list_spec_CXX \ | |
17499 | compiler_lib_search_dirs_CXX \ | |
17500 | predep_objects_CXX \ | |
17501 | postdep_objects_CXX \ | |
17502 | predeps_CXX \ | |
17503 | postdeps_CXX \ | |
17504 | compiler_lib_search_path_CXX; do | |
17505 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17506 | *[\\\\\\\`\\"\\\$]*) | |
17507 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17508 | ;; | |
17509 | *) | |
17510 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17511 | ;; | |
17512 | esac | |
17513 | done | |
17514 | ||
17515 | # Double-quote double-evaled strings. | |
17516 | for var in reload_cmds \ | |
17517 | old_postinstall_cmds \ | |
17518 | old_postuninstall_cmds \ | |
17519 | old_archive_cmds \ | |
17520 | extract_expsyms_cmds \ | |
17521 | old_archive_from_new_cmds \ | |
17522 | old_archive_from_expsyms_cmds \ | |
17523 | archive_cmds \ | |
17524 | archive_expsym_cmds \ | |
17525 | module_cmds \ | |
17526 | module_expsym_cmds \ | |
17527 | export_symbols_cmds \ | |
17528 | prelink_cmds \ | |
17529 | postinstall_cmds \ | |
17530 | postuninstall_cmds \ | |
17531 | finish_cmds \ | |
17532 | sys_lib_search_path_spec \ | |
17533 | sys_lib_dlsearch_path_spec \ | |
17534 | old_archive_cmds_CXX \ | |
17535 | old_archive_from_new_cmds_CXX \ | |
17536 | old_archive_from_expsyms_cmds_CXX \ | |
17537 | archive_cmds_CXX \ | |
17538 | archive_expsym_cmds_CXX \ | |
17539 | module_cmds_CXX \ | |
17540 | module_expsym_cmds_CXX \ | |
17541 | export_symbols_cmds_CXX \ | |
17542 | prelink_cmds_CXX; do | |
17543 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17544 | *[\\\\\\\`\\"\\\$]*) | |
17545 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17546 | ;; | |
17547 | *) | |
17548 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17549 | ;; | |
17550 | esac | |
17551 | done | |
17552 | ||
17553 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
17554 | case \$lt_ECHO in | |
17555 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
17556 | ;; | |
17557 | esac | |
17558 | ||
17559 | ac_aux_dir='$ac_aux_dir' | |
17560 | xsi_shell='$xsi_shell' | |
17561 | lt_shell_append='$lt_shell_append' | |
17562 | ||
17563 | # See if we are running on zsh, and set the options which allow our | |
17564 | # commands through without removal of \ escapes INIT. | |
17565 | if test -n "\${ZSH_VERSION+set}" ; then | |
17566 | setopt NO_GLOB_SUBST | |
17567 | fi | |
17568 | ||
17569 | ||
17570 | PACKAGE='$PACKAGE' | |
17571 | VERSION='$VERSION' | |
17572 | TIMESTAMP='$TIMESTAMP' | |
17573 | RM='$RM' | |
17574 | ofile='$ofile' | |
17575 | ||
17576 | ||
17577 | ||
17578 | ||
17579 | ||
17580 | ||
17581 | _ACEOF | |
17582 | ||
17583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17584 | ||
17585 | # Handling of arguments. | |
17586 | for ac_config_target in $ac_config_targets | |
17587 | do | |
17588 | case $ac_config_target in | |
17589 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
17590 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; | |
17591 | ||
17592 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
17593 | esac | |
17594 | done | |
17595 | ||
17596 | ||
17597 | # If the user did not use the arguments to specify the items to instantiate, | |
17598 | # then the envvar interface is used. Set only those that are not. | |
17599 | # We use the long form for the default assignment because of an extremely | |
17600 | # bizarre bug on SunOS 4.1.3. | |
17601 | if $ac_need_defaults; then | |
17602 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17603 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17604 | fi | |
17605 | ||
17606 | # Have a temporary directory for convenience. Make it in the build tree | |
17607 | # simply because there is no reason against having it here, and in addition, | |
17608 | # creating and moving files from /tmp can sometimes cause problems. | |
17609 | # Hook for its removal unless debugging. | |
17610 | # Note that there is a small window in which the directory will not be cleaned: | |
17611 | # after its creation but before its name has been assigned to `$tmp'. | |
17612 | $debug || | |
17613 | { | |
17614 | tmp= | |
17615 | trap 'exit_status=$? | |
17616 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
17617 | ' 0 | |
17618 | trap 'as_fn_exit 1' 1 2 13 15 | |
17619 | } | |
17620 | # Create a (secure) tmp directory for tmp files. | |
17621 | ||
17622 | { | |
17623 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
17624 | test -n "$tmp" && test -d "$tmp" | |
17625 | } || | |
17626 | { | |
17627 | tmp=./conf$$-$RANDOM | |
17628 | (umask 077 && mkdir "$tmp") | |
17629 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
17630 | ||
17631 | # Set up the scripts for CONFIG_FILES section. | |
17632 | # No need to generate them if there are no CONFIG_FILES. | |
17633 | # This happens for instance with `./config.status config.h'. | |
17634 | if test -n "$CONFIG_FILES"; then | |
17635 | ||
17636 | ||
17637 | ac_cr=`echo X | tr X '\015'` | |
17638 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17639 | # But we know of no other shell where ac_cr would be empty at this | |
17640 | # point, so we can use a bashism as a fallback. | |
17641 | if test "x$ac_cr" = x; then | |
17642 | eval ac_cr=\$\'\\r\' | |
17643 | fi | |
17644 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17645 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17646 | ac_cs_awk_cr='\r' | |
17647 | else | |
17648 | ac_cs_awk_cr=$ac_cr | |
17649 | fi | |
17650 | ||
17651 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
17652 | _ACEOF | |
17653 | ||
17654 | ||
17655 | { | |
17656 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17657 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17658 | echo "_ACEOF" | |
17659 | } >conf$$subs.sh || | |
17660 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17661 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
17662 | ac_delim='%!_!# ' | |
17663 | for ac_last_try in false false false false false :; do | |
17664 | . ./conf$$subs.sh || | |
17665 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17666 | ||
17667 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17668 | if test $ac_delim_n = $ac_delim_num; then | |
17669 | break | |
17670 | elif $ac_last_try; then | |
17671 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17672 | else | |
17673 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17674 | fi | |
17675 | done | |
17676 | rm -f conf$$subs.sh | |
17677 | ||
17678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17679 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
17680 | _ACEOF | |
17681 | sed -n ' | |
17682 | h | |
17683 | s/^/S["/; s/!.*/"]=/ | |
17684 | p | |
17685 | g | |
17686 | s/^[^!]*!// | |
17687 | :repl | |
17688 | t repl | |
17689 | s/'"$ac_delim"'$// | |
17690 | t delim | |
17691 | :nl | |
17692 | h | |
17693 | s/\(.\{148\}\)..*/\1/ | |
17694 | t more1 | |
17695 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17696 | p | |
17697 | n | |
17698 | b repl | |
17699 | :more1 | |
17700 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17701 | p | |
17702 | g | |
17703 | s/.\{148\}// | |
17704 | t nl | |
17705 | :delim | |
17706 | h | |
17707 | s/\(.\{148\}\)..*/\1/ | |
17708 | t more2 | |
17709 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17710 | p | |
17711 | b | |
17712 | :more2 | |
17713 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17714 | p | |
17715 | g | |
17716 | s/.\{148\}// | |
17717 | t delim | |
17718 | ' <conf$$subs.awk | sed ' | |
17719 | /^[^""]/{ | |
17720 | N | |
17721 | s/\n// | |
17722 | } | |
17723 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17724 | rm -f conf$$subs.awk | |
17725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17726 | _ACAWK | |
17727 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
17728 | for (key in S) S_is_set[key] = 1 | |
17729 | FS = "\a" | |
17730 | ||
17731 | } | |
17732 | { | |
17733 | line = $ 0 | |
17734 | nfields = split(line, field, "@") | |
17735 | substed = 0 | |
17736 | len = length(field[1]) | |
17737 | for (i = 2; i < nfields; i++) { | |
17738 | key = field[i] | |
17739 | keylen = length(key) | |
17740 | if (S_is_set[key]) { | |
17741 | value = S[key] | |
17742 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17743 | len += length(value) + length(field[++i]) | |
17744 | substed = 1 | |
17745 | } else | |
17746 | len += 1 + keylen | |
17747 | } | |
17748 | ||
17749 | print line | |
17750 | } | |
17751 | ||
17752 | _ACAWK | |
17753 | _ACEOF | |
17754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17755 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17756 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17757 | else | |
17758 | cat | |
17759 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
17760 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
17761 | _ACEOF | |
17762 | ||
17763 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
17764 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
17765 | # trailing colons and then remove the whole line if VPATH becomes empty | |
17766 | # (actually we leave an empty line to preserve line numbers). | |
17767 | if test "x$srcdir" = x.; then | |
17768 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
17769 | s/:*\$(srcdir):*/:/ | |
17770 | s/:*\${srcdir}:*/:/ | |
17771 | s/:*@srcdir@:*/:/ | |
17772 | s/^\([^=]*=[ ]*\):*/\1/ | |
17773 | s/:*$// | |
17774 | s/^[^=]*=[ ]*$// | |
17775 | }' | |
17776 | fi | |
17777 | ||
17778 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17779 | fi # test -n "$CONFIG_FILES" | |
17780 | ||
17781 | ||
17782 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
17783 | shift | |
17784 | for ac_tag | |
17785 | do | |
17786 | case $ac_tag in | |
17787 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17788 | esac | |
17789 | case $ac_mode$ac_tag in | |
17790 | :[FHL]*:*);; | |
17791 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
17792 | :[FH]-) ac_tag=-:-;; | |
17793 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17794 | esac | |
17795 | ac_save_IFS=$IFS | |
17796 | IFS=: | |
17797 | set x $ac_tag | |
17798 | IFS=$ac_save_IFS | |
17799 | shift | |
17800 | ac_file=$1 | |
17801 | shift | |
17802 | ||
17803 | case $ac_mode in | |
17804 | :L) ac_source=$1;; | |
17805 | :[FH]) | |
17806 | ac_file_inputs= | |
17807 | for ac_f | |
17808 | do | |
17809 | case $ac_f in | |
17810 | -) ac_f="$tmp/stdin";; | |
17811 | *) # Look for the file first in the build tree, then in the source tree | |
17812 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17813 | # because $ac_f cannot contain `:'. | |
17814 | test -f "$ac_f" || | |
17815 | case $ac_f in | |
17816 | [\\/$]*) false;; | |
17817 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17818 | esac || | |
17819 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
17820 | esac | |
17821 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17822 | as_fn_append ac_file_inputs " '$ac_f'" | |
17823 | done | |
17824 | ||
17825 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17826 | # use $as_me), people would be surprised to read: | |
17827 | # /* config.h. Generated by config.status. */ | |
17828 | configure_input='Generated from '` | |
17829 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17830 | `' by configure.' | |
17831 | if test x"$ac_file" != x-; then | |
17832 | configure_input="$ac_file. $configure_input" | |
17833 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17834 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17835 | fi | |
17836 | # Neutralize special characters interpreted by sed in replacement strings. | |
17837 | case $configure_input in #( | |
17838 | *\&* | *\|* | *\\* ) | |
17839 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17840 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17841 | *) ac_sed_conf_input=$configure_input;; | |
17842 | esac | |
17843 | ||
17844 | case $ac_tag in | |
17845 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
17846 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
17847 | esac | |
17848 | ;; | |
17849 | esac | |
17850 | ||
17851 | ac_dir=`$as_dirname -- "$ac_file" || | |
17852 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17853 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17854 | X"$ac_file" : 'X\(//\)$' \| \ | |
17855 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17856 | $as_echo X"$ac_file" | | |
17857 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17858 | s//\1/ | |
17859 | q | |
17860 | } | |
17861 | /^X\(\/\/\)[^/].*/{ | |
17862 | s//\1/ | |
17863 | q | |
17864 | } | |
17865 | /^X\(\/\/\)$/{ | |
17866 | s//\1/ | |
17867 | q | |
17868 | } | |
17869 | /^X\(\/\).*/{ | |
17870 | s//\1/ | |
17871 | q | |
17872 | } | |
17873 | s/.*/./; q'` | |
17874 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17875 | ac_builddir=. | |
17876 | ||
17877 | case "$ac_dir" in | |
17878 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17879 | *) | |
17880 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17881 | # A ".." for each directory in $ac_dir_suffix. | |
17882 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17883 | case $ac_top_builddir_sub in | |
17884 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17885 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17886 | esac ;; | |
17887 | esac | |
17888 | ac_abs_top_builddir=$ac_pwd | |
17889 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17890 | # for backward compatibility: | |
17891 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 17892 | |
9c60689e DWT |
17893 | case $srcdir in |
17894 | .) # We are building in place. | |
17895 | ac_srcdir=. | |
17896 | ac_top_srcdir=$ac_top_builddir_sub | |
17897 | ac_abs_top_srcdir=$ac_pwd ;; | |
17898 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17899 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17900 | ac_top_srcdir=$srcdir | |
17901 | ac_abs_top_srcdir=$srcdir ;; | |
17902 | *) # Relative name. | |
17903 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17904 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17905 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17906 | esac | |
17907 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
17908 | |
17909 | ||
9c60689e DWT |
17910 | case $ac_mode in |
17911 | :F) | |
17912 | # | |
17913 | # CONFIG_FILE | |
17914 | # | |
35fa52c0 | 17915 | |
9c60689e DWT |
17916 | case $INSTALL in |
17917 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17918 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17919 | esac | |
17920 | _ACEOF | |
35fa52c0 | 17921 | |
9c60689e DWT |
17922 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17923 | # If the template does not know about datarootdir, expand it. | |
17924 | # FIXME: This hack should be removed a few years after 2.60. | |
17925 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17926 | ac_sed_dataroot=' | |
17927 | /datarootdir/ { | |
17928 | p | |
17929 | q | |
17930 | } | |
17931 | /@datadir@/p | |
17932 | /@docdir@/p | |
17933 | /@infodir@/p | |
17934 | /@localedir@/p | |
17935 | /@mandir@/p' | |
17936 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17937 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17938 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17940 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17941 | _ACEOF | |
17942 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17943 | ac_datarootdir_hack=' | |
17944 | s&@datadir@&$datadir&g | |
17945 | s&@docdir@&$docdir&g | |
17946 | s&@infodir@&$infodir&g | |
17947 | s&@localedir@&$localedir&g | |
17948 | s&@mandir@&$mandir&g | |
17949 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17950 | esac | |
17951 | _ACEOF | |
35fa52c0 | 17952 | |
9c60689e DWT |
17953 | # Neutralize VPATH when `$srcdir' = `.'. |
17954 | # Shell code in configure.ac might set extrasub. | |
17955 | # FIXME: do we really want to maintain this feature? | |
17956 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17957 | ac_sed_extra="$ac_vpsub | |
17958 | $extrasub | |
17959 | _ACEOF | |
17960 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17961 | :t | |
17962 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17963 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17964 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17965 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17966 | s&@srcdir@&$ac_srcdir&;t t | |
17967 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17968 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17969 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17970 | s&@builddir@&$ac_builddir&;t t | |
17971 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17972 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17973 | s&@INSTALL@&$ac_INSTALL&;t t | |
17974 | $ac_datarootdir_hack | |
17975 | " | |
17976 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
17977 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17978 | ||
17979 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17980 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
17981 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
17982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17983 | which seems to be undefined. Please make sure it is defined." >&5 | |
17984 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17985 | which seems to be undefined. Please make sure it is defined." >&2;} | |
17986 | ||
17987 | rm -f "$tmp/stdin" | |
17988 | case $ac_file in | |
17989 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
17990 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
17991 | esac \ | |
17992 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17993 | ;; | |
35fa52c0 | 17994 | |
35fa52c0 | 17995 | |
9c60689e DWT |
17996 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
17997 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17998 | ;; | |
17999 | esac | |
35fa52c0 | 18000 | |
35fa52c0 | 18001 | |
9c60689e DWT |
18002 | case $ac_file$ac_mode in |
18003 | "libtool":C) | |
18004 | ||
18005 | # See if we are running on zsh, and set the options which allow our | |
18006 | # commands through without removal of \ escapes. | |
18007 | if test -n "${ZSH_VERSION+set}" ; then | |
18008 | setopt NO_GLOB_SUBST | |
35fa52c0 | 18009 | fi |
35fa52c0 | 18010 | |
9c60689e DWT |
18011 | cfgfile="${ofile}T" |
18012 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18013 | $RM "$cfgfile" | |
35fa52c0 | 18014 | |
9c60689e DWT |
18015 | cat <<_LT_EOF >> "$cfgfile" |
18016 | #! $SHELL | |
35fa52c0 | 18017 | |
9c60689e DWT |
18018 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
18019 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
18020 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18021 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18022 | # | |
18023 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
18024 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
18025 | # Written by Gordon Matzigkeit, 1996 | |
18026 | # | |
18027 | # This file is part of GNU Libtool. | |
18028 | # | |
18029 | # GNU Libtool is free software; you can redistribute it and/or | |
18030 | # modify it under the terms of the GNU General Public License as | |
18031 | # published by the Free Software Foundation; either version 2 of | |
18032 | # the License, or (at your option) any later version. | |
18033 | # | |
18034 | # As a special exception to the GNU General Public License, | |
18035 | # if you distribute this file as part of a program or library that | |
18036 | # is built using GNU Libtool, you may include this file under the | |
18037 | # same distribution terms that you use for the rest of that program. | |
18038 | # | |
18039 | # GNU Libtool is distributed in the hope that it will be useful, | |
18040 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18041 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18042 | # GNU General Public License for more details. | |
18043 | # | |
18044 | # You should have received a copy of the GNU General Public License | |
18045 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18046 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18047 | # obtained by writing to the Free Software Foundation, Inc., | |
18048 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 18049 | |
35fa52c0 | 18050 | |
9c60689e DWT |
18051 | # The names of the tagged configurations supported by this script. |
18052 | available_tags="CXX " | |
35fa52c0 | 18053 | |
9c60689e | 18054 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 18055 | |
9c60689e DWT |
18056 | # Which release of libtool.m4 was used? |
18057 | macro_version=$macro_version | |
18058 | macro_revision=$macro_revision | |
35fa52c0 | 18059 | |
9c60689e DWT |
18060 | # Whether or not to build static libraries. |
18061 | build_old_libs=$enable_static | |
35fa52c0 | 18062 | |
549f29b5 DWT |
18063 | # Whether or not to build shared libraries. |
18064 | build_libtool_libs=$enable_shared | |
18065 | ||
9c60689e DWT |
18066 | # What type of objects to build. |
18067 | pic_mode=$pic_mode | |
35fa52c0 | 18068 | |
9c60689e DWT |
18069 | # Whether or not to optimize for fast installation. |
18070 | fast_install=$enable_fast_install | |
35fa52c0 | 18071 | |
9c60689e DWT |
18072 | # The host system. |
18073 | host_alias=$host_alias | |
18074 | host=$host | |
18075 | host_os=$host_os | |
35fa52c0 | 18076 | |
9c60689e DWT |
18077 | # The build system. |
18078 | build_alias=$build_alias | |
18079 | build=$build | |
18080 | build_os=$build_os | |
18081 | ||
18082 | # A sed program that does not truncate output. | |
18083 | SED=$lt_SED | |
18084 | ||
18085 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18086 | Xsed="\$SED -e 1s/^X//" | |
18087 | ||
18088 | # A grep program that handles long lines. | |
18089 | GREP=$lt_GREP | |
18090 | ||
18091 | # An ERE matcher. | |
18092 | EGREP=$lt_EGREP | |
18093 | ||
18094 | # A literal string matcher. | |
18095 | FGREP=$lt_FGREP | |
18096 | ||
18097 | # A BSD- or MS-compatible name lister. | |
18098 | NM=$lt_NM | |
18099 | ||
18100 | # Whether we need soft or hard links. | |
18101 | LN_S=$lt_LN_S | |
18102 | ||
18103 | # What is the maximum length of a command? | |
18104 | max_cmd_len=$max_cmd_len | |
18105 | ||
18106 | # Object file suffix (normally "o"). | |
18107 | objext=$ac_objext | |
18108 | ||
18109 | # Executable file suffix (normally ""). | |
18110 | exeext=$exeext | |
18111 | ||
18112 | # whether the shell understands "unset". | |
18113 | lt_unset=$lt_unset | |
18114 | ||
18115 | # turn spaces into newlines. | |
18116 | SP2NL=$lt_lt_SP2NL | |
18117 | ||
18118 | # turn newlines into spaces. | |
18119 | NL2SP=$lt_lt_NL2SP | |
18120 | ||
18121 | # How to create reloadable object files. | |
18122 | reload_flag=$lt_reload_flag | |
18123 | reload_cmds=$lt_reload_cmds | |
18124 | ||
18125 | # An object symbol dumper. | |
18126 | OBJDUMP=$lt_OBJDUMP | |
18127 | ||
18128 | # Method to check whether dependent libraries are shared objects. | |
18129 | deplibs_check_method=$lt_deplibs_check_method | |
18130 | ||
18131 | # Command to use when deplibs_check_method == "file_magic". | |
18132 | file_magic_cmd=$lt_file_magic_cmd | |
18133 | ||
18134 | # The archiver. | |
18135 | AR=$lt_AR | |
18136 | AR_FLAGS=$lt_AR_FLAGS | |
18137 | ||
18138 | # A symbol stripping program. | |
18139 | STRIP=$lt_STRIP | |
18140 | ||
18141 | # Commands used to install an old-style archive. | |
18142 | RANLIB=$lt_RANLIB | |
18143 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18144 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18145 | ||
18146 | # A C compiler. | |
18147 | LTCC=$lt_CC | |
18148 | ||
18149 | # LTCC compiler flags. | |
18150 | LTCFLAGS=$lt_CFLAGS | |
18151 | ||
18152 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18153 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18154 | ||
18155 | # Transform the output of nm in a proper C declaration. | |
18156 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18157 | ||
18158 | # Transform the output of nm in a C name address pair. | |
18159 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18160 | ||
18161 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
18162 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18163 | ||
18164 | # The name of the directory that contains temporary libtool files. | |
18165 | objdir=$objdir | |
18166 | ||
18167 | # Shell to use when invoking shell scripts. | |
18168 | SHELL=$lt_SHELL | |
18169 | ||
18170 | # An echo program that does not interpret backslashes. | |
18171 | ECHO=$lt_ECHO | |
18172 | ||
18173 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18174 | MAGIC_CMD=$MAGIC_CMD | |
18175 | ||
18176 | # Must we lock files when doing compilation? | |
18177 | need_locks=$lt_need_locks | |
18178 | ||
18179 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
18180 | DSYMUTIL=$lt_DSYMUTIL | |
18181 | ||
18182 | # Tool to change global to local symbols on Mac OS X. | |
18183 | NMEDIT=$lt_NMEDIT | |
18184 | ||
18185 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18186 | LIPO=$lt_LIPO | |
18187 | ||
18188 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18189 | OTOOL=$lt_OTOOL | |
18190 | ||
18191 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18192 | OTOOL64=$lt_OTOOL64 | |
18193 | ||
18194 | # Old archive suffix (normally "a"). | |
18195 | libext=$libext | |
18196 | ||
18197 | # Shared library suffix (normally ".so"). | |
18198 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 18199 | |
9c60689e DWT |
18200 | # The commands to extract the exported symbol list from a shared archive. |
18201 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 18202 | |
9c60689e DWT |
18203 | # Variables whose values should be saved in libtool wrapper scripts and |
18204 | # restored at link time. | |
18205 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 18206 | |
9c60689e DWT |
18207 | # Do we need the "lib" prefix for modules? |
18208 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 18209 | |
9c60689e DWT |
18210 | # Do we need a version for libraries? |
18211 | need_version=$need_version | |
35fa52c0 | 18212 | |
9c60689e DWT |
18213 | # Library versioning type. |
18214 | version_type=$version_type | |
35fa52c0 | 18215 | |
9c60689e DWT |
18216 | # Shared library runtime path variable. |
18217 | runpath_var=$runpath_var | |
35fa52c0 | 18218 | |
9c60689e DWT |
18219 | # Shared library path variable. |
18220 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 18221 | |
9c60689e DWT |
18222 | # Is shlibpath searched before the hard-coded library search path? |
18223 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 18224 | |
9c60689e DWT |
18225 | # Format of library name prefix. |
18226 | libname_spec=$lt_libname_spec | |
35fa52c0 | 18227 | |
9c60689e DWT |
18228 | # List of archive names. First name is the real one, the rest are links. |
18229 | # The last name is the one that the linker finds with -lNAME | |
18230 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 18231 | |
9c60689e DWT |
18232 | # The coded name of the library, if different from the real name. |
18233 | soname_spec=$lt_soname_spec | |
dbadc56a | 18234 | |
9c60689e DWT |
18235 | # Command to use after installation of a shared archive. |
18236 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 18237 | |
9c60689e DWT |
18238 | # Command to use after uninstallation of a shared archive. |
18239 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 18240 | |
9c60689e DWT |
18241 | # Commands used to finish a libtool library installation in a directory. |
18242 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 18243 | |
9c60689e DWT |
18244 | # As "finish_cmds", except a single script fragment to be evaled but |
18245 | # not shown. | |
18246 | finish_eval=$lt_finish_eval | |
35fa52c0 | 18247 | |
9c60689e DWT |
18248 | # Whether we should hardcode library paths into libraries. |
18249 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 18250 | |
9c60689e DWT |
18251 | # Compile-time system search path for libraries. |
18252 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 18253 | |
9c60689e DWT |
18254 | # Run-time system search path for libraries. |
18255 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 18256 | |
9c60689e DWT |
18257 | # Whether dlopen is supported. |
18258 | dlopen_support=$enable_dlopen | |
dbadc56a | 18259 | |
9c60689e DWT |
18260 | # Whether dlopen of programs is supported. |
18261 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 18262 | |
9c60689e DWT |
18263 | # Whether dlopen of statically linked programs is supported. |
18264 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 18265 | |
9c60689e DWT |
18266 | # Commands to strip libraries. |
18267 | old_striplib=$lt_old_striplib | |
18268 | striplib=$lt_striplib | |
35fa52c0 | 18269 | |
35fa52c0 | 18270 | |
9c60689e DWT |
18271 | # The linker used to build libraries. |
18272 | LD=$lt_LD | |
dbadc56a | 18273 | |
9c60689e DWT |
18274 | # Commands used to build an old-style archive. |
18275 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 18276 | |
9c60689e DWT |
18277 | # A language specific compiler. |
18278 | CC=$lt_compiler | |
35fa52c0 | 18279 | |
9c60689e DWT |
18280 | # Is the compiler the GNU compiler? |
18281 | with_gcc=$GCC | |
dbadc56a | 18282 | |
9c60689e DWT |
18283 | # Compiler flag to turn off builtin functions. |
18284 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 18285 | |
9c60689e DWT |
18286 | # How to pass a linker flag through the compiler. |
18287 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 18288 | |
9c60689e DWT |
18289 | # Additional compiler flags for building library objects. |
18290 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 18291 | |
9c60689e DWT |
18292 | # Compiler flag to prevent dynamic linking. |
18293 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 18294 | |
9c60689e DWT |
18295 | # Does compiler simultaneously support -c and -o options? |
18296 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 18297 | |
9c60689e DWT |
18298 | # Whether or not to add -lc for building shared libraries. |
18299 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 18300 | |
9c60689e DWT |
18301 | # Whether or not to disallow shared libs when runtime libs are static. |
18302 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 18303 | |
9c60689e DWT |
18304 | # Compiler flag to allow reflexive dlopens. |
18305 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 18306 | |
9c60689e DWT |
18307 | # Compiler flag to generate shared objects directly from archives. |
18308 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 18309 | |
9c60689e DWT |
18310 | # Whether the compiler copes with passing no objects directly. |
18311 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 18312 | |
9c60689e DWT |
18313 | # Create an old-style archive from a shared archive. |
18314 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 18315 | |
9c60689e DWT |
18316 | # Create a temporary old-style archive to link instead of a shared archive. |
18317 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 18318 | |
9c60689e DWT |
18319 | # Commands used to build a shared archive. |
18320 | archive_cmds=$lt_archive_cmds | |
18321 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 18322 | |
9c60689e DWT |
18323 | # Commands used to build a loadable module if different from building |
18324 | # a shared archive. | |
18325 | module_cmds=$lt_module_cmds | |
18326 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 18327 | |
9c60689e DWT |
18328 | # Whether we are building with GNU ld or not. |
18329 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 18330 | |
9c60689e DWT |
18331 | # Flag that allows shared libraries with undefined symbols to be built. |
18332 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 18333 | |
9c60689e DWT |
18334 | # Flag that enforces no undefined symbols. |
18335 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 18336 | |
9c60689e DWT |
18337 | # Flag to hardcode \$libdir into a binary during linking. |
18338 | # This must work even if \$libdir does not exist | |
18339 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 18340 | |
9c60689e DWT |
18341 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
18342 | # during linking. This must work even if \$libdir does not exist. | |
18343 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 18344 | |
9c60689e DWT |
18345 | # Whether we need a single "-rpath" flag with a separated argument. |
18346 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 18347 | |
9c60689e DWT |
18348 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18349 | # DIR into the resulting binary. | |
18350 | hardcode_direct=$hardcode_direct | |
6b66678a | 18351 | |
9c60689e DWT |
18352 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18353 | # DIR into the resulting binary and the resulting library dependency is | |
18354 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18355 | # library is relocated. | |
18356 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 18357 | |
9c60689e DWT |
18358 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
18359 | # into the resulting binary. | |
18360 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 18361 | |
9c60689e DWT |
18362 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
18363 | # into the resulting binary. | |
18364 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 18365 | |
9c60689e DWT |
18366 | # Set to "yes" if building a shared library automatically hardcodes DIR |
18367 | # into the library and all subsequent libraries and executables linked | |
18368 | # against it. | |
18369 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 18370 | |
9c60689e DWT |
18371 | # Set to yes if linker adds runtime paths of dependent libraries |
18372 | # to runtime path list. | |
18373 | inherit_rpath=$inherit_rpath | |
6b66678a | 18374 | |
9c60689e DWT |
18375 | # Whether libtool must link a program against all its dependency libraries. |
18376 | link_all_deplibs=$link_all_deplibs | |
18377 | ||
18378 | # Fix the shell variable \$srcfile for the compiler. | |
18379 | fix_srcfile_path=$lt_fix_srcfile_path | |
18380 | ||
18381 | # Set to "yes" if exported symbols are required. | |
18382 | always_export_symbols=$always_export_symbols | |
6b66678a | 18383 | |
9c60689e DWT |
18384 | # The commands to list exported symbols. |
18385 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 18386 | |
9c60689e DWT |
18387 | # Symbols that should not be listed in the preloaded symbols. |
18388 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 18389 | |
9c60689e DWT |
18390 | # Symbols that must always be exported. |
18391 | include_expsyms=$lt_include_expsyms | |
6b66678a | 18392 | |
9c60689e DWT |
18393 | # Commands necessary for linking programs (against libraries) with templates. |
18394 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 18395 | |
9c60689e DWT |
18396 | # Specify filename containing input files. |
18397 | file_list_spec=$lt_file_list_spec | |
6b66678a | 18398 | |
9c60689e DWT |
18399 | # How to hardcode a shared library path into an executable. |
18400 | hardcode_action=$hardcode_action | |
18401 | ||
18402 | # The directories searched by this compiler when creating a shared library. | |
18403 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
18404 | ||
18405 | # Dependencies to place before and after the objects being linked to | |
18406 | # create a shared library. | |
18407 | predep_objects=$lt_predep_objects | |
18408 | postdep_objects=$lt_postdep_objects | |
18409 | predeps=$lt_predeps | |
18410 | postdeps=$lt_postdeps | |
18411 | ||
18412 | # The library search path used internally by the compiler when linking | |
18413 | # a shared library. | |
18414 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
18415 | ||
18416 | # ### END LIBTOOL CONFIG | |
18417 | ||
18418 | _LT_EOF | |
18419 | ||
18420 | case $host_os in | |
18421 | aix3*) | |
18422 | cat <<\_LT_EOF >> "$cfgfile" | |
18423 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18424 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18425 | # vanish in a puff of smoke. | |
18426 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18427 | COLLECT_NAMES= | |
18428 | export COLLECT_NAMES | |
6b66678a | 18429 | fi |
9c60689e DWT |
18430 | _LT_EOF |
18431 | ;; | |
18432 | esac | |
6b66678a DWT |
18433 | |
18434 | ||
9c60689e | 18435 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 18436 | |
9c60689e DWT |
18437 | |
18438 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18439 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18440 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18441 | # is reportedly fixed, but why not run on old versions too? | |
18442 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
18443 | || (rm -f "$cfgfile"; exit 1) | |
18444 | ||
18445 | case $xsi_shell in | |
18446 | yes) | |
18447 | cat << \_LT_EOF >> "$cfgfile" | |
18448 | ||
18449 | # func_dirname file append nondir_replacement | |
18450 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18451 | # otherwise set result to NONDIR_REPLACEMENT. | |
18452 | func_dirname () | |
6b66678a | 18453 | { |
9c60689e DWT |
18454 | case ${1} in |
18455 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18456 | * ) func_dirname_result="${3}" ;; | |
18457 | esac | |
18458 | } | |
6b66678a | 18459 | |
9c60689e DWT |
18460 | # func_basename file |
18461 | func_basename () | |
18462 | { | |
18463 | func_basename_result="${1##*/}" | |
6b66678a | 18464 | } |
6b66678a | 18465 | |
9c60689e DWT |
18466 | # func_dirname_and_basename file append nondir_replacement |
18467 | # perform func_basename and func_dirname in a single function | |
18468 | # call: | |
18469 | # dirname: Compute the dirname of FILE. If nonempty, | |
18470 | # add APPEND to the result, otherwise set result | |
18471 | # to NONDIR_REPLACEMENT. | |
18472 | # value returned in "$func_dirname_result" | |
18473 | # basename: Compute filename of FILE. | |
18474 | # value retuned in "$func_basename_result" | |
18475 | # Implementation must be kept synchronized with func_dirname | |
18476 | # and func_basename. For efficiency, we do not delegate to | |
18477 | # those functions but instead duplicate the functionality here. | |
18478 | func_dirname_and_basename () | |
18479 | { | |
18480 | case ${1} in | |
18481 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18482 | * ) func_dirname_result="${3}" ;; | |
18483 | esac | |
18484 | func_basename_result="${1##*/}" | |
18485 | } | |
6b66678a | 18486 | |
9c60689e DWT |
18487 | # func_stripname prefix suffix name |
18488 | # strip PREFIX and SUFFIX off of NAME. | |
18489 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18490 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18491 | # dot (in which case that matches only a dot). | |
18492 | func_stripname () | |
18493 | { | |
18494 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18495 | # positional parameters, so assign one to ordinary parameter first. | |
18496 | func_stripname_result=${3} | |
18497 | func_stripname_result=${func_stripname_result#"${1}"} | |
18498 | func_stripname_result=${func_stripname_result%"${2}"} | |
18499 | } | |
6b66678a | 18500 | |
9c60689e DWT |
18501 | # func_opt_split |
18502 | func_opt_split () | |
18503 | { | |
18504 | func_opt_split_opt=${1%%=*} | |
18505 | func_opt_split_arg=${1#*=} | |
18506 | } | |
6b66678a | 18507 | |
9c60689e DWT |
18508 | # func_lo2o object |
18509 | func_lo2o () | |
18510 | { | |
18511 | case ${1} in | |
18512 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18513 | *) func_lo2o_result=${1} ;; | |
18514 | esac | |
18515 | } | |
6b66678a | 18516 | |
9c60689e DWT |
18517 | # func_xform libobj-or-source |
18518 | func_xform () | |
18519 | { | |
18520 | func_xform_result=${1%.*}.lo | |
18521 | } | |
6b66678a | 18522 | |
9c60689e DWT |
18523 | # func_arith arithmetic-term... |
18524 | func_arith () | |
18525 | { | |
18526 | func_arith_result=$(( $* )) | |
18527 | } | |
6b66678a | 18528 | |
9c60689e DWT |
18529 | # func_len string |
18530 | # STRING may not start with a hyphen. | |
18531 | func_len () | |
18532 | { | |
18533 | func_len_result=${#1} | |
18534 | } | |
6b66678a | 18535 | |
9c60689e DWT |
18536 | _LT_EOF |
18537 | ;; | |
18538 | *) # Bourne compatible functions. | |
18539 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 18540 | |
9c60689e DWT |
18541 | # func_dirname file append nondir_replacement |
18542 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18543 | # otherwise set result to NONDIR_REPLACEMENT. | |
18544 | func_dirname () | |
18545 | { | |
18546 | # Extract subdirectory from the argument. | |
18547 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
18548 | if test "X$func_dirname_result" = "X${1}"; then | |
18549 | func_dirname_result="${3}" | |
18550 | else | |
18551 | func_dirname_result="$func_dirname_result${2}" | |
18552 | fi | |
18553 | } | |
6b66678a | 18554 | |
9c60689e DWT |
18555 | # func_basename file |
18556 | func_basename () | |
6b66678a | 18557 | { |
9c60689e | 18558 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 18559 | } |
6b66678a | 18560 | |
6b66678a | 18561 | |
9c60689e DWT |
18562 | # func_stripname prefix suffix name |
18563 | # strip PREFIX and SUFFIX off of NAME. | |
18564 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18565 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18566 | # dot (in which case that matches only a dot). | |
18567 | # func_strip_suffix prefix name | |
18568 | func_stripname () | |
18569 | { | |
18570 | case ${2} in | |
18571 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
18572 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
18573 | *) func_stripname_result=`$ECHO "X${3}" \ | |
18574 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
18575 | esac | |
18576 | } | |
6b66678a | 18577 | |
9c60689e DWT |
18578 | # sed scripts: |
18579 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18580 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 18581 | |
9c60689e DWT |
18582 | # func_opt_split |
18583 | func_opt_split () | |
18584 | { | |
18585 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
18586 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
18587 | } | |
6b66678a | 18588 | |
9c60689e DWT |
18589 | # func_lo2o object |
18590 | func_lo2o () | |
18591 | { | |
18592 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
18593 | } | |
18594 | ||
18595 | # func_xform libobj-or-source | |
18596 | func_xform () | |
18597 | { | |
18598 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
18599 | } | |
18600 | ||
18601 | # func_arith arithmetic-term... | |
18602 | func_arith () | |
18603 | { | |
18604 | func_arith_result=`expr "$@"` | |
18605 | } | |
18606 | ||
18607 | # func_len string | |
18608 | # STRING may not start with a hyphen. | |
18609 | func_len () | |
18610 | { | |
18611 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18612 | } | |
18613 | ||
18614 | _LT_EOF | |
18615 | esac | |
18616 | ||
18617 | case $lt_shell_append in | |
18618 | yes) | |
18619 | cat << \_LT_EOF >> "$cfgfile" | |
18620 | ||
18621 | # func_append var value | |
18622 | # Append VALUE to the end of shell variable VAR. | |
18623 | func_append () | |
18624 | { | |
18625 | eval "$1+=\$2" | |
18626 | } | |
18627 | _LT_EOF | |
18628 | ;; | |
18629 | *) | |
18630 | cat << \_LT_EOF >> "$cfgfile" | |
18631 | ||
18632 | # func_append var value | |
18633 | # Append VALUE to the end of shell variable VAR. | |
18634 | func_append () | |
18635 | { | |
18636 | eval "$1=\$$1\$2" | |
18637 | } | |
18638 | ||
18639 | _LT_EOF | |
18640 | ;; | |
18641 | esac | |
18642 | ||
18643 | ||
18644 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18645 | || (rm -f "$cfgfile"; exit 1) | |
18646 | ||
18647 | mv -f "$cfgfile" "$ofile" || | |
18648 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18649 | chmod +x "$ofile" | |
18650 | ||
18651 | ||
18652 | cat <<_LT_EOF >> "$ofile" | |
18653 | ||
18654 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
18655 | ||
18656 | # The linker used to build libraries. | |
18657 | LD=$lt_LD_CXX | |
18658 | ||
18659 | # Commands used to build an old-style archive. | |
18660 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
18661 | ||
18662 | # A language specific compiler. | |
18663 | CC=$lt_compiler_CXX | |
18664 | ||
18665 | # Is the compiler the GNU compiler? | |
18666 | with_gcc=$GCC_CXX | |
18667 | ||
18668 | # Compiler flag to turn off builtin functions. | |
18669 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 18670 | |
9c60689e DWT |
18671 | # How to pass a linker flag through the compiler. |
18672 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 18673 | |
9c60689e DWT |
18674 | # Additional compiler flags for building library objects. |
18675 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 18676 | |
9c60689e DWT |
18677 | # Compiler flag to prevent dynamic linking. |
18678 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 18679 | |
9c60689e DWT |
18680 | # Does compiler simultaneously support -c and -o options? |
18681 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 18682 | |
9c60689e DWT |
18683 | # Whether or not to add -lc for building shared libraries. |
18684 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 18685 | |
9c60689e DWT |
18686 | # Whether or not to disallow shared libs when runtime libs are static. |
18687 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 18688 | |
9c60689e DWT |
18689 | # Compiler flag to allow reflexive dlopens. |
18690 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 18691 | |
9c60689e DWT |
18692 | # Compiler flag to generate shared objects directly from archives. |
18693 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 18694 | |
9c60689e DWT |
18695 | # Whether the compiler copes with passing no objects directly. |
18696 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 18697 | |
9c60689e DWT |
18698 | # Create an old-style archive from a shared archive. |
18699 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 18700 | |
9c60689e DWT |
18701 | # Create a temporary old-style archive to link instead of a shared archive. |
18702 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 18703 | |
9c60689e DWT |
18704 | # Commands used to build a shared archive. |
18705 | archive_cmds=$lt_archive_cmds_CXX | |
18706 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 18707 | |
9c60689e DWT |
18708 | # Commands used to build a loadable module if different from building |
18709 | # a shared archive. | |
18710 | module_cmds=$lt_module_cmds_CXX | |
18711 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 18712 | |
9c60689e DWT |
18713 | # Whether we are building with GNU ld or not. |
18714 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 18715 | |
9c60689e DWT |
18716 | # Flag that allows shared libraries with undefined symbols to be built. |
18717 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 18718 | |
9c60689e DWT |
18719 | # Flag that enforces no undefined symbols. |
18720 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 18721 | |
9c60689e DWT |
18722 | # Flag to hardcode \$libdir into a binary during linking. |
18723 | # This must work even if \$libdir does not exist | |
18724 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 18725 | |
9c60689e DWT |
18726 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
18727 | # during linking. This must work even if \$libdir does not exist. | |
18728 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 18729 | |
9c60689e DWT |
18730 | # Whether we need a single "-rpath" flag with a separated argument. |
18731 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 18732 | |
9c60689e DWT |
18733 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18734 | # DIR into the resulting binary. | |
18735 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 18736 | |
9c60689e DWT |
18737 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18738 | # DIR into the resulting binary and the resulting library dependency is | |
18739 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18740 | # library is relocated. | |
18741 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 18742 | |
9c60689e DWT |
18743 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
18744 | # into the resulting binary. | |
18745 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 18746 | |
9c60689e DWT |
18747 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
18748 | # into the resulting binary. | |
18749 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 18750 | |
9c60689e DWT |
18751 | # Set to "yes" if building a shared library automatically hardcodes DIR |
18752 | # into the library and all subsequent libraries and executables linked | |
18753 | # against it. | |
18754 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 18755 | |
9c60689e DWT |
18756 | # Set to yes if linker adds runtime paths of dependent libraries |
18757 | # to runtime path list. | |
18758 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 18759 | |
9c60689e DWT |
18760 | # Whether libtool must link a program against all its dependency libraries. |
18761 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 18762 | |
9c60689e DWT |
18763 | # Fix the shell variable \$srcfile for the compiler. |
18764 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 18765 | |
9c60689e DWT |
18766 | # Set to "yes" if exported symbols are required. |
18767 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 18768 | |
9c60689e DWT |
18769 | # The commands to list exported symbols. |
18770 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 18771 | |
9c60689e DWT |
18772 | # Symbols that should not be listed in the preloaded symbols. |
18773 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 18774 | |
9c60689e DWT |
18775 | # Symbols that must always be exported. |
18776 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 18777 | |
9c60689e DWT |
18778 | # Commands necessary for linking programs (against libraries) with templates. |
18779 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 18780 | |
9c60689e DWT |
18781 | # Specify filename containing input files. |
18782 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 18783 | |
9c60689e DWT |
18784 | # How to hardcode a shared library path into an executable. |
18785 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 18786 | |
9c60689e DWT |
18787 | # The directories searched by this compiler when creating a shared library. |
18788 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 18789 | |
9c60689e DWT |
18790 | # Dependencies to place before and after the objects being linked to |
18791 | # create a shared library. | |
18792 | predep_objects=$lt_predep_objects_CXX | |
18793 | postdep_objects=$lt_postdep_objects_CXX | |
18794 | predeps=$lt_predeps_CXX | |
18795 | postdeps=$lt_postdeps_CXX | |
309b0535 | 18796 | |
9c60689e DWT |
18797 | # The library search path used internally by the compiler when linking |
18798 | # a shared library. | |
18799 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
18800 | ||
18801 | # ### END LIBTOOL TAG CONFIG: CXX | |
18802 | _LT_EOF | |
18803 | ||
18804 | ;; | |
18805 | ||
18806 | esac | |
18807 | done # for ac_tag | |
18808 | ||
18809 | ||
18810 | as_fn_exit 0 | |
18811 | _ACEOF | |
18812 | ac_clean_files=$ac_clean_files_save | |
18813 | ||
18814 | test $ac_write_fail = 0 || | |
18815 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
18816 | ||
18817 | ||
18818 | # configure is writing to config.log, and then calls config.status. | |
18819 | # config.status does its own redirection, appending to config.log. | |
18820 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18821 | # by configure, so config.status won't be able to write to it; its | |
18822 | # output is simply discarded. So we exec the FD to /dev/null, | |
18823 | # effectively closing config.log, so it can be properly (re)opened and | |
18824 | # appended to by config.status. When coming back to configure, we | |
18825 | # need to make the FD available again. | |
18826 | if test "$no_create" != yes; then | |
18827 | ac_cs_success=: | |
18828 | ac_config_status_args= | |
18829 | test "$silent" = yes && | |
18830 | ac_config_status_args="$ac_config_status_args --quiet" | |
18831 | exec 5>/dev/null | |
18832 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18833 | exec 5>>config.log | |
18834 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18835 | # would make configure fail if this is the last instruction. | |
18836 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 18837 | fi |
9c60689e DWT |
18838 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
18839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18840 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18841 | fi | |
18842 |